void
MidiSource::session_saved()
{
+ /* this writes a copy of the data to disk.
+ XXX do we need to do this every time?
+ */
+
flush_midi();
+ cerr << name() << " @ " << this << " length at save = " << _length_beats << endl;
+
+#if 0 // old style: clone the source if necessary on every session save
+ // and switch to the new source
if (_model && _model->edited()) {
+ cerr << "Model exists and is edited\n";
+
boost::shared_ptr<MidiSource> newsrc = clone ();
if (newsrc) {
Switched (newsrc); /* EMIT SIGNAL */
}
}
+#endif
}
void