Thanks Gary,<br><br>Where do you suggest I start in order to impliment a relatively simple FM synthesis function such as that shown in the image attached?  This seems like the kind of thing someone must have already implimented somewhere.  I think I&#39;m potentially in over my head but this strikes me as something an expert would find very simple.<br>
<br>Thanks so much,<br>Francis<br><br><br><br><div class="gmail_quote">On Mon, Apr 5, 2010 at 9:17 PM, Gary Scavone <span dir="ltr">&lt;<a href="mailto:gary@ccrma.stanford.edu">gary@ccrma.stanford.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Francis,<br>
<br>
You are using an old version of STK (4.3.1), which is out-of-date with respect to the online tutorial.  All STK classes were embedded in a namespace in version 4.4.  You might be able to get rid of the error message by commenting out the line:<br>

<br>
  using namespace stk;<br>
<br>
I suggest downloading the STK distribution, rather than use an old RPM distribution.<br>
<br>
Yes, you can do the sort of FM you referred to with STK.<br>
<br>
Regards,<br>
<br>
--gary<br>
<div><div></div><div class="h5"><br>
On 2010-04-04, at 10:55 PM, francis keyes wrote:<br>
<br>
&gt; Hey All,<br>
&gt;<br>
&gt; I&#39;m trying to get my head around stk by reading through the documentation but I&#39;m having some problems.  In trying to compile an example from <a href="https://ccrma.stanford.edu/software/stk/compile.html" target="_blank">https://ccrma.stanford.edu/software/stk/compile.html</a>, I get the following error:<br>

&gt;<br>
&gt; $ g++ -Wall -D__LITTLE_ENDIAN__ -I/usr/include/stk -o sineosc sineosc.cpp -lstk<br>
&gt;<br>
&gt; sineosc.cpp:3:22: error: FileLoop.h: No such file or directory<br>
&gt; sineosc.cpp:7: error: ‘stk’ is not a namespace-name<br>
&gt; sineosc.cpp:7: error: expected namespace-name before ‘;’ token<br>
&gt;<br>
&gt; I didn&#39;t get the FileLoop.h file with my installation of stk (I&#39;m running Fedora 12 and I have stk, stk-demo, and stk-devel installed, all 4.3.1-10).<br>
&gt; I don&#39;t know why I get &quot;error: ‘stk’ is not a namespace-name&quot;.<br>
&gt;<br>
&gt; Is the documentation on the stk website out of date?<br>
&gt; Any help is greatly appreciated.<br>
&gt;<br>
&gt; Also, I&#39;m looking at stk because I want to experiment with Double Frequency Modulation for sound synthesis, creating instruments that try to match a specific sound as detailed in the attached image.  Can I do this with STK?<br>

&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div>&gt; &lt;dfm-synth.jpg&gt;_______________________________________________<br>
&gt; Stk mailing list<br>
&gt; <a href="mailto:Stk@ccrma.stanford.edu">Stk@ccrma.stanford.edu</a><br>
&gt; <a href="http://ccrma-mail.stanford.edu/mailman/listinfo/stk" target="_blank">http://ccrma-mail.stanford.edu/mailman/listinfo/stk</a><br>
<br>
</blockquote></div><br>