-
Notifications
You must be signed in to change notification settings - Fork 657
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
How to set repeat at beginning of bar w/o stave's start/left barline #1360
Comments
I don't see that in the image you linked. But I guess what you wrote is what you want to achieve. |
@nitzanrh could you provide the code and a screenshot of what you are actually getting? |
Yup, here is a jsfiddle: code:
|
@nitzanrh I have been reviewing issues and I realised that I missed this one. Thaks for the jsfiddle! It helped a lot. case BarlineType.REPEAT_BEGIN:
// If the barline is shifted over (in front of clef/time/key)
// Draw vertical bar at the beginning.
this.drawRepeatBar(stave, this.x, true);
if (stave.getX() !== this.x) {
this.drawVerticalBar(stave, stave.getX());
}
break; I could add a REPEAT_BEGIN_NONE removing the bar at the beginning: case BarlineType.REPEAT_BEGIN_NONE:
this.drawRepeatBar(stave, this.x, true);
break; would that help? Please note that you would still get the repeat bar after the time signature and not before (as shown in the example you provide) |
Hi @rvilarl, thanks for your reply :) Regarding the time signature; personally I wouldn't cause any problems with my usage for Vexflow, however I think that if you follow the strict "rules" of music notation then the barlines should appear before the time signature. Cheers, |
I'm trying to achieve the following:
https://en.wikipedia.org/wiki/Repetition_(music)#/media/File:Au_clair_de_la_lune_repetition.png
ie have a left/start repeat sign but without having the stave's left/begin barline. Is this possible?
When i set the stave's begin barline to repeat (stave.setBegBarType(4)) it automatically adds a barline in the beginning of the stave (ie left side).
Cheers,
Nitzan
The text was updated successfully, but these errors were encountered: