Csound Csound-dev Csound-tekno Search About

Re: clicking instrument

Date2006-04-17 13:29
FromIstvan Varga
SubjectRe: clicking instrument
AttachmentsNone  

Date2006-04-17 14:14
FromVictor Lazzarini
SubjectRe: clicking instrument
The difference is that when oscil looks up
the table, it dicards the fractional part (truncates)
of the table index. So if the index is 100.5, it
uses 100 as the index and takes the value from that
position.

Oscili, on the other had, interpolates between the
values of two adjacent table positions, if the index
falls between them. In the case above, it taks 50% of
pos 100 and 50% of pos 101.

The result is that you have a cleaner signal, with a
little more computation to go with it. The SNR of
a truncating oscillator is worse.

However, as memory is not a constraint these days, you
can use truncating oscillators with large tables which
will give you similar SNRs to interpolating oscillators
with smaller tables. The overall SNR will always depend
on the size of your function table.

Victor

>
> Thank you very much Steven
> With what you said and a little change in the
> enveloppe the click is not anymore.
> Why is that ?
> I never understood the diference between
> these two opcode oscil and oscili
>
> Nicolas
>
> --- Steven Yi  a écrit :
>
> > Hi Nicolas,
> >
> > I tried it and if I understand you correctly, you
> > can get rid of this
> > clicks by changing:
> >
> > klfo    oscil   1, kline1, 3
> >
> > to
> >
> > klfo    oscili   1, kline1, 3
> >
> > I think with the low frequencies the steps of the
> > table values are
> > "showing through".
> >
> > steven
> >
> >
> > On 4/17/06, Drweski nicolas 
> > wrote:
> > > Hi
> > >
> > > I have problem with this instrument
> > > the click are deranging me
> > > during the frequency crescendo. Does anyone knows
> > how
> > > to prevent  it ?
> > >
> > > Nicolas
> > >
> > > the instrument does like this
> > >
> > > sr              =               44100
> > > kr              =               4410
> > > ksmps   =               10
> > > nchnls  =               2
> > >
> > > garvb   init    0
> > >
> > >                 instr   1
> > >
> > > idur    =               p3
> > > iamp    =               p4
> > > ifrq    =               p5
> > > irvbsnd =               .3
> > > ipanfrq  random .25, 1
> > > kenv     linen  iamp, p3*0.01, p3, p3*0.01
> > > kpan     oscil  .5, ipanfrq, 1
> > > kgauss gauss 50
> > > kline2 linseg ifrq/2, p3*.02, ifrq*2, p3*0.98,
> > ifrq*2
> > > kline1 = (kline2 / 70)+kgauss
> > > klfo    oscil   1, kline1, 3
> > > asig    oscil   klfo*kenv, kline2, 2
> > >
> > >         outs    asig*kpan, asig*(1-kpan)
> > >
> > > garvb   =               garvb+(asig*irvbsnd)
> > >
> > >                 endin
> > >
> > >                 instr   2
> > >
> > > idur    =               p3
> > > irvbtim =               p4
> > > ihiatn  =               p5
> > > arvb    nreverb garvb, irvbtim, ihiatn
> > >                 outs            arvb, arvb
> > > garvb   =               0
> > >
> > >                 endin
> > >
> > > the score is
> > >
> > > f1  0 4096 10   1
> > > f2  0 4096 10   1  .5 .333 .25 .2 .166 .142 .125
> > .111
> > > .1 .09 .083 .076 .071 .066 .062
> > > f3      0 513   7       0       10  1  246      1
> >      10   0  246    0
> > >
> > >
> > >
> > > i2  0   360     2         .8
> > > i1  0   360   10000  330
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> __________________________________________________________
> > > _________________ Faites de Yahoo! votre page
> > d'accueil sur le web pour retrouver directement vos
> > services préférés : vérifiez vos nouveaux mails,
lancez
> > vos recherches et suivez l'actualité en temps réel.
> > > Rendez-vous sur http://fr.yahoo.com/set
> > > --
> > > Send bugs reports to this list.
> > > To unsubscribe, send email to
> > csound-unsubscribe@lists.bath.ac.uk
> > >
> > --
> > Send bugs reports to this list.
> > To unsubscribe, send email to
> > csound-unsubscribe@lists.bath.ac.uk
> >
>
>
>
>
>
>
>
> __________________________________________________________
> _________________  Faites de Yahoo! votre page d'accueil
> sur le web pour retrouver directement vos services
> préférés : vérifiez vos nouveaux mails, lancez vos
> recherches et suivez l'actualité en temps réel.
> Rendez-vous sur http://fr.yahoo.com/set --
> Send bugs reports to this list.
> To unsubscribe, send email to
> csound-unsubscribe@lists.bath.ac.uk