Skip to content

Commit

Permalink
Update to latest AUv3Support release
Browse files Browse the repository at this point in the history
  • Loading branch information
bradhowes committed May 18, 2023
1 parent 0034349 commit b7f65f7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
2 changes: 1 addition & 1 deletion Packages/Sources/Kernel/C++/Kernel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class Kernel : public DSPHeaders::EventProcessor<Kernel> {
}
}

void setParameterFromEvent(const AUParameterEvent& event) noexcept {
void doParameterEvent(const AUParameterEvent& event) noexcept {
setRampedParameterValue(event.parameterAddress, event.value, event.rampDurationSampleFrames);
}

Expand Down
6 changes: 0 additions & 6 deletions iOS/Extension/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,6 @@ extension ViewController: AUParameterEditorDelegate {
knob.progressColor = knobColor
knob.indicatorColor = knobColor

let trackWidth: CGFloat = parameterAddress == .dry || parameterAddress == .wet ? 8 : 10
let progressWidth = trackWidth - 2.0
knob.trackLineWidth = trackWidth
knob.progressLineWidth = progressWidth
knob.indicatorLineWidth = progressWidth

knob.addTarget(self, action: #selector(handleKnobChanged(_:)), for: .valueChanged)
let editor = FloatParameterEditor(parameter: parameters[parameterAddress],
formatting: parameters[parameterAddress],
Expand Down
7 changes: 0 additions & 7 deletions macOS/Extension/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,6 @@ private extension ViewController {
knob.progressColor = knobColor
knob.indicatorColor = knobColor

let trackWidth: CGFloat = parameterAddress == .dry || parameterAddress == .wet ? 8 : 10
let progressWidth = trackWidth - 2.0

knob.trackLineWidth = trackWidth
knob.progressLineWidth = progressWidth
knob.indicatorLineWidth = progressWidth

knob.target = self
knob.action = #selector(handleKnobChanged(_:))

Expand Down

0 comments on commit b7f65f7

Please sign in to comment.