_id
stringlengths
64
64
repository
stringlengths
7
61
name
stringlengths
5
45
content
stringlengths
0
943k
download_url
stringlengths
94
213
language
stringclasses
1 value
comments
stringlengths
0
20.9k
code
stringlengths
0
943k
79350b8b8af8eb979c3e65a009ac50a68a9284828a22f08b1dead6f27e65352a
grame-cncm/faustdoc
exfaust3.dsp
import("stdfaust.lib"); freq = hslider("freq", 200, 50, 5000, 0.01); gain = hslider("gain", 0.5, 0, 1, 0.01); gate = button("gate"); check = checkbox("check"); // DSP processor process = os.osc(freq) * gain * gate, os.sawtooth(freq) * gain * check;
https://raw.githubusercontent.com/grame-cncm/faustdoc/493929103510997ef8adb66603d4aba123b2a70d/docs/workshops/2020-11-21-faust-vcvrack/exfaust3/exfaust3.dsp
faust
DSP processor
import("stdfaust.lib"); freq = hslider("freq", 200, 50, 5000, 0.01); gain = hslider("gain", 0.5, 0, 1, 0.01); gate = button("gate"); check = checkbox("check"); process = os.osc(freq) * gain * gate, os.sawtooth(freq) * gain * check;
a5ebcdf79f38c7817ecd511d6adda9613aaca929651988879976f02d22e9af2d
grame-cncm/faustdoc
exfaust21.dsp
import("stdfaust.lib"); freq = hslider("freq",440,50,3000,0.01); gain = hslider("gain",1,0,1,0.01); gate = button("gate"); envelope = gain*gate : si.smoo; nHarmonics = 4; process = sum(i,nHarmonics,os.osc(freq*(i+1)))/(nHarmonics)*envelope;
https://raw.githubusercontent.com/grame-cncm/faustdoc/493929103510997ef8adb66603d4aba123b2a70d/docs/manual/syntax/exfaust21/exfaust21.dsp
faust
import("stdfaust.lib"); freq = hslider("freq",440,50,3000,0.01); gain = hslider("gain",1,0,1,0.01); gate = button("gate"); envelope = gain*gate : si.smoo; nHarmonics = 4; process = sum(i,nHarmonics,os.osc(freq*(i+1)))/(nHarmonics)*envelope;
2279b3f290c5552c5210c161fd8e51c64017779d507148e04856f2198400776f
grame-cncm/faustdoc
exfaust19.dsp
import("stdfaust.lib"); freq = hslider("freq",440,50,3000,0.01); gain = hslider("gain",1,0,1,0.01); gate = button("gate"); envelope = gain*gate : si.smoo; nHarmonics = 4; process = par(i,nHarmonics,os.osc(freq*(i+1))) :> /(nHarmonics)*envelope;
https://raw.githubusercontent.com/grame-cncm/faustdoc/493929103510997ef8adb66603d4aba123b2a70d/docs/manual/syntax/exfaust19/exfaust19.dsp
faust
import("stdfaust.lib"); freq = hslider("freq",440,50,3000,0.01); gain = hslider("gain",1,0,1,0.01); gate = button("gate"); envelope = gain*gate : si.smoo; nHarmonics = 4; process = par(i,nHarmonics,os.osc(freq*(i+1))) :> /(nHarmonics)*envelope;
6f7d0b332dac1815fd1e3944c0c9a307c8952a3fcda23ecb81362e3326207b1b
Corredor1230/varikeyTests
osc.dsp
import("stdfaust.lib"); process = os.osc(220.0)*0.5<:_,_;
https://raw.githubusercontent.com/Corredor1230/varikeyTests/de0706c046f4c308e6f300b3e90927df29f369ba/SynthTests/JuceSynth/Source/Faust/osc.dsp
faust
import("stdfaust.lib"); process = os.osc(220.0)*0.5<:_,_;
e9148f35faeedc7da6bfd4cf9351d5c8b7b0aaef1ff9ccd7848a37ad7a75741f
grame-cncm/faustdoc
exfaust0.dsp
import("stdfaust.lib"); // UI controllers connected using metadata freq = hslider("freq [knob:1]", 200, 50, 5000, 0.01); gain = hslider("gain [knob:2]", 0.5, 0, 1, 0.01); gate = button("gate [switch:1]"); // DSP processor process = os.osc(freq) * gain * 5, os.sawtooth(freq) * gain * gate * 5;
https://raw.githubusercontent.com/grame-cncm/faustdoc/493929103510997ef8adb66603d4aba123b2a70d/docs/workshops/2020-11-21-faust-vcvrack/exfaust0/exfaust0.dsp
faust
UI controllers connected using metadata DSP processor
import("stdfaust.lib"); freq = hslider("freq [knob:1]", 200, 50, 5000, 0.01); gain = hslider("gain [knob:2]", 0.5, 0, 1, 0.01); gate = button("gate [switch:1]"); process = os.osc(freq) * gain * 5, os.sawtooth(freq) * gain * gate * 5;
09d0783e6560f84c198d01dce643ca5012329b68ca22d2a3e7983755486fc65d
grame-cncm/faustdoc
exfaust22.dsp
import("stdfaust.lib"); freq = hslider("[0]freq",440,50,3000,0.01); gain = hslider("[1]gain",1,0,1,0.01); shift = hslider("[2]shift",0,0,1,0.01); gate = button("[3]gate"); envelope = gain*gate : si.smoo; nOscs = 4; process = prod(i,nOscs,os.osc(freq*(i+1+shift)))*envelope;
https://raw.githubusercontent.com/grame-cncm/faustdoc/493929103510997ef8adb66603d4aba123b2a70d/docs/manual/syntax/exfaust22/exfaust22.dsp
faust
import("stdfaust.lib"); freq = hslider("[0]freq",440,50,3000,0.01); gain = hslider("[1]gain",1,0,1,0.01); shift = hslider("[2]shift",0,0,1,0.01); gate = button("[3]gate"); envelope = gain*gate : si.smoo; nOscs = 4; process = prod(i,nOscs,os.osc(freq*(i+1+shift)))*envelope;
efe1d4729988439baf56ce7a29a9403178bbc16f5f14cd5a2d2518dafcb4b4f5
Corredor1230/varikeyTests
osc6.dsp
import("stdfaust.lib"); declare oscType "os.oscw(freq)"; freq = hslider("freq",1000,100,10000,1); process = os.oscw(freq);
https://raw.githubusercontent.com/Corredor1230/varikeyTests/6566d881a8e9300b129efaac643125edcfeee3a9/ExampleCode/Test10/SimpleMathNotSoSimple/Source/library/osc6.dsp
faust
import("stdfaust.lib"); declare oscType "os.oscw(freq)"; freq = hslider("freq",1000,100,10000,1); process = os.oscw(freq);
67449959aba42fe4a7b90b01baffb76c14fda3ba2ed927b12d6f56c2975069db
Corredor1230/varikeyTests
osc4.dsp
import("stdfaust.lib"); declare oscType "os.oscs(freq)"; freq = hslider("freq",1000,100,10000,1); process = os.oscs(freq);
https://raw.githubusercontent.com/Corredor1230/varikeyTests/6566d881a8e9300b129efaac643125edcfeee3a9/ExampleCode/Test10/SimpleMathNotSoSimple/Source/library/osc4.dsp
faust
import("stdfaust.lib"); declare oscType "os.oscs(freq)"; freq = hslider("freq",1000,100,10000,1); process = os.oscs(freq);
a688671ec70ee3c78a0331ddf33766b3fa9e31e3b2118ba85a590800e9f2cefb
Corredor1230/varikeyTests
osc2.dsp
import("stdfaust.lib"); declare oscType "os.oscb(freq)"; freq = hslider("freq",1000,100,10000,1); process = os.oscb(freq);
https://raw.githubusercontent.com/Corredor1230/varikeyTests/6566d881a8e9300b129efaac643125edcfeee3a9/ExampleCode/Test10/SimpleMathNotSoSimple/Source/library/osc2.dsp
faust
import("stdfaust.lib"); declare oscType "os.oscb(freq)"; freq = hslider("freq",1000,100,10000,1); process = os.oscb(freq);
195fc77db578e21e9c5c8a003d7a36a6d2a0a835bcf321fdb8bf32e919bec412
Corredor1230/varikeyTests
osc3.dsp
import("stdfaust.lib"); declare oscType "os.oscrs(freq)"; freq = hslider("freq",1000,100,10000,1); process = os.oscrs(freq);
https://raw.githubusercontent.com/Corredor1230/varikeyTests/6566d881a8e9300b129efaac643125edcfeee3a9/ExampleCode/Test10/SimpleMathNotSoSimple/Source/library/osc3.dsp
faust
import("stdfaust.lib"); declare oscType "os.oscrs(freq)"; freq = hslider("freq",1000,100,10000,1); process = os.oscrs(freq);
5efc13e3a4d41a3ab5921557d2619a6db5740e7feedac1cc8191a399f7dec97a
Corredor1230/varikeyTests
osc5.dsp
import("stdfaust.lib"); declare oscType "os.quadosc(freq)"; freq = hslider("freq",1000,100,10000,1); process = os.quadosc(freq);
https://raw.githubusercontent.com/Corredor1230/varikeyTests/6566d881a8e9300b129efaac643125edcfeee3a9/ExampleCode/Test10/SimpleMathNotSoSimple/Source/library/osc5.dsp
faust
import("stdfaust.lib"); declare oscType "os.quadosc(freq)"; freq = hslider("freq",1000,100,10000,1); process = os.quadosc(freq);
feaa48f0fcb8071cabd8ef046deabe990e9bb1f56347db78ab0d667991ece2d4
Corredor1230/varikeyTests
test.dsp
import("stdfaust.lib"); freq = hslider("freq", 440, 100, 1000, 1); gain = hslider("gain", 0.5, 0, 1, 0.001); gate = checkbox("gate"); process = os.osc(freq) * gain * gate;
https://raw.githubusercontent.com/Corredor1230/varikeyTests/d32a8bcf5787a7cd7d990932605d191081014469/ExampleCode/Test9/test.dsp
faust
import("stdfaust.lib"); freq = hslider("freq", 440, 100, 1000, 1); gain = hslider("gain", 0.5, 0, 1, 0.001); gate = checkbox("gate"); process = os.osc(freq) * gain * gate;
9feefb0c72a935fb56fe43a868009a6ba4510f2c19b0af82d76d13c35d42669e
Corredor1230/varikeyTests
SimpleSynth.dsp
import("stdfaust.lib"); freq = hslider("freq", 1000, 10, 10000, 1); gain = hslider("gain", 0.5, 0, 1, 0.01); gate = checkbox("gate"); process = os.osc(freq) * gain * gate;
https://raw.githubusercontent.com/Corredor1230/varikeyTests/ebccb8f9bc202694afe3739439dec21ffc2b5ca3/ExampleCode/Test7/SimpleSynth.dsp
faust
import("stdfaust.lib"); freq = hslider("freq", 1000, 10, 10000, 1); gain = hslider("gain", 0.5, 0, 1, 0.01); gate = checkbox("gate"); process = os.osc(freq) * gain * gate;
ec8510ddeecc76e51ca54fcae8ddb9fe48c38f8d06eba750bb45e2d1fedf0f74
Corredor1230/varikeyTests
osc7.dsp
import("stdfaust.lib"); declare oscType "std::cos"; t = ba.time / ma.SR; freq = hslider("freq",1000,100,10000,1); process = cos(2 * ma.PI * freq * t);
https://raw.githubusercontent.com/Corredor1230/varikeyTests/6566d881a8e9300b129efaac643125edcfeee3a9/ExampleCode/Test10/SimpleMathNotSoSimple/Source/library/osc7.dsp
faust
import("stdfaust.lib"); declare oscType "std::cos"; t = ba.time / ma.SR; freq = hslider("freq",1000,100,10000,1); process = cos(2 * ma.PI * freq * t);
7d81d581da8c060490f6afe243f0a44a4f91b63e296b2883a6e4a85e7b6c7696
Corredor1230/varikeyTests
SimpleSynth.dsp
import("stdfaust.lib"); declare options "[midi:on]"; freq = hslider("freq", 440, 60, 1000, 1); gain = hslider("gain", 0.5, 0, 1, 0.01); gate = checkbox("gate"); process = os.osc(freq) * gain * gate;
https://raw.githubusercontent.com/Corredor1230/varikeyTests/8841bf21b5200df19b84049d269aee1d2a1a68d7/ExampleCode/Test8/MidiTest/Source/SimpleSynth.dsp
faust
import("stdfaust.lib"); declare options "[midi:on]"; freq = hslider("freq", 440, 60, 1000, 1); gain = hslider("gain", 0.5, 0, 1, 0.01); gate = checkbox("gate"); process = os.osc(freq) * gain * gate;
05553edc42ee09ce6abc1dd43e3e623c6ba70c6fc700e4a0215add49c6978793
Corredor1230/varikeyTests
Oscillator.dsp
import("stdfaust.lib"); // faust -a arch.cpp -i -cn Oscillator Oscillator.dsp -o Test3/Source/Oscillator.h freq = hslider("freq",1000,20,20000,1); gain = hslider("gain",-12,-60,0,1) : ba.db2linear; process = os.osc(freq) * gain <: _, _;
https://raw.githubusercontent.com/Corredor1230/varikeyTests/5067bba3a453e31b3acf2a5236e2f5db04d8acd1/ExampleCode/Test3/Oscillator.dsp
faust
faust -a arch.cpp -i -cn Oscillator Oscillator.dsp -o Test3/Source/Oscillator.h
import("stdfaust.lib"); freq = hslider("freq",1000,20,20000,1); gain = hslider("gain",-12,-60,0,1) : ba.db2linear; process = os.osc(freq) * gain <: _, _;
5ea000cdcc19a6624ea4f71141de1148ec991b26e4048908aa839d4f5b629875
rbdannenberg/arco
mult_aa_a.dsp
declare name "mult"; declare name "mult"; declare description "Mult(iply) Unit Generator for Arco"; declare interpolated "x1 x2"; import("stdfaust.lib"); process(x1, x2) = x1 * x2;
https://raw.githubusercontent.com/rbdannenberg/arco/22385b6ba59d3e4a5b5d35c264080537d806fd04/ugens/mult_aa_a.dsp
faust
declare name "mult"; declare name "mult"; declare description "Mult(iply) Unit Generator for Arco"; declare interpolated "x1 x2"; import("stdfaust.lib"); process(x1, x2) = x1 * x2;
980d2e99dba2ee551131c2befee4961705bed313b9340b036ef5c1d7289c8737
rbdannenberg/arco
mult_ab_a.dsp
declare name "mult"; declare name "mult"; declare description "Mult(iply) Unit Generator for Arco"; declare interpolated "x1 x2"; import("stdfaust.lib"); x2 = nentry("x2", 0, 0, 1, 0.1); process(x1) = x1 * x2;
https://raw.githubusercontent.com/rbdannenberg/arco/22385b6ba59d3e4a5b5d35c264080537d806fd04/ugens/mult_ab_a.dsp
faust
declare name "mult"; declare name "mult"; declare description "Mult(iply) Unit Generator for Arco"; declare interpolated "x1 x2"; import("stdfaust.lib"); x2 = nentry("x2", 0, 0, 1, 0.1); process(x1) = x1 * x2;
d6b3b3284a70f9031e59ad64c3d30f3898b0ebd5c939da0d30c3f8d22aa93e2d
rbdannenberg/arco
mult_ba_a.dsp
declare name "mult"; declare name "mult"; declare description "Mult(iply) Unit Generator for Arco"; declare interpolated "x1 x2"; import("stdfaust.lib"); x1 = nentry("x1", 0, 0, 1, 0.1); process(x2) = x1 * x2;
https://raw.githubusercontent.com/rbdannenberg/arco/22385b6ba59d3e4a5b5d35c264080537d806fd04/ugens/mult_ba_a.dsp
faust
declare name "mult"; declare name "mult"; declare description "Mult(iply) Unit Generator for Arco"; declare interpolated "x1 x2"; import("stdfaust.lib"); x1 = nentry("x1", 0, 0, 1, 0.1); process(x2) = x1 * x2;
64cef263b1e0a3a9bdc0c0a843df95ba5d2d5d5670e82596dd857fd46e78f1db
rbdannenberg/arco
mult_bb_a.dsp
declare name "mult"; declare name "mult"; declare description "Mult(iply) Unit Generator for Arco"; declare interpolated "x1 x2"; import("stdfaust.lib"); x1 = nentry("x1", 0, 0, 1, 0.1); x2 = nentry("x2", 0, 0, 1, 0.1); process = x1 * x2;
https://raw.githubusercontent.com/rbdannenberg/arco/22385b6ba59d3e4a5b5d35c264080537d806fd04/ugens/mult_bb_a.dsp
faust
declare name "mult"; declare name "mult"; declare description "Mult(iply) Unit Generator for Arco"; declare interpolated "x1 x2"; import("stdfaust.lib"); x1 = nentry("x1", 0, 0, 1, 0.1); x2 = nentry("x2", 0, 0, 1, 0.1); process = x1 * x2;
799164e7a18935de6f2aa1a0f291c892bd4cb5a70989b3b5590c4e289eca7a2b
rbdannenberg/arco
multb_bb_b.dsp
declare name "multb"; declare name "mult"; declare description "Mult(iply) Unit Generator for Arco"; declare interpolated "x1 x2"; import("stdfaust.lib"); x1 = nentry("x1", 0, 0, 1, 0.1); x2 = nentry("x2", 0, 0, 1, 0.1); process = x1 * x2;
https://raw.githubusercontent.com/rbdannenberg/arco/22385b6ba59d3e4a5b5d35c264080537d806fd04/ugens/multb_bb_b.dsp
faust
declare name "multb"; declare name "mult"; declare description "Mult(iply) Unit Generator for Arco"; declare interpolated "x1 x2"; import("stdfaust.lib"); x1 = nentry("x1", 0, 0, 1, 0.1); x2 = nentry("x2", 0, 0, 1, 0.1); process = x1 * x2;
505e364df36161af7f60f25a5765ae05eb743228fe80690130d57f3c855dad38
Bindernews/NESting
BlockSquare.dsp
import("stdfaust.lib"); //declare options "[nvoices:4]"; generate(gain, freq, duty_cycle) = (saw1 + saw2) * gain with { cutoff_freq = 12000; phase_table = waveform{0.06, 0.12, 0.25, 0.50, 0.75}; phase1 = rdtable(phase_table, int(duty_cycle * 4.99)); saw1 = os.sawNp(2, freq, 0) : fi.lowpass(2, cutoff_freq); saw2 = os.sawNp(2, freq, phase1) * -1 : fi.lowpass(2, cutoff_freq); }; // Inputs: { gain (norm), freq (Hz), duty cycle (norm) } // Outputs: { sound (mono) } process = (_,_,_) : generate : _;
https://raw.githubusercontent.com/Bindernews/NESting/dc1bf9c38dc814d554d85066cb75c5d68a5de74b/NESting/BlockSquare.dsp
faust
declare options "[nvoices:4]"; Inputs: { gain (norm), freq (Hz), duty cycle (norm) } Outputs: { sound (mono) }
import("stdfaust.lib"); generate(gain, freq, duty_cycle) = (saw1 + saw2) * gain with { cutoff_freq = 12000; phase_table = waveform{0.06, 0.12, 0.25, 0.50, 0.75}; phase1 = rdtable(phase_table, int(duty_cycle * 4.99)); saw1 = os.sawNp(2, freq, 0) : fi.lowpass(2, cutoff_freq); saw2 = os.sawNp(2, freq, phase1) * -1 : fi.lowpass(2, cutoff_freq); }; process = (_,_,_) : generate : _;