Tim’s Status Report (10/24)

We are ordering the fret-overlay flex PCB as bare boards and soldering the parts ourselves, instead of paying JLCPCB to assemble it. The assembled quote came to $390.36 for 5 boards, with 2 of them assembled.
Two decisions got us here:

  • Rails. JLCPCB’s flex-assembly panel rule forced a much larger panel than the board itself. We found a layout that passes the rule, but the extra area and the assembly fees made the order expensive.
  • Self-assembly. We will order bare boards plus a cheap stencil, buy the chips and parts from LCSC, and reflow them ourselves. A bare board doesn’t need rails, so it is ordered at its own size.

    The assembled order cost $390.36. Most of that is board area and assembly fees, not parts: the chips and other parts were only about $25 of it.

We dropped JLCPCB assembly. We will order the board bare at its own size and reflow the parts ourselves.

  • Board. A single bare board, 471.15 x 160.05 mm, with no rails or frame. The 240 mm rule only applies to assembly, and the board fits JLCPCB’s 234 x 490 mm single-piece flex limit. Price: $154.80
  • Stencil. Ordered separately as a stencil-only item, using a 111 x 53 mm crop of the chip area. That cost $17.16, versus $31.58 for the 520 x 420 mm stencil the PCB-linked order required. All 248 openings were checked against the copper pads.
  • Parts. Bought from LCSC, JLCPCB’s sister store, with shipping combined into the JLCPCB box. Price: $25.62

Total comes to $197.58 + shipping which is significantly lower than price for two assembled boards.

Team Status Update 10/24

Model:

The loop works in simulation, and the compute meets the latency target. Using the live style input, next note accuracy is ~ .74

Risks: Jitter needs 80ms sort window. Options are relax latency requirement, correct output before the window closes, or train for unsorted input.

Design change was to ingest chords in a single pass.

Piezo Circuit:
Not much to update, still waiting on parts to arrive.

PCB Overlay for Fret Matrix:
JLCPCB charge is too high when assembly with other serial data transfer parts is involved.

Decision: Order only PCB without rails from JLCPCB, and order the serial data transfer parts separately.

Jai Status Report 10/24

Did end to end latency tests on personal laptop

sizefirst accompaniment note, p50 / p95 (ms)with 80 ms sort window, p50 / p95
XS 10M2.3 / 3.532 / 71
S 26M5.1 / 7.136 / 74
M 53M9.7 / 16.241 / 82
L 114M18.5 / 26.350 / 92

Ingesting the chord in one pass instead of token by token is 5x faster with identical outputs. The model is within the 30 ms target without the sort window. The 80 ms sort window is now the latency: only 30 to 46% of chords finish under 30 ms.

Accuracy

sizecleanraw live input40 ms sort80 ms sort
S0.7590.4690.6630.737
M0.7740.4790.6770.748
L0.7770.4880.6870.756

Tested music theory stuff for chord prediction, as that might help improve accuracy. It really only helped when theres short context. Longer context actually teaches the music theory

I added key, diatonic, harmonic-rhythm, loop and stock-progression features. Next-bar chord top-1: with 4 chords of history 0.453 to 0.508 (+5.5); with 8, +1.7; with 32, +0.5 (within noise).

On schedule.

Nextweek figure out the sort window vs latency conflict. Use theory features more to test. Start the pretraining on M

Aaqib’s Status Report (10/17)

Finalizing piezo + circuit implementation.

Concerns with piezo element:
– Original plan was to use piezo film from TE Connectivity. This film is thin enough for us to place under the bridge saddle. However, our donor guitar’s bridge width may not be compatible. The reason is the bridge’s width is <50mm while each piezo film is around 12.5mm is width. This implies that there can be an overlap of film which would result in cross talk between strings. As a result, we are first going to attempt using only 2 films to experiment and see how bad the cross talk. Since there is insulation, I think we should be on the good (also given that the signal from this film is extremely low anyway given that the material constant is pretty low (33 pC per newton) while the disk has almost x10 more capacitance per newton. Which is why we order the piezo 10mm disks as well (but this will also induce cross talk at a higher level).
See circuit implementation below (credit to CircuitLM (gave json) and claude (for diagram):

Status Report Global Concerns (i.e. part A):
Most of the people in the world are not as technologically capable. It is my understanding they prefer technology to serve them without understanding fundamentally what is happening under the hood. This is also why abstractions exist even within the engineering world. Not every problem and implementation is required to be known, sometimes only knowing the input and output (and assumptions) is needed for serving an audience. This is pretty much what our product is. The users don’t need to understand the depth of technology to play some music and get bandmates. It is for that population, who don’t want to dive into the nature of NN models and circuitry, that we are designing the solution for.

Team Status Update 10/17

Model Updates:
Models both have results on songs, best for predictive is 59% and best for generation is 77.8%.

Risks are that 80% isnt reachable, so we either decide on changing target, or accept a lower threshold as more reasonable given typically playing habits.

Generation quality hasnt been tested either, just the next note prediction, so this has to be done manually by testers

Jai: Part B:
Culturally, there is an argument about not having generative AI inside of the arts. Just because generative tools like Suno already exist doesn’t mean making more is acceptable. However this is meant to be a tool which has human input which leads the song, rather than creating something purely for commercial gain, taking the human out of the music. The goal is for someone to play the guitar and be able to get a fuller experience as if they were in a band. It does not replace the band, and it doesn’t lead the experience. Rather is accentuates a guitar player’s own capabilities via the accompaniments.

 

Aaqib: Part A (See Aaqib’s Status Report (10/17)).

Jai Status Report 10/17

For prediction model statistics

chords of history top-1 top-3 top-5 top-10 next-chord-change top-1
1 0.375 0.634 0.750 0.884 0.328
4 0.453 0.683 0.782 0.896 0.412
8 0.497 0.712 0.801 0.903 0.454
16 0.527 0.732 0.814 0.909 0.484
32 0.558 0.752 0.827 0.914 0.517
64 0.583 0.768 0.838 0.918 0.539
128 0.590 0.773 0.841 0.920 0.542
label classes top-1 repeat-last margin
full 49 0.590 0.289 +0.301
major/minor only 25 0.620 0.320 +0.300
root only 13 0.656 0.362 +0.294

The above chart is about removing complexities from the chosen chord and counting those as the same chord or separating them.

error type share of errors
predicted the previous chord again 33.4%
wrong root, unrelated 23.6%
right root, wrong quality (e.g. 7 vs major) 15.5%
root a whole tone away 10.2%
fifth or fourth away, same quality 9.1%
no-chord involved 5.0%
relative major/minor 3.3%

It is very possible that the 80% goal is unreasonable. In many songs at any given point, a player is strumming the same chord over and over again so it makes sense that this is a prediction error. Additionally adding more training data didnt help after ~60k.

Tested different model sizes for generations

size params nats/note (lower is better) top-1 clean top-5 clean top-1 with +/-30 ms jitter top-1 jitter + 80 ms sort p95 decode, ms/token train hours per epoch
XS 10M 1.665 0.748 0.923 0.490 0.730 0.90 3.6
S 26M 1.592 0.758 0.928 0.499 0.741 1.42 8
M 53M 1.521 0.772 0.934 0.512 0.754 1.85 14
L 114M 1.479 0.778 0.936 0.521 0.762 3.25 25
XL 207M 1.467 0.778 0.935 0.525 0.761 3.94 43
XXL 404M not trained – – – – 10.13 about 90

This metric is given the previous information, how accurate is the generated token given the prediction.

The largest model ran out of memory on the 32gb gpu so I couldnt train it

Behind on training the XXL model but most likely I’ll skip it. It’ll be slower based on the trend, not helping accuracy.

Next week i’ll do pretraining for M or L model. Measure latency on laptop(or just keep it and test on the lab device and try to sample input and output on it.

Do more chord evaluation and latency, including when paired with the predictive model

Tim’s Status Report (10/3)

MIDI Guitar Hardware Update

Donor guitar

  • Fender Squier Telecaster (25.5″ scale, 21 frets)
  • Chosen for its bolt-on neck, roomy control cavity, and low cost
  • An initial check showed 18″ from the nut to fret 21, which matches the theoretical 25.5″ scale layout

Fret sensing plan

  • A custom flex PCB overlay sits on the frets, with 126 pads (6 strings × 21 frets)
  • Each pad has its own trace, and the grounded string pulls a pad low when pressed
  • This lets us detect chords with several strings on the same fret

Measurements we’re collecting for the PCB layout

  • Nut-to-fret-crown distances, checked against the calculated fret positions
  • Fret crown width, height, and length
  • Fretboard width at the nut, fret 12, and fret 21, plus the fretboard radius
  • Each string’s lateral position at frets 1, 12, and 21, plus at the nut and saddle
  • String gauges and nut-to-saddle distance
  • Baseline string action, to plan for the overlay thickness

Pluck and velocity sensing: Roland GK-3

  • We selected the Roland GK-3 divided (hexaphonic) pickup, which gives a separate signal for each string
  • It mounts without drilling, so the stock bridge stays in place and each string’s ground path is preserved
  • It also makes the setup reversible, which suits prototyping
  • Our own ADC and firmware will read the six signals for pluck timing and velocity
  • Still to confirm: breakout box and cable, mounting position on the Tele, and ADC front end

Next steps

  • Finish the measurements and generate the pad layout
  • Order a test flex PCB, and prototype the scanning firmware on a bench board first

Aaqib Status Report (10/3)

  • Research more types of piezo devices for the guitar sensors.
  • Rationale: Pickups are currently more than a $100. Even though we have the budget for it, I want to ensure that the saddles are the only option before I move ahead.
  • Circuitry schematic in the works.
  • Looking into methods of testing without matrix PCB for rationalizing if current design choices will be viable.