Well, this is a favorite :)

http://www.youtube.com/watch?v=tCRPUv8V22o#t=5m14s

2012/2/28 Renato Fabbri <[email protected]>
>
> Lookup table in python code:
>
> ######### Lookup table ############
> def lookup(table, dur, freq):
>    """X Hz Y segundos ---- Y*44100 amostras X senoides
>    X*T*n.arange(Y*44100)/(Y*44100)"""
>
>    T=len(table)
>    SI= freq * T / samprate
>    ap=0
>    samples=[]
>    for i in xrange(int(dur*samprate)): # n_de_amostras = dur * ramprate
>        samples.append(table[int(ap)])
>        ap = (SI + ap)%T
>    return samples
>
> any more favourites? :-)
>
> btw: http://wiki.nosdigitais.teia.org.br/FIGGUS http://paste.org/45689
>
>
> --
> GNU/Linux User #479299
> labmacambira.sf.net
> --
> dupswapdrop -- the music-dsp mailing list and website:
> subscription info, FAQ, source code archive, list archive, book reviews, dsp 
> links
> http://music.columbia.edu/cmc/music-dsp
> http://music.columbia.edu/mailman/listinfo/music-dsp
--
dupswapdrop -- the music-dsp mailing list and website:
subscription info, FAQ, source code archive, list archive, book reviews, dsp 
links
http://music.columbia.edu/cmc/music-dsp
http://music.columbia.edu/mailman/listinfo/music-dsp

Reply via email to