FileOpen

Home Forums General Programming FileOpen

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #6285
    artofnois
    Participant
      • Topics: 26
      • Replies: 40
      • Total: 66

      PatchDataLoaded          = MemoryBlock(10000,true)
      f = utils.openFileWindow (“Open Patch”, File(“”), “*.syx”, true)
      if f:existsAsFile()
      then
      PatchDataLoaded:setSize(0,true)
      f:loadFileAsData(PatchDataLoaded)
      midiMessage = PatchDataLoaded:getRange(0,96)
      programSize = PatchDataLoaded:getSize()

      After that, botth lines chash th program

      console( “File>>”..midiMessage:toHexString(1) )
      cab = string.format( “F0 36 02 00 08 00 %02X %s”, 1, MidiMessage:getRange(5,96-5):toHexString(1))

    Viewing 1 post (of 1 total)
    • The forum ‘Programming’ is closed to new topics and replies.
    There is currently 0 users and 76 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