Well … … I’m afraid, here we go again… I just fixed it but I want to share the differences in the coding (i.e. old code making it mono vs new code).
Old code:
;nyquist plug-in
;version 1
;type process
;name “Mono ramp panning…”
;action “Applying ramp panning…”
;info “by David R. Sky\n-10 is left, 0 is center, 10 is right\nReleased under terms of GNU Public License”
;control start “Start position” int “where” -10 -10 10
;control end “End position” int “where” 10 -10 10
; Ramp Panning by David R. Sky
; simplified to match Audacity 1.3.1 static pan positions
; from -10 left to 10 right pan positions
; Released under terms of the GNU Public License
; http://www.opensource.org/licenses/gpl-license.php
(defun pan-position (position)
(+ 0.5 (* 0.05 (float position))))
(defun pan2 (sound where)
(vector (mult (aref sound 0) (sum 1 (mult -1 where)))
(mult (aref sound 1) where)))
(pan2
; making any stereo signal sound mono
(vector
(sum (aref s 0) (aref s 1))
(sum (aref s 1) (aref s 0)))
(pwl 0 (pan-position start) 1 (pan-position end) 1))
New code:
;nyquist plug-in
;version 1
;type process
;name “Stereo ramp panning…”
;action “Applying ramp panning…”
;info “by David R. Sky\n-10 is left, 0 is center, 10 is right\nReleased under terms of GNU Public License”
;control start “Start position” real “where” -10 -10 10
;control end “End position” real “where” 10 -10 10
; Ramp Panning by David R. Sky
; simplified to match Audacity 1.3.1 static pan positions
; from -10 left to 10 right pan positions
; Released under terms of the GNU Public License
; http://www.opensource.org/licenses/gpl-license.php
(defun pan-position (position)
(+ 0.5 (* 0.05 (float position))))
(defun pan2 (sound where)
(vector (mult (aref sound 0) (sum 1 (mult -1 where)))
(mult (aref sound 1) where)))
(pan2
(vector (sum (aref s 0))
(sum (aref s 1)))
(pwl 0 (pan-position start) 1 (pan-position end) 1))
So, it can’t be that much different. Oh, and by the way, I’ve always wondered what you would type so that whatever plugin doesn’t round a value to the nearest number of samples? I prefer exact fractionals seconds to sample-rounding myself, so I’m just curious about that. I know it’s probably not quite related to the Pan plugin, but I just thought that while I’m in here I could just ask.
Michael
PS. From the “Bass boost” plugin, I’ve modified (and saved a new version) of this plugin calling it “Trebel boost”, simply replacing “Lowshelf” with “Highshelf” and making the range appropriate to higher end frequencies. Now keep in mind that I’ve never even read the Nyquist manuals!