From: langdon crawford ()
Date: Apr 3, 2005
Subject:
Re: monophonic instrument in one instrument
feature request::
how about a polyphonic voice management opcode.
one that can take a previously declared or inlcuded insturment as a
argument, and manage its real-time polyphony. in this case you could set
the polyphony to one and this opcode would manage all the voice stealing so
only the key release of the last pressed key would silence the voice...
MSP,Kyma, and JMSL/Jsyn have this technical facility in place.
poly~, midiVoice, and allPortsInstrument() respectively.
cheers
-lcc
On 4/3/05 1:00 PM, "John Harrison" wrote:
> 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:
>=20
> kkey =3D gi_key
> ckgoto (ikey!=3Dkkey), end
>=20
> 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...
>=20
> -John
>=20
> Atte Andr=E9 Jensen wrote:
>=20
>> John Harrison wrote:
>>=20
>>> 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?
>>=20
>>=20
>> Jump to note 2
>>=20
-- [EMAIL REMOVED] (or to http://www.cs.bath.ac.uk/cgi-bin/csound ) [EMAIL REMOVED]