Add octave scripts for examples into track list.
[Faustine.git] / interpretor / preprocessor / faust-0.9.47mr3 / tools / faust2pd / examples / basic / tone.dsp
1
2 declare name "tone -- sine oscillator with adjustable frequency";
3 declare author "Albert Graef";
4 declare version "1.0";
5
6 import("music.lib");
7
8 // control variables
9
10 vol = nentry("vol", 0.3, 0, 10, 0.01); // %
11 pan = nentry("pan", 0.5, 0, 1, 0.01); // %
12 freq = nentry("pitch", 440, 20, 20000, 0.01);
13
14 // simple sine tone generator
15
16 process = osci(freq)*vol : panner(pan);