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

Reply
 
Thread Tools Display Modes
Old 04-16-2020, 01:04 PM   #41
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

Snap to grid support added. Setting is inside the script to enable/disable.


For the Midi Editor the support is experimental because we miss some API functions to do it properly. So, it is disabled by default. If you want to try it, enable it inside the script.
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 04-17-2020, 01:35 AM   #42
Vagelis
Human being with feelings
 
Vagelis's Avatar
 
Join Date: Oct 2017
Location: Larisa, Greece
Posts: 3,827
Default

YAY! Going to try now, thanks!
Vagelis is online now   Reply With Quote
Old 04-17-2020, 02:36 AM   #43
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

Could the guys on OSX to whom the script is not working, try this script and tell me if they see a red cross appearing in the arrange view? Thanks!
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 04-19-2020, 05:10 AM   #44
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

New version on ReaPack (v1.50) greatly improves "snap to grid" behavior for Midi Editor, so now it is by default set to on.
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 04-19-2020, 06:41 AM   #45
Vagelis
Human being with feelings
 
Vagelis's Avatar
 
Join Date: Oct 2017
Location: Larisa, Greece
Posts: 3,827
Default

Don't know why but i'm not able to see the guideline in the midi editor
Vagelis is online now   Reply With Quote
Old 04-19-2020, 11:09 AM   #46
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

Quote:
Originally Posted by Vagelis View Post
Don't know why but i'm not able to see the guideline in the midi editor

Do you see it if you disable snap to grid?
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 04-20-2020, 11:54 AM   #47
Vagelis
Human being with feelings
 
Vagelis's Avatar
 
Join Date: Oct 2017
Location: Larisa, Greece
Posts: 3,827
Default

Quote:
Originally Posted by amagalma View Post
Do you see it if you disable snap to grid?
No, i tried also without snap. And i m using win and the latest version of Reaper.
Vagelis is online now   Reply With Quote
Old 04-20-2020, 01:22 PM   #48
Tone Ranger
Human being with feelings
 
Tone Ranger's Avatar
 
Join Date: Jan 2019
Location: Toronto, Canada
Posts: 542
Default

Quote:
Originally Posted by amagalma View Post
Could the guys on OSX to whom the script is not working, try this script and tell me if they see a red cross appearing in the arrange view? Thanks!
Sorry @amagalma, doesn't work for me. I eventually get a console window that says 'script end', that's it...
Tone Ranger is offline   Reply With Quote
Old 04-20-2020, 03:36 PM   #49
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

Quote:
Originally Posted by Tone Ranger View Post
Sorry @amagalma, doesn't work for me. I eventually get a console window that says 'script end', that's it...

Probably because you are trying it with version 1.002 of JS_ReaScript while the test script was for v1.000. I'll update it and reload it for you to try again. Thanks!
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)

Last edited by amagalma; 04-20-2020 at 04:22 PM.
amagalma is offline   Reply With Quote
Old 04-20-2020, 03:38 PM   #50
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

Quote:
Originally Posted by Vagelis View Post
No, i tried also without snap. And i m using win and the latest version of Reaper.

If you disable snap support inside the script does it work?
Code:
local Arrange_snap_support = 1 -- (for arrange view)
local MidiEditor_snap_support = 0 -- (for active midi editor)
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 04-20-2020, 05:27 PM   #51
Tone Ranger
Human being with feelings
 
Tone Ranger's Avatar
 
Join Date: Jan 2019
Location: Toronto, Canada
Posts: 542
Default

Quote:
Originally Posted by amagalma View Post
Probably because you are trying it with version 1.002 of JS_ReaScript while the test script was for v1.000. I'll update it and reload it for you to try again. Thanks!
Okay cool, just let me know when you have a new version!
Tone Ranger is offline   Reply With Quote
Old 04-21-2020, 02:56 AM   #52
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

Now the OSX test scripts are up to date.

JS_Composite test.lua
ScreenToClient.lua


Please, try them and tell me if they work on your system. Thanks!
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 04-21-2020, 04:22 AM   #53
Vagelis
Human being with feelings
 
Vagelis's Avatar
 
