Javascript Macro Action Requests

Discussion about: tracktion.com
Post Reply New Topic
RELATED
PRODUCTS

Post

Hi all, we are aware everyone will be using the new Javascript macros feature in different ways and to create the behaviour you desire we will need to add new actions.

Use this thread to request actions. Please keep them brief and refrain from side discussions (you can start a new thread for these) or it's difficult to keep track of the requests.

If the action isn't self explanatory, please add a little description of how you would like it to work.
We'll do our best to add these over the coming weeks.

Thanks!

Post

Make coffee

Feed the cat

Post

Will there also be a thread for 'how do I do X in my script' or will this cover that too?
my other modular synth is a bugbrand

Post

Create a track named X

Rewind X amount

Load plugin with preset X

Any of these possible?

Post

Being able to use QWERTY key strokes would be nice.

Ex.1:
Set tempo for the edit

propertiesPanel ('Tempo')
qwertyKey ('tab' 'tab' 'tab' 'tab' 'tab')
qwertyWrite ('96')
qwertyKey ('enter')

Ex.2:
Rename several tracks

Select a track
qwertyKey ('tab')
qwertyWrite ('Track Name 1')
qwertyKey ('enter')
Select Item Relative: Tracktion.selectItem('down')
qwertyKey ('tab')
qwertyWrite ('Track Name 2')
qwertyKey ('enter')
Select Item Relative: Tracktion.selectItem ('down')
.
.
.
etc.

(Of course I could use an edit template instead. Anyway... :ud:
With the script I could insert a standard live drum setup into any edit and rename the tracks very quickly, for example.)

Post

Render Actions!

I'd like to use some macros to render clips.
Especially: -> Render the selected clip and replace it

Post

phledo wrote:Especially: -> Render the selected clip and replace it
"Basic Actions" -> "Editing" -> "Merge Selected Clips"

Post

dRowAudio wrote:"Basic Actions" -> "Editing" -> "Merge Selected Clips"
Thanks Dave.
I wouldn't have used that command on a single clip. ;)
A couple of user definable (action) parameters before rendering would be nice, though.
"Merge Selected Clips" renders always to 32 bit stereo wav? (Unsure)

And again:
The rendered file should get the name of the clip being rendered. ;)

Post

Event handlers for selections and marker clips on the Marker Track.

I want to register a macro to be run when the selected region is entered for the first time.

Like, I want to be able to turn on loop mode when the play head enters the selected region (that is, when and if the cursor hits the 'in' marker)

I don't know if registering handlers for these events would be best done in code or with a bit more UI. Certainly there is room in the Marker Clip properties panel for a macro to be referenced.

Maybe code would look like
selection.onEnter( toggleTransport('loop') );
or
Markers( 'Marker 1' ).onEnter( selectCurrentMarkerAndLoop() );

Post

I would like to be able to bring a new named Edit in to focus.

Currently
Traction.showEditScreen();
exists, but it will only show the last used edit screen. I'd like to be able to referenced a named edit screen

Tracktion.showEditScreen( 'Song 2' );

Or at least add
Tracktion.nextEditScreen();

Post

Not strictly a macro request, but I would like the MIDI Modifier plugg-in to host script so that I could modify or event generate MIDI note and CC data in Tracktion.

Post

busywait wrote:Not strictly a macro request, but I would like the MIDI Modifier plugg-in to host script so that I could modify or event generate MIDI note and CC data in Tracktion.
I would like the inverse ability. I want the ability to trigger keystrokes and scripts and with MIDI.

Post

some midi orientated macros :

create random midi notes within a defined range
random notes velocity
delete double notes
midi data transform (aka Logic X), ex : transform note into controller datas, select note within a defined range...
Tranform a lopped midi clip into one big clip or into several clips.
Note mute/solo

Post

- trigger scripts via midi commands (not an action but essential feature)
- send midi event
- set cursor position
- change step clip properties and actions like randomize and clear

Post

Kang wrote:Create a track named X

Rewind X amount

Load plugin with preset X

Any of these possible?
Hi Kang, I've just added some action to do these now. Here's what the scripts would look like:

Code: Select all

// Insert a Track Named X
var track = Tracktion.insertTrack ('audio');
Tracktion.setName (track, "New Track Name");

// Rewind X Amount
var currentPos = Tracktion.getPosition ('transport');
Tracktion.setPosition ('transport', currentPos - 10.0);
When you say "Load plugin with preset X" do you mean a named preset from the factory presets or a custom preset you have saved to the Tracktion preset library?

Post Reply

Return to “Tracktion”