dual amplify

Using Nyquist scripts in Audacity.
Post and download new plug-ins.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
Bloodrock
Posts: 12
Joined: Wed Jul 15, 2020 1:33 pm
Operating System: Linux Mint

dual amplify

Post by Bloodrock » Wed Jul 15, 2020 1:45 pm

I am looking for amplify that lets me adjust the volume for both left and right channels either by db or percent.
has to have separate volume controls for each track that can be locked or unlocked to adjust one or the other.
if anyone has or knows or can write one please give me a shout
thanks

steve
Site Admin
Posts: 81379
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: dual amplify

Post by steve » Wed Jul 15, 2020 2:06 pm

Code: Select all

;version 4
(setf left-gain 0.5)   ;Amplification amount for left channel
(setf right-gain 0.8)  ;Amplification amount for right channel
(vector
  (mult (aref *track* 0) left-gain)
  (mult (aref *track* 1) right-gain))
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Bloodrock
Posts: 12
Joined: Wed Jul 15, 2020 1:33 pm
Operating System: Linux Mint

Re: dual amplify

Post by Bloodrock » Wed Jul 15, 2020 4:15 pm

thanks steve it works but not quite what i want here is a screenshot of what i am looking for
Selection_001.png
Selection_001.png (12.41 KiB) Viewed 1004 times

DVDdoug
Forum Crew
Posts: 9368
Joined: Fri Sep 10, 2010 11:30 pm
Operating System: Windows 10

Re: dual amplify

Post by DVDdoug » Wed Jul 15, 2020 4:41 pm

If you Split Stereo Track you can edit the channels independently. Then you can use the Amplify effect (or other effects) on one channel at a time.

Bloodrock
Posts: 12
Joined: Wed Jul 15, 2020 1:33 pm
Operating System: Linux Mint

Re: dual amplify

Post by Bloodrock » Wed Jul 15, 2020 5:00 pm

thanks i used to have a p;ug-in like what i want but can't find it no idea where i got it from

steve
Site Admin
Posts: 81379
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: dual amplify

Post by steve » Wed Jul 15, 2020 5:04 pm

Bloodrock wrote:
Wed Jul 15, 2020 4:15 pm
thanks steve it works but not quite what i want here is a screenshot of what i am looking for
This forum board is for help with Nyquist. I assumed that you wanted to make a plug-in, so I posted the core code that you would need. Did I assume incorrectly?

If you just want to amplify the left / right channels independently using existing tools, then see the previous post (by DVDdoug).

If you want to make your own plug-in, you just need to add appropriate headers to the code that I posted to turn it into a plug-in.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Bloodrock
Posts: 12
Joined: Wed Jul 15, 2020 1:33 pm
Operating System: Linux Mint

Re: dual amplify

Post by Bloodrock » Wed Jul 15, 2020 5:06 pm

i do have this

Code: Select all

;nyquist plug-in

;version 1

;type process

;name "Amplify left or right channel..."

;action "Amplifying one channel..."

;info "Amplify left or right channel by David R. Sky"



;control channel "Channel" int "0=left 1=right" 0 0 1
;control amp "Amplification" real "db" 0.0 -24.0 24.0

;; Amplify lef or right channel by David R. Sky, October 18, 2004
;; This plug-in was written specifically to help people who use
;; a screen reader, and people who prefer to use the keyboard
;; over a mouse.

;; 
;; Select audio in Audacity, select left or right channel and
;; amout to amplify that track (in decibels).



(if (= channel 0)



(vector 

(mult (aref s 0) (db-to-linear amp))

(aref s 1))



(vector 

(aref s 0) 

(mult (aref s 1) (db-to-linear amp))))
Last edited by steve on Wed Jul 15, 2020 6:42 pm, edited 1 time in total.
Reason: fix code tags

Bloodrock
Posts: 12
Joined: Wed Jul 15, 2020 1:33 pm
Operating System: Linux Mint

Re: dual amplify

Post by Bloodrock » Wed Jul 15, 2020 5:09 pm

i tryed to add headers etc but failed like a first grader new at just need to learn much more

Bloodrock
Posts: 12
Joined: Wed Jul 15, 2020 1:33 pm
Operating System: Linux Mint

Re: dual amplify

Post by Bloodrock » Wed Jul 15, 2020 6:07 pm

this is what i tryed

Code: Select all

;nyquist plug-in
;version 4
;type process
;name "Amplify tracks..."
;action "Amplifying tracks..."
;info "Amplify by percent


;control channel "Channel" int "0=left" 0 0 0
;control channel "Channel" int "1=right" 0 0 1

(setf left-gain 0.6)   ;Amplification amount for left channel
(setf right-gain 0.6)  ;Amplification amount for right channel
(vector
  (mult (aref *track* 0) left-gain)
  (mult (aref *track* 1) right-gain))
it error out
Last edited by steve on Wed Jul 15, 2020 6:42 pm, edited 1 time in total.
Reason: fix code tags

Bloodrock
Posts: 12
Joined: Wed Jul 15, 2020 1:33 pm
Operating System: Linux Mint

Re: dual amplify

Post by Bloodrock » Wed Jul 15, 2020 6:41 pm

i must be doing something when sending a reply with code thought you hit code then under it add code or what do i need to do

Post Reply