I made a new music method
@sage also had the idea for this a while back, so not totally new but I thought this would be a topic for explaining it.
first, create variables for every note.
then, makes rules for when the variable is set (having the note play when it is set to 1, then setting to 0 after note is played)
then, find the bpm of the music, convert it to milliseconds and divide by 1000. make a variable and set it to the number you get.
after that you can code the music by setting the variables of every note. add wait blocks in between
When the variable “middleC” is set to 1, the middle c note plays. then, the wait seconds block delays the next note for the appropriate amount of time (quarter note, half note, etc.)
most note setting things
Bpm = var you set for waiting (picture is secondsPerCount)
Whole note = bpm x 4
Dotted quarter note = bpm x 3
Hale note = bpm x 2
Dotted quarter = bpm + bpm/4
Quarter note = bpm
Eighth note = bpm/2
16th note = bpm/4
32nd note = bpm/8
after adding them for a little you can get a result such as this:
(note: was a quick project, not very in time but demonstrates the basic example of this method)
if you happen to use this method then I’d like credit (credit along with sage since they thought of it too) but it’s not necessary