-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTrack.cc
40 lines (35 loc) · 975 Bytes
/
Track.cc
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
35
36
37
38
39
//
// TextMIDITools Version 1.0.88
//
// textmidicgm 1.0.16
// Copyright © 2024 Thomas E. Janzen
// License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
// This is free software: you are free to change and redistribute it.
// There is NO WARRANTY, to the extent permitted by law.
//
// Track represents a single MIDI Track.
//
#include "Track.h"
using namespace std;
using namespace textmidi;
using namespace textmidi::cgm;
TicksDuration cgm::Track::the_next_time() const noexcept
{
return the_next_time_;
}
int cgm::Track::last_pitch_index() const noexcept
{
return last_pitch_index_;
}
void cgm::Track::the_last_time(const TicksDuration the_last_time) noexcept
{
the_last_time_ = the_last_time;
}
void cgm::Track::the_next_time(const TicksDuration the_next_time) noexcept
{
the_next_time_ = the_next_time;
}
void cgm::Track::last_pitch_index(const int last_pitch_index) noexcept
{
last_pitch_index_ = last_pitch_index;
}