42 void setv (
int i,
float v);
44 float vs (
int i)
const {
return _v [i]; }
45 int st (
int i)
const {
return (_b & (1 << i)) ? 1 : 0; }
46 float vi (
int n)
const {
51 v += k * (_v [i + 1] - v) / 6;
70 void setv (
int i,
float v);
72 void setv (
int h,
int i,
float v) { _h [h].
setv (i, v); }
74 float vs (
int h,
int i)
const {
return _h [h].
vs (i); }
75 int st (
int h,
int i)
const {
return _h [h].
st (i); }
76 float vi (
int h,
int n)
const {
return _h [h].
vi (n); }
77 void write (FILE *F,
int k);
78 void read (QFile *F,
int k);
91 int save (
const char *sdir);
92 int load (
const char *sdir);
int32_t _fd
Definition: addsynth.h:103
int32_t _del
Definition: addsynth.h:118
void setv(int h, int i, float v)
Definition: addsynth.h:72
char _pan
Definition: addsynth.h:117
float vs(int h, int i) const
Definition: addsynth.h:74
N_func _n_dcd
Definition: addsynth.h:111
HN_func _h_atp
Definition: addsynth.h:115
int _b
Definition: addsynth.h:35
int32_t _fn
Definition: addsynth.h:102
float vi(int n) const
Definition: addsynth.h:46
int st(int h, int i) const
Definition: addsynth.h:75
N_func _n_ran
Definition: addsynth.h:106
int32_t _n1
Definition: addsynth.h:101
Definition: addsynth.h:85
int32_t _n0
Definition: addsynth.h:100
HN_func()
Definition: addsynth.h:68
Definition: addsynth.h:62
HN_func _h_att
Definition: addsynth.h:114
N_func _n_ins
Definition: addsynth.h:107
N_func()
Definition: addsynth.cpp:33
void write(FILE *)
Definition: addsynth.cpp:127
HN_func _h_lev
Definition: addsynth.h:112
void read(QFile *)
Definition: addsynth.cpp:157
void setv(int i, float v)
Definition: addsynth.cpp:53
N_func _n_vol
Definition: addsynth.h:104
Definition: addsynth.h:33
#define N_HARM
Definition: addsynth.h:24
void clrv(int i)
Definition: addsynth.cpp:89
float vs(int i) const
Definition: addsynth.h:44
float _v[N_NOTE]
Definition: addsynth.h:36
void reset(float v)
Definition: addsynth.cpp:42
int st(int i) const
Definition: addsynth.h:45
N_func _n_atd
Definition: addsynth.h:109
N_func _n_off
Definition: addsynth.h:105
N_func _n_dct
Definition: addsynth.h:110
void clrv(int h, int i)
Definition: addsynth.h:73
#define N_NOTE
Definition: addsynth.h:23
float vi(int h, int n) const
Definition: addsynth.h:76
HN_func _h_ran
Definition: addsynth.h:113
N_func _n_att
Definition: addsynth.h:108