Old 05-29-2020, 01:08 AM   #1
Buy One
Human being with feelings
 
Buy One's Avatar
 
Join Date: Sep 2019
Posts: 1,114
Default An error in the API documentation?

Here the functions are titled TrackEnvelope while targeting TakeEnvelope, is this correct?

Quote:
https://www.reaper.fm/sdk/reascript/...etTakeEnvelope

C: TrackEnvelope* GetTakeEnvelope(MediaItem_Take* take, int envidx)

EEL: TrackEnvelope GetTakeEnvelope(MediaItem_Take take, int envidx)

Lua: TrackEnvelope reaper.GetTakeEnvelope(MediaItem_Take take, integer envidx)

Python: TrackEnvelope RPR_GetTakeEnvelope(MediaItem_Take take, Int envidx)

https://www.reaper.fm/sdk/reascript/...EnvelopeByName

C: TrackEnvelope* GetTakeEnvelopeByName(MediaItem_Take* take, const char* envname)

EEL: TrackEnvelope GetTakeEnvelopeByName(MediaItem_Take take, "envname")

Lua: TrackEnvelope reaper.GetTakeEnvelopeByName(MediaItem_Take take, string envname)

Python: TrackEnvelope RPR_GetTakeEnvelopeByName(MediaItem_Take take, String envname)
In the main menu they're titled according to their purpose
Buy One is offline   Reply With Quote
Old 05-29-2020, 04:21 AM   #2
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,866
Default

I dont thi k it is a typo in the doc but rather how envelopes variable type were name initially before Take envelope etc... but yes, all envelopes functions works on every types of envelopes. Dont worry about it
X-Raym is offline   Reply With Quote
Old 05-29-2020, 05:22 AM   #3
Buy One
Human being with feelings
 
Buy One's Avatar
 
Join Date: Sep 2019
Posts: 1,114
Default

Quote:
Originally Posted by X-Raym View Post
I dont thi k it is a typo in the doc but rather how envelopes variable type were name initially before Take envelope etc... but yes, all envelopes functions works on every types of envelopes. Dont worry about it
Appreciate the info. Confusing for an uninitiated person.
Buy One 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 10:39 PM.


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