comparison layer/NoteLayer.cpp @ 1522:d5ef91dc2ea7

Merge from branch time-frequency-boxes
author Chris Cannam
date Wed, 25 Sep 2019 13:48:04 +0100
parents 0fa49a6ce64f
children 37df1530519d
comparison
equal deleted inserted replaced
1510:872873aa6463 1522:d5ef91dc2ea7
1060 if (!model) return false; 1060 if (!model) return false;
1061 1061
1062 Event note(0); 1062 Event note(0);
1063 if (!getPointToDrag(v, e->x(), e->y(), note)) return false; 1063 if (!getPointToDrag(v, e->x(), e->y(), note)) return false;
1064 1064
1065 // Event note = *points.begin();
1066
1067 ItemEditDialog *dialog = new ItemEditDialog 1065 ItemEditDialog *dialog = new ItemEditDialog
1068 (model->getSampleRate(), 1066 (model->getSampleRate(),
1069 ItemEditDialog::ShowTime | 1067 ItemEditDialog::ShowTime |
1070 ItemEditDialog::ShowDuration | 1068 ItemEditDialog::ShowDuration |
1071 ItemEditDialog::ShowValue | 1069 ItemEditDialog::ShowValue |
1070 ItemEditDialog::ShowLevel |
1072 ItemEditDialog::ShowText, 1071 ItemEditDialog::ShowText,
1073 getScaleUnits()); 1072 getScaleUnits());
1074 1073
1075 dialog->setFrameTime(note.getFrame()); 1074 dialog->setFrameTime(note.getFrame());
1076 dialog->setValue(note.getValue()); 1075 dialog->setValue(note.getValue());