forgot: then it also depends on how those LEDs are actually handled by the
specific device; does anyone have at reach a spec detailing whether one can
control them over MIDI or how ? AFAIU, Yamaha provides its own app for iPad
that talks with its keyboard, is that communication documented anywhere ?
Otherwise, when sending a MIDI note-down to a lighted keyboard, I'd expect the
keyboard to light-up and play the key (my intended usage at the moment, is to
show the key to press with a light but defer playing to when the user actually
plays the note).
Thanks,
T.
On 23/08/2017 22:24, Tommaso Cucinotta wrote:
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/keyboards/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
[email protected]
https://lists.sourceforge.net/lists/listinfo/mscore-developer