Update configure and Makefiles for the corrected name "interpreter".
[Faustine.git] / interpreter / preprocessor / faust-0.9.47mr3 / tools / faust2oct / test.m
1 ## Test file for faust2octave
2 ## See the README for instructions on how to create the octfiles with
3 ## the loadable functions.
4
5
6 ## scale the input with a constant
7 plot(faustscale(sin(linspace(0,8*pi,44100)), 0.5));
8
9 ## time-variable scaling of the input
10 plot(faustscale(sin(linspace(0,8*pi,44100)), [3, 1, 2.1, 0]));
11
12 ## Multiply two signals (just as example of a plugin that takes two audio inputs)
13 plot(ringmod(sin(linspace(0,8*pi,44100)), sin(linspace(0,3*pi,44100))));
14
15 ## waveguide oscillator - requires no input, so first parameter is the number
16 ## of output samples to be produced.
17 [o1, o2] = wgo(8000, [20,400]);
18 plot(o2);
19
20 ## call the functions without arguments to get a (minimal) usage description
21 wgo();
22 ringmod();
23 faustscale();
24
25