Csound Csound-dev Csound-tekno Search About

[Csnd] sensekey problem

Date2007-12-23 19:19
Fromjoachim heintz
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