Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Feature Requests

Reply
 
Thread Tools Display Modes
Old 11-06-2014, 11:23 AM   #1
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,900
Default Envelope - Set Point Value... - Dedicated action and multiple points support

Hi !

I came here with a question than can lead to a feature request.

When right clicking on a envelope point, we can "Set value...".

The thing is that it appears that this "action" is not in the actions panel.
More, setting a value doesn't make any entry in the history.

Did I missed something ?

I would love to have an action that open the set value prompt window for selected envelope points.
EDIT 2016-06-18: And I would love it it could work on multiple selected points.

Thanks for listening

Last edited by X-Raym; 07-28-2021 at 04:50 AM.
X-Raym is offline   Reply With Quote
Old 01-31-2015, 10:44 AM   #2
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,900
Default

With the new envelope action in the API, this "set value..." as an action in the action panel is really missing.
We can't call it either from a shortcut or from a script...

A small bump, for a nice feature :P

(if you support me on this, I could open a feature request).
X-Raym is offline   Reply With Quote
Old 02-26-2015, 07:41 AM   #3
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,900
Default

I made a script for this.

Check it here:
ReaScript: Set/Offset selected envelope points values

X-Raym is offline   Reply With Quote
Old 06-16-2016, 07:25 PM   #4
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,900
Default

I noticed that the native Set envelope point value has a command ID 40194, which is not visible in the action list...

... it could be nice if we have it so we can have define a keyboard shortcut to it.
Sure I made scripts, but they doesn't work very nicely with item FX point value...

Thanks !

(also, impossible to call the action from custom action modified list item or from reascript).

Last edited by X-Raym; 06-16-2016 at 07:37 PM.
X-Raym is offline   Reply With Quote
Old 07-17-2016, 02:57 PM   #5
somniumaeternum
Human being with feelings
 
somniumaeternum's Avatar
 
Join Date: May 2011
Posts: 27
Default

Just did a search and found the scripts super useful. Thanks for writing and sharing these with us!
somniumaeternum is offline   Reply With Quote
Old 07-17-2016, 08:30 PM   #6
A Little Man and a House
Human being with feelings
 
A Little Man and a House's Avatar
 
Join Date: Jan 2014
Posts: 160
Default

How did I miss this?

Hey X-Raym, where would I edit the script if I wanted to bypass the popup box and have an default specific increment/decrement value?

This would be useful for pitch bend editing in conjunction with reacontrolmidi, ie two scripts, one +1 semitone, one -1 semitone, since this lacks snapping. You would have basically invented pitch bend envelopes in the track view :0

Last edited by A Little Man and a House; 07-17-2016 at 08:53 PM.
A Little Man and a House is offline   Reply With Quote
Old 07-18-2016, 05:01 AM   #7
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,900
Default

@somniumaeternum
Thanks for taking the time to leave a comment

@A Little Man and a House

Click on Edit from Action list and:
Code:
-- ------ USER AREA =====>
mod1 = "absolute" -- Set the primary mod that will be defined if no prefix character. Values are "absolute" or "relative".
mod2_prefix = "+" -- Prefix to enter the secondary mod
input_default = "" -- "" means no character aka relative per default.
-- <===== USER AREA ------
modify this.
X-Raym is offline   Reply With Quote
Old 07-18-2016, 05:52 AM   #8
A Little Man and a House
Human being with feelings
 
A Little Man and a House's Avatar
 
Join Date: Jan 2014
Posts: 160
Default

Hey X-Raym,

When I give a value to the input_default variable it autofills the popup, but I was hoping to skip the popup completely... I might be missing something obvious...
A Little Man and a House is offline   Reply With Quote
Old 07-18-2016, 06:23 AM   #9
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,900
Default

Oops sorry my bad ^^

Indeed I didn't set a "skip" pop up parameter, like I do since months now.
I was so used to this behavior that I completly missed the fact it is not actualy in this script.

I just update the script so that there is a new user field:
Code:
popup = true -- true/false
Just set it to false.

Note: I advice you to copy the script before moding it, so that new versions of the scripts doesn't erase your custom setting, and so that you can rename the action to your needs.
X-Raym is offline   Reply With Quote
Old 07-18-2016, 07:29 AM   #10
A Little Man and a House
Human being with feelings
 
A Little Man and a House's Avatar
 
Join Date: Jan 2014
Posts: 160
Default

Haha, that's okay : ) Still can't get it, though

I inserted "popup = false" in the user area, but it had no effect (I searched the lua and the only instance of 'popup' was the one I had written in)

So then I thought maybe you meant you updated the script itself, but I tried updating it on Reapack and didn't see anything new in the user area.

