<br><br><div><span class="gmail_quote">On 8/9/07, <b class="gmail_sendername">2g</b> &lt;<a href="mailto:electriclightheads@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">electriclightheads@gmail.com
</a>&gt; wrote:</span><div><br>&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
am happy with the result it gives<br>but began to wonder why s2.freq() in the fun doesn&#39;t result into an<br>error when activated</blockquote><div><br>&lt;snip&gt;&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
gives some sort of default for .freq?</blockquote><div><br><br>Yes, exactly. Everything has defaults. You can check this yourself by running this;<br><br>--------<br>SinOsc s =&gt; dac;<br>second =&gt; now;<br>-------------
<br><br>That should give you a one second beep, usefull for testing wether your speakers are turned on.<br><br>If you&#39;d like to know what the defaults are you can check them this way;<br>-------------<br>SinOsc s;<br>
&lt;&lt;&lt;s.freq()&gt;&gt;&gt; <br></div>---------------<br>That will print the frequency it has to your schreen.<br><br>You will never get a error doing what you did because regardless of what the frequency is, it is still a float so you can still multiply it. Of course, if the frequency would be 0 the result of any multiplication with that will also be 0. In that case you wouldn&#39;t hear anything but you wouldn&#39;t get a error.
<br><br>I hope that helps,<br>Happy ChucKing!<br>Kas.<br></div>