<br><br><div><span class="gmail_quote">On 6/2/07, <b class="gmail_sendername">Loscha</b> <<a href="mailto:loscha@gmail.com">loscha@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'd love to see your code, Kassan.</blockquote><div><br><br>As promissed, a version of that bassline for your enjoyment. Copying for educational purposes permitted, permission for public performance also granted but only in modified form ( ;¬) ). No waranties, no refunds.
<br>------------------<br>//the Blit's waveform will reset sometimes if the Blit is modulated, creating a click, <br>//the JCRev turns those into pleasant sounds but they realy<br>// need those gains or there will be terrible clipping distortion.
<br>//I quite like the sound this one makes in this form.<br><br>Blit b => JCRev r => dac;<br>.5 => b.gain;<br>.5 => r.gain;<br><br></div>40 => int foo;<br>int bar;<br><br>while(1)<br> {<br> for(1 => int n; n < 5; n++)
<br> {<br> n => b.harmonics;<br> 0.25::second => now;<br> }<br> //very simple algorithem to create the melody.<br> //i'd like to hear about other or better tricks, anyone?<br> //tweak the numbers for variations
<br> (++bar % 5) +=> foo;<br> if(foo > 43) 40 => foo;<br> Std.mtof(foo) => b.freq;<br> }<br>---------------<br><br>I contrasted this against some randomised sound made by the Shakers, of which I sporked multiple versions, then added one or two shreds of Shakers with the PRCRev for contrast. This'll give you some pleasant (to me) mellow techno-ish stuff very quickly with enough parameters to tweak and have fun with.
<br><br>Nothing especially clever here but it has a good ratio of fun per line of code.<br><br>Happy tweaking!<br>Kas.<br></div><br>