From: John Harrison ()
Date: Apr 3, 2005
Subject:
Re: monophonic instrument in one instrument
Okay now I get what you want, and your code makes sense. I think the
ckgoto statement isn't doing what we expect because, since both
variables are i rate, perhaps Csound assumes they cannot change after i
time. It doesn't recognize the difference between i time locally and i
time globally. At least that's my guess. So I replaced your ckgoto
statement in your original code with:
kkey = gi_key
ckgoto (ikey!=kkey), end
and now the code works as I would expect...which is to say it still
doesn't do what you want. If you play note 1, then note 2 while holding
note 1, then release note 2 while still holding note 1, you will hear
silence...but this makes sense and....maybe you can take it from here.
There might be a way to fix this using reinit and active opcodes...
-John
Atte André Jensen wrote:
> John Harrison wrote:
>
>> If I play note 1, then I play note 2 while still holding note 1, is a
>> mono instrument supposed to jump to note 2 or stay on note 1?
>
>
> Jump to note 2
>
-- [EMAIL REMOVED] (or to http://www.cs.bath.ac.uk/cgi-bin/csound ) [EMAIL REMOVED]