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

Reply
 
Thread Tools Display Modes
Old 03-01-2021, 01:03 PM   #121
fbeauvaisc
Human being with feelings
 
Join Date: Nov 2018
Location: Montreal
Posts: 405
Default

Quote:
Originally Posted by amagalma View Post
Any steps to reproduce the problem?
Not yet no but it happens a few time a day. It happens pretty often. I'll try to see what it is I'm doing when it happens but it seems pretty random so far or at least very hard to know for sure.

I'm currently working with it and trying to ignore it since it's at least the 3rd time it happens today.

I'm pretty sure it has something to do with the recent changes you made since nothing has changed in my setup and this is definitely a new issue.
fbeauvaisc is offline   Reply With Quote
Old 03-01-2021, 02:33 PM   #122
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

You can downgrade to a previous version through ReaPack... But if you can give me steps to reproduce then I can 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 03-01-2021, 03:19 PM   #123
fbeauvaisc
Human being with feelings
 
Join Date: Nov 2018
Location: Montreal
Posts: 405
Default

Quote:
Originally Posted by amagalma View Post
You can downgrade to a previous version through ReaPack... But if you can give me steps to reproduce then I can fix it.
Thanks, I will keep an eye out for it but it's vert hard to know exactly when it happens and why.

Maybe I'll just downgrade to make sure it's really a new issue.

Thanks,
fbeauvaisc is offline   Reply With Quote
Old 03-01-2021, 06:44 PM   #124
Kr3eM
Human being with feelings
 
Kr3eM's Avatar
 
Join Date: Apr 2019
Posts: 231
Default

Quote:
Originally Posted by amagalma View Post
You can downgrade to a previous version through ReaPack... But if you can give me steps to reproduce then I can fix it.
I can reproduce it, however it's after getting the same error as with v1.80 but different line...

I can trigger this by simply click and hold then move an midi Item... the time to trigger vary from a second to a few.

368: bad argument #1 to 'GetMediaItemInfo_Value' (MediaItem expected)

After that I have the line 'burnt' in as well until I restart.

I first thought it was something weird with
"Script: ASM [ITEM] Open item (contextual_editable) -midi in editor (and zoom) -audio properties (toggle) -subproject.lua"
..since that script throws the same error when trying to open Empty Items, but I removed that one and still got the error...

However the 1.75 version works fine.
Kr3eM is offline   Reply With Quote
Old 03-02-2021, 05:42 AM   #125
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

v1.82 : Fix crash with empty items introduced in v1.80 #2
__________________
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 03-02-2021, 06:24 AM   #126
fbeauvaisc
Human being with feelings
 
Join Date: Nov 2018
Location: Montreal
Posts: 405
Default

Quote:
Originally Posted by amagalma View Post
v1.82 : Fix crash with empty items introduced in v1.80 #2
Thanks amagalma!
fbeauvaisc is offline   Reply With Quote
Old 03-02-2021, 10:11 AM   #127
Kr3eM
Human being with feelings
 
Kr3eM's Avatar
 
Join Date: Apr 2019
Posts: 231
Default

Quote:
Originally Posted by amagalma View Post
v1.82 : Fix crash with empty items introduced in v1.80 #2
I managed to trigger another script error... feel like I'm harassing you...

372: attempt to perform arithmetic on a boolean (upvalue 'start_item_pos')

Left click and hold on Midi item, then right click while still have the left pushed down and release both buttons and move mouse.

Obviously this is not really something one would do with intent but I assume I'm not the only one that gets a bit hasty and sloppy when the workflow gets up to speed.

I did not manage to trigger it with v1.75 no matter how hard I tried.
Kr3eM is offline   Reply With Quote
Old 03-03-2021, 08:46 AM   #128
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

Yes, it's the new code that is crashing.. I'll look into this... 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 03-05-2021, 04:10 AM   #129
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

v1.84 changelog:
  • Fix crash after pressing both left and right mouse buttons at the same time
  • Maintain relative guide line position when dragging items with snap enabled
__________________
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 03-05-2021, 09:08 AM   #130
Kr3eM
Human being with feelings
 
Kr3eM's Avatar
 
