26#ifndef _XSYNTH_SYNTH_H
27#define _XSYNTH_SYNTH_H
34#define XSYNTH_MONO_MODE_OFF 0
35#define XSYNTH_MONO_MODE_ON 1
36#define XSYNTH_MONO_MODE_ONCE 2
37#define XSYNTH_MONO_MODE_BOTH 3
39#define XSYNTH_GLIDE_MODE_LEGATO 0
40#define XSYNTH_GLIDE_MODE_INITIAL 1
41#define XSYNTH_GLIDE_MODE_ALWAYS 2
42#define XSYNTH_GLIDE_MODE_LEFTOVER 3
43#define XSYNTH_GLIDE_MODE_OFF 4
72 unsigned char cc[128];
95 unsigned char rvelocity);
98 unsigned char velocity);
103 unsigned long sample_count,
104 int do_control_update);
107#define MIDI_CTL_MSB_MODWHEEL 0x01
108#define MIDI_CTL_MSB_PORTAMENTO_TIME 0x05
109#define MIDI_CTL_MSB_MAIN_VOLUME 0x07
110#define MIDI_CTL_MSB_BALANCE 0x08
111#define MIDI_CTL_LSB_MODWHEEL 0x21
112#define MIDI_CTL_LSB_PORTAMENTO_TIME 0x25
113#define MIDI_CTL_LSB_MAIN_VOLUME 0x27
114#define MIDI_CTL_LSB_BALANCE 0x28
115#define MIDI_CTL_SUSTAIN 0x40
118#define MIDI_CTL_TUNING 0x4b
119#define MIDI_CTL_WAVEFORM 0x46
120#define MIDI_CTL_CUTOFF 0x4a
121#define MIDI_CTL_RESONANCE 0x47
122#define MIDI_CTL_ENVMOD 0x01
123#define MIDI_CTL_DECAY 0x48
124#define MIDI_CTL_ACCENT 0x4c
126#define MIDI_CTL_ALL_SOUNDS_OFF 0x78
127#define MIDI_CTL_RESET_CONTROLLERS 0x79
128#define MIDI_CTL_ALL_NOTES_OFF 0x7b
130#define XSYNTH_SYNTH_SUSTAINED(_s) ((_s)->cc[MIDI_CTL_SUSTAIN] >= 64)
SYNTH_T * synth
Definition LocalZynAddSubFx.cpp:47
static PuglViewHint int value
Definition pugl.h:1708
float out
Definition lilv_test.c:1461
void nekobee_synth_note_off(nekobee_synth_t *synth, unsigned char key, unsigned char rvelocity)
Definition nekobee_synth.c:65
void nekobee_synth_all_notes_off(nekobee_synth_t *synth)
Definition nekobee_synth.c:92
void nekobee_synth_control_change(nekobee_synth_t *synth, unsigned int param, signed int value)
Definition nekobee_synth.c:143
void nekobee_synth_render_voices(nekobee_synth_t *synth, float *out, unsigned long sample_count, int do_control_update)
Definition nekobee_synth.c:201
void nekobee_synth_init_controls(nekobee_synth_t *synth)
Definition nekobee_synth.c:185
void nekobee_synth_all_voices_off(nekobee_synth_t *synth)
Definition nekobee_synth.c:44
void nekobee_synth_note_on(nekobee_synth_t *synth, unsigned char key, unsigned char velocity)
Definition nekobee_synth.c:112
struct _nekobee_synth_t nekobee_synth_t
Definition nekobee_types.h:26
struct _nekobee_voice_t nekobee_voice_t
Definition nekobee_types.h:27
Definition nekobee_synth.h:48
unsigned long sample_rate
Definition nekobee_synth.h:50
signed char held_keys[8]
Definition nekobee_synth.h:61
float waveform
Definition nekobee_synth.h:84
unsigned char key_pressure[128]
Definition nekobee_synth.h:71
pthread_mutex_t voicelist_mutex
Definition nekobee_synth.h:67
unsigned char cc[128]
Definition nekobee_synth.h:72
unsigned char channel_pressure
Definition nekobee_synth.h:73
int monophonic
Definition nekobee_synth.h:58
unsigned char pitch_wheel_sensitivity
Definition nekobee_synth.h:74
float decay
Definition nekobee_synth.h:88
int voices
Definition nekobee_synth.h:57
unsigned long nugget_remains
Definition nekobee_synth.h:52
int polyphony
Definition nekobee_synth.h:56
float envmod
Definition nekobee_synth.h:87
float cc_volume
Definition nekobee_synth.h:80
float tuning
Definition nekobee_synth.h:83
float pitch_bend
Definition nekobee_synth.h:79
int glide
Definition nekobee_synth.h:59
int pitch_wheel
Definition nekobee_synth.h:75
float vca_accent
Definition nekobee_synth.h:63
float resonance
Definition nekobee_synth.h:86
float cutoff
Definition nekobee_synth.h:85
nekobee_voice_t * voice
Definition nekobee_synth.h:66
float vcf_accent
Definition nekobee_synth.h:62
float last_noteon_pitch
Definition nekobee_synth.h:60
float volume
Definition nekobee_synth.h:90
float deltat
Definition nekobee_synth.h:51
float accent
Definition nekobee_synth.h:89
int voicelist_mutex_grab_failed
Definition nekobee_synth.h:68
float mod_wheel
Definition nekobee_synth.h:78
unsigned int note_id
Definition nekobee_synth.h:55
ZCONST char * key
Definition crypt.c:587