comparison layer/FlexiNoteLayer.cpp @ 803:5d2966b7c201 tony_integration

Merge from default branch
author Chris Cannam
date Tue, 17 Jun 2014 12:55:10 +0100
parents a6b87176b259
children 3a52b458fcd5 1d526ba11a24
comparison
equal deleted inserted replaced
770:734ee80286c3 803:5d2966b7c201
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
1358 1359 if (updateNoteValue(v, newNote)) {
1360 command->addPoint(newNote);
1361 }
1359 } 1362 }
1360 1363
1361 finish(command); 1364 finish(command);
1362 } 1365 }
1363 1366