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

Reply
 
Thread Tools Display Modes
Old 06-10-2021, 10:33 PM   #241
cool
Human being with feelings
 
Join Date: Dec 2017
Location: Sunny Siberian Islands
Posts: 472
Default

v2.15
+ Now the combination Ctrl+S works when the script window is active.
+ os.execute replaced with CF_ShellExecute for better performance and Linux compatibility.
+ Added a hidden option to force Sync to be enabled every time the script is run.


Anshul999, I added an option to force Sync to turn on every time the script is run. To activate it, you need to change ForceSync = 0 to ForceSync = 1 in the code, on line 147.
cool is offline   Reply With Quote
Old 06-12-2021, 09:20 AM   #242
dsyrock
Human being with feelings
 
dsyrock's Avatar
 
Join Date: Sep 2018
Location: China
Posts: 376
Default

Hi. I have a question about the code again.
Code:
      if srate < 44100 then srate = 44100 end
      if srate > 48000 then srate = 48000 end
What is the purpose of this? What if the item's sample rate is greater than 48000?
dsyrock is offline   Reply With Quote
Old 06-12-2021, 09:53 AM   #243
cool
Human being with feelings
 
Join Date: Dec 2017
Location: Sunny Siberian Islands
Posts: 472
Default

Quote:
Originally Posted by dsyrock View Post
Hi. I have a question about the code again.
Code:
      if srate < 44100 then srate = 44100 end
      if srate > 48000 then srate = 48000 end
What is the purpose of this? What if the item's sample rate is greater than 48000?

Hi! I don't remember exactly. Either the script was too slow, or it crashed with an error on high samplerates. I do not remember.
cool 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 08:35 AM.


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