<commit_before><commit_msg>sandbox script for playing with chuck filters<commit_after>/*
* Script for playing with adsr
*/

4000 => int interval;

// adsr
ADSR adsr;
200 => int a;
800 => int d;
interval - a - d => int r;
adsr.set( a::ms, d::ms, 0, r::ms );

// reverb
//JCRev rvb;
//NRev rvb;
PRCRev rvb;
0.1 => rvb.mix;

// echo
Echo echo;
0.5 => echo.mix;
500::ms => echo.delay;
1000::ms => echo.max;

// chorus
Chorus chrs;
0.5 => chrs.modFreq;
0.5 => chrs.modDepth;
0.5 => chrs.mix;

// pitch shift
PitShift pts;
0.5 => pts.mix;
0.5 => pts.shift;

// sndbuf
SndBuf instrument;
me.dir() + "/dating/instruments/marvin1a.wav" => instrument.read;
instrument.samples() => instrument.pos;

// instrument => adsr => echo => rvb => dac;
instrument => echo => rvb => chrs => dac;
// instrument => pts => dac;

while(true) {    
    adsr.keyOn();
    0 => instrument.pos;
    1 => instrument.gain;
    1 => instrument.rate;
    interval::ms => now;
    adsr.keyOff();
}


<<< "Done." >>>;


{'fraction_non_alphanumeric': 0.1991869918699187, 'fraction_numerical': 0.036585365853658534, 'mean_word_length': 3.020408163265306, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7204602', 'n_tokens_mistral': 415, 'n_tokens_neox': 398, 'n_words': 102}