Go Back   Cockos Incorporated Forums > REAPER Forums > ReaScript, JSFX, REAPER Plug-in Extensions, Developer Forum

Reply
 
Thread Tools Display Modes
Old 04-02-2019, 01:07 AM   #1
deeb
Human being with feelings
 
deeb's Avatar
 
Join Date: Feb 2017
Posts: 4,812
Default what is this? P_ENV : read only, returns TrackEnvelope * in GetTrackSendInfo_Value

hi!
this written in documentation for: reaper.GetTrackSendInfo_Value(MediaTrack ...)

"P_ENV : read only, returns TrackEnvelope *, setNewValue=<VOLENV, <PANENV, etc"

because i just get a return of 0.0 which i don't know what it means.
I expected to return an TrackEnvelope!

Thank you!
deeb is offline   Reply With Quote
Old 04-02-2019, 03:43 AM   #2
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

The function according to the documentation returns just a number. However it might be also returning a handle/pointer for the envelope. 0 in that case would mean there was no appropriate envelope to return.
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
Xenakios is offline   Reply With Quote
Old 04-02-2019, 03:56 AM   #3
deeb
Human being with feelings
 
deeb's Avatar
 
Join Date: Feb 2017
Posts: 4,812
Default

Thank you xenakios! I couldn't have still and different result. Will try more later. Thanks!
deeb is offline   Reply With Quote
Old 04-02-2019, 04:01 AM   #4
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

I would actually expect it to return the text chunk state of all the envelopes, since the sends/receives can have multiple envelopes. It's quite likely the documentation has some error and the "P_ENV" isn't really even supported.
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
Xenakios is offline   Reply With Quote
Old 04-02-2019, 07:31 AM   #5
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 15,721
Default

Ah, that API is actually only usable from the C version, oops. Looking at the best way to fix, hmph.

Last edited by Justin; 04-02-2019 at 07:36 AM.
Justin is offline   Reply With Quote
Old 04-02-2019, 08:21 AM   #6
deeb
Human being with feelings
 
deeb's Avatar
 
Join Date: Feb 2017
Posts: 4,812
Default

ohhh thank you! hope for the best. Take your time!
deeb is offline   Reply With Quote
Old 04-05-2019, 06:08 AM   #7
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

Oooh...nice...
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote
Old 10-13-2019, 03:14 PM   #8
jahudka
Human being with feelings
 
Join Date: Jul 2010
Posts: 49
Default

this would be useful for me too - I'm trying to come up with a script that would toggle the visibility of all send volume envelopes for a given track - i.e. if I have some aux busses with stuff like reverbs I'd like to have a script to show all send volume envelopes for the selected aux bus - but without support for P_ENV in RPR_GetTrackSendInfo_Value it's impossible to get the appropriate send volume envelopes (or else I can't figure it out)..
jahudka is offline   Reply With Quote
Old 10-13-2019, 05:14 PM   #9
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
Default

To get a pointer to send envelopes you can also use BR_GetMediaTrackSendInfo_Envelope() available via SWS extension.
nofish 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 07:12 AM.


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