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

Reply
 
Thread Tools Display Modes
Old 02-04-2021, 05:01 AM   #41
lemerchand
Human being with feelings
 
lemerchand's Avatar
 
Join Date: May 2018
Location: Sacramento, CA
Posts: 43
Default

Quote:
Originally Posted by Kr3eM View Post
I encouter an issue when trying to set the Float at mouse values, the second one adds the number five as it pleases... like I set -100 and when reopen it says -1005 and so on... is it just me or can anyone confirm it ? (v1.2.71 on reaper 6.21 x64 windows 7)
Okay, I just pushed an update (v1.2.73). Let me know if it fixes your issue! Sorry for the trouble.

Quote:
Originally Posted by EpicSounds View Post
crash when shift-Right-click on Time section

console output
...pts\Scripts by Lemerchand\MIDI Selector Tool\libs/cf.lua:179: attempt to concatenate a nil value (local 'filename')

separate issue
the refocusing of the editor stopped working after I saved some presets. Not sure if that's the cause but its when I noticed the issue. it was working fine yesterday
I think I resolved both of your issues. Install the new update (v1.2.73) and let me know if it's still an issue! Sorry for the inconvenience.
__________________
MIDI Selector Tool
lemerchand is offline   Reply With Quote
Old 02-04-2021, 06:08 PM   #42
todd_r
Human being with feelings
 
todd_r's Avatar
 
Join Date: Nov 2006
Posts: 819
Default

Thanks for the brilliant tool Lemerchand! I would love it if the items to be selected were done so in real time as you picked the options so you get to preview what your doing. Would this be possible?
todd_r is offline   Reply With Quote
Old 02-05-2021, 07:50 PM   #43
MajorLeo
Human being with feelings
 
Join Date: Dec 2016
Location: Montreal
Posts: 22
Default

This is really a great and useful tool. I've been using this to correct the timing of the legatos of cinematic studio brass and cinematic studio woodwinds. I made a macro that select, for example, all notes below velocity 64 and apply the timing correction in milliseconds, then above 64, apply correction, etc...

Only thing I haven't figured out is how to exclude from the selection the notes that are not "legato", meaning the notes that don't have an overlapping note at the start note. Would it be possible that add this feature? Or maybe there's a script somewhere that does this that I haven't heard of yet that I could add to the macro.
MajorLeo is offline   Reply With Quote
Old 02-06-2021, 09:25 AM   #44
Kr3eM
Human being with feelings
 
Kr3eM's Avatar
 
Join Date: Apr 2019
Posts: 230
Default

Quote:
Originally Posted by lemerchand View Post
Okay, I just pushed an update (v1.2.73). Let me know if it fixes your issue! Sorry for the trouble.
Yes, the Float at mouse function is fixed. Thank you very much.
Kr3eM is offline   Reply With Quote
Old 03-22-2021, 05:55 AM   #45
Suzuka
Human being with feelings
 
Suzuka's Avatar
 
Join Date: May 2020
Location: Spain
Posts: 22
Default Bug?

Hi! Thanks for making this script! I saw the Jon's video (https://www.youtube.com/watch?v=pWtlaVO4ABw) and I loved it.

Sadly is not working for me, I get this error when running the script:

MIDI Selector Tool.lua:30: attempt to call a nil value (field 'JS_Window_GetFocus')

