Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Bug Reports

Reply
 
Thread Tools Display Modes
Old 05-31-2022, 08:59 AM   #1
souk21
Human being with feelings
 
souk21's Avatar
 
Join Date: Mar 2021
Posts: 538
Default Glitch when setting time selection end to a huge number



From Lua, if time selection end is set to a value greater than 301694800961371615 (yes it's precise haha) you can observe visual glitch while scrolling.

Code:
reaper.GetSet_LoopTimeRange2(0, true, false, 10, 301694800961371615, false) -- Works
reaper.GetSet_LoopTimeRange2(0, true, false, 10, 301694800961371616, false) -- Glitch
PS: what is special about 301694800961371615? I tried to google it, but there are no results

Edit: (I'm using OSX 12.3 and reaper 6.59)

Last edited by souk21; 05-31-2022 at 09:25 AM. Reason: Added info
souk21 is offline   Reply With Quote
Old 05-31-2022, 03:27 PM   #2
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 15,998
Default

overflowing a 64-bit integer with that number of seconds * pixels-per-second... fixing
Justin is offline   Reply With Quote
Old 06-01-2022, 04:51 AM   #3
souk21
Human being with feelings
 
souk21's Avatar
 
Join Date: Mar 2021
Posts: 538
Default

Quote:
Originally Posted by Justin View Post
overflowing a 64-bit integer with that number of seconds * pixels-per-second... fixing
Makes sense! Thank you for the quick answer and fix

(It's definitely gonna help all the people who have projects spanning more than 95 666 793 centuries )
souk21 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 03:48 AM.


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