Csound Csound-dev Csound-tekno Search About

[Csnd] test if instrument instance is active/Theremin

Date2012-06-26 21:14
Fromzappfinger
Subject[Csnd] test if instrument instance is active/Theremin
I am having much fun with the Parallax Ping ultrasonic sensor via Arduino to
csound, as a sort of theremin.
But I would like to trigger an instrument only if its p3 has elapsed
(inactive?). Is this possible?

Richard

--
View this message in context: http://csound.1045644.n5.nabble.com/test-if-instrument-instance-is-active-Theremin-tp5713925.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2012-06-26 21:21
FromRory Walsh
SubjectRe: [Csnd] test if instrument instance is active/Theremin
I'm sure there are a few ways but one would be to use the active
opcode to check if the instrument is still active before triggering it
again. You'd need to use some sort of controlling instrument to
trigger the other instrument. I'd use event or some such opcode for
the triggering. Sounds like fun.

On 26 June 2012 21:14, zappfinger  wrote:
> I am having much fun with the Parallax Ping ultrasonic sensor via Arduino to
> csound, as a sort of theremin.
> But I would like to trigger an instrument only if its p3 has elapsed
> (inactive?). Is this possible?
>
> Richard
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/test-if-instrument-instance-is-active-Theremin-tp5713925.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> 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"
>


Date2012-06-27 02:00
FromLouis Cohen
SubjectRe: [Csnd] test if instrument instance is active/Theremin
A related point: if you plan to "turnoff" any instruments, for example  
before starting new ones, be sure that the instruments you "turnoff"  
have higher instrument numbers than the one which is executing  
"turnoff." The turnoff opcode must be executed earlier in the k-cycle  
than the instruments being turned off.

-Lou



On Jun 26, 2012, at 4:21 PM, Rory Walsh wrote:

> I'm sure there are a few ways but one would be to use the active
> opcode to check if the instrument is still active before triggering it
> again. You'd need to use some sort of controlling instrument to
> trigger the other instrument. I'd use event or some such opcode for
> the triggering. Sounds like fun.
>
> On 26 June 2012 21:14, zappfinger  wrote:
>> I am having much fun with the Parallax Ping ultrasonic sensor via  
>> Arduino to
>> csound, as a sort of theremin.
>> But I would like to trigger an instrument only if its p3 has elapsed
>> (inactive?). Is this possible?
>>
>> Richard
>>
>> --
>> View this message in context: http://csound.1045644.n5.nabble.com/test-if-instrument-instance-is-active-Theremin-tp5713925.html
>> Sent from the Csound - General mailing list archive at Nabble.com.
>>
>>
>> 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"
>


Date2012-06-27 11:22
Fromzappfinger
Subject[Csnd] Re: test if instrument instance is active/Theremin
I use event to trigger the other instrument.
So every 100 ms new data comms in from the Arduino and then an event "i.."
is fired with some duration.

Am I correct in assuming that if this duration is longer than 100 ms,
another instance of the instrument is triggered, and so on?

Is an instrument automatically turned off when its duration passes?

It is fun indeed...



--
View this message in context: http://csound.1045644.n5.nabble.com/test-if-instrument-instance-is-active-Theremin-tp5713925p5713945.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2012-06-27 11:39
FromOeyvind Brandtsegg
SubjectRe: [Csnd] Re: test if instrument instance is active/Theremin
Just a thought,
would it make sens to just use a monophonic "always on" instrument,
and then just update the parameters according to sensor data?
best
Oeyvind

2012/6/27 zappfinger :
> I use event to trigger the other instrument.
> So every 100 ms new data comms in from the Arduino and then an event "i.."
> is fired with some duration.
>
> Am I correct in assuming that if this duration is longer than 100 ms,
> another instance of the instrument is triggered, and so on?
>
> Is an instrument automatically turned off when its duration passes?
>
> It is fun indeed...
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/test-if-instrument-instance-is-active-Theremin-tp5713925p5713945.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> 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