fix(amps): Phase 1 review nits — docs, redundant init, test style
- AmpVoicePedal: powerAmpDriveInput / powerAmpOversample docs now cover the lower-headroom-variant case (fixed higher drive), not just master-volume amps. - FullertonReverbAmpPedal: drop the redundant override init(name:) — the class inherits AmpVoicePedal's designated init, so the convenience init and the subclasses' super.init(name:) resolve without it. - FullertonDeluxe doc: correct "2×12 Twin"/"Master drives" wording (both share the American cab; the difference is a higher fixed power-amp drive). - Tests: explicit for-loop binding type annotations; accurate diff comment. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -85,17 +85,19 @@ open class AmpVoicePedal: Pedal {
|
||||
signal
|
||||
}
|
||||
|
||||
/// Drive into the power-amp `TriodeStage`. Defaults to the fixed power-amp drive; a
|
||||
/// master-volume amp overrides this to return a live `Master` knob mapped to a drive range, so
|
||||
/// turning Master up pushes the power-amp stage into saturation — the real master-volume
|
||||
/// behaviour — rather than merely attenuating the finished output the way `level` does. Non-
|
||||
/// master amps leave it at the fixed value and are unaffected.
|
||||
/// Drive into the power-amp `TriodeStage`. Defaults to the fixed power-amp drive. Two kinds of
|
||||
/// amp override it: a **master-volume** amp returns a live `Master` knob mapped to a drive range
|
||||
/// (turning Master up pushes the power-amp stage into saturation — the real master-volume
|
||||
/// behaviour, unlike `level`, which only attenuates the finished output); a **lower-headroom
|
||||
/// variant** returns a fixed value *higher* than the default to model an amp that breaks up
|
||||
/// earlier. Either way, higher drive = more power-amp saturation.
|
||||
open var powerAmpDriveInput: any ValidGeneratorInput { powerAmpDrive }
|
||||
|
||||
/// Oversampling factor for the power-amp stage — `2` or `4`. Amps that drive the power amp hard
|
||||
/// (a `Master` control) override to `4` for more anti-alias headroom, since higher drive
|
||||
/// Oversampling factor for the power-amp stage — `2` or `4`. Any amp that drives the power amp
|
||||
/// harder than the default fixed value (a `Master` control, or a lower-headroom variant with a
|
||||
/// higher fixed drive) should override to `4` for more anti-alias headroom, since higher drive
|
||||
/// generates more high-order harmonics. Defaults to `2` (ample for the lightly-driven fixed
|
||||
/// power stage of the non-master amps).
|
||||
/// power stage of the standard voices).
|
||||
open var powerAmpOversample: Int { 2 }
|
||||
|
||||
// MARK: - Constants
|
||||
|
||||
Reference in New Issue
Block a user