| Arduino Forum ::  Members :: sammyg
 Show Posts Pages: [1]
 1 Using Arduino / Audio / Re: MIDI Keyboard Encoder - Arduino Piano/Keyboard (question) on: August 10, 2012, 11:11:07 am Ah, indeed; rather a large oversight on my part. Thank you for pointing this out mstanley and of course, thanks for writing such a useful library
 2 Using Arduino / Audio / Re: MIDI Keyboard Encoder - Arduino Piano/Keyboard (question) on: August 05, 2012, 01:48:08 pm If you *really* want all the details about scanning key matrices:http://www.openmusiclabs.com/learning/digital/input-matrix-scanning/(Convinced me pretty thoroughly that Arduino was the way to go, but it brings up some interesting stuff nonetheless...)
 3 Using Arduino / Audio / Re: MIDI Library Reading Pitch Bend (Not Send) on: August 05, 2012, 12:57:56 am Pointer; you probably want to multiply your frequencies by the bend amount, not simply add, otherwise you'll end up with varying bend ratios for different notes. (The relationship between pitch and frequency is geometric, e.g. an octave is a doubling / halving)
 4 Using Arduino / Audio / Re: MIDI Keyboard Encoder - Arduino Piano/Keyboard (question) on: August 05, 2012, 12:53:04 am This is precisely what the Keypad library does - take a look at the tutorial. The wiring diagram you posted is a keyboard matrix, which significantly reduces the number of required IO pins. To achieve step 3, you need matrix scanning code (which is what the Keypad library is). As a bonus, the way it is written eliminates the need for the diodes in your wiring diagram, hence the simpler diagram: http://arduino.cc/playground/uploads/Main/keypad_pin_diagram.png Of course, instead of a keypad, you have a musical keyboard, but the principle is exactly the same, just with all the keys laid out in a single line instead of rows. There is plenty of info about scanning keyboard matrices on the web, but I suspect it'll just show you that using pre-built Arduino libraries will make life much easier Step 4 will be your own code to define which midi signals are sent out for which keys.Step 5 MIDI signals themselves are dealt with by the MIDI library and whichever USB MIDI solution you choose to use. (Suggest you get it working on normal MIDI first, before getting caught up in USB MIDI stuff...)