forked from interstar/WaveFlavours
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sequence.h
37 lines (29 loc) · 754 Bytes
/
sequence.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#include "waveflavour.h"
#define MAX_INSTRUMENTS 10
typedef struct {
int note;
int duration;
} Note;
class Sequencer {
public :
PhaseCounter tick;
PhaseCounter noteTrigger;
int len,speed;
Note* notes;
int currentNote,currentDuration;
bool trigger;
void start(int l, int n[][2], int speed);
void step();
void advanceNote();
};
/*
class Score {
int noSequences;
Sequencer sequences[MAX_INSTRUMENTS];
Instrument instruments[MAX_INSTRUMENTS];
void setup();
void addSequence(int len, int n[][2], int speed);
Instrument* addInstrument(int waveform1, int waveform2, int noVoices, int* pitchOffsets, int seqNo);
void play();
}
*/