X-Git-Url: https://scm.cri.ensmp.fr/git/Faustine.git/blobdiff_plain/043c676f59520b93dfacfa0d8d7e1fdd448cd7dc..1878a8448a5a73cbf289306beb5e88ab48561129:/dsp_files/sin.17.tmp.dsp diff --git a/dsp_files/sin.17.tmp.dsp b/dsp_files/sin.17.tmp.dsp deleted file mode 100644 index 16982a6..0000000 --- a/dsp_files/sin.17.tmp.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