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 Ryo Od

Committer:
ryood
Date:
Mon May 22 23:00:08 2017 +0000
Branch:
FilterEnvelope
Revision:
29:5ca5aef9e7ca
Parent:
28:407c9f46a07c
Impl. FilterEnvelope

Who changed what in which revision?

UserRevisionLine numberNew 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 29:5ca5aef9e7ca 11 //#define USE_VCVS 1
ryood 29:5ca5aef9e7ca 12 #define USE_SVF 1
ryood 27:173ad2312d03 13
ryood 0:1afb83a21a25 14 #define TITLE_STR1 ("BaseMachine Test")
ryood 29:5ca5aef9e7ca 15 #define TITLE_STR2 ("2017.05.23")
ryood 0:1afb83a21a25 16
ryood 27:173ad2312d03 17 #if USE_VCVS
ryood 27:173ad2312d03 18 #define TITLE_STR3 ("VCVS LPF Version")
ryood 27:173ad2312d03 19 #elif USE_SVF
ryood 27:173ad2312d03 20 #define TITLE_STR3 ("SVF Version")
ryood 27:173ad2312d03 21 #endif
ryood 27:173ad2312d03 22
ryood 0:1afb83a21a25 23 #define SEQUENCE_N (16)
ryood 7:a47420a0c4bf 24 #define PATTERN_N (8)
ryood 0:1afb83a21a25 25
ryood 0:1afb83a21a25 26 const int baseNoteNumber = 36;
ryood 0:1afb83a21a25 27
ryood 0:1afb83a21a25 28 // Initial Sequence
ryood 0:1afb83a21a25 29 const int noteOn[SEQUENCE_N] = { 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0 };
ryood 0:1afb83a21a25 30 const int pitch[SEQUENCE_N] = {36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36 };
ryood 0:1afb83a21a25 31 const int tie[SEQUENCE_N] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
ryood 0:1afb83a21a25 32 const int accent[SEQUENCE_N] = { 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 };
ryood 0:1afb83a21a25 33
ryood 0:1afb83a21a25 34 #endif //_BASEMACHINE_COMMON_H_