Sliding Stretch Plugin will not activate

I cannot activate the Sliding Stretch Plugin in Audacity, on Linux Mint 21.2 Cinnamon.

I noticed that Sliding Stretch does not appear under the effects menu. I opened the plugin manager and found that it appears under “Disabled”, so I clicked “Enable”, clicked OK, and as soon as I close the plugin manager it appears under Disabled again.

I downgraded to 2.4.2 as it was working with a previous installation, but no luck. I have also tried Reset Configuration, reinstalling the program, but nothing works. I have also tried to find the Nyquist package online to see if I can install this manually, but I haven’t found it.

I would be grateful for any solution which gets this plugin to work, or if there is some alternative plugin which achieves the same task.

Update: I found this Nyquist code which almost does what I need, except that the pitch changes with the speed, which I don’t want.

Can anyone tell me how to modify this?

;nyquist plug-in
;version 4
;type process
;debugbutton disabled
;name "Sliding Speed Change..."
;action "Changing speed..."
;author "Steve Daulton"
;copyright "Released under terms of the GNU General Public License version 2"

;control initial "Initial speed (0.1 to 10 x)" float-text "" 1 0.1 10
;control final "Final speed (0.1 to 10 x)" float-text "" 1 0.1 10

(defun get-map (dur s0 s1)
  (control-srate-abs *sound-srate*
    (let ((env (pwlv s0 dur s1)))
      (integrate env))))

(defun get-dur (dur s0 s1)
  ;; y = s0 + x(s1 -  s0)
  ;; integral y = (s0 * x) + ((s1 - s0) x^2)/2
  ;; new-duration = old-duration / (integral y from 0 to 1)
  (/ dur (+ s0 (/ (- s1 s0) 2))))

(defun timestretch (sig d0 s0 s1)
    ;; Find the output duration first, then
    ;; create the speed map the right length for snd-compose.
    (let* ((dur (get-dur d0 s0 s1))
           (map (get-map dur s0 s1)))
      (snd-compose sig map))))

(if (or (/= initial 1)(/= final 1))
    (multichan-expand #'timestretch *track* (get-duration 1) initial final)
    "") ; As of Audacity 2.2.0, an empty string is a valid null return value.

This topic was automatically closed after 30 days. New replies are no longer allowed.