panel construction problematic

Home Forums General Panels, Components, Macros panel construction problematic

Viewing 18 posts - 21 through 38 (of 38 total)
  • Author
    Posts
  • #26810
    zeoka
    Participant
      • Topics: 73
      • Replies: 466
      • Total: 539
      • ★★★

      I will post my “recette” here with few mods
      that could be useful for big synths

      #26812
      dasfaker
      Keymaster
        • Topics: 80
        • Replies: 793
        • Total: 873
        • ★★★

        In the code you posted above you say
        if panel focused on sound 1 = “assign sound number” value

        What happens when you receive messages on a part the panel has no focus?

        In Ableton, if you want to automate a modulator you have to click it. If you only have one modulator for cutoff, how can you select the cuttof of another part, if the modulator is the same?

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

          if you focus on sound1
          and filt1 ctf is linked to vst1 and vice versa
          AND ONLY “Vstxx” mods ARE EXPORTED you can I think

          In my mind I’ve separated
          vst mods
          and editor mods
          “What happens when you receive messages on a part the panel has no focus?”
          from the DAW ? from the synth ?
          no problem normally

          • This reply was modified 9 years, 8 months ago by zeoka.
          • This reply was modified 9 years, 8 months ago by zeoka.
          #26818
          dasfaker
          Keymaster
            • Topics: 80
            • Replies: 793
            • Total: 873
            • ★★★

            So you have 16 mods for cutoff?

            • This reply was modified 9 years, 8 months ago by dasfaker.
            #26820
            zeoka
            Participant
              • Topics: 73
              • Replies: 466
              • Total: 539
              • ★★★

              noooooooo !
              one ctf. vstexport to 0
              64 “vst” mods assignables for ex . vstexport to 1

              using intensive linking via LUA and if soundfocus == partbyte of vst1 mod(see my firt pic) there is 2 combos:one to select param ,other to select sound nb ;this is “partbyte”

              when you will move ctf on focus sound1 this will move vst1 so ableton will have vst1
              chose vst2 params with combo ex ctf in sound 2
              switch to part 2
              move ctf then ableton will get vst2

              may be it will be possible to change NAME mod
              ex vst1 become ctf1 showed in the DAW but that’s a plus

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

                Hi Dasfaker
                Started yesterday in night
                today I wasn’t in my home
                i’ll post tomorrow
                if the “dynamic linking” follows that will be very cool

                #26869
                dasfaker
                Keymaster
                  • Topics: 80
                  • Replies: 793
                  • Total: 873
                  • ★★★

                  Hi Zeoka. I finally understood the way you are using the panel. Unfortunately, my Virus panel works in a total different way, so maybe you can’t extract from it something useful for you related to linked modulators.

                  Doing it your way can be very useful to reduce the amount of modulators needed for a multi synth, but at the same time you loose flexibility (and it can be a Lua nightmare).

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

                    Hi
                    You’re right 😀 : many brainstorms but it is a beginning of a start that will be broken and broken…
                    the “dynamic” linking by LUA is great and bi-directional
                    the midi messages sent are correct and not doubled
                    sad it’s so complex to finalize
                    May be in team we can do something..
                    However I’m aware of your explanations

                    you can switch between the 3 filt cutoff
                    but you need to use currently the repair link btn each time you switch sound with the list box

                    edit : an idea about learn buttons + custom comp instead of mods is starting now

                    edit2 : just tried in the new stagelight
                    3 filter cutoff’s automated
                    I can switch focus the editor filter cutoff follows

                    • This reply was modified 9 years, 8 months ago by zeoka.
                    • This reply was modified 9 years, 8 months ago by zeoka.
                    Attachments:
                    You must be logged in to view attached files.
                    #26899
                    zeoka
                    Participant
                      • Topics: 73
                      • Replies: 466
                      • Total: 539
                      • ★★★

                      Currently I can use fiter cutoff of the “editor” to automate
                      in the DAW

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

                        Hi
                        I’ve done a new version of my macrotest panel
                        I get it,just need more looping and tables for more params
                        I “store” the “macro state” in macro knob visible names
                        and deal with colors instead modolatorlinkedtomodulator and midimessages props
                        this is a first step !! I will add the first panel commands soon
                        I can learn delearn in all way
                        It is not possible to learn 2 same params ex : 2 filt ctoff 1
                        the most important thing
                        That seems good
                        Dasfaker , What do you think about ?

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

                          It’s interesting. How do you plan to store each buffer?

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

                            Hi
                            I’ve updated a little bit :
                            –when I link a macro its value is updated
                            –when I switch focus then editor modulators are updated
                            but the question of storing in buffers is delicate
                            setConponentText is not updating current row
                            getComponentText get the current row strings but the inverse fails
                            so I have 16 texts and try to use method getModulatorValueAsData
                            but I don’t get it
                            I suspect that the data stored would be in table form instead and use .insert and .remove
                            would be more practicle
                            Actually a mod updates the whole buffer and with 370 mods that could be crappy
                            Edit: a question
                            Is it possible to replace if and and and … statement by a loop ?
                            That seems impossible to me
                            May by using “not” but I don’t know

                            • This reply was modified 9 years, 7 months ago by zeoka.
                            Attachments:
                            You must be logged in to view attached files.
                            #27114
                            dasfaker
                            Keymaster
                              • Topics: 80
                              • Replies: 793
                              • Total: 873
                              • ★★★

                              I know you’ll use tables or something similar, but in the daw, have you test if those tables are stored with the project? If I’m not wrong, memoryblocks aren’t stored, so you should have to store the data in external files. Also, the program manager Atom is working on could be useless with this approach if, as I suppose, it will work with modulator values, like snapshots, and you don’t have a mod for each parameter.

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

                                snapshot feature will be aware there is globals ,multi ,many sounds buffers
                                and will be in separate tasks ???
                                Probably “linked” with the buffer feature ?
                                The main problem here how to write just one byte in a text
                                or find a other way than a text but as “solid”
                                I imagine you have thought a lot about multi timbral integration before me..

                                #27151
                                dasfaker
                                Keymaster
                                  • Topics: 80
                                  • Replies: 793
                                  • Total: 873
                                  • ★★★

                                  Why is a problem writing a byte to a file? Just work with a memoryBlock and then save it to a file, this is how I do it:

                                  patchData = MemoryBlock() -- create the memory block
                                  patchData :createFromTable({0xF0, 0x00, 0x20, 0x33...}) -- fill it with a init patch
                                  -- write data to the memoryblock
                                  a = panel:getModulatorByIndex(46):getValue() -- get 1 byte of data from a mod
                                  patchData :setByte(14,a) -- write it to the memoryblock

                                  -- save the file
                                  f = utils.saveFileWindow ("Save Patch", File(""), "*.syx", true) - ask for file
                                  f:create() -- create file
                                  if f:existsAsFile() then
                                  f:replaceWithData(patchData) -- put the memoryblock on the file
                                  end

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

                                    Thank you Dasfaker
                                    I didn’t see in juce classes the setByte command just setByteRange I couldn’t get it

                                    So I must start with something in a form of CrlrMidiMessage (it could be practicle )
                                    my factory preset are in a table form but not in Hex format but strings (f7) and
                                    it is just the sound bytes not the whole midi message
                                    Deal with memoryblocks andsave when the panel is saved could be nice
                                    I have to do all now
                                    Thank you again

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

                                      I get it with strings

                                      --
                                      -- Called when a modulator value changes
                                      -- @mod   http://ctrlr.org/api/class_ctrlr_modulator.html
                                      -- @value    new numeric value of the modulator
                                      --
                                      mod2buf = function(mod, value)
                                      tch = mod:getComponent():getChildComponent(0)
                                      if tch:isMouseButtonDown() then
                                      Fs = panel:getModulatorByName("Focus"):getValue() + 1
                                          wb = mod:getVstIndex() - 7 
                                          we = panel:getComponent(string.format("Edit-%s",Fs))
                                          ed = we:getText()
                                          writing = MemoryBlock(ed)
                                          writing:setByte(wb,value)
                                          we:setText(string.format("%s",writing:toHexString(1)))
                                      end
                                      end

                                      it keeps fluid : a text with a loooot of data is updated quietly
                                      but I will remove the texts and use several memoryblocks only
                                      the unique memoryblock here is redefined each time I touch a knob in a new focus
                                      the script is applied to all mods

                                      cool

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

                                        Also, the program manager Atom is working on could be useless with this approach if, as I suppose, it will work with modulator values, like snapshots, and you don’t have a mod for each parameter.

                                        Not sure but if I remember there was texts in “snapshot” when the feature was available
                                        That means a lot of modulator values kept in ctrlr ?

                                      Viewing 18 posts - 21 through 38 (of 38 total)
                                      • The forum ‘Panels, Components, Macros’ is closed to new topics and replies.
                                      There is currently 0 users and 70 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