(Maybe its because I'm using latest SWS (v2.12.1 #3)?)
Suzuka is offline   Reply With Quote
Old 03-22-2021, 09:30 AM   #46
daniellumertz
Human being with feelings
 
daniellumertz's Avatar
 
Join Date: Dec 2017
Location: Brazil
Posts: 1,881
Default

Hi Suzuka!Do you have installed the js extension? Is a requirement for the script hehe
daniellumertz is offline   Reply With Quote
Old 03-22-2021, 10:10 AM   #47
Suzuka
Human being with feelings
 
Suzuka's Avatar
 
Join Date: May 2020
Location: Spain
Posts: 22
Default

Quote:
Originally Posted by daniellumertz View Post
Hi Suzuka!Do you have installed the js extension? Is a requirement for the script hehe
Aw, my bad, didn't know that! Thank you so much Daniel, now works perfect!
Suzuka is offline   Reply With Quote
Old 07-07-2021, 07:42 AM   #48
mozart999uk
Human being with feelings
 
Join Date: Nov 2010
Posts: 1,502
Default

Is there a way to get this to have a wider PPQ and also to select notes that are slightly early?
mozart999uk is offline   Reply With Quote
Old 07-11-2021, 08:00 PM   #49
lemerchand
Human being with feelings
 
lemerchand's Avatar
 
Join Date: May 2018
Location: Sacramento, CA
Posts: 43
Default

Quote:
Originally Posted by mozart999uk View Post
Is there a way to get this to have a wider PPQ and also to select notes that are slightly early?
It's been a while since I've been under the hood, but if you are willing to go into the script you can probably get away with changing the max ppq variable. If that's something you're interested in let me know and I'll see if I can find the file and line number for you, and beyond that I'll keep it in mind for when I do an update (something I'm terrified of because it's been so long since I've wrapped my head around the code haha plus everyone wants me to make it work on retina which might not be an easy task!)
__________________
MIDI Selector Tool
lemerchand is offline   Reply With Quote
Old 07-12-2021, 02:44 AM   #50
mozart999uk
Human being with feelings
 
Join Date: Nov 2010
Posts: 1,502
Default

Quote:
Originally Posted by lemerchand View Post
It's been a while since I've been under the hood, but if you are willing to go into the script you can probably get away with changing the max ppq variable. If that's something you're interested in let me know and I'll see if I can find the file and line number for you, and beyond that I'll keep it in mind for when I do an update (something I'm terrified of because it's been so long since I've wrapped my head around the code haha plus everyone wants me to make it work on retina which might not be an easy task!)
Thanks so much for the great response :-) It's a great script!

Yep definitely interested in that. Is there a way to widen it so that it can find notes that come slightly before the beat as well?

I was trying to filter snare hits in a brushed jazz midi file that only occurred on beats 2 and 4. Being swung and played on drum triggers in real time they're not quantised so some of the slightly early hits were being missed....
mozart999uk is offline   Reply With Quote
Old 07-13-2021, 12:21 PM   #51
lemerchand
Human being with feelings
 
lemerchand's Avatar
 
Join Date: May 2018
Location: Sacramento, CA
Posts: 43
Default

Quote:
Originally Posted by mozart999uk View Post
Thanks so much for the great response :-) It's a great script!

Yep definitely interested in that. Is there a way to widen it so that it can find notes that come slightly before the beat as well?

I was trying to filter snare hits in a brushed jazz midi file that only occurred on beats 2 and 4. Being swung and played on drum triggers in real time they're not quantised so some of the slightly early hits were being missed....
I'm not very good with rhythm, especially swing. But iirc the ppq threshold should work for both early and late notes. If you go into the main script I believe the value is set to +/- 30 ticks. You can increase the value and play around with it until you find a number that suits you, though I'm not sure how exactly since MST doesn't deal with swing.

The max ppq threshold can be found on line 516 if the main script. Let me know if that helps at all! Also I'm glad you're enjoying it the script!
__________________
MIDI Selector Tool
lemerchand is offline   Reply With Quote
Old 07-14-2021, 02:58 AM   #52
mozart999uk
Human being with feelings
 
Join Date: Nov 2010
Posts: 1,502
Default

Quote:
Originally Posted by lemerchand View Post
I'm not very good with rhythm, especially swing. But iirc the ppq threshold should work for both early and late notes. If you go into the main script I believe the value is set to +/- 30 ticks. You can increase the value and play around with it until you find a number that suits you, though I'm not sure how exactly since MST doesn't deal with swing.

The max ppq threshold can be found on line 516 if the main script. Let me know if that helps at all! Also I'm glad you're enjoying it the script!
Brilliant. Worked a treat thanks!

Can I check something else with you?

For me anyway, the note selection range seems to be an octave out. So to select what's showing in the editor as G3, I need to set the range to include G4.

It might be me or the way I have something setup here.....


PS very much looking forward to a larger gui. My tired old eyes are struggling a bit these days :-)
mozart999uk is offline   Reply With Quote
Old 07-14-2021, 11:12 AM   #53
daniellumertz
Human being with feelings
 
daniellumertz's Avatar
 
Join Date: Dec 2017
Location: Brazil
Posts: 1,881
Default

The misplace octave might be because octave numbers don't have an standard. By deafult reaper middle c is c4 you might have changed it to c3 (the other common number for octaves)

You change that in
Media>MIDI>MIDI Octaves Names Display offset [ x ] octaves
daniellumertz is offline   Reply With Quote
Old 07-15-2021, 04:16 AM   #54
mozart999uk
Human being with feelings
 
Join Date: Nov 2010
Posts: 1,502
Default

Quote:
Originally Posted by daniellumertz View Post
The misplace octave might be because octave numbers don't have an standard. By deafult reaper middle c is c4 you might have changed it to c3 (the other common number for octaves)

