MIDI robustness.

- Separate SMF::open and SMF::create, more powerful interface for both.
- Correctly handle note ons with velocity 0 as note offs in sequence.
- Use SMF (i.e. libsmf) for MIDI import


git-svn-id: svn://localhost/ardour2/branches/3.0@4558 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2009-02-14 20:52:15 +00:00
parent b0091c899b
commit 80e54c6ea0
11 changed files with 185 additions and 92 deletions

View file

@ -65,7 +65,7 @@ SMFSource::SMFSource (Session& s, std::string path, Flag flags)
throw failed_constructor ();
}
if (open(path)) {
if (create(path)) {
throw failed_constructor ();
}