Bake window: derive it from the rate the voice actually reads at, so a dialled Rate or downward Pitch no longer truncates the file
This commit is contained in:
@@ -317,6 +317,12 @@ static void testEveryDefaultHasAnExactNormalizedPreimage() {
|
||||
CHECK(deckParamNorm(DeckParam::kTrigLength, d) == d.trigger.lengthFraction);
|
||||
CHECK(deckParamNorm(DeckParam::kTrigHold, d) == d.trigAhd.holdFraction);
|
||||
CHECK(deckBipolarFromNorm(deckParamNorm(DeckParam::kFilterModAmt, d)) == d.filter.modAmount);
|
||||
// The PITCH/RATE pair. Rate's preimage is the taper's unity detent, which sits at true
|
||||
// centre only because these bounds are reciprocal; Pitch's is the depth taper's exact zero.
|
||||
CHECK(rateRatioFromNorm(deckParamNorm(DeckParam::kRate, d), kRateMinRatio, kRateMaxRatio) ==
|
||||
d.playRate);
|
||||
CHECK(depthSemitonesFromNorm(deckParamNorm(DeckParam::kPitch, d), kPitchDepthMaxSemis) ==
|
||||
d.pitchOffsetSemitones);
|
||||
CHECK(util::curveFromKnobNorm(deckParamNorm(DeckParam::kAttackCurve, d)) ==
|
||||
d.adsr.attackCurve);
|
||||
// Master gain's unity: the case where a hair off is an audible gain error rather than a
|
||||
|
||||
Reference in New Issue
Block a user