Join Date: Apr 2019
Posts: 231
Default

Quote:
Originally Posted by amagalma View Post
v1.84
Thank you, so far it work great, knocking on wood
Kr3eM is offline   Reply With Quote
Old 03-08-2021, 05:03 PM   #131
Joe90
Human being with feelings
 
Join Date: Aug 2019
Posts: 853
Default

Hi Amagalma, thanks so much for this brilliant script, it's making my life easier already. However, the fact that it doesn't move freely when holding down my 'ignore snap' modifier (shift) is really throwing me off -



Reading through this thread, I see someone else already asked about this, and your response made total sense -

Quote:
Originally Posted by amagalma View Post
Thanks! Hard-coding a modifier key would render that key useless for all other actions. Do you want to trade ALL your shortcuts that use the SHIFT key?
You can toggle snap to grid in Reaper with Alt+S by default. You can change that to any other key you wish. The guide line script will follow the setting.
I don't script myself, so perhaps this isn't possible, but I'm wondering, rather than having your script take complete 'control' of the shift key, could it not just detect whenever the shift key is pressed and temporarily disable snap on the guide lines for the duration of the key press?

I understand it's not perfect as we use the shift key for other things, but assuming that most of us will have one 'ignore snap' modifier for all relevant actions, and that modifier is most likely to be the Reaper default, which is shift, I wonder if this would basically do the job for most of us?

Just a thought.

Thanks again!
Joe90 is offline   Reply With Quote
Old 03-10-2021, 01:33 AM   #132
LuCsa
Human being with feelings
 
Join Date: Aug 2016
Posts: 87
Default

Thanks this is amazing! I need to check this out - I was already wishing for guidelines in the MIDI editor! It's a pain to tinker on CC curves timed to notes that are in large vertical distance on the piano roll.....
thanks!
Lukas
LuCsa is offline   Reply With Quote
Old 04-04-2021, 08:27 PM   #133
lexaproductions
Human being with feelings
 
Join Date: Jan 2013
Posts: 1,126
Default

Hey Amagalma, would you consider adding:

reaper_js_ReaScriptAPI64ARM.dylib
to your checkup list so that this script works with M1 Apple Macs?

I added it to the script so it would work on my computer. but I thought you might wanted to add it so that anybody with an M1 Mac can use this great script you made.
lexaproductions is offline   Reply With Quote
Old 04-05-2021, 02:18 AM   #134
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

Quote:
Originally Posted by lexaproductions View Post
Hey Amagalma, would you consider adding:

reaper_js_ReaScriptAPI64ARM.dylib
to your checkup list so that this script works with M1 Apple Macs?

I added it to the script so it would work on my computer. but I thought you might wanted to add it so that anybody with an M1 Mac can use this great script you made.

Oh, thanks! Will do!
__________________
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-06-2021, 09:05 PM   #135
Egxon
Human being with feelings
 
Join Date: Feb 2021
Posts: 10
Default

Is it possible to make it possible so that when you use it on midi editor to draw notes once you left click the guide line starts to follows the inserted midi note and when changing midi note lenght the line follows along ,
Egxon is offline   Reply With Quote
Old 04-07-2021, 05:56 AM   #136
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

I'd like to make it work like that but unfortunately it is not possible (missing APIs).
__________________
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-07-2021, 06:37 AM   #137
Egxon
Human being with feelings
 
Join Date: Feb 2021
Posts: 10
Default

