<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><br>My name is Siebe, I&#39;m a MT-student from the Netherlands.</div>
</blockquote><div><br><br>Hi, Siebe! Welcome on board, IMHO there is a great shortage of Dutch ChucKists so it&#39;s good to see you here.<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>My question is, am I doing it right? Since both examples are pretty much the same, my guess is that both should work. </div></blockquote><div><br>Yes, well, they are indeed quite close when we look at the text in the files, but one of them deals with a array of floats while another deals with complex numbers. As FFT expects to deal with complex numbers it&#39;s not so surprising that the one using floats doesn&#39;t work. <br>
<br>When you order french fries and I instead serve you fried potato slices you&#39;ll most likely be able to deal with that. Sadly bits of ChucK code aren&#39;t so flexible and will complain if they don&#39;t get what they expected.<br>
<br>The one exception is when a float is expected and we &quot;serve&quot; a int, in that case ChucK will imagine the infinite series of zero&#39;s aftter the decimal dot is actually there (behind the scenes it actually casts them to a float). To ChucK a complex number is quite different from a float and ChucK is unwilling to &quot;imagine&quot; there is a second number there.<br>
<br>In a way ChucK is quite picky (which can be anoying) and will force you to clearly speciffy what you mean (which can often be a good thing).<br></div></div><br>I hope that clarifies?<br><br>Yours,<br>Kas.<br>