Join Date: Oct 2017
Location: Larisa, Greece
Posts: 3,827
Default

Quote:
Originally Posted by amagalma View Post
If you disable snap support inside the script does it work?
Code:
local Arrange_snap_support = 1 -- (for arrange view)
local MidiEditor_snap_support = 0 -- (for active midi editor)
Nope here's a gif



I'm using the logic v3.5 theme, win7 64
Vagelis is online now   Reply With Quote
Old 04-21-2020, 04:29 AM   #54
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

I see.. It has nothing to do with the snap code..
Could you try it with the MIDI Editor undocked? Just to check if this causes the issue.
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 04-21-2020, 05:27 AM   #55
Vagelis
Human being with feelings
 
Vagelis's Avatar
 
Join Date: Oct 2017
Location: Larisa, Greece
Posts: 3,827
Default

YES! It works when the editor is undocked

Both with snap and without!

But it would be great if it's possible to work also when the editor is docked
Vagelis is online now   Reply With Quote
Old 04-21-2020, 06:26 AM   #56
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

It will! I am going to fix it
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 04-21-2020, 10:36 AM   #57
Tone Ranger
Human being with feelings
 
Tone Ranger's Avatar
 
Join Date: Jan 2019
Location: Toronto, Canada
Posts: 542
Default

Quote:
Originally Posted by amagalma View Post
Now the OSX test scripts are up to date.

JS_Composite test.lua
ScreenToClient.lua


Please, try them and tell me if they work on your system. Thanks!
Unfortunately I don't seem to get anything from either of these still. The messages pop up, but no red cross with the JS script. Not sure what I'm looking for with the second one, but I move the mouse cursor around and nothing looks any different!
Tone Ranger is offline   Reply With Quote
Old 04-21-2020, 10:46 AM   #58
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

Quote:
Originally Posted by Tone Ranger View Post
Unfortunately I don't seem to get anything from either of these still. The messages pop up, but no red cross with the JS script. Not sure what I'm looking for with the second one, but I move the mouse cursor around and nothing looks any different!
Which OSX version are you on?
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 04-21-2020, 02:58 PM   #59
Tone Ranger
Human being with feelings
 
Tone Ranger's Avatar
 
Join Date: Jan 2019
Location: Toronto, Canada
Posts: 542
Default

Quote:
Originally Posted by amagalma View Post
Which OSX version are you on?
10.14.6 here, with the latest Reaper.
Tone Ranger is offline   Reply With Quote
Old 04-22-2020, 06:27 AM   #60
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

Quote:
Originally Posted by Tone Ranger View Post
10.14.6 here, with the latest Reaper.

I wait for help by the fellows at the JS_ReaScriptAPI thread, because it is an issue of one function that I use for the drawing (JS_Composite). We don't know why it fails on some OSX systems.
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 04-22-2020, 06:35 AM   #61
vanhaze
Human being with feelings
 
vanhaze's Avatar
 
Join Date: Jul 2012
Location: Netherlands
Posts: 5,247
Default

Aha, great, thank you for informing us ! #fingerscrossed.
__________________
Macbook Pro INTEL | Reaper, always latest version | OSX Ventura | Presonus Studio 24c
My Reaper Tips&Tricks YouTube Channel: https://www.youtube.com/user/vanhaze2000/playlists
vanhaze is offline   Reply With Quote
Old 04-22-2020, 07:12 AM   #62
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

Quote:
Originally Posted by vanhaze View Post
Aha, great, thank you for informing us ! #fingerscrossed.
The scripts in post #52 don't work for you either, right?
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 04-22-2020, 07:21 AM   #63
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default

Quote:
Originally Posted by Tone Ranger View Post
Unfortunately I don't seem to get anything from either of these still. The messages pop up, but no red cross with the JS script. Not sure what I'm looking for with the second one, but I move the mouse cursor around and nothing looks any different!
If you have some time available, I would appreciate if you could try running some other scripts that draw graphics inside REAPER windows, and let me know if you see anything. Particularly:
* Sexan's Area(51) script, which draws inside the arrange window, and
* my own Multi Tool script (or MIDI Inspector), which draws inside the MIDI editor.


