50 static void looplen (
float f,
float fsamp,
int lmax,
int *aa,
int *bb);
51 static void attgain (
int n,
float p);
106 if ((n < _n0) || (n > _n1)) {
107 qDebug(
"Rankwave: bad key");
121 if ((n < _n0) || (n > _n1))
return;
130 for (P = _list; P; P = P->
_link) P->
_sbit = 0;
133 int n0 (
void)
const {
return _n0; }
134 int n1 (
void)
const {
return _n1; }
135 void play (
int shift);
136 void set_param (
float *out,
int del,
int pan);
137 void gen_waves (
Addsynth *D,
float fsamp,
float fbase,
float *scale);
138 int save (
const char *path,
Addsynth *D,
float fsamp,
float fbase,
float *scale);
139 int load (
const char *path,
Addsynth *D,
float fsamp,
float fbase,
float *scale);
140 bool modif (
void)
const {
return _modif; }
int _cmask
Definition: rankwave.h:142
Pipewave * _list
Definition: rankwave.h:96
uint32_t _sbit
Definition: rankwave.h:65
int16_t _i_r
Definition: rankwave.h:74
int16_t _k_r
Definition: rankwave.h:59
~Pipewave(void)
Definition: rankwave.h:41
friend class Rankwave
Definition: rankwave.h:43
static void attgain(int n, float p)
Definition: rankwave.cpp:314
int _n0
Definition: rankwave.h:93
float * _p_p
Definition: rankwave.h:68
float * _out
Definition: rankwave.h:67
int _n1
Definition: rankwave.h:94
static void looplen(float f, float fsamp, int lmax, int *aa, int *bb)
Definition: rankwave.cpp:271
uint32_t _sdel
Definition: rankwave.h:66
void play(void)
Definition: rankwave.cpp:44
void load(FILE *F)
Definition: rankwave.cpp:366
void genwave(Addsynth *D, int n, float fsamp, float fpipe)
Definition: rankwave.cpp:186
float _z_p
Definition: rankwave.h:70
float * _p_r
Definition: rankwave.h:71
Definition: addsynth.h:85
float _d_p
Definition: rankwave.h:62
int n0(void) const
Definition: rankwave.h:133
void note_on(int n)
Definition: rankwave.h:105
float * _p1
Definition: rankwave.h:54
void note_off(int n)
Definition: rankwave.h:119
int32_t _l0
Definition: rankwave.h:56
float _m_r
Definition: rankwave.h:60
Definition: rankwave.h:88
bool modif(void) const
Definition: rankwave.h:140
int16_t _k_s
Definition: rankwave.h:58
int n1(void) const
Definition: rankwave.h:134
uint32_t _sbit
Definition: rankwave.h:95
static float * _arg
Definition: rankwave.h:80
static Rngen _rgen
Definition: rankwave.h:79
float _y_r
Definition: rankwave.h:72
static void initstatic(float fsamp)
Definition: rankwave.cpp:30
Pipewave()
Definition: rankwave.h:35
void save(FILE *F)
Definition: rankwave.cpp:341
Definition: rankwave.h:31
float _d_r
Definition: rankwave.h:61
float * _p2
Definition: rankwave.h:55
float _y_p
Definition: rankwave.h:69
float * _p0
Definition: rankwave.h:53
static float * _att
Definition: rankwave.h:81
Pipewave * _link
Definition: rankwave.h:64
Pipewave * _pipes
Definition: rankwave.h:97
int32_t _l1
Definition: rankwave.h:57
bool _modif
Definition: rankwave.h:98
float _g_r
Definition: rankwave.h:73
int _nmask
Definition: rankwave.h:143
void all_off(void)
Definition: rankwave.h:127