[Csnd] named instruments, CompileOrc and order
Date | 2013-12-27 09:07 |
From | zappfinger |
Subject | [Csnd] named instruments, CompileOrc and order |
Say I have a Csound session like this instr name1 (instr nr 1) instr name2 (instr nr 2) instr effect1 (instr nr 3) instr effect2 (instr nr 4) when compiling this via the API with CompileOrc, the instruments get numbered like shown above How can I insert instruments with an additional CompileOrc before the effects? I tried 'instr +effect1' etc, to give the effects higher numbers, but that does not seem to work ... Richard -- View this message in context: http://csound.1045644.n5.nabble.com/named-instruments-CompileOrc-and-order-tp5730989.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2013-12-27 09:55 |
From | Tarmo Johannes |
Subject | Re: [Csnd] named instruments, CompileOrc and order |
Hi, easy way would be to reserve empty instruments like in the initial orchestra for effects instr 1 endin etc in the initial orchestra more elaborate way can be defining the instruments with several numbers, see discussion http://csound.1045644.n5.nabble.com/Order-of-triggering-instruments-td5719540.html Alex Hoffmann solved this for him and I think also wrote a paper about it. best! tarmo On Friday 27 December 2013 01:07:17 zappfinger wrote: > Say I have a Csound session like this > > instr name1 (instr nr 1) > instr name2 (instr nr 2) > instr effect1 (instr nr 3) > instr effect2 (instr nr 4)r > > when compiling this via the API with CompileOrc, the instruments get > numbered like shown above > > How can I insert instruments with an additional CompileOrc before the > effects? I tried 'instr +effect1' etc, to give the effects higher numbers, > but that does not seem to work ... > > Richard > > > > -- > View this message in context: > http://csound.1045644.n5.nabble.com/named-instruments-CompileOrc-and-order-> tp5730989.html Sent from the Csound - General mailing list archive at > Nabble.com. > > > Send bugs reports to the Sourceforge bug trackers > csound6: > https://sourceforge.net/p/csound/tickets/ > csound5: > https://sourceforge.net/p/csound/bugs/ > Discussions of bugs and features can be posted here > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe > csound" |
Date | 2013-12-27 10:14 |
From | Richard van Bemmelen |
Subject | Re: [Csnd] named instruments, CompileOrc and order |
I forgot to mention that I am using the signal flow opcodes in instrument 0, so I have to use named instruments. Thought about reserving dummy instruments too, but this does not make it clearer when I 'fill in' an instrument and want to connect it to other instruments, since I don't think I can change the name of an instrument to something meaningful afterwards.
2013/12/27 Tarmo Johannes <tarmo.johannes@otsakool.edu.ee> Hi, |
Date | 2013-12-27 16:40 |
From | David Kirsh |
Subject | Re: [Csnd] named instruments, CompileOrc and order |
Actually, you don't have to use named instruments to be able to use the signal flow opcodes, at least not in regular .orc files. But when using numbered instruments, you still have to put the number in quotation marks. E.g.: I haven't tried it without the quotation marks in a while, so maybe that's been fixed in more recent versions of Csound. But it definitely works for me with the quotes in 6.01. I've never used the API, but I assume (hope!) it would work the same.connect "1", "outL", "100", "inL" David Kirsh On Fri, Dec 27, 2013 at 5:14 AM, Richard van Bemmelen <zappfinger@gmail.com> wrote:
|
Date | 2013-12-27 22:15 |
From | zappfinger |
Subject | [Csnd] Re: named instruments, CompileOrc and order |
Thanks David, I'll give that a try.. Richard -- View this message in context: http://csound.1045644.n5.nabble.com/named-instruments-CompileOrc-and-order-tp5730989p5731007.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2013-12-28 18:15 |
From | zappfinger |
Subject | [Csnd] Re: named instruments, CompileOrc and order |
Here's my experience so far. Numbered instruments do work with the signalflow opcodes in Csound6. However, connections are not overriden by new ones, if I do CompileOrc again with another set of connections. So if I start my session with: connect "moog", "leftout", "100", "leftin" connect "moog", "rightout", "100", "rightin" connect "100", "leftout", "110", "leftin" connect "100", "rightout", "110", "rightin" connect "110", "leftout", "200", "leftin" connect "110", "rightout", "200", "rightin" and then later add (with CompileOrc): ;connect "moog", "leftout", "100", "leftin" ;connect "moog", "rightout", "100", "rightin" connect "moog2", "leftout", "100", "leftin" connect "moog2", "rightout", "100", "rightin" connect "100", "leftout", "110", "leftin" connect "100", "rightout", "110", "rightin" connect "110", "leftout", "200", "leftin" connect "110", "rightout", "200", "rightin" Instrument "moog2" is not heard, while "moog" is still heard (I also added instrument "moog2" of course) So I guess I have to do a restart or so to force a general re-compile? Richard -- View this message in context: http://csound.1045644.n5.nabble.com/named-instruments-CompileOrc-and-order-tp5730989p5731011.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2013-12-28 20:57 |
From | Michael Gogins |
Subject | Re: [Csnd] Re: named instruments, CompileOrc and order |
The orchestra header, which is where connections are defined, is not re-compiled, only named or numbered instruments are re-compiled. I thought you were considering a case where you would be replacing the definition of a named or numbered instrument with a new definition, that should work.
You can pre-create a number of connections to non-existing numbered instruments and use those with newly defined instruments, I think. That should not cause much performance overhead. Hope this helps, Mike ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Sat, Dec 28, 2013 at 1:15 PM, zappfinger <zappfinger@gmail.com> wrote: Here's my experience so far. |
Date | 2013-12-28 22:32 |
From | zappfinger |
Subject | [Csnd] Re: named instruments, CompileOrc and order |
Well, the idea was to make it flexible (like a patch synth), so any kind of connection should be possible. Like an envelope generator (instrument) could be connected to a filter but also to a delay, etc. Richard -- View this message in context: http://csound.1045644.n5.nabble.com/named-instruments-CompileOrc-and-order-tp5730989p5731018.html Sent from the Csound - General mailing list archive at Nabble.com. |