45 lines · 943 B · Text
RawDownload
// name: smcAvancedExample.ck// desc: advanced FaucK example!  // a string connected to a "cry baby" effectFaust string => Faust cryBaby => dac; // LFO to modulate cryBabySinOsc LFO => blackhole;6 => LFO.freq; // string is implemented in an external Faust filestring.compile(me.dir() +"string.dsp"); // crybaby_demo is part of the effect.lib Faust librarycryBaby.eval(`   process = dm.crybaby_demo ;`); // generates random notesfun void notes(){    while( true ){        // new note        string.v("gate",0);        10::ms => now;        string.v("gate",1);        // with random frequency        string.v("freq", Math.random2f(80,800) );        100::ms => now;    }} // modulates the cry baby with the LFO fun void lfoWah(){    while(true){        cryBaby.v("/CRYBABY/Wah_parameter",(LFO.last()*0.5+0.5));        1::samp => now;    }} spork ~ notes();spork ~ lfoWah(); while(true){    10::ms => now;}    

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t