Hi all,
I've been trying to build up a cool arduino/keyboad integration. The idea is to have a physical keyboard on the ground, connect the sensors to a web app and have the users of this system play easy pieces of music that appear on the screen. This is sort of a game- the system comes up with a music notation, the users have to follow and play the same sequence of notes (duration etc. does not matter in this case).
I've been trying to do all this with VexFlow, but I am having issues when it comes to differnt notes length, the corresponding beats/voices/etc. so I am turning to vexTab right now as a higher level abstraction (you recommended that already).
All right, but now I really have issues understanding VexTab :-) I mean the notation is easy to understand, but I am missing the binding between the textarea eelements that allow the user to enter the notation and the rendering of the music. Is this automatic? E.g. does vextab monitor all .vex-tabdiv areas and then render the music in the above div?
<div style="width:420; margin-left: auto; margin-right: auto;">
<div class="vex-tabdiv"
width=400 scale=1.0 editor="true"
editor_height=80>tabstave</div>
</div>
What I need to do is this:
1) render a piece of music, very easy. Ask the user to play that with the keyboard.
2) sequentially build up a second piece of music based on the current game challenge and the sensors / keyboard presses.
I basically would create the vextab notation on the fly, maybe in a JavaScript String for example. I would then want to give that string, which holds the notation, to the vexTab API to re-render a div. Is this programmatically possible?
Thx!
Sven