Skip to content

Commit

Permalink
Allow output amplitude boost
Browse files Browse the repository at this point in the history
1. A PMD which is cubic attenuation and gain both in codebase
2. use it to set zone and group output from -inf to 12db to
   couple with mod-clamping
  • Loading branch information
baconpaul committed Sep 29, 2024
1 parent 3ee7f2f commit 99e9219
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libs/sst/sst-basic-blocks
3 changes: 2 additions & 1 deletion src/engine/group.h
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,8 @@ struct Group : MoveableOnly<Group>,
} // namespace scxt::engine

SC_DESCRIBE(scxt::engine::Group::GroupOutputInfo,
SC_FIELD(amplitude, pmd().asCubicDecibelAttenuation().withName("Amplitude"));
SC_FIELD(amplitude,
pmd().asCubicDecibelAttenuationWithUpperDBBound(12).withName("Amplitude"));
SC_FIELD(pan, pmd().asPercentBipolar().withName("Pan"));
SC_FIELD(procRouting, pmd().asInt().withRange(0, 1));
SC_FIELD(oversample, pmd().asBool().withName("Oversample"));
Expand Down
3 changes: 2 additions & 1 deletion src/engine/zone.h
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,8 @@ struct Zone : MoveableOnly<Zone>, HasGroupZoneProcessors<Zone>, SampleRateSuppor
} // namespace scxt::engine

SC_DESCRIBE(scxt::engine::Zone::ZoneOutputInfo,
SC_FIELD(amplitude, pmd().asCubicDecibelAttenuation().withName("Amplitude"));
SC_FIELD(amplitude,
pmd().asCubicDecibelAttenuationWithUpperDBBound(12).withName("Amplitude"));
SC_FIELD(pan, pmd().asPercentBipolar().withName("Pan"));
SC_FIELD(procRouting, pmd().asInt().withRange(0, 1));)

Expand Down

0 comments on commit 99e9219

Please sign in to comment.