From fe78a675d7d3b0f2e64c6283626a548d16b491fe Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Sun, 3 Jul 2016 17:35:37 -1000 Subject: [PATCH] Change default volume to 80% to fill newfound headroom --- driver/amuseplay.cpp | 2 +- lib/Sequencer.cpp | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/driver/amuseplay.cpp b/driver/amuseplay.cpp index 429e753..c1672ac 100644 --- a/driver/amuseplay.cpp +++ b/driver/amuseplay.cpp @@ -132,7 +132,7 @@ struct AppCallback : boo::IApplicationCallback int8_t m_lastChanProg = -1; /* Control state */ - float m_volume = 0.5f; + float m_volume = 0.8f; float m_modulation = 0.f; float m_pitchBend = 0.f; bool m_updateDisp = false; diff --git a/lib/Sequencer.cpp b/lib/Sequencer.cpp index b084f1b..7482b7d 100644 --- a/lib/Sequencer.cpp +++ b/lib/Sequencer.cpp @@ -356,6 +356,15 @@ void Sequencer::setCtrlValue(uint8_t chan, uint8_t ctrl, int8_t val) if (chan > 15) return; + if (ctrl == 0x66) + { + printf("Loop Start\n"); + } + else if (ctrl == 0x67) + { + printf("Loop End\n"); + } + if (!m_chanStates[chan]) m_chanStates[chan].emplace(*this, chan);