-
Notifications
You must be signed in to change notification settings - Fork 11
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
Implement Polyphony for piano #35
Comments
This may have to be instrument-specific, since certain instruments may be monophonic by design, or have a limited number of voices (pure chiptune) |
polyphony can be a variable in instrument. the value of polyphony will be the no. of notes that can be played at a time |
if everything is polyphonic, then theres always the option of playing one note at a time. why have an unnecessary extra option? |
I've added a method to the Instrument class to let the instrument take an AudioStreamPlayer, with defaults suited for GoDAW. This'll probably be enough, with the instrument deciding how to use those players to play notes |
because we want to cancel out a note if two notes are pressed. completely optional tho. |
so polyphony has to be implemented by the instrument maker? |
Yup, and commit 3680c96 shows one example of this with TripleOsc |
Nice, Now can this issue be closed? |
Not yet, I may need a convenience method for instrument-makers for later :) |
oh! okay |
So any update on this? |
Polyphony
The piano instrument as of now can only play one note at a time. It also stops all the music that is playing if stop_note is called on the piano instrument. Playing multiple notes at the same time is important
The text was updated successfully, but these errors were encountered: