Looper reverse fix + header layout compaction + tempo toggle
Looper: - Reverse now continues from the current play-head instead of jumping to duration-minus-position; anchor-based position tracking survives direction changes. Sync mode defers the flip to the next beat; Free applies immediately. - Sync switch relabeled "Sync to Tempo". Tempo/Tuner: - Add a Tempo on/off toggle (ShoeGaze.setTempoEnabled) that hides the indicator and forces every tempo-dependent pedal switch (PedalSwitch.tempoDependent) off; PedalSwitchView disables such switches via the shoeGazeTempoEnabled environment. - Tuner readout laid out inline; Tempo/Tuner pinned to fixed heights so toggling state no longer shifts surrounding layout. Header: - Collapsed to two rows: title + Tempo/Tuner (left, stacked) and engine options over input controls (right, trailing-aligned). TAP is a standard-height button. - Removed the redundant Boards button; moved Clear into the board bar. - Fixed the rig mute glyph size so toggling mute doesn't shift the volume row. Help: added a Looper section documenting transport, Free/Sync, knobs, tracks, and MIDI-assignable actions. Tests: TempoEnableTests + looper reverse/deferral coverage. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -56,6 +56,9 @@ public struct BoardBarView: View {
|
||||
private static let ledDimBrightness: Double = 0.16
|
||||
private static let ledRimOpacity: Double = 0.30
|
||||
private static let soloButtonSize: CGFloat = 22
|
||||
/// Fixed size for the rig mute glyph so the slash / wave states don't shift the volume row.
|
||||
private static let muteIconWidth: CGFloat = 16
|
||||
private static let muteIconHeight: CGFloat = 16
|
||||
private static let editingBorderWidth: CGFloat = 2
|
||||
private static let idleBorderOpacity: Double = 0.18
|
||||
private static let cellBackgroundBrightness: Double = 0.14
|
||||
@@ -71,6 +74,7 @@ public struct BoardBarView: View {
|
||||
@Binding private var editingBoardIndex: Int
|
||||
@Binding private var crossfadeSeconds: Double
|
||||
private let onAddBoard: () -> Void
|
||||
private let onClearBoards: (() -> Void)?
|
||||
|
||||
@State private var mode: PlayMode = .solo
|
||||
|
||||
@@ -84,16 +88,20 @@ public struct BoardBarView: View {
|
||||
/// tap writes this).
|
||||
/// - crossfadeSeconds: Crossfade duration applied to every board switch / toggle.
|
||||
/// - onAddBoard: Called when the trailing **+** button is tapped.
|
||||
/// - onClearBoards: Called when the trailing **Clear** button is tapped. When `nil`
|
||||
/// (the default) no Clear button is shown.
|
||||
public init(
|
||||
shoeGaze: ShoeGaze,
|
||||
editingBoardIndex: Binding<Int>,
|
||||
crossfadeSeconds: Binding<Double>,
|
||||
onAddBoard: @escaping () -> Void
|
||||
onAddBoard: @escaping () -> Void,
|
||||
onClearBoards: (() -> Void)? = nil
|
||||
) {
|
||||
self.shoeGaze = shoeGaze
|
||||
self._editingBoardIndex = editingBoardIndex
|
||||
self._crossfadeSeconds = crossfadeSeconds
|
||||
self.onAddBoard = onAddBoard
|
||||
self.onClearBoards = onClearBoards
|
||||
}
|
||||
|
||||
// MARK: - Body
|
||||
@@ -109,6 +117,11 @@ public struct BoardBarView: View {
|
||||
boardCell(index: pair.offset, board: pair.element)
|
||||
}
|
||||
addButton
|
||||
if let onClearBoards: () -> Void = onClearBoards {
|
||||
Button("Clear") { onClearBoards() }
|
||||
.buttonStyle(.bordered).tint(.red)
|
||||
.help("Remove all boards in the current rig (with the option to save first)")
|
||||
}
|
||||
}
|
||||
.frame(height: BoardBarView.barHeight)
|
||||
}
|
||||
@@ -175,7 +188,10 @@ public struct BoardBarView: View {
|
||||
Button {
|
||||
shoeGaze.toggleRigMuted()
|
||||
} label: {
|
||||
// Fixed width: the slash / wave glyphs differ in width, which would otherwise
|
||||
// shift the whole volume row a few pixels when toggling mute.
|
||||
Image(systemName: shoeGaze.rigMuted ? "speaker.slash.fill" : "speaker.wave.2.fill")
|
||||
.frame(width: BoardBarView.muteIconWidth, height: BoardBarView.muteIconHeight)
|
||||
}
|
||||
.buttonStyle(.bordered)
|
||||
.tint(shoeGaze.rigMuted ? .red : .orange)
|
||||
|
||||
@@ -66,6 +66,33 @@ public struct HelpView: View {
|
||||
+ "Delete, and Erase All.",
|
||||
]
|
||||
)
|
||||
topicSection(
|
||||
icon: "repeat",
|
||||
title: "The Looper Pedal",
|
||||
intro: "The Looper records a phrase and plays it back in a loop, with up to four "
|
||||
+ "overdub tracks (A–D). The big Record button is a smart footswitch whose job "
|
||||
+ "changes with the looper's state.",
|
||||
steps: [
|
||||
"Record (smart footswitch): first press records track A; press again to set the "
|
||||
+ "loop end and start playback (auto-overdubbing A); while playing it toggles "
|
||||
+ "overdub on the selected track.",
|
||||
"Free vs Sync to Tempo: Free loops are whatever length you play, captured instantly. "
|
||||
+ "Sync quantizes record-start and loop-close to the beat clock — so every loop is "
|
||||
+ "a whole number of beats. Sync needs the Tempo indicator On; it is disabled while "
|
||||
+ "tempo is off.",
|
||||
"Knobs: Playback sets loop level against your live signal; Overdub sets the record "
|
||||
+ "level of new overdubs; Feedback sets how much existing audio survives each pass "
|
||||
+ "(1.0 = keep forever); Crossfade smooths loop mute/unmute so it doesn't click.",
|
||||
"Reverse flips playback direction from the current position (in Sync it waits for the "
|
||||
+ "next beat). Stop halts now; Cue Stop arms a stop at the next loop end (press again "
|
||||
+ "to cancel); Reset clears every track back to empty.",
|
||||
"Tracks A–D: tap a dot to select the track Record overdubs into; tap a selected, "
|
||||
+ "recorded track again to mute or unmute it.",
|
||||
"MIDI: Record, Stop, Cue Stop, Reverse, Sync, Reset, and each Track A–D map as "
|
||||
+ "footswitch (Program Change) actions in MIDI Mapping; the Crossfade / Playback / "
|
||||
+ "Overdub / Feedback knobs sweep from an expression pedal like any pedal knob.",
|
||||
]
|
||||
)
|
||||
topicSection(
|
||||
icon: "square.and.arrow.down",
|
||||
title: "Saving & Autosave",
|
||||
|
||||
@@ -43,10 +43,15 @@ public struct PedalSwitchView: View {
|
||||
private static let borderLineWidth: CGFloat = 1
|
||||
private static let activeTextBrightness: Double = 0.12
|
||||
|
||||
/// Opacity applied to a tempo-dependent switch while the tempo indicator is turned off.
|
||||
private static let tempoDisabledOpacity: Double = 0.4
|
||||
|
||||
// MARK: - Properties
|
||||
|
||||
private let pedalSwitch: PedalSwitch
|
||||
|
||||
@Environment(\.shoeGazeTempoEnabled) private var tempoEnabled: Bool
|
||||
|
||||
// MARK: - Init
|
||||
|
||||
/// Creates a segmented switch view.
|
||||
@@ -62,6 +67,8 @@ public struct PedalSwitchView: View {
|
||||
// Reading `node.value` registers this view for @Observable re-render on change.
|
||||
let current: Double = pedalSwitch.node.value
|
||||
let selectedIndex: Int = nearestIndex(to: current)
|
||||
// A tempo-synced switch is inert while the tempo indicator is turned off.
|
||||
let inert: Bool = pedalSwitch.tempoDependent && !tempoEnabled
|
||||
|
||||
VStack(spacing: PedalSwitchView.labelSpacing) {
|
||||
HStack(spacing: PedalSwitchView.segmentSpacing) {
|
||||
@@ -77,10 +84,12 @@ public struct PedalSwitchView: View {
|
||||
lineWidth: PedalSwitchView.borderLineWidth)
|
||||
)
|
||||
|
||||
Text(pedalSwitch.label)
|
||||
Text(inert ? "\(pedalSwitch.label) (tempo off)" : pedalSwitch.label)
|
||||
.font(.system(size: PedalSwitchView.captionFontSize))
|
||||
.foregroundStyle(Color.white)
|
||||
}
|
||||
.disabled(inert)
|
||||
.opacity(inert ? PedalSwitchView.tempoDisabledOpacity : 1.0)
|
||||
}
|
||||
|
||||
// MARK: - Subviews
|
||||
|
||||
@@ -384,8 +384,7 @@ public struct ShoeGazeBuilderView: View {
|
||||
/// board canvas.
|
||||
private var builderColumn: some View {
|
||||
VStack(alignment: .leading, spacing: ShoeGazeBuilderView.sectionSpacing) {
|
||||
transportRow
|
||||
ioRow
|
||||
headerSection
|
||||
#if !os(macOS)
|
||||
recordingRow
|
||||
#endif
|
||||
@@ -395,6 +394,7 @@ public struct ShoeGazeBuilderView: View {
|
||||
boardArea
|
||||
}
|
||||
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .topLeading)
|
||||
.environment(\.shoeGazeTempoEnabled, shoeGaze.tempoEnabled)
|
||||
}
|
||||
|
||||
/// Top section: the scope + CPU meters on the left (sized to align with the mixer's
|
||||
@@ -415,7 +415,8 @@ public struct ShoeGazeBuilderView: View {
|
||||
shoeGaze: shoeGaze,
|
||||
editingBoardIndex: $selectedBoardIndex,
|
||||
crossfadeSeconds: $crossfadeSeconds,
|
||||
onAddBoard: { addBoard() }
|
||||
onAddBoard: { addBoard() },
|
||||
onClearBoards: { showClearDialog = true }
|
||||
)
|
||||
Divider().overlay(Color.white.opacity(ShoeGazeBuilderView.dividerOpacity))
|
||||
pedalPickerRow
|
||||
@@ -530,9 +531,12 @@ public struct ShoeGazeBuilderView: View {
|
||||
|
||||
// MARK: - Transport row
|
||||
|
||||
private var transportRow: some View {
|
||||
/// Two-row header. Left: the title with the Tempo / Tuner toggles stacked and left-aligned
|
||||
/// beside it. Right: the engine options (row 1) over the input controls (row 2), trailing-
|
||||
/// aligned so both right edges line up. Keeping it two rows tall frees canvas for the pedals.
|
||||
private var headerSection: some View {
|
||||
_ = transportTick
|
||||
return HStack(spacing: ShoeGazeBuilderView.rowSpacing) {
|
||||
return HStack(alignment: .top, spacing: ShoeGazeBuilderView.rowSpacing) {
|
||||
VStack(alignment: .leading, spacing: 1) {
|
||||
Text("ShoeGaze Builder")
|
||||
.font(.title2).bold()
|
||||
@@ -551,19 +555,60 @@ public struct ShoeGazeBuilderView: View {
|
||||
.foregroundStyle(Color.red)
|
||||
}
|
||||
}
|
||||
Spacer()
|
||||
TempoView(shoeGaze: shoeGaze)
|
||||
TunerView(shoeGaze: shoeGaze)
|
||||
if let midi: MIDIController = midi {
|
||||
MIDIIndicatorView(controller: midi) { showMIDISheet = true }
|
||||
|
||||
// Tempo over Tuner, left-aligned to each other.
|
||||
VStack(alignment: .leading, spacing: ShoeGazeBuilderView.rowSpacing) {
|
||||
TempoView(shoeGaze: shoeGaze)
|
||||
TunerView(shoeGaze: shoeGaze)
|
||||
}
|
||||
|
||||
Spacer()
|
||||
|
||||
// Right column: engine options over input controls, both right-aligned.
|
||||
VStack(alignment: .trailing, spacing: ShoeGazeBuilderView.rowSpacing) {
|
||||
HStack(spacing: ShoeGazeBuilderView.rowSpacing) {
|
||||
if let midi: MIDIController = midi {
|
||||
MIDIIndicatorView(controller: midi) { showMIDISheet = true }
|
||||
}
|
||||
helpButton
|
||||
rigBypassButton
|
||||
EngineConfigView(
|
||||
shoeGaze: shoeGaze,
|
||||
hardwareSampleRate: hardwareSampleRate,
|
||||
onConfigApplied: { transportTick.toggle() }
|
||||
)
|
||||
}
|
||||
.frame(height: TempoView.enabledHeight)
|
||||
|
||||
HStack(spacing: ShoeGazeBuilderView.rowSpacing) {
|
||||
// Mute-rig-while-tuning toggle sits to the left of the input selector.
|
||||
Toggle("Mute rig", isOn: Binding(
|
||||
get: { shoeGaze.tunerMutesRig },
|
||||
set: { shoeGaze.tunerMutesRig = $0 }
|
||||
))
|
||||
.toggleStyle(.switch)
|
||||
|
||||
Text("Input:")
|
||||
.font(.subheadline)
|
||||
.foregroundStyle(Color.white.opacity(ShoeGazeBuilderView.labelOpacity))
|
||||
Picker("Input", selection: inputBinding) {
|
||||
Text("Test Loop").tag(ShoeGazeBuilderView.testLoopTag)
|
||||
if shoeGaze.engine.numInputChannels > 0 {
|
||||
ForEach(Array(0..<shoeGaze.engine.numInputChannels), id: \.self) { channel in
|
||||
Text("In \(channel)").tag(channel)
|
||||
}
|
||||
} else if onEnableLiveInput != nil {
|
||||
// No input channel yet: offer live input; selecting it asks the host to
|
||||
// request mic access and rebuild the engine with one (channel 0).
|
||||
Text("Live Input").tag(0)
|
||||
}
|
||||
}
|
||||
.labelsHidden()
|
||||
.pickerStyle(.menu)
|
||||
.foregroundStyle(Color.white)
|
||||
}
|
||||
.frame(height: TempoView.enabledHeight)
|
||||
}
|
||||
helpButton
|
||||
rigBypassButton
|
||||
EngineConfigView(
|
||||
shoeGaze: shoeGaze,
|
||||
hardwareSampleRate: hardwareSampleRate,
|
||||
onConfigApplied: { transportTick.toggle() }
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -595,40 +640,6 @@ public struct ShoeGazeBuilderView: View {
|
||||
.help("Bypass the entire rig — every board passes your dry input straight through")
|
||||
}
|
||||
|
||||
// MARK: - Input + board + save/load row
|
||||
|
||||
private var ioRow: some View {
|
||||
HStack(spacing: ShoeGazeBuilderView.rowSpacing) {
|
||||
Text("Input:")
|
||||
.font(.subheadline)
|
||||
.foregroundStyle(Color.white.opacity(ShoeGazeBuilderView.labelOpacity))
|
||||
Picker("Input", selection: inputBinding) {
|
||||
Text("Test Loop").tag(ShoeGazeBuilderView.testLoopTag)
|
||||
if shoeGaze.engine.numInputChannels > 0 {
|
||||
ForEach(Array(0..<shoeGaze.engine.numInputChannels), id: \.self) { channel in
|
||||
Text("In \(channel)").tag(channel)
|
||||
}
|
||||
} else if onEnableLiveInput != nil {
|
||||
// No input channel yet: offer live input; selecting it asks the host to
|
||||
// request mic access and rebuild the engine with one (channel 0).
|
||||
Text("Live Input").tag(0)
|
||||
}
|
||||
}
|
||||
.pickerStyle(.menu)
|
||||
.foregroundStyle(Color.white)
|
||||
|
||||
Button("Boards…") { showBoardsSheet = true }
|
||||
.buttonStyle(.bordered).tint(.orange)
|
||||
.help("Rename, reorder, or delete boards")
|
||||
|
||||
Button("Clear") { showClearDialog = true }
|
||||
.buttonStyle(.bordered).tint(.red)
|
||||
.help("Remove all boards in the current rig (with the option to save first)")
|
||||
|
||||
Spacer()
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - Board area
|
||||
|
||||
private var boardArea: some View {
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
// TempoEnabledEnvironment.swift
|
||||
// Lyrebird
|
||||
//
|
||||
// Copyright (c) 2026 Joshua Parmenter / realizedsound
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
import SwiftUI
|
||||
|
||||
/// Environment flag mirroring ``ShoeGaze/tempoEnabled`` so leaf views (e.g. ``PedalSwitchView``)
|
||||
/// can disable tempo-synced controls without each needing a reference to the session. Set once
|
||||
/// near the builder root; defaults to `true`.
|
||||
private struct TempoEnabledKey: EnvironmentKey {
|
||||
static let defaultValue: Bool = true
|
||||
}
|
||||
|
||||
extension EnvironmentValues {
|
||||
/// `true` when the tempo indicator is shown and tempo-synced features are active.
|
||||
var shoeGazeTempoEnabled: Bool {
|
||||
get { self[TempoEnabledKey.self] }
|
||||
set { self[TempoEnabledKey.self] = newValue }
|
||||
}
|
||||
}
|
||||
@@ -24,10 +24,12 @@ public struct TempoView: View {
|
||||
private static let minBpm: Double = 30.0
|
||||
private static let maxBpm: Double = 300.0
|
||||
private static let bpmStep: Double = 1.0
|
||||
private static let ledDiameter: CGFloat = 16
|
||||
private static let panelSpacing: CGFloat = 10
|
||||
private static let rowSpacing: CGFloat = 14
|
||||
private static let tapAreaSize: CGFloat = 64
|
||||
private static let ledDiameter: CGFloat = 14
|
||||
private static let rowSpacing: CGFloat = 10
|
||||
/// Shared width for the Tempo / Tuner engage toggles so they left-align in the stacked column.
|
||||
static let toggleWidth: CGFloat = 96
|
||||
/// Fixed row height = the enabled (BPM/TAP-visible) height, so toggling doesn't shift layout.
|
||||
static let enabledHeight: CGFloat = 34
|
||||
|
||||
// MARK: - Properties
|
||||
|
||||
@@ -47,8 +49,16 @@ public struct TempoView: View {
|
||||
// MARK: - Body
|
||||
|
||||
public var body: some View {
|
||||
VStack(spacing: TempoView.panelSpacing) {
|
||||
HStack(spacing: TempoView.rowSpacing) {
|
||||
HStack(spacing: TempoView.rowSpacing) {
|
||||
Button(shoeGaze.tempoEnabled ? "Tempo: On" : "Tempo: Off") {
|
||||
shoeGaze.setTempoEnabled(!shoeGaze.tempoEnabled)
|
||||
}
|
||||
.buttonStyle(.bordered)
|
||||
.tint(shoeGaze.tempoEnabled ? .green : .gray)
|
||||
.frame(width: TempoView.toggleWidth, alignment: .leading)
|
||||
.help("Show the tempo indicator and enable tempo-synced controls")
|
||||
|
||||
if shoeGaze.tempoEnabled {
|
||||
led
|
||||
Text("\(Int(displayedBpm.rounded())) BPM")
|
||||
.font(.system(size: 18, weight: .semibold, design: .rounded))
|
||||
@@ -67,12 +77,15 @@ public struct TempoView: View {
|
||||
step: TempoView.bpmStep
|
||||
)
|
||||
.labelsHidden()
|
||||
}
|
||||
|
||||
tapArea
|
||||
tapArea
|
||||
}
|
||||
}
|
||||
.task {
|
||||
while !Task.isCancelled {
|
||||
// Pin to the enabled height (BPM / stepper / TAP visible) so toggling tempo on/off never
|
||||
// shifts the surrounding layout.
|
||||
.frame(height: TempoView.enabledHeight)
|
||||
.task(id: shoeGaze.tempoEnabled) {
|
||||
while shoeGaze.tempoEnabled && !Task.isCancelled {
|
||||
let beat: Double = shoeGaze.clock.currentBeat
|
||||
let phase: Double = beat - beat.rounded(.down)
|
||||
ledOn = phase < TempoView.flashDutyCycle
|
||||
@@ -91,17 +104,17 @@ public struct TempoView: View {
|
||||
}
|
||||
|
||||
private var tapArea: some View {
|
||||
// A standard-height bordered button (not a tall circle) so the tempo row matches the
|
||||
// height of the title and the engine-option buttons and top-aligns cleanly with them.
|
||||
Button {
|
||||
shoeGaze.tapTempo()
|
||||
displayedBpm = shoeGaze.clock.bpm
|
||||
} label: {
|
||||
Text("TAP")
|
||||
.font(.system(size: 14, weight: .bold, design: .rounded))
|
||||
.frame(width: TempoView.tapAreaSize, height: TempoView.tapAreaSize)
|
||||
.background(Color.white.opacity(0.08))
|
||||
.clipShape(Circle())
|
||||
.font(.system(size: 13, weight: .bold, design: .rounded))
|
||||
}
|
||||
.buttonStyle(.plain)
|
||||
.buttonStyle(.bordered)
|
||||
.tint(.gray)
|
||||
.foregroundStyle(Color.white)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,10 +26,12 @@ public struct TunerView: View {
|
||||
private static let trackingConfidenceThreshold: Double = 0.8
|
||||
/// Opacity applied to the latched readout while not actively tracking.
|
||||
private static let untrackedOpacity: Double = 0.35
|
||||
private static let panelSpacing: CGFloat = 10
|
||||
private static let rowSpacing: CGFloat = 14
|
||||
private static let noteFontSize: CGFloat = 34
|
||||
private static let readoutSpacing: CGFloat = 10
|
||||
private static let noteFontSize: CGFloat = 24
|
||||
private static let statusFontSize: CGFloat = 10
|
||||
/// Fixed row height = the engaged (readout-visible) height, so toggling doesn't shift layout.
|
||||
static let engagedHeight: CGFloat = 34
|
||||
|
||||
// MARK: - Properties
|
||||
|
||||
@@ -50,25 +52,23 @@ public struct TunerView: View {
|
||||
// MARK: - Body
|
||||
|
||||
public var body: some View {
|
||||
VStack(spacing: TunerView.panelSpacing) {
|
||||
HStack(spacing: TunerView.rowSpacing) {
|
||||
Button(shoeGaze.tunerEngaged ? "Tuner: On" : "Tuner: Off") {
|
||||
shoeGaze.toggleTunerEngaged()
|
||||
}
|
||||
.buttonStyle(.bordered)
|
||||
.tint(shoeGaze.tunerEngaged ? .green : .gray)
|
||||
|
||||
Toggle("Mute rig", isOn: Binding(
|
||||
get: { shoeGaze.tunerMutesRig },
|
||||
set: { shoeGaze.tunerMutesRig = $0 }
|
||||
))
|
||||
.toggleStyle(.switch)
|
||||
// Single horizontal row so engaging the tuner grows it sideways, not downward — the
|
||||
// transport row keeps its height and the pedals below don't jump.
|
||||
HStack(spacing: TunerView.rowSpacing) {
|
||||
Button(shoeGaze.tunerEngaged ? "Tuner: On" : "Tuner: Off") {
|
||||
shoeGaze.toggleTunerEngaged()
|
||||
}
|
||||
.buttonStyle(.bordered)
|
||||
.tint(shoeGaze.tunerEngaged ? .green : .gray)
|
||||
.frame(width: TempoView.toggleWidth, alignment: .leading)
|
||||
|
||||
if shoeGaze.tunerEngaged {
|
||||
readout
|
||||
}
|
||||
}
|
||||
// Pin to the engaged height (the taller readout state) so toggling the tuner on/off never
|
||||
// shifts the surrounding layout by a few pixels.
|
||||
.frame(height: TunerView.engagedHeight)
|
||||
.task(id: shoeGaze.tunerEngaged) {
|
||||
while shoeGaze.tunerEngaged && !Task.isCancelled {
|
||||
updateReading()
|
||||
@@ -100,7 +100,7 @@ public struct TunerView: View {
|
||||
@ViewBuilder
|
||||
private var readout: some View {
|
||||
if let pitch: TunerPitchReading = latchedPitch {
|
||||
VStack(spacing: 6) {
|
||||
HStack(spacing: TunerView.readoutSpacing) {
|
||||
Text(pitch.noteName)
|
||||
.font(.system(size: TunerView.noteFontSize, weight: .bold, design: .rounded))
|
||||
.foregroundStyle(TunerView.color(forCents: pitch.cents))
|
||||
@@ -111,7 +111,7 @@ public struct TunerView: View {
|
||||
}
|
||||
.opacity(isTracking ? 1.0 : TunerView.untrackedOpacity)
|
||||
} else {
|
||||
VStack(spacing: 6) {
|
||||
HStack(spacing: TunerView.readoutSpacing) {
|
||||
Text("—")
|
||||
.font(.system(size: TunerView.noteFontSize, weight: .bold, design: .rounded))
|
||||
.foregroundStyle(Color.white.opacity(0.4))
|
||||
|
||||
Reference in New Issue
Block a user