uiLabel to show patch name

Home Forums General Programming uiLabel to show patch name

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #68023
    Hevimees
    Participant
      • Topics: 3
      • Replies: 1
      • Total: 4

      Hi – I’ve red all the topics about uiLabel to show patch name.
      But I can’t get it to work – can someone help me out here.

      I’m recieving the patch dump (Midi Monitor shows it coming in) and created LUA function witch should activate when panel recieves MIDI:

      -- Called when a panel receives a midi message (does not need to match any modulator mask)
      -- @midi   CtrlrMidiMessage object
      --
      
      patchName = function(midi)
      
      	panelText = midi:getData():getRange(632,16)
      
      	console (panelText:toString())
      
      	panel:getModulatorByName("modulator-4"):setText(panelText:toString())
      
      end

      Console is also empty – nothing happens.

      • This topic was modified 8 years, 4 months ago by Hevimees.
      • This topic was modified 8 years, 4 months ago by Hevimees.
      #68027
      Possemo
      Participant
        • Topics: 14
        • Replies: 638
        • Total: 652
        • ★★★

        This is how I am doing this job:

        if PATCHORTONE==0x30 then patchData=SysexMessage:getData()
        
        	pname=patchData:getRange(7,18):toString()
        	panel:getComponent("PatchName"):setProperty("uiLabelText",pname,false)
      Viewing 2 posts - 1 through 2 (of 2 total)
      • The forum ‘Programming’ is closed to new topics and replies.
      There is currently 0 users and 62 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