comparison layer/FlexiNoteLayer.cpp @ 773:8c2dfb4d6c7a tonioni

fixed: pitch track update deleted note * fixed in FlexiNoteLayer::snapSelectedNotesToPitchTrack
author matthiasm
date Wed, 21 May 2014 18:34:10 +0100
parents 6388ddae6ce3
children a6b87176b259
comparison
equal deleted inserted replaced
764:6388ddae6ce3 773:8c2dfb4d6c7a
1349 if (!s.contains(note.frame) && 1349 if (!s.contains(note.frame) &&
1350 !s.contains(note.frame + note.duration - 1)) { 1350 !s.contains(note.frame + note.duration - 1)) {
1351 continue; 1351 continue;
1352 } 1352 }
1353 1353
1354 cerr << "snapSelectedNotesToPitchTrack: making new note" << endl;
1354 FlexiNote newNote(note); 1355 FlexiNote newNote(note);
1355 1356
1356 command->deletePoint(note); 1357 command->deletePoint(note);
1357 1358
1359 updateNoteValue(v, newNote);
1360 command->addPoint(newNote);
1358 1361
1359 } 1362 }
1360 1363
1361 finish(command); 1364 finish(command);
1362 } 1365 }