electraone / datafiles

Public files for electra.one project
23 stars 6 forks source link

In EIF Files - defaultValue is not taken into account within a list item #17

Closed pmgdias closed 4 years ago

pmgdias commented 4 years ago

micromonsta.zip

When you want the default value of the parameter to be set to another item (different from the first item in the overlay), setting "defaultValue" works in Editor but after uploading to the Electra unit, it always shows the first item of the list first (instead of the one within the defaultValue).

In this example, it shows -1 as the initial item on the Editor and -2 on the Electra Unit :

Overlay :

    {
      "id": 7,
      "name": "Sub Octave",
      "items": [
        {
          "value": 62,
          "label": "-2"
        },
        {
          "value": 63,
          "label": "-1"
        },
        {
          "value": 64,
          "label": "0"
        }
      ]
    }

Parameter :

   {
      "id": 12,
      "type": "list",
      "name": "SUB Octave",
      "defaultValue": 63,
      "overlayId": 7,
      "categoryId": "oscs",
      "msg": "nrpn"
    }

Also EIF file attached with similar examples within.