Automatic insert of system break at rehearsal letters

Would it be possible to have a function, that would place a system break at every rehearsal letter in a future update of Dorico?

I imagine that this is certainly possible.

1 Like

Meanwhile, you can use a script:

local app=DoApp.DoApp()
app:doCommand([[NoteInput.CreateRehearsalMark]])
app:doCommand([[Edit.CreateSystemBreak]])

3 Likes

This is a great idea to add system breaks along with your rehearsal marks, rather than adding breaks to rehearsal marks later on.

You could even choose to have Shift+A map to this, instead of to the default Create Rehearsal Mark (or you could map some other shortcut key). This would require editing your keycommands JSON file.

2 Likes

Hi
I never got this script to work. Can you maybe spell it out, how to run and save the script?
Thanks a lot!

Copy the three lines of code, and save them in a file called something like RehearsalMarkWithBreak.lua. (Note the extension of the file – .lua)

Save this file in the Script Plug-ins folder, located in your Dorico user config folder at c:\Users\<username>\AppData\Roaming\Steinberg\Dorico 6 on Windows or /Users/<username>/Library/Application Support/Steinberg/Dorico 6 on Mac. If the script folder doesn’t exist, you can create it, but note the space and hyphen in the name.

Now you can call the script from the Script menu in Dorico. After a restart of Dorico, you can also invoke it from the jump bar.

Assigning a shortcut key to it requires editing your key commands JSON file, which is slightly more complicated.

2 Likes

To add to @asherber’s recommendations: Once your script is accessible in the menu, after running it for the first time, you can invoke it again by pressing Ctrl+Shift+Alt+R — the default command that runs the last-used script (I hope I’m right by saying it’s a factory keycommand!).

Just note that this command will work in the layout you’re currently in, but in other layouts only the rehearsal marks will be reproduced — system breaks will only apply to the current layout.

2 Likes