"Too many ticks" on a voice

1,003 views
Skip to first unread message

Alan Szlosek

unread,
Sep 24, 2010, 12:03:31 PM9/24/10
to vexflow
Hello all!

I'm interacting with Vexflow directly (not through Tabdiv or any other
method), and am trying to add multiple measures of music, but it's
telling me "Too many ticks".

Am I supposed to create a new voice for each measure? Or set
voice.strict=false when adding more than a measure's worth of notes?
Thanks!

Mohit Muthanna

unread,
Sep 24, 2010, 12:26:17 PM9/24/10
to vex...@googlegroups.com
The easiest way to disable time-checking is to call voice.setStrict(false).

Alternatively, you can create the voice with the appropriate time signature, and use one voice per _bar_, like so:

Vex.Flow.TIME4_4 = {
  num_beats: 4,
  beat_value: 4,
  resolution: Vex.Flow.RESOLUTION
};

var voice = new Vex.Flow.Voice(Vex.Flow.TIME4_4);

HTH,
Mohit.




 
Thanks!

--
You received this message because you are subscribed to the Google
Groups "vexflow" group.
To post to this group, send email to vex...@googlegroups.com
To unsubscribe from this group, send email to
vexflow+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/vexflow?hl=en



--
Mohit Muthanna [mohit (at) muthanna (uhuh) com]

Alan Szlosek

unread,
Sep 24, 2010, 12:29:52 PM9/24/10
to vex...@googlegroups.com
Ah, just what I suspected. I think I'll leave strict on (since it may
help me catch future errors) and use one voice per measure.

Thanks.

--
Alan Szlosek

Reply all
Reply to author
Forward
0 new messages