Skip to content

Commit

Permalink
Some minor cleanup
Browse files Browse the repository at this point in the history
- configuration vars unused
- max voice count down to 64
- finish up design.md plan for week
  • Loading branch information
baconpaul committed Dec 23, 2024
1 parent 4c69ac7 commit 008e014
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
12 changes: 9 additions & 3 deletions doc/design.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@ TODO BEFORE 1JAN2025

SOURCE:
- Keytrack on/off, and if off ratio -> offset from 440hz
- TX waveshapes
- waveshapes:
- TX waveshapes
- maybe a smoothed-saw and smoothed-square if i can figure out an analytic form i like
- Ratio uses 2^x table rather than pow
- Ratio lerps across block
- 90%-100% of internal nyquist mute fades

MAIN:
- Rotate VU meter to use space
- Put voice count below vU meter along with voice limit editor

MIXER:
- LFO on Mixer Node to level or pan
Expand Down Expand Up @@ -32,10 +39,9 @@ GENERAL AND CLEANUPS
- Don't send VU etc when editor not attached
- Edit area says "click a knbo to edit on startup"
- SRProvider uses table, not pow
- LFO in Pulse and S&H need a tiny little LPF to avoid super-clicka

INFRASTRUCTURE:
- mac signing
- win/lin zip only
- pipelines on all three platforms


6 changes: 4 additions & 2 deletions src/configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@

namespace baconpaul::six_sines
{

static constexpr size_t blockSize{8};
static constexpr float gSampleRate{128000.0};

static constexpr size_t numOps{6};
static constexpr size_t matrixSize{(numOps * (numOps - 1)) / 2};
static constexpr size_t numMacros{6};
static constexpr size_t numTargetsPerMacro{4};
static constexpr size_t numMIDIRoutes{12};

static constexpr size_t maxVoices{64};

} // namespace baconpaul::six_sines

Expand Down
2 changes: 1 addition & 1 deletion src/synth/synth.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ struct Synth

struct VMConfig
{
static constexpr size_t maxVoiceCount{128};
static constexpr size_t maxVoiceCount{maxVoices};
using voice_t = Voice;
};

Expand Down

0 comments on commit 008e014

Please sign in to comment.