You change that in
Media>MIDI>MIDI Octaves Names Display offset [ x ] octaves
Thanks for your reply. So I have that pref set as zero. No offset.

I've manually inputted a note which shows in properties as "60 C4" but to get MST5k to select it I have to choose "C5"
mozart999uk is offline   Reply With Quote
Old 07-15-2021, 10:19 AM   #55
daniellumertz
Human being with feelings
 
daniellumertz's Avatar
 
Join Date: Dec 2017
Location: Brazil
Posts: 1,881
Default

hm yeah it is right. It happens here too, c4 is c5 in MST5K which is a uncommon octave offset
daniellumertz is offline   Reply With Quote
Old 07-15-2021, 11:41 AM   #56
mozart999uk
Human being with feelings
 
Join Date: Nov 2010
Posts: 1,502
Default

Quote:
Originally Posted by daniellumertz View Post
hm yeah it is right. It happens here too, c4 is c5 in MST5K which is a uncommon octave offset
Thanks for confirming. It's not the end of the world but would be nice to be fixed :-)
mozart999uk is offline   Reply With Quote
Old 08-26-2021, 01:44 PM   #57
samdixonmusic
Human being with feelings
 
Join Date: Jun 2019
Posts: 5
Default

Thanks for the awesome script! Curious has anyone found a way to get MIDI Editor scripts like this one to run docked on startup? I'd normally use the SWS startup actions feature, but it seems limited only to Main actions.
samdixonmusic is offline   Reply With Quote
Old 08-26-2021, 04:51 PM   #58
daniellumertz
Human being with feelings
 
daniellumertz's Avatar
 
Join Date: Dec 2017
Location: Brazil
Posts: 1,881
Default

hm I think you can add MST5K to your main action list and run from there with no problem and use SWS to load on startup

Also MST5K have a option to open docked in settings
daniellumertz is offline   Reply With Quote
Old 08-26-2021, 09:17 PM   #59
lemerchand
Human being with feelings
 
lemerchand's Avatar
 
Join Date: May 2018
Location: Sacramento, CA
Posts: 43
Default

Quote:
Originally Posted by samdixonmusic View Post
Thanks for the awesome script! Curious has anyone found a way to get MIDI Editor scripts like this one to run docked on startup? I'd normally use the SWS startup actions feature, but it seems limited only to Main actions.
Glad you like MST! In it's current state, running docked may require some finesse on your part, that is, I think it will throw an error if you try to use ti when there is no active midi editor. Other than that, try what Daniel mentioned. I've ran it a few times docked in between editors just fine, although I never loaded it on startup.
__________________
MIDI Selector Tool
lemerchand is offline   Reply With Quote
Old 09-03-2021, 11:21 PM   #60
dima matkovsky
Human being with feelings
 
Join Date: Jan 2021
Posts: 3
Default

Quote:
Originally Posted by daniellumertz View Post
do you have Julian Sanders Extension installed ?
Hi, is it reply for Dupont? you recomended to install
Julian Sanders Extension, I have the same problem and I couldn find this extention to download..
I think I didn't install it right way because I never did it. But it's in my Actions list now.
dima matkovsky is offline   Reply With Quote
Old 09-03-2021, 11:43 PM   #61
daniellumertz
Human being with feelings
 
daniellumertz's Avatar
 
Join Date: Dec 2017
Location: Brazil
Posts: 1,881
Default

yeah you need JS Extension to run this script.
No worry that you have installed this script first, just go to your Reapack and search for the js extension and download it. Then try to run this script again
daniellumertz is offline   Reply With Quote
Old 09-04-2021, 12:39 PM   #62
dima matkovsky
Human being with feelings
 
Join Date: Jan 2021
Posts: 3
Default

Quote:
Originally Posted by daniellumertz View Post
yeah you need JS Extension to run this script.
No worry that you have installed this script first, just go to your Reapack and search for the js extension and download it. Then try to run this script again
Thanks a lot! It works!!!
dima matkovsky is offline   Reply With Quote
Old 09-04-2021, 05:21 PM   #63
daniellumertz
Human being with feelings
 
daniellumertz's Avatar
 
Join Date: Dec 2017
Location: Brazil
Posts: 1,881
Default

wow! That is nice! Good use of it!
daniellumertz is offline   Reply With Quote
Old 12-12-2021, 08:32 AM   #64
Redapple2237
Human being with feelings
 
Join Date: Mar 2019
Posts: 5
Default

