Mercurial > hg > sonic-visualiser
diff main/MainWindow.cpp @ 2226:a4dde0f408e4 single-point
Further single-point API updates
author | Chris Cannam |
---|---|
date | Tue, 19 Mar 2019 13:07:20 +0000 |
parents | b0e8217719ed |
children | ca0ee1fe88c7 |
line wrap: on
line diff
--- a/main/MainWindow.cpp Fri Mar 15 14:29:22 2019 +0000 +++ b/main/MainWindow.cpp Tue Mar 19 13:07:20 2019 +0000 @@ -4653,11 +4653,8 @@ SparseTimeValueModel *tvm = dynamic_cast<SparseTimeValueModel *>(model); if (tvm) { - SparseTimeValueModel::Point point(frame, - float(ev.getPitch() % 12), - ""); - SparseTimeValueModel::AddPointCommand *command = - new SparseTimeValueModel::AddPointCommand + Event point(frame, float(ev.getPitch() % 12), ""); + AddEventCommand *command = new AddEventCommand (tvm, point, tr("Add Point")); CommandHistory::getInstance()->addCommand(command); }