[Csnd] CompileOrc with same named instrument
Date | 2013-12-25 21:22 |
From | zappfinger |
Subject | [Csnd] CompileOrc with same named instrument |
What happens if I do a csound.CompileOrc(instrument) where the (named) instrument already exists? Will it be replaced? Richard -- View this message in context: http://csound.1045644.n5.nabble.com/CompileOrc-with-same-named-instrument-tp5730955.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2013-12-25 21:54 |
From | Victor Lazzarini |
Subject | Re: [Csnd] CompileOrc with same named instrument |
yes, it gets replaced. The replacement only affects new instances. On 25 Dec 2013, at 21:22, zappfinger |
Date | 2013-12-25 22:16 |
From | zappfinger |
Subject | [Csnd] Re: CompileOrc with same named instrument |
Good to know. It already looked that way. I want to make a flexible synth based on the signalflow opcodes, but these must be defined in instrument 0 and I don't think I can change the connections on the fly can I? So a solution would be to defined 'fixed' instrument names, but change their content... Richard -- View this message in context: http://csound.1045644.n5.nabble.com/CompileOrc-with-same-named-instrument-tp5730955p5730958.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2013-12-25 22:57 |
From | Victor Lazzarini |
Subject | Re: [Csnd] CompileOrc with same named instrument |
Instrument 0 works in a similar way. The only difference is that there’s no perf time, only an init-pass. So you can recompile it as the others, and it runs the init pass as soon as you compile it. The only thing to remember with global code is that system parameters such as sr, kr etc can only be set in the first compilation. Otherwise, you can compile and run it. Victor On 25 Dec 2013, at 22:16, zappfinger |
Date | 2013-12-25 23:27 |
From | Michael Gogins |
Subject | Re: [Csnd] Re: CompileOrc with same named instrument |
The signal flow graph opcodes are supposed to be thread safe so what you want to do should be possible. Let me know what happens when you try it. Regards, On Dec 25, 2013 5:16 PM, "zappfinger" <zappfinger@gmail.com> wrote:
Good to know. It already looked that way. |
Date | 2013-12-25 23:43 |
From | Richard van Bemmelen |
Subject | Re: [Csnd] Re: CompileOrc with same named instrument |
So far it is looking good! It's a Csound server (based on Pyro, BTW) and it seems to 'remember' the changes in instrument 0 as well. I want to make a patchable synth, not with cables, but with combo boxes, so all sorts of connections should be possible (within the limits of a rate or k rate, of course)
Richard 2013/12/26 Michael Gogins <michael.gogins@gmail.com>
|