jack ~master (2015-03-29T12:05:11Z)
Dub
Repo
SynthFM
miniFMsynth
Undocumented in source.
class
SynthFM {
double
srate
;
enum
POLY
;
enum
GAIN
;
short
[]
buf
;
double
pitch
;
double
modulation
;
double
attack
;
double
decay
;
double
sustain
;
double
release
;
double
[
POLY
]
phi
;
double
[
POLY
]
phi_mod
;
double
[
POLY
]
velocity
;
double
[
POLY
]
env_time
;
double
[
POLY
]
env_level
;
int
harmonic
;
int
subharmonic
;
int
transpose
;
int
rate
;
int
[
POLY
]
note
;
int
[
POLY
]
gate
;
int
[
POLY
]
note_active
;
this
();
void
noteon
(int note, int vel);
void
noteoff
(int note, int vel);
static
double
envelope
(int* note_active, int gate, double* env_level, double t, double attack, double decay, double sustain, double release);
void
compute
(uint nframes);
}
Constructors
this
this
()
Undocumented in source.
Members
Functions
compute
void
compute
(uint nframes)
Undocumented in source. Be warned that the author may not have intended to support it.
noteoff
void
noteoff
(int note, int vel)
Undocumented in source. Be warned that the author may not have intended to support it.
noteon
void
noteon
(int note, int vel)
Undocumented in source. Be warned that the author may not have intended to support it.
Manifest constants
GAIN
enum
GAIN
;
Undocumented in source.
POLY
enum
POLY
;
Undocumented in source.
Static functions
envelope
double
envelope
(int* note_active, int gate, double* env_level, double t, double attack, double decay, double sustain, double release)
attack
double
attack
;
Undocumented in source. Be warned that the author may not have intended to support it.
Variables
buf
short
[]
buf
;
decay
double
decay
;
env_level
double
[
POLY
]
env_level
;
env_time
double
[
POLY
]
env_time
;
gate
int
[
POLY
]
gate
;
Undocumented in source.
harmonic
int
harmonic
;
modulation
double
modulation
;
Undocumented in source.
note
int
[
POLY
]
note
;
note_active
int
[
POLY
]
note_active
;
Undocumented in source.
phi
double
[
POLY
]
phi
;
phi_mod
double
[
POLY
]
phi_mod
;
Undocumented in source.
pitch
double
pitch
;
rate
int
rate
;
release
double
release
;
Undocumented in source.
srate
double
srate
;
subharmonic
int
subharmonic
;
sustain
double
sustain
;
transpose
int
transpose
;
velocity
double
[
POLY
]
velocity
;
Undocumented in source.
Meta
Source
See Implementation
miniFMsynth
classes
SynthFM
functions
main