src/cshellsynth/triangle.h File Reference

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

Go to the source code of this file.

Data Structures

struct  cs_triangle_t

Defines

#define cs_triangle_destroy(cs_triangle)   cs_synth_destroy((cs_synth_t *) (cs_triangle))
#define cs_triangle_set_freq(cs_triangle, freq)   cs_synth_set_freq((cs_synth_t *) (cs_triangle), (freq))
#define cs_triangle_set_offset(cs_triangle, offset)   cs_synth_set_offset((cs_synth_t *) (cs_triangle), (offset))
#define cs_triangle_set_amp(cs_triangle, amp)   cs_synth_set_amp((cs_synth_t *) (cs_triangle), (amp))

Functions

int cs_triangle_init (cs_triangle_t *self, const char *client_name, jack_options_t flags, char *server_name)
void cs_triangle_set_slope (cs_triangle_t *self, float slope)

Detailed Description

Triangle Wave Synth

Ruby version: Synths::Triangle


Define Documentation

#define cs_triangle_destroy ( cs_triangle   )     cs_synth_destroy((cs_synth_t *) (cs_triangle))

Destroy triangle synth

See cs_synth_destroy

#define cs_triangle_set_amp ( cs_triangle,
amp   )     cs_synth_set_amp((cs_synth_t *) (cs_triangle), (amp))
#define cs_triangle_set_freq ( cs_triangle,
freq   )     cs_synth_set_freq((cs_synth_t *) (cs_triangle), (freq))
#define cs_triangle_set_offset ( cs_triangle,
offset   )     cs_synth_set_offset((cs_synth_t *) (cs_triangle), (offset))

Function Documentation

int cs_triangle_init ( cs_triangle_t self,
const char *  client_name,
jack_options_t  flags,
char *  server_name 
)

Initialize triangle synth

See cs_synth_init

void cs_triangle_set_slope ( cs_triangle_t self,
float  slope 
)

Sets the relative rising and falling slope. For a normal triangle, this is 0.5. For a rising or falling saw, this is 0 or 1. Note, however, that since this is implemented as a comb filter, at 0 or 1 you will get silence.

Ruby version: slope=

Parameters:
slope relative slope. 0.5 by default.
 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