Is there a way to manipulate selected pitches by script?
If not will there be such an option in the future?
Not yet I believe.
Jesper
If it’s a comination/macro of things that Dorico does natively, like transpose, invert, rotate, map, then yes.
If you’re talking about something algorithmic using lua then no.
Daniel S has said that it’ll be some time before the scripting is revisited.
You can write a script that performs any of Dorico’s actions: this includes filtering notes by pitch, and all Transform functions. However, you can’t query Dorico for any information, so you can’t write “if pitch == A, then…”
Thanks, unfortunately I want to do exactly that “if pitch == A, then… - even with microtones (eight-tones). Procedures like frequency shift quantised.
thanks! It would be great if it would be possible soon but I believe there a re more pressing requests.
Have you tried shift-I? You can filter change pitches using (eg) shift-I A=Ab, C=C# over a selection. It might also work for microtones.
Not working with microtones: Would be nice it it would be possible, but an E eigths-tone high is displayed as E4 [257/4] - the Midinote ratio - which the popover can’t interpret.
That’s interesting. The websocket API is able to query for quite a lot of information about currently selected items, though I confess I do not know if it currently is able to retrieve the actual pitches of selected items or not. but that would definitely be a key requirement in order to most of the fun kinds of things people imagine themselves doing with scripting.
Is that also true for that third party scripting extension that someone did that extends the scripting in dorico somehow?
It is not possible to retrieve information about the selection in scripts, and nor is it possible using the remote control API. The remote control API is able to reflect some aspects of Dorico’s user interface state, including things like identifying what properties are available for the current selection, but you cannot interrogate the intrinsic musical data of selected items.