RPR CountTracks

From CockosWiki

(Difference between revisions)
Jump to: navigation, search
()
(int RPR_CountTracks(ReaProject* proj))
Line 1: Line 1:
{{API_Doc_Header}}
{{API_Doc_Header}}
-
=int RPR_CountTracks(ReaProject* proj)=
+
=RPR_CountTracks()=
 +
int RPR_CountTracks(ReaProject* proj)
 +
 
Counts the number of tracks in the specified project.
Counts the number of tracks in the specified project.
==Parameters==
==Parameters==

Revision as of 09:02, 2 November 2009

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

ShowConsoleMsg

Stuff

Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR CountTracks
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR CountTracks

Personal tools