-
Notifications
You must be signed in to change notification settings - Fork 26
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
Add simple sound node #27
Conversation
I do not know the path Other questions:
Set this as a draft, due to the questions |
|
68e939e
to
51cd4d8
Compare
This will need an AudioStreamPlayer node with a BlockCode node attached to it with a single "Play the sound" block attached. Maybe it's better to have the "Play sound" in every node and instantiate AudioStreamPlayer programatically. Something like:
|
#36 (comment) gives me a good direction! :) I think we can have 2 blocks:
The sound can be passed by add_child() and find_child(). The node's name is the key for finding. |
51cd4d8
to
9c9b2d8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the UI these blocks should look with knobs at the top and bottom. So they need to instantiate "statement_block".
This is looking great, but I wasn't able to make it work. Here is my attempt. I get a runtime error setting volume_db in a null instance. |
Add blocks: * Load the audio file as the sound * Play the sound with dB and pitch https://phabricator.endlessm.com/T35501
9c9b2d8
to
3acee8b
Compare
https://phabricator.endlessm.com/T35501