RNBO Key-Value Pairs with list.reg

Jelani Thompson's icon

Hello!

I'm currently building a chord trigger device in RNBO that allows you to select the note and choose a corresponding chord formula to play the chord related to said note. The format is like this:

```
"blues" : [ 0, 3, 5, 6, 7, 10 ],
"5th-mode-of-harmonic-minor" : [ 0, 1, 4, 5, 7, 8, 10 ],
"5th-mode-of-harmonic-major" : [ 0, 1, 4, 5, 7, 9, 10 ],
"dominant-bebop" : [ 0, 2, 4, 5, 7, 9, 10, 11 ],
"dominant-diminished" : [ 0, 1, 3, 4, 6, 7, 9, 10 ],
```

RNBO doesn't have access to dict or coll, but the documentation states that this can be worked around by using list.reg (https://rnbo.cycling74.com/learn/working-with-lists). The thing is, I have a lot of key-value pairs, and I could see list.reg getting pretty long when I start adding in the chord formula numbers.

Example with only 4 chord formulas:

list.reg "0356710", "01457810", "01457910", "0245791011"

This could be fine with a few, but might start to get messy once you have something like 50+ chord formulas.

Is there a better way to store these key-value pairs in a way that doesn't lead to a lot of visual clutter?

Will give list.coll a try in the meantime.

Thanks!

chord-formulas.json
json 2.87 KB