Building a Quantizer Node #75
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi Alasdair. Currently for nodes like The reason you get an error for It infers the type of the value based on its default. It's not really built to handle a list of values. You'd have to add another case to handle an array as the default value. |
Beta Was this translation helpful? Give feedback.
Hi Alasdair. Currently for nodes like
MonoSeq
, the scale is represented by 3 state variables ('scaleName', 'scaleRoot', 'numOctaves'). Though the code to render the drop-down menu is specialized for that node type.The reason you get an error for
notes
is because of the validation code invalidateParams
here:https://github.com/maximecb/noisecraft/blob/main/public/model.js#L630
It infers the type of the value based on its default. It's not really built to handle a list of values. You'd have to add another case to handle an array as the default value.