|
Hi Mr. Alexander,
i've tryed your examples and work well. I'm on vista with csound 5.10, but i
don't believe this is important in this case. Are you sure that was same
seed value ?
Hope helpful
ciao,
fran
Alexandros Droseltis-6 wrote:
>
> Hello!
>
> I am using csound "Csound version 5.09" provided by the rpm for
> openSuSE.
>
> I will give here a minimal example in order to demonstrate a problem
> that I encountered.
>
> Have a look at the file at the end of this message. It creates 4 random
> notes. Having set "seed 0" I get once a result, that I consider
> interesting. Csound gives in the output info
>
> Seeding from current time 1061022902
>
> So next time I set "seed 1061022902" in order to keep this trajectory.
> But I get a different one as Csound outputs
>
> Seeding with 1061022912
>
> What am I understanding incorrectly? How could I set the seed at the
> desired value (the one that gave me a satisfactory result when seed was
> set to 0)?
>
> Thanks for any help
>
> Alexandros
>
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
>
>
>
>
> -d -o seed.wav
>
>
>
> sr = 44100
> kr = 4410
> ksmps = 10
> nchnls = 1
>
> instr 1
> seed 0
> igrain = 1
> start: timout 0, igrain, continue
> reinit start
> continue:
> irand unirand 12
> inote = floor(irand)
> kenv linseg 0, igrain/2, 1, igrain/2, 0
> a1 oscil kenv*20000, cpsoct(8+inote/12), 1
> out a1
> endin
>
>
>
> f1 0 8192 10 1
> i1 0 4
> e
>
>
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>
--
View this message in context: http://www.nabble.com/same-seed-tp24569211p24574450.html
Sent from the Csound - General mailing list archive at Nabble.com.
|