[Csnd] randomi prerelease suggestion
Date | 2012-05-27 11:03 |
From | peiman khosravi |
Subject | [Csnd] randomi prerelease suggestion |
I while ago I brought this up on the list but it doesn't look like it has been changed. The 'randomi' opcode (and all the corresponding interpolating random number generators like 'gaussi' and so on) take at least one period before they start the interpolation. As the attached orchestra shows in the case of very low frequencies this can be a problem. Thanks Peiman <CsoundSynthesizer> <CsOptions> -W -odac </CsOptions> <CsInstruments> sr = 44100 kr = 4410 ksmps = 10 nchnls = 1 instr 1 ;Simple sine at 440Hz ares randi 1, p4 ares = ares+1.2 k1 linen 10000, 0.1, p3, 0.1 a1 oscili k1,440*ares,1 out a1 endin </CsInstruments> <CsScore> f1 0 4096 10 1 ;frequency of randomi i1 0 10 .1 </CsScore> </CsoundSynthesizer> |
Date | 2012-05-27 12:26 |
From | PINOT Francois |
Subject | Re: [Csnd] randomi prerelease suggestion |
Hello Peiman, we add this discussion on the list in the end of 2010 I think. I then added two arguments (imode and ifirstval) to randomi and to randomh. When using those opcodes with imode=2, you can specify a value in ifirstval which will be used as the starting value for an immediate interpolation. These new features are described in the manual. So maybe using randomi is a workaround for your example? Regards Francois Le 27/05/2012 12:03, peiman khosravi a écrit : > I while ago I brought this up on the list but it doesn't look like it > has been changed. The 'randomi' opcode (and all the corresponding > interpolating random number generators like 'gaussi' and so on) take > at least one period before they start the interpolation. As the > attached orchestra shows in the case of very low frequencies this can > be a problem. > > Thanks > Peiman > > > |
Date | 2012-05-27 13:46 |
From | peiman khosravi |
Subject | Re: [Csnd] randomi prerelease suggestion |
Ahh that's entirely my fault. I didn't check the different modes. Would it be possible to add this to all the other interpolating random opcodes too (e.g. gaussi)? Thanks Peiman
On 27 May 2012 12:26, PINOT Francois <fggpinot@gmail.com> wrote: Hello Peiman, |