[SOLVED] How to send value -63,0, +63 with an Image Slider ?

Home Forums General Programming [SOLVED] How to send value -63,0, +63 with an Image Slider ?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #70315
    JDXA
    Participant
      • Topics: 10
      • Replies: 45
      • Total: 55

      Hi,

      I have to make a slider but the values must be -63 to +63 instead of 0 to +127.

      I’ve put in Min and Max -63 and +63… on the computer screen, it lights up the correct values but on my Roland synth, the values are not correct… The slider don’t send the correct values…

      I’ve read some topics but I cannot understand (I use CTRLR since 2 weeks only so I’m in a learning period)

      Dasfaker wrote : “Why don’t you set a fixed slider and enter in the slider content values from 50-300, and in min/max values you set 2-127?
      This way the modulator displays values 50-300 but sends 2-127.”

      Where are the slider content values ? (it seems not to be the Min and Max value !)

      Also, I’ve read this :

      ” Enter these values in your modulator’s value contents box

      -12=16372
      -11=16373
      -10=16374
      -09=16375
      -08=16376
      -07=16377
      -06=16378
      -05=16379
      -04=16380
      -03=16381
      -02=16382
      -01=16383
      +0=0
      +01=1
      +02=2
      +03=3
      +04=4
      +05=5
      +06=6
      +07=7
      +08=8
      +09=9
      +10=10
      +11=11
      +12=123

      But I cannot find the value content box !

      And I’ve found this : “lt (modulatorValue, 0, 16383 – (abs(modulatorValue)), modulatorValue)”

      But I don’t know where to put ?

      Are they all a LUA solution ?

      Thanks for your help,

      Have a nice day,

      Xavier-Joseph (JDXA) from Reunion Island,

      • This topic was modified 7 years, 4 months ago by JDXA.
      • This topic was modified 7 years, 4 months ago by JDXA.
      #70317
      Possemo
      Participant
        • Topics: 14
        • Replies: 638
        • Total: 652
        • ★★★

        These are no Lua solutions (there would certainly be ways to do this in Lua). The contents-box does only exist on the uiFixedSlider component. Maybe the community could help you when when we know what device you want to edit.

        #70318
        JDXA
        Participant
          • Topics: 10
          • Replies: 45
          • Total: 55

          Hi,

          My synth is a Roland JD-XA !

          Ok, I’ve seen the “Slider contents” in the uiFixedSlider…

          I’m going to try but, I cannot use this slider because I’ve drawn my own slider. It looks like the JD-XA one !

          Is it possible to act on a slider that morroring another slider ?

          I explain : I use my own slider, put -63 to 63 (to set up on uiLabel) but at the same time I act on an hidden slider that send the correct value : 0 to 127 !

          It’s not a real solution it’s a tip… I know !!!!

          On the other time, I’m learning LUA code while I’m making the JD-XA Editor and I’m not aware of all the syntaxes…

          I suppose it’s this king of math calculs Modulatorvalue = 128 -64 but I don’t know, for the moment, how to write in LUA

          Thanks a lot,

          Xavier-Joseph (JD-XA)

          • This reply was modified 7 years, 4 months ago by JDXA.
          • This reply was modified 7 years, 4 months ago by JDXA.
          • This reply was modified 7 years, 4 months ago by JDXA.
          • This reply was modified 7 years, 4 months ago by JDXA.
          #70326
          Possemo
          Participant
            • Topics: 14
            • Replies: 638
            • Total: 652
            • ★★★

            there is also an uiFixedSlider where you can put your own custom images. Will look into the JD-XA sysex implementation this week.

            btw. the newest Ctrlr release v5.4.16 is buggy. I recommend using v5.4.11 for developing panels.

            • This reply was modified 7 years, 4 months ago by Possemo.
            #70328
            JDXA
            Participant
              • Topics: 10
              • Replies: 45
              • Total: 55

              Thanks Possemo, I’m going to download and install the v.5.4.11 !
              Because I seen uiFixedImageSlider and you’re right, there’s no this option !

              #70329
              JDXA
              Participant
                • Topics: 10
                • Replies: 45
                • Total: 55

                Ok, I’ve downloaded and istall the V5.4.11 I’m going to test !

                Thanks for your help !

                #70330
                JDXA
                Participant
                  • Topics: 10
                  • Replies: 45
                  • Total: 55

                  YES ! It’s working !

                  I’ve lost all my job because a problem compatibility but no problem, I’m going to rebuild now !

                  Thanks a lot,

                  Your info was in gold !

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