01 | Basic Design | |
1 | Calculation of fixed numbers of locations bell-shaped function | |
2 | Calculation of a variable number of locations bell-shaped function |
Even though csound only provides a limited number of stock GEN subroutines, it includes one (GEN 1) which can read in an external file. Hence, one can use a standalone program to generate functions that are not standard (with the limitation that files need to be written in a format understandable for GEN 1). In fact, as this example shows, one can use csound itself to create them.
The run will produce 513 values for the specified function. (Risset 1969: #513)
WAV and mp3
88_01_2
additional parameters: none
This run will also generate the bell-shaped function (with a maximum amplitude of 32000) required by the instrument 02_44_2 for the smooth amplitude control function. When the soundfile is read in by 02_44_2, the function will automatically be post-normalized by GEN 1. The main difference with the previous instrument is that sr and kr are both set to 1, thus allowing to specify the number of locations to compute with p3 in the score file. (Vercoe 1993: morefiles/BELLFUNC.ORC)