Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: SequencerDisplay.h
- Revision:
- 1:1f6d3e65d946
- Parent:
- 0:9a0f67fe026b
- Child:
- 3:5b11261a545a
diff -r 9a0f67fe026b -r 1f6d3e65d946 SequencerDisplay.h
--- a/SequencerDisplay.h Fri Aug 12 20:42:30 2016 +0000
+++ b/SequencerDisplay.h Fri Aug 12 23:36:42 2016 +0000
@@ -17,7 +17,8 @@
SequencerDisplay(Sequence* _sequences, int _sequenceNum) :
sequences(_sequences),
sequenceNum(_sequenceNum),
- octave(0) {};
+ octave(0),
+ bpm(120) {};
void update(DISPLAY_MODE mode, int step) {
switch (mode) {
@@ -35,6 +36,9 @@
void setOctave(int _octave) { octave = _octave; };
int getOctave() { return octave; };
+ void setBpm(int _bpm) { bpm = _bpm; };
+ int getBpm() { return bpm; };
+
protected:
virtual void displayWhileRun(int step) {
#if (UART_TRACE)
@@ -50,6 +54,7 @@
Sequence* sequences;
int sequenceNum;
+ int bpm;
int octave;
};