[Csnd] A group of identical instruments
Date | 2009-04-03 18:12 |
From | "BERMAN L.I." |
Subject | [Csnd] A group of identical instruments |
Let's say we want to create a group of 20 identical instruments to be played simultaneously. Does csound have short-cut way to do that rather than create instr 1, instr 2, ..., instr 20? And even better, does csound have a way to simply use the next available instrument rather than calling out i1, i2, ..., i20 in the score? |
Date | 2009-04-03 18:39 |
From | victor |
Subject | [Csnd] Re: A group of identical instruments |
you can set up one instrument to loop and call
your
20 instrs, using the event opcode. If the
instruments
are identical, you can use just 1 instr definition
and
call it 20 times.
ex.:
<CsoundSynthesizer>
<CsOptions> </CsOptions> <CsInstruments> sr= 44100
ksmps = 64 0dbfs=1 instr 1
k1 init 0 begin: event "i",2,0,10,0.5/(k1+1),100*k1 k1 = k1 +1 if (k1 < 20) kgoto begin turnoff endin instr 2
a1 oscili p4, p5,1 out a1 endin </CsInstruments>
<CsScore> f1 0 16384 10 1
i1 0 1
</CsScore>
</CsoundSynthesizer> ----- Original Message -----
|
Date | 2009-04-03 18:43 |
From | Oeyvind Brandtsegg |
Subject | [Csnd] Re: A group of identical instruments |
when defining instruments, you can assign several instrument numbers to one definition like this: instr 1,2,3,4,5 ...blabla endin For you score issue, I'm not sure of a solution. but if you just want to play all 20 of them simultaneously, you could use score macros to define a 20-instrument call. best Oeyvind 2009/4/3 BERMAN L.I. |
Date | 2009-04-03 19:48 |
From | victor |
Subject | [Csnd] Re: Re: A group of identical instruments |
I often wondered what are the applications of this multiple-number definition, as I never used that myself. I can't think of any use for it. Victor ----- Original Message ----- From: "Oeyvind Brandtsegg" |
Date | 2009-04-03 20:14 |
From | Anthony Kozar |
Subject | [Csnd] Re: A group of identical instruments |
The real question I suppose is what are you trying to accomplish by creating 20 identical instruments and rotating through them in the score that cannot be accomplished with a single instrument? Anthony Kozar mailing-lists-1001 AT anthonykozar DOT net http://anthonykozar.net/ Oeyvind Brandtsegg wrote on 4/3/09 1:43 PM: > when defining instruments, you can assign several instrument numbers > to one definition like this: > > instr 1,2,3,4,5 > ...blabla > endin > > For you score issue, I'm not sure of a solution. > but if you just want to play all 20 of them simultaneously, you could > use score macros to define a 20-instrument call. > > best > Oeyvind > > 2009/4/3 BERMAN L.I. |
Date | 2009-04-03 20:46 |
From | Anthony Kozar |
Subject | [Csnd] Re: A group of identical instruments |
victor wrote on 4/3/09 2:48 PM: > I often wondered what are the applications of this multiple-number > definition, as I never used that myself. I can't think of any use for it. It makes it easy to define the same instrument on multiple MIDI channels, I suppose. But flexible instrument ordering for signal routing has always seemed more significant to me. Ex. ; my sound-producing instr instr 1 ... zaw aout, p4 endin ; chorus instr 11, 21, 31, 41, 51 ain zar p5 aout Chorus ain, ... zaw aout, p4 endin ; flanger instr 12, 22, 32, 42, 52 ain zar p5 aout Flange ain, ... zaw aout, p4 endin ; distortion instr 13, 23, 33, 43, 53 ain zar p5 aout Dist ain, ... zaw aout, p4 endin ; other effects instruments, etc. ; mixer instr instr 100 ain zar p5 out ain * p4 endin ; in the score ; zak out zak in ; (or amp) i 1 0 5 1 i 11 0 5 2 1 ; chorus i 23 0 5 3 2 ; then distortion i 100 0 5 1.0 3 i 1 0 5 1 i 13 0 5 2 1 ; distortion i 22 0 5 3 2 ; then flanger i 31 0 5 4 3 ; then chorus i 100 0 5 1.0 4 Anthony Kozar mailing-lists-1001 AT anthonykozar DOT net http://anthonykozar.net/ |
Date | 2009-04-03 20:54 |
From | victor |
Subject | [Csnd] Re: Re: A group of identical instruments |
I see; good idea about the flexible routing. Everyday you learn a new thing. Thanks Victor ----- Original Message ----- From: "Anthony Kozar" |
Date | 2009-04-03 21:23 |
From | root |
Subject | [Csnd] Re: A group of identical instruments |
???? why not just use one instrment? Csound can run a lrge number of notes with on instrument. What have i failed to understand? ==John ff |
Date | 2009-04-03 21:31 |
From | Anthony Kozar |
Subject | [Csnd] Re: A group of identical instruments |
It's nice to be able to do this in Csound. But it is a rather non-obvious solution that can be difficult to follow when you go back to look at a piece later. This is one reason why I would like a way in Csound 6 to accomplish the same goal without worrying about instrument order. For some use cases, UDOs would suffice, but probably not for others. Anthony victor wrote on 4/3/09 3:54 PM: > I see; good idea about the flexible routing. Everyday you > learn a new thing. Thanks |