Eli Status 4/29

What did you personally accomplish this week on the project? Give files or photos that demonstrate your progress. Prove to the reader that you put sufficient effort into the project over the course of the week (12+ hours).

I completed implementing pitch detection, note onsets and midi score generation. I am completely done with my parts of the project except for testing and integration.

Final procedure:

  1. Get amplitude envelope for detecting whether a note is being played or not:

2. Run pitch detection and onset detection (rough):

3. Put it all together:

This graph is a little messy, but it is showing filtered pitches (spikes from 2. removed) in blue, note onsets in red, and whether a note is being played or not in green.

Still need to do testing, this is being held up due to wanting to test using our group’s recording procedure. Should be quick to do testing though.

Is your progress on schedule or behind? If you are behind, what actions will be taken to catch up to the project schedule?

Just behind on testing, but that will only take an hour or so maximum once the other parts of the project are integrated.What deliverables do you hope to complete in the next week?

Finish integration/testing.

Eli Status 4/23

What did you personally accomplish this week on the project? Give files or photos that demonstrate your progress. Prove to the reader that you put sufficient effort into the project over the course of the week (12+ hours).

Implemented memoization for the Yin autocorrelation method. This speeds up computation significantly and allows me to take continuous lag windows which fixed the accuracy problem.

This is the output of the autocorrelation currently on a c major scale (frequency on left axis, time on bottom). This is now fully accurate.

I also implemented midi score generation. This is quick, flexible and fast. Generated sample midi scores and tested with Vedant’s model. Seems to be working fine.

Performed initial accuracy testing on a few different downloaded clean tone guitar samples. Accuracy >95% correct identification. The main source of inaccuracy is due to the tuning of the window sizes.

Worked on onset/offset detection. Found a few methods, likely going to stick with the built in aubio onset detection. There is some inaccuracy, but it seems good enough for primer generation:

Is your progress on schedule or behind? If you are behind, what actions will be taken to catch up to the project schedule?

On schedule.What deliverables do you hope to complete in the next week?

Integrate and more fully test pitch detection/onset detection.

Eli Status 4/8

What did you personally accomplish this week on the project? Give files or photos that demonstrate your progress. Prove to the reader that you put sufficient effort into the project over the course of the week (12+ hours).

Implemented Yin autocorrelation method from paper.

http://audition.ens.fr/adc/pdf/2002_JASA_YIN.pdf

This autocorrelation method is extremely slow. I changed windowing parameters of the autocorrelation and changed the frequency range over which the autocorrelation operates. Now the speed is acceptable (%70 length of input), but the accuracy needs help. The autocorrelation is finding the second most powerful harmonic peaks rather than the main fundamental peak.

This is the output of the autocorrelation currently on a c major scale (frequency on left axis, time on bottom). The autocorrelation finds relative pitches very well. It sees whole step, whole step, half step, whole, whole, whole, half exactly as a major scale should be. It just thinks the fundamental is different.

Is your progress on schedule or behind? If you are behind, what actions will be taken to catch up to the project schedule?

On scheduleWhat deliverables do you hope to complete in the next week?

Continue tuning pitch detection. Include onset detection for note timing and create MIDI score from input.

Eli Status 4/1

What did you personally accomplish this week on the project? Give files or photos that demonstrate your progress. Prove to the reader that you put sufficient effort into the project over the course of the week (12+ hours).

Finished ESP32-A1S bringup. Audio streaming from board done.

Have windowed stfts done. Still need to ensure precision and accuracy of determined fundamental are good. Requires bin size tuning and ensuring the parameters of the transform are well suited for clean tone electric guitar recordings.

Performed filtering of static noise. Able to remove most common electric guitar noise.

Is your progress on schedule or behind? If you are behind, what actions will be taken to catch up to the project schedule?

Almost back on schedule. As long as I have pitch detection for the interim demo, I will be on track.What deliverables do you hope to complete in the next week?

Read fundamental pitch from analyzed guitar notes, perform testing to ensure accuracy.

Eli Status Report 3/25

What did you personally accomplish this week on the project? Give files or photos that demonstrate your progress. Prove to the reader that you put sufficient effort into the project over the course of the week (12+ hours).

Started ESP-A1S bringup. Might need to scope more time to this as neither Sachit nor I have worked with it before. We were planning on using the Arduino IDE to aid in a quick bringup, but custom libraries are required which are not compatible with our board. Therefore we have to use the ESP-IDF/ADF and completely bring up the board with networking and LINEIN interaction.

Went through radix-2 FFT and other time saving fourier transform algorithms. Have a firm grasp on overlap add and overlap save reconstruction methods.

Is your progress on schedule or behind? If you are behind, what actions will be taken to catch up to the project schedule?

Still behind where I was hoping to be. Might need to reduce scope. Will have better grasp on scheduling after this week.What deliverables do you hope to complete in the next week?

Implement single window stft. Apply to single guitar notes. Report frequency content.

Finish ESP-A1S bringup for audio portion.

Eli Status Report 3/18

What did you personally accomplish this week on the project? Give files or photos that demonstrate your progress. Prove to the reader that you put sufficient effort into the project over the course of the week (12+ hours).

Tested gaussian filtering on entire samples, realized it adds noise over long time periods. Switched to using low pass filters. Works well.

Is your progress on schedule or behind? If you are behind, what actions will be taken to catch up to the project schedule?

I was hoping to accomplish more this week, I am behind now. I have enough slack to cover being behind, but I will need to make significant progress this week. I still need to implement stft windowing. What deliverables do you hope to complete in the next week?

Start to implement stft with constant q transform. Implement single stft window as first step, then implement binning stft.

Eli Status Report 3/11

What did you personally accomplish this week on the project? Give files or photos that demonstrate your progress. Prove to the reader that you put sufficient effort into the project over the course of the week (12+ hours).

I implemented gaussian filtering in my test audio generation script. It works on simple sine waves, still need to test with guitar audio samples.

I have decided on using short time Fourier transforms (stft) and rms amplitude detection for pitch and velocity detection respectively.

Is your progress on schedule or behind? If you are behind, what actions will be taken to catch up to the project schedule?

I was hoping to accomplish more over break, but did not end up having as much time as I thought I would. I am still on track, slightly behind. There are no unknowns in reading in guitar audio and doing pre-processing, so I do not expect that wrapping up this deliverable will take any significant amount of time.What deliverables do you hope to complete in the next week?

Pre-processing script reading in guitar audio finalized. Start to implement stft with constant q transform. Implement single stft window as first step, then implement binning stft.

Eli Status 2/25

What did you personally accomplish this week on the project? Give files or photos that demonstrate your progress. Prove to the reader that you put sufficient effort into the project over the course of the week (12+ hours).

I have started using PyAudio to read/write audio files and do some experimentation with sound generation just to see what its capabilities are.

I referenced this article:

https://plainenglish.io/blog/making-a-synth-with-python-oscillators-2cb8e68e9c3b

To see what simple signal processing/signal manipulation techniques I can use to create interesting sounds. I have the capability to read in guitar audio. I still need to ensure my preprocessing steps can be efficiently accomplished, but I do not foresee any issues with preprocessing.

Is your progress on schedule or behind? If you are behind, what actions will be taken to catch up to the project schedule?

I have given myself a week for preprocessing audio and a week for testing preprocessing. This means I am not too far behind, but I am hoping to spend much more time next week and have preprocessing and preprocessing testing done early next week so I can start on actual pitch detection. I did not accomplish as much I was hoping to this week (due to other work and sickness). What deliverables do you hope to complete in the next week?

Fully working and tested script to read in guitar audio, perform any noise reduction if necessary, and return the signal with note onset detection.

Eli’s Status Report 2/18

Please list the particular ECE courses (if any) that covered the engineering science and mathematics principles your team used to develop your design? If there are no courses please tells us how you learned those principles over the last week?

I am currently taking Digital Signal Processing (18491). Along with an understanding of the basic signal processing ideas I already have, I researched common ways to do pitch detection. My research is below.

What did you personally accomplish this week on the project? Give files or photos that demonstrate your progress. Prove to the reader that you put sufficient effort into the project over the course of the week (12+ hours).

I researched my component of transcribing a monophonic guitar into midi. I researched two avenues of this, real time conversion of guitar audio to midi and doing the transcription from a recording (non-real time).

Real time pitch tracking methods and analysis:

http://www.music.mcgill.ca/~ich/classes/mumt611_05/Presentations.old/mumt614pitchtrack.pdf

https://www.cycfi.com/2017/10/fast-and-efficient-pitch-detection/

https://ccrma.stanford.edu/~pdelac/research/MyPublishedPapers/icmc_2001-pitch_best.pdf

I also spent time looking into how to make midi more expressive. Namely supplying meaningful velocity data. Roger Dannenberg has a great paper on this with comparisons of different synth’s velocity and a breakdown of a technical approach for velocity detection.

https://www.cs.cmu.edu/~rbd/papers/velocity-icmc2006.pdf

I also found an interesting master’s project which turns the voice into a midi controller. It implements this via a VST plugin. This seems like an interesting route, but does not apply for non-real time audio to midi conversion:

https://scholarworks.uark.edu/cgi/viewcontent.cgi?article=1013&context=eleguht

and a guide for VSTs:

https://integraudio.com/best-tools-to-develop-vst-plugins/

Another PyAudio midi resource:

https://python.plainenglish.io/build-your-own-python-synthesizer-part-3-162796b7d351

Is your progress on schedule or behind? If you are behind, what actions will be taken to catch up to the project schedule?

I am on track, I have a good idea of the use case/design requirements and how I will attempt to meet them in creation of a non-real time audio to midi transcription program using the resources I have collected above.What deliverables do you hope to complete in the next week?

I hope to order an amp and adc and start development of a PyAudio program which can record a guitar input (keeping in mind the program will need to run on a rasberry pi.

Eli – 2/11

What did you personally accomplish this week on the project? Give files or photos that demonstrate your progress. Prove to the reader that you put sufficient effort into the project over the course of the week (12+ hours).

Developed project proposal with group. Presented draft project proposal. Met as a team today and decided on new direction for project. Following discussion, I researched options for audio to midi conversion to be able to better redefine user group and scope of project when group is next able to meet:

Found a good source for midi input to Raspberry PI:

https://www.samplerbox.org/makeitelectronic

https://github.com/josephernest/SamplerBox

Audio to MIDI Products:

https://www.sweetwater.com/store/detail/G2MV3–sonuus-g2m-v3-universal-guitar-to-midi-converter/reviews

https://www.sweetwater.com/store/detail/i2M–sonuus-i2m-musicport/reviews

https://www.perfectcircuit.com/kenton-pro-cv-to-midi.html?gclid=CjwKCAiAlp2fBhBPEiwA2Q10Dz8AVSQs6e9ATXALiwCIpGEk7iqlD8WwO-GY1Y1E6YM8pyXWVEK6FhoCIPQQAvD_BwE

Audio to MIDI Software resources:

https://migic.com/

https://www.jamorigin.com/

https://github.com/tiagoft/audio_to_midi

Also found and read the following paper on audio to MIDI conversion:

http://amber.feld.cvut.cz/user/vass/papers/Vass_Poster04.pdf

Which references the following paper which is a very very good resource for signal processing if I end up writing custom audio to MIDI code:

https://www.ee.columbia.edu/~dpwe/papers/Brown91-cqt.pdf

Is your progress on schedule or behind? If you are behind, what actions will be taken to catch up to the project schedule?

I am behind schedule. We are coming together as a group and almost have a clear collective idea of what the project will be. Once we nail down specifics of who the user group will be and what the components of the project will be, I will have the ability to start actually prototyping/developing my component. Meeting with the group to nail down the user group and define user/design requirements needs to be happening this coming week.

What deliverables do you hope to complete in the next week?

Hope to work with group to define precise design/user requirements. Hopefully this will happen early enough to give me time to research my component. Minimum goals for this week: precise design/user requirements. My component should be well researched, ideally so I am in a good position for outlining how my component will function/prototyping the following week.