Non-layered MIDI recording
authorRobin Gareus <robin@gareus.org>
Thu, 20 Jul 2017 22:39:22 +0000 (00:39 +0200)
committerRobin Gareus <robin@gareus.org>
Thu, 20 Jul 2017 22:39:22 +0000 (00:39 +0200)
This does not merge MIDI data, but trims MIDI regions at rec-stop like
non-layered audio-recording does.

libs/ardour/midi_diskstream.cc

index 79b357de711c060d09d45a84a1878dd02b5f8dca..148881bc70e3729134d49317d46fd1e8f56277f6 100644 (file)
@@ -1073,7 +1073,7 @@ MidiDiskstream::transport_stopped_wallclock (struct tm& /*when*/, time_t /*twhen
                                // cerr << "add new region, buffer position = " << buffer_position << " @ " << (*ci)->start << endl;
 
                                i_am_the_modifier++;
-                               _playlist->add_region (region, (*ci)->start + preroll_off);
+                               _playlist->add_region (region, (*ci)->start + preroll_off, 1, non_layered());
                                i_am_the_modifier--;
                        }