How to input notes with Keyboard Maestro from clipboard?

Has anyone found a way to do this?

When I use the “insert text by typing” with the caret active nothing happens.

I use Elements, would midi input do the trick if it’s not possible in other ways?

Thanks

Are you trying to add Text to your score, or notes? Are you saying that ABCDEF don’t create notes when the caret is active?

Can you clarify exactly what you’re trying to do; how you’re doing it; and what happens when you do it?

Hi @benwiggy I’m trying to enter notes C, D, E etc.

So:
I have a shortcut in Keyboard Maestro that presses shift-N (with the “simulate keystroke” action) to activate the caret, a short “pause for … seconds” action and then a “insert text by typing” action which enters e.g. the note C from the system clipboard.

When KM type e.g. C from the system clipboard, nothing happens.

I’ve also tried to make KM paste the note when the caret is active, but the caret won’t accept the paste command. I found out by copying a note to the system clipboard and simply command-v pasted with the caret active.

When I use KM to paste or type in the shift-i popover field, all is good.

Pasting isn’t the same as typing. You can’t paste text from the clipboard into Note Entry, because it doesn’t receive text; it receives key presses.

Also… can I ask what your whole workflow is? Why are you automating note entry – do you have a set phrase that you need to repeat? There may be a better way of going about the whole thing.

3 Likes

It’s a long workflow, but a script is generating chords which are copied to the system clipboard

I then - chord after chord - want to enter the notes into Dorico:

The KM shortcut opens Dorico
presses shift-N to activate the caret
types (not pasting) e.g. a C

presses return

activates the shift-i popover

paste the intervals

presses return

To the best of my knowledge there’s no other way to enter a chord. Dorico only accepts popover commands AFTER a valid “white” note has been put and is selected.

I also thought about entering the note with midi, but I guess it can be complicated. Any ideas are very welcome :folded_hands:

I suspect the only way you’ll get this to work is to get your script to use KM’s “Type a Keystroke” action, as opposed to “Insert Text by Typing”.

3 Likes

Yes I guess so, thanks @David_Tee

1 Like