2 problems not solved

Home Forums General Programming 2 problems not solved

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

      Hi
      – “luaPanelLoaded” and “luaPanelBeforeLoad” are not working in
      restricted exported versions ? they work only in the full version for me
      – problem with one panel: “midiMessageChannel” is changed via LUA but the modulator still sends on the same channel and the
      modulator change its midi channel if it receives any channelized msg ( if I send ch1 it get ch1 etc…) the rack attack panel uploaded works nice and uses similar
      method
      Tried “midiMessageChannelOverride” but it fails.
      on the pic i have 2 “midiMessageChannel”
      one I want in red and other that is the real value

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

        The item in red says “MidiMesageChannel”, it’s lacking a “s”. Surely on some lua code you wrote it wrong and it created a new field named MidiMesageChannel.

        About point one, I agree that in exported versions there is something wrong at starup and probably related to some of those scripts.

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

          Thank You Dasfaker ! you have the eye of the snake
          just need to delete and re create changed mods
          I send correctly now
          But I still don’t understand why I can’t receive different midi chnls correctly .If I have 3 mods with cc17 ch:1 , 2 and 3
          they move all and change their midi chnls to ch:x when ctrlr receive a cc17 ch:x

          For the first point I don’t have trouble with full exported version (tried exe not dll for now) the problem is with restricted version only
          The edit mode force me to create some scripts to kill nil
          or assign correctly current tabs values at startup + my panel initializes most editor mods at start up and keep only VSTexported mods and “system” mods
          But in restricted instances nothing happens.

          Thank you again

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

            You’re welcome

            The incoming cc channel issue is happening here, too.

            #23572
            wikter
            Participant
              • Topics: 5
              • Replies: 49
              • Total: 54

              Hi, I’ve managed to solve the issue.
              The solution is to use a Multi message.
              Just put the controller number and it works fine.

              MIDI
              Message type…Multi
              Override…….No
              Channel……..2
              Midi CC……..X (not in use)
              Midi Value…..X (not in use)
              Multi Message..CC,Direct,Direct,1,-1,

              That’s it.
              But the problem remains in the app!

              • This reply was modified 9 years, 11 months ago by wikter.

              MVXSynths
              R3 / MOX6 / Electribe2 / Electribe R MkII / Electribe MX / K4R / BCR2000 / XStation61 / XStation25 / Virus Rack / Chameleon / Proteus 2500 / RM1X / KN2600

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

                Using this method works opening the panel in Ctrlr, but the exported instances fail, they only transmit cc messages on channel 1.

                Atom, please take a look here.

                #23585
                atom
                Keymaster
                  • Topics: 159
                  • Replies: 2945
                  • Total: 3104
                  • ★★★★★

                  i’ll take a look asap

                  #23586
                  atom
                  Keymaster
                    • Topics: 159
                    • Replies: 2945
                    • Total: 3104
                    • ★★★★★

                    I’d like to know what’s the issue here exactly.

                    When you change the Panel MIDI OUTPUT CHANNEL you apply that value to all modulators (since the midi channel is stored inside each MIDI object). Is that wrong, is that the issue. Should the panel MIDI CHANNEL change NOT change the actual MIDI message channel?

                    #23587
                    wikter
                    Participant
                      • Topics: 5
                      • Replies: 49
                      • Total: 54

                      The problem is that once set the channel a slider should send a midi CC, if you send the same midi CC from any other channel, all the sliders sends in that channel, no matter which is the panel channel.
                      Is something like autolearn, but in a very undesirable way.

                      MVXSynths
                      R3 / MOX6 / Electribe2 / Electribe R MkII / Electribe MX / K4R / BCR2000 / XStation61 / XStation25 / Virus Rack / Chameleon / Proteus 2500 / RM1X / KN2600

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

                        If you receive a cc in channel 1 for example, all modulators with the same cc react to the incoming message, ignoring the channel they have.

                        Using the multi message instead of cc message works in a .panel instance, but in a standalone instance, all cc modulators transmit in channel 1, ignoring the channel they have assigned.

                        #23590
                        atom
                        Keymaster
                          • Topics: 159
                          • Replies: 2945
                          • Total: 3104
                          • ★★★★★

                          The first issue i can try to fix.

                          The second one is tricky, everytime you change the panel output channel all Midi messages assigned to modulators get their channel changed (this is why after opening an standalone instance they send on channel one, the channel gets changed on load no matter what it’s set to).

                          So now i can add an option for a panel not to apply the MIDI OUTPUT CHANNEL value to all modulators everytime it’s changed AND/OR add a Lua method that gets called everytime the channel gets changed in the panel so you can plug in your own behavior for that event. Maybe you have other suggestions on how to deal with this issue ?

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

                            So now i can add an option for a panel not to apply the MIDI OUTPUT CHANNEL value to all modulators everytime it’s changed

                            I think this should be the way to go, just change the midi output channel to those modulators with “Override panel MID channel” activated and leave the rest as they are.

                            #23594
                            atom
                            Keymaster
                              • Topics: 159
                              • Replies: 2945
                              • Total: 3104
                              • ★★★★★

                              Yeah will do.

                              I also added some code to compare incoming midi for channel. So if a modulator has a different channel set and the panel is setup to receive ALL channels only the modulator with the matching channel will change.

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

                                Cool, multitimbral panels need this feature.

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

                                  Atom, what about the first zeoka’s question?

                                  – “luaPanelLoaded” and “luaPanelBeforeLoad” are not working in
                                  restricted exported versions ? they work only in the full version for me

                                  I have similar problems with all exported instances.

                                  #23720
                                  atom
                                  Keymaster
                                    • Topics: 159
                                    • Replies: 2945
                                    • Total: 3104
                                    • ★★★★★

                                    i’ll check this today.

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

                                      So now i can add an option for a panel not to apply the MIDI OUTPUT CHANNEL value to all modulators everytime it’s changed AND/OR add a Lua method that gets called everytime the channel gets changed in the panel so you can plug in your own behavior for that event. Maybe you have other suggestions on how to deal with this issue ?

                                      I also added some code to compare incoming midi for channel. So if a modulator has a different channel set and the panel is setup to receive ALL channels only the modulator with the matching channel will change.

                                      This issue isn’t solved yet. I attach an example panel with 3 mods controlling cc10 on channels 1,2 and 3. Every incoming cc10 message on any channel is received by modulator with ch.1. The others don’t react. I’ve tried every in/out channel combination in the MIDI menu but with no luck.

                                      Attachments:
                                      You must be logged in to view attached files.
                                      #26313
                                      atom
                                      Keymaster
                                        • Topics: 159
                                        • Replies: 2945
                                        • Total: 3104
                                        • ★★★★★

                                        Yeah i tested it now and it works as expected, however you did not the checkbox to override the MIDI channel for each modulator.

                                        With that checked, each of the sliders reacts only to the MIDI channel it has defined, with the panel set to receive messages on ALL channels.

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

                                          No, it doesn’t work here with channel override active and all channel input.

                                          In fact, with these settings, once a ch1 message is received all modulators move

                                          #26327
                                          atom
                                          Keymaster
                                            • Topics: 159
                                            • Replies: 2945
                                            • Total: 3104
                                            • ★★★★★

                                            i can’t reproduce this, maybe you are doing something more.

                                            i opened your panel, and set up my LPD8 to send on 3 different MIDI channels, depending on each channel only one slider on the panel moves, never more then one.

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