From 14dcc3f0170f8c723bcef0a59562adce0e8e7596 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 14 Oct 2007 05:45:31 +0000 Subject: Fix displaying of notes in auto-created MIDI region when it's the first region in the track. Fix crash after recording long phrases of MIDI. Fix MIDI looping (kinda). Add note-off exposure to MidiModel::iterator. Fix first-note-is-stuck-note problem. Fix resolving long notes while recording. Fix several other things I forget now. MIDI works pretty well..... git-svn-id: svn://localhost/ardour2/trunk@2555 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/source_factory.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libs/ardour/source_factory.cc') diff --git a/libs/ardour/source_factory.cc b/libs/ardour/source_factory.cc index d07b9d6d69..3a657bc0e2 100644 --- a/libs/ardour/source_factory.cc +++ b/libs/ardour/source_factory.cc @@ -169,8 +169,10 @@ SourceFactory::create (Session& s, const XMLNode& node, bool defer_peaks) #endif } else if (type == DataType::MIDI) { - - boost::shared_ptr ret (new SMFSource (s, node)); + boost::shared_ptr ret (new SMFSource (s, node)); + + SourceCreated (ret); + return ret; } return boost::shared_ptr(); -- cgit v1.2.3