synthio: simplify block logic a bit by converting from float just once
This commit is contained in:
parent
4901bdceb7
commit
c435c469f4
@ -553,9 +553,9 @@ mp_float_t synthio_block_slot_get(synthio_block_slot_t *slot) {
|
||||
return MICROPY_FLOAT_CONST(0.);
|
||||
}
|
||||
|
||||
mp_float_t value;
|
||||
if (mp_obj_get_float_maybe(slot->obj, &value)) {
|
||||
return value;
|
||||
// all numbers previously converted to float in synthio_block_assign_slot
|
||||
if (mp_obj_is_float(slot->obj)) {
|
||||
return mp_obj_get_float(slot->obj);
|
||||
}
|
||||
|
||||
synthio_block_base_t *block = MP_OBJ_TO_PTR(slot->obj);
|
||||
@ -564,9 +564,10 @@ mp_float_t synthio_block_slot_get(synthio_block_slot_t *slot) {
|
||||
}
|
||||
|
||||
block->last_tick = synthio_global_tick;
|
||||
// previously verified by call to mp_proto_get
|
||||
// previously verified by call to mp_proto_get in synthio_block_assign_slot
|
||||
const synthio_block_proto_t *p = mp_type_get_protocol_slot(mp_obj_get_type(slot->obj));
|
||||
block->value = value = p->tick(slot->obj);
|
||||
mp_float_t value = p->tick(slot->obj);
|
||||
block->value = value;
|
||||
return value;
|
||||
}
|
||||
|
||||
@ -597,5 +598,8 @@ void synthio_block_assign_slot(mp_obj_t obj, synthio_block_slot_t *slot, qstr ar
|
||||
mp_raise_TypeError_varg(translate("%q must be of type %q, not %q"), arg_name, MP_QSTR_BlockInput, mp_obj_get_type_qstr(obj));
|
||||
}
|
||||
|
||||
slot->obj = obj;
|
||||
slot->obj = mp_obj_new_float(value);
|
||||
}
|
||||
bool synthio_obj_is_block(mp_obj_t obj) {
|
||||
return mp_proto_get(MP_QSTR_synthio_block, obj);
|
||||
}
|
||||
|
@ -56,3 +56,4 @@ int32_t synthio_block_slot_get_scaled(synthio_block_slot_t *block_slot, mp_float
|
||||
|
||||
// Assign an object (which may be a float or a synthio_block_obj_t) to an block slot
|
||||
void synthio_block_assign_slot(mp_obj_t obj, synthio_block_slot_t *block_slot, qstr arg_name);
|
||||
bool synthio_obj_is_block(mp_obj_t obj);
|
||||
|
@ -1,10 +1,10 @@
|
||||
()
|
||||
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
||||
(Note(frequency=830.6076004423605, panning=0, amplitude=1, bend=0, waveform=None, envelope=None, filter=True, ring_frequency=0.0, ring_bend=0, ring_waveform=None),)
|
||||
(Note(frequency=830.6076004423605, panning=0.0, amplitude=1.0, bend=0.0, waveform=None, envelope=None, filter=True, ring_frequency=0.0, ring_bend=0.0, ring_waveform=None),)
|
||||
[-16383, -16383, -16383, -16383, 16382, 16382, 16382, 16382, 16382, -16383, -16383, -16383, -16383, -16383, 16382, 16382, 16382, 16382, 16382, -16383, -16383, -16383, -16383, -16383]
|
||||
(Note(frequency=830.6076004423605, panning=0, amplitude=1, bend=0, waveform=None, envelope=None, filter=True, ring_frequency=0.0, ring_bend=0, ring_waveform=None), Note(frequency=830.6076004423605, panning=0, amplitude=1, bend=0, waveform=None, envelope=None, filter=True, ring_frequency=0.0, ring_bend=0, ring_waveform=None))
|
||||
(Note(frequency=830.6076004423605, panning=0.0, amplitude=1.0, bend=0.0, waveform=None, envelope=None, filter=True, ring_frequency=0.0, ring_bend=0.0, ring_waveform=None), Note(frequency=830.6076004423605, panning=0.0, amplitude=1.0, bend=0.0, waveform=None, envelope=None, filter=True, ring_frequency=0.0, ring_bend=0.0, ring_waveform=None))
|
||||
[-1, -1, -1, -1, -1, -1, -1, -1, 28045, -1, -1, -1, -1, -28046, -1, -1, -1, -1, 28045, -1, -1, -1, -1, -28046]
|
||||
(Note(frequency=830.6076004423605, panning=0, amplitude=1, bend=0, waveform=None, envelope=None, filter=True, ring_frequency=0.0, ring_bend=0, ring_waveform=None),)
|
||||
(Note(frequency=830.6076004423605, panning=0.0, amplitude=1.0, bend=0.0, waveform=None, envelope=None, filter=True, ring_frequency=0.0, ring_bend=0.0, ring_waveform=None),)
|
||||
[-1, -1, -1, 28045, -1, -1, -1, -1, -1, -1, -1, -1, 28045, -1, -1, -1, -1, -28046, -1, -1, -1, -1, 28045, -1]
|
||||
(-5242, 5241)
|
||||
(-10484, 10484)
|
||||
|
@ -1,203 +1,203 @@
|
||||
synthio.MathOperation.SUM Math(operation=synthio.MathOperation.SUM, a=-1, b=4, c=9)
|
||||
synthio.MathOperation.SUM Math(operation=synthio.MathOperation.SUM, a=-1.0, b=4.0, c=9.0)
|
||||
(12.0,)
|
||||
synthio.MathOperation.ADD_SUB Math(operation=synthio.MathOperation.ADD_SUB, a=-1, b=4, c=9)
|
||||
synthio.MathOperation.ADD_SUB Math(operation=synthio.MathOperation.ADD_SUB, a=-1.0, b=4.0, c=9.0)
|
||||
(-6.0,)
|
||||
synthio.MathOperation.PRODUCT Math(operation=synthio.MathOperation.PRODUCT, a=-1, b=4, c=9)
|
||||
synthio.MathOperation.PRODUCT Math(operation=synthio.MathOperation.PRODUCT, a=-1.0, b=4.0, c=9.0)
|
||||
(-36.0,)
|
||||
synthio.MathOperation.MUL_DIV Math(operation=synthio.MathOperation.MUL_DIV, a=-1, b=4, c=9)
|
||||
synthio.MathOperation.MUL_DIV Math(operation=synthio.MathOperation.MUL_DIV, a=-1.0, b=4.0, c=9.0)
|
||||
(-0.4444444444444445,)
|
||||
synthio.MathOperation.SCALE_OFFSET Math(operation=synthio.MathOperation.SCALE_OFFSET, a=-1, b=4, c=9)
|
||||
synthio.MathOperation.SCALE_OFFSET Math(operation=synthio.MathOperation.SCALE_OFFSET, a=-1.0, b=4.0, c=9.0)
|
||||
(5.0,)
|
||||
synthio.MathOperation.OFFSET_SCALE Math(operation=synthio.MathOperation.OFFSET_SCALE, a=-1, b=4, c=9)
|
||||
synthio.MathOperation.OFFSET_SCALE Math(operation=synthio.MathOperation.OFFSET_SCALE, a=-1.0, b=4.0, c=9.0)
|
||||
(27.0,)
|
||||
synthio.MathOperation.LERP Math(operation=synthio.MathOperation.LERP, a=-1, b=4, c=9)
|
||||
synthio.MathOperation.LERP Math(operation=synthio.MathOperation.LERP, a=-1.0, b=4.0, c=9.0)
|
||||
(44.0,)
|
||||
synthio.MathOperation.CONSTRAINED_LERP Math(operation=synthio.MathOperation.CONSTRAINED_LERP, a=-1, b=4, c=9)
|
||||
synthio.MathOperation.CONSTRAINED_LERP Math(operation=synthio.MathOperation.CONSTRAINED_LERP, a=-1.0, b=4.0, c=9.0)
|
||||
(4.0,)
|
||||
synthio.MathOperation.DIV_ADD Math(operation=synthio.MathOperation.DIV_ADD, a=-1, b=4, c=9)
|
||||
synthio.MathOperation.DIV_ADD Math(operation=synthio.MathOperation.DIV_ADD, a=-1.0, b=4.0, c=9.0)
|
||||
(8.75,)
|
||||
synthio.MathOperation.ADD_DIV Math(operation=synthio.MathOperation.ADD_DIV, a=-1, b=4, c=9)
|
||||
synthio.MathOperation.ADD_DIV Math(operation=synthio.MathOperation.ADD_DIV, a=-1.0, b=4.0, c=9.0)
|
||||
(0.3333333333333333,)
|
||||
synthio.MathOperation.MID Math(operation=synthio.MathOperation.MID, a=-1, b=4, c=9)
|
||||
synthio.MathOperation.MID Math(operation=synthio.MathOperation.MID, a=-1.0, b=4.0, c=9.0)
|
||||
(4.0,)
|
||||
synthio.MathOperation.MAX Math(operation=synthio.MathOperation.MAX, a=-1, b=4, c=9)
|
||||
synthio.MathOperation.MAX Math(operation=synthio.MathOperation.MAX, a=-1.0, b=4.0, c=9.0)
|
||||
(9.0,)
|
||||
synthio.MathOperation.MIN Math(operation=synthio.MathOperation.MIN, a=-1, b=4, c=9)
|
||||
synthio.MathOperation.MIN Math(operation=synthio.MathOperation.MIN, a=-1.0, b=4.0, c=9.0)
|
||||
(-1.0,)
|
||||
synthio.MathOperation.ABS Math(operation=synthio.MathOperation.ABS, a=-1, b=4, c=9)
|
||||
synthio.MathOperation.ABS Math(operation=synthio.MathOperation.ABS, a=-1.0, b=4.0, c=9.0)
|
||||
(1.0,)
|
||||
|
||||
synthio.MathOperation.SUM Math(operation=synthio.MathOperation.SUM, a=4, b=-1, c=9)
|
||||
synthio.MathOperation.SUM Math(operation=synthio.MathOperation.SUM, a=4.0, b=-1.0, c=9.0)
|
||||
(12.0,)
|
||||
synthio.MathOperation.ADD_SUB Math(operation=synthio.MathOperation.ADD_SUB, a=4, b=-1, c=9)
|
||||
synthio.MathOperation.ADD_SUB Math(operation=synthio.MathOperation.ADD_SUB, a=4.0, b=-1.0, c=9.0)
|
||||
(-6.0,)
|
||||
synthio.MathOperation.PRODUCT Math(operation=synthio.MathOperation.PRODUCT, a=4, b=-1, c=9)
|
||||
synthio.MathOperation.PRODUCT Math(operation=synthio.MathOperation.PRODUCT, a=4.0, b=-1.0, c=9.0)
|
||||
(-36.0,)
|
||||
synthio.MathOperation.MUL_DIV Math(operation=synthio.MathOperation.MUL_DIV, a=4, b=-1, c=9)
|
||||
synthio.MathOperation.MUL_DIV Math(operation=synthio.MathOperation.MUL_DIV, a=4.0, b=-1.0, c=9.0)
|
||||
(-0.4444444444444445,)
|
||||
synthio.MathOperation.SCALE_OFFSET Math(operation=synthio.MathOperation.SCALE_OFFSET, a=4, b=-1, c=9)
|
||||
synthio.MathOperation.SCALE_OFFSET Math(operation=synthio.MathOperation.SCALE_OFFSET, a=4.0, b=-1.0, c=9.0)
|
||||
(5.0,)
|
||||
synthio.MathOperation.OFFSET_SCALE Math(operation=synthio.MathOperation.OFFSET_SCALE, a=4, b=-1, c=9)
|
||||
synthio.MathOperation.OFFSET_SCALE Math(operation=synthio.MathOperation.OFFSET_SCALE, a=4.0, b=-1.0, c=9.0)
|
||||
(27.0,)
|
||||
synthio.MathOperation.LERP Math(operation=synthio.MathOperation.LERP, a=4, b=-1, c=9)
|
||||
synthio.MathOperation.LERP Math(operation=synthio.MathOperation.LERP, a=4.0, b=-1.0, c=9.0)
|
||||
(-41.0,)
|
||||
synthio.MathOperation.CONSTRAINED_LERP Math(operation=synthio.MathOperation.CONSTRAINED_LERP, a=4, b=-1, c=9)
|
||||
synthio.MathOperation.CONSTRAINED_LERP Math(operation=synthio.MathOperation.CONSTRAINED_LERP, a=4.0, b=-1.0, c=9.0)
|
||||
(-1.0,)
|
||||
synthio.MathOperation.DIV_ADD Math(operation=synthio.MathOperation.DIV_ADD, a=4, b=-1, c=9)
|
||||
synthio.MathOperation.DIV_ADD Math(operation=synthio.MathOperation.DIV_ADD, a=4.0, b=-1.0, c=9.0)
|
||||
(5.0,)
|
||||
synthio.MathOperation.ADD_DIV Math(operation=synthio.MathOperation.ADD_DIV, a=4, b=-1, c=9)
|
||||
synthio.MathOperation.ADD_DIV Math(operation=synthio.MathOperation.ADD_DIV, a=4.0, b=-1.0, c=9.0)
|
||||
(0.3333333333333333,)
|
||||
synthio.MathOperation.MID Math(operation=synthio.MathOperation.MID, a=4, b=-1, c=9)
|
||||
synthio.MathOperation.MID Math(operation=synthio.MathOperation.MID, a=4.0, b=-1.0, c=9.0)
|
||||
(4.0,)
|
||||
synthio.MathOperation.MAX Math(operation=synthio.MathOperation.MAX, a=4, b=-1, c=9)
|
||||
synthio.MathOperation.MAX Math(operation=synthio.MathOperation.MAX, a=4.0, b=-1.0, c=9.0)
|
||||
(9.0,)
|
||||
synthio.MathOperation.MIN Math(operation=synthio.MathOperation.MIN, a=4, b=-1, c=9)
|
||||
synthio.MathOperation.MIN Math(operation=synthio.MathOperation.MIN, a=4.0, b=-1.0, c=9.0)
|
||||
(-1.0,)
|
||||
synthio.MathOperation.ABS Math(operation=synthio.MathOperation.ABS, a=4, b=-1, c=9)
|
||||
synthio.MathOperation.ABS Math(operation=synthio.MathOperation.ABS, a=4.0, b=-1.0, c=9.0)
|
||||
(4.0,)
|
||||
|
||||
synthio.MathOperation.SUM Math(operation=synthio.MathOperation.SUM, a=9, b=4, c=-1)
|
||||
synthio.MathOperation.SUM Math(operation=synthio.MathOperation.SUM, a=9.0, b=4.0, c=-1.0)
|
||||
(12.0,)
|
||||
synthio.MathOperation.ADD_SUB Math(operation=synthio.MathOperation.ADD_SUB, a=9, b=4, c=-1)
|
||||
synthio.MathOperation.ADD_SUB Math(operation=synthio.MathOperation.ADD_SUB, a=9.0, b=4.0, c=-1.0)
|
||||
(14.0,)
|
||||
synthio.MathOperation.PRODUCT Math(operation=synthio.MathOperation.PRODUCT, a=9, b=4, c=-1)
|
||||
synthio.MathOperation.PRODUCT Math(operation=synthio.MathOperation.PRODUCT, a=9.0, b=4.0, c=-1.0)
|
||||
(-36.0,)
|
||||
synthio.MathOperation.MUL_DIV Math(operation=synthio.MathOperation.MUL_DIV, a=9, b=4, c=-1)
|
||||
synthio.MathOperation.MUL_DIV Math(operation=synthio.MathOperation.MUL_DIV, a=9.0, b=4.0, c=-1.0)
|
||||
(-36.0,)
|
||||
synthio.MathOperation.SCALE_OFFSET Math(operation=synthio.MathOperation.SCALE_OFFSET, a=9, b=4, c=-1)
|
||||
synthio.MathOperation.SCALE_OFFSET Math(operation=synthio.MathOperation.SCALE_OFFSET, a=9.0, b=4.0, c=-1.0)
|
||||
(35.0,)
|
||||
synthio.MathOperation.OFFSET_SCALE Math(operation=synthio.MathOperation.OFFSET_SCALE, a=9, b=4, c=-1)
|
||||
synthio.MathOperation.OFFSET_SCALE Math(operation=synthio.MathOperation.OFFSET_SCALE, a=9.0, b=4.0, c=-1.0)
|
||||
(-13.0,)
|
||||
synthio.MathOperation.LERP Math(operation=synthio.MathOperation.LERP, a=9, b=4, c=-1)
|
||||
synthio.MathOperation.LERP Math(operation=synthio.MathOperation.LERP, a=9.0, b=4.0, c=-1.0)
|
||||
(14.0,)
|
||||
synthio.MathOperation.CONSTRAINED_LERP Math(operation=synthio.MathOperation.CONSTRAINED_LERP, a=9, b=4, c=-1)
|
||||
synthio.MathOperation.CONSTRAINED_LERP Math(operation=synthio.MathOperation.CONSTRAINED_LERP, a=9.0, b=4.0, c=-1.0)
|
||||
(9.0,)
|
||||
synthio.MathOperation.DIV_ADD Math(operation=synthio.MathOperation.DIV_ADD, a=9, b=4, c=-1)
|
||||
synthio.MathOperation.DIV_ADD Math(operation=synthio.MathOperation.DIV_ADD, a=9.0, b=4.0, c=-1.0)
|
||||
(1.25,)
|
||||
synthio.MathOperation.ADD_DIV Math(operation=synthio.MathOperation.ADD_DIV, a=9, b=4, c=-1)
|
||||
synthio.MathOperation.ADD_DIV Math(operation=synthio.MathOperation.ADD_DIV, a=9.0, b=4.0, c=-1.0)
|
||||
(-13.0,)
|
||||
synthio.MathOperation.MID Math(operation=synthio.MathOperation.MID, a=9, b=4, c=-1)
|
||||
synthio.MathOperation.MID Math(operation=synthio.MathOperation.MID, a=9.0, b=4.0, c=-1.0)
|
||||
(4.0,)
|
||||
synthio.MathOperation.MAX Math(operation=synthio.MathOperation.MAX, a=9, b=4, c=-1)
|
||||
synthio.MathOperation.MAX Math(operation=synthio.MathOperation.MAX, a=9.0, b=4.0, c=-1.0)
|
||||
(9.0,)
|
||||
synthio.MathOperation.MIN Math(operation=synthio.MathOperation.MIN, a=9, b=4, c=-1)
|
||||
synthio.MathOperation.MIN Math(operation=synthio.MathOperation.MIN, a=9.0, b=4.0, c=-1.0)
|
||||
(-1.0,)
|
||||
synthio.MathOperation.ABS Math(operation=synthio.MathOperation.ABS, a=9, b=4, c=-1)
|
||||
synthio.MathOperation.ABS Math(operation=synthio.MathOperation.ABS, a=9.0, b=4.0, c=-1.0)
|
||||
(9.0,)
|
||||
|
||||
synthio.MathOperation.SUM Math(operation=synthio.MathOperation.SUM, a=0, b=0, c=0)
|
||||
synthio.MathOperation.SUM Math(operation=synthio.MathOperation.SUM, a=0.0, b=0.0, c=0.0)
|
||||
(0.0,)
|
||||
synthio.MathOperation.ADD_SUB Math(operation=synthio.MathOperation.ADD_SUB, a=0, b=0, c=0)
|
||||
synthio.MathOperation.ADD_SUB Math(operation=synthio.MathOperation.ADD_SUB, a=0.0, b=0.0, c=0.0)
|
||||
(0.0,)
|
||||
synthio.MathOperation.PRODUCT Math(operation=synthio.MathOperation.PRODUCT, a=0, b=0, c=0)
|
||||
synthio.MathOperation.PRODUCT Math(operation=synthio.MathOperation.PRODUCT, a=0.0, b=0.0, c=0.0)
|
||||
(0.0,)
|
||||
synthio.MathOperation.MUL_DIV Math(operation=synthio.MathOperation.MUL_DIV, a=0, b=0, c=0)
|
||||
synthio.MathOperation.MUL_DIV Math(operation=synthio.MathOperation.MUL_DIV, a=0.0, b=0.0, c=0.0)
|
||||
(0.0,)
|
||||
synthio.MathOperation.SCALE_OFFSET Math(operation=synthio.MathOperation.SCALE_OFFSET, a=0, b=0, c=0)
|
||||
synthio.MathOperation.SCALE_OFFSET Math(operation=synthio.MathOperation.SCALE_OFFSET, a=0.0, b=0.0, c=0.0)
|
||||
(0.0,)
|
||||
synthio.MathOperation.OFFSET_SCALE Math(operation=synthio.MathOperation.OFFSET_SCALE, a=0, b=0, c=0)
|
||||
synthio.MathOperation.OFFSET_SCALE Math(operation=synthio.MathOperation.OFFSET_SCALE, a=0.0, b=0.0, c=0.0)
|
||||
(0.0,)
|
||||
synthio.MathOperation.LERP Math(operation=synthio.MathOperation.LERP, a=0, b=0, c=0)
|
||||
synthio.MathOperation.LERP Math(operation=synthio.MathOperation.LERP, a=0.0, b=0.0, c=0.0)
|
||||
(0.0,)
|
||||
synthio.MathOperation.CONSTRAINED_LERP Math(operation=synthio.MathOperation.CONSTRAINED_LERP, a=0, b=0, c=0)
|
||||
synthio.MathOperation.CONSTRAINED_LERP Math(operation=synthio.MathOperation.CONSTRAINED_LERP, a=0.0, b=0.0, c=0.0)
|
||||
(0.0,)
|
||||
synthio.MathOperation.DIV_ADD Math(operation=synthio.MathOperation.DIV_ADD, a=0, b=0, c=0)
|
||||
synthio.MathOperation.DIV_ADD Math(operation=synthio.MathOperation.DIV_ADD, a=0.0, b=0.0, c=0.0)
|
||||
(0.0,)
|
||||
synthio.MathOperation.ADD_DIV Math(operation=synthio.MathOperation.ADD_DIV, a=0, b=0, c=0)
|
||||
synthio.MathOperation.ADD_DIV Math(operation=synthio.MathOperation.ADD_DIV, a=0.0, b=0.0, c=0.0)
|
||||
(0.0,)
|
||||
synthio.MathOperation.MID Math(operation=synthio.MathOperation.MID, a=0, b=0, c=0)
|
||||
synthio.MathOperation.MID Math(operation=synthio.MathOperation.MID, a=0.0, b=0.0, c=0.0)
|
||||
(0.0,)
|
||||
synthio.MathOperation.MAX Math(operation=synthio.MathOperation.MAX, a=0, b=0, c=0)
|
||||
synthio.MathOperation.MAX Math(operation=synthio.MathOperation.MAX, a=0.0, b=0.0, c=0.0)
|
||||
(0.0,)
|
||||
synthio.MathOperation.MIN Math(operation=synthio.MathOperation.MIN, a=0, b=0, c=0)
|
||||
synthio.MathOperation.MIN Math(operation=synthio.MathOperation.MIN, a=0.0, b=0.0, c=0.0)
|
||||
(0.0,)
|
||||
synthio.MathOperation.ABS Math(operation=synthio.MathOperation.ABS, a=0, b=0, c=0)
|
||||
synthio.MathOperation.ABS Math(operation=synthio.MathOperation.ABS, a=0.0, b=0.0, c=0.0)
|
||||
(0.0,)
|
||||
|
||||
synthio.MathOperation.SUM Math(operation=synthio.MathOperation.SUM, a=3, b=2, c=1)
|
||||
synthio.MathOperation.SUM Math(operation=synthio.MathOperation.SUM, a=3.0, b=2.0, c=1.0)
|
||||
(6.0,)
|
||||
synthio.MathOperation.ADD_SUB Math(operation=synthio.MathOperation.ADD_SUB, a=3, b=2, c=1)
|
||||
synthio.MathOperation.ADD_SUB Math(operation=synthio.MathOperation.ADD_SUB, a=3.0, b=2.0, c=1.0)
|
||||
(4.0,)
|
||||
synthio.MathOperation.PRODUCT Math(operation=synthio.MathOperation.PRODUCT, a=3, b=2, c=1)
|
||||
synthio.MathOperation.PRODUCT Math(operation=synthio.MathOperation.PRODUCT, a=3.0, b=2.0, c=1.0)
|
||||
(6.0,)
|
||||
synthio.MathOperation.MUL_DIV Math(operation=synthio.MathOperation.MUL_DIV, a=3, b=2, c=1)
|
||||
synthio.MathOperation.MUL_DIV Math(operation=synthio.MathOperation.MUL_DIV, a=3.0, b=2.0, c=1.0)
|
||||
(6.0,)
|
||||
synthio.MathOperation.SCALE_OFFSET Math(operation=synthio.MathOperation.SCALE_OFFSET, a=3, b=2, c=1)
|
||||
synthio.MathOperation.SCALE_OFFSET Math(operation=synthio.MathOperation.SCALE_OFFSET, a=3.0, b=2.0, c=1.0)
|
||||
(7.0,)
|
||||
synthio.MathOperation.OFFSET_SCALE Math(operation=synthio.MathOperation.OFFSET_SCALE, a=3, b=2, c=1)
|
||||
synthio.MathOperation.OFFSET_SCALE Math(operation=synthio.MathOperation.OFFSET_SCALE, a=3.0, b=2.0, c=1.0)
|
||||
(5.0,)
|
||||
synthio.MathOperation.LERP Math(operation=synthio.MathOperation.LERP, a=3, b=2, c=1)
|
||||
synthio.MathOperation.LERP Math(operation=synthio.MathOperation.LERP, a=3.0, b=2.0, c=1.0)
|
||||
(2.0,)
|
||||
synthio.MathOperation.CONSTRAINED_LERP Math(operation=synthio.MathOperation.CONSTRAINED_LERP, a=3, b=2, c=1)
|
||||
synthio.MathOperation.CONSTRAINED_LERP Math(operation=synthio.MathOperation.CONSTRAINED_LERP, a=3.0, b=2.0, c=1.0)
|
||||
(2.0,)
|
||||
synthio.MathOperation.DIV_ADD Math(operation=synthio.MathOperation.DIV_ADD, a=3, b=2, c=1)
|
||||
synthio.MathOperation.DIV_ADD Math(operation=synthio.MathOperation.DIV_ADD, a=3.0, b=2.0, c=1.0)
|
||||
(2.5,)
|
||||
synthio.MathOperation.ADD_DIV Math(operation=synthio.MathOperation.ADD_DIV, a=3, b=2, c=1)
|
||||
synthio.MathOperation.ADD_DIV Math(operation=synthio.MathOperation.ADD_DIV, a=3.0, b=2.0, c=1.0)
|
||||
(5.0,)
|
||||
synthio.MathOperation.MID Math(operation=synthio.MathOperation.MID, a=3, b=2, c=1)
|
||||
synthio.MathOperation.MID Math(operation=synthio.MathOperation.MID, a=3.0, b=2.0, c=1.0)
|
||||
(2.0,)
|
||||
synthio.MathOperation.MAX Math(operation=synthio.MathOperation.MAX, a=3, b=2, c=1)
|
||||
synthio.MathOperation.MAX Math(operation=synthio.MathOperation.MAX, a=3.0, b=2.0, c=1.0)
|
||||
(3.0,)
|
||||
synthio.MathOperation.MIN Math(operation=synthio.MathOperation.MIN, a=3, b=2, c=1)
|
||||
synthio.MathOperation.MIN Math(operation=synthio.MathOperation.MIN, a=3.0, b=2.0, c=1.0)
|
||||
(1.0,)
|
||||
synthio.MathOperation.ABS Math(operation=synthio.MathOperation.ABS, a=3, b=2, c=1)
|
||||
synthio.MathOperation.ABS Math(operation=synthio.MathOperation.ABS, a=3.0, b=2.0, c=1.0)
|
||||
(3.0,)
|
||||
|
||||
synthio.MathOperation.SUM Math(operation=synthio.MathOperation.SUM, a=2, b=1, c=1)
|
||||
synthio.MathOperation.SUM Math(operation=synthio.MathOperation.SUM, a=2.0, b=1.0, c=1.0)
|
||||
(4.0,)
|
||||
synthio.MathOperation.ADD_SUB Math(operation=synthio.MathOperation.ADD_SUB, a=2, b=1, c=1)
|
||||
synthio.MathOperation.ADD_SUB Math(operation=synthio.MathOperation.ADD_SUB, a=2.0, b=1.0, c=1.0)
|
||||
(2.0,)
|
||||
synthio.MathOperation.PRODUCT Math(operation=synthio.MathOperation.PRODUCT, a=2, b=1, c=1)
|
||||
synthio.MathOperation.PRODUCT Math(operation=synthio.MathOperation.PRODUCT, a=2.0, b=1.0, c=1.0)
|
||||
(2.0,)
|
||||
synthio.MathOperation.MUL_DIV Math(operation=synthio.MathOperation.MUL_DIV, a=2, b=1, c=1)
|
||||
synthio.MathOperation.MUL_DIV Math(operation=synthio.MathOperation.MUL_DIV, a=2.0, b=1.0, c=1.0)
|
||||
(2.0,)
|
||||
synthio.MathOperation.SCALE_OFFSET Math(operation=synthio.MathOperation.SCALE_OFFSET, a=2, b=1, c=1)
|
||||
synthio.MathOperation.SCALE_OFFSET Math(operation=synthio.MathOperation.SCALE_OFFSET, a=2.0, b=1.0, c=1.0)
|
||||
(3.0,)
|
||||
synthio.MathOperation.OFFSET_SCALE Math(operation=synthio.MathOperation.OFFSET_SCALE, a=2, b=1, c=1)
|
||||
synthio.MathOperation.OFFSET_SCALE Math(operation=synthio.MathOperation.OFFSET_SCALE, a=2.0, b=1.0, c=1.0)
|
||||
(3.0,)
|
||||
synthio.MathOperation.LERP Math(operation=synthio.MathOperation.LERP, a=2, b=1, c=1)
|
||||
synthio.MathOperation.LERP Math(operation=synthio.MathOperation.LERP, a=2.0, b=1.0, c=1.0)
|
||||
(1.0,)
|
||||
synthio.MathOperation.CONSTRAINED_LERP Math(operation=synthio.MathOperation.CONSTRAINED_LERP, a=2, b=1, c=1)
|
||||
synthio.MathOperation.CONSTRAINED_LERP Math(operation=synthio.MathOperation.CONSTRAINED_LERP, a=2.0, b=1.0, c=1.0)
|
||||
(1.0,)
|
||||
synthio.MathOperation.DIV_ADD Math(operation=synthio.MathOperation.DIV_ADD, a=2, b=1, c=1)
|
||||
synthio.MathOperation.DIV_ADD Math(operation=synthio.MathOperation.DIV_ADD, a=2.0, b=1.0, c=1.0)
|
||||
(3.0,)
|
||||
synthio.MathOperation.ADD_DIV Math(operation=synthio.MathOperation.ADD_DIV, a=2, b=1, c=1)
|
||||
synthio.MathOperation.ADD_DIV Math(operation=synthio.MathOperation.ADD_DIV, a=2.0, b=1.0, c=1.0)
|
||||
(3.0,)
|
||||
synthio.MathOperation.MID Math(operation=synthio.MathOperation.MID, a=2, b=1, c=1)
|
||||
synthio.MathOperation.MID Math(operation=synthio.MathOperation.MID, a=2.0, b=1.0, c=1.0)
|
||||
(1.0,)
|
||||
synthio.MathOperation.MAX Math(operation=synthio.MathOperation.MAX, a=2, b=1, c=1)
|
||||
synthio.MathOperation.MAX Math(operation=synthio.MathOperation.MAX, a=2.0, b=1.0, c=1.0)
|
||||
(2.0,)
|
||||
synthio.MathOperation.MIN Math(operation=synthio.MathOperation.MIN, a=2, b=1, c=1)
|
||||
synthio.MathOperation.MIN Math(operation=synthio.MathOperation.MIN, a=2.0, b=1.0, c=1.0)
|
||||
(1.0,)
|
||||
synthio.MathOperation.ABS Math(operation=synthio.MathOperation.ABS, a=2, b=1, c=1)
|
||||
synthio.MathOperation.ABS Math(operation=synthio.MathOperation.ABS, a=2.0, b=1.0, c=1.0)
|
||||
(2.0,)
|
||||
|
||||
synthio.MathOperation.SUM Math(operation=synthio.MathOperation.SUM, a=1, b=0, c=1)
|
||||
synthio.MathOperation.SUM Math(operation=synthio.MathOperation.SUM, a=1.0, b=0.0, c=1.0)
|
||||
(2.0,)
|
||||
synthio.MathOperation.ADD_SUB Math(operation=synthio.MathOperation.ADD_SUB, a=1, b=0, c=1)
|
||||
synthio.MathOperation.ADD_SUB Math(operation=synthio.MathOperation.ADD_SUB, a=1.0, b=0.0, c=1.0)
|
||||
(0.0,)
|
||||
synthio.MathOperation.PRODUCT Math(operation=synthio.MathOperation.PRODUCT, a=1, b=0, c=1)
|
||||
synthio.MathOperation.PRODUCT Math(operation=synthio.MathOperation.PRODUCT, a=1.0, b=0.0, c=1.0)
|
||||
(0.0,)
|
||||
synthio.MathOperation.MUL_DIV Math(operation=synthio.MathOperation.MUL_DIV, a=1, b=0, c=1)
|
||||
synthio.MathOperation.MUL_DIV Math(operation=synthio.MathOperation.MUL_DIV, a=1.0, b=0.0, c=1.0)
|
||||
(0.0,)
|
||||
synthio.MathOperation.SCALE_OFFSET Math(operation=synthio.MathOperation.SCALE_OFFSET, a=1, b=0, c=1)
|
||||
synthio.MathOperation.SCALE_OFFSET Math(operation=synthio.MathOperation.SCALE_OFFSET, a=1.0, b=0.0, c=1.0)
|
||||
(1.0,)
|
||||
synthio.MathOperation.OFFSET_SCALE Math(operation=synthio.MathOperation.OFFSET_SCALE, a=1, b=0, c=1)
|
||||
synthio.MathOperation.OFFSET_SCALE Math(operation=synthio.MathOperation.OFFSET_SCALE, a=1.0, b=0.0, c=1.0)
|
||||
(1.0,)
|
||||
synthio.MathOperation.LERP Math(operation=synthio.MathOperation.LERP, a=1, b=0, c=1)
|
||||
synthio.MathOperation.LERP Math(operation=synthio.MathOperation.LERP, a=1.0, b=0.0, c=1.0)
|
||||
(0.0,)
|
||||
synthio.MathOperation.CONSTRAINED_LERP Math(operation=synthio.MathOperation.CONSTRAINED_LERP, a=1, b=0, c=1)
|
||||
synthio.MathOperation.CONSTRAINED_LERP Math(operation=synthio.MathOperation.CONSTRAINED_LERP, a=1.0, b=0.0, c=1.0)
|
||||
(0.0,)
|
||||
synthio.MathOperation.DIV_ADD Math(operation=synthio.MathOperation.DIV_ADD, a=1, b=0, c=1)
|
||||
synthio.MathOperation.DIV_ADD Math(operation=synthio.MathOperation.DIV_ADD, a=1.0, b=0.0, c=1.0)
|
||||
(0.0,)
|
||||
synthio.MathOperation.ADD_DIV Math(operation=synthio.MathOperation.ADD_DIV, a=1, b=0, c=1)
|
||||
synthio.MathOperation.ADD_DIV Math(operation=synthio.MathOperation.ADD_DIV, a=1.0, b=0.0, c=1.0)
|
||||
(1.0,)
|
||||
synthio.MathOperation.MID Math(operation=synthio.MathOperation.MID, a=1, b=0, c=1)
|
||||
synthio.MathOperation.MID Math(operation=synthio.MathOperation.MID, a=1.0, b=0.0, c=1.0)
|
||||
(1.0,)
|
||||
synthio.MathOperation.MAX Math(operation=synthio.MathOperation.MAX, a=1, b=0, c=1)
|
||||
synthio.MathOperation.MAX Math(operation=synthio.MathOperation.MAX, a=1.0, b=0.0, c=1.0)
|
||||
(1.0,)
|
||||
synthio.MathOperation.MIN Math(operation=synthio.MathOperation.MIN, a=1, b=0, c=1)
|
||||
synthio.MathOperation.MIN Math(operation=synthio.MathOperation.MIN, a=1.0, b=0.0, c=1.0)
|
||||
(0.0,)
|
||||
synthio.MathOperation.ABS Math(operation=synthio.MathOperation.ABS, a=1, b=0, c=1)
|
||||
synthio.MathOperation.ABS Math(operation=synthio.MathOperation.ABS, a=1.0, b=0.0, c=1.0)
|
||||
(1.0,)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user