Home Forums General Programming Writing standalone lua-scripts possible?

This topic contains 2 replies, has 3 voices, and was last updated by atom atom 3 years, 2 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #14897

    metzger
    Participant

    Hello,

    i’ve been searching the web for quite a while now and came across ctrlr. So now I’m wondering if it is possible to write a simple lua-script without a panel from ctrlr, that sends midi-notes. To be more clear, this is what i am trying to do:
    I have a novation launchpad and want to use it in a completly different way. I’d like to program it myself with a lua-script.
    I hope you could understand the idea of what i am trying to do. Also I am not a native speaker, so please pardon my english 😉

    Greetings!

    #15475

    Hecticcc
    Participant

    Do you you mean making a panel without modulators that can transform the input?
    This is possible, you can make the midiReceived script catch all incoming data and assign functionality using if-then blocks.

    As for making it a “simple” Lua script, it depends on what you intend to make it do. Lua syntax & structure in itself is very straightforward and relatively easy to learn, even if you have never scripted/programmed before.

    #15487
    atom
    atom
    Moderator

    You don’t need Ctrlr for that, you need lua (the lua language interpreter called luac that is part of the Lua distro for any platform).

    For each platform doing MIDI is different so what you need is a cross-platform way to access MIDI, and that method needs to be written for Lua for example (quick google search) http://www.pjb.com.au/comp/lua/MIDI.html

    Lua is just a small part of Ctrlr, it’s not the other way aroung (Ctrlr is part of Lua, or is an API for Lua)

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Comments are closed.