47 lines · 1.2 KB · Text
RawDownload
// uses the Dinky class// (run dinky.ck before running this, for now...)////     > chuck dinky try//// NOTE (2003): in a future version of chuck...//       1. we will have better dependency/include system//       2. we can extend Dinky from UGen, so we don't have //          to use a 'connect( UGen )' function in Dinky// NOTE (2013): the above (#2) is now possible using Chugraphs!//       check out: extend/chugraph.ck// NOTE (2023): actually updated dinky.ck and this example//       to use Chugraphs // connect the rest of the patchDinky dinky => Gain g => NRev r => Echo e => Echo e2 => dac;// direct/dryg => dac;e => dac; // set up delay, gain, and mix1500::ms => e.max => e.delay;3000::ms => e2.max => e2.delay;1 => g.gain;.5 => e.gain;.25 => e2.gain;.1 => r.mix; // set the radius (should never be more than 1)dinky.radius( .999 ); // an array (our scale)[ 0, 2, 4, 7, 9, 11 ] @=> int hi[]; // infinite time-loopwhile( true ){    // trigger    dinky.t( 45 + Math.random2(0,3)*12 +             hi[Math.random2(0,hi.size()-1)] );    // let time pass    195::ms => now;    // close the envelope    dinky.c();    // let a bit more time pass    5::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