spotify / pedalboard

๐ŸŽ› ๐Ÿ”Š A Python library for audio.
https://spotify.github.io/pedalboard
GNU General Public License v3.0
5.15k stars 260 forks source link

Is there a possibility to have a method for closing editor? #195

Closed jagusking closed 1 year ago

jagusking commented 1 year ago

is it possible to have a method to close editor? or is this even possible after using the show_editor?

psobot commented 1 year ago

Yes - as per the documentation:

This method will block until the window is closed or a KeyboardInterrupt (Ctrl-C) is received.

There isnโ€™t a separate method to close the editor as the show_editor method blocks the main thread, so the only way to close it is by interacting with the UI itself or sending a signal to the process.