back to list

with and without iseed @ csound

🔗BUYO-BUYO-IGOR <buyobuyo.geo@yahoo.com>

6/2/2001 1:39:09 PM

Hi!

this is about csound-ing

i know that
this(=things@the bottom of this mail) pair of orc&sco
i'm writing for my microtuned music
will always give the same result
whenever i give it a render
but
wanna make it behave differently
by just replacing 1-2 value (0 things is better) in orc-file
before each run

is this possible without adding
additional p-fields to the sco-file?

i learned that
"rnd" do not reference seed
i'd better rewite things with "rand"
to take the advantage of "iseed"ings ?
if yes
what i'm wondering is

"is the 1st appearing rand with iseed
effective to the comming other (replaced) rand (without iseed)?"

imean..

"what's the difference between
feeding each rand its iseed
vs
only giving the 1st appearing its iseed?"

"will the rand without iseed
always behave the same
even if other rand with iseed
appears before that without one?"

does this have something to do with
"a negative value will cause seed re-initialization to be skipped."
in the manual?

thanks in advance!!

---orc---

sr = 22050
kr = 22050
ksmps = 1
nchnls = 2

instr 1
inote1 = p5
inote2 = p5 * int(rnd(8)+8)/8
inote3 = p5 * int(rnd(8)+8)/8
kpan1 randi 0.5 , rnd(3)+2
kamp1 linseg 0,p3*.01,p4,p3*.04,p4*.2,p3*.25,p4*.2,p3*.01,p4*.7,p3*.04,p4*.1,
p3*.25,p4*.1,p3*.01,p4*.35,p3*.04,p4*.05,p3*.35,0
kpan2 randi 0.5 , rnd(5)+2
kamp2 linseg 0,p3*.03,p4,p3*.04,p4*.2,p3*.25,p4*.2,p3*.04,p4*.7,p3*.04,p4*.1,
p3*.22,p4*.1,p3*.01,p4*.35,p3*.04,p4*.05,p3*.33,0
kpan3 randi 0.5 , rnd(5)+2
kamp3 linseg 0,p3*.02,p4,p3*.05,p4*.2,p3*.20,p4*.2,p3*.01,p4*.7,p3*.09,p4*.1,
p3*.28,p4*.1,p3*.01,p4*.35,p3*.04,p4*.05,p3*.30,0
asigr1 oscil kamp1 * (kpan1+0.5) , inote1 , 1
asigl1 oscil kamp1 * (1-(kpan1+0.5)) , inote1 , 1
asigr2 oscil kamp2 * (kpan2+0.5) , inote2 , 2
asigl2 oscil kamp2 * (1-(kpan2+0.5)) , inote2 , 3
asigr3 oscil kamp3 * (kpan3+0.5) , inote3 , 3
asigl3 oscil kamp3 * (1-(kpan3+0.5)) , inote3 , 2
outs asigr1+asigr2+asigr3 , asigl1+asigl2+asigl3
endin

---sco---

f1 0 8192 10 1
f2 0 8192 10 3 1 0 1 2
f3 0 8192 10 1 1 1 1 1 0 1 0 1 1 0 0 1

;ins strt dur amp hz

i1 0.5 3.2 6300 128.478
i1 0.5 2.2 6000 128.478
i1 2.8 1.1 6500 128.478
i1 2.7 4.21 6700 289.076
i1 3.9 2.5 6500 192.717
i1 4.1 3.9 6440 417.554
i1 7.2 2.6 6000 128.478
i1 7.9 3.5 6500 256.957
i1 9.2 1.9 6000 321.196
i1 9.4 2.17 5300 240.897
i1 12.8 2 6500 224.837
i1 13.1 1.7 7300 128.478

e

BUYO-BUYO-IGOR------------------------------------
http://listen.to/igor

microtuned
http://kiss.to/my-head
will be co-created
@
http://listen.to/elh

🔗J P Fitch <jpff@maths.bath.ac.uk>

6/4/2001 4:21:12 AM

You can seed the random number generation from the clock, so yes you
can make it different every time (as long as each run is 2secs apart
on Atari, 1se on windows....)

==John ffitch