[Stk] Stk framework for Mac OS X
David Familian
vortexual at me.com
Thu Dec 2 11:19:35 PST 2010
hi
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.
but i finally got it to work i don't know why sometimes it works and other times it doesn't.
i am trying to get StkX - Woon Seung Yeo to work. i have tried to recreate his project to work with 4.4.2
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.
also tried to compile STK with no luck
i was able to create a program form the terminal but no sound. it did output the numbers
#include "Noise.h"
using namespace stk;
int main()
{
StkFrames output(20, 1); // initialize StkFrames to 20 frames and 1 channel (default: interleaved)
Noise noise;
noise.tick( output );
for ( unsigned int i=0; i<output.size(); i++ ) {
std::cout << "i = " << i << " : output = " << output[i] << std::endl;
}
return 0;
}
this one couldn't find file
// sineosc.cpp
#include "FileLoop.h"
#include "FileWvOut.h"
using namespace stk;
int main()
{
// Set the global sample rate before creating class instances.
Stk::setSampleRate( 44100.0 );
FileLoop input;
FileWvOut output;
// Load the sine wave file.
input.openFile( "rawwaves/sinewave.raw", true );
// Open a 16-bit, one-channel WAV formatted output file
output.openFile( "hellosine.wav", 1, FileWrite::FILE_WAV, Stk::STK_SINT16 );
input.setFrequency( 440.0 );
// Run the oscillator for 40000 samples, writing to the output file
for ( int i=0; i<40000; i++ )
output.tick( input.tick() );
return 0;
}
i have followed this direction
wget https://ccrma.stanford.edu/software/stk/release/stk-4.4.1.tar.gz
tar -xzf stk-4.4.1.tar.gz
ln -s stk-4.4.1 stk
wget https://ccrma.stanford.edu/~jos/stk4p4p1josoverlay.tar.gz
tar -xzf stk4p4p1josoverlay.tar.gz
cp -rp stk4p4p1josoverlay/* stk/
cd ./stk
autoconf
./configure -lstdc++" --enable-debug CFLAGS="-g -O0"
/bin/rm ./myproj/Makefile.proj
ln -s myproj/Makefile.proj-MacOSX myproj/Makefile.proj
make
i modified this to
mkdir stk
cd stk
wget --no-check-certificate https://ccrma.stanford.edu/software/stk/release/stk-4.2.1.tar.gz
tar -xzf stk-4.2.1.tar.gz
ln -s stk-4.4.1 stk
wget --no-check-certificate https://ccrma.stanford.edu/~jos/stk4p4p1josoverlay.tar.gz
tar -xzf stk4p4p1josoverlay.tar.gz
cp -rp stk4p4p1josoverlay/* stk/
cd ./stk
autoconf
configure --enable-debug CFLAGS="-g -O0" CXX=gcc LDFLAGS="-L/opt/local/lib -lstdc++"
/bin/rm ./myproj/Makefile.proj
ln -s myproj/Makefile.proj-MacOSX myproj/Makefile.proj
make
i get errors.
in the end i would like a osx framework to use in xcode
hope someone can help
david
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ccrma-mail.stanford.edu/pipermail/stk/attachments/20101202/713b3164/attachment.html
More information about the Stk
mailing list