X-Git-Url: https://scm.cri.minesparis.psl.eu/git/Faustine.git/blobdiff_plain/06159b51a934937f647ec7119b47cb466d8e50b1..4ecbf362e0d1d0abb9a7f0e9af8322472f28f7d1:/dsp_files/sin.dsp diff --git a/dsp_files/sin.dsp b/dsp_files/sin.dsp deleted file mode 100644 index 16982a6..0000000 --- a/dsp_files/sin.dsp +++ /dev/null @@ -1,18 +0,0 @@ -//sin = ffunction(float sin(float), , ""); -//floor = ffunction(float floor(float), , ""); -PI = 3.141592653589; - -tablesize = 40000; -samplingfreq = 44100.; - -time = (+(1)~_) - 1; -sinwavform = time * (2 * PI)/tablesize : sin; - -decimal = _ <: -(floor); -phase(freq) = freq / samplingfreq : mem : ( + : decimal) ~ _ : * (tablesize) : int; -osc(freq) = phase(freq) : rdtable(tablesize, sinwavform); - -vol = 1; -freq = 1000; - -process = osc(freq) * vol; \ No newline at end of file