mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[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:
13
apps/sequence/graph/go_to_parameter_controller.cpp
Normal file
13
apps/sequence/graph/go_to_parameter_controller.cpp
Normal 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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user