Fx parameters value string
Closed this issue · 2 comments
betov75 commented
Hi!
Is it possible to retrieve the value string of a parameter?
I can get the name, the value float but the plugin also sends a string with a textual value. For example,. BBC SO Vst Expression parameter's value string is 0-100%. Some others are in 'Hz', etc..
Thanks!
Levitanus commented
import reapy as rpr
pr = rpr.Project()
track = pr.selected_tracks[0]
fx = track.fxs[0]
param = fx.params['Wet']
print(param.formatted)
betov75 commented
That's perfect.
Thank you very much for your quick reply!
Have a great day.
Le sam. 27 nov. 2021 à 12:16, Timofey Kazantsev ***@***.***>
a écrit :
… import reapy as rprfrom reapy import reascript_api as RPR
pr = rpr.Project()track = pr.selected_tracks[0]fx = track.fxs[0]param = fx.params['Threshold']
(retval, _, _, _, bufOut, _) = RPR.TrackFX_GetFormattedParamValue(
track.id, fx.index, param.index, 'bufOut', 2048
)print(retval, bufOut)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#125 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACZ7PJ7ZTF7TD6VODRZXZOLUOEG5JANCNFSM5I4LJJ7A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.