mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-01 03:17:39 +01:00
merge 12436:12607 from svn+ssh://ardoursvn@subversion.ardour.org/ardour2/branches/3.0
git-svn-id: svn://localhost/ardour2/branches/3.0-SG@12608 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
6ef90ffe5c
commit
f228d2c68e
86 changed files with 6512 additions and 4626 deletions
|
|
@ -31,6 +31,11 @@ NotePlayer::NotePlayer (boost::shared_ptr<MidiTrack> mt)
|
|||
{
|
||||
}
|
||||
|
||||
NotePlayer::~NotePlayer ()
|
||||
{
|
||||
clear ();
|
||||
}
|
||||
|
||||
void
|
||||
NotePlayer::add (boost::shared_ptr<NoteType> note)
|
||||
{
|
||||
|
|
@ -45,11 +50,17 @@ NotePlayer::clear ()
|
|||
}
|
||||
|
||||
void
|
||||
NotePlayer::play ()
|
||||
NotePlayer::on ()
|
||||
{
|
||||
for (Notes::iterator n = notes.begin(); n != notes.end(); ++n) {
|
||||
track->write_immediate_event ((*n)->on_event().size(), (*n)->on_event().buffer());
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
NotePlayer::play ()
|
||||
{
|
||||
on ();
|
||||
|
||||
/* note: if there is more than 1 note, we will silence them all at the same time
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue