Lua for newbies

Home Forums General Programming Lua for newbies

Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #212
    dnigrin
    Participant
      • Topics: 9
      • Replies: 57
      • Total: 66

      So how does one go about using LUA in Ctrlr v5? Are there any simple examples that I could look at to teach myself? And what are the use cases for doing something in Lua in Ctrlr? I don’t know any Lua scripting but am eager to learn.

      #2012
      msepsis
      Participant
        • Topics: 219
        • Replies: 732
        • Total: 951
        • ★★★

        +1

        It seems LUA is not currently enabled in ctrlr but I agree it would be great when it is implemented to supply a simple demonstration ctrlr panel that shows what it can be used to do within ctrlr… also would be great to know it’s limitations within ctrlr so we don’t go chasing down a rabbit hole.

        Monstrum Media | Music, Sound & Software Design, Chicago / San Francisco listen

        #2013
        msepsis
        Participant
          • Topics: 219
          • Replies: 732
          • Total: 951
          • ★★★

          and, well. since nobody else has replied to all of your questions…
          generally speaking, full implementation of Lua in general within Ctrlr would help you connect parameters to/from attributes, within/to/from either hardware synth(s),vst or DAW(depending on which one), plus more in ways you might have never thought previously possible.

          Monstrum Media | Music, Sound & Software Design, Chicago / San Francisco listen

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

            yes well it’s a work in progress, other stuff seems to be getting in the way for me to finish this in a usable way. i promise once LUA is capable of something useful i’ll let you know.

            #2015
            dnigrin
            Participant
              • Topics: 9
              • Replies: 57
              • Total: 66

              Thanks, appreciate the responses guys!

              #2016
              dnigrin
              Participant
                • Topics: 9
                • Replies: 57
                • Total: 66

                Thanks, appreciate the responses guys!

                #2017
                msepsis
                Participant
                  • Topics: 219
                  • Replies: 732
                  • Total: 951
                  • ★★★

                  I know you might not be using renoise, but there is some highly relevant info in this thread that could help wrap your head around Lua:
                  http://www.renoise.com/board/index.php?/topic/26052-✒-new-to-lua-but-not-to-programming/

                  Monstrum Media | Music, Sound & Software Design, Chicago / San Francisco listen

                  #2018
                  dnigrin
                  Participant
                    • Topics: 9
                    • Replies: 57
                    • Total: 66

                    Helpful, thanks!

                    #2019
                    dnigrin
                    Participant
                      • Topics: 9
                      • Replies: 57
                      • Total: 66

                      Helpful, thanks!

                      #2020
                      msepsis
                      Participant
                        • Topics: 219
                        • Replies: 732
                        • Total: 951
                        • ★★★

                        If you have experience with C++ Lua should be pretty straightforward. I’m pretty new to using Lua so I just picked up a few books from amazon that have helped me on my way that I highly suggest to anyone else interested in filling your head
                        [u:cob84e2r]Programming in Lua[/u:cob84e2r], (Second Edition) by Roberto Ierusalimschy, and [u:cob84e2r]Beginning Lua Programming (Programmer to Programmer)[/u:cob84e2r] by Kurt Jung and Aaron Brown.
                        As far as computer books go they were quite affordable.

                        serious cure for insomnia as far as a straight read but they’re both VERY helpful reference books. There’s also lua.org of course which has the reference manual and is kept very current, unlike printed books <img decoding=” title=”Smile” />

                        Monstrum Media | Music, Sound & Software Design, Chicago / San Francisco listen

                        #2008
                        dnigrin
                        Participant
                          • Topics: 9
                          • Replies: 57
                          • Total: 66

                          I’ll probably not dive into learning Lua until I have a use case within Ctrlr; nothing like trying to solve a specific problem to help motivate the learning! Thanks regardless.

                          #2009
                          Filch
                          Participant
                            • Topics: 22
                            • Replies: 173
                            • Total: 195
                            • ★★

                            What’s a good LUA IDE for windows 7 x64? I tried to get LUAEclipse working in the latest eclipse, but it fails to install properly.

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

                              I doubt that any IDE will be useful in Ctrlr i mean in terms of general LUA programming (or any other scripting) i use SCITE/Scintilla, but in Ctrlr there will be an embedded editor, and loading LUA from files will be hard (not impossible), but you must remember that most of the LUA code will done in callback methods (pieces of code triggered on specific events), that code needs to be associated with a specific Ctrlr element, and that code will be kept within the internal XML structure of Ctrlr
                              to simplify that. You can use and IDE for testing, but you must also remember that the API that is available is only available in Ctrlr, the entire LUA language is really very simple and no IDE is needed, but also the bare bones LUA language is nto really useful for anything (that’s not the point of LUA).

                              #2011
                              Filch
                              Participant
                                • Topics: 22
                                • Replies: 173
                                • Total: 195
                                • ★★

                                I see. Thanks for the update.

                                #2021
                                Filch
                                Participant
                                  • Topics: 22
                                  • Replies: 173
                                  • Total: 195
                                  • ★★

                                  In case anyone cares,

                                  notepad++ has been my good friend for doing LUA code

                                  #2022
                                  lex2000
                                  Participant
                                    • Topics: 0
                                    • Replies: 2
                                    • Total: 2

                                    helpful! thanks guys!

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