Csound Csound-dev Csound-tekno Search About

[Csnd] Re: sensekey problem

Date2007-12-23 20:11
Fromvictor
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" 


Date2007-12-23 20:24
Fromjoachim heintz
Subject[Csnd] Re: Re: sensekey problem
I see ... - so I can't use it in this way. Thanks for the reply!

	joachim



Am 23.12.2007 um 21:11 schrieb victor:

> 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"


Date2007-12-25 20:17
FromLou Cohen
Subject[Csnd] Re: Re: Re: sensekey problem
Re: [Csnd] Re: Re: sensekey problem You can create an instrument that is always on, and have it capture the key strokes. It can then store the appropriate values in global variables which your other instruments then read.

-Lou


On 12/23/07 15:24, "    joachim heintz" <jh@joachimheintz.de> wrote:

I see ... - so I can't use it in this way. Thanks for the reply!

    joachim



Am 23.12.2007 um 21:11 schrieb victor:

> 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"  
> <jh@joachimheintz.de>
> To: <csound@lists.bath.ac.uk>
> 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
>>
>>
>> <CsoundSynthesizer>
>> <CsInstruments>
>> 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
>> </CsInstruments>
>> <CsScore>
>> i1 0 9999
>> i2 0 9999
>> </CsScore>
>> </CsoundSynthesizer>
>>
>>
>> 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"



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


---------------------------
Permanent email:           loucohen@jolc.net
Music and video:            http://ruccas.org/wiki.pl/Lou_Cohen
More music and video:   http://www.youtube.com/loucohen
Astronomy:                    http://www.jolc.net
----------------------------