diff options
author | David Robillard <d@drobilla.net> | 2009-10-21 16:26:18 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-10-21 16:26:18 +0000 |
commit | 2c59ddede5a4b6c1b9227e2a0288561b38f0763f (patch) | |
tree | 8d564ce65cdd5a559232637d9ec66649c54de142 /libs/ardour/smf_source.cc | |
parent | 516048882c17b97d9b10985f56a0990f56ae5404 (diff) |
Fix MIDI rec regions.
git-svn-id: svn://localhost/ardour2/branches/3.0@5842 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/smf_source.cc')
-rw-r--r-- | libs/ardour/smf_source.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/ardour/smf_source.cc b/libs/ardour/smf_source.cc index 3e35e58fb9..c8b9e254fb 100644 --- a/libs/ardour/smf_source.cc +++ b/libs/ardour/smf_source.cc @@ -65,6 +65,8 @@ SMFSource::SMFSource (Session& s, const ustring& path, bool embedded, Source::Fl if (create(path)) { throw failed_constructor (); } + + _model = boost::shared_ptr<MidiModel>(new MidiModel(this)); // FIXME } /** Constructor used for existing internal-to-session files. */ @@ -87,6 +89,8 @@ SMFSource::SMFSource (Session& s, const XMLNode& node, bool must_exist) if (open(_path)) { throw failed_constructor (); } + + _model = boost::shared_ptr<MidiModel>(new MidiModel(this)); // FIXME } SMFSource::~SMFSource () |