Skip to content

Commit

Permalink
adding deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
bwhitman committed Feb 4, 2025
1 parent 57723d8 commit d06ecec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tulip/shared/py/midi.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
# the synths we apply to MIDI channels
from synth import PatchSynth, OscSynth, DrumSynth

class Synth(PatchSynth):
def __init__(self, *args, **kwargs):
print("midi.Synth is deprecated -- use synth.PatchSynth instead")
super().__init__(*args, **kwargs)

class MidiConfig:
"""System-wide Midi input config."""

Expand Down

0 comments on commit d06ecec

Please sign in to comment.