Has anyone else besides Tone Ranger encountered problems with these scripts?
juliansader is offline   Reply With Quote
Old 04-22-2020, 07:29 AM   #64
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

Thanks julian for coming to help!!


vanhaze did. But I don't know if he tried the two small test scripts that I posted. It would be nice if the people who encounter problems tried these two and the ones you say.
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 04-22-2020, 11:17 AM   #65
Tone Ranger
Human being with feelings
 
Tone Ranger's Avatar
 
Join Date: Jan 2019
Location: Toronto, Canada
Posts: 542
Default

Quote:
Originally Posted by juliansader View Post
If you have some time available, I would appreciate if you could try running some other scripts that draw graphics inside REAPER windows, and let me know if you see anything. Particularly:
* Sexan's Area(51) script, which draws inside the arrange window, and
* my own Multi Tool script (or MIDI Inspector), which draws inside the MIDI editor.


Has anyone else besides Tone Ranger encountered problems with these scripts?
Thanks for helping out, @juliansader! I have tried Sexan's Area 51 script several times (including just now) and haven't had any luck getting it to work. It mentioned it wasn't tested on Mac so I just wrote it off to that. I tried to find your scripts in the Actions window but couldn't? I do have ReaPack installed and have a lot of the repositories added, but for some reason nothing comes up when I search for those particular scripts! I have to admit I don't use MIDI often at all (mostly engineering/mixing here) so I may be doing something wrong LOL
Tone Ranger is offline   Reply With Quote
Old 04-22-2020, 11:52 AM   #66
vanhaze
Human being with feelings
 
vanhaze's Avatar
 
Join Date: Jul 2012
Location: Netherlands
Posts: 5,247
Default

Quote:
Originally Posted by amagalma View Post
The scripts in post #52 don't work for you either, right?
Many thanks for your ongoing support amalgama, i really appreciate it.

I just tested both scripts and they both work for me !

OSX 10.15.4, latest Reaper version.

EDIT: Well, Hooray: I also just tested your Guideline Script and it just works now ! #awesomestuff.
__________________
Macbook Pro INTEL | Reaper, always latest version | OSX Ventura | Presonus Studio 24c
My Reaper Tips&Tricks YouTube Channel: https://www.youtube.com/user/vanhaze2000/playlists

Last edited by vanhaze; 04-22-2020 at 12:21 PM.
vanhaze is offline   Reply With Quote
Old 04-22-2020, 12:02 PM   #67
todoublez
Human being with feelings
 
todoublez's Avatar
 
Join Date: Aug 2019
Location: beijing
Posts: 612
Default

hi
is it on reaPack ?
I couldn't find the script to test it out.
todoublez is offline   Reply With Quote
Old 04-22-2020, 01:54 PM   #68
Buy One
Human being with feelings
 
Buy One's Avatar
 
Join Date: Sep 2019
Posts: 1,146
Default

Quote:
Originally Posted by todoublez View Post
hi
is it on reaPack ?
I couldn't find the script to test it out.
Yes, https://github.com/ReaTeam/ReaScript...tems%20Editing
Buy One is offline   Reply With Quote
Old 04-22-2020, 02:34 PM   #69
todoublez
Human being with feelings
 
todoublez's Avatar
 
Join Date: Aug 2019
Location: beijing
Posts: 612
Default

Quote:
Originally Posted by Buy One View Post
thanx for sharing !
todoublez is offline   Reply With Quote
Old 04-23-2020, 08:23 PM   #70
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default

Quote:
Originally Posted by Tone Ranger View Post
Thanks for helping out, @juliansader! I have tried Sexan's Area 51 script several times (including just now) and haven't had any luck getting it to work. It mentioned it wasn't tested on Mac so I just wrote it off to that. I tried to find your scripts in the Actions window but couldn't? I do have ReaPack installed and have a lot of the repositories added, but for some reason nothing comes up when I search for those particular scripts! I have to admit I don't use MIDI often at all (mostly engineering/mixing here) so I may be doing something wrong LOL
The scripts of mine are for the MIDI editor, so if they are installed, they should be in the MIDI editor section of the Actions list.

