Hi all. I am trying to find a way to script transposing up or down a major second (and other intervals eventually, depending on the context). When I try to record a macro of doing this from the Write > Transpose menu, the recorded macro doesn’t seem to contain anything about the distance of the transposition:
local app=DoApp.DoApp()
app:doCommand([[Edit.TransposeSelection]])
I’m aware that ⇧⌥ up/down will transpose by half-step, but I’d like to be able to do specific intervals at once, and the half-step transposition never seems to do what I expect for enharmonics. Is there a way to pass an option to Edit.TransposeSelection
that can change the amount? At the moment, this macro just brings up the Transpose dialog.