Studio One/Reaper Feature - "Add Gaps of Silence Between Events" -- Reaper Scripts work

Audio Plugin Hosts and other audio software applications discussion
RELATED
PRODUCTS

Post

I know Studio One has a remove gaps features between events but what if I wanted to do the opposite, say, I'd have an hour long spoken audio that I cut up into 200 events. I'd want to add moments of reflection 5 - 10 seconds after the spoken audio, selah points. Would i have to manually add 10 seconds after each event?

I asked chatgtp and there is no feature to add gaps of silences between selected events (even 1000 might be necessary) so I know that already, but what about on the custom macro front or maybe more advanced scripting?

If this is a no go, can someone recommend a DAW that might allow this?
Last edited by Touch The Universe on Fri May 30, 2025 7:40 am, edited 3 times in total.
100 High Quality Soundsets: Omnisphere 2, Dune 3, Tone 2 Synths, Pigments, Uhe Synths, Halion, Spire, and others.

TTU Youtube

Post

Magix Samplitude ProX8 manual says this
"Menu Object > Move objects > Arrange objects…: This allows you to enter the pause
between multiple objects numerically and set it to a uniform value.
Keyboard shortcut: Ctrl + Shift + Alt + A
Attention: the function works in such a way that the pauses before the selected objects
are changed. This also affects the first selected object (exception: it is the first object on
the track). So if you only want to change the distances between several objects, do not
include the first object in the selection."

But maybe a big thing to change daw over this unless a repeated thing happening time and time again.

I think I would just start from the end
- select last clip and move it(setting to a compy snap value)
- then also select the next clip and move those two
- then the third and so on

Something like that....

Post

I happen to have magic samplitude so I will look into that, just have to dust it off first I think it's been a decade since I've looked into it, LOL

But yeah I think I had nearly a thousand events and it took me about 30 minutes to manually just put 5 seconds in between each one of those manually one by one that's quite tedious and I do find myself doing that quite often in fact that's kind of the main thing I'm doing these days are DJ sets with words in them, so I definitely need to find the streamline this process if possible.
100 High Quality Soundsets: Omnisphere 2, Dune 3, Tone 2 Synths, Pigments, Uhe Synths, Halion, Spire, and others.

TTU Youtube

Post

So I have sample to 9se version , it seems like they changed the version somehow because now it's just back to v8, lol but like I had Version 9 SE like 8 years ago, I'm not sure where to go here I guess I'll just download the demo but which one like there's the Pro X suit and then there's a magic music studio sampletude, confused
100 High Quality Soundsets: Omnisphere 2, Dune 3, Tone 2 Synths, Pigments, Uhe Synths, Halion, Spire, and others.

TTU Youtube

Post

If you're cutting it up, why not just add the gaps as you go, with Ripple Edit turned on?
NOVAkILL : Legion GO, AMD Z1x, 16GB RAM, Win11 | Audient EVO 8 | Lumi Keys | Studio Pro 8
Korg Odyssey, bx-oberhausen, Proxima, PolyMax, GR8, JP6K, Union, Atomika,
Invader 2, Flow Motion, Olga, TRK 01, Thorn, Spire, VG Iron

Post

BONES wrote: Tue May 27, 2025 10:23 pm If you're cutting it up, why not just add the gaps as you go, with Ripple Edit turned on?
That's not a bad idea. Ripple edit adds gaps if you drag the event to the right but not the left so its not ideal. I can be mindful of this though and simply slice and create a new event to the left, then move the larger event (1hour plus) to the right to the right to make space - if i want to utilize the ripple edit. I don't want to leapfrog to the right over an hour for each new event, if that makes sense.

I can also just manually move things around without ripple edit. Its the same amount of work but at-least my brain will be engaged listening to the audio so every 20 seconds ill be doing that task in smaller chunck and not all at once at the end with 30 minutes of robotic, move right, move right, etc 1000X
100 High Quality Soundsets: Omnisphere 2, Dune 3, Tone 2 Synths, Pigments, Uhe Synths, Halion, Spire, and others.

TTU Youtube

Post

Yeah, that's how I try to work when cutting up tracks. If you cut from the end back toward the beginning, the slice to the right is always selected and you can delete it easily. In your case, though, you could start at the beginning and creating gaps will push everything to the right.
NOVAkILL : Legion GO, AMD Z1x, 16GB RAM, Win11 | Audient EVO 8 | Lumi Keys | Studio Pro 8
Korg Odyssey, bx-oberhausen, Proxima, PolyMax, GR8, JP6K, Union, Atomika,
Invader 2, Flow Motion, Olga, TRK 01, Thorn, Spire, VG Iron

Post

It can be done with a command line audio processing tool called SoX (Sound eXchange) which exists on all platforms. You would need 200 separate audio files as input. Use ChatGPT to generate scripts for you.

Post

Frantz wrote: Thu May 29, 2025 2:44 am It can be done with a command line audio processing tool called SoX (Sound eXchange) which exists on all platforms. You would need 200 separate audio files as input. Use ChatGPT to generate scripts for you.
Superb, but what about on the side of Presonus? Would I need an "opened" studio one that accepts new code input? I asked chatgtp before these thread and it mentioned something along these lines.

