Cramp

Forum Replies Created

Viewing 20 posts - 21 through 40 (of 66 total)
  • Author
    Posts
  • in reply to: Changing Images – what could be wrong in that LUA code #4462
    Cramp
    Participant
      • Topics: 11
      • Replies: 66
      • Total: 77
      "atom":f95es58f wrote:
      I really can’t debug this cause only you know how you imagined this to work. I can tell you:
      [/quote:f95es58f]
      Well, at least I cannot change the image of the Modulator. The thing is why I’m asking is that in build 1047 I could change Image of the modulator. In build 1056 – I can’t do it.
      in reply to: Changing Images – what could be wrong in that LUA code #4461
      Cramp
      Participant
        • Topics: 11
        • Replies: 66
        • Total: 77
        "atom":2ytp1jfd wrote:
        I really can’t debug this cause only you know how you imagined this to work. I can tell you:
        doing this is a bad idea
        [code:2ytp1jfd]
        comp = filter_slope_mod:getComponent()
        comp:setPropertyString ("uiImageButtonResource" , FilterSlopeTypeOn)
        [/code:2ytp1jfd]

        always check if the object is valid, otherwise the method might be disabled on load
        [code:2ytp1jfd]
        comp = filter_slope_mod:getComponent()
        if comp ~= nil then
        comp:setPropertyString ("uiImageButtonResource" , FilterSlopeTypeOn)
        end
        [/code:2ytp1jfd][/quote:2ytp1jfd]

        ok, I have added this into the code. Thank you mate <img decoding=” title=”Smile” />
        Have you seen XML data and extra pictures? The strange behavior of the CtrlR
        Check your spelling of properties.

        in reply to: Changing Images – what could be wrong in that LUA code #4459
        Cramp
        Participant
          • Topics: 11
          • Replies: 66
          • Total: 77
          "atom":1sfscrfc wrote:
          Can you see there are two "r" in the property name, also there is no such property as uiFixedImageSliderResource it’s always "uiImageSliderResource"[/quote:1sfscrfc]
          Yes I noticed that. I used uiImageSliderResource property. But that didn’t help me

          See the code –
          1st button activates the single filter
          [code:1sfscrfc]FilterSwitch = function(modulator, newValue)

          — Images ON Status

          MultiFilterTypeOn = "sixfold_selection_filter"
          FilterDistSliderOn = "nord_led_pot_full"
          SingleFilterTypeOn = "sixfold_selection_filter"
          FilterSlopeTypeOn = "led_three_upward2"

          — Images OFF Status

          MultiFilterTypeOff = "sixfold_selection_filteroff"
          FilterDistSliderOff = "nord_led_pot_full_off"
          SingleFilterTypeOff = "sixfold_selection_filteroff"
          FilterSlopeTypeOff = "led_three_upward_off"

          — When click this know Filter mode changes to Multi

          FilterMode = 0
          if FilterMode == 0 then

          — filterslope modulator
          filter_slope_mod = panel:getModulatorByName("FilterSlope")

          — Single Filter Type modulator
          single_filter_mod = panel:getModulatorByName("FilterType")

          — Multi Filter Type and Led Modulators
          multi_filter_mod = panel:getModulatorByName("FilterEnvCtrl")

          — Frequency2/Dist Slider modulator
          freq_dist_mod = panel:getModulatorByName("FilterFreq2")

          — This knob on click disables Multi Filter type that is why Filter Slope and Single Filter Type knobs
          — need to be enabled. And MultiFilter knob plus Filter2 need to be disabled. Filter2 runs with CC 114

          — ENABLING SINGLE FILTER
          comp = filter_slope_mod:getComponent()
          comp:setPropertyString ("uiImageButtonResource" , FilterSlopeTypeOn)

          comp = single_filter_mod:getComponent()
          comp:setPropertyString ("uiImageButtonResource" , SingleFilterTypeOn)

          — DISABLING MULTI FILTER
          comp = multi_filter_mod:getComponent()
          comp:setPropertyString ("uiImageButtonResource" , MultiFilterTypeOff)

          comp = freq_dist_mod:getComponent()
          comp:setPropertyString ("uiImageSliderResource" , FilterDistSliderOff)


          — Enabling Dist Slider if DIST LP (58) value is Selected on Filter Type and
          — set MIDI CC 114 to Frequency2/Dist Slider modulator

          if freq_dist_mod ~= nil then
          comp = freq_dist_mod:getComponent()
          if newValue == 5 then

          comp:setPropertyString ("uiImageSliderResource" , FilterDistSliderOn)
          filter_slope_mod:setModulatorValue(1, false, true, true)
          else

          comp:setPropertyString ("uiImageSliderResource" , FilterDistSliderOff)
          filter_slope_mod:setModulatorValue(2, false, true, true)

          end
          end


          — Disabling Filter Slope if BR (35) is Selected on Filter Type

          if newValue == 3 then
          z = filter_slope_mod:getComponent()
          z:setPropertyString ("uiImageButtonResource" , "led_three_upward_off")
          else
          z = filter_slope_mod:getComponent()
          z:setPropertyString ("uiImageButtonResource" , "led_three_upward2")

          end


          end

          mod = panel:getModulatorByName("FilterFreq2")
          if mod ~= nil then
          midi = mod:getMidiMessage()
          if midi ~= nil then
          if newValue == 1 then
          midi:setPropertyInt ("midiMessageCtrlrNumber", 59)
          else
          midi:setPropertyInt ("midiMessageCtrlrNumber", 114)
          end
          end
          end
          end[/code:1sfscrfc]
          This button activates Multi Filter and disable visualuzation of Single filter
          [code:1sfscrfc]FilterSwitch2 = function(modulator, newValue)

          — Images ON Status

          MultiFilterTypeOn = "sixfold_selection_filter"
          FilterDistSliderOn = "nord_led_pot_full"
          SingleFilterTypeOn = "sixfold_selection_filter"
          FilterSlopeTypeOn = "led_three_upward2"

          — Images OFF Status

          MultiFilterTypeOff = "sixfold_selection_filteroff"
          FilterDistSliderOff = "nord_led_pot_full_off"
          SingleFilterTypeOff = "sixfold_selection_filteroff"
          FilterSlopeTypeOff = "led_three_upward_off"

          — When click this know Filter mode changes to Multi

          FilterMode = 1

          if FilterMode == 1 then

          — filterslope modulator
          filter_slope_mod = panel:getModulatorByName("FilterSlope")

          — Single Filter Type modulator
          single_filter_mod = panel:getModulatorByName("FilterType")

          — Multi Filter Type and Led Modulators
          multi_filter_mod = panel:getModulatorByName("FilterEnvCtrl")

          — Frequency2/Dist Slider modulator
          freq_dist_mod = panel:getModulatorByName("FilterFreq2")

          — This knob on click enables Multi Filter type that is why Filter Slope and Single Filter Type knobs
          — need to be disabled. And MultiFilter knob plus Filter2 need to be enabled. Filter2 runs with CC 59

          — DISABLING SINGLE FILTER
          comp = filter_slope_mod:getComponent()
          comp:setPropertyString ("uiImageButtonResource" , FilterSlopeTypeOff)

          comp = single_filter_mod:getComponent()
          comp:setPropertyString ("uiImageButtonResource" , SingleFilterTypeOff)

          — ENABLING MULTI FILTER
          comp = multi_filter_mod:getComponent()
          comp:setPropertyString ("uiImageButtonResource" , MultiFilterTypeOn)

          comp = freq_dist_mod:getComponent()
          comp:setPropertyString ("uiImageSliderResource" , FilterDistSliderOn)

          end

          mod = panel:getModulatorByName("FilterFreq2")
          if mod ~= nil then
          midi = mod:getMidiMessage()
          if midi ~= nil then
          if newValue == 1 then
          midi:setPropertyInt ("midiMessageCtrlrNumber", 114)
          else
          midi:setPropertyInt ("midiMessageCtrlrNumber", 59)
          end
          end
          end

          end[/code:1sfscrfc]

          I can’t get – this ImageResource of the "FilterFreq2" modulator is not changing when I requested via Script.

          You see Image is not changing if I select the Image from the list
          [img:1sfscrfc]http://dl.dropbox.com/u/4202790/slideroff.png[/img:1sfscrfc] should be OFF
          [img:1sfscrfc]http://dl.dropbox.com/u/4202790/slideroon.png[/img:1sfscrfc] should be ON

          The images located in C:Users$MYUSERNAMEAppDataRoamingCtrlrresources and both OFF and ON Images are ok

          The XML file of Modulator (taken from Utility)
          [code:1sfscrfc]<?xml version="1.0" encoding="UTF-8"?>

          <modulator modulatorValueExpression="modulatorValue" modulatorValueExpressionReverse="midiValue"
          modulatorIsStatic="0" modulatorGlobalVariable="-1" modulatorMuteOnStart="0"
          modulatorExcludeFromSnapshot="0" modulatorLinkedToPanelProperty="– None"
          modulatorLinkedToModulatorProperty="– None" modulatorLinkedToModulator="– None"
          modulatorLinkedToModulatorSource="1" modulatorLinkedToComponent="0"
          modulatorBaseValue="0" modulatorCustomIndex="0" modulatorCustomIndexGroup="0"
          modulatorVstExported="1" luaModulatorValueChange="" modulatorMax="127"
          modulatorValue="85" vstIndex="13" name="FilterFreq2" modulatorMin="0">
          <midi midiMessageType="0" midiMessageChannelOverride="0" midiMessageChannel="1"
          midiMessageCtrlrNumber="114" midiMessageCtrlrValue="127" midiMessageMultiList=""
          midiMessageSysExFormula="F0 00 F7"/>
          <component componentLabelPosition="top" componentLabelJustification="centred"
          componentLabelHeight="14" componentLabelWidth="0" componentLabelVisible="0"
          componentLabelAlwaysOnTop="0" componentSentBack="0" componentLabelColour="0xff000000"
          componentLabelFont="&lt;Sans-Serif&gt;;12;0;0;0;0;1" componentVisibleName="FilterFreq1"
          componentMouseCursor="1" componentGroupName="" componentSnapSize="8"
          componentIsLocked="0" componentRadioGroupId="0" componentRadioGroupNotifyMidi="1"
          componentVisibility="1" componentEffect="0" componentEffectRadius="0"
          componentEffectColour="0xff000000" componentEffectOffsetX="0"
          componentEffectOffsetY="0" componentEffectAlpha="0" uiImageSliderResource="nord_led_pot_full_off"
          resourceImageWidth="80" resourceImageHeight="80" resourceImagePaintMode="8"
          resourceImageOrientation="0" uiSliderStyle="RotaryVerticalDrag"
          uiSliderMin="0" uiSliderMax="1" uiSliderInterval="1" uiSliderValueHeight="12"
          uiSliderValuePosition="0" uiSliderValueWidth="64" uiSliderValueTextColour="ffffffff"
          uiSliderValueBgColour="ffffff" uiSliderRotaryOutlineColour="0xff0000ff"
          uiSliderRotaryFillColour="0xff0000ff" uiSliderThumbColour="0xffff0000"
          uiSliderValueHighlightColour="0xff0000ff" uiSliderValueOutlineColour="0"
          uiSliderTrackColour="0xff0f0f0f" uiFixedSliderContent="12Hz=0&#10;14Hz=1&#10;15Hz=2&#10;16Hz=3&#10;17Hz=4&#10;18Hz=5&#10;19Hz=6&#10;20Hz=7&#10;21Hz=8&#10;22Hz=9&#10;24Hz=10&#10;25Hz=11&#10;26Hz=12&#10;28Hz=13&#10;30Hz=14&#10;31Hz=15&#10;33Hz=16&#10;35Hz=17&#10;37Hz=18&#10;40Hz=19&#10;42Hz=20&#10;45Hz=21&#10;47Hz=22&#10;50Hz=23&#10;53Hz=24&#10;56Hz=25&#10;60Hz=26&#10;63Hz=27&#10;67Hz=28&#10;71Hz=29&#10;75Hz=30&#10;80Hz=31&#10;85Hz=32&#10;90Hz=33&#10;95Hz=34&#10;101Hz=35&#10;107Hz=36&#10;113Hz=37&#10;120Hz=38&#10;127Hz=39&#10;135Hz=40&#10;143Hz=41&#10;151Hz=42&#10;160Hz=43&#10;170Hz=44&#10;180Hz=45&#10;191Hz=46&#10;202Hz=47&#10;214Hz=48&#10;227Hz=49&#10;241Hz=50&#10;255Hz=51&#10;270Hz=52&#10;286Hz=53&#10;303Hz=54&#10;322Hz=55&#10;341Hz=56&#10;361Hz=57&#10;383Hz=58&#10;406Hz=59&#10;430Hz=60&#10;456Hz=61&#10;483Hz=62&#10;512Hz=63&#10;543Hz=64&#10;575Hz=65&#10;609Hz=66&#10;646Hz=67&#10;684Hz=68&#10;725Hz=69&#10;769Hz=70&#10;815Hz=71&#10;863Hz=72&#10;915Hz=73&#10;970Hz=74&#10;1028Hz=75&#10;1089Hz=76&#10;1155Hz=77&#10;1224Hz=78&#10;1297Hz=79&#10;1374Hz=80&#10;1457Hz=81&#10;1544Hz=82&#10;1636Hz=83&#10;1734Hz=84&#10;1838Hz=85&#10;1948Hz=86&#10;2064Hz=87&#10;2188Hz=88&#10;2319Hz=89&#10;2457Hz=90&#10;2604Hz=91&#10;2760Hz=92&#10;2925Hz=93&#10;3100Hz=94&#10;3286Hz=95&#10;3482Hz=96&#10;3690Hz=97&#10;3911Hz=98&#10;4145Hz=99&#10;4393Hz=100&#10;4656Hz=101&#10;4934Hz=102&#10;5230Hz=103&#10;5542Hz=104&#10;5874Hz=105&#10;6225Hz=106&#10;6598Hz=107&#10;6992Hz=108&#10;7411Hz=109&#10;7854Hz=110&#10;8324Hz=111&#10;8822Hz=112&#10;9350Hz=113&#10;9909Hz=114&#10;10502Hz=115&#10;11130Hz=116&#10;11796Hz=117&#10;12501Hz=118&#10;13249Hz=119&#10;14042Hz=120&#10;14882Hz=121&#10;15772Hz=122&#10;16715Hz=123&#10;17715Hz=124&#10;18775Hz=125&#10;19898Hz=126&#10;21000Hz=127"
          uiSliderValueFont="&lt;Sans-Serif&gt;;12;1;0;0;0;1" uiSliderIncDecButtonColour="0xff0000ff"
          uiSliderIncDecTextColour="0xffffffff" uiSliderValueTextJustification="centred"
          uiSliderVelocitySensitivity="1" uiSliderVelocityThreshold="1"
          uiSliderVelocityOffset="0" uiSliderVelocityMode="0" uiSliderVelocityModeKeyTrigger="1"
          uiSliderSpringMode="0" uiSliderSpringValue="0" uiSliderMouseWheelInterval="1"
          uiSliderPopupBubble="0" componentRectangle="822 311 56 56" componentSnapSizeAllow="0"
          uiType="uiFixedImageSlider" componentLayerUid="f7e09d550e00000080d7220000000000"/>
          </modulator>[/code:1sfscrfc]

          in reply to: Changing Images – what could be wrong in that LUA code #4457
          Cramp
          Participant
            • Topics: 11
            • Replies: 66
            • Total: 77
            "atom":2iyvlhcw wrote:
            I looked at your panel but i’m afraid i don’t understand what you are trying to achieve and what’s nor working. I can work with simple examples if can provide them. If my example panel is working then the midi-cc and resource changing properties are working and so your code should work also.[/quote:2iyvlhcw]

            I’m trying to get visualizations working according to what is the filter type is choosen. Filter type changes CC of the modulator. The thing is that modulator component type is uiFixedImageSlider. if i try to recreate that modulator deleting the old one first then I cannot add it onto panel – I cannot see it. I can see the other types of Slider components. But uiFixedImageSlider cannot be added.
            Also if you look at picture below and you may see that rows with names as marked red are appeared when one of the modulators value change but picture (and modulator Image does exist) doesn’t change mate!!!

            [img:2iyvlhcw]http://dl.dropbox.com/u/4202790/slider.png[/img:2iyvlhcw]

            The image name when modulator should be shown as OFF is "nord_let_pot_full_off". When it should be ON the Image resource needs to be changed to "nord_led_pot_full". In previous CtrlR build 1047 the image was changing by script. But after I have installed the 1056 build the image resource of the uiFixedImageSlider component selected on picture above is not changing. I can select manually picture in Image Resource properties – nothing happends. If I close CTrlR and re-open it then changes applies.
            I’m using Windows 7 32 bit.

            Also I tried to uninstall CtrlR. And then do a clean install – didn’t help

            The I uninstall build 1056 and installed build 1047. Then Image changes work fine.

            P.S. MIDI CC control value change is working on 1056 CtrlR build.

            in reply to: Changing Images – what could be wrong in that LUA code #4455
            Cramp
            Participant
              • Topics: 11
              • Replies: 66
              • Total: 77
              "atom":2gbqxpy4 wrote:
              Could you be more specific ? With the latest nightly the panel i’ve attached here, is it working ?[/quote:2gbqxpy4]
              I sent PM to you with all details recently. Have you got it?

              Before you implemented Nightly with new method to control MIDI CC values it was 1047. Vizualizations were working as programmed. After I did install the new one Nightly they stoped working as expected but your example worked in tha Nightly –
              Could you please verify if panel I sent you is working as I described in PM?

              in reply to: Changing Images – what could be wrong in that LUA code #4453
              Cramp
              Participant
                • Topics: 11
                • Replies: 66
                • Total: 77
                "atom":3fw2zzbd wrote:
                Does the panel i’ve sent work ?[/quote:3fw2zzbd]
                Property worked but my stoped working… something wrong with Nightly
                in reply to: Changing Images – what could be wrong in that LUA code #4451
                Cramp
                Participant
                  • Topics: 11
                  • Replies: 66
                  • Total: 77
                  "atom":t7n6vy8d wrote:
                  I’ve placed the image resource demo and the midi controller demo onto a panel. It should help you with those two issues.

                  [attachment=0:t7n6vy8d]Property Demo_1_0_Buttcheek_201206211522.bpanelz[/attachment:t7n6vy8d][/quote:t7n6vy8d]

                  I tried eveything but it doesn’t work for me with latest Nightly as on Mac and Win. Do not understand why. I sent PM the bpanel to you. could you please assist?

                  in reply to: Changing Images – what could be wrong in that LUA code #4449
                  Cramp
                  Participant
                    • Topics: 11
                    • Replies: 66
                    • Total: 77
                    "atom":1qnxx4ev wrote:
                    Sure, here is how i change a CC number from 32 to 64
                    [/quote:1qnxx4ev]
                    thank mate for an example. will check this code at home. but really cannot understand the strange slider behaviour and its image resource wrong value.
                    in reply to: Changing Images – what could be wrong in that LUA code #4447
                    Cramp
                    Participant
                      • Topics: 11
                      • Replies: 66
                      • Total: 77
                      "atom":2l6zgz6m wrote:
                      I’m outta town tofay but ill post a complete example later today.[/quote:2l6zgz6m]
                      can I have an example mate?
                      in reply to: Changing Images – what could be wrong in that LUA code #4446
                      Cramp
                      Participant
                        • Topics: 11
                        • Replies: 66
                        • Total: 77
                        "atom":1t2y57k6 wrote:
                        That should work now, i had to fix some stuff, the getMidiMessage() method should work and you should be able to set it’s properties.[/quote:1t2y57k6]
                        I didn’t try that method yet but the only issue I faced was if I change Image Resource of modulator (selecting images from the list) it doesn’t change in fact on panel. When I restart the CtrlR application. Changes are applied. Strange thing. Use last Nightly on Windows 1053.
                        in reply to: Changing Images – what could be wrong in that LUA code #4445
                        Cramp
                        Participant
                          • Topics: 11
                          • Replies: 66
                          • Total: 77
                          "atom":x9t8okc3 wrote:
                          That should work now, i had to fix some stuff, the getMidiMessage() method should work and you should be able to set it’s properties.[/quote:x9t8okc3]
                          thanks mate. gonna check Nightly
                          in reply to: a killer feature :) #4360
                          Cramp
                          Participant
                            • Topics: 11
                            • Replies: 66
                            • Total: 77
                            "atom":e4e0hwt9 wrote:
                            I have a question about this feature in general, do you think that it’s a good idea to add additional download options in the Device Database for downloading instances of AU/VST/Standalone for each platform, provided by panel authors, and in consequence add an auto-update feature that will check for newer versions of a perticular instance and inform the user of such an event in Ctrlr. This would require for the panel creator to upload each instance (vst/au/standalone mac/win/linux) to the device database

                            I was also considering automating this, that is adding an option that would automagicly pack the panel into the requested binary and send that to the user, but that would require changing the hosting provider from sf.net to something else. I’d need to be able to run WINE to update the windows binaries on the server side, it’s impossible in the current state.

                            Or is it maybe best to leave the distribution of instances to the panel creators and let them deal with versions updates etc.

                            Any thoughts ?[/quote:e4e0hwt9]

                            As for me I could only VST for DAW on Windows, MAC AU and VST.. but not linux.
                            I would prefer to upload instances by myself. It doesn’t take to much time. Nice feature by the way

                            in reply to: Changing Images – what could be wrong in that LUA code #4443
                            Cramp
                            Participant
                              • Topics: 11
                              • Replies: 66
                              • Total: 77
                              "atom":g4a4pxoh wrote:
                              I’m outta town tofay but ill post a complete example later today.[/quote:g4a4pxoh]
                              thanks mate
                              in reply to: Changing Images – what could be wrong in that LUA code #4441
                              Cramp
                              Participant
                                • Topics: 11
                                • Replies: 66
                                • Total: 77
                                "atom":1qhay9jr wrote:
                                the properties have special names those visible in the properties pane are only friendly names, have a look here http://ctrlrv4.svn.sourceforge.net/view … rlrIDs.xml for mappings, the cc number will be midiMessageCtrlrNumber, but this is the property of the midi message object not the modulator or the component you should use the getMidiMessage() method of the modulator object to get it’s midi message object.[/quote:1qhay9jr]

                                ok, I created two LUA scritps – one is assigned to Single FIlter knob modulator and another one to Multi Filter Knob modulator.

                                Firstly, they were also haven’t display the visualization as I requested, I checked your CtrlR ID values and found out that I used[b:1qhay9jr] "uiImageResource"[/b:1qhay9jr] which did nothing for me instead of using the right ones as shown in your ID table – [b:1qhay9jr]"uiImageButtonResource"[/b:1qhay9jr] or [b:1qhay9jr]"uiImageSliderResource"[/b:1qhay9jr]. So that is clear for me know.

                                1st script – works fine – visualizations working properly
                                [code:1qhay9jr]FilterSwitch = function(modulator, newValue)

                                — Images for filters on of are sixfold_selection_filteroff and sixfold_selection_filter
                                — Images for filte slope are led_three_upward2 and led_three_upward_off
                                — Images for Slider nord_led_pot_full_off and nord_led_pot_full

                                — Slider FilterFreq2 in Single Mode CC is 114 and in Multu Mode CC is 59

                                — filterslope modulator
                                fs = panel:getModulatorByName("FilterSlope")

                                — Single Filter Type modulator
                                sft = panel:getModulatorByName("FilterType")

                                — Multi Filter Type and Led Modulators
                                mft = panel:getModulatorByName("FilterEnvCtrl")
                                mftl = panel:getModulatorByName("FilterEnvCtrlLed")

                                — Filter Freq Dist slider
                                ff = panel:getModulatorByName("FilterFreq2")

                                filtermode=1

                                if filtermode == 1 then
                                z = sft:getComponent()
                                z:setPropertyString ("uiImageButtonResource" , "sixfold_selection_filter")
                                z = fs:getComponent()
                                z:setPropertyString ("uiImageButtonResource" , "led_three_upward2")
                                z = ff:getComponent()
                                z:setPropertyString ("uiImageSliderResource" , "nord_led_pot_full_off")
                                z = mft:getComponent()
                                z:setPropertyString ("uiImageButtonResource" , "sixfold_selection_filteroff")
                                end


                                — Enabling Dist Slider if DIST LP (58) is Selected on Filter Type

                                if newValue == 5 then
                                z = ff:getComponent()
                                z:setPropertyString ("uiImageSliderResource" , "nord_led_pot_full")
                                fs:setModulatorValue(1, false, true, true)
                                else
                                z = ff:getComponent()
                                z:setPropertyString ("uiImageSliderResource" , "nord_led_pot_full_off")
                                fs:setModulatorValue(2, false, true, true)
                                end


                                — Disabling Filter Slope if BR (35) is Selected on Filter Type

                                if newValue == 3 then
                                z = fs:getComponent()
                                z:setPropertyString ("uiImageButtonResource" , "led_three_upward_off")
                                else
                                z = fs:getComponent()
                                z:setPropertyString ("uiImageButtonResource" , "led_three_upward2")

                                end
                                end[/code:1qhay9jr]

                                2nd script -visualizations working properly as well
                                [code:1qhay9jr]–
                                — Called when a modulator value changes
                                — @modulator http://ctrlr.org/api/class_ctrlr_modulator.html
                                — @newValue new numeric value of the modulator

                                FilterSwitch2 = function(modulator, newValue)
                                — Images for filters on of are sixfold_selection_filteroff and sixfold_selection_filter
                                — Images for filte slope are led_three_upward2 and led_three_upward_off
                                — Images for Slider nord_led_pot_full_off and nord_led_pot_full

                                — Slider FilterFreq2 in Single Mode CC is 114 and in Multu Mode CC is 59

                                — filterslope modulator
                                fs = panel:getModulatorByName("FilterSlope")

                                — Single Filter Type modulator
                                sft = panel:getModulatorByName("FilterType")

                                — Multi Filter Type and Led Modulators
                                mft = panel:getModulatorByName("FilterEnvCtrl")

                                — Filter Freq Dist slider
                                ff = panel:getModulatorByName("FilterFreq2")

                                filtermode=2

                                if filtermode == 2 then
                                if fs ~= nil and sft ~= nil and ff ~= nil and mft ~= nil and mftl ~= nil then
                                z = fs:getComponent()
                                z:setPropertyString ("uiImageButtonResource" , "led_three_upward_off")
                                z = sft:getComponent()
                                z:setPropertyString ("uiImageButtonResource" , "sixfold_selection_filteroff")
                                z = ff:getComponent()
                                z:setPropertyString ("uiImageSliderResource" , "nord_led_pot_full")
                                z = mft:getComponent()
                                z:setPropertyString ("uiImageButtonResource" , "sixfold_selection_filter")

                                — Assign to FilterFreq2 CC number 59

                                xx=ff:getMidiMessage()

                                end
                                else
                                if fs ~= nil and sft ~= nil and ff ~= nil and mft ~= nil and mftl ~= nil then
                                z = fs:getComponent()
                                z:setPropertyString ("uiImageButtonResource" , "led_three_upward2")
                                z = sft:getComponent()
                                z:setPropertyString ("uiImageButtonResource" , "sixfold_selection_filter")
                                z = ff:getComponent()
                                z:setPropertyString ("uiImageSliderResource" , "nord_led_pot_full_off")
                                z = mft:getComponent()
                                z:setPropertyString ("uiImageButtonResource" , "sixfold_selection_filteroff")
                                filtermode=1

                                — Assign to FilterFreq2 CC number 114

                                end
                                end

                                end[/code:1qhay9jr]
                                But if you may see there is a code within that 2nd script . I tried to call method you have suggested to get modulator MIDI message.
                                [code:1qhay9jr]
                                — Assign to FilterFreq2 CC number 59

                                xx=ff:getMidiMessage()
                                [/code:1qhay9jr]

                                This code gives an error
                                [img:1qhay9jr]http://dl.dropbox.com/u/4202790/error2.png[/img:1qhay9jr]

                                Seems it is not registered in CtrlR.
                                I wonder is there any other way to set the CC value to modulator using LUA code? I wish I could find an examples. But nothing

                                in reply to: Changing Images – what could be wrong in that LUA code #4439
                                Cramp
                                Participant
                                  • Topics: 11
                                  • Replies: 66
                                  • Total: 77
                                  "atom":2zsls0nb wrote:
                                  Definetly using "." for object operations os wrong, you got some of it right and some wrong always use ":" for object operations
                                  [code:2zsls0nb]
                                  x = fs.getComponent() — WRONG
                                  x = fs:getComponent() — CORRECT
                                  [/code:2zsls0nb][/quote:2zsls0nb]
                                  hmmm,

                                  will fix…didn’t notice that.thanks mate
                                  what about the way setting the different value for MIDI CC Controller?
                                  like x:setPropertyInt("MIDI Controller",value)?

                                  in reply to: a killer feature :) #4356
                                  Cramp
                                  Participant
                                    • Topics: 11
                                    • Replies: 66
                                    • Total: 77
                                    "atom":12sqpgiu wrote:
                                    Live does not export anything on MAC it just opens Ctrlr as a VST plugin (the VST is in the .dmg file you download)[/quote:12sqpgiu]
                                    my bad, missed that. )
                                    in reply to: a killer feature :) #4354
                                    Cramp
                                    Participant
                                      • Topics: 11
                                      • Replies: 66
                                      • Total: 77
                                      "atom":2qw7kftp wrote:
                                      If you open Ctrlr as a VST or in any other VST host (Live, Reaper) it will export a VST version. It always exports itself.[/quote:2qw7kftp]
                                      Vst on Mac should be with ".vst" extension right? I didn’t know that Live exports VST on Mac. Logic did export AU with ".component" extension
                                      in reply to: a killer feature :) #4352
                                      Cramp
                                      Participant
                                        • Topics: 11
                                        • Replies: 66
                                        • Total: 77
                                        "atom":cln4l7lo wrote:
                                        Don’t worry about the version difference it’s a SVN thing, it’s ok it always will be one smaller.

                                        The Unknown paramters are weird they should be named, and not the Visible Name but the Modulator Name is used, could someone enlighten mi on how to add a AU instrument in Logic, i’ll be able to debug it then, i don’t know Logic at all so i can’t help really. Please write in points on how to add a AU as an instrument in Logic.[/quote:cln4l7lo]

                                        Just spoke to friend of mine who is using Cubase on Mac. He said that Cubase uses VST instead of AU. As far as I know CtrlR from DAW on Mac exports only AU and on Windows only "dll" file. Is there any plans to do export VST for Cubase users?

                                        in reply to: midiMessageRecieved values for modulators #4430
                                        Cramp
                                        Participant
                                          • Topics: 11
                                          • Replies: 66
                                          • Total: 77
                                          "Cramp":35vxwyz2 wrote:
                                          "atom":35vxwyz2 wrote:
                                          that the program data starts at byte 41 (16 bytes for name, 16 spare bytes, 2 bytes that make the version and the message header). So the program data is at byte 41 to the end -1 (-1 cause sysex ends with F7 always and it’s not part of the data).[/quote:35vxwyz2]
                                          Atom, didn;t noticed the calculation first time. how you get to number 41? (16+16+16+2) =50? where are my calculations goes wrong? <img decoding=” title=”Smile” />[/quote:35vxwyz2]
                                          I’m sorry. Got it =)
                                          in reply to: midiMessageRecieved values for modulators #4429
                                          Cramp
                                          Participant
                                            • Topics: 11
                                            • Replies: 66
                                            • Total: 77
                                            "atom":44n5s2n4 wrote:
                                            that the program data starts at byte 41 (16 bytes for name, 16 spare bytes, 2 bytes that make the version and the message header). So the program data is at byte 41 to the end -1 (-1 cause sysex ends with F7 always and it’s not part of the data).[/quote:44n5s2n4]
                                            Atom, didn;t noticed the calculation first time. how you get to number 41? (16+16+16+2) =50? where are my calculations goes wrong? <img decoding=” title=”Smile” />
                                          Viewing 20 posts - 21 through 40 (of 66 total)
                                          Ctrlr