<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I'm having a problem passing a changing parameter(by an LFO in another function) to a function i'm sporking . Maybe this isn't possible :-( but i'd like your opinion) This is part of my script. Let me tell you this: When i give float
<b><span style="color: rgb(179, 106, 226);">Cfreq</span> </b>an initial value of 0.3<span style="color: rgb(81, 167, 249);"> LFO</span> does change gain of SinOsc c. If i don't give it an initial value and have
<i><span style="color: rgb(12, 136, 42);">LFOtochangeCfreq</span> </i>change it -> no sound.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div><br>
</div>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span> SinOsc m => SinOsc c => Pan2 p => dac;<br>
</span>
<div>2 => c.sync;<br>
</div>
<div>float <span style="color: rgb(179, 106, 226);"><b>Cfreq</b></span>; <span style="background-color: rgb(204, 204, 204);">
//if i replace this line by: .3 => float Cfreq; </span><br>
</div>
<div><br>
</div>
<div>spork ~ <span style="color: rgb(12, 136, 42);"><i>LFOtochangeCfreq</i></span>(.1);<br>
</div>
<div>spork ~ <span style="color: rgb(81, 167, 249);">LFO</span>(<span style="color: rgb(179, 106, 226);"><b>Cfreq</b></span>);<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>fun void <span style="color: rgb(12, 136, 42);"><i>LFOtochangeCfreq</i></span>(float variation) {<br>
</div>
<div> SinOsc lfo => blackhole;<br>
</div>
<div> variation => lfo.freq;<br>
</div>
<div> while( true )<br>
</div>
<div> { <br>
</div>
<div> 1000::samp => now;<br>
</div>
<div> <<<lfo.last() => <span style="color: rgb(179, 106, 226);"><b>Cfreq</b></span>>>>;<br>
</div>
<div> }<br>
</div>
<div> }</div>
<div><br>
</div>
<div>fun void <span style="color: rgb(81, 167, 249);">LFO</span>(float LFOfreq) {<br>
</div>
<div> SinOsc lfo => blackhole;<br>
</div>
<div> LFOfreq => lfo.freq;<br>
</div>
<div> while( true )<br>
</div>
<div> { <br>
</div>
<div> 1::samp => now;<br>
</div>
<div> lfo.last() => c.gain ;<br>
</div>
<div> }<br>
</div>
<div>}<br>
</div>
<div><br>
</div>
<span>while (1) 10::ms=> now;</span><br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
</body>
</html>