Custom component

Home Forums General Programming Custom component

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #24464
    zeoka
    Participant
      • Topics: 73
      • Replies: 466
      • Total: 539
      • ★★★

      Hi
      I would try to build a pattern editor with a custom component
      For my first step I use this component with others modulators (the black/red sliders) but would to replace them by memorybloc when my component is fully working
      Now sliders repaint the component,my velocity knobs repaint it too
      I want to set my slider values when I click on the custom component
      It gives normally 512 zones
      PROBLEM :I can set nicely my sliders to value 3 (0 to 3) only ( Yvalue <= 32) when I click below Yvalue seems nil and script is disabled Why ?

      Attachments:
      You must be logged in to view attached files.
      #24494
      zeoka
      Participant
        • Topics: 73
        • Replies: 466
        • Total: 539
        • ★★★

        I’ve posted an improved example.. clearer
        The click zones are more visible
        but still can’t get Y as value , I think it returns always 0 so
        I get the upper zones only
        Anyone ?

        Attachments:
        You must be logged in to view attached files.
        #24498
        dasfaker
        Keymaster
          • Topics: 80
          • Replies: 793
          • Total: 873
          • ★★★

          On you mousedown script, for values greater than 0 you wrote stev1 instead of stevl

          if stevl == 0 then write:setModulatorValue(3,false,false,false)
          elseif stev1 == 1 then write:setModulatorValue(2,false,false,false)
          elseif stev1 == 2 then write:setModulatorValue(1,false,false,false)
          elseif stev1 == 3 then write:setModulatorValue(0,false,false,false)
          end

          #24499
          zeoka
          Participant
            • Topics: 73
            • Replies: 466
            • Total: 539
            • ★★★

            Wow my eyes are dead
            i was thinking about that but finally give up the idea …

            Thank you !
            Step 2 try to replace the sliders by
            – a state
            – a value stored
            Thank you again Dasfaker

            #24717
            zeoka
            Participant
              • Topics: 73
              • Replies: 466
              • Total: 539
              • ★★★

              Hi
              Thanks Atom for the tip you give in my old post “combo and slider content” or something like that..
              Just fully understand your tip !
              I’ve done the pattern editor. I’m crappy for now with memoryblock
              and use table , uilabel and loops to paint/repaint. all is ok
              I would use the sysex editor with a yy and xx for two values triggered
              by the mousedownCallback
              Possible ??

              Attachments:
              You must be logged in to view attached files.
            Viewing 5 posts - 1 through 5 (of 5 total)
            • The forum ‘Programming’ is closed to new topics and replies.
            There is currently 0 users and 97 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