Browse Source

Create new space for Developer Build options.

main
heck 7 months ago
parent
commit
34f11550e1
  1. 4
      src/globals.hh
  2. 9
      src/main_perkons.cc

4
src/globals.hh

@ -26,6 +26,10 @@ namespace Heck {
constexpr int TRACK_MODE2 = 79;
constexpr int TRACK_FILTERMODE = 80;
} // namespace MIDI_Mapping
namespace Developer {
constexpr bool BOOT_WAIT_FOR_LOG = false;
}
} // namespace Constants
// Types

9
src/main_perkons.cc

@ -9,6 +9,7 @@
#include "instr_kick.hh"
#include "instr_noise.hh"
#include "instr_fm.hh"
#include "instr_grainlet.hh"
namespace ld = daisy;
namespace dsp = daisysp;
@ -24,7 +25,7 @@ namespace Heck {
static ld::MidiUartHandler midi{};
static ld::FIFO<ld::MidiEvent, 128> event_log{};
Instrument::Noise instrument0{};
Instrument::Grainlet instrument0{};
Instrument::FM instrument1{};
Instrument::FM instrument2{};
Instrument::Kick instrument3{};
@ -197,7 +198,7 @@ namespace Heck {
{
hw.Configure();
hw.Init();
hw.StartLog(true);
hw.StartLog(Constants::Developer::BOOT_WAIT_FOR_LOG);
but_rec.Init(hw.GetPin(28), 0);
@ -399,13 +400,13 @@ namespace Heck {
clock_bar_new = clock.count_bar();
if (clock_bar_new != clock_bar_current) {
clock_bar_current = clock_bar_new;
hw.PrintLine("Bar: %i", clock_bar_current);
// hw.PrintLine("Bar: %i", clock_bar_current);
}
clock_16n_new = clock.count_16n();
if (clock_16n_new != clock_16n_current) {
clock_16n_current = clock_16n_new;
hw.PrintLine("16n: %i", clock_16n_current);
// hw.PrintLine("16n: %i", clock_16n_current);
sequencer.next_step();
}

Loading…
Cancel
Save