[apps/sequence] Specialize sequence go to parameter controller to round

the given abscissa and forbid negative values

Change-Id: Iaae39e575c0e2de4993a558e234717a839905872
This commit is contained in:
Émilie Feral
2017-03-30 16:36:52 +02:00
parent e76cab75c1
commit 5facbfb8ac
11 changed files with 57 additions and 12 deletions

View File

@@ -0,0 +1,13 @@
#include "go_to_parameter_controller.h"
#include "../app.h"
#include <assert.h>
namespace Sequence {
bool GoToParameterController::setParameterAtIndex(int parameterIndex, float f) {
assert(parameterIndex == 0);
return Shared::FunctionGoToParameterController::setParameterAtIndex(parameterIndex, roundf(f));
}
}