Skip to content

How do you change the number of beats per measure with EasyScore? #1593

Answered by eyvye
eyvye asked this question in Q&A
Discussion options

You must be logged in to vote

Nevermind I figured it out. Use {time: '3/4'} as the second option. You can also use EasyScore.set({time: '3/4'}) to set it as the default for all new voices created by EasyScore.

const { Factory, EasyScore, System } = Vex.Flow;

const vf = new Factory({
  renderer: { elementId: 'output', width: 500, height: 200 },
});

const score = vf.EasyScore();
const system = vf.System();

system.addStave({
  voices: [score.voice(score.notes('C#5/q, B4, A4'), {time: '3/4'})]
}).addClef('treble').addTimeSignature('3/4');

vf.draw();

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by eyvye
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant