BaseMachine Sequencer V2
Dependencies: AT24C1024 Amp AverageAnalogIn BaseMachineUIController Envelope ExioBufferdController FilterController MCP23S17 OscController PinDetect RotaryEncoder Sequence SequencerDisplay mbed-rtos mbed st7567LCD
Fork of BaseMachine by
BaseMachineCommon.h@5:e909232c913e, 2016-11-17 (annotated)
- Committer:
- ryood
- Date:
- Thu Nov 17 07:22:56 2016 +0000
- Revision:
- 5:e909232c913e
- Parent:
- 4:49c60d28fa09
- Child:
- 7:a47420a0c4bf
Remove glitches while rests
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ryood | 0:1afb83a21a25 | 1 | /* |
ryood | 0:1afb83a21a25 | 2 | * BaseMachine_Common.h |
ryood | 0:1afb83a21a25 | 3 | * |
ryood | 0:1afb83a21a25 | 4 | * 2016.11.07 |
ryood | 0:1afb83a21a25 | 5 | * |
ryood | 0:1afb83a21a25 | 6 | */ |
ryood | 0:1afb83a21a25 | 7 | |
ryood | 0:1afb83a21a25 | 8 | #ifndef _BASEMACHINE_COMMON_H_ |
ryood | 0:1afb83a21a25 | 9 | #define _BASEMACHINE_COMMON_H_ |
ryood | 0:1afb83a21a25 | 10 | |
ryood | 0:1afb83a21a25 | 11 | #define TITLE_STR1 ("BaseMachine Test") |
ryood | 5:e909232c913e | 12 | #define TITLE_STR2 ("20161117") |
ryood | 0:1afb83a21a25 | 13 | |
ryood | 0:1afb83a21a25 | 14 | #define SEQUENCE_N (16) |
ryood | 0:1afb83a21a25 | 15 | |
ryood | 0:1afb83a21a25 | 16 | const int baseNoteNumber = 36; |
ryood | 0:1afb83a21a25 | 17 | |
ryood | 0:1afb83a21a25 | 18 | // Initial Sequence |
ryood | 0:1afb83a21a25 | 19 | const int noteOn[SEQUENCE_N] = { 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0 }; |
ryood | 0:1afb83a21a25 | 20 | const int pitch[SEQUENCE_N] = {36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36 }; |
ryood | 0:1afb83a21a25 | 21 | const int tie[SEQUENCE_N] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; |
ryood | 0:1afb83a21a25 | 22 | const int accent[SEQUENCE_N] = { 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 }; |
ryood | 0:1afb83a21a25 | 23 | |
ryood | 0:1afb83a21a25 | 24 | #endif //_BASEMACHINE_COMMON_H_ |