react-music icon indicating copy to clipboard operation
react-music copied to clipboard

Alternate time signatures & time signature/tempo changes?

Open joshburgess opened this issue 9 years ago • 3 comments

Just curious if anyone has any ideas yet about how to support alternate time signatures & changing time signatures (and tempo?) at specific points in a song.

This is usually done with time grids & markers describing the time/tempo change set on the grid in DAWs & midi notation apps like Guitar Pro, TuxGuitar, TabIt, etc.

joshburgess avatar Aug 28 '16 14:08 joshburgess

Once I fix #24 and we can cancel and reschedule notes, this shouldn't be too hard.

kenwheeler avatar Aug 29 '16 21:08 kenwheeler

In regards to time signatures, in the README it says it only supports 4/4 time, but from my perspective this is not true because the time signature is determined by the resolutions all the sequences used. You can just use resolutions that are divisors or multiples of the number of beats per measure, the top number in the time signature.

Examples:

In 4/4 time with resolution of 1 each step is a whole note, resolution of 2 a step is half note, 4 is a quarter, 8 is a eighth, 12 is a eighth-triplet, and a resolution of 16 each step is a sixteenth note.

3/4 a resolution of 1 each step is a doted half note, 3 is a quarter note, 6 is a eight note, 9 is a eighth-triplet, and 12 is sixteenth note.

There might be a way to better express this in the library, but the primitive of resolution does allow for use of any time signature.

Tomczik76 avatar Oct 13 '16 17:10 Tomczik76

You can even use a resolution of 3 in 4/4 time to express a half-triplet.

Tomczik76 avatar Oct 13 '16 17:10 Tomczik76