-
Notifications
You must be signed in to change notification settings - Fork 72
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 possibility to play more than one key on piano #16
Comments
@lfeh i'm trying developing this issue and i'm not to get success, because i cannot can get multiples keys events, just the last. I believe that the idea from this issue is if the user press the keys "A" and "D" in the same time, so both piano keys should be pressed, but for now, just the last key is pressed. Do you have some tip to do it? I'm searching about javascript event listener and for now, i don't have get success. Thank you |
Hey @tota1099, how are you? Check if this example help you: http://jsfiddle.net/vor0nwe/mkHsU/ |
@lfeh i'm fine and you? Sorry for arrive "out of thin air" but i'm trying start to make contributions in the github projects and i like your project and looks fine to start. About your example, maybe i don't have understand right the idea: The link when you click in the key "A" and "D" (example), the script just understand the "keydown" from the last key. If you remove the condictions You can see my example: https://jsfiddle.net/Tota1099/L86fec9j/1/ Press and hold the keys "A" and "D" in my example, just the last key clicked that will be showed. I had understand that the idea from Piano is that the user can press two or more keys in the same time. Thank you :) |
You are right. I never try develop this issue and I can't think in a fast solution. @fdaciuk Can you help us here? |
I can play a full accord =) |
@fdaciuk Do you know how to press multiple keys in same time using javascript? |
@felipefialho the same way you did on this project =) |
perfect, i had imagine it :/ |
No description provided.
The text was updated successfully, but these errors were encountered: