Receiving MIDI

Home Forums General Programming Receiving MIDI

Tagged: ,

This topic contains 3 replies, has 2 voices, and was last updated by dnaldoog dnaldoog 3 weeks, 1 day ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #86362

    ravctrlr
    Participant
    • Topics: 1
    • Replies: 2
    • Total: 3

    Hello all,

    I am trying to process midi input in standalone mode. I have attached a receiveMidi script to the “Called when panel receives midi message” field of the panel. The script is a simple hello world type of test:

    
    receiveMidi = function(midiMessage)
    	console("get it \n");
    end
    

    However it does not “get it”.

    The confusing part is that i am watching midi data being received from my synth on the ctrlr midi monitor tool, wich means that ctrlr is actually receiving midi data, it just simply never gets to the script, or to the panel…

    I have checked for typos multiple times.

    Is there some magic step I have missed here ?

    Normally this is the kind of answer I would search for in a manual, but well.. hehe.. you know..

    thanks

    #86406

    ravctrlr
    Participant
    • Topics: 1
    • Replies: 2
    • Total: 3

    THERE IS A “NO MIDI INPUT TO PANEL” FIELD THAT IS ACTIVE BY DEFAULT !
    THERE IS A “NO MIDI INPUT TO PANEL” FIELD THAT IS ACTIVE BY DEFAULT !
    Seriously, this needs some documentation, nobody is supposed to spend so much time on such trivial problem

    #86419

    ravctrlr
    Participant
    • Topics: 1
    • Replies: 2
    • Total: 3

    Actually this is not over. I am now confused about when does the script attached to “called to calculate new modulator value from a MIDI value” gets called.
    In my case, it’s never.
    I also cannot control ctrlr with external midi signal, although it does receive the control change messages, so i suppose this is the core of the problem.

    Could somehow please hit me up with the basics about this ?
    I don’t want to waste another 5 hours of experimentation to find out that all I had to do was tick a stupid button.

    Thank you.

    #86452
    dnaldoog
    dnaldoog
    Participant
    • Topics: 0
    • Replies: 153
    • Total: 153
    • ★★

    Hi ravctrlr

    Usually the function call when created, looks like:

    
    --
    -- Called when a panel receives a midi message 
    (does not need to match any modulator mask)
    -- @midi   CtrlrMidiMessage object
    --
    receiveMidi = function(--[[ CtrlrMidiMessage --]] midi)
    end
    

    You seem to have changed the argument from ‘midi’ to “midiMessage” which is fine, but if you rewrote the function somewhere, it may no longer be linked to the panel property “Called when panel receives midi message”. That’s one possibility.

    Also you need to select the function name you wrote using the combo drop down in “Called when panel receives midi message” – you probably know that, but if you don’t select the new function name from that combo box and just write a new function in Lua using the name you entered, it won’t work.

    Also if you are on Windows, use version 5.3.201 http://ctrlr.org/nightly/Ctrlr-5.3.201.exe

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

You must be logged in to reply to this topic.

There is currently 0 users and 20 guests online
No users are currently active
Forum Statistics
Threads: 2,166, Posts: 15,278, Members: 22,301
Most users ever online was 10 on October 29, 2018 2:54 pm
Do NOT follow this link or you will be banned from the site!