Csound Csound-dev Csound-tekno Search About

[Cs-dev] event and negative instr num in cs6

Date2013-12-06 11:46
FromOeyvind Brandtsegg
Subject[Cs-dev] event and negative instr num in cs6
Hi,

It seems there is a problem with negative instrument numbers and event
in csound6 (?)

See example below, renders ok in csound 5 but produce the following
console output in 6

SECTION 1:
new alloc for instr 1:
  rtevent:         T  0.000 TT  0.000 M:  0.15666  0.15666
new alloc for instr 2:
B  0.000 ..  3.000 T  3.000 TT  3.000 M:  0.31623  0.31623
insert_score_event(): invalid instrument number or name
PERF ERROR in instr 1: event: error creating 'i' event
        event   "i"     #i3     0       1       #i4     880
   note aborted
B  3.000 ..  5.000 T  5.000 TT  5.000 M:  0.15666  0.15666
Score finished in csoundPerform().
inactive allocs returned to freespace
end of score.              overall amps:  0.31623  0.31623
           overall samples out of range:        0        0
1 errors in performance

best
Oeyvind

***


-otest.wav




    sr    = 48000
    ksmps    = 10
    nchnls    = 2
    0dbfs    = 1

    giSine        ftgen    0, 0, 65537, 10, 1                    ; sine wave

;********************************************
    instr 1
    iamp    = ampdbfs(p4)
    a1    oscil iamp, p5, giSine
        outs a1, a1
    kmode    init p6
if kmode > 0 goto startme
if kmode < 0 goto stopme
goto done

startme:
    event    "i", 2, 0, -1, -5, 880
    kmode     = 0
    goto done

stopme:
    event    "i", -2, 0, 1, -5, 880
    kmode     = 0
    goto done

done:
    endin

    instr 2
    iamp    = ampdbfs(p4)
    a1    oscil iamp, p5, giSine
        outs a1, a1
    endin



i1 0 1 -10 440 1
i1 3 1 -10 440 -1
f0 5
e



***


-- 

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp

------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-12-06 12:08
FromVictor Lazzarini
SubjectRe: [Cs-dev] event and negative instr num in cs6
Can you file a ticket?
On 6 Dec 2013, at 11:46, Oeyvind Brandtsegg  wrote:

> Hi,
> 
> It seems there is a problem with negative instrument numbers and event
> in csound6 (?)
> 
> See example below, renders ok in csound 5 but produce the following
> console output in 6
> 
> SECTION 1:
> new alloc for instr 1:
>  rtevent:         T  0.000 TT  0.000 M:  0.15666  0.15666
> new alloc for instr 2:
> B  0.000 ..  3.000 T  3.000 TT  3.000 M:  0.31623  0.31623
> insert_score_event(): invalid instrument number or name
> PERF ERROR in instr 1: event: error creating 'i' event
>        event   "i"     #i3     0       1       #i4     880
>   note aborted
> B  3.000 ..  5.000 T  5.000 TT  5.000 M:  0.15666  0.15666
> Score finished in csoundPerform().
> inactive allocs returned to freespace
> end of score.              overall amps:  0.31623  0.31623
>           overall samples out of range:        0        0
> 1 errors in performance
> 
> best
> Oeyvind
> 
> ***
> 
> 
> -otest.wav
> 
> 
> 
> 
>    sr    = 48000
>    ksmps    = 10
>    nchnls    = 2
>    0dbfs    = 1
> 
>    giSine        ftgen    0, 0, 65537, 10, 1                    ; sine wave
> 
> ;********************************************
>    instr 1
>    iamp    = ampdbfs(p4)
>    a1    oscil iamp, p5, giSine
>        outs a1, a1
>    kmode    init p6
> if kmode > 0 goto startme
> if kmode < 0 goto stopme
> goto done
> 
> startme:
>    event    "i", 2, 0, -1, -5, 880
>    kmode     = 0
>    goto done
> 
> stopme:
>    event    "i", -2, 0, 1, -5, 880
>    kmode     = 0
>    goto done
> 
> done:
>    endin
> 
>    instr 2
>    iamp    = ampdbfs(p4)
>    a1    oscil iamp, p5, giSine
>        outs a1, a1
>    endin
> 
> 
> 
> i1 0 1 -10 440 1
> i1 3 1 -10 440 -1
> f0 5
> e
> 
> 
> 
> ***
> 
> 
> -- 
> 
> Oeyvind Brandtsegg
> Professor of Music Technology
> NTNU
> 7491 Trondheim
> Norway
> Cell: +47 92 203 205
> 
> http://flyndresang.no/
> http://www.partikkelaudio.com/
> http://soundcloud.com/brandtsegg
> http://soundcloud.com/t-emp
> 
> ------------------------------------------------------------------------------
> Sponsored by Intel(R) XDK 
> Develop, test and display web and hybrid apps with a single code base.
> Download it for free now!
> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-12-06 12:10
FromOeyvind Brandtsegg
SubjectRe: [Cs-dev] event and negative instr num in cs6
Sure,
in such cases, should I always just silently file a ticket? And if
there is something to discuss the one picking up the ticket will start
discussion here?
best
Oeyvind

