void xneur_start_stop(void) { if (xconfig->kill(xconfig) == TRUE) { clock_check(0); return; } xneur_start(); clock_check(0); }
void main() { // Current Functionality: // Very functional gate/trigger sequencer: // - Mode toggles current encoder value, indicated by mode led // - 0 (No light): Clear gate // - 1 (Solid): Set gate // - 2 (All Flash): Set CV // - 3 (Double Flash): Set Preset // - Target selects active pattern (none, 1, 2, 3), indicated by target led // - When Target = none, Set stores encoder to global gate length // - Otherwise, Set triggers write of encoder value to current step in target pattern (depending on mode) // - Clock/RST 1 controlls pattern 1 // - Clock/RST 2 ticks patterns 2 and 3 // - DIR 1 controls direction on all patterns // - DIR 2 controlls gate length offset on patterns 2 and 3; pattern 1 is 'trigger' only // - CV edit from A/D LVL input // // Next Steps: // - Sequence Presets (selected by encoder and applied by set?) // setup(); seq_init(16); leds_init(); while (1) { clock_check(); buttons_check(); } }