Skip to content

add DPDannenberg symbolic follower - #81

Merged
laurenceyoon merged 3 commits into
developfrom
feat/dannenberg1985
Nov 11, 2026
Merged

laurenceyoon merged 3 commits into
developfrom
feat/dannenberg1985

Conversation

@CarlosCancino-Chacon

@CarlosCancino-Chacon CarlosCancino-Chacon commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

This PR adds Bloch and Dannenberg's (1985) dynamic programming matcher.

@laurenceyoon
laurenceyoon force-pushed the feat/dannenberg1985 branch 2 times, most recently from 0e8eb8d to 23f4cda Compare November 10, 2026 12:31
@laurenceyoon laurenceyoon changed the title add DPDannenberg symbolic follower Add Dannenberg MIDI following and required benchmark fixes Nov 10, 2026
@laurenceyoon laurenceyoon changed the title Add Dannenberg MIDI following and required benchmark fixes add DPDannenberg symbolic follower Nov 10, 2026
Comment on lines +123 to +125
self.smoothing = smoothing

self._values = np.zeros(self.n_states, dtype=np.float64)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick) Is the zero initialization intended to allow matching to start anywhere within the initial search window?
For a C–D–E score, an initial E (with mistake) causes run() to stop immediately, leaving subsequent notes unread. Since the window is set to 50, this would be a edge case with very short score though.

@laurenceyoon
laurenceyoon merged commit 25960ea into develop Nov 11, 2026
12 checks passed
@laurenceyoon
laurenceyoon deleted the feat/dannenberg1985 branch November 13, 2026 13:33
@laurenceyoon laurenceyoon mentioned this pull request Nov 15, 2026
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.

2 participants