Jai Status Report 11/21

Worked on retraining/improving model based on the flawed input.

Researched and used the album Prof Zajdel suggested “Well I should have learned to play the piano” as reference

Worked on output smoothing to improve the sound quality

Took input from friends and family in order to rate and judge quality

Team Status Report (11/21)

Aaqib: Piezo testing at individual string level done for all channels (works as intended). Next steps involve small changes to firmware to ensure chord detection and integration across other devices.

Aaqib’s Status Report (11/21)

Piezo elements for all channels works as intended. Need to make small changes to firmware to ensure strumming detection (or chord detection, i.e. detection of multiple strings).
Next Steps:

Small changes to firmware for multiple string detection

Integration with fret detection PCB and ML model.

Learning Strategies/ Processes for the project:
– To understand the functionality of piezo’s in a circuitry environment, I used multiple papers, external sources (i.e. friends) along with youtube for a base understanding.
– To ensure I really understood what I learnt, I used ChatGPT tutor mode to ask questions relevant to the above material.
– Debugging circuits at the design level usually involved using LTSpice to simulate.
– Debugging (after design) involved the use of Oscilloscope and Multimeters.
– Professor Zejdal influenced the debugging choices; thank you for the help!
– To summarize, the best learning strategy per se was the idea of verifying the knowledge I received from external sources. This was useful to ensure I knew exactly what was happening.

Team Status Report (11/14)

Jai: Manual listening test and improvements. Possible implementation of testing audio without manual checks. Waiting for hardware implementations to integrate completely.
Tim: Waiting for stencil from JLCPCB to bake and serial registers. PCB fits as expected on guitar.
Aaqib: Implemented on guitar and results satisfied with minor hiccups. Next steps include doing it for other channels.

Aaqib’s Status Report (11/14)

Added piezo under bridge saddles for 2 chords. The peaks show aliasing issue for really high frequencies for some reason. Need to look into the anti aliasing filter in more detail.

In addition, after convening with someone who plays the guitar, it is to my understanding that such frequencies are not really required since no one plucks that hard.

Next steps:

  • Implement circuit for rest of the channels
  • Implement piezo under bridge for each.
  • Integrate with PCB

Tim’s Status Report (11/14)

I’ve received the overlay PCB from JLCPCB. Test-fitting it on the Squier Telecaster neck confirmed that the frets and strings line up exactly with the pads on the board, so the pad layout needs no changes.

I’m now testing ways to mount it. I’m using insulating tape between the frets so the PCB sits just below the fret crowns. That way a pressed string still seats properly on the fret, so the guitar plays and sounds normal, while still closing the contact on the pad. I’ll settle on the tape height through play-testing across the neck.

I’m still waiting on the solder-paste stencil from JLCPCB. Once it arrives, I’ll mount the parts I’ve already ordered (the 8 MCP23S17 chips, decoupling capacitors and the J1 connector). I’m also ordering a pre-crimped 6-pin JST SH (1.0 mm pitch) cable to connect J1 to the Teensy 4.1. It will carry the SPI lines plus 3.3 V and ground. After assembly, I’ll check that all 8 chips and 126 pads respond, then switch the firmware from the simulator to the real board.

Jai Status Report 11/14

More fine tuning on manual listening tests in order to build a small sample dataset of good/bad sounding songs

Worked on evaluating the inputs where music is malformed/not as accurate so that the output can recognize input and still produce reasonable sounding output. This is something which may or may not be possible. In real life, if the player is a complete novice or is not very good at staying on tempo or other problems etc, then bandmates also will have a hard time playing along since they can’t understand what the guitarist is trying to play

Jai Status Report 11/7

Did manual ear tests for model which helped tune and allowed information for post processing to make the output sound smoother

Synced up demo with the teensy to simulate what output would look like\

Created demo interface for intern demo to display and actually output music easier

Team Status Report (11/7)

Jai: Model prototype complete with music generation at ~70% accuracy with in sample data sets. Out of sample music tested. For now, the music sounds blocky (as expected with MIDI notes), however, further steps may involve quantizing to better output music.

Tim: Fret Matrix PCB firmware written and combined with Piezo element scanning. Used chord simulator to test.

Aaqib: Piezo implementation for 2/6 channels complete. Further steps involves combining with bridge of guitar.

Tim’s Status Report (11/7)

Firmware (Teensy 4.1): The fret-sensing firmware is written. Every millisecond it reads the 126 fret pads through the 8 MCP23S17 chips over SPI. It uses the pad map exported from the PCB design to turn each pad into a string and fret, and keeps the highest fret held on each string. A change has to hold for 3 scans before it counts. When a string is plucked, the firmware combines that string’s open note with the current fret and sends the result to the AI model as a USB-MIDI note with velocity. The fret input is swappable with one compile-time switch: today it comes from the simulator, and when the overlay PCB arrives it will come from the board. Everything after the input is the same code.

Chord simulator (Python): Since the PCB hasn’t arrived, I wrote a chord simulator that stands in for it. It converts chord names or shapes into the same bits the 8 chips will report and streams them to the Teensy over USB, along with strum events. It can play full songs on the beat; the demo song is Smoke on the Water at 111 BPM. In PC tests, the simulator input and the real-board SPI input produced identical notes, and the simulator has played the full song end to end. Next is running it on the Teensy itself.

Piezo integration (Aaqib): Aaqib’s piezo pluck-detection code is merged into the firmware unchanged and runs in the same loop as the fret scan. Right now it only prints pluck events, so we can confirm detection without affecting the MIDI output. For the demo, one flag switches the plucks from the simulator’s strum events to Aaqib’s piezo detections. A real pluck will then set the note’s timing and velocity, the fret state will set the pitch, and the note will go to the AI model over USB-MIDI.

Next steps:

  • Flash and test on the Teensy
  • Enable piezo-triggered notes to the AI
  • Assemble and bring up the PCB when it arrives, then switch from the simulator to the board
  • Measure pluck-to-MIDI latency against the 10 ms target