Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
120 lines (100 sloc) 2.58 KB
/*
LiCK Library for ChucK.
Copyright (c) 2007-2017 held jointly by the individual authors.
This file is part of LiCK.
LiCK is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
LiCK is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with LiCK. If not, see <http://www.gnu.org/licenses/>.
*/
Trem trem;
1.0 => float depth;
1.0 => float rate;
BeeThree bt;
220.0 => bt.freq;
bt.noteOff(1.0);
bt => trem => dac;
500::ms => now;
<<<trem.sinMix, trem.sqrMix, trem.triMix>>>;
for (0 => int i; i < 4; i++)
{
rate => trem.rate;
for (0 => int j; j < 10; j++)
{
8.0 * (j+1)/10.0 => depth;
depth => trem.depth;
<<<"trem rate", rate, "depth", depth>>>;
bt.noteOn(1.0);
800::ms => now;
bt.noteOff(1.0);
200::ms => now;
}
2.0 +=> rate;
}
1.0 => rate;
1.0 => trem.sinMix;
0.0 => trem.sqrMix;
0.0 => trem.triMix;
<<<trem.sinMix, trem.sqrMix, trem.triMix>>>;
for (0 => int i; i < 4; i++)
{
rate => trem.rate;
for (0 => int j; j < 10; j++)
{
8.0 * (j+1)/10.0 => depth;
depth => trem.depth;
<<<"trem rate", rate, "depth", depth>>>;
bt.noteOn(1.0);
800::ms => now;
bt.noteOff(1.0);
200::ms => now;
}
2.0 +=> rate;
}
1.0 => rate;
0.0 => trem.sinMix;
1.0 => trem.sqrMix;
0.0 => trem.triMix;
<<<trem.sinMix, trem.sqrMix, trem.triMix>>>;
for (0 => int i; i < 4; i++)
{
rate => trem.rate;
for (0 => int j; j < 10; j++)
{
8.0 * (j+1)/10.0 => depth;
depth => trem.depth;
<<<"trem rate", rate, "depth", depth>>>;
bt.noteOn(1.0);
800::ms => now;
bt.noteOff(1.0);
200::ms => now;
}
2.0 +=> rate;
}
1.0 => rate;
0.0 => trem.sinMix;
0.0 => trem.sqrMix;
1.0 => trem.triMix;
<<<trem.sinMix, trem.sqrMix, trem.triMix>>>;
for (0 => int i; i < 4; i++)
{
rate => trem.rate;
for (0 => int j; j < 10; j++)
{
8.0 * (j+1)/10.0 => depth;
depth => trem.depth;
<<<"trem rate", rate, "depth", depth>>>;
bt.noteOn(1.0);
800::ms => now;
bt.noteOff(1.0);
200::ms => now;
}
2.0 +=> rate;
}
<<<"done">>>;