I feel tantalisingly close. You have infinite patience X-Raym!
A Little Man and a House is offline   Reply With Quote
Old 07-18-2016, 06:58 PM   #11
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,900
Default

@A Little Man and a House

If the Synchronize Package action from ReaPack worked as expected, your file should be like this :
https://github.com/X-Raym/REAPER-Rea...ts%20value.lua

Quote:
You have infinite patience X-Raym!
I do my best :P
X-Raym is offline   Reply With Quote
Old 07-18-2016, 09:06 PM   #12
A Little Man and a House
Human being with feelings
 
A Little Man and a House's Avatar
 
Join Date: Jan 2014
Posts: 160
Default

Ah, I see. I (falsely) assumed re-installing a script would update it. Synchronise Package worked like a charm! Cheers.
A Little Man and a House is offline   Reply With Quote
Old 08-25-2021, 09:02 AM   #13
jimbobbley
Human being with feelings
 
Join Date: Nov 2011
Posts: 95
Default

I found this thread through a search - X-Raym I wondered if you might be able to help. I'm trying to use your script to edit track envelope values of ReaControlMIDI CC values (I prefer the track envelope automation to MIDI CC editing), but setting values works as a percentage rather than an absolute MIDI value. E.g. I want to set a value to 50, but typing '50' sets it to 63 (out of 127). Is there any way of adding an option to your script or checkbox or similar for 'input exact value' rather than as a percentage please?
jimbobbley is offline   Reply With Quote
Old 03-17-2023, 12:22 PM   #14
pipelineaudio
Mortal
 
pipelineaudio's Avatar
 
Join Date: Jan 2006
Location: Wickenburg, Arizona
Posts: 14,051
Default

The popup term doesn't seem to exist in the newer versions. How would I bypass the prompt and how could I set the default value to be -64 or something?
pipelineaudio is offline   Reply With Quote
Old 03-17-2023, 12:26 PM   #15
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,900
Default

@pipelineaudio
it's still there:
https://github.com/X-Raym/REAPER-Rea...0value.lua#L57


@jimbobbley
you can add math in the script after the popup
https://github.com/X-Raym/REAPER-Rea...value.lua#L204
X-Raym is offline   Reply With Quote
Old 03-17-2023, 12:34 PM   #16
pipelineaudio
Mortal
 
pipelineaudio's Avatar
 
Join Date: Jan 2006
Location: Wickenburg, Arizona
Posts: 14,051
Default

Weird the one I got off of reapack is different...let me try this one
pipelineaudio is offline   Reply With Quote
Old 03-17-2023, 12:38 PM   #17
pipelineaudio
Mortal
 
pipelineaudio's Avatar
 
Join Date: Jan 2006
Location: Wickenburg, Arizona
Posts: 14,051
Default

Ahh oops, it was a different script...ok, I have turned the popup off, how do I set it so that when I run the action, it will mute?
pipelineaudio is offline   Reply With Quote
Old 03-17-2023, 12:43 PM   #18
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,900
Default

@pipelineaudio
https://github.com/X-Raym/REAPER-Rea...0value.lua#L56


input = 1?


but need mute envelope selected of course


I let you explore the options
X-Raym is offline   Reply With Quote
Old 03-17-2023, 01:12 PM   #19
pipelineaudio
Mortal
 
pipelineaudio's Avatar
 
Join Date: Jan 2006
Location: Wickenburg, Arizona
Posts: 14,051
Default

That did it!!! thanks!
pipelineaudio is offline   Reply With Quote
Old 04-05-2023, 05:01 PM   #20
pipelineaudio
Mortal
 
pipelineaudio's Avatar
 
Join Date: Jan 2006
Location: Wickenburg, Arizona
Posts: 14,051
Default

I'm trying to do this with the pre fx volume envelope now. I can't figure out how to set it to -inf without the console popping up each time. If I set console or popup to false, then the volume stays at unity gain

Last edited by pipelineaudio; 04-05-2023 at 10:58 PM.
pipelineaudio is offline   Reply With Quote
Old 04-05-2023, 05:32 PM   #21
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,900
Default

@pipelineaudio
Typing -150 or -200 should work
X-Raym is offline   Reply With Quote
Old 04-05-2023, 10:58 PM   #22
pipelineaudio
Mortal
 
pipelineaudio's Avatar
 
Join Date: Jan 2006
Location: Wickenburg, Arizona
Posts: 14,051
Default

Quote:
Originally Posted by X-Raym View Post
@pipelineaudio
Typing -150 or -200 should work
Oooh!!! got it, thanks!!!
pipelineaudio is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:29 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.