View Single Post
Old 04-20-2014, 05:53 AM   #97
Breeder
Human being with feelings
 
Breeder's Avatar
 
Join Date: Nov 2010
Location: Croatia
Posts: 1,928
Default

Quote:
Originally Posted by Argitoth View Post
I just want to reiterate this... if i could access the master play rate envelope, I could turn REAPER into an offline tuner... I really need this for sample libraries. There's currently no tuner available for sample library developers in 2014, it's ridiculous. Reaper is one small step away from becoming the first tuner made for sample libraries.
Code:
track_ptr = RPR_CSurf_TrackFromID(0,0)                          # Get master track pointer
env_ptr = RPR_GetTrackEnvelopeByName( track_ptr, 'Playrate' )   # Get envelope pointer
env_state = RPR_GetSetEnvelopeState(env_ptr, "", 4*1024*1024)   # Get envelope data

RPR_ShowConsoleMsg(env_state)
Of course, this will only work if playrate envelope already exists.
Breeder is offline   Reply With Quote