Rename Mu-Tron pedal to Mutant (de-trademark)
Rename the user-facing 'Mu-Tron' pedal to the non-proprietary 'Mutant': displayName, registry key, PedalType.mutant, enclosure color, palette order, and the class (MuTronPedal -> MutantPedal) + test file. The underlying Lyrebird MuTronIII generator (and its Mode/Sweep types) keep their names — that's the dependency's DSP type, not user-facing. Note: displayName doubles as the rig-save key, so rigs saved with 'Mu-Tron' won't match on load (acceptable pre-1.0; nothing released). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -248,7 +248,7 @@ final class ShoeGazeDemoController {
|
||||
///
|
||||
/// Board 1: Overdrive → Delay → Reverb → Modulation
|
||||
/// Board 2: Fuzz → Tremolo → Phaser → Compressor
|
||||
/// Board 3: Mu-Tron → Auto-Wah → Feedback Delay → Multi-Tap Delay
|
||||
/// Board 3: Mutant → Auto-Wah → Feedback Delay → Multi-Tap Delay
|
||||
private func buildBoards() {
|
||||
do {
|
||||
let board1: PedalBoard = try shoeGaze.addBoard()
|
||||
@@ -269,7 +269,7 @@ final class ShoeGazeDemoController {
|
||||
|
||||
let board3: PedalBoard = try shoeGaze.addBoard()
|
||||
board3.label = "Board 3"
|
||||
try board3.add(MuTronPedal())
|
||||
try board3.add(MutantPedal())
|
||||
try board3.add(AutoWahPedal())
|
||||
try board3.add(FeedbackDelayPedal())
|
||||
try board3.add(MultiTapDelayPedal())
|
||||
|
||||
@@ -29,7 +29,7 @@ signal (no hardware needed) or on live guitar through an audio input.
|
||||
| Category | Pedals |
|
||||
|---|---|
|
||||
| Drive & dynamics | Overdrive, Fuzz, Compressor, Limiter, Noise Gate |
|
||||
| EQ & filter | Graphic EQ, Auto-Wah, Mu-Tron, Phaser |
|
||||
| EQ & filter | Graphic EQ, Auto-Wah, Mutant, Phaser |
|
||||
| Modulation | Tremolo, Modulation |
|
||||
| Delay & reverb | Delay, Feedback Delay, Multi-Tap Delay, Ping-Pong, Reverb |
|
||||
| Pitch & octave | Octave Splitter, Bass Octaver |
|
||||
|
||||
@@ -53,7 +53,7 @@ public extension PedalType {
|
||||
// EQ & filter
|
||||
static let graphicEQ = PedalType("Graphic EQ")
|
||||
static let autoWah = PedalType("Auto-Wah")
|
||||
static let muTron = PedalType("Mu-Tron")
|
||||
static let mutant = PedalType("Mutant")
|
||||
static let phaser = PedalType("Phaser")
|
||||
|
||||
// Modulation
|
||||
|
||||
@@ -9,7 +9,7 @@ import LyrebirdUI
|
||||
|
||||
/// Amplitude-tracked auto-wah pedal built from discrete tracking + filter stages.
|
||||
///
|
||||
/// Unlike `MuTronPedal` (which wraps the single fused `MuTronIII` generator), this pedal
|
||||
/// Unlike `MutantPedal` (which wraps the single fused `MuTronIII` generator), this pedal
|
||||
/// wires the envelope path explicitly: an `AmplitudeFollower` tracks the dry signal level,
|
||||
/// the envelope is scaled by `sensitivity` and clamped to `[0, 1]`, then mapped through an
|
||||
/// exponential `LinExp` curve to a cutoff frequency that sweeps a resonant `SVF` bandpass.
|
||||
|
||||
+5
-5
@@ -1,4 +1,4 @@
|
||||
// MuTronPedal.swift
|
||||
// MutantPedal.swift
|
||||
// Lyrebird
|
||||
//
|
||||
// Copyright (c) 2026 Joshua Parmenter / realizedsound
|
||||
@@ -7,7 +7,7 @@
|
||||
import LyrebirdSynth
|
||||
import LyrebirdUI
|
||||
|
||||
/// Envelope-following filter pedal modeled on the Musitronics Mu-Tron III.
|
||||
/// Envelope-following auto-wah / funk-filter pedal.
|
||||
///
|
||||
/// Wraps the Lyrebird `MuTronIII` generator. The input amplitude drives an exponential
|
||||
/// cutoff sweep through a resonant Chamberlin state-variable filter. Because `MuTronIII`
|
||||
@@ -24,7 +24,7 @@ import LyrebirdUI
|
||||
/// ## Switches
|
||||
/// - `direction` (two-state): `0` = Down (louder closes the filter), `1` = Up (louder opens it).
|
||||
/// - `mode` (three-state): `0` = lowpass, `1` = bandpass (classic vowel wah), `2` = highpass.
|
||||
public final class MuTronPedal: Pedal {
|
||||
public final class MutantPedal: Pedal {
|
||||
|
||||
// MARK: - Parameters
|
||||
|
||||
@@ -107,10 +107,10 @@ public final class MuTronPedal: Pedal {
|
||||
|
||||
public init(inputBus: Int = 0, outputBus: Int = 0) {
|
||||
super.init(
|
||||
name: "Mu-Tron",
|
||||
name: "Mutant",
|
||||
inputBus: inputBus,
|
||||
outputBus: outputBus,
|
||||
initialMix: MuTronPedal.defaultMix
|
||||
initialMix: MutantPedal.defaultMix
|
||||
)
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
/// To register custom pedal types, extend `builtIn` by building your own dictionary
|
||||
/// and merging it before calling `loadRig`. The built-in registry covers the factory
|
||||
/// pedals: Overdrive, Delay, Reverb, Modulation, Fuzz, Tremolo, Phaser, Compressor,
|
||||
/// Mu-Tron, Auto-Wah, Feedback Delay, Multi-Tap Delay, Octave Splitter, and Ping-Pong.
|
||||
/// Mutant, Auto-Wah, Feedback Delay, Multi-Tap Delay, Octave Splitter, and Ping-Pong.
|
||||
///
|
||||
/// > Note: A saved rig captures each board's *linear* pedal chain only (see `BoardState`).
|
||||
/// > When a registered widener (e.g. Octave Splitter) or stereo-native pedal (e.g.
|
||||
@@ -39,7 +39,7 @@ public enum PedalRegistry {
|
||||
"Tremolo": { TremoloPedal() },
|
||||
"Phaser": { PhaserPedal() },
|
||||
"Compressor": { CompressorPedal() },
|
||||
"Mu-Tron": { MuTronPedal() },
|
||||
"Mutant": { MutantPedal() },
|
||||
"Auto-Wah": { AutoWahPedal() },
|
||||
"Feedback Delay": { FeedbackDelayPedal() },
|
||||
"Multi-Tap Delay": { MultiTapDelayPedal() },
|
||||
|
||||
@@ -47,7 +47,7 @@ public struct PedalPaletteView: View {
|
||||
private static let preferredOrder: [String] = [
|
||||
"Overdrive", "Compressor", "Limiter", "Noise Gate", "Fuzz",
|
||||
"Graphic EQ", "Tremolo", "Phaser", "Modulation",
|
||||
"Auto-Wah", "Mu-Tron", "Bass Octaver", "Octave Splitter",
|
||||
"Auto-Wah", "Mutant", "Bass Octaver", "Octave Splitter",
|
||||
"Delay", "Feedback Delay", "Multi-Tap Delay", "Ping-Pong", "Reverb",
|
||||
]
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ private func enclosureColor(for displayName: String) -> Color {
|
||||
case "Tremolo": return Color(red: 0.20, green: 0.38, blue: 0.72) // cobalt blue
|
||||
case "Phaser": return Color(red: 0.60, green: 0.22, blue: 0.62) // violet
|
||||
case "Compressor": return Color(red: 0.18, green: 0.42, blue: 0.32) // forest green
|
||||
case "Mu-Tron": return Color(red: 0.70, green: 0.12, blue: 0.48) // magenta / plum
|
||||
case "Mutant": return Color(red: 0.70, green: 0.12, blue: 0.48) // magenta / plum
|
||||
case "Auto-Wah": return Color(red: 0.80, green: 0.62, blue: 0.10) // gold
|
||||
case "Feedback Delay": return Color(red: 0.48, green: 0.30, blue: 0.14) // tape sepia
|
||||
case "Multi-Tap Delay": return Color(red: 0.08, green: 0.48, blue: 0.68) // cyan
|
||||
|
||||
+11
-11
@@ -1,4 +1,4 @@
|
||||
// MuTronPedalTests.swift
|
||||
// MutantPedalTests.swift
|
||||
// Lyrebird
|
||||
//
|
||||
// Copyright (c) 2026 Joshua Parmenter / realizedsound
|
||||
@@ -11,8 +11,8 @@ import LyrebirdUI
|
||||
@testable import LyrebirdShoeGaze
|
||||
|
||||
@MainActor
|
||||
@Suite("MuTronPedal")
|
||||
struct MuTronPedalTests {
|
||||
@Suite("MutantPedal")
|
||||
struct MutantPedalTests {
|
||||
|
||||
@Test func buildsAndProducesNonSilentOutput() throws {
|
||||
let renderDuration: Double = 0.1
|
||||
@@ -27,7 +27,7 @@ struct MuTronPedalTests {
|
||||
}
|
||||
|
||||
let source: TestLoopSource = TestLoopSource(targetBus: srcBus.index)
|
||||
let pedal: MuTronPedal = MuTronPedal(
|
||||
let pedal: MutantPedal = MutantPedal(
|
||||
inputBus: srcBus.index,
|
||||
outputBus: dstBus.index
|
||||
)
|
||||
@@ -40,7 +40,7 @@ struct MuTronPedalTests {
|
||||
|
||||
let samples: [Float] = readStereoCAF(url: url)
|
||||
#expect(!samples.isEmpty)
|
||||
#expect(hasNonSilentOutput(samples), "MuTronPedal produced silence")
|
||||
#expect(hasNonSilentOutput(samples), "MutantPedal produced silence")
|
||||
}
|
||||
|
||||
@Test func filterModesProduceDifferentOutput() throws {
|
||||
@@ -62,7 +62,7 @@ struct MuTronPedalTests {
|
||||
}
|
||||
|
||||
let source: TestLoopSource = TestLoopSource(targetBus: srcBus.index)
|
||||
let pedal: MuTronPedal = MuTronPedal(
|
||||
let pedal: MutantPedal = MutantPedal(
|
||||
inputBus: srcBus.index,
|
||||
outputBus: dstBus.index
|
||||
)
|
||||
@@ -96,27 +96,27 @@ struct MuTronPedalTests {
|
||||
}
|
||||
|
||||
@Test func presetRoundTripPreservesSwitchPositions() throws {
|
||||
let pedal: MuTronPedal = MuTronPedal()
|
||||
let pedal: MutantPedal = MutantPedal()
|
||||
pedal.mode = 2.0 // highpass
|
||||
pedal.direction = 0.0 // down
|
||||
|
||||
let state: PedalState = pedal.captureState()
|
||||
#expect(state.switchValues == [0.0, 2.0]) // [direction, mode]
|
||||
|
||||
let restored: MuTronPedal = MuTronPedal()
|
||||
let restored: MutantPedal = MutantPedal()
|
||||
restored.applyState(state)
|
||||
#expect(restored.mode == 2.0)
|
||||
#expect(restored.direction == 0.0)
|
||||
}
|
||||
|
||||
@Test func exposesSensitivityAndResonanceKnobs() throws {
|
||||
let pedal: MuTronPedal = MuTronPedal()
|
||||
let pedal: MutantPedal = MutantPedal()
|
||||
let labels: [String] = pedal.effectKnobs.map { $0.label }
|
||||
#expect(labels == ["Sensitivity", "Resonance"])
|
||||
}
|
||||
|
||||
@Test func exposesTwoStateSweepAndThreeStateModeSwitches() throws {
|
||||
let pedal: MuTronPedal = MuTronPedal()
|
||||
let pedal: MutantPedal = MutantPedal()
|
||||
let switches: [PedalSwitch] = pedal.effectSwitches
|
||||
#expect(switches.map { $0.label } == ["Sweep", "Mode"])
|
||||
// Two-state sweep (Down/Up), three-state mode (LP/BP/HP).
|
||||
@@ -143,7 +143,7 @@ struct MuTronPedalTests {
|
||||
}
|
||||
|
||||
let source: TestLoopSource = TestLoopSource(targetBus: srcBus.index)
|
||||
let pedal: MuTronPedal = MuTronPedal(
|
||||
let pedal: MutantPedal = MutantPedal(
|
||||
inputBus: srcBus.index,
|
||||
outputBus: dstBus.index
|
||||
)
|
||||
Reference in New Issue
Block a user