1. Is it possible to run a macro without assigning it to a shortcut key or adding it to the macro toolbar? I kinda expected to be able to run a macro from the macro organiser or similar. The reason I want to do this is I am auditioning a whole bunch of macros from the Presonus Exchange and I'd like to see what they do before I decide whether keep them.
2. Is there a macro command reference somewhere? Maybe as a PDF? The macro editor lists all the commands but does not explain the function or the arguments.
(and what I really really need is a macro recorder - it's the best way to learn macros!)
1. I think this is difficult since so context dependent.
2. in key commands you can export as text - macros are there too as I recall.
I usually put on desktop and just double click to check out options as they are.
But proper explanation of arguments are missing - agree fully.
It's a lot of trial end error.
I got bored in the end.
I've also abandoned (for now) my attempts to write what I expected to be a fairly straightforward macro to switch the currently selected track from stereo to mono, reduce the volume by 6dB then bounce it down. I might return to it one day or I might continue to do it manually.
In the end I just needed to get on with the song!
That's not a simple macro because there's no command for toggling the channel mode. It would need a temp track and might look something like this below, although I haven't actually ran this..
1. Cut (cut the audio event)
2. Add Audio Track (mono)
3. Create Range From Cursor
4, Size Range End
5. Bounce Selection. You need to have a mono file on the new track so that when you paste the stereo event the track won't auto-switch to stereo
6. Paste at Original Position
7. Edit Volume (-6, Relative ("1"))
8. Bounce Selection (Snap ("0))
Now you have the new mono event on the new track, do whatever you want with it, like put it back on the original track if you want.
10. Up (move up to the original track)
11. Paste at Original Position
12. Down (move down to the temp track)
13. Remove Track (remove the temp track)
In the scripting world that's a pretty easy and small script because you can switch the channel mode directly and just bounce it in place. I'll make an action that switches the channel mode and paste it back here.
Here's an action to toggle the channel mode for the selected track. It has a State argument... "" (default) =Toggle, 0=Mono, 1=Stereo. Add the package to Studio One \scripts folder and restart and it will show up as Track > Switch Channel Mode.
Using that action the macro to do what you want would be...
1. Switch Channel Mode ("0")
2. Edit Volume (Level ("-6"), Relative ("1"))
3. Bounce Selection (Snap ("0"))
See the animation below:
Lawrence, Many thanks for that. It's spot on. I've attached the macro in case it is of use to anyone else. (No wonder I couldn't figure out the macro command to switch to mono - there wasn't one!)
At this point I was going to ask you how you got the info to do the script but having googled a while I've read your stuff on here and on KVR and also poked around on github. Nice work by you and others. It would be excellent if PS were to release, document and officially support a scripting API/SDK but I can see that they might not want to tie themselves to keeping it compatible across future versions. Is there an active feature request for this?
One more question. Do you know if it is possible to conditionally run (or abort) macros based on a return value from a script? I'm thinking it would be a nice touch for this macro to only run if the track is stereo, thus preventing this foolish user from running it twice on the same track and further decreasing the volume.
You've awoken my curiosity and given me just enough stuff to chew on so I think I may be spending a bit of time fiddling with scripts rather than making music!
You're welcome, we're all here to help each other.
IanM5 wroteOne more question. Do you know if it is possible to conditionally run (or abort) macros based on a return value from a script? I'm thinking it would be a nice touch for this macro to only run if the track is stereo, thus preventing this foolish user from running it twice on the same track and further decreasing the volume.
Yes, you can do that, but not with a macro. Look over the bounceTrackToMono.js code below. It reads longer than it is because it's been heavily commented but it's a pretty basic function. You can copy and paste all of that and zip those three files into a package to use that action.
In this case if you fire it on a track that's already set to mono it prompts and if you choose to bounce it anyway it doesn't compensate for the gain, it assumes that the additional gain from the mono summing has already been compensated for elsewhere with it already being in that state.