Go Back   Cockos Incorporated Forums > REAPER Forums > ReaScript, JSFX, REAPER Plug-in Extensions, Developer Forum

Reply
 
Thread Tools Display Modes
Old 07-28-2017, 11:06 AM   #41
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

@Daniele
Please do not quote image in post, it make browser very unecessary slow on mobile ! --'

It doesn't work cause the script has a depency : as explained by the error message, it require aother file to run, but you only downloaded one.

That's why I advice you to use reapack. You will be able to download the scripts AND the depency. Just download from it. all my repo and it will be good.
X-Raym is offline   Reply With Quote
Old 07-28-2017, 11:10 AM   #42
DANIELE
Human being with feelings
 
DANIELE's Avatar
 
Join Date: Aug 2015
Location: Florence, Italy
Posts: 463
Default

Ok I find out that I had to install other packages to make it works.

Now it works, it seems to me that the points move only on an axis, it would be nice to be able to randomize the position over time as well (as for the midi notes in the piano roll with the humanize function).

Anyway great work!! Thank you for this!
__________________
Audio: AKG-K240 MKII, Adam A7X, Audient iD22 - Steinberg UR22; Piano: Yamaha P-250 - NI S88 MK1;
!!DANIELE EPIC ORCHESTRAL MUSIC!! |*| STAR WARS SERIES
DANIELE is online now   Reply With Quote
Old 07-28-2017, 11:12 AM   #43
DANIELE
Human being with feelings
 
DANIELE's Avatar
 
Join Date: Aug 2015
Location: Florence, Italy
Posts: 463
Default

Quote:
Originally Posted by X-Raym View Post
@Daniele
Please do not quote image in post, it make browser very unecessary slow on mobile ! --'

It doesn't work cause the script has a depency : as explained by the error message, it require aother file to run, but you only downloaded one.

That's why I advice you to use reapack. You will be able to download the scripts AND the depency. Just download from it. all my repo and it will be good.
Yeah I used Reapack to install your script, I found there the other files I need.

Sorry for quoting the image, fixed now.
__________________
Audio: AKG-K240 MKII, Adam A7X, Audient iD22 - Steinberg UR22; Piano: Yamaha P-250 - NI S88 MK1;
!!DANIELE EPIC ORCHESTRAL MUSIC!! |*| STAR WARS SERIES
DANIELE is online now   Reply With Quote
Old 07-28-2017, 11:13 AM   #44
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

@Daniele
X axis was a bit too subject to possible timing issue IMHO. :P

Forum Thread URI: http://forum.cockos.com/showpost.php...&postcount=284

It would have to be done very carefully.
X-Raym is offline   Reply With Quote
Old 07-28-2017, 11:23 AM   #45
DANIELE
Human being with feelings
 
DANIELE's Avatar
 
Join Date: Aug 2015
Location: Florence, Italy
Posts: 463
Default

Quote:
Originally Posted by X-Raym View Post
@Daniele
X axis was a bit too subject to possible timing issue IMHO. :P

Forum Thread URI: http://forum.cockos.com/showpost.php...&postcount=284

It would have to be done very carefully.
Holy....
__________________
Audio: AKG-K240 MKII, Adam A7X, Audient iD22 - Steinberg UR22; Piano: Yamaha P-250 - NI S88 MK1;
!!DANIELE EPIC ORCHESTRAL MUSIC!! |*| STAR WARS SERIES
DANIELE is online now   Reply With Quote
Old 07-17-2018, 03:06 AM   #46
Input_studio
Human being with feelings
 
Join Date: Feb 2015
Location: Matosinhos, Portugal
Posts: 23
Default volume cap

Hey X-raym , first of all let me thank you for the work you've been doing scripting for the community.
You're the man!

Quick question.
When inserting a value on a volume envelope there's a cap on +6.

Is it easy to change the script to go higher?
Input_studio is offline   Reply With Quote
Old 07-19-2018, 02:10 PM   #47
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

@input Studio
Hi ! Thanks for your words !



You are right, this limit is arbitrary.



As a temporary fix, you can mod this line https://github.com/X-Raym/REAPER-Rea...value.lua#L129
on your local version of the file via Action -> Edit.


Replace 6 by any value you want.


At some point, I should replace that with a way to handle the track envelopes true limit.
X-Raym is offline   Reply With Quote
Old 04-08-2019, 01:32 PM   #48
StuhRAH
Human being with feelings
 
Join Date: Apr 2014
Posts: 234
Default

Is it possible to make the absolute/relative value settable via toggle checkbox (that stays checked or unchecked from the last time set) rather than typing + in the value box?
StuhRAH is offline   Reply With Quote
Old 04-08-2019, 02:35 PM   #49
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

I don't plan to modify this script, having one text field is way faster for typing IMHO.


But feel free to mot it to your own need !
X-Raym is offline   Reply With Quote
Old 05-27-2019, 12:20 AM   #50
StuhRAH
Human being with feelings
 
Join Date: Apr 2014
Posts: 234
Default

Actually this doesn't work properly with typing -value in the box, it just sets it to -inf. Is it broken with recent versions?
StuhRAH is offline   Reply With Quote
Old 05-27-2019, 03:00 AM   #51
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

Im still using these scripts without issues.


Maybe you have modded them ?


Else please tell what exact script has behavior, send screenshots and show the User Cobfig Area on the head of the script to see if something has been modified.
X-Raym is offline   Reply With Quote
Old 05-27-2019, 03:57 AM   #52
zabukowski
Human being with feelings
 
zabukowski's Avatar
 
Join Date: Nov 2009
Posts: 187
Default

Quote:
Originally Posted by StuhRAH View Post
Actually this doesn't work properly with typing -value in the box, it just sets it to -inf. Is it broken with recent versions?
Everything is working here ...

++value
-+value
__________________
My software & music...
http://www.zabukowski.com/software
http://www.zabukowski.com
zabukowski is offline   Reply With Quote
Old 11-15-2019, 04:59 PM   #53
daeavelwyn
Human being with feelings
 
daeavelwyn's Avatar
 
Join Date: Dec 2014
Posts: 597
Default

Hi X-Raym,

Your script doesn't work with automation items, is it an issue ?

regards
daeavelwyn is offline   Reply With Quote
Old 11-15-2019, 05:24 PM   #54
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

@daeavelwyn
Automations items werent there when I made this script. Not sure how it could handle that though, as it would first need to determine what is in focus etc...

I may take a look, but I rarely use automation items (though when I use them, it serves a great service).
X-Raym is offline   Reply With Quote
Old 11-17-2019, 01:02 PM   #55
daeavelwyn
Human being with feelings
 
daeavelwyn's Avatar
 
Join Date: Dec 2014
Posts: 597
Default

ok, so, do you know if there is a way to modify selected points value in a automation item ?
daeavelwyn is offline   Reply With Quote
Old 11-17-2019, 01:58 PM   #56
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

@daeavelwyn
With user input window ? I can only see the right-click > Set point value but it only works with a single items.

I cannot find in the API where to set point value in automation items. :S
X-Raym is offline   Reply With Quote
Old 11-17-2019, 03:36 PM   #57
daeavelwyn
Human being with feelings
 
daeavelwyn's Avatar
 
Join Date: Dec 2014
Posts: 597
Default

Ok, nevermind, I just have to modify a bit my workflow and think of using your script before create automation item.
BTW thanks for all the efforts you make in craeting script for reaper users
daeavelwyn is offline   Reply With Quote
Old 11-18-2019, 10:56 AM   #58
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
Default

Quote:
Originally Posted by X-Raym View Post
I cannot find in the API where to set point value in automation items. :S
SetEnvelopePointEx().
(All the 'normal' envelope API functions got ..Ex additions which take AI index)
nofish is offline   Reply With Quote
Old 11-18-2019, 02:02 PM   #59
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

@nofish
Oh I see,
so the script would need to first process underlying envelopes,
and then a second pass on all automation items of track with CountEnvelopePointsEx on all selected automation items to see if something is selected their.


A bit more maintenance that I would like to dedicate for now but I keep the idea in mind.
X-Raym is offline   Reply With Quote
Old 01-07-2020, 08:58 AM   #60
Eraz
Human being with feelings
 
Join Date: Nov 2019
Posts: 225
Default

Hey X-Raym, thank you so much for your scripts!
Donation sent

Today I found out it doesn't work for tempo envelopes though... Is there something planned, or wont this happen?
Eraz is offline   Reply With Quote
Old 01-07-2020, 09:16 AM   #61
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

Quote:
Today I found out it doesn't work for tempo envelopes though... Is there something planned, or wont this happen?
Many thx, every support matters !


I haven't planed it yet, tempo envelope points is a bit more complex as it is not stricto senso a point but a marker as far as I remember,
I may take a look at some point but for now I have have high priority scripts to finish :P
X-Raym is offline   Reply With Quote
Old 01-07-2020, 10:31 AM   #62
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

@Eraz
4 years since last update, I bring Tempo map support :P





Note that I had a Script: X-Raym_Set selected tempo envelope points value.lua script that I just remember :P

But it is surely obsolete now.
X-Raym is offline   Reply With Quote
Old 01-07-2020, 11:29 AM   #63
Eraz
Human being with feelings
 
Join Date: Nov 2019
Posts: 225
Default

Quote:
Originally Posted by X-Raym View Post
@Eraz
4 years since last update, I bring Tempo map support :P

Note that I had a Script: X-Raym_Set selected tempo envelope points value.lua script that I just remember :P

But it is surely obsolete now.
Woah, wasn't expecting that.
#mademyday

Thank you sir!
Eraz is offline   Reply With Quote
Old 10-05-2020, 08:07 AM   #64
lalo
Human being with feelings
 
Join Date: Jun 2006
Posts: 187
Default

Hi all! The script doesn't seems to work as i understand it should work.
Basically i'm trying to add a segment on Volume Envelope on all selected tracks in time selection and then offset the selected points of all selected tracks by a given amount. So i did a kinda "quirky" custom action that goes like this (see notes below for some explanations)

***** Custom action begin here *****

Envelope: Hide all envelopes for tracks (1)

Script: amagalma_Toggle volume envelope visibility for selected tracks or items depending on mouse position or last context.lua (1)

SWS/BR: Insert 2 envelope points at time selection yo all visible track envelopes in selected tracks

Time selection: Nudge left edge left

Time selection: Nudge left edge left

Time selection: Nudge right edge right

Time selection: Nudge right edge right

SWS/BR: Insert 2 envelope points at time selection yo all visible track envelopes in selected tracks

Time selection: Nudge left edge right

Time selection: Nudge right edge left

SWS/S&M: Arm all active envelopes for selected tracks (2)

Script: X-Raym_Select envelope points in visible armed envelope of selected tracks.lua

***** Custom Action End *****

Then i try the script

Script: X-Raym_Set or Offset envelope points value

But it does not work on all selected tracks and doesn't work at all unless i explicitly select an Envelope.

Any help? Thanks!

Notes
(1) I need this to make sure that only the Volume Envelopes are affected.
(2) Without this the Envelopes are Disarmed (i don't know why) so the last "Script: X-Raym_Select envelope points in visible armed envelope of selected tracks.lua" wouldn't work

BTW its probably time for me to dive into Reaper script because all stuff "across tracks" is really lacking in Reaper
lalo is offline   Reply With Quote
Old 10-05-2020, 08:30 AM   #65
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

Quote:
Script: X-Raym_Select envelope points in visible armed envelope of selected tracks.lu
This should work on selected envelope OR ELSE on selected tracks armed active envelope, in point in tIie selection OR ELSE in the whole track.


I haven't check if it still works as expected but it should.
X-Raym is offline   Reply With Quote
Old 10-05-2020, 09:14 AM   #66
lalo
Human being with feelings
 
Join Date: Jun 2006
Posts: 187
Default

Quote:
Originally Posted by X-Raym View Post
This should work on selected envelope OR ELSE on selected tracks armed active envelope, in point in tIie selection OR ELSE in the whole track.


I haven't check if it still works as expected but it should.
As you can see nothing happens to the selected points in the envelopes of the two selected tracks

https://imgur.com/a/eGs1MQW
lalo is offline   Reply With Quote
Old 10-05-2020, 09:59 AM   #67
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

@lalo
These are not armed tracks envelope.
X-Raym is offline   Reply With Quote
Old 10-05-2020, 10:47 AM   #68
lalo
Human being with feelings
 
Join Date: Jun 2006
Posts: 187
Default

Quote:
Originally Posted by X-Raym View Post
@lalo
These are not armed tracks envelope.
oops sorry, wrong video.
BTW it does the same if they are armed
lalo is offline   Reply With Quote
Old 10-05-2020, 04:47 PM   #69
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

no issue on my side . Be sure ebnveloep are active, armed, and that there is no other selected envelope etc..
X-Raym is offline   Reply With Quote
Old 03-15-2021, 07:46 PM   #70
daniboyle
Human being with feelings
 
Join Date: Sep 2015
Posts: 45
Default

Quote:
Originally Posted by X-Raym View Post
@nofish
Oh I see,
so the script would need to first process underlying envelopes,
and then a second pass on all automation items of track with CountEnvelopePointsEx on all selected automation items to see if something is selected their.


A bit more maintenance that I would like to dedicate for now but I keep the idea in mind.
Hi X-Raym!

Could you please add automation items support?

And maybe this, if it's not a big effort:

Quote:
Originally Posted by Gianfini View Post
Dunno if this thread can be revived or not... just trying

The script set offset selected point... is not properly working because if you try it on Plugin params (such as gain in ReaEQ or any other) it accepts numbers from 0 to 100 being the min and max value for that parameter. So you cannot put for example the exact DB value (or offset DB) for the gain parameter.

While the normal Reaper SET POINT VALUE works allowing to put values in the parameter unit (db gain in this case)

Could someone script able have a look?

g
Quote:
Originally Posted by X-Raym View Post
Maybe something could be done with
Code:
 retval, buf reaper.TrackFX_FormatParamValueNormalized( track, fx, param, value, buf )
.

Also this can help : Get fx name/fx id & parametr number from selected envelope? - Cockos Incorporated Forums.

Meanwhile, take a look at me2beat Edit selected envelope point script (it used the native window, but do not have offset capabilities, only set, and only works on only 1 point)..

Also, have you bump the original FR ?
Traduire

Thank you very much for your great work!

Best regards,
Dan
daniboyle is offline   Reply With Quote
Old 03-16-2021, 07:48 AM   #71
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
Default

@daniboyle
Breeder has made a bunch of scripts working with automation items, maybe it fits your needs?
https://forum.cockos.com/showthread.php?t=221082
nofish is offline   Reply With Quote
Old 03-16-2021, 11:26 AM   #72
daniboyle
Human being with feelings
 
Join Date: Sep 2015
Posts: 45
Default

Thanks, will check it out.

Last edited by daniboyle; 03-16-2021 at 11:35 AM.
daniboyle is offline   Reply With Quote
Old 03-20-2021, 11:26 AM   #73
Markcastle_
Human being with feelings
 
Join Date: Aug 2020
Posts: 32
Default

Quote:
Originally Posted by nofish View Post
@daniboyle
Breeder has made a bunch of scripts working with automation items, maybe it fits your needs?
https://forum.cockos.com/showthread.php?t=221082
Unfornately, his scripts don't include what we are searching for.

X-raym's script works for volume and other envelopes, but not for automations' envelopes.

If anyone could help us...
Markcastle_ is offline   Reply With Quote
Old 03-21-2021, 03:01 AM   #74
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

I'm taking a look but it isnt straightforward especially for old code base like this one.
X-Raym is offline   Reply With Quote
Old 03-22-2021, 07:02 AM   #75
Markcastle_
Human being with feelings
 
Join Date: Aug 2020
Posts: 32
Default

Quote:
Originally Posted by X-Raym View Post
I'm taking a look but it isnt straightforward especially for old code base like this one.
Thanks, and hope you can fix it.

I'm also a coder, but I've never approached Reaper scripts code and co.
Markcastle_ is offline   Reply With Quote
Old 03-22-2021, 02:36 PM   #76
daniboyle
Human being with feelings
 
Join Date: Sep 2015
Posts: 45
Default

Thank you!
daniboyle is offline   Reply With Quote
Old 03-23-2021, 09:49 AM   #77
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

Code:
 * v2.0 (2020-03-23)
  + new core
  + Automation items support
  + Save/restore last input
  + preset file support

So I had to rewrite the entire script from scratch to make this happen. The new code base is way more efficient with less redundancy etc.



I hope I didn't break anything on the way, but report if I did.



Any support via donation will be very appreciated
X-Raym is offline   Reply With Quote
Old 03-23-2021, 01:59 PM   #78
daniboyle
Human being with feelings
 
Join Date: Sep 2015
Posts: 45
Default

Thank you very much! No problem detected yet, just a small addition for Trim Envelope support:

Code:
env_width_db_scale["Trim Volume"] = true
And -inf support + comma support:

Code:
retval, input = reaper.GetUserInputs("Set or Offset Selected Points Values", 1, "Value? (num, " .. mod2_prefix .." for " .. other_mod[mod1] .. ")", input) -- We suppose that the user know the scale he want
if input == "-inf" then input = "-151" end
input = input:gsub(',','.')
(And it's v2.0 (2021-03-23))

It seems the script now respects the volume envelope range set in preferences as well

Great work, donation sent!

Last edited by daniboyle; 03-23-2021 at 03:09 PM.
daniboyle is offline   Reply With Quote
Old 03-23-2021, 02:59 PM   #79
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

@daniboyle


Oh, nice you found your ways arround my code, so this means that it is better than the previous version :P


I took some of your proposition, modified a bit, and added few things



Code:
 * v2.0.1 (2021-03-23)
  # Trim envelope support. Thx @daniboyle!
  + -inf, min, max keywords
  + comma decimal support
Thanks for your support

PS: March 2021 is basically like march 2020 :P
X-Raym is offline   Reply With Quote
Old 03-23-2021, 03:10 PM   #80
daniboyle
Human being with feelings
 
Join Date: Sep 2015
Posts: 45
Default

Thx again!
daniboyle 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 08:00 AM.


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