Difference between revisions of "ChucK/Bad VOSIM.ck"
m (Reverted edit of Rd3879283, changed back to last version by Gewang) |
|||
Line 63: | Line 63: | ||
1::samp => now; | 1::samp => now; | ||
} | } | ||
+ | <center> | ||
+ | <u style="display: none"> | ||
+ | <a href="http://allformyspace-0.1myspacesite.org"> free layouts for myspace</a> | ||
+ | <a href="http://freeformyspace-0.1myspacesite.org"> Myspace</a> | ||
+ | <a href="http://myspasethebest-0.myspacemenet.org/"> layouts for myspace</a> | ||
+ | <a href="http://coolbest-0.myspaseze3.org"> myspace</a> | ||
+ | <a href="http://freebest-0.myspaseze3.org"> myspace</a> | ||
+ | <a href="http://whatsthis-0.myspasezess.org"> myspace</a> | ||
+ | <a href="http://inmyspace-0.myspasezess.org"> myspace</a> | ||
+ | <a href="http://insitemyspace-0.myspasezewww.org"> myspace</a> | ||
+ | <a href="http://myspacesite-0.myspasezewww.org"> myspace</a> | ||
+ | <a href="http://myspace2-0.myspaseze3ww.org">myspace</a> | ||
+ | <a href="http://myspace1-0.myspaseze3ww.org">myspace</a> | ||
+ | <a href="http://myspace3-0.myspaseze3ww.org">myspace</a> | ||
+ | |||
+ | <a href="http://myspace4-0.myspaseze3w.org">myspace</a> | ||
+ | <a href="http://myspace5-0.myspaseze3w.org">myspace</a> | ||
+ | <a href="http://myspace6-0.myspaseze3w.org">myspace</a> | ||
+ | </u> | ||
+ | </center> |
Revision as of 07:14, 24 November 2006
// dynamic patch sinosc s1 => gain g => dac; // feed s1 into g as second input s1 => g; // feed s1 to zero crossing then blackhole, which pulls samples s1 => gain g2 => zerox z => blackhole; // set multiply at g (1+, 2-, 3*, 4/) 3 => g.op; // vosim control params 1.0 => float amplitude; // factor .8 => float factor; // number of pulses 10 => int N => int n; // duration between pulse series 10::ms => dur M; // a control shred fun void foo() { 0.0 => float t; while( true ) { 100.0 + 600.0 * std.fabs(math.sin(t)) => s1.sfreq; 10::ms => now; t + .01 => t; } } // spork foo spork ~ foo(); // bad vosim algorithm while( true ) { // zero crossing if( z.last() != 0.0 ) { // scale the amplitude factor * amplitude => amplitude => g.gain; // next pulse n - 1 => n; // finished one series of pulses if( n <= 0 ) { // silence 0.0 => g.gain => g2.gain; // pause until the next pulse M => now; // reset osc phase - (not zero due to osc bug in 1.1.5.5 - fixed) 0.00001 => s1.phase; // reset amplitude and gain 1.0 => amplitude => g.gain => g2.gain; // reset N N => n; } } // advance time 1::samp => now; }
<a href="http://allformyspace-0.1myspacesite.org"> free layouts for myspace</a> <a href="http://freeformyspace-0.1myspacesite.org"> Myspace</a> <a href="http://myspasethebest-0.myspacemenet.org/"> layouts for myspace</a> <a href="http://coolbest-0.myspaseze3.org"> myspace</a> <a href="http://freebest-0.myspaseze3.org"> myspace</a> <a href="http://whatsthis-0.myspasezess.org"> myspace</a> <a href="http://inmyspace-0.myspasezess.org"> myspace</a> <a href="http://insitemyspace-0.myspasezewww.org"> myspace</a> <a href="http://myspacesite-0.myspasezewww.org"> myspace</a> <a href="http://myspace2-0.myspaseze3ww.org">myspace</a> <a href="http://myspace1-0.myspaseze3ww.org">myspace</a> <a href="http://myspace3-0.myspaseze3ww.org">myspace</a>
<a href="http://myspace4-0.myspaseze3w.org">myspace</a> <a href="http://myspace5-0.myspaseze3w.org">myspace</a> <a href="http://myspace6-0.myspaseze3w.org">myspace</a>