Quadruplets in 9/8

41 views
Skip to first unread message

John Watson

unread,
Sep 27, 2016, 5:34:56 AM9/27/16
to vexflow
I have a strange VexTab bug

The following two lines of notes are identical.  The second displays the score properly, the first one does not.

stave notation=true clef=treble key=G time=9/8

notes | :q B/4 :8 B/4 :q T B/4 :8 G/4 :q A/4 :8 F/4 | :8 G/4 :8 F/4 :8 G/4 :8 A/4 ^4,4^ :8 G/4 :q E/4 :q D/4 :8 D/4 |

stave notation=true clef=treble key=G

notes  :q B/4 :8 B/4 :q T B/4 :8 G/4 :q A/4 :8 F/4 | :8 G/4 :8 F/4 :8 G/4 :8 A/4 ^4,4^ :8 G/4 :q E/4 :q D/4 :8 D/4 |



The only difference is between the staves, where the second stave has an implicit time signature.  If I make the two stave definitions identical, then both staves are displayed in error. 

Any ideas?






Mohit Muthanna Cheppudira

unread,
Sep 27, 2016, 10:16:36 AM9/27/16
to vexflow
Yes, this is sort of a bug (in the spec, not the code.) Right now if you don't specify a time signature, it simply assumes 4/4. If you do, it always renders it. What we need is an option to set the time signature, but not render it.

--
--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/vexflow?hl=en

---
You received this message because you are subscribed to the Google Groups "vexflow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vexflow+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



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

John Watson

unread,
Sep 27, 2016, 11:41:54 AM9/27/16
to vexflow, mo...@muthanna.com
OK - thanks again, Mohit.

I think this indicates two errors doesn't it?  Firstly the error in the spec that you mention.  But secondly an error with the beaming implementation - when there is an explicit triple time signature, the beaming of the quadruplet is incorrect because it captures 5 notes rather than 4.  (Double time appears to be OK.)


On Tuesday, 27 September 2016 15:16:36 UTC+1, Mohit Muthanna Cheppudira wrote:
Yes, this is sort of a bug (in the spec, not the code.) Right now if you don't specify a time signature, it simply assumes 4/4. If you do, it always renders it. What we need is an option to set the time signature, but not render it.
On Tue, Sep 27, 2016 at 5:34 AM, John Watson <music...@gmail.com> wrote:
I have a strange VexTab bug

The following two lines of notes are identical.  The second displays the score properly, the first one does not.

stave notation=true clef=treble key=G time=9/8

notes | :q B/4 :8 B/4 :q T B/4 :8 G/4 :q A/4 :8 F/4 | :8 G/4 :8 F/4 :8 G/4 :8 A/4 ^4,4^ :8 G/4 :q E/4 :q D/4 :8 D/4 |

stave notation=true clef=treble key=G

notes  :q B/4 :8 B/4 :q T B/4 :8 G/4 :q A/4 :8 F/4 | :8 G/4 :8 F/4 :8 G/4 :8 A/4 ^4,4^ :8 G/4 :q E/4 :q D/4 :8 D/4 |



The only difference is between the staves, where the second stave has an implicit time signature.  If I make the two stave definitions identical, then both staves are displayed in error. 

Any ideas?






--
--
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

For more options, visit this group at
http://groups.google.com/group/vexflow?hl=en

---
You received this message because you are subscribed to the Google Groups "vexflow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vexflow+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

John Watson

unread,
Sep 27, 2016, 1:55:54 PM9/27/16
to vexflow, mo...@muthanna.com
Actually I was wrong - the problem also exists with double time.  I notice, too, that the tuplet is labelled 4:2 which implies (to me) 4 notes in the time of 2 whereas we need 4 in the time of 3.  I wonder if the tuplet syntax is lacking which only allows two parameters?  ABC notation, for example, defines tuplets as p:q:r -  p notes into the time of q for the next r notes.
Reply all
Reply to author
Forward
0 new messages