Hi, list.<br><br>Some time ago we talked about abusing the STK models for getting strange sounds, I found a nice new one using StifKarp. I was controlling the "stretch" parameter with my new tilt-sensing joypad and discovered that shaking the joypad led to nice noises. Here's a demo without the joypad for your enjoyment.<br>
<br>Cheers,<br>Kas.<br>===========================<br>//"spooky sound" by Kassen.<br>//Permission granted to modify and copy.<br>//No warranties, no refunds, please mind your speakers and neighbours.<br>//Remixing strongly encouraged.<br>
<br>StifKarp s => dac;<br><br>//low frequency for nice spooky sound<br>50 => s.freq;<br><br>//the following lines are to have a note-on without actually<br>//hearing the default pluck. StifKarp won't make a sound without one<br>
0 => s.gain;<br>1=> s.noteOn;<br>2::second => now;<br><br>//turn it up again<br>.8=> s.gain;<br>.9 => s.sustain;<br><br>//exciting signal<br>TriOsc lfo => ADSR env => blackhole;<br>//works better if it's a sub-harmonic of the pitch, I think<br>
25 => lfo.freq;<br>second => env.attackTime;<br>second => env.decayTime;<br>.5=> env.gain;<br><br>//connects the lfo's signal to the StifKarp "stretch"<br>//see below<br>spork ~ envctrl();<br><br>
int counter;<br>while(counter < 20)<br> {<br> 1=> env.keyOn;<br> 3::second => now;<br> 1=> env.keyOff;<br> 1::second => now;<br> counter++;<br> }<br>//allow it to decay for a bit<br>2::second => now;<br>
<br>//bye<br><br><br>fun void envctrl()<br> {<br> //the offset and the envelope's gain combine to<br> //make sure the value stays in stretch's range<br> while(10::ms => now) env.last() + .5 => s.stretch;<br>
}<br>