Skip to content

Commit

Permalink
Add Synth.free()
Browse files Browse the repository at this point in the history
  • Loading branch information
ideoforms committed Oct 5, 2019
1 parent 4923f0c commit 02053d8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion supercollider/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,10 @@ def get(self, parameter, fn):
440.0
"""
self.server._add_handler("/n_set", self.id, parameter, fn)
self.server._send_msg("/s_get", self.id, parameter)
self.server._send_msg("/s_get", self.id, parameter)

def free(self):
"""
Free the Synth.
"""
self.server._send_msg("/n_free", self.id)

0 comments on commit 02053d8

Please sign in to comment.