Quote:
Originally Posted by amagalma View Post
I'd like to make it work like that but unfortunately it is not possible (missing APIs).
It`s Ok,you did a nice job by the way thank you.
Egxon is offline   Reply With Quote
Old 09-02-2021, 06:15 AM   #138
lexaproductions
Human being with feelings
 
Join Date: Jan 2013
Posts: 1,126
Default

Hey Amagalma, Thanks again for this, it has become a part of my workflow.

Just a head's up, you might want to add
"reaper_js_ReaScriptAPI64ARM.dylib"
to the list of files in your js_api checkup routine.
lexaproductions is offline   Reply With Quote
Old 09-03-2021, 11:15 AM   #139
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

Thanks! I think I should just remove this part of code as it is not relevant any more.. I share the script with ReaPack and all who have ReaPack have JS_ReaScript installed too, isn't?
__________________
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 09-03-2021, 12:12 PM   #140
lexaproductions
Human being with feelings
 
Join Date: Jan 2013
Posts: 1,126
Default

Didn’t know we JS to have Reapack?
lexaproductions is offline   Reply With Quote
Old 09-13-2021, 08:27 PM   #141
Brookwood
Human being with feelings
 
Brookwood's Avatar
 
Join Date: May 2014
Location: Brooklyn
Posts: 52
Default

I know this is extremely vague but I've never gotten this to work at all on Windows 10. I'm just running the toggle script from the action window but nothing ever happens...
Update: I switched debug = true and the console popped up that said only 'front window active' or something innocuous like that. Went back and switched it back to false, saved and about a half hour later it just started working, but with lag and ghost guides on non-active tracks. I tried to toggle the script to get rid of the guide-y apparitions and broke it again but by God I saw a white line for a few seconds!
I'm currently using a 'playcursor follows editcursor' action to accomplish a similar result but your script is way slicker in theory.

Do you think it's conflicting with another script or something?

Last edited by Brookwood; 09-13-2021 at 09:21 PM. Reason: added update
Brookwood is offline   Reply With Quote
Old 09-14-2021, 12:56 AM   #142
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

Could you try it on a fresh portable install? If it works there, then try it on your installation, but make sure no other scripts are running. (run action 41898 "ReaScript: Close all running ReaScripts" first)
__________________
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 02-24-2022, 06:54 PM   #143
lexaproductions
Human being with feelings
 
Join Date: Jan 2013
Posts: 1,126
Default

Hey Amagalma,
Was wondering if you could consider implementing "Temporary grid disable"
While hitting the "CMD" key on Mac, the cursor actions are ignoring snapping in the arrange window. It would be nice to have the guide line follow that behavior.

What do you think?
lexaproductions is offline   Reply With Quote
Old 02-26-2022, 09:43 AM   #144
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

I'll consider 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 02-26-2022, 10:35 AM   #145
lexaproductions
Human being with feelings
 
Join Date: Jan 2013
Posts: 1,126
Default

lexaproductions is offline   Reply With Quote
Old 09-10-2022, 03:04 AM   #146
asidd
Human being with feelings
 
Join Date: Sep 2022
Posts: 110
Default

this is AWESOME, thank you!

Is there a possibility that this can track both in the Arrange view and the Piano Roll view simultaneously? As in being able to put your cursor at the beginning of a midi note and have the guide pinpoint it in the Arrange view?

Last edited by asidd; 09-13-2022 at 12:49 PM. Reason: fixed
asidd is offline   Reply With Quote
Old 09-14-2022, 07:27 PM   #147
concaocao
Human being with feelings
 
Join Date: Jan 2020
Posts: 25
Default

For MIDI Editor, you can run this lua script (Horizontal) together with amagalma script (Vertical) to generate a cross-hair guide (similar to Cubase)

https://stash.reaper.fm/v/39012/CCC_...MIDIEditor.lua

I also modified the amagalma's script to extend the vertical line across all visible items (audio/midi) to suit my needs, useful for me to align/map the peak of the wave forms with the Midi notes

https://stash.reaper.fm/45300/CCC_VerticalGuideLine.lua

Last edited by concaocao; 09-14-2022 at 07:50 PM.
concaocao is offline   Reply With Quote
Old 09-15-2022, 05:21 PM   #148
asidd
Human being with feelings
 
Join Date: Sep 2022
Posts: 110
Default

hey concaocao, I may have misunderstood, but the VerticalGuideLine script isn't showing the guide line on both the Midi editor and Arrange view at the same time. That's what I was hoping for, but that may not have been the intention of the script.
asidd is offline   Reply With Quote
Old 04-08-2023, 01:05 AM   #149
Wojtek Stecyszyn
Human being with feelings
 
Wojtek Stecyszyn's Avatar
 
Join Date: Mar 2023
Location: Poland
Posts: 35
Default

Thank you. I was missing this line

Works great, only one thing is bothering me.
During playback the guide line leaves its print each time I move mouse. Stays visible until I swipe them with mouse, move focus, change zoom, or stop playback.
Is this normal?

__________________
My music:
https://wojciechstecyszyn.bandcamp.com/

Last edited by Wojtek Stecyszyn; 06-27-2023 at 09:52 PM.
Wojtek Stecyszyn is offline   Reply With Quote
Old 06-27-2023, 09:53 PM   #150
Wojtek Stecyszyn
Human being with feelings
 
Wojtek Stecyszyn's Avatar
 
Join Date: Mar 2023
Location: Poland
Posts: 35
Default

Hi
One more little thing
Is it possible to make it visible also when hovering the cursor over the ruler?
__________________
My music:
https://wojciechstecyszyn.bandcamp.com/
Wojtek Stecyszyn is offline   Reply With Quote
Old 06-28-2023, 09:25 PM   #151
concaocao
Human being with feelings
 
Join Date: Jan 2020
Posts: 25
Default

Quote:
Originally Posted by asidd View Post
hey concaocao, I may have misunderstood, but the VerticalGuideLine script isn't showing the guide line on both the Midi editor and Arrange view at the same time. That's what I was hoping for, but that may not have been the intention of the script.
The intention of my Vertical line is for Arrange view so that when viewing all tracks (Audio + Midi) I could see where the peak (beat) lines up with the actual midi notes from midi tracks. (eg. to see a peak of a bass audio track line up with a Kick of the MIDI track).

NOTE: the V-line only works when in IDLE (Stop/pause) mode because it needs constant redrawing when tracks moving in PLAY/REC mode

In MIDI view, I use amagalma's original vertical script

I set all these to start at the project start script.
concaocao is offline   Reply With Quote
Old 06-29-2023, 01:42 AM   #152
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,451
Default

Quote:
Originally Posted by concaocao View Post
I also modified the amagalma's script to extend the vertical line across all visible items (audio/midi) to suit my needs, useful for me to align/map the peak of the wave forms with the Midi notes

https://stash.reaper.fm/45300/CCC_VerticalGuideLine.lua

There is no need for such a script. Use my script amagalma_Toggle guide line size between full arrange or item height
__________________
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 06-29-2023, 06:55 AM   #153
namastemooji
Human being with feelings
 
Join Date: Jun 2023
Posts: 2
Default Thank you.

How do I set the width of the line?
Looking forward to your reply!
namastemooji is offline   Reply With Quote
Old 06-29-2023, 07:20 AM   #154
namastemooji
Human being with feelings
 
Join Date: Jun 2023
Posts: 2
Default Thank you.

How do I set the width of the line?
Looking forward to your reply!
namastemooji is offline   Reply With Quote
Old 10-25-2023, 06:35 AM   #155
fbeauvaisc
Human being with feelings
 
Join Date: Nov 2018
Location: Montreal
Posts: 405
Default

Hey guys!

For some reason, this script stopped working for me in Reaper 7. I imported all my configs and theme from version 6.

Anyone else is having this issue?

I just can't see the line anymore.

Thanks,

Edit/Update : Nevermind, it works...
fbeauvaisc is offline   Reply With Quote
Old 10-25-2023, 09:01 AM   #156
lexaproductions
Human being with feelings
 
Join Date: Jan 2013
Posts: 1,126
Default

Works for me in
7.01+dev1020
lexaproductions is offline   Reply With Quote
Old 10-25-2023, 09:03 AM   #157
fbeauvaisc
Human being with feelings
 
Join Date: Nov 2018
Location: Montreal
Posts: 405
Default

Quote:
Originally Posted by lexaproductions View Post
Works for me in
7.01+dev1020
Yes it does, must have missed something or did not restart. Sorry...
fbeauvaisc is offline   Reply With Quote
Old 03-13-2024, 12:06 PM   #158
DaniloVillanova
Human being with feelings
 
Join Date: Jan 2019
Posts: 245
Default

Cool script! Full size version not working here. Reaper 7.11 W10.

EDIT: All is working well! I thought the guide went through the whole screen, but it shows over the items. Thanks!
DaniloVillanova 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 01:32 AM.


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