Csound Csound-dev Csound-tekno Search About

Re: Question about GEN01 n'

Date1997-08-23 03:15
FromJean Piche
SubjectRe: Question about GEN01 n'
Robert Tichacek wrote:
> 
> Having settled on  as my weapon of choice in mutilating innocent lil'
> samples, I have been vexed by said opcode's inability to use dynamically
> allocated GEN01 tables. Why does  get to have all the fun? Are
> there any techniques in CSound that I can use to have the sample fill the
> GEN01 table without nasty clicks or digital whitespace, or do I just
> timestretch the sample to a power-of-two length and hope that I get a good
> result?
> 
> Seeking Enlightenment
> Robert Tichacek


Robert,

You have to scale the length of your sample. An index going from 0 to 1
with the phasor and fog (I believe...) will scan the full function table
including empty space if there is any. the idea is to get the number of
frames in the sample you are using and scale your index accrodingly:


scale = no_of_frames_in_sample/Func_table_length
index = index*scale

You find the rough number of frames in a  sound by multiplying its
duration by its sampling rate. Mono and multi-track files have the same
number of frames for the same size. Power-of-two function table sizes
are in frames.

-- 
________________________________________________________
Jean Piche
Universite de Montreal
http://mistral.ere.umontreal.ca/~pichej
http://www.musique.umontreal.ca/Org/CompoElectro/CEC/