It took me ages to find and install this script, but now that I have it – and it's working! – I am just so happy and I know that I will save loads of time in the future! :-) (Except if I have triplets :P)
Redapple2237 is offline   Reply With Quote
Old 12-13-2021, 09:40 AM   #65
daniellumertz
Human being with feelings
 
daniellumertz's Avatar
 
Join Date: Dec 2017
Location: Brazil
Posts: 1,881
Default

For more complex divisions you can try Note Selector from JS
daniellumertz is offline   Reply With Quote
Old 12-14-2021, 03:54 AM   #66
IXix
Human being with feelings
 
Join Date: Jan 2007
Location: mcr:uk
Posts: 3,834
Default

Nice work! Somewhat late to the party, might I request a font size setting? It's a bit squinty here.
IXix is offline   Reply With Quote
Old 12-16-2021, 05:41 AM   #67
GeneralMidi
Human being with feelings
 
Join Date: Dec 2020
Posts: 195
Default

Hi. I've been playing with this and it doesn't seem to work when you have multiple items selected (items are set to editable). It doesn't seem to obey the selection criteria over more than one item. Can someone confirm please?

If this is the case, would you please consider adding this functionality, as I use FeedTheCat's Midi Editor Magic scripts to display more than one midi item for string arranging etc. Cheers.
GeneralMidi is offline   Reply With Quote
Old 12-20-2021, 09:26 AM   #68
mozart999uk
Human being with feelings
 
Join Date: Nov 2010
Posts: 1,502
Default

Quote:
Originally Posted by IXix View Post
Nice work! Somewhat late to the party, might I request a font size setting? It's a bit squinty here.
Yep. +1 from me too :-)
mozart999uk is offline   Reply With Quote
Old 12-20-2021, 09:26 AM   #69
mozart999uk
Human being with feelings
 
Join Date: Nov 2010
Posts: 1,502
Default

Quote:
Originally Posted by Redapple2237 View Post
It took me ages to find and install this script, but now that I have it – and it's working! – I am just so happy and I know that I will save loads of time in the future! :-) (Except if I have triplets :P)
A way to work with triplets would be great :-)
mozart999uk is offline   Reply With Quote
Old 12-24-2021, 05:54 PM   #70
henu
Human being with feelings
 
Join Date: Dec 2020
Posts: 46
Default Filter just the selection?

Is it possible to just filter the currently selected notes? so its not running on the complete midi item?

edit: the timeselection is actually all I need now used in tandem with "time selection to notes" kinda action... but might be cool to be able to persistently edit the selections straight on existing selection.

Last edited by henu; 12-24-2021 at 06:11 PM.
henu is offline   Reply With Quote
Old 01-13-2022, 06:23 AM   #71
henu
Human being with feelings
 
Join Date: Dec 2020
Posts: 46
Default

can we get a midi channel filter in this thing as well?

Thanks!
henu is offline   Reply With Quote
Old 02-24-2022, 02:54 PM   #72
henu
Human being with feelings
 
Join Date: Dec 2020
Posts: 46
Default

Wondering whats up with the inconsistent selection of the first note in a bar/first beat? adjusting the ppq threshold doesnt seem to do much to help this one. Things are åperfrectly quantized but the selection of the downbeat doesnt seem to work right regardless.
henu is offline   Reply With Quote
Old 03-11-2022, 09:13 AM   #73
Miscreant
Human being with feelings
 
Miscreant's Avatar
 
Join Date: Mar 2012
Posts: 324
Default

Quote:
Originally Posted by daniellumertz View Post
hm I think you can add MST5K to your main action list and run from there with no problem and use SWS to load on startup

Also MST5K have a option to open docked in settings
Just following up on this, since I too am running into the problem of not being able to create custom actions that include actions from the main section and from the midi editor:

I want this to dock when I run the script as well, and the option 'dock on start up' isn't working. So how I can send this script over to the main actions window instead?
Miscreant is offline   Reply With Quote
Old 04-03-2022, 03:07 AM   #74
JimDiGritz
Human being with feelings
 
Join Date: Jan 2022
Posts: 36
Default This is an awesome script - however how does non 4/4 time work?

My project is in 3/4, when I select Beat 1, it defaults to the 1st of a 4/4 time signature.

Eg As per the screenshot in a 4 measure selection it selects notes 1, 5 & 9 (which would be the first notes of a 4/4 measure.

I could be missing something!!!
Attached Images
File Type: png Screenshot 2022-04-03 110349.png (16.4 KB, 74 views)
JimDiGritz 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 09:16 PM.


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