Old 08-06-2018, 08:38 AM   #1
timothys_monster
Human being with feelings
 
timothys_monster's Avatar
 
Join Date: Jan 2012
Location: Germany
Posts: 1,133
Default v5.95pre2 - August 6 2018

v5.95pre2 - August 6 2018
  • + API: CSURF_EXT_SETFXCHANGE adds flags=(INT_PTR)parm2, &1=rec fx
  • + API: add TakeFX_/TrackFX_ CopyTo Track/Take
  • + API: add TrackFX/TakeFX _Delete()
  • + API: add TrackFX/TakeFX_ Set/Get Offline
  • + API: improve SetOnlyTrackSelected() to set last touched state and support inactive projects [t=209697]
  • + API: notify CSURF_EXT_SETFXCHANGE on FX paste
  • + API: prevent undefined behavior with GetSetMediaTrackInfo_String()/GetSetMediaItemTakeInfo_String() on non-string values
  • + API: update documentation for various Get.._Value() functions to include pointers that are gettable
  • + MIDI recording: fix preview display offset in record input mode after tempo changes [t=209595]
Changelog - Pre-Releases

Generated by X-Raym's REAPER ChangeLog to BBCode
timothys_monster is offline   Reply With Quote
Old 08-06-2018, 09:04 AM   #2
leighhunt
Human being with feelings
 
Join Date: Jun 2016
Location: London, UK
Posts: 51
Default

Quote:
Originally Posted by timothys_monster View Post
v5.95pre2 - August 6 2018
  • + API: CSURF_EXT_SETFXCHANGE adds flags=(INT_PTR)parm2, &1=rec fx
  • + API: add TakeFX_/TrackFX_ CopyTo Track/Take
  • + API: add TrackFX/TakeFX _Delete()
  • + API: add TrackFX/TakeFX_ Set/Get Offline
  • + API: improve SetOnlyTrackSelected() to set last touched state and support inactive projects [t=209697]
  • + API: notify CSURF_EXT_SETFXCHANGE on FX paste
  • + API: prevent undefined behavior with GetSetMediaTrackInfo_String()/GetSetMediaItemTakeInfo_String() on non-string values
  • + API: update documentation for various Get.._Value() functions to include pointers that are gettable
  • + MIDI recording: fix preview display offset in record input mode after tempo changes [t=209595]
Changelog - Pre-Releases

Generated by X-Raym's REAPER ChangeLog to BBCode
ooo, the api is getting some attention. super!
leighhunt is offline   Reply With Quote
Old 08-06-2018, 09:17 AM   #3
mpl
Human being with feelings
 
mpl's Avatar
 
Join Date: Oct 2013
Location: Moscow, Russia
Posts: 3,984
Default

Much thanks for API updates, Justin.
Seems it is time to modify couple scripts I made.
mpl is offline   Reply With Quote
Old 08-06-2018, 09:24 AM   #4
FnA
Human being with feelings
 
FnA's Avatar
 
Join Date: Jun 2012
Posts: 2,173
Default

Quote:
Originally Posted by timothys_monster View Post
v5.95pre2 - August 6 2018[*]+ API: improve SetOnlyTrackSelected() to set last touched state and support inactive projects [t=209697]
A function to set last touched track would be good. (Maybe an action: set track under mouse as last touched track ( does not affect selection) would be nicer for non script users). You could then do away with prefs that select track on mouse click in arrange and have a limited number of clicks that prepare for pasting items on the clicked track. I think the current workaround requires save track selection, select track under mouse, set first selected track as last touched track, restore track selection. It doesn't play nice with auto arm. That probably applies to the script in the link in the quote too.
FnA is offline   Reply With Quote
Old 08-06-2018, 10:53 AM   #5
Thonex
Human being with feelings
 
Join Date: May 2018
Location: Los Angeles
Posts: 1,721
Default

Hi Justin et al,

I was advised to post this here... as you may be able to include this feature? The original FR thread is here.

Being able to change the state of the Toolbar Icon ("arming the button") as if we Right-Clicked on it (for example to change the mouse behavior like a mouse tool).

