diff --git a/Sources/MIDIKit/Note/MIDI Note.swift b/Sources/MIDIKit/Note/MIDI Note.swift index 619866931f..b140450143 100644 --- a/Sources/MIDIKit/Note/MIDI Note.swift +++ b/Sources/MIDIKit/Note/MIDI Note.swift @@ -28,6 +28,7 @@ public extension MIDI { /// Construct from a MIDI note number. /// Returns `nil` if note number is invalid. + @_disfavoredOverload public init?(_ number: T) { guard let uint7 = MIDI.UInt7(exactly: number) else { return nil }