Hi,
While I can achieve the clusters look in engrave mode, I would like to automate this action. In my music I use a lot of clusters so notation takes me a lot of time…Finale has a neat script, you select the notes and run the script that converts to a visual cluster and that’s super fast. I am thinking something similar could be built in Dorico. I made some research but I couldn’t go very far. Could anyone make sense of this, and make it a functional script? I don’t know the language, so I miss the object names. Help…?
Thank you
– Dorico 5 Cluster Script
– Function to create a cluster chord
function createClusterChord(startNote, numNotes, interval)
– Select the starting note
doricoAPI:doCommand(“NoteInput.SetNotePitch?Pitch=” … startNote)
– Insert the first note
doricoAPI:doCommand(“NoteInput.EnterNote”)
– Loop to create the rest of the cluster
for i = 1, numNotes - 1 do
– Move up by the specified interval
doricoAPI:doCommand(“NoteInput.Transpose?Interval=” … interval)
-- Insert the next note in the cluster
doricoAPI:doCommand("NoteInput.EnterNote")
end
end
– Example usage: Create a cluster starting on C4, with 5 notes, each a minor second apart
createClusterChord(“C4”, 5, “m2”)
Welcome to the forum, Alta. I’m afraid Dorico’s scripting API probably isn’t up to the job you’re asking of it here, because it can’t read any state from the score: you can run a sequence of commands, but you’d need to have a separate script for every size of cluster, I think. In theory you could write a script that would invoke the Shift+I popover and add a certain number of notes at staff positions above or below the selected note, but one problem you’ll run into is that the original note to which you’re adding other notes will become unselected. So you’ll then need to reselect the whole pile of notes and apply the appropriate notehead set at that point.
In the fullness of time, we want to add features to create clusters natively, but I can’t say right now when these will be added.
That one in particular shouldn’t be really be a problem. You can change the notehead set first, then apply the Shift+I, and repeat as needed, with a additional nothead set application at the end.
I seem to remember that I have done something like that in the past. I’ll look if I can dig it up.
It would be so good for me to have a solution for quickly clusters creation as I am focused on edgy productions. All the 20th century techniques are challenging for any notation software…I like the mobility of Dorico and the midi option A LOT but writing capabilities keep me connected to Finale and Sibelius. I hope Dorico will evolve soon. I got the Pro 5 because I love the architecture and potential.
Best
oh, gosh…thank you for your suggestion but that’s close to impossible to read even for the composer…I would say that’s not an option…using the engraving solution is actually very nice…only that it takes a lot of time to go in and adjust every single stem.