proton

Forum Replies Created

Viewing 20 posts - 41 through 60 (of 94 total)
  • Author
    Posts
  • in reply to: Need a helping hand #72543
    proton
    Participant
      • Topics: 19
      • Replies: 94
      • Total: 113
      • ★★

      Hi ReiKru,

      you can send me the panel if you want and I will give it a go on my Windows machine here.
      If the MIDI will be sent here then it has to do with your system, if not, it is the panel that we will need to look closer into.
      Cheers!

      in reply to: documentation SUCKS big time… #72530
      proton
      Participant
        • Topics: 19
        • Replies: 94
        • Total: 113
        • ★★

        Hi Enzo,
        althou I can understand your frustration, with this tone (SUCKS/I NEED/POINT ME…) you will not get to much help, believe me. I will consider changing the tone and trying to ask more directed questions.

        One of your issues is Lua. Lua is a scripting language, did you took the time to learn it? If not, how can you expect to be able to work with it? It is not only about copying parts of code from other panels, it is more about the understanding of the language in general. Ctrlr is free and your “price” for using it is the time spent on learning. You can’t say it sucks if it works for dozens of people. maybe the issue is not always the program but maybe the user?
        I’m not saying Ctrl is issue-free, far from it but come on.
        I assume you’ve read the Lua manual and also searched the SUCKY forum and only stupid sysex works.
        Well, maybe you should start with something easier to avoid the instant frustration?
        Just few thoughts for you to consider.
        Have a great day sir!
        Cheers!

        in reply to: OSC isn't working #72457
        proton
        Participant
          • Topics: 19
          • Replies: 94
          • Total: 113
          • ★★

          Hi fundorin,

          I think atom said somewhere that we shouldn’t use the last PC build cause there are bugs all over the place and there is also the thing that JUCE changed some libraries on their part so things are not working anymore as they were before.
          I think that he is working on a new build where those issues will be addressed and hopefully fixed.
          Cheers!

          in reply to: UI custom component strange behaviour #72338
          proton
          Participant
            • Topics: 19
            • Replies: 94
            • Total: 113
            • ★★

            Check your variable names, it is often the case with bad naming conventions that methods try to access variables that share the same name so the program freaks out. You said that after the name change it worked again so I would try the troubleshooting there first.

            Cheers!

            in reply to: Question for Atom: AddResources… #72327
            proton
            Participant
              • Topics: 19
              • Replies: 94
              • Total: 113
              • ★★

              Hi human fly,

              thanks but I know about this and too bad this is not what I am looking for.
              Here you select a certain image from a bunch of images you already have in your Resources, what I am looking for is a way for the user to ADD png files to the Resources first (root folder of the panel) so they can select them later on with a method you’ve described above. I hope this description of my intent is clear 😉 Cheers!

              proton
              Participant
                • Topics: 19
                • Replies: 94
                • Total: 113
                • ★★

                this iterations makes no sense (why the for loop if you don’t loop there):
                ——————————————————————————-
                –time
                for k= 1,4 do
                modul1=panel:getModulatorWithProperty(“modulatorCustomIndex”,1)
                modul2=panel:getModulatorWithProperty(“modulatorCustomIndex”,2)
                modul3=panel:getModulatorWithProperty(“modulatorCustomIndex”,3)
                modul4=panel:getModulatorWithProperty(“modulatorCustomIndex”,4)
                ——————————————————————————-

                Read about the “for loop” and read about arrays/tables. This way you could store your variables in a table and do the iteration on its elements.

                modul = {}

                for k= 1,4 do modul[k]=panel:getModulatorWithProperty(“modulatorCustomIndex”,k)
                end

                this will loop thru elements 1-4 of your table. DO the same for the other variables.

                Cheers!

                in reply to: Question for Atom: AddResources… #72299
                proton
                Participant
                  • Topics: 19
                  • Replies: 94
                  • Total: 113
                  • ★★

                  Is Atom still here? 😉 Or is he sipping drinks on Bermudas beaches???
                  🙂

                  in reply to: Question for Atom: AddResources… #72278
                  proton
                  Participant
                    • Topics: 19
                    • Replies: 94
                    • Total: 113
                    • ★★

                    Hi human fly,
                    ok now I see what do you mean but unfortunately it is not what I am looking for.
                    The Git repository is of course a good place to look for clues but in this case I think only Atom can shed a light.

                    What I want to do is to allow the end user to import own resources to the panel by pressing a GUI button and with a simple Lua script attached. I did checked the demos where Roman shows us how to deal with file import/export but I couldn’t find anything related to the root folder where the resources are stored and I hope for an elegant solution with the option to Add, Remove and Refresh assets.

                    Hm, maybe he will check the forum soon.

                    Cheers!

                    in reply to: Question for Atom: AddResources… #72272
                    proton
                    Participant
                      • Topics: 19
                      • Replies: 94
                      • Total: 113
                      • ★★

                      Hi human fly,
                      how do you mean? Can you elaborate on that?
                      Cheers!

                      in reply to: Question for Atom: AddResources… #72247
                      proton
                      Participant
                        • Topics: 19
                        • Replies: 94
                        • Total: 113
                        • ★★

                        knock, knock… anybody home ???
                        Any ideas?
                        Anyone?
                        Cheers!

                        in reply to: Called when the panel has finished loading #71946
                        proton
                        Participant
                          • Topics: 19
                          • Replies: 94
                          • Total: 113
                          • ★★

                          Can’t upload any pictures to Ctrlr server so I will post links to them.

                          BTW, forgot to mention that before – sometimes you don’t need to delete those folders or relocate them but only delete the “Ctrlr.settings” file from the main “Ctrl” folder or from your particular panels folder. This forces Ctrlr to boot with default settings.
                          Cheers!

                          • This reply was modified 7 years ago by proton.
                          • This reply was modified 7 years ago by proton.
                          in reply to: Called when the panel has finished loading #71944
                          proton
                          Participant
                            • Topics: 19
                            • Replies: 94
                            • Total: 113
                            • ★★

                            Hi human fly,

                            every time you create a new panel there will be an UID created with it so even if you rename your panel from “Roland-BlahBlah” to “Nord-XXX” for Ctrlr this doesn’t matter. What matters is the UID of the panel. This is how the panel is recognized by Ctrlr. On panel creation a folder is created inside your …AppData\Roaming\Ctrlr (see attached pics) and all assets that has to do with your panel (imported PNGs etc) will be placed there. If this folder is missing and you open a panel that was exported without resources Ctrlr will be missing all those data so your background pictures and knobs graphics etc are all blank.
                            As you can see on the attached picture you can’t change the UID of a n already created panel but you can Re-Generate it meaning a new UID will be created, new folder with the same name will be created and from now on you are working on a copy of your panel that might have the same name as before (Nord-XXX) but all the assets are placed in the new folder. I use this technique while testing stuff and in case something goes wrong I can always go back to some previous version that I’m sure worked properly.
                            Cheers!
                            https://s21.postimg.org/xb99dd0qv/roaming-0.png
                            https://s21.postimg.org/aybo8frjr/roaming-1.png

                            • This reply was modified 7 years ago by proton.
                            • This reply was modified 7 years ago by proton.
                            in reply to: Called when the panel has finished loading #71939
                            proton
                            Participant
                              • Topics: 19
                              • Replies: 94
                              • Total: 113
                              • ★★

                              Hi human fly,
                              no idea why it crashes but just a reinstall may be not enough.
                              Go here C:\Users\XXXXXyournameXXXX\AppData\Roaming\Ctrlr and move all the folders from inside of this folder to some other location. Ctrlr is storing there all your panels and methods so if something is really going south clean this folder and Ctrlr will be forced to rebuild its content instead of reading from it.
                              I hope this help with your troubles.
                              Cheers!

                              in reply to: Lua Basics for Ctrlr – Beginners #71913
                              proton
                              Participant
                                • Topics: 19
                                • Replies: 94
                                • Total: 113
                                • ★★

                                Hi human fly,

                                yet again you are asking for a ready to go code while at the same time you say yourself you don’t get the difference between a local or global variable or some other basic stuff in general.
                                And yet again another user is pointing out to you that maybe you take things too fast or from the wrong angle (too complicated concepts for starters).

                                Also you have this habit of posting every thought that comes to your mind while you are in the process of learning and while this might be a good way for you to store/record your learning process I’m not really sure if this helps other users and is not just cluttering the forum in a way.
                                Maybe some other users will chime in and comment on that subject. I would like to know what other think about this.
                                Cheers!

                                in reply to: panel MIDI channel change #71794
                                proton
                                Participant
                                  • Topics: 19
                                  • Replies: 94
                                  • Total: 113
                                  • ★★

                                  Hi human fly!

                                  don’t give up!

                                  If you are looking for shortcuts and an easy and quick solution for implementing your ideas just hire a programmer, this is what they do all day long. If you really want to LEARN about programming in Lua and about implementing this knowledge in Ctrlr you need to get your hands dirty: check a lot of videos about the boring stuff like variables, tables, syntax etc., read the Lua manual maybe, read the available great articles on the JUCE website and foremost analyze tons of panels from the great bunch of Ctrlr users that are all available to you in the download section. Ask questions on this forum and you will see the light in the tunnel pretty quickly.
                                  If on the other hand you don’t feel like investing your precious time into this whole boring stuff – hire a programmer or don’t wonder that scripts do not work. There is no middle ground really. Don’t expect from Atom Lua tutorials just because he chose Lua for extending Ctrlrs possibilities. You don’t need to use Lua at all to use Ctrlr. If you need more advanced features there comes the Lua and it is your responsibility to get prepared for it and not Atoms. This dude spent years developing this for all of us and he is never pleased reading comments from users that expect stuff to happen after just watching few YT videos. I mean it in a very positive way, please don’t get me wrong. Most of us have been there. It can be frustrating at times but this is just a small language that consists of few rules that YOU need to learn in order to be able use it. Please don’t expect other users to write the script for you – this isn’t the right attitude not only here but also among other programmers and languages. Make an effort and write something with tons of errors and people will help you for sure anyways. Saying that this is all unclear to you and you don’t really need this anyways is not the best start to get help from others. Learn the basics about stuff like [[ () = and ==, functions, variables and all those other building blocks and you will see much more clear the logic in how Lua is working inside Ctrlr. You are right that sometimes same things are done slightly different by different programmers and there is nothing wrong about it. Just learn one correct way of calling functions/methods first and don’t bother too much if you see someone else doing it some other way. People here have various backgrounds and are scripting in different fashions but believe me, once you get your basics straight you will be able to understand all of it. There is just no real shortcut for this process.
                                  Learn every day, ask questions, stay positive and you will get anywhere you want with Ctrlr!
                                  Cheers!

                                  in reply to: panel MIDI channel change #71787
                                  proton
                                  Participant
                                    • Topics: 19
                                    • Replies: 94
                                    • Total: 113
                                    • ★★

                                    MChA = panel:getModulatorByName(“MidiCh”):getModulatorValue()

                                    you assign a value (a number in that case) to a variable MChA

                                    later on you are trying to getModulatorValue from this variable (from a number):

                                    MChA:getModulatorValue()

                                    this makes no sense.
                                    you could create a variable for your modulator like this:

                                    MChA = panel:getModulatorByName(“MidiCh”) and use it later to getValue like this: MChA:getValue()

                                    If you don’t know what are you doing (as stated in the post above) you should take the time to check some Lua tutorials on YouTube and then we will be happy to help. We’ve all been there and it take some time but it will eventually be very clear to you. Keep the faith man! 😉

                                    Cheers!

                                    in reply to: How to add new lua? #71393
                                    proton
                                    Participant
                                      • Topics: 19
                                      • Replies: 94
                                      • Total: 113
                                      • ★★

                                      Hi human fly,

                                      yes, you don’t need to add methods in Resources only assets you use in your panel, mostly PNGs, documents your script is accessing etc.

                                      Please read the manual the guys are working on. It will clear few things for you.

                                      Cheers!

                                      Attachments:
                                      You must be logged in to view attached files.
                                      in reply to: How to add new lua? #71371
                                      proton
                                      Participant
                                        • Topics: 19
                                        • Replies: 94
                                        • Total: 113
                                        • ★★

                                        Hi human fly,

                                        minor changes to the method and all works well.
                                        I tried to explain in the picture below but ask if something need explanation.
                                        Cheers!

                                        Attachments:
                                        You must be logged in to view attached files.
                                        in reply to: code repetitions are ugly #71363
                                        proton
                                        Participant
                                          • Topics: 19
                                          • Replies: 94
                                          • Total: 113
                                          • ★★

                                          Hi dasfaker,
                                          by label I meant uiLabels. I can’t replace the preset buttons with a combo since everything needs to be visible on the screen all the time. The panel size as of now is 15MB. I can’t share the panel since this is a commissioned job for a potential client of mine but it kinda mimics the behavior of a Lounchpad or Ableton Push.

                                          Going thru the code today I realized that maybe all would be much easier with different naming convention for my buttons. Instead of naming them “XtraLblBut1-1”, “XtraLblBut1-2”, …, “XtraLblBut1-12”, “XtraLblBut2-1”, “XtraLblBut2-2″,…,”XtraLblBut2-12” etc I should just name them “XtraLblBut_1″…”XtraLblBut_240” and the iteration in code would be easier to achieve.

                                          Still looking for any helpful tips! Thanks in advance!

                                          in reply to: code repetitions are ugly #71360
                                          proton
                                          Participant
                                            • Topics: 19
                                            • Replies: 94
                                            • Total: 113
                                            • ★★

                                            In this particular panel I have 12×20 buttons, so 240 buttons in total and on each button there are 2 or 3 labels and an one extra modulator that isn’t visible but changes its value depending on what function of a button is selected, each button has also a PNG attached to it and it changes depending on the selection. There are also 60 buttons that I use to fire LUA methods that I wrote to save the current state and assignments of all the buttons, labels, PNGs etc – I use them to store and recall my “presets” so to speak.
                                            Having so many moving parts to store and recall by a press of a button seems to work the way I do it now but it takes some time and feels laggy, especially on the OSX, much slower reaction compared to the PC version.
                                            I just thought making the script slicker would improve the performance greatly.

                                            Thanks for any input!

                                          Viewing 20 posts - 41 through 60 (of 94 total)
                                          Ctrlr