Skip to content

feat(verifier): a palm-muted note counts on its pick attack - #26

Merged
mattromano merged 4 commits into
customfrom
fix/verifier-palm-mute
Nov 12, 2026
Merged

mattromano merged 4 commits into
customfrom
fix/verifier-palm-mute

Conversation

@mattromano

Copy link
Copy Markdown
Owner

A palm-muted chug is a damped thud with little pitch, so the harmonic comb
often hears none of its strings even when it was played on time: on a
chugged C5 riff about 1 in 3 palm-muted chords scored 0/2 strings and were
missed (measured 2026-11-12). Chart notes now carry pm (setChart), and a
palm-muted note the comb didn't confirm still counts when an unclaimed pick
attack lands inside its timing window, timed by that attack. Legato notes
and ringing notes are unchanged.

The attack lookup and the rule move into src/audio/engine/VerdictRules.h
(JUCE-free) with a unit test in tests/engine_units. The source pin in
tone-load-no-stall.test.js follows the renamed variable.
Pairs with mattromano/feedBack-plugin-notedetect fix/palm-mute-attack, which sends pm.

Tests: tests/engine_units/verdict_rules_test.cpp (Debug, passes), safe JS set 195/195.

🤖 Generated with Claude Code

mattromano and others added 4 commits November 12, 2026 11:12
A palm-muted chug is a damped thud with little pitch, so the harmonic comb
often hears none of its strings even when it was played on time: on a
chugged C5 riff about 1 in 3 palm-muted chords scored 0/2 strings and were
missed (measured 2026-11-12). Chart notes now carry `pm` (setChart), and a
palm-muted note the comb didn't confirm still counts when an unclaimed pick
attack lands inside its timing window, timed by that attack. Legato notes
and ringing notes are unchanged.

The attack lookup and the rule move into src/audio/engine/VerdictRules.h
(JUCE-free) with a unit test in tests/engine_units. The source pin in
tone-load-no-stall.test.js follows the renamed variable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
It relied on <cmath> to bring in size_t, which a strict standard library
need not do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The per-note hit / attack-claim decision moves out of NoteVerifier::run
into a JUCE-free function so the claiming order across several notes can
be unit-tested. No behaviour change. The source pin follows the new call.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…a neighbour's attack

Two holes in the attack-only rule for palm-muted notes the comb missed:

- A strum makes one onset, but each chord string needed its own unclaimed
  one, so only one unheard string counted (a 3-string pm power chord
  scored 1/3 and still missed), and the result depended on the order the
  chart listed the strings. Onsets now record the chart time of the note
  that claimed them, and an unheard pm string shares an attack claimed for
  its own chord time, also across passes (strings with different sustains).
- With no pitch evidence, a skipped pm note in a riff faster than the
  timing tolerance took the next note's attack (or a missed previous
  note's late one). The attack-only onset must now be nearer this note
  than the chart notes either side of it.

Heard notes claim first in each pass, exactly as before the palm-mute
rule, so non-palm-muted notes keep their verdicts and timing. Unit tests
cover pm chords with nothing heard, one string heard in each order,
split-pass chords and skipped chugs; the source pin follows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mattromano
mattromano merged commit 8198063 into custom Nov 12, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant