RPR CountTracks
From CockosWiki
Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR CountTracks
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR CountTracks
Contents |
RPR_CountTracks()
int RPR_CountTracks(ReaProject* proj)
Counts the number of tracks in the specified project.
Parameters
proj, the specified project, 0 for the current project
Returns
integer, the number of tracks in the specified project.
Examples
Perl
# # CountTracks.pl # use strict; use warnings; my $num_tracks = RPR_CountTracks(0); RPR_ShowConsoleMsg("There are $num_tracks tracks in the current project");
Python
See Also
AddMediaItemToTrack, BypassFxAllTracks, CountSelectedTracks, CountTracks, CountTrackMediaItems, DeleteTrack, DeleteTrackMediaItem, EnumTrackMIDIProgramNames, EnumTrackMIDIProgramNamesEx, GetLastTouchedTrack, GetMediaItem_Track, GetMediaItemTake_Track, GetMediaTrackInfo_Value, GetMediaItem_Track, GetMediaItemTake_Track, GetMediaTrackInfo_Value, GetNumTracks, GetSelectedTrack, GetSelectedTrackEnvelope, GetSetMediaTrackInfo_String, GetTrack, GetTrackAutomationMode, GetTrackGUID, GetTrackInfo, GetTrackMediaItem, GetTrackMIDINoteName, GetTrackMIDINoteNameEx, GetTrackNumMediaItems, GetTrackUIVolPan, GetTrackState, HasTrackMIDIPrograms, HasTrackMIDIProgramsEx, InsertTrackAtIndex, MoveMediaItemToTrack, MuteAllTracks, PlayTrackPreview, PlayTrackPreview2, SetTrackAutomationMode, SetTrackMIDINoteName, SetTrackMIDINoteNameEx, SetTrackSelected, SoloAllTracks, StopTrackPreview, StopTrackPreview2, Track_GetPeakInfo, TrackFX_FormatParamValue, TrackFX_GetCount, TrackFX_GetFXName, TrackFX_GetNumParams, TrackFX_GetParam, TrackFX_GetParamName, TrackFX_SetParam, TrackList_AdjustWindows, TrackList_UpdateAllExternalSurfaces
Stuff
Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR CountTracks
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR CountTracks