abcjs icon indicating copy to clipboard operation
abcjs copied to clipboard

Synth play Drum Intro beats during Intro/Count-In measure only

Open Staff2Stand opened this issue 1 year ago • 3 comments

Hi Paul,

I'm trying to implement count in beats with the editor synth and have the metronome beats play only during the Intro measure. For the life of me I cannot figure out how to do so.

Any help is much appreciated.

Here's my relevant code in the editor params.

class CursorControl {
        constructor() {
            this.extraMeasuresAtBeginning = 1
        }
    }

...

synth: {
            el: `#synth_controller_${instrument}`,
            cursorControl: new CursorControl(),
            options: { 
                displayRestart: true, 
                displayPlay: true, 
                displayWarp: true,
                displayProgress: true,
                //audio params
                drum: "dd 76 77 60 30",
                drumIntro: 1,
                midiTranspose: 0,
                program: ABCJS.synth.instrumentIndexToName.indexOf(instrument)
            }
        },

Staff2Stand avatar Jun 05 '24 18:06 Staff2Stand

I don't think that is currently possible, but I'm not sure. I will see if I can create an option for that next week.

paulrosen avatar Jun 08 '24 21:06 paulrosen

Will be fixed in version 6.4.0

paulrosen avatar Jun 10 '24 16:06 paulrosen

Amazing, thank you!

Staff2Stand avatar Jun 10 '24 19:06 Staff2Stand