Files
Upsilon/apps/sequence/graph/go_to_parameter_controller.cpp
Émilie Feral 5facbfb8ac [apps/sequence] Specialize sequence go to parameter controller to round
the given abscissa and forbid negative values

Change-Id: Iaae39e575c0e2de4993a558e234717a839905872
2017-03-30 16:43:28 +02:00

14 lines
319 B
C++

#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));
}
}