My project is to create a kit to play recorded (music chords) audio file automatically changed with respect to frequency of live microphone input with a certain period.This will help the solo singers in backing them with chords.i have the concept but i don't have the coding knowledge that much. i will have many sets(folders of different music scales containing chord samples of particular scale as specified by music scale chart)of recorded audio files stored in the memory card or pen drive.the set should be selected by the user(which scale).the audio file should be changed with time that is driven by a tap tempo code as like shown below .the resulting tempo should be divided by 2,3 or 4 according to the time signature of the song the singer sings and should be used to change the audio file. the model code for tap tempo is available on https://www.raspberrypi.org/forums/viewtopic.php?f=32&t=62836
this is a code which i got from a blog for the tap tempo metronome.here the code will find the tempo and will be used for the pwm generation frequency.but the same can be used for knowing the tempo and divided with time signature and used as period to change the audio file .the audio files are selected by the table specified in http://pages.mtu.edu/~suits/notefreqs.html the audio files should be selected by matching the frequency input of mic and music note and name of file in the set(folder containing chord audio files of particular scale) specified. the audio file should be played continuously without any latency in reading the file as it is a real time project.
things i have : recorded audio files named as same as in frequency:music note table - seperated as sets or folders for different music scales gpio input for tap tempo push button 3.5mm pin microphone
things required to ask user while running: scale(which set of audio files) tap (to find time period) time signature(figure to be devided from tempo to know the time period)
i need suggestions on: type of audio file format that can be used to store the samples code to execute the concept interfacing mic to raspberry pi can the process be done with minimum latency
guys this will help lots of singers in solo singing who does not have any instruments .kindly help me with the code if you can . thanks in advance for people trying to help me.