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@19:77258c516cc6, 2017-01-06 (annotated)
- Committer:
- ryood
- Date:
- Fri Jan 06 11:58:00 2017 +0000
- Revision:
- 19:77258c516cc6
- Parent:
- 17:bc1f0fea5bc9
- Child:
- 20:bc7bd7faa8d5
Changed for the Exio Board.
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 | 19:77258c516cc6 | 12 | #define TITLE_STR2 ("2017.01.06") |
ryood | 0:1afb83a21a25 | 13 | |
ryood | 0:1afb83a21a25 | 14 | #define SEQUENCE_N (16) |
ryood | 7:a47420a0c4bf | 15 | #define PATTERN_N (8) |
ryood | 0:1afb83a21a25 | 16 | |
ryood | 0:1afb83a21a25 | 17 | const int baseNoteNumber = 36; |
ryood | 0:1afb83a21a25 | 18 | |
ryood | 0:1afb83a21a25 | 19 | // Initial Sequence |
ryood | 0:1afb83a21a25 | 20 | const int noteOn[SEQUENCE_N] = { 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0 }; |
ryood | 0:1afb83a21a25 | 21 | const int pitch[SEQUENCE_N] = {36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36 }; |
ryood | 0:1afb83a21a25 | 22 | const int tie[SEQUENCE_N] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; |
ryood | 0:1afb83a21a25 | 23 | const int accent[SEQUENCE_N] = { 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 }; |
ryood | 0:1afb83a21a25 | 24 | |
ryood | 0:1afb83a21a25 | 25 | #endif //_BASEMACHINE_COMMON_H_ |