2013/12/6 Victor Lazzarini :
> Can you file a ticket?
> On 6 Dec 2013, at 11:46, Oeyvind Brandtsegg  wrote:
>
>> Hi,
>>
>> It seems there is a problem with negative instrument numbers and event
>> in csound6 (?)
>>
>> See example below, renders ok in csound 5 but produce the following
>> console output in 6
>>
>> SECTION 1:
>> new alloc for instr 1:
>>  rtevent:         T  0.000 TT  0.000 M:  0.15666  0.15666
>> new alloc for instr 2:
>> B  0.000 ..  3.000 T  3.000 TT  3.000 M:  0.31623  0.31623
>> insert_score_event(): invalid instrument number or name
>> PERF ERROR in instr 1: event: error creating 'i' event
>>        event   "i"     #i3     0       1       #i4     880
>>   note aborted
>> B  3.000 ..  5.000 T  5.000 TT  5.000 M:  0.15666  0.15666
>> Score finished in csoundPerform().
>> inactive allocs returned to freespace
>> end of score.              overall amps:  0.31623  0.31623
>>           overall samples out of range:        0        0
>> 1 errors in performance
>>
>> best
>> Oeyvind
>>
>> ***
>> 
>> 
>> -otest.wav
>> 
>>
>> 
>>
>>    sr    = 48000
>>    ksmps    = 10
>>    nchnls    = 2
>>    0dbfs    = 1
>>
>>    giSine        ftgen    0, 0, 65537, 10, 1                    ; sine wave
>>
>> ;********************************************
>>    instr 1
>>    iamp    = ampdbfs(p4)
>>    a1    oscil iamp, p5, giSine
>>        outs a1, a1
>>    kmode    init p6
>> if kmode > 0 goto startme
>> if kmode < 0 goto stopme
>> goto done
>>
>> startme:
>>    event    "i", 2, 0, -1, -5, 880
>>    kmode     = 0
>>    goto done
>>
>> stopme:
>>    event    "i", -2, 0, 1, -5, 880
>>    kmode     = 0
>>    goto done
>>
>> done:
>>    endin
>>
>>    instr 2
>>    iamp    = ampdbfs(p4)
>>    a1    oscil iamp, p5, giSine
>>        outs a1, a1
>>    endin
>>
>> 
>> 
>> i1 0 1 -10 440 1
>> i1 3 1 -10 440 -1
>> f0 5
>> e
>> 
>> 
>>
>> ***
>>
>>
>> --
>>
>> Oeyvind Brandtsegg
>> Professor of Music Technology
>> NTNU
>> 7491 Trondheim
>> Norway
>> Cell: +47 92 203 205
>>
>> http://flyndresang.no/
>> http://www.partikkelaudio.com/
>> http://soundcloud.com/brandtsegg
>> http://soundcloud.com/t-emp
>>
>> ------------------------------------------------------------------------------
>> Sponsored by Intel(R) XDK
>> Develop, test and display web and hybrid apps with a single code base.
>> Download it for free now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> Sponsored by Intel(R) XDK
> Develop, test and display web and hybrid apps with a single code base.
> Download it for free now!
> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel



-- 

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp

------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net