|
|
|
08-14-2017, 07:35 AM
|
#1
|
Human being with feelings
Join Date: Jun 2011
Posts: 603
|
REQ: A simple fader or a knob to control the metronom volume
Hi,
I need a dockable script which has a simple fader or a knob to control the main metronom volume. I hope this is easy and possible.I want to donate the scripter for some beers.
|
|
|
08-15-2017, 04:34 PM
|
#2
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
Just create the click track and use track fader :P
(we don't have any function to control metronome volume anyway as far as I know)
|
|
|
08-16-2017, 02:49 PM
|
#3
|
Human being with feelings
Join Date: Jun 2011
Posts: 603
|
There is an action to control metronome volume but it is midi/osc only. I thought maybe a script guru knows a way to bind this action to a fader.
|
|
|
08-17-2017, 01:52 AM
|
#4
|
Human being with feelings
Join Date: Jul 2015
Location: Yekaterinburg, Russia
Posts: 400
|
Hi!
Script: Adjust metronome volume.lua
(added to my repo)
it sets Metronome primary beat volume from -17 db to 12 db
I made it using SWS.
The main question in this case is how to get current metronome volume (I have no ideas)
|
|
|
08-17-2017, 02:30 AM
|
#5
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 4,596
|
It is stored within RPP file:
Code:
<METRONOME 6 2
VOL 0 0
FREQ 800 1600 1
BEATLEN 4
SAMPLES "" ""
PATTERN 2863311530 2863311529
>
but updated only after save
|
|
|
08-17-2017, 11:58 AM
|
#6
|
Human being with feelings
Join Date: Jun 2011
Posts: 603
|
Quote:
Originally Posted by me2beats
Hi!
Script: Adjust metronome volume.lua
(added to my repo)
it sets Metronome primary beat volume from -17 db to 12 db
I made it using SWS.
The main question in this case is how to get current metronome volume (I have no ideas)
|
Thank you so much, I'm at vacation and dont have any pc with me. I will test it at weekend.
|
|
|
08-22-2017, 08:56 AM
|
#7
|
Human being with feelings
Join Date: Jun 2011
Posts: 603
|
Me2beats thank you so much I checked the script it is working fine for me. Is it possible to make the script dockable when you have time?
|
|
|
02-01-2018, 02:33 PM
|
#8
|
Banned
Join Date: Feb 2014
Location: Moscow, Russia
Posts: 554
|
Quote:
Originally Posted by me2beats
The main question in this case is how to get current metronome volume (I have no ideas)
|
Action (might've been added after your comment):
SWS/S&M: Decrease metronome volume _S&M_METRO_VOL_DOWN
SWS/S&M: Increase metronome volume _S&M_METRO_VOL_DOWN
Source code for actions (_ct -1/1):
Code:
void ChangeMetronomeVolume(COMMAND_T* _ct) {
KBD_OnMainActionEx(999, 0x40+(int)_ct->user, -1, 2, GetMainHwnd(), NULL);
}
|
|
|
02-01-2018, 07:33 PM
|
#9
|
Human being with feelings
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
|
Alternatively
Lua:
Code:
primaryBeatVol = reaper.SNM_GetDoubleConfigVar("projmetrov1", -666)
secondaryBeatVol = reaper.SNM_GetDoubleConfigVar("projmetrov2", -666)
(returns as double, would need conversion to dB)
Last edited by nofish; 02-01-2018 at 08:04 PM.
|
|
|
07-05-2021, 03:56 PM
|
#10
|
Human being with feelings
Join Date: May 2019
Location: Israel
Posts: 11
|
Quote:
Originally Posted by me2beats
Hi!
Script: Adjust metronome volume.lua
(added to my repo)
|
Thanks! you, SWS, and reaPack are such 'nice to have's. one day I'll learn to script myself...
|
|
|
05-11-2022, 03:52 PM
|
#11
|
Human being with feelings
Join Date: Sep 2016
Posts: 513
|
[QUOTE=me2beats;1877053]Hi!
Script: Adjust metronome volume.lua
Hello I discovered that I could assign this button to other actions. Is it possible to add several buttons in the same script?
|
|
|
07-11-2022, 01:53 PM
|
#12
|
Human being with feelings
Join Date: Mar 2020
Location: IJsselstein, Netherlands
Posts: 435
|
Quote:
Originally Posted by nofish
Alternatively
Lua:
Code:
primaryBeatVol = reaper.SNM_GetDoubleConfigVar("projmetrov1", -666)
secondaryBeatVol = reaper.SNM_GetDoubleConfigVar("projmetrov2", -666)
(returns as double, would need conversion to dB)
|
Thanx, this is working as I expected and hoped.
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 03:23 PM.
|