Closed presidento closed 1 year ago
This isn't pretty, but you could set the callback for sequenceCallback
and replace the chord track with whatever you want. I guess in your case you'd move the chords from the second and fourth beats to the first and third. This is an untested example:
function sequenceCallback(tracks) {
var chordTrack = tracks[1]
for (var i = 0; i < chordTrack.length; i++) {
var note = chordTrack[i]
var measurePosition = (''+note.start).split('.')[1]
if (measurePosition === "25" || measurePosition === "75") {
note.start -= 0.25
note.end -= 0.25
}
}
}
I guess the real solution, though, is to support the %%MIDI gchord
option. That could be done mostly in abc_midi_flattener.js in the resolveChords() function. That's a bit harder, though.
I see, thank you.
As I see in abcjs the jazz chords pattern cannot be set (see
%%MIDI gchord
option). Unfortunately the built-in pattern does not fit for me in most of the cases. I'm thinking of writing a plugin which translates the jazz chords after the parsing phase into abc notation. Do you think it is feasible? Can you give me a hint where to start?For example I'd like to see this:
And I'd like to hear something similar: