RPR CSurf OnMuteChange

From CockosWiki

(Difference between revisions)
Jump to: navigation, search
(Examples)
 
(5 intermediate revisions not shown)
Line 1: Line 1:
 +
{{API_Doc_Header}}
=CSurf_OnMuteChange()=
=CSurf_OnMuteChange()=
'''bool CSurf_OnMuteChange(MediaTrack* trackid, int mute)'''
'''bool CSurf_OnMuteChange(MediaTrack* trackid, int mute)'''
 +
{{CSurfIntroduction}}
==Parameters==
==Parameters==
  MediaTrack* trackid,
  MediaTrack* trackid,
Line 8: Line 10:
  bool  
  bool  
==Examples==
==Examples==
 +
===C++===
 +
<source lang=cpp>
 +
</source>
===Perl===
===Perl===
-
<pre>
+
<source lang=perl>
-
</pre>
+
</source>
===Python===
===Python===
-
<pre>
+
<source lang=python>
-
</pre>
+
</source>
 +
 
==See Also==
==See Also==
-
{{SeeAlsoCSurfFunctions}}
+
{{SeeAlso_csurf}}
 +
 
 +
''(Section automatically generated, edits may be overwritten.)''
 +
 
==Stuff==
==Stuff==
{{API_Doc_Footer}}
{{API_Doc_Footer}}
Line 22: Line 31:
[[Category:Perl]]
[[Category:Perl]]
[[Category:Python]]
[[Category:Python]]
 +
[[Category:ReaPerl]]
 +
[[Category:ReaPython]]

Latest revision as of 11:50, 28 January 2010

Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR CSurf OnMuteChange
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR CSurf OnMuteChange

Contents

CSurf_OnMuteChange()

bool CSurf_OnMuteChange(MediaTrack* trackid, int mute)


This is a short summary of the available Control Surface functions, it is included in each CSurf function page.

Function Type Example(s) Description
“On” CSurf_OnPlay, CSurf_OnStop Called from the plugin in response to a h/w event. e.g. The user presses the physical Play button on the control surface and CSurf_OnPlay() is called by the plugin to set REAPER playing the current project
“Set”, “Get” CSurf_SetSurfaceRecArm Called by the plugin to to set the state of a track inside reaper (mute it, solo it etc.)
Utility CSurf_TrackFromID, CSurf_TrackToID, Not triggered by a h/w or REAPER event but used within the plugin. e.g. To translate between REAPER and h/w track indexes.
Other

CSurf_ScrubAmt, CSurf_ResetAllCachedVolPanStates

MIDI CreateMIDIInput, CreateMIDIOutput Functions to create objects which control MIDI devices, including control surfaces.

REAPER calls a control surface through the IReaperControlSurface interface (defined in reaper_plugin.h) which a plugin has to register on startup. The function names of this interface are very similar to the CSurf_* functions, they just work the other way round (from REAPER to the plugin).


Parameters

MediaTrack* trackid,
int mute

Returns

bool 

Examples

C++

 

Perl

 

Python

 

See Also

csurf: CSurf_FlushUndo, CSurf_GetTouchState, CSurf_GoEnd, CSurf_GoStart, CSurf_NumTracks, CSurf_OnArrow, CSurf_OnFXChange, CSurf_OnFwd, CSurf_OnMuteChange, CSurf_OnPanChange, CSurf_OnPanChangeEx, CSurf_OnPlay, CSurf_OnRecArmChange, CSurf_OnRecord, CSurf_OnRew, CSurf_OnSelectedChange, CSurf_OnSoloChange, CSurf_OnStop, CSurf_OnTrackSelection, CSurf_OnVolumeChange, CSurf_OnVolumeChangeEx, CSurf_ResetAllCachedVolPanStates, CSurf_ScrubAmt, CSurf_SetAutoMode, CSurf_SetPlayState, CSurf_SetRepeatState, CSurf_SetSurfaceMute, CSurf_SetSurfacePan, CSurf_SetSurfaceRecArm, CSurf_SetSurfaceSelected, CSurf_SetSurfaceSolo, CSurf_SetSurfaceVolume, CSurf_SetTrackListChange, CSurf_TrackFromID, CSurf_TrackToID,

(Section automatically generated, edits may be overwritten.)

Stuff

Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR CSurf OnMuteChange
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR CSurf OnMuteChange

Personal tools