<br><br><div><span class="gmail_quote">On 6/2/07, <b class="gmail_sendername">Loscha</b> &lt;<a href="mailto:loscha@gmail.com">loscha@gmail.com</a>&gt; 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&#39;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&#39;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 =&gt; JCRev r =&gt; dac;<br>.5 =&gt; b.gain;<br>.5 =&gt; r.gain;<br><br></div>40 =&gt; int foo;<br>int bar;<br><br>while(1)<br>&nbsp; {<br>&nbsp; for(1 =&gt; int n; n &lt; 5; n++)
<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; n =&gt; b.harmonics;<br>&nbsp;&nbsp;&nbsp; 0.25::second =&gt; now;<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp; //very simple algorithem to create the melody.<br>&nbsp; //i&#39;d like to hear about other or better tricks, anyone?<br>&nbsp; //tweak the numbers for variations
<br>&nbsp; (++bar % 5) +=&gt; foo;<br>&nbsp; if(foo &gt; 43) 40 =&gt; foo;<br>&nbsp; Std.mtof(foo) =&gt; b.freq;<br>&nbsp; }<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&#39;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>