21#ifndef YASE_SEQUENCER_H
22#define YASE_SEQUENCER_H
41 typedef void (
Sequencer::*UpdateFunction)();
42 static const int DOWN = 0;
43 static const int UP = 1;
64 void set(
int index,
int note);
75 vector<Event *> sequence;
77 double t, period, prev_clock;
81 UpdateFunction update_fcn;
Contains MIDI event information.
Definition event.hh:32
An abstract base class for modules.
Definition module.hh:39
A general purpose sequencers.
Definition sequencer.hh:39
void clear()
Clear the sequence, erasing all events.
Definition sequencer.cc:157
void update()
Definition sequencer.cc:55
void stop()
Stop the sequencer playing.
Definition sequencer.cc:135
bool is_rest(int index)
Definition sequencer.cc:210
bool is_playing()
Returns true if the sequencer is playing (because of a previous call to play())
Definition sequencer.cc:226
void init()
Definition sequencer.cc:46
void decrease_duration(double amount)
Definition sequencer.cc:170
void increase_duration(double amount)
Definition sequencer.cc:181
void keydown(const Event &e)
Definition sequencer.cc:104
void reset()
Reset the sequence counter to the beginning of the sequence.
Definition sequencer.cc:125
void allocate(int n)
Definition sequencer.cc:190
void play()
Definition sequencer.cc:148
void rest(int index)
Definition sequencer.cc:216
void record()
Put the sequencer into record mode so it will respond to calls to keydown()
Definition sequencer.cc:130
void insert_rest()
Insert a rest onto the end of the sequence.
Definition sequencer.cc:118
void keyup(const Event &e)
Definition sequencer.cc:112
void set(int index, int note)
Definition sequencer.cc:199
Definition additive_saw.cc:24