Files
Upsilon/apps/sequence/graph/go_to_parameter_controller.cpp
Émilie Feral f0a776a670 [apps] Operations in double when precision required
Change-Id: I7168a861a76178f0bf81841e9378f7399f67914a
2017-08-17 09:31:53 +02:00

15 lines
341 B
C++

#include "go_to_parameter_controller.h"
#include "../app.h"
#include <assert.h>
#include <cmath>
namespace Sequence {
bool GoToParameterController::setParameterAtIndex(int parameterIndex, double f) {
assert(parameterIndex == 0);
return Shared::FunctionGoToParameterController::setParameterAtIndex(parameterIndex, std::round(f));
}
}