X-Git-Url: https://scm.cri.ensmp.fr/git/Faustine.git/blobdiff_plain/c7f552fd8888da2f0d8cfb228fe0f28d3df3a12c..b4b6f2ea75b9f0f3ca918f5b84016610bf7a4d4f:/dsp_files/sin.dsp diff --git a/dsp_files/sin.dsp b/dsp_files/sin.dsp deleted file mode 100644 index b1650f2..0000000 --- a/dsp_files/sin.dsp +++ /dev/null @@ -1,19 +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; -//process = freq / samplingfreq : @(1): ( + : decimal) ~ _ : * (tablesize) : int ;