From 616830ba9636b8b3f1c09989cc0462c44fea89de Mon Sep 17 00:00:00 2001 From: Steffan Andrews Date: Thu, 3 Mar 2022 00:52:37 -0800 Subject: [PATCH] `MIDI.Note`: disfavored failable init --- Sources/MIDIKit/Note/MIDI Note.swift | 1 + 1 file changed, 1 insertion(+) 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 }