![]() ![]() OUT: AL, BH, CH = pitch, 2 if no pitch to be played, (octave * 12) + 60 Based on input, returns a pitch to be played Out dx, al DX will already contain MIDI_DATA_PORT from the setup_midi function Mov cl, 5 used for making sure that the user does not go too low or too high with the octavesĬmp bh, 0 if bad input OR octave change goes out of rangeĬmp bh, 2 if shouldn't play note (was an octave switch) Virtual Piano - a virtual and playable piano ![]() To change octaves, you use 'z' to go up one octave and 'x' to down one octave. ![]() The keyboard's keys bind to piano's as shown below: a - C The home row is used for white keys and the top row is used for black keys. I have created a virtual piano that turns the home row (excluding 'g' and 'h') and the top row (excluding 'y' and 'u') of the user's keyboard in a piano's keyboard.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |