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: 2,327
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 online now   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: 7,914
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.
__________________
For info on SWS Reaper extension plugin (including Xenakios' previous extension/actions) :
http://www.sws-extension.org/
https://github.com/Jeff0S/sws
--
Xenakios blog (about HourGlass, Paul(X)Stretch and λ) :
http://xenakios.wordpress.com/
Xenakios is online now   Reply With Quote
Old 04-02-2019, 03:56 AM   #3
deeb
Human being with feelings
 
deeb's Avatar
 
Join Date: Feb 2017
Posts: 2,327
Default

Thank you xenakios! I couldn't have still and different result. Will try more later. Thanks!
deeb is online now   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: 7,914
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.
__________________
For info on SWS Reaper extension plugin (including Xenakios' previous extension/actions) :
http://www.sws-extension.org/
https://github.com/Jeff0S/sws
--
Xenakios blog (about HourGlass, Paul(X)Stretch and λ) :
http://xenakios.wordpress.com/
Xenakios is online now   Reply With Quote
Old 04-02-2019, 07:31 AM   #5
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 12,430
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: 2,327
Default

ohhh thank you! hope for the best. Take your time!
deeb is online now   Reply With Quote
Old 04-05-2019, 06:08 AM   #7
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 1,555
Default

Oooh...nice...
__________________
Ultraschall-API - a Lua-functions-library4Reaper: https://forum.cockos.com/showthread....98#post2067798
Reaper Internals - Developerdocs4Reaper: https://forum.cockos.com/showthread.php?t=207635
mespotine is offline   Reply With Quote
Old 10-13-2019, 03:14 PM   #8
jahudka
Human being with feelings
 
Join Date: Jul 2010
Posts: 36
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: 9,044
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 05:17 AM.


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