Scripting in Studio One

Audio Plugin Hosts and other audio software applications discussion
RELATED
PRODUCTS

Post

Cakewalk Sonar just added Lua as their scripting language and glancing at it, it looks good. While I wouldn't want to go to Cakewalk again, I wish that Studio Pro would follow suit though I know they are heavily invested in Javascript. Still seeing Cake offer it, it would be nice to expose a scripting language API to the public.

Post

Fidelitymusic wrote: Mon Jun 29, 2026 1:54 am Not much you can do from what's currently known. That just returns a 0-based index for which variation is assigned to a note, -1 = none, 0 = first, 1 = second, etc.
My main question is how to assign any sound variation index to a selected note. I hope there is a function like "setSoundVariation(...)" but I don't know how to check it?

Post

As of right now there isn't.

You could possibly achieve what you're looking for using commands in your script: https://csources.github.io/Studio-Pro-S ... -variation

Post

AUTO-ADMIN: Non-MP3, WAV, OGG, SoundCloud, YouTube, Vimeo, Twitter and Facebook links in this post have been protected automatically. Once the member reaches 5 posts the links will function as normal.
Fidelitymusic wrote: Tue Jun 30, 2026 1:45 am As of right now there isn't.

You could possibly achieve what you're looking for using commands in your script: https://csources.github.io/Studio-Pro-S ... -variation (https://csources.github.io/Studio-Pro-Scripting-API-Reference/docs/host/command_reference#sound-variation)
Yes, I can try using the commands. I didn't know I could integrate them into scripts.
Thanks for pointing that out.

Post

I found soundVariationMap with lookupVariationByID, so you can get the actual names, not just an index number.

Here's a Select by Sound Variation script, inspired by Lukas' Select Notes by Sound Variations. It selects notes in the Note Editor (Piano View) based on their assigned Sound Variations. This one has a ListView so you can select them. Get it here.
select-sound-variation.png
You do not have the required permissions to view the files attached to this post.

Post

Thank you so much for this sound variation script. I'll try it out in the next few days when I work with my DAW.

Post Reply

Return to “Hosts & Applications (Sequencers, DAWs, Audio Editors, etc.)”