Mercurial > hg > svcore
comparison data/fileio/MIDIFileReader.cpp @ 1812:8a06e16948d7
Create target model without extents (we now have two separate constructors for this, the second one creates a model with extents even if both are zero)
author | Chris Cannam |
---|---|
date | Wed, 08 Jan 2020 15:26:28 +0000 |
parents | 513192aa9b03 |
children |
comparison
equal
deleted
inserted
replaced
1811:796ae7eecced | 1812:8a06e16948d7 |
---|---|
932 SVDEBUG << "WARNING: MIDIFileReader::loadTrack: Existing model given, but it isn't a NoteModel -- ignoring it" << endl; | 932 SVDEBUG << "WARNING: MIDIFileReader::loadTrack: Existing model given, but it isn't a NoteModel -- ignoring it" << endl; |
933 } | 933 } |
934 } | 934 } |
935 | 935 |
936 if (!model) { | 936 if (!model) { |
937 model = new NoteModel(m_mainModelSampleRate, 1, 0.0, 0.0, false); | 937 model = new NoteModel(m_mainModelSampleRate, 1, false); |
938 model->setValueQuantization(1.0); | 938 model->setValueQuantization(1.0); |
939 model->setObjectName(QFileInfo(m_path).fileName()); | 939 model->setObjectName(QFileInfo(m_path).fileName()); |
940 } | 940 } |
941 | 941 |
942 const MIDITrack &track = m_midiComposition.find(trackToLoad)->second; | 942 const MIDITrack &track = m_midiComposition.find(trackToLoad)->second; |