Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

midi.py: config.add_synth() returns the new Synth object. #451

Merged
merged 1 commit into from
Jan 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tulip/shared/py/midi.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ def add_synth(self, channel=1, patch_number=0, num_voices=6):
self.release_synth_for_channel(channel)
synth_object = Synth(num_voices=num_voices, patch_number=patch_number)
self.add_synth_object(channel, synth_object)
# Return the newly-created synth object so client can tweak it.
return synth_object

def insert_arpeggiator(self, channel, arpeggiator):
if channel in self.synth_per_channel:
Expand Down
Loading