And what do you mean seperate 200 audio files as input - completely lost. I often have 1000 events, unbounced, merely sliced from usually longer 30 minute to 1 hour length audio files. I could bounce the slices but that would not be ideal.
100 High Quality Soundsets: Omnisphere 2, Dune 3, Tone 2 Synths, Pigments, Uhe Synths, Halion, Spire, and others.

TTU Youtube

Post

Does anyone have a test script I can put in the scripts folder to test. I have the script and its in the folder but the scripts isn't showing up as a menu item in Studio One on mac.

Did I miss installing script support when I installed or something?

Got a ticket open.

Here is the script, can someone who has scripting enabled test it.

DOWNLOAD HERE
AddSelahSpacing.js.zip
OR COPY AND PASTE IN NEW .JS FROM BELOW

var gapInSeconds = 10.0;

function addSpacingBetweenEvents() {
var track = studio.one.activeTrack();
if (!track || !track.isAudioTrack()) {
console.log("No valid audio track selected.");
return;
}

var events = track.getSelectedEvents();

if (events.length < 2) {
console.log("Select at least two events.");
return;
}

events.sort(function(a, b) {
return a.start - b.start;
});

for (var i = events.length - 1; i > 0; i--) {
var current = events;
var previous = events;
var desiredStart = previous.end + gapInSeconds;

var shiftAmount = desiredStart - current.start;
current.start += shiftAmount;
}

console.log("Spacing applied.");
}

addSpacingBetweenEvents();
You do not have the required permissions to view the files attached to this post.
100 High Quality Soundsets: Omnisphere 2, Dune 3, Tone 2 Synths, Pigments, Uhe Synths, Halion, Spire, and others.

TTU Youtube

Post

Touch The Universe wrote: Thu May 29, 2025 4:56 am
Frantz wrote: Thu May 29, 2025 2:44 am It can be done with a command line audio processing tool called SoX (Sound eXchange) which exists on all platforms. You would need 200 separate audio files as input. Use ChatGPT to generate scripts for you.
Superb, but what about on the side of Presonus? Would I need an "opened" studio one that accepts new code input? I asked chatgtp before these thread and it mentioned something along these lines.

And what do you mean seperate 200 audio files as input - completely lost. I often have 1000 events, unbounced, merely sliced from usually longer 30 minute to 1 hour length audio files. I could bounce the slices but that would not be ideal.
This would require bouncing to separate audio files and would be done outside of StudioOne. BTW, you mentioned the #200 in your OP.

Post


Post

I tried the audacity and for some reason I just couldn't get it to work on my Mac, but I'm in Reaper and I'm just going crazy with the scripting I'm going way above and beyond what I originally requested, I got the splits I can Auto split so I don't even need to listen and manually do that anymore technically, and I can dynamically and insert silence links the dependent on the event length itself so if it's one second then I just want maybe a second or two of Silence if it's 10 then maybe just 10 seconds and 30 seconds maybe 15 that kind of stuff and right now I'm working on an auto mix script that will automix two tracks one music and then the second one spoken music so I don't even need to do anything at all just have the right music on track 1 then spoken audio on track 2 and then have the script and I can just do that very simply, that's amazing.

Results are amazing! It works, will save me hours. I can focus ALL my energy on fine tuning details in getting the magic timing manually. This is spooky joyful :scared: :party:
100 High Quality Soundsets: Omnisphere 2, Dune 3, Tone 2 Synths, Pigments, Uhe Synths, Halion, Spire, and others.

TTU Youtube

Post

Also, i tried to install samplitude yet i couldn't get it to work with my M1.
100 High Quality Soundsets: Omnisphere 2, Dune 3, Tone 2 Synths, Pigments, Uhe Synths, Halion, Spire, and others.

TTU Youtube

Post

Frantz wrote: Thu May 29, 2025 11:04 am
Touch The Universe wrote: Thu May 29, 2025 4:56 am
Frantz wrote: Thu May 29, 2025 2:44 am It can be done with a command line audio processing tool called SoX (Sound eXchange) which exists on all platforms. You would need 200 separate audio files as input. Use ChatGPT to generate scripts for you.
Superb, but what about on the side of Presonus? Would I need an "opened" studio one that accepts new code input? I asked chatgtp before these thread and it mentioned something along these lines.

And what do you mean seperate 200 audio files as input - completely lost. I often have 1000 events, unbounced, merely sliced from usually longer 30 minute to 1 hour length audio files. I could bounce the slices but that would not be ideal.
This would require bouncing to separate audio files and would be done outside of StudioOne. BTW, you mentioned the #200 in your OP.
Got it, makes sense now :lol: Chatgtp recommended the same tool you mentioned today. Reached out to studio one and they don't support this level of scripts so I'll try working with reaper for now but studio one for fine tuning, its more powerful and visual than command line stuff but i'm going that route for prototyping a synth im having ai cook up.
100 High Quality Soundsets: Omnisphere 2, Dune 3, Tone 2 Synths, Pigments, Uhe Synths, Halion, Spire, and others.

TTU Youtube

Post Reply

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