Writing standalone lua-scripts possible?

Home Forums General Programming Writing standalone lua-scripts possible?

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

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

    • Topics: 1
    • Replies: 0
    • Total: 1


    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 😉



    • Topics: 25
    • Replies: 160
    • Total: 185
    • ★★

    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.

    • Topics: 156
    • Replies: 2940
    • Total: 3096
    • ★★★★★

    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.

There is currently 0 users and 10 guests online
No users are currently active
Forum Statistics
Threads: 2,100, Posts: 14,731, Members: 7,481
Most users ever online was 5 on March 28, 2018 6:11 pm
Do NOT follow this link or you will be banned from the site!