All midi note input to single midi note output

    May 02 2018 | 9:23 pm
    I am working with an application called "midi guitar" which converts live input sound signal into midi information, and can then route the midi info to any software or connected hardware. I would like to build a patch that receives the midi data from "midi guitar", and then sends a single, consistent midi note out of max anytime it receives any midi information from midi guitar. I am attempting to control some incandescent lights with my voice, and the light dimmer can only receive a single midi note for on/off. As "Midi Guitar" translates my voice there are obviously a tremendous amount of different notes generated as I speak. I would be grateful for any advice as to how to build this. Thanks!

    • May 03 2018 | 1:24 am
      If it only has to handle notes you could use the 3rd outlet of [borax] plus a few adjustments. Like this (assuming I understand your meaning)...
    • May 03 2018 | 3:13 am
      If I understand your question correctly, you need to convert the incoming MIDI note numbers all to the same value, yet maintain the different velocities. See if this works for you.
    • May 03 2018 | 3:54 am
      Thank you both for the responses. Unfortunately neither of these patches are functioning as I was hoping. The dimmer I am trying to control with midi will only take a single midi number on a single midi channel, and that note and channel must be the same every time in order to turn the light on and off. The Midi Guitar application is sending a variety of notes/numbers as it translates my live voice into midi notes. I need max to collect all the various notes from midi guitar and spit out one repeated note/channel if any midi comes into the patch. Does that make sense? Thanks again for your help!
    • May 03 2018 | 4:05 am
      Well, that's pretty much what my patch does. It takes any incoming MIDI note and converts it to a single MIDI note. In my case, I chose Note #64, but you can set it to be whatever note your light dimmer needs. Since I have no idea what sort of input and output devices you are using, I just used the generic notein and noteout objects. You'll need to adjust that for your specific hardware.
    • May 03 2018 | 4:20 am
      It's not quite clear to me.
      When, exactly, do you want the light turned on and off? Every time Midi Guitar sends a new note, even if there's several of them one after the other with no gap? (This might make the light flicker.)
      Or do you want the light turned on when Midi Guitar starts to send a new series of notes and turned off only when there's a gap in the Midi Guitar notes?
      Or something else?
      BTW, what MIDI note does the light need to receive, and on what channel? And do you have a link for the Midi Guitar app? (I'm curious because if it works well for voice it might work well for flute, at least in part of its range.)