Beep_demo_OSC.cpp File Reference

#include "CSL_Includes.h"
#include "PAIO.h"
#include "lo/lo.h"

Defines

#define FREQ   55
#define DUR   1

Functions

void osc_error (int num, const char *msg, const char *path)
void quitCSL ()
int quit_handler (const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data)
int generic_handler (const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data)
void play_note ()
void set_param (unsigned which, float value)
int event_handler (const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data)
void init_OSC (const char *thePort)
void OSC_loop ()
void make_instrument ()
int main (int argc, const char *argv[])

Variables

static int done = 0
static lo_server_thread sSrvThrd
PAIOtheIO
Sinecar
Sinemod
ADSRa_env
Envelopei_env

Define Documentation

#define FREQ   55

#define DUR   1


Function Documentation

void osc_error ( int  num,
const char *  msg,
const char *  path 
)

References csl::kLogError, and csl::logMsg().

void quitCSL (  ) 

References done, csl::logMsg(), and sSrvThrd.

int quit_handler ( const char *  path,
const char *  types,
lo_arg **  argv,
int  argc,
void *  data,
void *  user_data 
)

References quitCSL().

int generic_handler ( const char *  path,
const char *  types,
lo_arg **  argv,
int  argc,
void *  data,
void *  user_data 
)

References csl::logMsg().

void play_note (  ) 

References csl::logMsg(), and csl::Envelope::trigger().

Referenced by event_handler().

void set_param ( unsigned  which,
float  value 
)

Referenced by event_handler().

int event_handler ( const char *  path,
const char *  types,
lo_arg **  argv,
int  argc,
void *  data,
void *  user_data 
)

References csl::logMsg(), play_note(), and set_param().

Referenced by init_OSC().

void init_OSC ( const char *  thePort  ) 

void OSC_loop (  ) 

References done, csl::sleepSec(), and sSrvThrd.

Referenced by main().

void make_instrument (  ) 

int main ( int  argc,
const char *  argv[] 
)


Variable Documentation

int done = 0 [static]

lo_server_thread sSrvThrd [static]

Referenced by main(), testADSR_FM(), and testFancy_FM().

Sine * mod


Generated on Thu Sep 17 23:14:16 2009 for CSL by  doxygen 1.5.8