pb with unpackDsiData

Home Forums General Programming pb with unpackDsiData

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #393
    netchose
    Participant
      • Topics: 15
      • Replies: 70
      • Total: 85

      i have a problem with utils.unpackDsiData :

      programData = midiMessage:getLuaData():getRange(5,8)

      00 00 –prgram 1
      00 00 –bank 1
      00 00 –master volume 0
      00 00 –master transpose -36

      unpackedData = utils.unpackDsiData(programData) — unpackedData give this result :

      ff ff ff ff 50 00 92

      thanks for your help

      #3044
      atom
      Keymaster
        • Topics: 159
        • Replies: 2945
        • Total: 3104
        • ★★★★★

        that won’t work, from what i read in the manual of any DSI manual midi is sent in 8 byte "packets" and you are not feeding the unpackDsiData() method 8 bytes but less.

        #3045
        netchose
        Participant
          • Topics: 15
          • Replies: 70
          • Total: 85

          tested all range from 0 to 36

          same problem the result bigin with ff ff

          Global Parameters Data Dump 40 bytes
          F0 01 20 01 0F [34 nibbles (LS then MS)] F7

          #3046
          netchose
          Participant
            • Topics: 15
            • Replies: 70
            • Total: 85

            ok ..i ve understand

            34 nibbles (LS then MS) for 17 Global parameters. Global Parameters are
            listed starting on page 57

            this is not packed data but LS MS

            sorry

            #3047
            netchose
            Participant
              • Topics: 15
              • Replies: 70
              • Total: 85

              do you think we can have the inverted function : utils.packDsiData ?

              #3048
              atom
              Keymaster
                • Topics: 159
                • Replies: 2945
                • Total: 3104
                • ★★★★★

                sure, i’ll add something

              Viewing 6 posts - 1 through 6 (of 6 total)
              • The forum ‘Programming’ is closed to new topics and replies.
              There is currently 0 users and 95 guests online
              No users are currently active
              Forum Statistics
              Threads: 2,495, Posts: 17,374, Members: 77,605
              Most users ever online was 12 on January 22, 2019 3:47 pm
              Ctrlr