To be able to do what I did in this video without having to actually click on the Icon... just use a short cut:



Thanks.


And Lokasenna had some thoughts...

Quote:
Originally Posted by Lokasenna View Post
Just to offer a more concrete FR:

Quote:
bool retval = reaper.ArmAction(int actionid, int mode)

mode: 0 to arm, 1 to disarm, 2 to toggle maybe?

retval: True if it found the action on a toolbar and was able to arm it, false if it didn't or it couldn't.

Note that it definitely should not arm the action if it doesn't appear on a toolbar somewhere (maybe even a visible toolbar, just to be sure).
__________________
Cheers... Andrew K
Reaper v6.80+dev0621 - June 21 2023 • Catalina • Mac Mini 2020 6 core i7 • 64GB RAM • OS: Catalina • 4K monitor • RME RayDAT card with Sync Card and extended Light Pipe.
Thonex is offline   Reply With Quote
Old 08-06-2018, 12:02 PM   #6
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
Default

Yes, please Justin, if you'd find the time to include this... would kick ass!
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is offline   Reply With Quote
Old 08-06-2018, 03:09 PM   #7
FnA
Human being with feelings
 
FnA's Avatar
 
Join Date: Jun 2012
Posts: 2,173
Default

Missing newline or something in the docs (win7 x64). Getting some of these kinds of things:

Code:
F_MCP_SENDRGN_SCALE : float * : scale of send area as proportion of the fx+send total area (0=min allow, 1=max)P_PARTRACK : MediaTrack * : parent track (read-only)


I can't get any of the "P_PROJECT", "P_PARTRACK", etc things to give anything but 0.0.

Last edited by FnA; 08-06-2018 at 07:13 PM.
FnA is offline   Reply With Quote
Old 08-07-2018, 02:44 AM   #8
lb0
Human being with feelings
 
Join Date: Apr 2014
Posts: 4,175
Default

Quote:
Originally Posted by timothys_monster View Post
  • + API: add TakeFX_/TrackFX_ CopyTo Track/Take
  • + API: add TrackFX/TakeFX _Delete()
  • + API: add TrackFX/TakeFX_ Set/Get Offline
Perfect - especially the first one - thanks Justin.
__________________
Projects - Reascripts - Lua:
Smart Knobs 2 | LBX Stripper | LBX Floating FX Positioner
Donate via Paypal | LBX Tools Website
lb0 is offline   Reply With Quote
Old 08-07-2018, 03:36 AM   #9
ovnis
Human being with feelings
 
ovnis's Avatar
 
Join Date: Oct 2011
Posts: 2,924
Default

Hi,

Is it solve this issue ?

https://forum.cockos.com/showthread.php?t=205279

Last edited by ovnis; 08-07-2018 at 03:42 AM.
ovnis is offline   Reply With Quote
Old 08-07-2018, 07:54 AM   #10
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,108
Default

Thanks for the API additions.

Quote:
add TrackFX/TakeFX_ Set/Get Offline
replaces my SWS equivalents (in current SWS pre)

and I think

Quote:
add TakeFX_/TrackFX_ CopyTo Track/Take
add TrackFX/TakeFX _Delete()
replaces SNM_MoveOrRemoveTrackFX() (as from the decription for 'CopyToTrack/Take' it can also be used to move (reorder) FX on the same track).


If wanted, I could put a note in SWS API docs that these are deprecated now (when 5.95 goes official) and native versions should be used instead ?

Last edited by nofish; 08-07-2018 at 08:02 AM.
nofish is offline   Reply With Quote
Old 08-07-2018, 10:21 AM   #11
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,629
Default

Cool, new API-stuff

Is there a chance for an implementation of getting/setting ProjectStateChunks, as in my FR?
https://forum.cockos.com/showthread....69#post2020169

Maybe into GetSetObjectState and GetSetObjectState2?
Meo-Ada Mespotine is offline   Reply With Quote
Old 08-07-2018, 10:26 AM   #12
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
Default

I concur! Spread the API-love
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ 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 12:03 PM.


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