From: Jérémie Astor Date: Wed, 9 Sep 2020 13:37:57 +0000 (+0200) Subject: :bug: Fix UGen.op() X-Git-Tag: nightly~1362 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=a8b3192b0ef406e0d2dd76c46469148e7edd52dd;p=gwion.git :bug: Fix UGen.op() --- diff --git a/src/lib/ugen.c b/src/lib/ugen.c index 63f3584d..ff9231a1 100644 --- a/src/lib/ugen.c +++ b/src/lib/ugen.c @@ -256,7 +256,7 @@ static MFUN(ugen_channel) { } static MFUN(ugen_get_op) { - *(m_uint*)RETURN = UGEN(o)->op; + *(m_uint*)RETURN = UGEN(o)->op + 1; } ANN static void set_op(const UGen u, const uint f) { @@ -271,7 +271,7 @@ static MFUN(ugen_set_op) { const m_int i = *(m_int*)MEM(SZ_INT); if(i >= 1 && i <= 4) set_op(UGEN(o), i-1); - *(m_int*)RETURN = i; + *(m_int*)RETURN = UGEN(o)->op + 1; } static MFUN(ugen_get_last) {