How to automate execution of a line #154
Unanswered
genekogan
asked this question in
Pulsar Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, new to Pulsar here, great tool!
I have the TidalCycles plugin installed so I can send commands to the TidalCycles audio engine. The normal way is to write the command, then execute it with Ctrl+Enter or Shift+Enter while the cursor is on that line.
On top of that, I am using atom-hydra so I can run javascript commands inside Pulsar. I'm trying to automate TidalCycles commands to do some experiments with auto-generated livecode.
With atom-hydra enabled, I am able to trigger a command from inside an editor with a .js file loaded which writes a command to an open .tidal editor in another pane, using this code:
The last step is I'd like to automate the execution of the line (
newLine
) that was just created and typed into the tidal file. I can get the cursor to that line with thefocus()
command, but from there I'm stuck.What function is actually called when the actual keyboard shortcut is run, and how can I call it directly?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions