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

Reply
 
Thread Tools Display Modes
Old 03-24-2021, 01:39 AM   #521
souk21
Human being with feelings
 
souk21's Avatar
 
Join Date: Mar 2021
Posts: 463
Default

Hi! Thanks for the awesome tools! Very impressive!

I have two questions about "js_Mouse Editing - Slice Notes"

Is there a way to turn off snapping for that tool ?

Is there a way to trim the starts of notes instead of ends? Would be super useful.
For now slicing the notes and deleting the left slice works, but is a bit tedious.

Anyway your scripts are so well commented that I think I could edit it myself, I was just wondering if it is already included and I am missing it.

Thanks again
souk21 is online now   Reply With Quote
Old 03-25-2021, 04:29 AM   #522
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default

Quote:
Is there a way to turn off snapping for that tool ?
The script follows the MIDI editor's snap setting.


Quote:
Is there a way to trim the starts of notes instead of ends? Would be super useful.
I have uploaded version 4.21 with new options to trim note starts. Please let me know if it works OK.

(I'm glad to see that some people are using this script. It hasn't been updated for more than two years, so it's in need of some work to make it faster and sleeker.)
juliansader is offline   Reply With Quote
Old 03-25-2021, 07:42 AM   #523
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

Quote:
Originally Posted by _Stevie_ View Post
@Julian, you have this fantastic feature implemented in the multi tool: when pressing shift, snap is turned off temporarily. If it isn't too much of work, could we also have this feature in "swipe select", as well?
Just quoting this again, in case this was overlooked
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is offline   Reply With Quote
Old 03-25-2021, 08:51 AM   #524
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default

Quote:
Originally Posted by _Stevie_ View Post
Just quoting this again, in case this was overlooked
Coming soon!

I plan on catching up with some long-overdue scripting this weekend.

Last edited by juliansader; 03-25-2021 at 09:04 AM.
juliansader is offline   Reply With Quote
Old 03-25-2021, 11:21 AM   #525
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

YEAH!!!! Can't wait

__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is offline   Reply With Quote
Old 03-26-2021, 03:29 AM   #526
souk21
Human being with feelings
 
souk21's Avatar
 
Join Date: Mar 2021
Posts: 463
Default

Quote:
Originally Posted by juliansader View Post
The script follows the MIDI editor's snap setting.
Yeah, I don't know why I didn't try before, but I just created a custom action with

-Toggle snapping
-JS_Slice
-Toggle snapping

And it works like a charm! Just need to transform it into a cycle action as there's no "enable" and "disable" snap actions for MIDI Editor and it won't work if snapping is disabled when starting the script.

Thanks!

Quote:
Originally Posted by juliansader View Post
T
I have uploaded version 4.21 with new options to trim note starts. Please let me know if it works OK.
I just updated (ReaPack is soo cool!!) and it works perfectly, thanks a lot for the really quick response and update


Also, I noticed what seems to be a bug with the multi tool. If I mousewheel over the center square it sometimes crashes with:

Quote:
The script encountered an error:

continueStep: ...am Scripts/MIDI Editor/js_Mouse editing - Multi tool.lua:1936: attempt to perform arithmetic on a nil value (field 'globalLeftmostValue')
continue: nil
pcallRetval: nil

* The original, unaltered MIDI has been restored to the take.
Thanks again for all your work !
souk21 is online now   Reply With Quote
Old 03-26-2021, 08:43 PM   #527
YuriOl
Human being with feelings
 
Join Date: Sep 2018
Location: lugansk
Posts: 153
Default

Quote:
Originally Posted by juliansader View Post
I have uploaded version 4.21 with new options to trim note starts. Please let me know if it works OK.
Thanks! I always waited for this function)
Works good!
YuriOl is offline   Reply With Quote
Old 05-07-2021, 09:14 AM   #528
Funkybot
Human being with feelings
 
Funkybot's Avatar
 
Join Date: Jul 2007
Location: New Joisey
Posts: 5,990
Default

Julian, what do you think of renaming this thread (as well as post #1 and updating your sig) to be more relevant to the current state? This is much more than just a set of MIDI Editor tools.

I went looking for a Multitool thread and couldn't find one. Saw the thread title and post #1 and didn't think this thread was it. Maybe something like, "Multitool: warp, stretch, manipulate envelopes and MIDI data"? Just a suggestion. Not trying to make work for you but it would make the current-state tool easier to find by updating the thread title, first post, sig.

Next step for me: figure out what I'm doing wrong in setting this script up. Read the Readme in the script itself last night, but it was late and I could not get it going.
Funkybot is offline   Reply With Quote
Old 05-07-2021, 10:14 AM   #529
daniellumertz
Human being with feelings
 
daniellumertz's Avatar
 
Join Date: Dec 2017
Location: Brazil
Posts: 1,992
Default

I think the forum limit changing titles :/ Maybe moderators can edit (?)
daniellumertz is offline   Reply With Quote
Old 05-07-2021, 04:13 PM   #530
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default

Quote:
Originally Posted by Funkybot View Post
Julian, what do you think of renaming this thread (as well as post #1 and updating your sig) to be more relevant to the current state? This is much more than just a set of MIDI Editor tools.
This thread contains many other MIDI scripts that are essential for (my own) workflow -- from the MIDI Inspector to channel stuff to the humble Deselect script -- so I think it would be confusing to change the title of this thread. However, it might be a good idea to spin the Multi Tool out into its own thread, similar to the (once mighty, now largely forgotten) LFO Tool.

(The first page is seriously outdated. I will update it soon.)

Last edited by juliansader; 05-07-2021 at 04:29 PM.
juliansader is offline   Reply With Quote
Old 05-07-2021, 05:01 PM   #531
Funkybot
Human being with feelings
 
Funkybot's Avatar
 
Join Date: Jul 2007
Location: New Joisey
Posts: 5,990
Default

Quote:
Originally Posted by juliansader View Post
This thread contains many other MIDI scripts that are essential for (my own) workflow -- from the MIDI Inspector to channel stuff to the humble Deselect script -- so I think it would be confusing to change the title of this thread. However, it might be a good idea to spin the Multi Tool out into its own thread, similar to the (once mighty, now largely forgotten) LFO Tool.

(The first page is seriously outdated. I will update it soon.)
Agree that a Multi-Tool specific thread would be welcome. Thanks!

Got up and running with Multi-Tool today. Very cool stuff. Big thanks!
Funkybot is offline   Reply With Quote
Old 05-17-2021, 03:35 PM   #532
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default

I've moved all Multi Tool stuff to its own thread: Multi Tool script for MIDI and automation editing.
juliansader is offline   Reply With Quote
Old 08-22-2021, 02:29 PM   #533
Malfunction
Human being with feelings
 
Malfunction's Avatar
 
Join Date: Sep 2020
Posts: 149
Default

Is it possible to write a script that edits velocity values by "drawing" only?
The user would have to hold a key while editing.
When key is released the script ends.

The script would be similar to "insert CC at mouse cursor".

Reapers own "Draw" feature is bundled up with "Edit", which means the 2 contexts are mixed up and always fighting each other.
I find the "edit" context to be in the way constantly.

Draw and Edit dont clash just as hard in the cc lanes, as they do in the velocity lane.

Last edited by Malfunction; 08-22-2021 at 02:55 PM.
Malfunction is offline   Reply With Quote
Old 08-23-2021, 03:45 PM   #534
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default

Could you explain a bit more what you mean by "drawing velocities"? Drawing usually involves inserting new events, and new velocities would mean new notes.
juliansader is offline   Reply With Quote
Old 08-24-2021, 03:13 AM   #535
Malfunction
Human being with feelings
 
Malfunction's Avatar
 
Join Date: Sep 2020
Posts: 149
Default

This is drawing velocity


Draw and Edit is mixed up , thus fighting each other
Malfunction is offline   Reply With Quote
Old 08-24-2021, 06:59 AM   #536
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default

Which mouse modifier are you using?
Are you perhaps referring to this bug report?
juliansader is offline   Reply With Quote
Old 08-25-2021, 03:21 AM   #537
Malfunction
Human being with feelings
 
Malfunction's Avatar
 
Join Date: Sep 2020
Posts: 149
Default

wow, i didnt know that was a bug.
I wasnt really refering to that.

Im using leftclick/drag to "Draw/Edit CC events ignoring snap and selection" on "MIDI CC lane", "MIDI CC event", "MIDI CC segment".

Notice that there is no "Draw CC events ..." option.

I just dont like the fact that two different actions (draw and edit) are bundled into one mouse modifier.

When you draw velocity ,you should draw regardless of the initial starting position.
But if the mouse cursor suddenly has switched into a double edged arrow ,you cant draw. Cos now you are all of a sudden "editing" velocity.

This is an apparent conflict.
Malfunction is offline   Reply With Quote
Old 08-27-2021, 05:04 AM   #538
Malfunction
Human being with feelings
 
Malfunction's Avatar
 
Join Date: Sep 2020
Posts: 149
Default

Im shit at explaining things.
Malfunction is offline   Reply With Quote
Old 08-27-2021, 09:59 PM   #539
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default

Quote:
Originally Posted by Malfunction View Post
Im using leftclick/drag to "Draw/Edit CC events ignoring snap and selection" on "MIDI CC lane", "MIDI CC event", "MIDI CC segment".

Notice that there is no "Draw CC events ..." option.
I think this might be a bug. In the "MIDI CC event" context of the Velocity lane -- but not of other CC lanes -- "Draw/Edit CC events" and "Edit selected events if any" automatically selects the event under the mouse, and then limits the draw/edit to only that event.

I have reported it here.
juliansader is offline   Reply With Quote
Old 10-11-2021, 07:23 AM   #540
Malfunction
Human being with feelings
 
Malfunction's Avatar
 
Join Date: Sep 2020
Posts: 149
Default

Quote:
Originally Posted by juliansader View Post
I think this might be a bug. In the "MIDI CC event" context of the Velocity lane -- but not of other CC lanes -- "Draw/Edit CC events" and "Edit selected events if any" automatically selects the event under the mouse, and then limits the draw/edit to only that event.

I have reported it here.
Is there a way to block/intercept/annihilate that antihelpful double arrowed terribleness?
Malfunction is offline   Reply With Quote
Old 10-15-2021, 04:06 PM   #541
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default

Quote:
Originally Posted by Malfunction View Post
Is there a way to block/intercept/annihilate that antihelpful double arrowed terribleness?
Unfortunately not that I can quickly think of.
juliansader is offline   Reply With Quote
Old 10-21-2021, 01:29 PM   #542
Malfunction
Human being with feelings
 
Malfunction's Avatar
 
Join Date: Sep 2020
Posts: 149
Default

Quote:
Originally Posted by juliansader View Post
Unfortunately not that I can quickly think of.
This seems to fix it.
Context : "CC Event "
Action : "Edit CC event ignoring selection"
left/click drag.

Im embarrased , cos ive been raising hell about this.
Attached Images
File Type: jpg Untitled.jpg (62.8 KB, 120 views)
Malfunction is offline   Reply With Quote
Old 12-16-2021, 06:15 AM   #543
GeneralMidi
Human being with feelings
 
Join Date: Dec 2020
Posts: 226
Default

Hi Julian,

Do you think the note selector could be made to select from more than one midi item, if the items are made to be editable?

Been using FeedTheCat's MidiEditorMagic with multiple midi items in the Midi Editor, and the ability to select across these parts in one go would be really helpful.
GeneralMidi is offline   Reply With Quote
Old 12-16-2021, 05:01 PM   #544
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default

REAPER recently added new API functions that (finally!) allow scripts to quickly and easily detect which takes are editable in the MIDI editor. I have already updated several of my scripts to work with all editable takes, but it takes quite a lot of time to do all the updates, so I can unfortunately not promise when I will get to the Note Selector. It will happen eventually!
juliansader is offline   Reply With Quote
Old 12-22-2021, 04:44 AM   #545
mozart999uk
Human being with feelings
 
Join Date: Nov 2010
Posts: 1,722
Default

I regularly use "Draw ramp" in the midi editor. I have it on a shortcut key on my x keys. It's brilliant!

I noticed in the script it says that it's deprecated due to native CC envelopes being introduced.

So far I've not found a native way in the editor to draw ramps as easily.

I've found a way to ramp existing CC's but not to draw a ramp from from scratch so quickly.

So unless someone can point me to a way to do this as quick as "draw ramp", I humbly suggest that this script shouldn't be deprecated and is still very useful.

If it is still being developed, is there a way to make it draw just two points? One at the beginning and one at the end?
mozart999uk is offline   Reply With Quote
Old 12-22-2021, 02:53 PM   #546
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

I also use this script daily for drawing ramps. I don't think there is a quicker (native) way to do it.
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is offline   Reply With Quote
Old 12-23-2021, 03:54 AM   #547
mozart999uk
Human being with feelings
 
Join Date: Nov 2010
Posts: 1,722
Default

Quote:
Originally Posted by _Stevie_ View Post
I also use this script daily for drawing ramps. I don't think there is a quicker (native) way to do it.
Oh excellent. Glad it's not just me :-)
mozart999uk is offline   Reply With Quote
Old 01-25-2022, 04:13 AM   #548
Vagelis
Human being with feelings
 
Vagelis's Avatar
 
Join Date: Oct 2017
Location: Larisa, Greece
Posts: 3,797
Default

Hi Julian, I found a bug with lfo tool and take pitch envelope. While it's working fine with rest take envelopes, with take pitch it doesn't use the whole pitch range.

Vagelis is offline   Reply With Quote
Old 01-28-2022, 04:04 AM   #549
MixR
Human being with feelings
 
Join Date: Jan 2017
Location: London
Posts: 328
Default

Hi Julian,
I have been using your script Script: js_Razor edit - Enclose selected media items and automation items in minimal razor areas.lua as a workaround for Reaper's lack of Razor Edit areas following item grouping.

The script has been working very well and also provides a very intuitive way of editing automation based on media items.

However, with the recent 6.4.3 upgrade this script is no longer working. All previous versions of Reaper I still have in my downloads folder are working as expected (6.33 to 6.42),

With 6.43 the script still creates the Razor Edit area but no longer includes grouped items or visible automation lanes.
__________________
PC Ryzen 7950x|W11 Pro|Reaper (latest)
2x RME HDSPe MADI FX | SSL UF8|UF1|UC1
PC Ryzen 5950X|W11 Pro|AudioGridder Server
MixR is offline   Reply With Quote
Old 01-29-2022, 06:30 AM   #550
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default

Could you please upload a few screenshots to demonstrate the problem?

Re the grouped items: the script only encloses *selected* items, so perhaps the option "Selecting one item selects group" has been disabled?

Re visible automation lanes: the script only encloses AIs, not plain automation. However, if the option "Envelope points move with items" is enabled, REAPER will automatically expand any razor area from the item lane onto all visible automation lanes. Perhaps this option has been disabled?
juliansader is offline   Reply With Quote
Old 01-29-2022, 10:09 AM   #551
MixR
Human being with feelings
 
Join Date: Jan 2017
Location: London
Posts: 328
Default

Quote:
Originally Posted by juliansader View Post
Could you please upload a few screenshots to demonstrate the problem?

Re the grouped items: the script only encloses *selected* items, so perhaps the option "Selecting one item selects group" has been disabled?

Re visible automation lanes: the script only encloses AIs, not plain automation. However, if the option "Envelope points move with items" is enabled, REAPER will automatically expand any razor area from the item lane onto all visible automation lanes. Perhaps this option has been disabled?
Thank you for your replay, Julian. Both options are enabled but I have found the cause of my issue: Reaper 6.43 introduced the option Razor edits affect all track envelopes which is disabled by default. When enabled the script behaves as expected.




Reaper 6.42 did not have this option:
__________________
PC Ryzen 7950x|W11 Pro|Reaper (latest)
2x RME HDSPe MADI FX | SSL UF8|UF1|UC1
PC Ryzen 5950X|W11 Pro|AudioGridder Server
MixR is offline   Reply With Quote
Old 02-05-2022, 12:29 PM   #552
Reflected
Human being with feelings
 
Reflected's Avatar
 
Join Date: Jul 2009
Posts: 3,294
Default

Julian,
You Are So talented!
Thanks for all your great scripts

btw
maybe you can also create a mouse modifying tool to adjust the vol of selected items? (ramp tools, free draw etc..)
https://forum.cockos.com/showthread.php?t=262766
Reflected is offline   Reply With Quote
Old 02-13-2022, 03:17 AM   #553
Sid
Human being with feelings
 
Join Date: Apr 2018
Posts: 515
Default

Quote:
Originally Posted by mozart999uk View Post
I regularly use "Draw ramp" in the midi editor. I have it on a shortcut key on my x keys. It's brilliant!
I came here just to say this! When I saw it was "deprecated" I became concerned.

I saw this from juliansader in this thread in 2016:
https://forums.cockos.com/showpost.p...31&postcount=9
Quote:
Draw ramp:
The following GIF is of an old, outdated version of the Draw ramp script:
So what replaces it? I use this script on a shortcut nearly every day since I found it.

I currently have that script backed up in four places just in case.

Last edited by Sid; 02-14-2022 at 01:17 AM.
Sid is offline   Reply With Quote
Old 02-14-2022, 12:52 AM   #554
mozart999uk
Human being with feelings
 
Join Date: Nov 2010
Posts: 1,722
Default

Julian, would you be able to comment on this? Would you be prepared to keep the draw ramp script in development?
mozart999uk is offline   Reply With Quote
Old 02-22-2022, 04:47 PM   #555
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default

Sorry for not replying sooner!

I expected to deprecate the script when REAPER got CC envelopes, but because some users still use the script (somewhat to my surprise), it has not been been deprecated. I will remove that line from the Description (and when I have some time again, I will update the script to draw in all editable takes).

The note in the linked post merely means that the version of the script that is shown in the GIF is very outdated. For example, it doesn't even change the mouse cursor while drawing.

Quote:
Originally Posted by Sid View Post
So what replaces it? I use this script on a shortcut nearly every day since I found it.
I'm not sure which version you're using, but nowadays the script is named "js_Mouse editing - Draw ramp.lua".
juliansader is offline   Reply With Quote
Old 02-22-2022, 06:30 PM   #556
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default

Quote:
Originally Posted by Vagelis View Post
Hi Julian, I found a bug with lfo tool and take pitch envelope. While it's working fine with rest take envelopes, with take pitch it doesn't use the whole pitch range.
I've uploaded v2.15 of the script, which should hopefully fix the bug.
juliansader is offline   Reply With Quote
Old 02-23-2022, 01:14 AM   #557
mozart999uk
Human being with feelings
 
Join Date: Nov 2010
Posts: 1,722
Default

Quote:
Originally Posted by juliansader View Post
Sorry for not replying sooner!

I expected to deprecate the script when REAPER got CC envelopes, but because some users still use the script (somewhat to my surprise), it has not been been deprecated. I will remove that line from the Description (and when I have some time again, I will update the script to draw in all editable takes).

The note in the linked post merely means that the version of the script that is shown in the GIF is very outdated. For example, it doesn't even change the mouse cursor while drawing.
Great news :-)
mozart999uk is offline   Reply With Quote
Old 04-08-2022, 12:49 AM   #558
paaltio
Human being with feelings
 
Join Date: Aug 2011
Location: Los Angeles, CA
Posts: 308
Default

Strange bug with "js_Edit - Insert chased CCs at edit cursor in selected MIDI items" that should trigger with this session if you run it with the edit cursor somewhere over the MIDI item (not at the start). Everything just disappears.

paaltio is offline   Reply With Quote
Old 04-08-2022, 11:44 AM   #559
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default

Thanks for the report! I found the cause of the problem, and it seems to be a REAPER bug. Your take somehow contains a ModWheel event *before* the start of the source (i.e. with a negative tick position), which is not valid, and REAPER's MIDI functions fail when they encounter such a MIDI event.

I will report the bug and try to figure out a workaround.

Do you perhaps have any idea how this could have happened?

In the meantime, if you wiggle the left edge of the item, the invalid MIDI should update to correct positions again.
juliansader is offline   Reply With Quote
Old 04-08-2022, 10:20 PM   #560
paaltio
Human being with feelings
 
Join Date: Aug 2011
Location: Los Angeles, CA
Posts: 308
Default

Quote:
Originally Posted by juliansader View Post
Thanks for the report! I found the cause of the problem, and it seems to be a REAPER bug. Your take somehow contains a ModWheel event *before* the start of the source (i.e. with a negative tick position), which is not valid, and REAPER's MIDI functions fail when they encounter such a MIDI event.

I will report the bug and try to figure out a workaround.

Do you perhaps have any idea how this could have happened?

In the meantime, if you wiggle the left edge of the item, the invalid MIDI should update to correct positions again.
Thanks for checking it out! I hadn't even realized that's a thing. Looks like MIDI_InsertCC and MIDI_SetCC do not check against negative values. So it's quite likely one of my own CC scripts has a bug that has caused that stray event. I should be able to find it quite easily the next time this happens now that I know where to look. Thanks again, and thanks for so many awesome MIDI scripts! The multi tool is simply incredible.
paaltio 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 05:05 AM.


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