Anton, is it what you want?
-d -odac
zakinit 1, 1
instr A
k1 oscili 1, 1/p3, 21
a1 oscili 8000*k1, p4, 1
zawm a1, 1
endin
instr B
event_i "i", "A", 0, 0.5, 440
event_i "i", "A", 0.5, 0.5, 330
event_i "i", "A", 1, 1, 220
event_i "i", "A", 2, 0.5, 220
event_i "i", "A", 2.5, 0.5, 330
event_i "i", "A", 3, 1, 440
a1 zar 1
out a1
zacl 1, 1
endin
instr C
a1 subinstr "B", 0, p3
out p4*a1
endin
f1 0 4096 10 1
f21 0 17 5 1 16 0.01
i"C" 0 7 0.5
i"C" 0.25 0.2 1
e
tito
On Sun, Nov 20, 2011 at 06:33:16PM +0300, Anton Kholomiov wrote:
> 2011/11/20 Victor Lazzarini
>
> > And what is the difference between instr 2 & 3? I don't follow.
> >
> > Difference is hidden by sequence of dots)
> Your solution requires one named channel per instance,
> I've tried to do it another way and I've run into strange behavior.
> I'm trying to redirect the output of instrument with SignalFlow
> opcodes. Instrument B collects all notes for instrument A.
> Then some another instrument invokes B with subinstr
> opcode. But it doesn't work as expected. I'm invoking
> instrument C twice, one is long note (it plays all A's notes)
> and one is short note (it plays only one A's note),
> but I can hear both notes as if they are long notes.
> What am I missing here?
>
> Here is the code:
>
>
>
> -d -odac
>
>
>
>
> connect "A", "out", "B", "in"
>
> instr A
> k1 oscili 1, 1/p3, 21
> a1 oscili 8000*k1, p4, 1
> outleta "out", a1
> endin
>
> instr B
> event_i "i", "A", 0, 0.5, 440
> event_i "i", "A", 0.5, 0.5, 330
> event_i "i", "A", 1, 1, 220
> event_i "i", "A", 2, 0.5, 220
> event_i "i", "A", 2.5, 0.5, 330
> event_i "i", "A", 3, 1, 440
>
> a1 inleta "in"
> out a1
> endin
>
>
> instr C
> a1 subinstr "B", 0, p3
> out p4*a1
> endin
>
>
>
>
> f1 0 4096 10 1
>
> f21 0 17 5 1 16 0.01
>
> i"C" 0 7 0.5
> i"C" 0.25 0.2 1
> e
>
>
>
> Send bugs reports to the Sourceforge bug tracker
> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
Send bugs reports to the Sourceforge bug tracker
https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"