// Acid StepSequencer, a Roland TB303 step sequencer engine clone // author: midilab contact@midilab.co // under MIT license // CV functionality added by Oleksiy Hrachov #include #include #include "config.h" bool updateCV1 = true; bool updateCV2 = true; bool sendGate1 = false; bool sendGate2 = false; uint8_t CV1Note; uint8_t CV2Note; float DACNoteStep; void setup() { // AcidStepSequencer Interface initAcidStepSequencer(MIDI_MODE); setTrackChannel(1, TRACK1_CHANNEL); setTrackChannel(2, TRACK2_CHANNEL); // pins, buttons, leds and pots config configureInterface(); // last pattern user had load before power off loadLastPattern(); DACNoteStep = (1.0 / 12.0) * 4096 / DAC_MAX_VOLTAGE; Wire.begin(); Wire.setClock(400000); Wire.beginTransmission(0x60); Wire.write(0x40); Wire.write(0x00); Wire.write(0x00); Wire.endTransmission(); Wire.beginTransmission(0x61); Wire.write(0x40); Wire.write(0x00); Wire.write(0x00); Wire.endTransmission(); } // User interaction goes here void loop() { processInterface(); processCV(); }