|
|
|
12-05-2021, 09:33 AM
|
#1
|
Human being with feelings
Join Date: Oct 2013
Location: Moscow, Russia
Posts: 3,960
|
API: GeStuffByGUID / GetStuffGUID
There are a bunch of 3rd party functions (or just plain coded snippets) for getting pointers` GUID or pointers by GUID. However, they all uses chunking which is hell slow in various cases. I would replace SWS functions written by Breeder (and my ones) to a native function allowing to get GUID directly from memory, also get a pointer from given GUID.
so here we go:
GetTrackGUID(track) - exists
GetTrackbyGUID(project, GUID)
TrackFX_GetFXGUID( track, fx ) / TakeFX_GetFXGUID( take, fx ) - exists
track_ptr, fx_id, take_ptr,take_fxid = GetFXbyGUID(project, GUID)
GetMediaItemTakeGUID(take) - recently added
GetMediaItemTakeByGUID( project, GUID ) - exists
GetMediaItemGUID(item) - recently added
GetMediaItemByGUID( project, GUID )
GetMediaItemTakePoolGUID(take)
Last edited by mpl; 09-18-2022 at 03:21 AM.
|
|
|
08-10-2022, 11:32 PM
|
#2
|
Human being with feelings
Join Date: Oct 2013
Location: Moscow, Russia
Posts: 3,960
|
still valid request, so bump here
|
|
|
08-15-2022, 07:36 AM
|
#3
|
Human being with feelings
Join Date: Sep 2019
Posts: 1,134
|
Quote:
Originally Posted by mpl
GetMediaItemTakeGUID(take)
GetMediaItemGUID(item)
|
Do these native functions
Code:
reaper.GetSetMediaItemTakeInfo_String(take, 'GUID', '', false)
reaper.GetSetMediaItemInfo_String(item, 'GUID', '', false)
use chunks to get the GUID?
Last edited by Buy One; 08-15-2022 at 11:37 PM.
|
|
|
09-18-2022, 03:21 AM
|
#4
|
Human being with feelings
Join Date: Oct 2013
Location: Moscow, Russia
Posts: 3,960
|
Quote:
Originally Posted by Buy One
Do these native functions
Code:
reaper.GetSetMediaItemTakeInfo_String(take, 'GUID', '', false)
reaper.GetSetMediaItemInfo_String(item, 'GUID', '', false)
use chunks to get the GUID?
|
Aha that was relatively recently added, changed post a bit, thanks
Afaik all API functions take all the data directly from memory, thats why they working fast.
|
|
|
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 10:19 AM.
|