Skip to content

Building a Quantizer Node #75

Answered by maximecb
AlasdairMott asked this question in Q&A
Discussion options

You must be logged in to vote

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 in validateParams 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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AlasdairMott
Comment options

Answer selected by AlasdairMott
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants