Cycling74 / RNBOMetasound

RNBO adapter that implements metasound nodes
MIT License
42 stars 2 forks source link

value typed or patched in to pin is overwritten by default value of param on first trigger #19

Closed jinpavg closed 1 year ago

jinpavg commented 1 year ago

The typed-in or patched-in value for an input pin is overwritten by the default value of the param in the [param] when the node receives its first trigger.

For example, in the following node, the RNBO patcher has [param notenumber 60 @min 0 @max 127]

Then, despite receiving a value of 55.75 in the MS graph, the node outputs a MIDI note number of 60 first, before switching to 55.75.

image

x37v commented 1 year ago

huh, that is interesting. BTW, notenumber is an int so your .75 will be either truncated or rounded.. not sure what MS does

jinpavg commented 1 year ago

ah, should've specified, this is my old patcher-based version of "makenote" --

image

jinpavg commented 1 year ago

i think it gets truncated at the makenote object... but MS should just see it as a float

x37v commented 1 year ago

@jinpavg oh word, I see.. you're not using the Make Note that I created, you're using your own setup.

jinpavg commented 1 year ago
<pre><code>
----------begin_max5_patcher----------
4477.3oc6cr1iiai6ySA5+AA+kcWfLAV9YRwgC8wtEXt65NKZ21uzqHvIVIQ
sN14rclGsn829Q8vucbbx3LcmYzN.aRjjooHonHoEo+iO+ytPadzcjDMzWf9
YzEW7GPKWvai0xEYMbg1Fu6VD3kvGnVH41n4+p1HYeoj6R4sug5Si1kl2A0m
2LL1KcxabqW5h0zvUyhIKRE2WrtyX8QHCLl8gkK+GFi0Q+R1EEtaCMLfjxu+
3RsB2trl04s9me9mw9D9XzoNetwKNzaCg2Ub37n+p4LsZyklm37FEXV58aIh
IoFMDnLHs.ZB.ie4vjCrCmPXoeZjCirlY35Mj3DZTHGMwiMGqeoO4lwX8pbE
RrjJkQltPaIMfT5hytWWn4scao1un7Ewnt+ZDGVSFUzFMTzlcQawjanYfvon
YuXfjjBzicwBtvcNVZkfTjOINbGkiPxVY76LTiyXYbvjsdKJXi4PPqfTaO0T
H4wIxtthOlnWhXCROqBhV7aDNSVOu0nsjPZ31XRBIL0KUNKJ52mrzaWP5rkQ
goIzemiGXfK15.VJQz16MWZ7+3kVZZrJl5GExviprFV6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KVPityQ9hqTi4We
b3NZVx9HY2EpTS15sHK982AxDv.9+ZgNVL.
-----------end_max5_patcher-----------
</code></pre>
x37v commented 1 year ago

should be fixed

jinpavg commented 1 year ago

groovy!