-
Notifications
You must be signed in to change notification settings - Fork 69
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
How to stop a voice? #7
Comments
Heh, that's right didn't implement that, I guess I never had use for it...
I would briefly set the length of the voice to 0 which would cause instant
decay.
I guess you could implement a note-off this way...
If you need to mute/unmute the synth use .suspend() and .resume()
I will consider a voice.off() in the future lib.
Regards Dzl.
…On Wed, Jul 12, 2017 at 12:32 AM, arpruss ***@***.***> wrote:
I have a really stupid question: I can set the note for a voice with
mTrigger(), but I don't see an API to stop one particular voice. Am I
missing something, or is the API missing?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#7>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AD9xSLnV-SOlmLCBPRIX7AuJCzN90vtUks5sM_gLgaJpZM4OU5nu>
.
|
setLength(voice,0) does the job. |
You might use suspend in order to stop the interrupt, and then reconfigure the pin as input (to cut the remaining noise) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a really stupid question: I can set the note for a voice with mTrigger(), but I don't see an API to stop one particular voice. Am I missing something, or is the API missing?
The text was updated successfully, but these errors were encountered: