Main MIDI protocol Principle Pickup Frets and strings Power Analog part PIC16x74 COM-port MIDI-port Control and indications Algorithm of note detection |
Algorithm of note detectionData from strings are received about 50 times per second. Magintude of pickup signal lies in range of 0..127, fret number - 0..17. Model of input data is shown above (1 pixel across corresponds to 1 cycle). This specific data plot is obtained from the first prototype of Tryndelka. Blue color indicates data from ADC, red - fret number. At the end of the plot you can see a slide from 0 to 5th fret, at that the string is picked on the 4th fret and goest to the 5th already sounding. During analyse of data, amplitude of pickup signal of the string and the fret where it is pressed to are taken into consideration. Advanced detection algorithm works with maximum accumulating analog circuit of each string like the following:
This algorithm does not require buffers for several samples per eachc string - only current and previous state is required. All data require 70 bytes of RAM to store. |