blob: 3bd21350a86ee9983ff9f973335566de3953f134 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#ifndef COMPOSER_TRACK_H_INCLUDED
#define COMPOSER_TRACK_H_INCLUDED
#include <string>
#include <vector>
#include <m_pd.h>
using std::string;
using std::vector;
class Song;
class Pattern;
class Track
{
public:
static Track *byName(string songName, string trackName);
private:
string name;
vector<Pattern *> patterns;
Song *song;
protected:
Track(Song *_song, string trackName);
public:
void print();
void addPattern(int rows, int cols, string name);
Pattern *getPattern(int n);
inline unsigned int getPatternCount() {return patterns.size();}
inline Song *getSong() {return song;}
inline const string &getName() {return name;}
};
#endif // COMPOSER_TRACK_H_INCLUDED
|