Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Staff2Stand opened this issue Jun 5, 2024 · 3 comments
Open

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

Staff2Stand opened this issue Jun 5, 2024 · 3 comments

Comments

@Staff2Stand
Copy link

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)
            }
        },
@paulrosen
Copy link
Owner

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
Copy link
Owner

Will be fixed in version 6.4.0

@Staff2Stand
Copy link
Author

Amazing, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants