-
Notifications
You must be signed in to change notification settings - Fork 1
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
Note length values #1
Comments
Ok, working on it, i figured out that when you say each item in a patter array is a beat, you acutally mean a division beat, not a bpm beat. So, for example with 60bpm : I notices also that if the array contains only 3 items, with So ... If y want to play quarter notes, but also another pattern in triplets, this cannot work. I tried something : make two players, start and stop them in parallel. And it workd. Would you say that it is the recommended approach ? Does it harm to have multiple players altogether ? Or would you divide the bpm by a common divisor, like Thank you |
beatbox.js is agnostic to time signature, it simply plays notes after each other in a certain interval. If you want to support triplets, use the common divisor. The 36 sound good. Personally I use 240 to support even more variations of time measures. To save memory on your pattern array, simply don't define the empty beats in it. |
Hey, thank you.
What do you mean ?
How would you write this with removed entries ? I cannot simply remove the empty arrays, or the melody changes. |
Hello, I'm also interested on the memory-saving technique. |
Like this: const pattern = [];
pattern[0] = ['snare'];
pattern[3] = ['snare']; |
Aha, so simple. Thanks a lot. |
Hello,
It is unclear to me how to play quarter-notes, sixteenths, etc.
Is it possible to play triplets, sextuplets, any length ... and add silences/pauses ?
How to know that we are on 1, 2 or more bars, have a time signature of 3/4 or 7/8 ...
Thank you.
edit: if any of this is missing I may able to do it, but I need a started guide :)
The text was updated successfully, but these errors were encountered: