Csound Csound-dev Csound-tekno Search About

[Csnd] negative p1 not working

Date2013-02-04 23:19
Fromjoachim heintz
Subject[Csnd] negative p1 not working
hi -

i just wanted to use the feature of turning off an instrument by sending 
a negative p1. this is described in 
http://www.csounds.com/manual/html/i.html, and i think i used it rather 
frequently. but now i only get the message "could not find playing 
instrument ..." - so i am wondering if i am doing something wrong, or 
something is not working properly. this is a simple example:



instr 1
ktrig metro 1
printk2 ktrig
endin


i 1 0 6
i -1 3



and this is the output (csound 5.19.02):
SECTION 1:
new alloc for instr 1:
  i1     1.00000
  i1     0.00000
  i1     1.00000
  i1     0.00000
  i1     1.00000
  i1     0.00000
B  0.000 ..  3.000 T  3.000 TT  3.000 M:      0.0
could not find playing instr 1.000000
  i1     1.00000
  i1     0.00000
  i1     1.00000
  i1     0.00000
  i1     1.00000
  i1     0.00000
B  3.000 ..  6.000 T  6.000 TT  6.000 M:      0.0
Score finished in csoundPerformKsmps().

thanks -
	joachim

Date2013-02-05 02:37
FromAdam Puckett
SubjectRe: [Csnd] negative p1 not working
instr 1 turned off 3 secs in. I'm not sure why it says that. Try it
with an audio signal to confirm that you're doing it right. I'm
thinking maybe it's because nothing is actually output? But I don't
know.

On 2/4/13, joachim heintz  wrote:
> hi -
>
> i just wanted to use the feature of turning off an instrument by sending
> a negative p1. this is described in
> http://www.csounds.com/manual/html/i.html, and i think i used it rather
> frequently. but now i only get the message "could not find playing
> instrument ..." - so i am wondering if i am doing something wrong, or
> something is not working properly. this is a simple example:
>
> 
> 
> instr 1
> ktrig metro 1
> printk2 ktrig
> endin
> 
> 
> i 1 0 6
> i -1 3
> 
> 
>
> and this is the output (csound 5.19.02):
> SECTION 1:
> new alloc for instr 1:
>   i1     1.00000
>   i1     0.00000
>   i1     1.00000
>   i1     0.00000
>   i1     1.00000
>   i1     0.00000
> B  0.000 ..  3.000 T  3.000 TT  3.000 M:      0.0
> could not find playing instr 1.000000
>   i1     1.00000
>   i1     0.00000
>   i1     1.00000
>   i1     0.00000
>   i1     1.00000
>   i1     0.00000
> B  3.000 ..  6.000 T  6.000 TT  6.000 M:      0.0
> Score finished in csoundPerformKsmps().
>
> thanks -
> 	joachim
>
>
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>

Date2013-02-05 07:26
FromOeyvind Brandtsegg
SubjectRe: [Csnd] negative p1 not working
I think the instrument event must have an infinite duration to begin with.
So, this works:

i 1 0 -1
i -1 3

best
Oeyvind



2013/2/5 Adam Puckett <adotsdothmusic@gmail.com>
instr 1 turned off 3 secs in. I'm not sure why it says that. Try it
with an audio signal to confirm that you're doing it right. I'm
thinking maybe it's because nothing is actually output? But I don't
know.

On 2/4/13, joachim heintz <jh@joachimheintz.de> wrote:
> hi -
>
> i just wanted to use the feature of turning off an instrument by sending
> a negative p1. this is described in
> http://www.csounds.com/manual/html/i.html, and i think i used it rather
> frequently. but now i only get the message "could not find playing
> instrument ..." - so i am wondering if i am doing something wrong, or
> something is not working properly. this is a simple example:
>
> <CsoundSynthesizer>
> <CsInstruments>
> instr 1
> ktrig metro 1
> printk2 ktrig
> endin
> </CsInstruments>
> <CsScore>
> i 1 0 6
> i -1 3
> </CsScore>
> </CsoundSynthesizer>
>
> and this is the output (csound 5.19.02):
> SECTION 1:
> new alloc for instr 1:
>   i1     1.00000
>   i1     0.00000
>   i1     1.00000
>   i1     0.00000
>   i1     1.00000
>   i1     0.00000
> B  0.000 ..  3.000 T  3.000 TT  3.000 M:      0.0
> could not find playing instr 1.000000
>   i1     1.00000
>   i1     0.00000
>   i1     1.00000
>   i1     0.00000
>   i1     1.00000
>   i1     0.00000
> B  3.000 ..  6.000 T  6.000 TT  6.000 M:      0.0
> Score finished in csoundPerformKsmps().
>
> thanks -
>       joachim
>
>
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"




