RPR TrackFX SetParam
From CockosWiki
Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR TrackFX SetParam
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR TrackFX SetParam
Contents |
TrackFX_SetParam()
bool TrackFX_SetParam(MediaTrack* tr, int fx, int param, double val)
Parameters
MediaTrack* tr, int fx, int param, double val
Returns
bool
Examples
C++
Perl
Python
numTracks = RPR_CountSelectedTracks(0) for TrIndex in range(0,numTracks - 1): tr = RPR_GetSelectedTrack(0,TrIndex) rc = RPR_TrackFX_GetFXName(tr, 0, "", 64) plugname = rc[3] #RPR_ShowConsoleMsg(plugname+'\n') if "JS: IX/Mixer_8xM-1xS" in plugname: # set volumes in ix mixer to rising values for x in range(0,8): basevolume=-48 + 48.0 / (numTracks - 1) * TrIndex paramval = basevolume + 24.0 / 7 * x RPR_TrackFX_SetParam(tr, 0, x, paramval); # set pans to decreasing values for x in range(0,8): panval=1.0 - 1.0 / 7*x RPR_TrackFX_SetParam(tr, 0, x + 8, panval);
See Also
track: GetLastTouchedTrack, GetMediaItemTake_Track, GetMediaItem_Track, GetMediaTrackInfo_Value, GetNumTracks, GetSelectedTrack, GetSelectedTrackEnvelope, GetSetMediaTrackInfo_String, GetSetTrackState, GetTrack, GetTrackAutomationMode, GetTrackEnvelope, GetTrackEnvelopeByName, GetTrackGUID, GetTrackMIDINoteName, GetTrackMIDINoteNameEx, GetTrackMediaItem, GetTrackNumMediaItems, GetTrackState, GetTrackUIVolPan, HasTrackMIDIPrograms, HasTrackMIDIProgramsEx, InsertTrackAtIndex, MoveMediaItemToTrack, MuteAllTracks, PlayTrackPreview, PlayTrackPreview2, SetMediaTrackInfo_Value, SetTrackAutomationMode, SetTrackMIDINoteName, SetTrackMIDINoteNameEx, SetTrackSelected, SoloAllTracks, StopTrackPreview, StopTrackPreview2, TrackFX_FormatParamValue, TrackFX_GetCount, TrackFX_GetFXName, TrackFX_GetNumParams, TrackFX_GetParam, TrackFX_GetParamName, TrackFX_SetParam, TrackList_AdjustWindows, TrackList_UpdateAllExternalSurfaces, Track_GetPeakInfo, AddMediaItemToTrack, BypassFxAllTracks, CSurf_NumTracks, CSurf_OnTrackSelection, CSurf_SetTrackListChange, CSurf_TrackFromID, CSurf_TrackToID, CountSelectedTracks, CountTrackEnvelopes, CountTrackMediaItems, CountTracks, DeleteTrack, DeleteTrackMediaItem, EnumTrackMIDIProgramNames, EnumTrackMIDIProgramNamesEx,
fx: PluginWantsAlwaysRunFx, TrackFX_FormatParamValue, TrackFX_GetCount, TrackFX_GetFXName, TrackFX_GetNumParams, TrackFX_GetParam, TrackFX_GetParamName, TrackFX_SetParam, BypassFxAllTracks, CSurf_OnFXChange,
(Section automatically generated, edits may be overwritten.)
Stuff
Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR TrackFX SetParam
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR TrackFX SetParam