I'm sorry that I can't be of more help -- unfortunately I have no idea why the script graphics aren't working on your system. Perhaps when more users start using the Guideline and Area51 scripts (I expect these scripts will become very popular), we can get more bug reports, and then we can find some commonalities between the reports.

Could you try each of the three graphics modes in Preferences -> Advanced UI/system tweaks? I am particularly interested if the "No GPU acceleration" mode can make a difference. (Note: some people have found that they need to restart REAPER before a new mode takes effect.)
juliansader is offline   Reply With Quote
Old 04-25-2020, 02:59 AM   #71
80icio
Human being with feelings
 
Join Date: Mar 2016
Location: Italy
Posts: 332
Default

Script not working for me too
Reaper 6.08
OSX 10 13 6

sws-v2.10.0.1
Js ReascriptAPI 1.002
80icio is offline   Reply With Quote
Old 04-25-2020, 03:06 AM   #72
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

Quote:
Originally Posted by 80icio View Post
Script not working for me too
Reaper 6.08
OSX 10 13 6

sws-v2.10.0.1
Js ReascriptAPI 1.002

Could you try what juliansader above recommended to try, and post if any or none of the settings solves the problem? Thanks!

Quote:
Originally Posted by juliansader View Post
Could you try each of the three graphics modes in Preferences -> Advanced UI/system tweaks? I am particularly interested if the "No GPU acceleration" mode can make a difference. (Note: some people have found that they need to restart REAPER before a new mode takes effect.)
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 04-25-2020, 03:35 AM   #73
Vagelis
Human being with feelings
 
Vagelis's Avatar
 
Join Date: Oct 2017
Location: Larisa, Greece
Posts: 3,827
Default

Hi amagalma, is there any update about showing the guideline when the midi editor is docked?
Vagelis is online now   Reply With Quote
Old 04-25-2020, 03:48 AM   #74
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

Quote:
Originally Posted by Vagelis View Post
Hi amagalma, is there any update about showing the guideline when the midi editor is docked?

Which version are you on? If you have the latest one (v1.58) it should be working!
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 04-25-2020, 07:41 AM   #75
80icio
Human being with feelings
 
Join Date: Mar 2016
Location: Italy
Posts: 332
Default

Quote:
Originally Posted by amagalma View Post
Could you try what juliansader above recommended to try, and post if any or none of the settings solves the problem? Thanks!
Ok , working with the disable optimized drawing setting
Reaper needs to be restarted




Man the script is so fckn useful!!
thanks!
Attached Images
File Type: jpg Screen Shot 2020-04-25 at 16.35.02.jpg (52.7 KB, 616 views)
80icio is offline   Reply With Quote
Old 04-25-2020, 07:53 AM   #76
Vagelis
Human being with feelings
 
Vagelis's Avatar
 
Join Date: Oct 2017
Location: Larisa, Greece
Posts: 3,827
Default

Quote:
Originally Posted by amagalma View Post
Which version are you on? If you have the latest one (v1.58) it should be working!
Ahh nice it's working I was at the previous version.
Very cool, thank you a lot!
Vagelis is online now   Reply With Quote
Old 04-25-2020, 08:13 AM   #77
Vagelis
Human being with feelings
 
Vagelis's Avatar
 
Join Date: Oct 2017
Location: Larisa, Greece
Posts: 3,827
Default

Found a bug. I think happens only when i drag the item from bottom-up.

Vagelis is online now   Reply With Quote
Old 04-25-2020, 11:47 AM   #78
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

Thanks! Fixed in v1.59
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 04-26-2020, 06:34 AM   #79
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

v1.60
- adds snap to swing grid support in Midi Editor
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 04-26-2020, 11:41 AM   #80
Buy One
Human being with feelings
 
Buy One's Avatar
 
Join Date: Sep 2019
Posts: 1,146
Default

Thank you amagalma for a very useful tool.

Would it be asking too much or asking for an impossible to implement a modifier key to temporarily disable snap on the fly? Like Shift for example.

Last edited by Buy One; 04-26-2020 at 11:50 AM.
Buy One 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:06 AM.


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