iOS 0.3.0: card editors like Android's for every plugin (knobs, switches, tabs, drawings)
Layouts exported from Android's DeviceLayouts (DeviceLayouts.json), iOS layouts for the devices with hand-built Android editors, SwiftUI editor shared by the extension and the app, Mac snapshot tool for the editors. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
47588990ce
commit
b6589ee792
@@ -0,0 +1,77 @@
|
||||
// SPDX-FileCopyrightText: 2026 Reactorcoremeltdown
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
/// Card layouts for the devices whose Android editor is hand-built (Android's
|
||||
/// DeviceLayouts only has a one-card fallback for them), grouped the way those
|
||||
/// Android editors group their controls.
|
||||
enum BespokeLayouts {
|
||||
typealias P = LayoutPanel
|
||||
typealias V = LayoutPanel.Viz
|
||||
|
||||
static let pages: [String: [LayoutPage]] = [
|
||||
"NES_SYNTH": [
|
||||
LayoutPage(title: "Osc", panels: (0..<3).map { i in
|
||||
P(title: "Oscillator \(i + 1)", tone: .SOURCE,
|
||||
keys: ["osc\(i)wave", "osc\(i)level", "osc\(i)oct", "osc\(i)semi", "osc\(i)fine"])
|
||||
} + [P(title: "Noise", tone: .SOURCE, keys: ["noise"])]),
|
||||
LayoutPage(title: "Filter", panels: [
|
||||
P(title: "Filter", tone: .FILTER, keys: ["cutoff", "reso", "keytrack", "fenvamt"],
|
||||
viz: V(kind: "filter", cutoff: "cutoff", reso: "reso"), labels: ["fenvamt": "Env Amt"]),
|
||||
P(title: "Filter envelope", tone: .ENV, keys: ["fatk", "fdec", "fsus", "frel"],
|
||||
viz: V(kind: "envelope", a: "fatk", d: "fdec", s: "fsus", r: "frel")),
|
||||
]),
|
||||
LayoutPage(title: "Amp", panels: [
|
||||
P(title: "Amp envelope", tone: .ENV, keys: ["attack", "decay", "sustain", "release"],
|
||||
viz: V(kind: "envelope", a: "attack", d: "decay", s: "sustain", r: "release")),
|
||||
]),
|
||||
LayoutPage(title: "LFO", panels: [
|
||||
P(title: "LFO", tone: .MOD, keys: ["lfowave", "lfodiv", "lfophase"],
|
||||
viz: V(kind: "lfo", wave: "lfowave"), labels: ["lfodiv": "Rate", "lfophase": "Phase"]),
|
||||
]),
|
||||
LayoutPage(title: "Mod", panels: (0..<4).map { i in
|
||||
P(title: "Mod slot \(i + 1)", tone: .MOD, keys: ["m\(i)src", "m\(i)dst", "m\(i)amt"],
|
||||
labels: ["m\(i)src": "Source", "m\(i)dst": "Target", "m\(i)amt": "Amount"])
|
||||
}),
|
||||
],
|
||||
"DELAY": [
|
||||
LayoutPage(title: "Delay", panels: [
|
||||
P(title: "Tape heads", tone: .MOD,
|
||||
keys: (0..<4).flatMap { ["head\($0)On", "head\($0)Div"] },
|
||||
labels: Dictionary(uniqueKeysWithValues: (0..<4).flatMap {
|
||||
[("head\($0)On", "Head \($0 + 1)"), ("head\($0)Div", "Head \($0 + 1)")]
|
||||
})),
|
||||
P(title: "Loop", tone: .OUT, keys: ["feedback", "drywet", "tape"],
|
||||
labels: ["drywet": "Mix", "tape": "Tape"]),
|
||||
]),
|
||||
],
|
||||
"TAPE_ENGINE": [
|
||||
LayoutPage(title: "Tape", panels: [
|
||||
P(title: "Transport", tone: .SOURCE, keys: ["speed", "division"], labels: ["division": "Wow Sync"]),
|
||||
P(title: "Wear", tone: .MOD, keys: ["wow", "flutter", "hiss"]),
|
||||
]),
|
||||
],
|
||||
"MIX_TIGHTENER": [
|
||||
LayoutPage(title: "Tightener", panels: [
|
||||
P(title: "Strength", tone: .OUT, keys: ["strength"]),
|
||||
]),
|
||||
],
|
||||
"GRANULAR": [
|
||||
LayoutPage(title: "Glitch", panels: [
|
||||
P(title: "Glitch", tone: .MOD, keys: ["intensity"]),
|
||||
]),
|
||||
],
|
||||
"SAMPLER": [
|
||||
LayoutPage(title: "Sampler", panels: [
|
||||
P(title: "Output", tone: .OUT, keys: ["volume"]),
|
||||
]),
|
||||
],
|
||||
"SOUNDFONT": [
|
||||
LayoutPage(title: "Loader", panels: [
|
||||
P(title: "Sample", tone: .SOURCE, keys: ["program", "loop", "loopXfade", "volume"],
|
||||
labels: ["loopXfade": "Loop Fade"]),
|
||||
P(title: "Envelope", tone: .ENV, keys: ["attack", "decay", "sustain", "release"],
|
||||
viz: V(kind: "envelope", a: "attack", d: "decay", s: "sustain", r: "release")),
|
||||
]),
|
||||
],
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user