Csound Csound-dev Csound-tekno Search About

[Csnd] clearchn with instances

Date2020-03-07 18:49
Fromjacqouemin
Subject[Csnd] clearchn with instances
Hi all,

is there a way to use clearchn with instances? clearchn can receive only
String and I'm asking how can I tell him that I want to clear only one
instance of that instrument.

I would like to create four instances of a named instrument (e.g. a delay)
that receive from the same source from a chnget (e.g. a Pluck). In order to
do so I need to create another instrument that control the delay and create
multiple instances of it:

        kinstr = nstrnum("Delay") + (kndx/10))
	if (kndx == 4) then
		kndx = 1
	else
		kndx += 1
	endif

But at the same time I need clear the source (if not it exploses), but if I
do so, the other instances don't receive the chnget because it is cleared!

Thank you,

Best,

j



--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2020-03-07 19:03
Fromjacqouemin
SubjectRe: [Csnd] clearchn with instances
I am sorry, it is not the source that needs to be cleared, but it is the
delay!



--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here