provide missing implementations for MidiTrack key API

This commit is contained in:
Paul Davis 2021-11-08 15:18:13 -07:00
parent 1555896d8e
commit 9f76d688fd
2 changed files with 19 additions and 1 deletions

View File

@ -148,7 +148,7 @@ public:
MusicalKey const & key() const { return _key; }
void set_key (MusicalKey const & key);
bool enforce_key ();
bool enforce_key () const;
void set_enforce_key (bool yn);
protected:

View File

@ -122,6 +122,24 @@ MidiTrack::init ()
return 0;
}
void
MidiTrack::set_enforce_key (bool yn)
{
_enforce_key = yn;
}
bool
MidiTrack::enforce_key () const
{
return _enforce_key;
}
void
MidiTrack::set_key (MusicalKey const & k)
{
_key = k;
}
void
MidiTrack::data_recorded (boost::weak_ptr<MidiSource> src)
{