0xfe/vexflow — pull request #33 by jonens (2011-10-19 05:38:41+00:00)
Title: Clef and KeySignature changes

Another attempt at a pull request!

Made changes to Vex.Flow.KeySignature and to Vex.Flow.Stave, which address the following problem:

Currently, any new key signature added to a stave only places accidentals on the lines as if the clef is a treble clef, regardless of the actual clef on the stave. These changes result in correct key signature placement for treble, bass, alto, and tenor clefs.

Vex.Flow.KeySignature change: added a function to convert the lines for accidentals depending on current clef.

Vex.Flow.Stave change: added a clef property (default = "treble"), updated in the addClef() function.

Also added a test file: