Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] [Csnd] Re: sensekey problem

Date2007-12-23 20:30
From"Art Hunkins"
SubjectRe: [Cs-dev] [Csnd] Re: sensekey problem
The way I deal with sensekey and multiple instruments is this: sensekey in 
instr1; instr1 processes the value returned by sensekey and via schedkwhen 
or event, triggers any number of other instruments.

Art Hunkins

P.S. I'm sending this to both lists because the regular user list refuses my 
mail (from abhunkin@uncg.edu). John ff, could you perhaps inquire about 
this? Thanks.

----- Original Message ----- 
From: "victor" 
To: 
Sent: Sunday, December 23, 2007 3:11 PM
Subject: [Csnd] Re: sensekey problem


>I don't think it's a bug. It's just that instr 1 detects the key pressed
> first, clears the buffer and then instr 2  has nothing to detect.
>
> Victor
> ----- Original Message ----- 
> From: "joachim heintz" 
> To: 
> Sent: Sunday, December 23, 2007 7:19 PM
> Subject: [Csnd] sensekey problem
>
>
>> Hello all -
>>
>> I want to use the sensekey messages in two instruments, but just the 
>> first instrunent seems to get the sensekey-messages. Is this as it 
>> should be (I didn't find anything in the manual), or is this a bug? 
>> Could anyone have a look on the example below? Just instr 1 prints  out, 
>> not both (i2 just if i1 is not active).
>>
>> Thanks -
>>
>> joachim
>>
>>
>> 
>> 
>> instr 1
>> key, kdown sense
>> if (kdown == 1) then
>> printks "ONE: key %d pressed%n", 0, key
>> endif
>> endin
>>
>> instr 2
>> key, kdown sense
>> if (kdown == 1) then
>> printks "TWO: key %d pressed%n", 0, key
>> endif
>> endin
>> 
>> 
>> i1 0 9999
>> i2 0 9999
>> 
>> 
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
>> csound"
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
> csound" 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel