You could use http://electronicmusic.wikia.com/wiki/System_exclusive or you
could send events using another protocol than MIDI.

MuseScore embeds an OSC server, it doesn't send OSC message during playback
but it could. OSC might be a lot more flexible than MIDI for your purpose
(but I guess it would mean your arduino has an ethernet shield and can
handle UDP, and you mentioned serial...). Ideally, I would love if this can
be made general enough to drive any other external devices/programs during
playback. The SSMN project wanted to drive a 3D audio system in sync with
the score https://blog.zhdk.ch/ssmn/faq/

Even if using MIDI, it would be cool to make it larger than just Piano
Tutor. There is probably other use case that would benefit sending more,
configurable, MIDI metadata.

lasconic

2017-08-23 22:24 GMT+02:00 Tommaso Cucinotta <tommaso.cucino...@gmail.com>:

> On 23/08/2017 00:29, Ariel Aramburu wrote:
>
>> Nice video !!!
>>
>
> Thanks, I'm working on a better one, showing some more features :-), and
> with someone helping with the camera :-)...
>
> Have you seen this keyboard with integrated lights ? (
>> https://usa.yamaha.com/products/musical_instruments/keyboard
>> s/portable_keybo
>> ards/ez-220/index.html ). It might make this new feature in Musescore
>> available to other people without your custom built hardware.
>>
>
> Right, I've seen Lasconic's comment as well, happy to see it's triggering
> interest.
>
> I've been thinking a minimum of how to make at least the MuseScore patch
> Arduino-independent, and this is my thinking:
>
> 1) the current patch can:
>    a) send what's being played to the Arduino-assisted LED strip; this is
> done on playEvent() / playNote() in seq.cpp, distinguishing colors for left
> vs right hand (channel % 2 at the moment)
>    b) optionally, wait for the sent keys to have all been pressed back
> from MIDI input, before moving on with the playback; this is done adding a
> callback from the MIDI receiver back to seq.cpp
>
> 1.a) can be done simply forwarding MIDI events to a MIDI output port
> (Alsa, PortAudio, Jack, whatever); unless I'm mistaken, the "MIDI out"
> patch would do exactly this already; then, I would have an independent MIDI
> app that listens on an input MIDI port, filters key presses commands and
> sends them to Arduino.
>
> However, I'd need to attach some extra "meta-data" to each note, when
> sending it from MuseScore to my special MIDI-to-serial process: for
> example, the current patch shows different light colors for left and right
> hand (actually, it's a per-MIDI-channel thing), but I plan to use colors in
> a more fancy way:
> a) reflect in the color the volume/velocity of the keypress
> b) show in full light the next key-sequence I'm waiting for with option
> 1.b) above, however also show in half-light (darker) the subsequent
> key-sequence -- when you're really doing it first time on a song, seeing
> already the next movement ahead of time helps a lot to get the fingering a
> lot better from the very first strokes.
>
> Eventually, the various options should be made available in an additional
> "tutor pane" when the user might easily control these things (e.g., even
> customize LED colors for the various staves or instruments or channels
> etc...)
>
> Are you aware of a means of sending this additional extra data through a
> standard MIDI protocol ?
>
> I can encode it into special non-sense MIDI messages (program change,
> wheel, pedal, whatever I don't care), but perhaps there's a clean way...
> after all, MIDI can embed even Karaoke texts nowadays, right ?
>
> Thanks,
>
>         T.
> --
> Tommaso Cucinotta
> Home Page: http://retis.sssup.it/~tommaso
> LinkedIn: http://www.linkedin.com/in/tommasocucinotta
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Mscore-developer mailing list
> Mscore-developer@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mscore-developer
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mscore-developer mailing list
Mscore-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mscore-developer

Reply via email to