Skip to content
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

Allow measure rests to be used within odd time signatures #1617

Open
nithinkrishnamurthi opened this issue Apr 18, 2024 · 1 comment
Open

Comments

@nithinkrishnamurthi
Copy link

Hi all,
I'm using vexflow for a midi parsing usecase. I've noticed that when working in odd time signatures, there is no easy way to denote a measure rest. I think convention is such that in a 3/4 bar, you would have a whole note rest block out the bar; however when i do this, I get an error that there are too many tickables. The only thing I can do about this is to add a series of quarter note rests, which look a little strange. Is there something I am missing? Or is this just not a supported usecase?
Thanks,
Nithin

@AaronDavidNewman
Copy link
Collaborator

It is customary to use the whole rest symbol for any time signature, even odd ones like 7/8 (as long as there are <= 4 beats). You want something like this (VoiceMode_SOFT):

  const voice = new VF.Voice({
    num_beats: params.actualBeats,
    beat_value: params.beatDuration
  }).setMode(VF.Voice.Mode.SOFT);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants