formatting

This commit is contained in:
2025-07-01 19:41:21 -07:00
parent c39ce62775
commit f010ffa68a
5 changed files with 17 additions and 16 deletions

View File

@ -13,9 +13,9 @@
#define CLOCK_H
#include <NeoHWSerial.h>
#include "uClock.h"
#include "peripherials.h"
#include "uClock.h"
// MIDI clock, start, stop, and continue byte definitions - based on MIDI 1.0 Standards.
#define MIDI_CLOCK 0xF8

View File

@ -3,6 +3,7 @@
#include <Arduino.h>
#include <gravity.h>
#include "euclidean.h"
// Enums for CV configuration
@ -87,7 +88,7 @@ class Channel {
}
}
void setSwing(int val) {
base_swing = constrain(val, 50, 95);
base_swing = constrain(val, 50, 95);
if (!isCvModActive()) {
cvmod_swing = base_swing;
}
@ -141,12 +142,12 @@ class Channel {
bool hit = cvmod_probability >= random(0, 100);
// Euclidean rhythm check
switch (pattern.NextStep()) {
case Pattern::REST: // Rest when active or fall back to probability
hit = false;
break;
case Pattern::HIT: // Hit if probability is true
hit &= true;
break;
case Pattern::REST: // Rest when active or fall back to probability
hit = false;
break;
case Pattern::HIT: // Hit if probability is true
hit &= true;
break;
}
if (hit) {
output.High();

View File

@ -63,7 +63,7 @@ void StateManager::reset(AppState& app) {
noInterrupts();
_saveMetadata(); // Write the new metadata
_saveState(app); // Write the new (default) app state
_saveState(app); // Write the new (default) app state
interrupts();
_isDirty = false;