--

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

Date2013-02-05 11:27
Fromjoachim heintz
SubjectRe: [Csnd] negative p1 not working
yes, but in the manual page http://www.csounds.com/manual/html/i.html 
this is the example:

 >>
i 1.1    1    300    8.00
i 1.2    1    300    8.04
i 1.3    1    -300    8.07
i 1.3    1    -300    8.09
; notice that p-fields after p2 will be ignored if
; instrument number is negative
i -1.1    3    1    4.00
i -1.2    4    51    4.04
i -1.3    5    1    4.07
i -1.3    6    10    4.09
<<

so i think it should work for both, instrument events with negative and 
positive duration, and i seem to remember it helped me some time with 
usual (positive) durations when turnoff2 had some problems.

best -

	joachim


Am 05.02.2013 08:26, schrieb Oeyvind Brandtsegg:
> I think the instrument event must have an infinite duration to begin with.
> So, this works:
>
> i 1 0 -1
> i -1 3
>
> best
> Oeyvind
>
>
>
> 2013/2/5 Adam Puckett  >
>
>     instr 1 turned off 3 secs in. I'm not sure why it says that. Try it
>     with an audio signal to confirm that you're doing it right. I'm
>     thinking maybe it's because nothing is actually output? But I don't
>     know.
>
>     On 2/4/13, joachim heintz      > wrote:
>      > hi -
>      >
>      > i just wanted to use the feature of turning off an instrument by
>     sending
>      > a negative p1. this is described in
>      > http://www.csounds.com/manual/html/i.html, and i think i used it
>     rather
>      > frequently. but now i only get the message "could not find playing
>      > instrument ..." - so i am wondering if i am doing something wrong, or
>      > something is not working properly. this is a simple example:
>      >
>      > 
>      > 
>      > instr 1
>      > ktrig metro 1
>      > printk2 ktrig
>      > endin
>      > 
>      > 
>      > i 1 0 6
>      > i -1 3
>      > 
>      > 
>      >
>      > and this is the output (csound 5.19.02):
>      > SECTION 1:
>      > new alloc for instr 1:
>      >   i1     1.00000
>      >   i1     0.00000
>      >   i1     1.00000
>      >   i1     0.00000
>      >   i1     1.00000
>      >   i1     0.00000
>      > B  0.000 ..  3.000 T  3.000 TT  3.000 M:      0.0
>      > could not find playing instr 1.000000
>      >   i1     1.00000
>      >   i1     0.00000
>      >   i1     1.00000
>      >   i1     0.00000
>      >   i1     1.00000
>      >   i1     0.00000
>      > B  3.000 ..  6.000 T  6.000 TT  6.000 M:      0.0
>      > Score finished in csoundPerformKsmps().
>      >
>      > thanks -
>      >       joachim
>      >
>      >
>      > Send bugs reports to the Sourceforge bug tracker
>      > https://sourceforge.net/tracker/?group_id=81968&atid=564599
>      > Discussions of bugs and features can be posted here
>      > To unsubscribe, send email sympa@lists.bath.ac.uk
>      with body "unsubscribe
>      > csound"
>      >
>      >
>
>
>     Send bugs reports to the Sourceforge bug tracker
>     https://sourceforge.net/tracker/?group_id=81968&atid=564599
>     Discussions of bugs and features can be posted here
>     To unsubscribe, send email sympa@lists.bath.ac.uk
>      with body "unsubscribe csound"
>
>
>
>
> --
>
> 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