LCD character mappings

Home Forums General Programming LCD character mappings

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #117995
    shooking
    Blocked
      • Topics: 14
      • Replies: 60
      • Total: 74

      Hi all

      I know I saw this in a panel recently but for the life of me I cannot find it.

      What I saw, I think, was some Roland panel that made mention of Kawai – but on reflection it might have been different forum.

      PROBLEM: Kawai K1r character set is almost ascii.
      How to easily discover their mapping?

      I understand this will be a surjection (1:1 and onto) so inversemap(charmap(i)) = i

      But how to get at this mapping?
      One thing I can be sure of .. it’s midi so the char is in range [0, 127]
      A patch name is 10 bytes

      So I could write 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 to 1st patch name (byte val) and see what happens on the name in the K1r

      Then write 10, 11, … 19
      up to the 127

      this gets me KawaiChar(byte(i)) mapping (provided I can find a matching ASCII or even UTF-8 for what I see).

      Then for i = 0, 127 do inverseKawaiChar(KawaiChar(i)) = i end

      Just hoping someone might have already generate the mapping?

      Best regards
      Steve

      #117997
      dnaldoog
      Participant
        • Topics: 4
        • Replies: 480
        • Total: 484
        • ★★

        You would perhaps create a lookup table.

        	_chars = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L',
         			'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W',
         			'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h',
         			'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's',
         			't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3',
         			'4', '5', '6', '7', '8', '9', ' ', '-'}
        

        So if the sysex for patch name is 01 02 03 0A, it converts to ‘ABCDJ’ – no need for string.char() etc

        Something like:

        console(String(_chars[m:getData():getByte(n)])

        #118023
        shooking
        Blocked
          • Topics: 14
          • Replies: 60
          • Total: 74

          man I beginning not to like this WordPress — I clicked on reply – turns out I hit report!! Well it looks the freaking same .. and there’s no obvious cancel.. Refreshed the page

          Sure I know what I need to do .. but I am unsure of two things

          K1 says valid chars are (and it even gets the order wrong in my printed manual) are

          ” ” ! ” # $ % & ‘ ( ) * + / (a middle horizonal line) . /
          0 1 2 3 4 5 6 7 8 9 0
          : ; < = > ? @
          A .. Z
          [ a yen character ]
          ^ _ ` a .. z { | } -> and <- (which are wrong way around) so that's not 127 chars. I can hack my program to generate the 0 .. 127 and "observe" the output so this get me British Ascii -> Kawai Japanese/US chars
          and should be reversable.

          I am so sure I found some panel or some Novation mapping for a Korg or Roland that was supposed to be the same.

          Your “kill the modal” trick is very powerful.

          Labels can display # but I not reliably got combo to do or LCD I guess because some of these chars are used to represent a delimiter

          Time for a BBQ and much beer in locked down UK .. I do hope as many people round the world that can stay healthy and have fun are able to do so.

          Best regards
          Steve H
          Oh and time for some bass playing on my Steinberger copy while I flip burgers …

          #118024
          dnaldoog
          Participant
            • Topics: 4
            • Replies: 480
            • Total: 484
            • ★★

            I don’t understand what you are trying to do.

            Are you parsing user input to ensure a correct set of characters?

            Or are you trying to convert to (extended) ASCII which you obviously know how to do do well?

            I understand this will be a surjection (1:1 and onto) so inversemap(charmap(i)) = i

            Labels can display # but I not reliably got combo to do or LCD I guess because some of these chars are used to represent a delimiter

            What does all this mean?

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