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

Synthetizer not working #6

Open
nathraim opened this issue Nov 10, 2019 · 0 comments
Open

Synthetizer not working #6

nathraim opened this issue Nov 10, 2019 · 0 comments

Comments

@nathraim
Copy link

nathraim commented Nov 10, 2019

Hello, I have tried the synthetizer notebook, but it failed to work, both on my own computer and with the binder link provided. More precisely, while a call to "synth(440)" in an individual cell works as expected, clicking on the buttons, however, does not seem to trigger anything.
I made a workaround as follows.
First I created
out=widgets.Output()
Then instead of with widgets.Output() I wrote with out.
FInally in an another cell I displayed the output:
display(out)
This, however, creates a new widget each time a button is clicked. It can be circumvented by using clear_output(wait=True) after the call to 'synth', but this works only because here the duration of the sound is very short.
I'm interested in this, so if you have a better way of playing a sound (or several at the same time) without displaying unnecessary widgets, I'm all ear ;).

Nathaniel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant