diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/scalar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scalar.c b/src/scalar.c index 37ea579..ea798eb 100644 --- a/src/scalar.c +++ b/src/scalar.c @@ -991,14 +991,14 @@ int xtract_midicent(const double *data, const int N, const void *argv, double *r note = 69 + log(f0 / 440.f) * 17.31234; note *= 100; note = round(note); + + *result = note; if (note > 12700 || note < 0) { return XTRACT_ARGUMENT_ERROR; } - *result = note; - return XTRACT_SUCCESS; } |