PencilCode/musical.js

musical.js creates sound from inline information fields

bwl21 opened this issue · 2 comments

In the following piece I annotate parts of music as inline information field ( [P:A] )

musical.js plays the "A" :-(

X:2
T:Highland Cathedral
C:Harpnotes by Bernhard
R:strathspey
M:4/2
L:1/4
Q:1/4=120
K:Ebmaj
V:T1 clef=treble-8 octave=-1 name="v1" snm="v1"
[V:T1] |: ">E" z E E2 E2 "^4x" E2 :|
[V:T1] |: [P:A]E3 F/2G/2 FE B, E | F3 G G4 | G3 A/2B/2 AG FE | F3 G B,4 |

It will take a little refactoring to actually support inline information fields (e.g., to allow changing key or unit-beats mid-line etc), and I haven't seen them used in any ABC music online, apart from examples in the ABC spec.

Are there particular inline information fields that are important for your app?

Yes, it is in particular [V:] and [P:] and I think of [I:]. It is ok of musical.js would simply ignore those. At the moment it plays the content.