I have a beginner Syntax Issue I can't seem to solve.
I have a variable on a switch which is meant to have this value:
{Legato:1, 'Kurze Artikulation': 2, 'Lange Artikulation': 3, Runs: 4}
These were my ideas of how to assign it while loading the patch:
Values Prop
VAR{Articulations, #{
{Legato: 1, KurzeArtikulation: 2, LangeArtikulation: 3, Runs: 4}
}
}
#{
VAR{Articulations, #{
{Legato: 1, KurzeArtikulation: 2, LangeArtikulation: 3, Runs: 4}
}
}
}
both of them don't work though.
onCreate Prop
(after putting VAR{Articulations, 1} in the values Prop)
var list1 = {Legato:1, 'Kurze Artikulation': 2, 'Lange Artikulation': 3, Runs: 4}
setVar("this", "Articulations", list1)
This one works kind of but not while loading the json but only when I click inside the onCreate and sort of reload the code again.
May I ask for your help?