KALYWAY

Forum Replies Created

Viewing 20 posts - 1 through 20 (of 23 total)
  • Author
    Posts
  • in reply to: detect mouse down LUA #10916
    KALYWAY
    Participant
      • Topics: 9
      • Replies: 23
      • Total: 32

      link.panel

      BIG THANKS TO ZEOKA (and the others )
      I HAVE FIXED THIS with your example , but the only way i have found to set the properties is to process with the modulator list , the property editor on the right give no choices to select , modulator name , or “modulatorValue” target
      there is a blank , i have to go to modulator list , and show visible columns concerned , and copy and paste , the items i want to add :

      MOD LIST only way

      REALLY THANKS
      KALYWAY.

      in reply to: detect mouse down LUA #10890
      KALYWAY
      Participant
        • Topics: 9
        • Replies: 23
        • Total: 32

        HELLO MORE DETAILS :

        my first attempt is to set 2 methods :

        combo to knob :

        comb to knob METHOD

        combo to knob lua

        AND knob to combo :

        knob to combo meth

        knob to combo lua

        the result is when i attempt to drag the knob HANGING

        hanging lua

        the second attempt is to add mouse down condition for setting the combo content from the knob , i want to cut this infinite loop causing the hanging…i have added the last method suggestion by atom , more difficult but the others do not work (the second method return false in anyways )

        condition mouse down

        but same result , no synchro values , hanging ……..


        @ZEOKA
        , could you explain more , with code examples or with pictures , how to apply “link modulator to modulator property” in the property editor i can not select anything ….i cannot find links from a modulator to another modulator
        how to process ?
        THANKS TO ALL.
        kalyway

        • This reply was modified 10 years, 9 months ago by KALYWAY.
        • This reply was modified 10 years, 9 months ago by KALYWAY.
        • This reply was modified 10 years, 9 months ago by KALYWAY.
        • This reply was modified 10 years, 9 months ago by KALYWAY.
        • This reply was modified 10 years, 9 months ago by KALYWAY.
        • This reply was modified 10 years, 9 months ago by KALYWAY.
        • This reply was modified 10 years, 9 months ago by KALYWAY.
        • This reply was modified 10 years, 9 months ago by KALYWAY.
        in reply to: detect mouse down LUA #10872
        KALYWAY
        Participant
          • Topics: 9
          • Replies: 23
          • Total: 32

          thank for your infos !

          i have tested your methods , also the hard method , but do not work for my stuff
          i just want to synchronize dragging knob / and changing combo , when i drag the knob the combo change his content to the new content (i have attached a method in the knob modulator value change : knob >>> set combo ) but if i attach same reverse method in the combo box : combo>>>set knob , the ctrlr crash , due i think to an infinite loop created between combo and knob , i can only attach one method in the combo box OR in the knob cannot attach 2 methods (one to combo and one to knob ) , this is the reason i have to trigger mousedown in combo or in the knob , but ctrlr crash also
          i have to find another way to synchronize them ….

          KNOB COMBO

          if any idea welcome !!

          thanks
          kalyway.

          • This reply was modified 10 years, 9 months ago by KALYWAY.
          • This reply was modified 10 years, 9 months ago by KALYWAY.
          in reply to: BAR OR NOT TO BAR #10672
          KALYWAY
          Participant
            • Topics: 9
            • Replies: 23
            • Total: 32

            Interesting

            Is it possible to add
            rounded corner for outline
            and outline thickness
            and remove the possibility to type the value in the bar when we are not in edit mode :) ?
            …Bipolar bars or sliders could be cool too , they could be defined by the default modulator value (uiSliderDoubleClickValue)

            i d’ont know , the settings are the same like a horizontal bar , finally i have to add linearverticalbar to the ctrlr due to issue with the property editor on the right (the sliders off properties is an horizontal bar “linear bar” , if i change linear bar to vertical the property editor switch also to vertical !!!!

            bars

            but i have not found how to display vertical bar in slider style menu , the on ly way for me is to edit ctrlrslider.cpp to adding vertical bar in users prefs settings

            settings

            when i choose uislider from menu panel , it display the vertical bar by default in can roll back to other slider style , but if i roll back , i can not reselect vertical bar from combo box , because by default it display a blank …..

            blank vertical

            kalyway

            • This reply was modified 10 years, 9 months ago by KALYWAY.
            in reply to: BAR OR NOT TO BAR #10644
            KALYWAY
            Participant
              • Topics: 9
              • Replies: 23
              • Total: 32

              There is no vertical bar, only a Vertical slider. You can do a lot with the thumb of the vertical slider so maybe that might help.

              VERTICAL

              I HAVE FIXED the horizontal bar to vertical by modifying some code in juce look and feel and juce slider (minimal modifications do not affect anything existing ! ) , the result is perfect ! but i do not added the choice in slider style , i only modified linear bar to vertical in the code , because i do not have need of the classic horizontal bar

              BUT if you want the code , i can give you the modifications instructions , with this YOU CAN ADD A NEW SLIDER STYLE IN YOUR PROGRAM : THE VERTICAL BAR !

              KALYWAY.

              in reply to: CASCADE MY MENU ? #10600
              KALYWAY
              Participant
                • Topics: 9
                • Replies: 23
                • Total: 32

                No it’s not possible at the moment, only in Lua using the PopupMenu class (what you showed here is a PopupMenu not a ComboBox)

                yes i know this is not a combo box , i have just wanted to show the Principe

                i have to test if the pop up menu lua class do the stuff ! but i cannot find any infos examples about this …

                thank you .

                • This reply was modified 10 years, 10 months ago by KALYWAY.
                in reply to: LSB MSB HELP ME #10582
                KALYWAY
                Participant
                  • Topics: 9
                  • Replies: 23
                  • Total: 32

                  I HAVE JUST TESTED IT IN LOGIC PRO , AND YOUR SIMPLE FIX WORKS , THANKS A LOT !

                  OTHER THING : about the float values edit fix (the first fix roundtoint….)

                  with ctrlr original 1454 from dmg in standalone , IN EDIT MODE when i create a slider with min = 0.1 max= 715 interval 0.1 , the float variation work OK , but when i switch to panel mode to test in the device , the float part do not vary (only integer part ) example i can set only 1 to 715 integer values in device i cannot set 0.1 0.2 0.3 0.5 222.5 etc …)
                  FOR this reason i have modified inline utilities and others for displaying modulator value with float >>> formula >> device

                  but if this problem can be fixed without switching to float some files in sources it can be good !

                  KALYWAY.

                  • This reply was modified 10 years, 10 months ago by KALYWAY.
                  • This reply was modified 10 years, 10 months ago by KALYWAY.
                  • This reply was modified 10 years, 10 months ago by KALYWAY.
                  in reply to: LSB MSB HELP ME #10576
                  KALYWAY
                  Participant
                    • Topics: 9
                    • Replies: 23
                    • Total: 32

                    I’m always interested, i recommend using pastebin for those code snippets or at least enclose them in a <pre> tag.

                    CtrlrModulatorProcessor.cpp near line 340 :

                    http://pastebin.com/tEKfR3TE

                    it works 100% with sliders symetric settings (-24 +24 , -12 +12 , -6 +6) in this case the correction factor is 2 , but when the values are not symmetric (-64 +63 ) in my case the value sent to host is 0 to 1.02 , it’s not really bad but i have corrected factor to 1.99 for a 0 to 1 variation ( for my needs my panel have a lot off sliders with -64 +63 ) , the others sliders are -12+12 the host receive 0 (-12) to 1.02 (+12) it works also !

                    BUT the 0 base is always respected for any min max values in slider properties and with your original code the o base is not respected for negative min/max slider settings and the host receive negative/bad value and do not want to write .

                    BUT if you find a formula that works for all settings (-8 +12 , -6 -2 , -6 +6 , -x + x ….etc)
                    I AM INTERESTED !

                    • This reply was modified 10 years, 10 months ago by KALYWAY.
                    • This reply was modified 10 years, 10 months ago by KALYWAY.
                    • This reply was modified 10 years, 10 months ago by KALYWAY.
                    in reply to: LSB MSB HELP ME #10558
                    KALYWAY
                    Participant
                      • Topics: 9
                      • Replies: 23
                      • Total: 32

                      OK , but when i set a float value in my float slider , if i save the panel , the value are restored OK when i reopen it , in the plugin AU version also !!!!
                      where is the problem ?
                      /////////////////////////////////////////////////////////////////////////////
                      others thing (no relation with the previous problem/fix) :

                      i also work on a fix with negatives values : if i create a normal uislider with -64 +63 range min max interval 1 (no float in this case ) when i write automation in logic pro , or in live ableton , the host do not take the negative part , i have tested this with the last version off AU plugin off ctrlr (no rebuild stuff , the original from dmg 1454 )
                      the expression area is OK for sending sysex on positive -64+63 >>>>> modulatorValue + 64 >>>> sysex formula OK working good
                      but automation writing negative part do not work , automation reading negative part IS OK , THE PROBLEM HAPPEN ONLY IN AUTO WRITE

                      the fix is coming soon !!! (if you are interested)

                      KALYWAY.

                      in reply to: LSB MSB HELP ME #10541
                      KALYWAY
                      Participant
                        • Topics: 9
                        • Replies: 23
                        • Total: 32

                        CtrlrInlineUtilities.h near line 270

                        change this : return roundFloatToInt (minValue + normalized * (maxValue – minValue));

                        to this :
                        return (minValue + normalized * (maxValue – minValue));

                        and in CtrlrModulatorProcessor.cpp near line 45

                        change this : owner.setProperty (Ids::modulatorValue, currentValue);

                        to this :

                        owner.setProperty (Ids::modulatorValue, ( round((currentValue * 10 )) / 10));

                        the round correction is for suppression off over decimals
                        (if you do not that your module° value display : 256.00025451 (for example) ; this is the reason i have added 0.001 to my expression , it fixes my slider to correspond exactly for all values entered with num keyboard >>> values displayed in the lcd hardware )

                        if you find a more precise solution it can be good !

                        also in CtrlrModulatorProcessor.H near line 139

                        change this :

                        int currentValue, currentMidiValue, maxValue, minValue, globalIndex;

                        to this

                        float currentValue, currentMidiValue, maxValue, minValue, globalIndex;

                        no paste bin needed for this changes !

                        kalyway.

                        • This reply was modified 10 years, 10 months ago by KALYWAY.
                        in reply to: LSB MSB HELP ME #10528
                        KALYWAY
                        Participant
                          • Topics: 9
                          • Replies: 23
                          • Total: 32

                          THANK YOU ATOM , i have read some elements , and now it work , i have just add the classic LSB MSB formula with (modulatorValue*10)+0.001
                          in the expression area
                          i have to multi the value by 10 because NOW the modulator display the values in float if i set the slider that ( for example : min =0.1 , max = 715 ; interval = 0.1 ; decimal position 1 ….) >>>> mult 10 for a variation >>> 1 TO 7150
                          i added 0.001 for fixed some round internal stuff .
                          now i have fixed the float handling and variation in edit box , I CAN ENTER FLOAT VALUES IN EDIT BOX DIRECTLY NOW WITH THIS FIX , I HAVE TESTED IN THE ORIGINAL CTRLR AND THE FLOAT HANDLING NOT WORK FOR ME , VER 1444 OSX LION 10.7.4
                          IF YOU ARE INTERESTED WITH THIS FIX , I CAN GIVE YOU THE CODE RELATED

                          FLOAT POINT

                          KALYWAY

                          • This reply was modified 10 years, 10 months ago by KALYWAY.
                          in reply to: HANDLE NEGATIVE VALUES #10526
                          KALYWAY
                          Participant
                            • Topics: 9
                            • Replies: 23
                            • Total: 32

                            tontech suggestion do the stuff !!!! and work well , i just want a simple slider with a standard edit box with values range filter (values entered in keyboard numpad ) i don’t know if the uiFixedImageSlider have a edit box with a range filter that correspond to -64 +63 or 0-127 ? in my case i want a range filter for -64 +63 , when i set this in slider min max setting , the edit box under the slider adjust it self the range filtering , i have not tested with uiFixedImageSlider because the ton tech answer works . 64+modulatorValue >>>> go 0-127 in the SYSEX xx formula , works .

                            thanks.

                            in reply to: HANDLE NEGATIVE VALUES #10468
                            KALYWAY
                            Participant
                              • Topics: 9
                              • Replies: 23
                              • Total: 32

                              maybe this is what you are searching for:
                              “Expression to evaluate when calculating midi message value from modulator…:

                              64 + modulatorValue

                              thank you i have to look at this !

                              • This reply was modified 10 years, 10 months ago by KALYWAY.
                              in reply to: change tabs without mouse 0_O #10416
                              KALYWAY
                              Participant
                                • Topics: 9
                                • Replies: 23
                                • Total: 32

                                i have seen this option , but sometimes the ctrlr crashes with lua enabled , and not want to restart due to the save statement , ( he want to restore the last panel …the panel where the crash happen ) i have finally found a good way without editing binaries :

                                i delete or move the users prefs relative to the bad panel in my ctrlr folder : on mac there is on /Users/username/Library/Preferences

                                and the ctrlr restart blank without panel , and finally i can go to pref/disabling lua .

                                in reply to: UNDO UNDO FUNCTION #10413
                                KALYWAY
                                Participant
                                  • Topics: 9
                                  • Replies: 23
                                  • Total: 32

                                  for the drop bug
                                  do not forget to update the code in ctrlTABcomponent.cpp and in ctrlrgroup.cpp !
                                  with this , the components stop to jump from panel to group , from panel to tab , from tab to panel , from tab to group , etc …)
                                  you can finally (when is locked) drag a tab component or other near a combo box or slider or other without jumping problem.

                                  kalyway.

                                  • This reply was modified 10 years, 10 months ago by KALYWAY.
                                  in reply to: VALUES TO HOST IN EDIT MODE #10410
                                  KALYWAY
                                  Participant
                                    • Topics: 9
                                    • Replies: 23
                                    • Total: 32

                                    ok , ok , you are more correct than me ! , i have activated the values sending in edit mode it’s a personal choices for tests/dev
                                    complete silence in edit mode it’s a good default setting for your software

                                    kalyway.

                                    in reply to: change tabs without mouse 0_O #10404
                                    KALYWAY
                                    Participant
                                      • Topics: 9
                                      • Replies: 23
                                      • Total: 32

                                      hello thank you , i have downloaded the demo , but it not work in my ctrlr rev 1444 , i have loaded this panel in a ctrlr executable i have specially compiled
                                      with no lua calls :

                                      if (isLuaDisabled())
                                      return (true);

                                      try
                                      {
                                      if (o->isValid())

                                      {

                                      //////kalyway lua remove this if crashed methods on panel //////////
                                      luabind::call_function(o->getObject().getObject(), param1, param2);
                                      /////********************************************************//////
                                      }

                                      this executable help me if i make bad stuff with lua ….or incompatibility etc ….

                                      i have looked to your lua methods and now my problem is resolved BIG THANK !!
                                      ( i have forgot to link my combo-box to the changing tab method really really stupid ! ! ! !)

                                      KALYWAY!

                                      • This reply was modified 10 years, 10 months ago by KALYWAY.
                                      in reply to: UNDO UNDO FUNCTION #10359
                                      KALYWAY
                                      Participant
                                        • Topics: 9
                                        • Replies: 23
                                        • Total: 32

                                        i have also added this in the menu component , see the picture , the code is easy , it’s a good idea or not ? i think finding the unlock switch in component section at the right column take more time than this ………

                                        menu++

                                        in reply to: UNDO UNDO FUNCTION #10357
                                        KALYWAY
                                        Participant
                                          • Topics: 9
                                          • Replies: 23
                                          • Total: 32

                                          Could you explain whats going on here ?

                                          ////kalyway  add this for the drag component bug in parent box (in edit mode ) ///
                                             
                                          for (int i = 0; i < getOwner().getSelection().getNumSelected(); ++i)
                                           {
                                              CtrlrComponent* const c = getOwner().getSelection().getSelectedItem (i);
                                             
                                              if ((bool)c->getProperty(Ids::componentIsLocked) == true)
                                                  continue;
                                          ////////////////---------------------------------------------------/////////////////
                                             {
                                              if (dragSourceDetails.description == "__ctrlr_component_selection")
                                                 
                                              {
                                          

                                          If you remove your comments then code that stays makes no logical sense to me, should there be “else” or am i missing something very obvious.

                                          if (something)
                                            continue;
                                          {
                                             some other code
                                          }
                                          

                                          yes , it’s not logic but it work ! …., you can replace continue with return
                                          (i have replaced it ), and it work also , if the component is in locked state , the dropping is not allowed

                                          in reply to: UNDO UNDO FUNCTION #10345
                                          KALYWAY
                                          Participant
                                            • Topics: 9
                                            • Replies: 23
                                            • Total: 32

                                            http://pastebin.com/rwE8iPx5

                                            this is the link off the pasted stuff
                                            fix for the dropped items bug

                                            kalyway

                                            • This reply was modified 10 years, 10 months ago by KALYWAY.
                                          Viewing 20 posts - 1 through 20 (of 23 total)
                                          Ctrlr