|
|
|
06-12-2019, 11:19 PM
|
#681
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 4,598
|
ok then using screentoclient prior top bot would solve thiss issue?
I need to setup osx immediatly....
|
|
|
06-13-2019, 07:14 AM
|
#682
|
Human being with feelings
Join Date: Jul 2009
Posts: 3,714
|
ScreenToClient will work, but is most useful if you eventually need to draw into the window's client area, in which case you will need the client coordinates (which are always relative to the top left corner, even on OSX).
However, for simple comparisons, you can perhaps just take the inverse:
Code:
OSX = reaper.GetOS():match("OSX")
...
if OSX then mouse.y = -mouse.y end
...
local _, _, top, _, bottom = reaper.JS_Window_GetRect(window)
if OSX then top, bottom = -top, -bottom end
|
|
|
06-13-2019, 03:27 PM
|
#683
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
|
Sexan, just wanted to report back, that AS51 is working pretty great so far.
I still see a lot of flickering though, when a selection is made. Not sure if this can be improved. Othewrwise, it's just marvelous!
|
|
|
06-13-2019, 03:54 PM
|
#684
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 4,598
|
hm..... i do not have any flicker until its drawing like 100ghost or something like that... is the project clean/empty? you have some other scripts runnnig can you lice cap it at 60fps?
tommorrow I will push new update with more fixes,some new stuff and hopefully osx fix
|
|
|
06-13-2019, 04:17 PM
|
#685
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
|
I just tried to LICEcap it, but it's not working. Even not with 60 fps. I might do a mobile phone video, if you want.
But what I found out:
Yes, I am running some additional scripts in the dockers, namely:
Track Inspector, Reaticulate and LBX Smart Knobs. However, terminating them
doesn't improve it at all.
But you know, what does? Hiding all the dockers via "View: Show docker".
Could it be that the docker are interefering here?
EDIT: sending you a pm with the video. Apparently hiding the dockers doesn't help. It seems that issue is intermittend.
Last edited by _Stevie_; 06-13-2019 at 04:30 PM.
|
|
|
06-13-2019, 05:12 PM
|
#686
|
Human being with feelings
Join Date: Dec 2017
Posts: 302
|
Quote:
Originally Posted by _Stevie_
I just tried to LICEcap it, but it's not working. Even not with 60 fps. I might do a mobile phone video, if you want.
|
Maybe try on a clean portable install of reaper only with sws and JS_API?
|
|
|
06-13-2019, 05:19 PM
|
#687
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
|
What I mean is: even with LICEcap @60 fps you can't see the flickering.
But I'm trying a portable install to check if the flickering is gone there.
EDIT: the portable install has less flickering, but it's still there.
Last edited by _Stevie_; 06-13-2019 at 05:29 PM.
|
|
|
06-13-2019, 11:21 PM
|
#688
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 4,598
|
Try turning off tooltips in preferences and check again. I had some drawing/redrawing issues when they are on because it makes drawing hang for some reason. Script has a lot of optimiziation and checking so drawing is only happening if there are x,y changes in the project. Drawing last AS freezes all other AS. There is also room for a little improvements
|
|
|
06-14-2019, 07:14 AM
|
#689
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
|
Just tried that, didn't really help.
Well, it's a bit distracting, but not terrible. I don't want to keep
you off from the more important things in the script.
It's just something that I noticed.
|
|
|
06-14-2019, 10:08 AM
|
#690
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 4,598
|
But I don't know what is causing it... thats whats bothering me... can you send me your template or something?
At my end its "perfect", I took special care of drawing at the beginning of the coding to resolve any issues so it must be something else.... script itself does not draw anything if not needed, so something else is interfering with drawing.
It also happens when reaper wants to redraw something
Last edited by Sexan; 06-14-2019 at 10:13 AM.
|
|
|
06-14-2019, 11:52 AM
|
#692
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 4,598
|
nop, nothing, draws normal... whats your cpu usage when drawing (should be 0-0.3%)?
|
|
|
06-14-2019, 01:00 PM
|
#693
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
|
Man, I think I just found out what it is. When the screen is covered with tracks and items (e.g. no "unused space" is visible at the bottom of the project), there are no visible redraws at all! But when you zoom out all the tracks, so that this empty area at the bottom appears, the script acts flickery.
Does that help you in some way? I can make a video if needed.
|
|
|
06-14-2019, 01:41 PM
|
#694
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 4,598
|
please do!
|
|
|
06-14-2019, 01:53 PM
|
#695
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
|
Okay here you go:
https://www.dropbox.com/s/6h1wmu08mw...ering.mov?dl=0
EDIT: to mention your previous question: CPU usage was around 0.3 - 0.5 %.
So, I think everything is okay on that side.
|
|
|
06-14-2019, 02:24 PM
|
#696
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 4,598
|
For the love of god I cannot reproduce that, I made like 100 tracks 1000 items...midi...wav...mp3...this....that...scroll left, right, top, bot, empty here empty there.... nothing. I even zoomed in at the point I can see reapers arrange code...
Will find out whats causing that, will take a while unfortunately.
Can you zoom step by step and see when EXACTLY that happens?
Is it when certain item hits the right side of the screen or all of them?
Can you see if you have 1 item across the whole project will then happen?
Last edited by Sexan; 06-14-2019 at 02:30 PM.
|
|
|
06-14-2019, 02:33 PM
|
#697
|
Human being with feelings
Join Date: Dec 2017
Posts: 302
|
Maybe it`s problem with video gpu card? On my wife's computer, the reaper behaves sluggy for example. But Area51 is not flickering on any computer. Tried to test it like _Stevie_ now too.
|
|
|
06-14-2019, 02:36 PM
|
#698
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 4,598
|
AFAIK reaper is CPU only for rendering graphics
|
|
|
06-14-2019, 02:37 PM
|
#699
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
|
@Sexan, will check that and report back!
It's a mystery to me, really...
@nappies: GPU, hmm, could be. It's like 3 years old:
Radeon RX460 with 2GB and 3 screens attached.
The CPU is fairly new, since my old computer broke some weeks ago.
9900X @3,5 GHz and 128GB of RAM.
|
|
|
06-14-2019, 02:41 PM
|
#700
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 4,598
|
If you can reproduce it with something minimal it would be great (few tracks,only one/two types of items etc)
The problem is drawing has nothing to do whats on screen, it does not matter which tracks which items you have. Because when initial AS is created its only drawing from the coordinates from mouse and tracks. The AS info is gathered AFTER the AS is drawn and mouse is up.
What could it be is some of that tracks,items redraws something and hangs AS(51) so you see flicker.
One REALLY stupid question... can you try that on reaper Default Theme?
Anyway zones are almost ready (not hello kitty ones ) so next update will have lots of stuff
|
|
|
06-14-2019, 03:10 PM
|
#701
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
|
Quote:
Originally Posted by Sexan
Can you zoom step by step and see when EXACTLY that happens?
Is it when certain item hits the right side of the screen or all of them?
Can you see if you have 1 item across the whole project will then happen?
|
It doesn't happen all of a sudden. The flickering is creeping in, when the unused space get's more.
Yes, it also happens with a single item across the whole project.
|
|
|
06-14-2019, 03:13 PM
|
#702
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 4,598
|
hm.... is your power plan high performance?
|
|
|
06-14-2019, 03:15 PM
|
#703
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
|
Quote:
Originally Posted by Sexan
If you can reproduce it with something minimal it would be great (few tracks,only one/two types of items etc)
The problem is drawing has nothing to do whats on screen, it does not matter which tracks which items you have. Because when initial AS is created its only drawing from the coordinates from mouse and tracks. The AS info is gathered AFTER the AS is drawn and mouse is up.
What could it be is some of that tracks,items redraws something and hangs AS(51) so you see flicker.
One REALLY stupid question... can you try that on reaper Default Theme?
Anyway zones are almost ready (not hello kitty ones ) so next update will have lots of stuff
|
Okay, will try to create a very simple scenario! But I somehow fear it has to do with my config. Does the script already work on OSX? I could cross test it on my Mac.
Just checked, It's the same with the default theme.
|
|
|
06-14-2019, 03:16 PM
|
#704
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
|
Quote:
Originally Posted by Sexan
hm.... is your power plan high performance?
|
Nope, high performance. C states are deactivated in BIOS and CPU always clocks with 3.5GHz.
|
|
|
06-14-2019, 03:33 PM
|
#705
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 4,598
|
No I did not upload yet hopefully fix for osx since I'm in the middle of coding 4 different things. Tomorrow will be live
|
|
|
06-14-2019, 03:34 PM
|
#706
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
|
All good man. I will try the script on my other PC, as well and try to set up a minimal project that will cause/solve the issue.
|
|
|
06-15-2019, 01:40 PM
|
#707
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 4,598
|
Few more bugs to fix.......add cursors....!!!!!!
Drag copy also will come with this
|
|
|
06-15-2019, 01:48 PM
|
#708
|
Human being with feelings
Join Date: Dec 2017
Posts: 302
|
It'amazing Sexan!!!
|
|
|
06-15-2019, 01:55 PM
|
#709
|
Human being with feelings
Join Date: Nov 2013
Location: IKEA
Posts: 2,779
|
™
__________________
_Ohh.))::_Linux_::((.Xoxo_
|
|
|
06-15-2019, 09:03 PM
|
#710
|
Human being with feelings
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
|
|
|
|
06-15-2019, 11:10 PM
|
#711
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 4,598
|
I just hope they can help me out with that issue I've reported with SetMouseModifier so I don't need to invent some weird code to do similar with extreme hacking around. That is the last thing I need to adjust so the script interacts with reaper in most pleasent way
|
|
|
06-16-2019, 04:01 AM
|
#712
|
Human being with feelings
Join Date: Dec 2017
Posts: 302
|
Quote:
Originally Posted by Sexan
I just hope they can help me out with that issue I've reported with SetMouseModifier so I don't need to invent some weird code to do similar with extreme hacking around. That is the last thing I need to adjust so the script interacts with reaper in most pleasent way
|
Sexan, I saw what you wrote in the bugreport about mouse modifiers . It can be replaced with JS_WindowMessage_Intercept.
|
|
|
06-16-2019, 04:43 AM
|
#713
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 4,598
|
I know but then it intercepts all mouse events.Did not yet figured out how to count how long the mouse is pressed while intercepted so I can release the intercept on mouse up
|
|
|
06-17-2019, 05:40 AM
|
#714
|
Human being with feelings
Join Date: Dec 2017
Posts: 302
|
Sexan,
Not exactly, this JS_WindowMessage_Intercept intercepts commands in window. This does not affect on JS_Mouse_GetState. You can simply disable WM_LBUTTONDOWN when the mouse pointer is over the required part of the item(Before pressing button). Instead of switching the modifier on the fly. And in another zone, enable WM_LBUTTONDOWN.
Use this command to disable
reaper.JS_WindowMessage_Intercept(arrangewindow, "WM_LBUTTONDOWN", false)
And this to enable
reaper.JS_WindowMessage_PassThrough(arrangewindow, "WM_LBUTTONDOWN", false)
|
|
|
06-17-2019, 06:41 AM
|
#715
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 4,598
|
Oh cool! thank you very much!
Next update will be pretty big regarding new stuff:
Zones (almost finished)
Interacting with reaper via this intercept and other magical stuff
AS collision detection (prevent dragging one AS into another, or any mixing of AS)
Lots of fixes
Last edited by Sexan; 06-17-2019 at 06:50 AM.
|
|
|
06-20-2019, 08:13 AM
|
#716
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 4,598
|
Now its possible to copy envelope to track that does not have any.
Also improved offset code to allow copying/moving stuff below last track (before it was not possible to paste track UNDER last track).
Things took longer than expected, since it was required to modify other functions to get it working (and also fixed many many many bugs and misbehaviors), need to polish few more things and hope to release is very soon
and one so its not forgotten
Last edited by Sexan; 06-20-2019 at 08:20 AM.
|
|
|
06-20-2019, 08:44 AM
|
#717
|
Human being with feelings
Join Date: Dec 2015
Posts: 30
|
I still havent been able to run this script. Getting this now:
Area_51_class.lua:7: unexpected symbol near '<'
|
|
|
06-23-2019, 08:56 AM
|
#718
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 4,598
|
Still did not find the solution, same issue even with reaper.JS_WindowMessage_Intercept.
It responds only after second mouse click, just like modifiers
Code:
local reaper_cursors = {
{187,"MOVE"}, -- MOVE
{185,"DRAW"}, -- DRAW
{417,"EDGE L"}, -- LEFT EDGE
{418,"EDGE R"}, -- RIGHT EDGE
{184,"FADE L"}, -- FADE RIGHT
{105,"FADE R"}, -- FADE LEFT
}
function project_mouse_info()
local cur_cursor = reaper.JS_Mouse_GetCursor()
for i = 1, #reaper_cursors do
local cursor = reaper.JS_Mouse_LoadCursor( reaper_cursors[i][1] )
if cur_cursor == cursor then
return reaper_cursors[i][2]
end
end
end
local detail = project_mouse_info()
if detail == "EDGE L" or detail == "EDGE R" then
reaper.JS_WindowMessage_Intercept(track_window, "WM_LBUTTONDOWN", false)
elseif not mouse.detail then
reaper.JS_WindowMessage_PassThrough(track_window, "WM_LBUTTONDOWN", false)
end
Anyone has some ideas?Am I doing something wrong?
|
|
|
06-23-2019, 09:02 AM
|
#719
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
Quote:
Originally Posted by jangoux
I still havent been able to run this script. Getting this now:
Area_51_class.lua:7: unexpected symbol near '<'
|
That error usually means you downloaded it as HTML (a web page) rather than a Lua script - if memory serves, Safari is particularly frustrating for doing this.
|
|
|
06-23-2019, 12:42 PM
|
#720
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
|
Yeah, very annoying. But to be honest, it is Github that is failing miserably here. They should just provide a simple file download. Instead, I always have to download the whole archive as zip. Huge misconception in design...
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 12:21 AM.
|