Next  |  Prev  |  Up  |  Top  |  REALSIMPLE Top  |  CCRMA Wiki  |  CCRMA Pubs  |  CCRMA Home  |  Search

Header Files, Libraries, Compilation Issues

#include <flstk.h>


#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 401)
#error You need at least flext version 0.4.1
#endif

// Include here whatever particular STK declarations are needed 
#include "Clarinet.h"
#include "PRCRev.h"
#include "JCRev.h"
#include "NRev.h"
#include "Echo.h"
#include "PitShift.h"
#include "Chorus.h"
#include "BiQuad.h"
#include "Resonate.h"

The code above tells the C++ compiler what the definition of the flext classes and the STK classes are. When compiling clarinet.cpp, it will be crucial to specify where the STK header files, such as Clarinet.h are as well as where the compiled library exists. In the Makefile included with this lab, the header files are found in /usr/include/flext and /usr/include/stk/. The compiled libraries are found in /usr/lib/libflext-pd_s.a and /usr/lib/libstk.a. It is standard to have the header and library files in these locations, but you will weant to double-check to ensure that they are located in those paths.


Next  |  Prev  |  Up  |  Top  |  REALSIMPLE Top  |  CCRMA Wiki  |  CCRMA Pubs  |  CCRMA Home  |  Search

Download stkforpd.pdf

``Embedding STK Instruments in PD Externals'', by Edgar J. Berdahl and Julius O. Smith III,
REALSIMPLE Project — work supported by the Wallenberg Global Learning Network .
Released 2007-03-29 under the Creative Commons License (Attribution 2.5), by Edgar J. Berdahl and Julius O. Smith III
Center for Computer Research in Music and Acoustics (CCRMA),   Stanford University
CCRMA