<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">hi<div><div>i tried to create framework using 4.1.1 according to his directions but sometimes got errors for rtMidi on 10.6 and 10.5.</div><div><br></div><div>but &nbsp;i finally got it to work i don't know why sometimes it works and other times it doesn't.</div></div><div><br></div><div><br>i am trying to get StkX - Woon Seung Yeo to work. i have tried to recreate his project to work with 4.4.2&nbsp;</div><div><br></div><div>i think the issue with 4.4.2 is that you added namespace to the code. How do you account for this with xcode in creating a framework.&nbsp;</div><div><br><br><br><br><div><br></div><div>also tried &nbsp;to compile STK with no luck</div><div><br></div><div>i was able to create a program form the terminal but no sound. it did output the numbers</div><div><br></div><div><span class="Apple-style-span" style="font-family: monospace, fixed; font-size: 13px; "><pre class="fragment" style="font-family: monospace, fixed; font-size: 9pt; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); background-color: rgb(245, 245, 245); padding-top: 4px; padding-right: 6px; padding-bottom: 4px; padding-left: 6px; margin-top: 4px; margin-right: 8px; margin-bottom: 4px; margin-left: 2px; overflow-x: auto; overflow-y: auto; word-wrap: break-word; line-height: 15px; "><span class="preprocessor" style="color: rgb(128, 96, 32); ">#include "Noise.h"</span>
<span class="keyword" style="color: rgb(0, 128, 0); ">using namespace </span>stk;

<span class="keywordtype" style="color: rgb(96, 64, 32); ">int</span> main()
{
  StkFrames output(20, 1);   <span class="comment" style="color: rgb(128, 0, 0); ">// initialize StkFrames to 20 frames and 1 channel (default: interleaved)</span>
  Noise noise;

  noise.tick( output );
  <span class="keywordflow" style="color: rgb(224, 128, 0); ">for</span> ( <span class="keywordtype" style="color: rgb(96, 64, 32); ">unsigned</span> <span class="keywordtype" style="color: rgb(96, 64, 32); ">int</span> i=0; i&lt;output.size(); i++ ) {
    std::cout &lt;&lt; <span class="stringliteral" style="color: rgb(0, 32, 128); ">"i = "</span> &lt;&lt; i &lt;&lt; <span class="stringliteral" style="color: rgb(0, 32, 128); ">" : output = "</span> &lt;&lt; output[i] &lt;&lt; std::endl;
  }

  <span class="keywordflow" style="color: rgb(224, 128, 0); ">return</span> 0;
}</pre></span><div><br></div></div><div><br></div><div><br></div><div><br></div><div><br></div><div>this one couldn't find file</div><div><br></div><div><span class="Apple-style-span" style="font-family: monospace, fixed; font-size: 13px; "><pre class="fragment" style="font-family: monospace, fixed; font-size: 9pt; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); background-color: rgb(245, 245, 245); padding-top: 4px; padding-right: 6px; padding-bottom: 4px; padding-left: 6px; margin-top: 4px; margin-right: 8px; margin-bottom: 4px; margin-left: 2px; overflow-x: auto; overflow-y: auto; word-wrap: break-word; line-height: 15px; "><span class="comment" style="color: rgb(128, 0, 0); ">// sineosc.cpp</span>

<span class="preprocessor" style="color: rgb(128, 96, 32); ">#include "FileLoop.h"</span>
<span class="preprocessor" style="color: rgb(128, 96, 32); ">#include "FileWvOut.h"</span>
<span class="keyword" style="color: rgb(0, 128, 0); ">using namespace </span>stk;

<span class="keywordtype" style="color: rgb(96, 64, 32); ">int</span> main()
{
  <span class="comment" style="color: rgb(128, 0, 0); ">// Set the global sample rate before creating class instances.</span>
  Stk::setSampleRate( 44100.0 );

  FileLoop input;
  FileWvOut output;

  <span class="comment" style="color: rgb(128, 0, 0); ">// Load the sine wave file.</span>
  input.openFile( <span class="stringliteral" style="color: rgb(0, 32, 128); ">"rawwaves/sinewave.raw"</span>, <span class="keyword" style="color: rgb(0, 128, 0); ">true</span> );

  <span class="comment" style="color: rgb(128, 0, 0); ">// Open a 16-bit, one-channel WAV formatted output file</span>
  output.openFile( <span class="stringliteral" style="color: rgb(0, 32, 128); ">"hellosine.wav"</span>, 1, FileWrite::FILE_WAV, Stk::STK_SINT16 );

  input.setFrequency( 440.0 );

  <span class="comment" style="color: rgb(128, 0, 0); ">// Run the oscillator for 40000 samples, writing to the output file</span>
  <span class="keywordflow" style="color: rgb(224, 128, 0); ">for</span> ( <span class="keywordtype" style="color: rgb(96, 64, 32); ">int</span> i=0; i&lt;40000; i++ )
    output.tick( input.tick() );

  <span class="keywordflow" style="color: rgb(224, 128, 0); ">return</span> 0;
}</pre></span><div><br></div></div><div><div><br></div><div>i have followed this direction</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; ">wget&nbsp;<a href="https://ccrma.stanford.edu/software/stk/release/stk-4.4.1.tar.gz">https://ccrma.stanford.edu/software/stk/release/stk-4.4.1.tar.gz</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; ">tar -xzf stk-4.4.1.tar.gz</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; ">ln -s stk-4.4.1 stk</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; ">wget&nbsp;<a href="https://ccrma.stanford.edu/~jos/stk4p4p1josoverlay.tar.gz">https://ccrma.stanford.edu/~jos/stk4p4p1josoverlay.tar.gz</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; ">tar -xzf stk4p4p1josoverlay.tar.gz</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; ">cp -rp stk4p4p1josoverlay/* stk/</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; ">cd ./stk</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; ">autoconf</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; ">./configure -lstdc++" --enable-debug CFLAGS="-g -O0"</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; ">/bin/rm ./myproj/Makefile.proj</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; ">ln -s myproj/Makefile.proj-MacOSX myproj/Makefile.proj</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; ">make</div></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; ">i modified this to</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; ">mkdir stk</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; ">cd stk</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; ">wget --no-check-certificate&nbsp;<a href="https://ccrma.stanford.edu/software/stk/release/stk-4.2.1.tar.gz">https://ccrma.stanford.edu/software/stk/release/stk-4.2.1.tar.gz</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; ">tar -xzf stk-4.2.1.tar.gz</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; ">ln -s stk-4.4.1 stk</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; ">wget --no-check-certificate&nbsp;<a href="https://ccrma.stanford.edu/~jos/stk4p4p1josoverlay.tar.gz">https://ccrma.stanford.edu/~jos/stk4p4p1josoverlay.tar.gz</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; ">tar -xzf stk4p4p1josoverlay.tar.gz</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; ">cp -rp stk4p4p1josoverlay/* stk/</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; ">cd ./stk</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; ">autoconf</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; ">configure --enable-debug CFLAGS="-g -O0" CXX=gcc LDFLAGS="-L/opt/local/lib -lstdc++"</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; ">/bin/rm ./myproj/Makefile.proj</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; ">ln -s myproj/Makefile.proj-MacOSX myproj/Makefile.proj</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; ">make</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; ">i get errors.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Courier; ">in the end i would like a osx framework to use in xcode</div></div><br>hope someone can help<br><br>david</div></div></body></html>