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@9:771491096aa1, 2016-11-21 (annotated)
- Committer:
- ryood
- Date:
- Mon Nov 21 05:13:03 2016 +0000
- Revision:
- 9:771491096aa1
- Parent:
- 7:a47420a0c4bf
- Child:
- 11:eb9e72bf529c
Impl. Exio PortA SW & Rotary Encoder
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 | 9:771491096aa1 | 12 | #define TITLE_STR2 ("20161121") |
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_ |