Csound Csound-dev Csound-tekno Search About

[Csnd] negative p3

Date2010-12-30 12:35
Fromfrancesco
Subject[Csnd] negative p3
Hi all,
i need an help to understand how is working this csd. I have 3 sections: i1
+ i10, i1 + i11, i1 + i12.
i1 is only a player of a sequence of brief notes, while i10, i11, i12 are
vdelay each whit different
changing delay time, i.e. i10 has fixed time, i11 uses a linear opcode and
i12 uses expon opcode.
My result is like all 3 sections were same as the first (fixed delay time).
It seems that an instrument with negative p3 it is not stopped with the s
statement. Or Like the delay line
would be always busy by the first instrument used.
If i use p3 with right time all works ok.
Apologies, it will be something of really stupid, but i am not able to
understand. 






sr			=					44100
ksmps 		=					1
nchnls		=					2
0dbfs		=					1

gifn			ftgen			1, 0, 8192, 10, 1
ga1			init				0

				instr			1

aenv			expon			1, 0.2, 0.001
a1			oscil			0.5 * aenv, cpspch(p4), 1
ga1			=					ga1 + a1
				outs1			a1
				endin

				instr			10

ims			=					1000
atime		=					700

a2			vdelay			ga1, atime, ims
				outs2			a2
ga1			=					0
				endin

				instr			11

ims			=					4000
itimemin	=					100
itimemax	=					2000

atime		linseg			itimemin, 5, itimemax, 1, itimemax

a3			vdelay			ga1, atime, ims
				outs2			a3
ga1			=					0
				endin

				instr			12

ims			=					4000
itimemin	=					100
itimemax	=					2000

atime		expseg			itimemin, 5, itimemax, 1, itimemax

a4			vdelay			ga1, atime, ims
				outs2			a4
ga1			=					0
				endin




i1 0  1		7.10
i1 +  1		7.10
i1 +  1		7.10
i1 +  1		7.10
i1 +  1		7.10
i1 +  1		7.10

i10	0	-1
s 8

i1 0  1		7.10
i1 +  1		7.10
i1 +  1		7.10
i1 +  1		7.10
i1 +  1		7.10
i1 +  1		7.10

i11	0	-1
s 8

i1 0  1		7.10
i1 +  1		7.10
i1 +  1		7.10
i1 +  1		7.10
i1 +  1		7.10
i1 +  1		7.10

i12	0	-1
s 8




francesco on ubuntu 10.04, with csound 5.12.