D
dieselmachine
Hey, I've been searching for info on this for days now, but to no
avail. I'm starting to think it's impossible, but anyway!
I've coded a little virtual keyboard, which has two octaves worth of
keys on it, and when the keyboard image is clicked, it uses the
coordinates to determine what key was pressed, then some stuff happens
that we needn't worry about. I want to make the keys play the
appropriate note when clicked, and I can't figure out how to do it.
Obviously I could create individual midis for each note that could be
pressed, and maybe preload the entire thing for quicker response. But
that is trash, especially if I expand the keyboard to full size (which
I will dammit).
Is there a way to just send a midi event, consisting only of the one
note, and have it play?
avail. I'm starting to think it's impossible, but anyway!
I've coded a little virtual keyboard, which has two octaves worth of
keys on it, and when the keyboard image is clicked, it uses the
coordinates to determine what key was pressed, then some stuff happens
that we needn't worry about. I want to make the keys play the
appropriate note when clicked, and I can't figure out how to do it.
Obviously I could create individual midis for each note that could be
pressed, and maybe preload the entire thing for quicker response. But
that is trash, especially if I expand the keyboard to full size (which
I will dammit).
Is there a way to just send a midi event, consisting only of the one
note, and have it play?