src/cshellsynth/instrument.h File Reference

#include <jack/jack.h>
#include <cshellsynth/atomic-types.h>
#include <cshellsynth/controller.h>

Go to the source code of this file.

Data Structures

struct  cs_inst_t

Defines

#define cs_inst_destroy(cs_inst)   cs_ctlr_destroy((cs_ctlr_t *) (cs_inst))

Functions

int cs_inst_init (cs_inst_t *self, const char *client_name, jack_options_t flags, char *server_name)
void cs_inst_play (cs_inst_t *self, float value)
void cs_inst_stop (cs_inst_t *self)

Detailed Description

Instrument

Ruby version: Controllers::Instrument

A simple "instrument" interface, to use your quick typing skills to play notes. Mostly useful to test things out.


Define Documentation

#define cs_inst_destroy ( cs_inst   )     cs_ctlr_destroy((cs_ctlr_t *) (cs_inst))

Destroy instrument

See cs_ctlr_destroy


Function Documentation

int cs_inst_init ( cs_inst_t self,
const char *  client_name,
jack_options_t  flags,
char *  server_name 
)

Initialize instrument

See cs_ctlr_init

void cs_inst_play ( cs_inst_t self,
float  value 
)

Play a note

Ruby version: play

Parameters:
value the note to play.
void cs_inst_stop ( cs_inst_t self  ) 

Stop playing

Ruby version: stop

 All Data Structures Files Functions Variables Typedefs Enumerations Defines
Generated on Thu Sep 2 23:47:09 2010 for cshellsynth by  doxygen 1.6.3