Old 02-04-2019, 12:15 PM   #1
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Posts: 1,628
Default There's no API function to set the swing amount in the MIDI editor?

Is this correct? There is a way to retrieve the value, but not to set it, unless I'm mistaken.
__________________
My Reascripts forum thread | My Reascripts on GitHub | Stephan R÷mer - film composer
If you wish to donate for my scripts: please consider an organization like: animal shelter, doctors without borders, UNICEF, etc...
_Stevie_ is offline   Reply With Quote
Old 02-04-2019, 04:00 PM   #2
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,438
Default

Correct.


Maybe take a look at existing script like : Script: Archie_MidiEditor; Swing grid minus one percent(MIDI editor).lua
X-Raym is offline   Reply With Quote
Old 02-04-2019, 04:02 PM   #3
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Posts: 1,628
Default

I solved it in a different way: I'm retrieving the grid settings from the MIDI editor, apply them temporarily to the project grid and restore them afterwards.

However, swing does not seem to work with BR_GetClosestGridDivision. Notes get moved to a complete different grid, not even close to a swing grid.
So, for the time being, I had to remove the swing presets from my quantize script.
__________________
My Reascripts forum thread | My Reascripts on GitHub | Stephan R÷mer - film composer
If you wish to donate for my scripts: please consider an organization like: animal shelter, doctors without borders, UNICEF, etc...
_Stevie_ is offline   Reply With Quote
Old 02-04-2019, 05:15 PM   #4
Travesty
Human being with feelings
 
Travesty's Avatar
 
Join Date: Nov 2014
Posts: 412
Default

Swing also doesn't work with "move note by grid division" annoyingly
Travesty is online now   Reply With Quote
Old 02-04-2019, 06:00 PM   #5
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Posts: 1,628
Default

You mean in one of my scripts or Reaper default actions?
__________________
My Reascripts forum thread | My Reascripts on GitHub | Stephan R÷mer - film composer
If you wish to donate for my scripts: please consider an organization like: animal shelter, doctors without borders, UNICEF, etc...
_Stevie_ is offline   Reply With Quote
Old 02-05-2019, 02:07 AM   #6
Travesty
Human being with feelings
 
Travesty's Avatar
 
Join Date: Nov 2014
Posts: 412
Default

Default
Travesty is online now   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:28 AM.


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