Putting a space in large sysexfiles working

Home Forums General Programming Putting a space in large sysexfiles working

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #69279
    iceleben
    Participant
      • Topics: 7
      • Replies: 13
      • Total: 20

      Hello,
      all the stupid questions I’ve been asking the last weeks are for a MKS80 Programmer which is developing really good. I wanted to put all the Factory Tones and patches in there as well. But the complete Dump (64 patches and Tones) I have is available in 16 Blocks that contain 4 Tones and patches and they arent separated. As I feel stupid to put a space between each 2 Messages I found a code that does that for me. So if anyone needs that as well here it is:

      ROM1114=”F0414200202A4333002A1B0D00000C32152600230C2000145200156400413440350B420024230704050F0906033C3200030205050000000037000302050500000000373F15202C0D136400000C0D3B320041000B004849004436002200252329504F2E250705020F0901033C32010302050500001214350103020505000012143540051F0008066400030C0D282A02280021002664005C5A003B374820284E00231E0B0706070A01033C320203020507000010323702030205070000103237400C1F41360064000018193B320032001F006164000B63001C002523104F4F120D0705020E0A01006C2903030205030000103237220302050500001032372FF7ZZ”

      tone1114Split = ROM1114:gsub(“..”, “%1 “):sub(1,-2) — put space between 2characters
      tone1114Block=MemoryBlock(tone1114Split)– create a block with 4 tones and patches

      Tone11Data=tone1114Block:getRange(5,39) — get Tone 11
      Tone12Data=tone1114Block:getRange(67,39) — get Tone 12
      Tone13Data=tone1114Block:getRange(129,39) — get Tone 13
      Tone14Data=tone1114Block:getRange(191,39) — get Tone 14

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