17 "title" :
"Note Priority",
18 "description" :
"Specifies the algorithm for collapsing multiple simultaneously-pressed notes into a single note.",
22 "VuoList_VuoNotePriority"
37 const char *valueAsString =
"";
38 if (json_object_get_type(js) == json_type_string)
39 valueAsString = json_object_get_string(js);
43 if (strcmp(valueAsString,
"last") == 0)
44 value = VuoNotePriority_Last;
45 else if (strcmp(valueAsString,
"lowest") == 0)
46 value = VuoNotePriority_Lowest;
47 else if (strcmp(valueAsString,
"highest") == 0)
48 value = VuoNotePriority_Highest;
58 char *valueAsString =
"first";
60 if (value == VuoNotePriority_Last)
61 valueAsString =
"last";
62 else if (value == VuoNotePriority_Lowest)
63 valueAsString =
"lowest";
64 else if (value == VuoNotePriority_Highest)
65 valueAsString =
"highest";
67 return json_object_new_string(valueAsString);
88 char *valueAsString =
"First Note";
90 if (value == VuoNotePriority_Last)
91 valueAsString =
"Last Note";
92 else if (value == VuoNotePriority_Lowest)
93 valueAsString =
"Lowest Note";
94 else if (value == VuoNotePriority_Highest)
95 valueAsString =
"Highest Note";
97 return strdup(valueAsString);