Skip to content

Commit

Permalink
Merge branch 'production' of https://github.com/Chysn/O_C-HemisphereS…
Browse files Browse the repository at this point in the history
…uite into production
  • Loading branch information
Chysn committed Nov 21, 2020
2 parents dc973e0 + ecfce80 commit 728d923
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions software/o_c_REV/HEM_AnnularFusion.ino
Expand Up @@ -113,6 +113,8 @@ public:
beats[0] = Unpack(data, PackLocation {4,4}) + 1;
length[1] = Unpack(data, PackLocation {8,4}) + 1;
beats[1] = Unpack(data, PackLocation {12,4}) + 1;
SetDisplayPositions(0, 24);
SetDisplayPositions(1, 16);
}

protected:
Expand Down
6 changes: 3 additions & 3 deletions software/o_c_REV/HEM_LowerRenz.ino
Expand Up @@ -49,7 +49,7 @@ public:
int32_t rho_h = SCALE8_16(constrain(rho + rho_cv, 4, 127));
lorenz_m->SetRho(hemisphere, USAT16(rho_h));

if (Clock(0)) lorenz_m->Reset(hemisphere);
if (Clock(0, true)) lorenz_m->Reset(hemisphere);
lorenz_m->Process();

// The scaling here is based on observation of the value range
Expand All @@ -75,7 +75,7 @@ public:
if (cursor == 0) freq = constrain(freq += direction, 0, 255);
if (cursor == 1) rho = constrain(rho += direction, 4, 127);
}

uint32_t OnDataRequest() {
uint32_t data = 0;
Pack(data, PackLocation {0,8}, (uint8_t)freq);
Expand All @@ -97,7 +97,7 @@ protected:
help[HEMISPHERE_HELP_ENCODER] = "Freq/Rho";
// "------------------" <-- Size Guide
}

private:
LorenzGeneratorManager *lorenz_m = lorenz_m->get();
int freq;
Expand Down

0 comments on commit 728d923

Please sign in to comment.