Sound shift


I would need a plugin that would be able to move every other sound from the previous one. It is shown in the picture.

Any advice would be amazing!

Thanks in advance for your kind help.



You can probably do that if you create your own [u]Nyquist[/u] plug-in. It looks possible as long as the sounds are as shown, spaced approximately-equally with silence (or near silence) in-between.

But, programming isn’t for everybody and if you haven’t programmed before there will be a long learning curve. (I’ve done quite a bit of programming on & off but I’ve never done any audio programming and I’ve never used the Nyquist language… Just as a wild guess I’d guess it would take me a couple of weeks or more to do something like that.)

Yes it could be done in Nyquist, but not simple to do.
If you know what the exact spacing is between the sounds, then the task is much easier than if that is unknown or variable.
What’s the task? Why do you want to do this? What are the sounds?

Thank you for your help.
This is to change the order of sentences in the language record.
The spacing is exactly the same. That has already been done.

Assuming that you are working with mono tracks, this should work - it can be applied using the Nyquist Prompt:

(setf spacing 2.0) ;Length in seconds of each pair of sounds

(setf sq (osc-pulse (/ spacing) 0))
(setf start spacing)
(setf end (get '*selection* 'end))

(let ((call (mult *track* (s-max (mult -1 sq) 0)))
      (response (mult *track* (s-max sq 0))))
  (sim call
       (extract-abs start end response)))

Note that this assumes that the first sound starts after “spacing/2” seconds.

Unfortunately, this Nyquist command didn’t work correctly, but I’ve already solved it with a macro.
But still thank you for your willingness.

Out of interest, what does your macro do?

These sentences are for a maximum of three seconds.
So, first make 10 seconds of silence between the sentences and at the beginning (the plug-in “Extend Silence” and the effect “Truncate Silence”) and then repeat this macro until done. It’s not as fast as a script, but it’s better than nothing.