New Public Beta Available 6.2 with Javascript Macros

Discussion about: tracktion.com
RELATED
PRODUCTS

Post

Kang wrote:
zxant wrote: 
This thing really needs to have some indepth documentation now!

If one is to program one's own macro's, one has to know which API's, calls, objects etc. to use!

This stuff cannot be learned from 'video's' !! :mad:

 

Really gotta +1 this.

At the very least please release a bunch of pre-made macros that we can look at. I'm completely lost at this point, but my mind is brimming with possibility.
If you watch the video from about 2:10 you can see that there already are a bunch of pre-made macros* as well as most (if not all) of the possible calls readily available from the menu. You can pop them into your own macro to investigate them. It may not be the documentation you're looking for but it's far from nothing.

* The standard shortcuts seem to exist as code blocks that you can import and learn from.
Surely there must be consensus by now...

Post

danboid wrote:Great news but I can't help but wonder why JS was chosen over the many other alternatives?
Its an well defined, common language that's fairly easy to read/write, works well with a structured document model, and there are proven embeddable interpreters out there. Made sense to me.
An idiot on Set Theory:
"In some cases there is an object called red that contains everything that is red. In much the same way a pot is a plate."

Post

It would be cool if you could record macros too.

Post

whyterabbyt wrote:
aMUSEd wrote:I'm not likely to use this if it only works with keyboard shortcuts - I'm going to have to look up what combo I used every time before I even run it which is a waste of time. If there was a macro toolbar that might work.
well there's the 'run script' menu button on the left-hand side... which can itself be assigned to a keyboard shortcut.
Just to expand on this; in case it wasnt obvious, Macros give us the ability to use customisable menus that popup under the mouse cursor. Its not quite the right-click mouse-menu Ive been whinging about wanting but its close.

Step 1. Open the 'Settings>Keyboard Shortcuts' page

Step 2 : Click on 'Show Script Menu' at the bottom of the page, click on 'Add a New Macro', and create a macro to assign the 'run script' menu to an easy key-combination (Ive used CTRL-\). The code is simply

Code: Select all

Tracktion.showScriptMenu();
Step 3 : Click on 'Show Script Tree Editor' at the bottom of the page. This lets you drag any existing script from the list onto the 'Custom Script Menu Tree' on the right hand side, and create folders form them etc. Its very much like the custom plugin menu.
scriptmenu.JPG
Step 4: Anything in this menu will now show up, with the appropriate structure, in the Run Script menu.
custommenu.jpg
You do not have the required permissions to view the files attached to this post.
An idiot on Set Theory:
"In some cases there is an object called red that contains everything that is red. In much the same way a pot is a plate."

Post

snip
"my gosh it's a friggin hardware"

Post

deleted
Last edited by whyterabbyt on Tue Jun 30, 2015 3:42 pm, edited 1 time in total.
An idiot on Set Theory:
"In some cases there is an object called red that contains everything that is red. In much the same way a pot is a plate."

Post

Hey, I deleted my previous post, as I decided I was being overly grumpy, but thanks for the feedback.
Last edited by chico.co.uk on Tue Jun 30, 2015 3:49 pm, edited 1 time in total.
"my gosh it's a friggin hardware"

Post

chico.co.uk wrote:Hey, I deleted my previous post, as I decided I was being overly grumpy, but thanks for the feedback.
fair enough, response deleted as well.
An idiot on Set Theory:
"In some cases there is an object called red that contains everything that is red. In much the same way a pot is a plate."

Post

This is quickly going to make no sense, this thread ... my bad ;)

I'm recovering from five or six days at Glastonbury, if that helps excuse my 1000 yard stare at all
"my gosh it's a friggin hardware"

Post

This'll be fun for those of us running Tracktion on a couple of machines! So... is there a file full of macros I can copy from one to the other so I only have to create/key them in once?
[W10-64, T5/6/7/W8/9/10/11/12/13, 32(to W8)&64 all, Spike],[W7-32, T5/6/7/W8, Gina16] everything underused.

Post

jabe wrote:This'll be fun for those of us running Tracktion on a couple of machines! So... is there a file full of macros I can copy from one to the other so I only have to create/key them in once?
Yes, it is stored in a file called "ScriptLibrary.xml" next to the other settings files ("~/Library/Preferences/com.tracktion.Tracktion4/" on OS X, "AppData/Roaming/Tracktion 4" on Windows).

However, the key commands are still stored with the rest of the shortcuts so you'll have to export/import those as well if you want them to match (or simply re-assign them).

Post

Thank you!
[W10-64, T5/6/7/W8/9/10/11/12/13, 32(to W8)&64 all, Spike],[W7-32, T5/6/7/W8, Gina16] everything underused.

Post

Nice. The question is how deep does the API go?

Does it (or will it) have addressable objects like faders, pans, etc?

Post

Okay, tutor me since there's no documentation. For example...

object.setProperty ('propertyName', 'propertyValue');

Give me a quick example of using that method. Thanks.

Post Reply

Return to “Tracktion”