A local-first piano practice studio for reading, playing, importing, and improving—whether you use a MIDI piano, the on-screen keyboard, or your computer keyboard.
PianoMapper is a .NET 10 application with three clients: an OpenTK desktop app, a standalone Blazor WebAssembly PWA, and an ASP.NET Core host that adds sheet-music recognition and a shared score library. All three use the same music, score, timing, grading, and layout engine in PianoMapper.Core.
TL;DR — Load MusicXML or a score image, play it on an 88-key piano, practice with live feedback, and build note-reading skills through adaptive exercises. Start the complete browser experience with
make.
- Generate treble, bass, or grand-staff note-reading exercises for five-note ranges, octaves, ledger lines, keys, accidentals, and triad inversions.
- Work from pitch-only recognition through rhythm and hold-duration practice. Choose Wait for me or a clock-driven Play along mode.
- See early/late feedback, review pitch, timing, and missed-note marks after a run, retry missed material, and follow an optional guided path built from your progress history.
- Use MIDI, the touch- and mouse-playable 88-key piano, or the optional computer-key layout—MIDI is never required for exercises.
- Use browser USB MIDI with velocity-sensitive note-on/note-off input, optional Roland FP-10 output, and a configurable metronome with tap tempo, sound choices, and common irregular-meter groupings.
- Play through the desktop client with a computer-key piano, octave controls, OpenAL synthesis, oscilloscope, and spectrum.
- Follow scheduled playback, count-in practice, random measures, tempo cursor, measure navigation, and an adjustable browser score page size.
- Read a live grand staff or scrolling piano roll with clefs, ledger lines, accidentals, note duration, ties, beams, key signatures, and notation annotations.
- Import
.mxl,.musicxml, and.xmlfiles for piano scores, including chords, ties, rests, tuplets, beams, octave shifts, fingering, and a focused subset of articulations and ornaments. - Import
.jpg,.jpeg, and.pngsheet music through the hosted Audiveris recognition path, then correct fingerings directly on the grand staff. When Audiveris cannot read an image, you can opt in to a slower, less precise second attempt with the optional alternate recognizer. - Save, update, load, and delete imported scores in the hosted browser app’s PostgreSQL-backed library. Scores saved by the optional AI image review keep their normalized
.mxlsource for download; other imports keep only the score.
- Install the standalone browser client as a PWA. After its first online load, the app shell can start offline.
- Keep practice history in browser storage first. On the hosted app each finished session is also saved to PostgreSQL (see Progress storage), so progress survives clearing the browser; the standalone PWA keeps it in browser storage alone, and the exercise generator degrades safely when storage is unavailable.
- Run MIDI, rendering, and audio in the browser connected to the piano, even when the development host runs elsewhere on your network.
Choose the route that fits what you want to try.
| I want to… | Run | What it includes |
|---|---|---|
| Use the complete browser app (recommended) | make |
PostgreSQL, MusicXML, image recognition, and saved scores |
| Use the complete browser app with the client compiled ahead of time | make run-release |
The same, from a Release publish with WebAssembly AOT (a larger one-time setup, see AOT-compiled release build) |
| Try MusicXML in a standalone browser PWA | dotnet run --project PianoMapper.Web/PianoMapper.Web.csproj |
MusicXML import; no server, OMR, saved-score library, or server-saved progress |
| Run the desktop app | dotnet run --project PianoMapper/PianoMapper.csproj |
OpenTK/OpenAL desktop piano app |
| Start a hosted browser app with your own prerequisites | docker compose up --detach --wait postgres then dotnet run --project PianoMapper.Server/PianoMapper.Server.csproj |
Hosted browser app with PostgreSQL and image recognition |
For the complete browser app, from the repository root:
makeOpen the URL printed by the development server, select Enable audio, then load a .mxl, .musicxml, .xml, .jpg, .jpeg, or .png file. The browser rejects files larger than 10 MiB before parsing or recognition.
To open a MusicXML score with the desktop app at launch:
dotnet run --project PianoMapper/PianoMapper.csproj -- --score path/to/piece.musicxml- Start the app with
make, or choose one of the alternatives above. - Open the displayed local URL and select Enable audio; browsers require a user action before they allow playback.
- Optionally select Connect MIDI piano and grant browser permission. For a Roland FP-10, use its square USB COMPUTER port with a data-capable USB cable.
- Load a score, press Play, or open the note-reading exercise panel and choose a mode.
Browser MIDI requires HTTPS or localhost. The on-screen piano and optional computer-key input work without MIDI. With the FP-10 sound source selected, the metronome click is also sent to the keyboard as short high notes (the same accents as the PC click) instead of playing through the computer speakers.
The exercise panel starts with simple reading and progressively introduces rhythm, timing, and duration. Its generated material can use random, melodic, or fixed-interval patterns; five-note, octave, ledger-line, key-signature, accidental, and chord ranges; and fixed or varied rhythms.
| Practice focus | What PianoMapper checks |
|---|---|
| Pitch only | The right key, with no timing pressure |
| Rhythm only | Onset timing; any key can answer |
| Pitch + rhythm | Correct key and beat alignment |
| Pitch + hold | Correct key and written duration |
| Pitch + hold + rhythm | Pitch, onset, and duration together |
Timed exercises include adjustable tempo, a beat indicator, and an optional continuing click. In Wait for me, nothing counts or clicks until you play: your first correct key establishes the grid at that note's written position, so reading time never counts as lateness, and the click starts on that grid. A timing gauge above the staff pulses with the click, counts the beat, and shows how far off the beat your latest notes were. The click never moves once it has started, and each key is judged against the nearest equivalent position within a main beat (never more than half a beat early or late), preserving the note's written subdivision. In 6/8, the main beat is a dotted quarter: the indicator counts two beats per bar with three eighth-note subdivisions each, and both main beats receive visual and audible emphasis. A key that lands a whole number of main beats away from where the previous key was (a held note cut short, a skipped beat, a pause) is marked as a wrong beat: the note turns early/late orange, counts as a timing mistake, and the gauge, status line and review say "a beat late" or "2 beats early". A learner who simply stays a whole beat behind is marked once, where they slipped; continuing on the wrong subdivision still counts as a timing error on each note. Their grading anchor owns the click while they run, so controls cannot re-phase it mid-exercise. Wait for me pauses until the correct key is found; Play along counts in one measure, keeps time and records missed or extra notes. Score playback can optionally share the same click anchor. During a run, answer-revealing aids such as names, fingering, next-key highlighting, and coach hints are opt-in. Afterward, the review distinguishes pitch, timing, and missed-note issues and can generate a focused retry.
MusicXML import is designed for one two-staff part or two single-staff piano parts. It preserves sounding pitch for playback and grading while rendering written staff position, including supported octave-shift brackets. The renderer supports dotted values through 64th notes, tuplet timing, chords, beam groups, key signatures, ties, and a focused set of notations: fermata, staccato, tenuto, accent, staccatissimo, trill marks, accidental marks, slurs, arpeggios, and glissando/slide marks.
On the hosted path, JPEG and PNG input is converted by Audiveris into the same PianoMapper score format. Image recognition is approximate: check imported pitches, rhythm, and fingerings before relying on playback or grading. Enable Edit fingering under Notation to adjust individual notes, or choose Regenerate all fingerings for deterministic, ergonomically optimized suggestions that retain the score’s right- and left-hand assignments.
The hosted app can optionally review an image import with an OpenRouter vision model. When the server has AI review configured, select Improve image imports with AI before choosing an image; the choice resets after that image, and the option is hidden when the server has no AI review and in the standalone PWA. This sends the original image and normalized MusicXML to the external provider and can incur charges. When the review changes the score and storage succeeds, the library contains the original and a separate - AI-improved score, each with its own downloadable .mxl; the improved version opens first, and the picker can reopen the original. When the review also found changes it cannot make, the improved version keeps only the changes it could make, the picker says the score is still incomplete, and it lists the remaining changes for you to make by hand; these are the model's own descriptions, not checked edits. A review that proposes no changes saves only the original and says so, and so does one that found only changes it cannot make, with the same list. If review fails, the original is saved alone when possible; if storage is unavailable, the original remains usable in the current session, the app reports that saving could not be confirmed, and Retry AI import repeats the request under the same import id, so it never saves a second pair. Structural checks do not establish musical accuracy: compare the result with the image before practising.
The Fingering reach profile (under Notation) stores independent comfortable and maximum 1–5 spans for each hand in browser-local settings, in white-key centre spacings. C4–D5 is eight spacings and is shown as an upper-reach reference, not as a measured comfort value; until you change them, both hands use the generic default of 6.5 comfortable and 9 maximum (a tenth, C4–E5). Other finger pairs keep generic limits of 5 comfortable and 7 (an octave) maximum, and never exceed your 1–5 span. Spans saved in an earlier version are kept as saved. A maximum is a hard limit for keys held together, including notes sustained from earlier, and a comfortable span only adds cost when exceeded. Released-hand leaps remain possible. If no fingering satisfies the profile, regeneration reports the measure and note and leaves the score unchanged; a key attacked again while it is still held is treated as re-struck by the finger already on it. The same profile is used for imported scores, new note-reading exercises, and Retry missed notes.
In fingering-edit mode, Lock fingering keeps a corrected number for the currently loaded score (the note list marks locked notes), and Regenerate preserving locked fingerings optimizes only the other notes. Regenerate all fingerings replaces every number and clears the locks, and loading another score drops them. Regeneration also offers up to two other coherent alternatives under Fingering alternatives; choosing one swaps its numbers in, and nothing is saved until you save the score. The generator does not redistribute hands, roll chords, assume pedal use, or perform silent finger substitutions.
| Function | Desktop | Browser |
|---|---|---|
| Play notes | A W S E D F R J U K I L ; |
MIDI piano, on-screen piano, or optional computer-key layout: Z S X D C V G B H N J M , L . |
| Clear / abort practice | Space | C |
| Change octave | Arrow Down / Up, or 1–8 |
On-page notation-focus controls |
| Toggle staff / piano roll | Tab | V |
| Play or restart score | P |
P |
| Previous / next measures | Page Up / Down | [ / ] |
| Start / retry practice | Enter | T |
| Random measure | M |
M |
| Exit | Q |
Browser tab or window controls |
The browser listener belongs to the focused play surface and leaves normal form editing and browser navigation keys alone. Its computer-key toggle is off by default and takes priority over the overlapping C, V, and M shortcuts while enabled.
| Path | Requirements |
|---|---|
| All clients | .NET SDK 10.0 |
| Desktop | An OpenAL-capable audio device and a display |
| Browser | A current desktop browser with WebAssembly, Web Audio, and Canvas 2D |
| Browser USB MIDI | Web MIDI support, user permission, and HTTPS or localhost |
make hosted launcher |
Bash, Make, Docker, and the Docker Compose plugin |
| Automatic image recognition | Linux x86_64 plus curl, ar, sha256sum, tar, and unzstd |
| Alternate image recognition (optional) | uv to run scripts/install-oemer.sh (about 650 MiB on disk, Python 3.13 fetched by uv if missing) |
make run-release and make publish-release |
Linux x86_64 plus curl, gzip, sha512sum, and tar; make run-release also needs everything make needs |
On Linux x86_64, the first make downloads the official Audiveris 5.10.2 package (about 68 MiB), verifies its checksum, and extracts its bundled Java runtime under .tools/. Later runs reuse that copy; an existing audiveris command on PATH takes precedence. On other platforms, install Audiveris separately and point the hosted app at its launcher:
Omr__AudiverisExecutable=/opt/audiveris/bin/Audiveris makeThe development PostgreSQL container listens only on localhost:5434 and stores data in the pianomapper-postgres-data Docker volume. To use an existing PostgreSQL service instead, provide its connection string; make then skips the development container:
ConnectionStrings__PianoMapper='Host=db.example;Database=pianomapper;Username=pianomapper;Password=secret' makeOmr__TimeoutSeconds controls image-recognition timeout and defaults to 180 seconds.
AI review is off by default. To enable it on the hosted server, set AiScoreReview__Enabled=true, AiScoreReview__ApiKey to an OpenRouter API key, and AiScoreReview__Model to an explicitly chosen model that accepts images and supports strict JSON-schema responses. Supply the key through environment variables or your deployment's secret mechanism; do not put it in the client or source control. No model is selected by default. Enabled without a key or model, the server still starts and reports AI review as unavailable, so the picker hides the option. GET api/score-images/capabilities answers {"isAiReviewAvailable": true|false} and never includes the key or model. Direct MusicXML imports, the standalone PWA, and the alternate oemer recognizer do not use AI review.
For local use, create an OpenRouter API key with a credit limit and keep the settings in ~/.config/pianomapper-ai.env (or $XDG_CONFIG_HOME/pianomapper-ai.env), outside the repository and readable only by you (chmod 600). make, make run-release and scripts/run-web.sh load that file on every start when it exists, print only its path, and start exactly as before when it does not. A variable already set in your environment wins over the file, so AiScoreReview__Enabled=false make turns review off for one run. The file is sourced by Bash; this example uses the first model candidate from the research:
# ~/.config/pianomapper-ai.env
export AiScoreReview__ApiKey='sk-or-...'
export AiScoreReview__Model='openai/gpt-6.1-sol'
export AiScoreReview__Enabled=trueTo try it without a file, enter the key without echoing it or placing it in shell history:
read -r -s -p 'OpenRouter API key: ' AiScoreReview__ApiKey
printf '\n'
export AiScoreReview__ApiKey AiScoreReview__Model='openai/gpt-6.1-sol' AiScoreReview__Enabled=true
makeAfter stopping the app, unset AiScoreReview__ApiKey removes the key from that shell's environment.
AiScoreReview__Endpoint defaults to https://openrouter.ai/api/v1/chat/completions and must be HTTPS without credentials, a query or a fragment. AiScoreReview__TimeoutSeconds defaults to 120 seconds and accepts 1–3600 for the complete model request, retry wait included; Audiveris runs first and has its own timeout. AiScoreReview__MaximumImageBytes, AiScoreReview__MaximumXmlBytes, and AiScoreReview__MaximumResponseBytes default to 10 MiB, 1 MiB, and 128 KiB and may only be lowered. Inputs over the limits are rejected rather than truncated. These settings are checked only when AI review is enabled; an invalid value then stops startup with a message naming the setting, for example AiScoreReview:TimeoutSeconds must be between 1 and 3600.
A review is retried at most once, and only after HTTP 429, 502 or 503, which mean the provider refused or failed the request before the model answered. It waits for the provider's Retry-After (seconds or a date), or one second without it, and does not retry when that wait exceeds 30 seconds or would not fit in the remaining timeout. HTTP 504 is not retried, because the model may already have run and been billed. Each review writes one log line with its outcome, attempts, latency, model, provider, input and output tokens and reported cost; failures add the failure kind and the provider's HTTP status, rejected corrections log the rejection reason, and storage failures log the database error. The key, image, MusicXML and model output are never logged.
Cost and latency depend on the selected model, score, provider and retry; check provider pricing before enabling the feature. Model research and a proposed first candidate do not establish accuracy on this workflow; two live runs on the fixtures, before and after contract version 2, are summarised there.
The correction contract (version 2) supports changes to existing pitches without changing their alteration, selected rhythm values, adding, removing or changing single fingerings, removing a false tuplet, inserting or deleting a note or rest, turning a rest into a note or a note into a rest, removing a spurious slur, staccato, staccatissimo, tenuto, accent or strong accent, and regrouping notes that recognition split over several voices (for example a bass line spread over four voices at wrong onsets) back into one voice in order, keeping the notes and their fingerings. The model lists every other needed change separately; the operations it could express are still applied, and the rest is shown to you as changes to make by hand. One stale, conflicting, out-of-range or otherwise invalid operation rejects the whole review, as do malformed, incomplete or uncertain responses and corrections that fail timing or MusicXML validation. Ties, slurs, beams, chords and grace notes are protected: an operation that would break them is refused. Timing is checked only in measures with a rhythm change, a removed tuplet, a regroup, an insertion or a deletion, so pitch, fingering and rest/note corrections work on any score the importer reads. The detailed limits are in the correction contract. The image is not saved in the library: conversion uses temporary processing files, and the browser may retain it in memory for a retry. The image and score are sent to OpenRouter and its selected model provider; consult their data-handling policies. The normalized original and improved .mxl files remain with their individual library records. Deleting either score removes its own file and leaves the other score intact. Import identifiers and request hashes remain to prevent a retry from recreating deleted versions. Later library score edits change the saved score, not its retained source .mxl.
The live fixture evaluation is separate from ordinary tests and can incur charges. Set a credit limit on the OpenRouter key, export AiScoreReview__ApiKey and AiScoreReview__Model (for example with set -a; . ~/.config/pianomapper-ai.env; set +a), then run:
PIANOMAPPER_LIVE_AI_EVALUATION=1 \
PIANOMAPPER_AI_EVALUATION_OUTPUT=/tmp/pianomapper-ai-evaluation \
dotnet test PianoMapper.Tests/PianoMapper.Tests.csproj --filter 'FullyQualifiedName~LiveAiScoreReviewEvaluationTests' --logger 'console;verbosity=detailed'PIANOMAPPER_AI_EVALUATION_OUTPUT must be an absolute path. The per-case summary lines appear only with verbosity=detailed. Each run submits six fixture cases; PIANOMAPPER_AI_EVALUATION_RUNS sets repetitions from 1 to 5 and defaults to 1. The test uses its own fixed settings: a 120-second timeout per case and the default image, XML and response limits, whatever AiScoreReview__TimeoutSeconds and the limit variables say; AiScoreReview__Endpoint is honoured. Each case may retry once as described above. The output directory gets a unique run folder with each validated response, each corrected .mxl, the provider's raw answer for a failed or rejected case (*.raw-response.json), and results.json with status (no_changes, improved, partially_improved, unsupported_only or the failure), operation count, the changes left to the learner, latency, provider-reported model, tokens and cost, and error counts. Errors are counted automatically against the reference MusicXML, per event and field (existence, rest or note, pitch, rhythm, fingering), matching events at one onset by pitch first: corrected, introduced, untouched, and changed but still wrong. A missing or extra event counts once; a field it hid that an insertion or swap then gets wrong counts as changed but still wrong, never introduced. manual-review.md lists those counts, the changes left to the learner and every differing field per case, and leaves the coverage and justification check to you: compare the files with the images before drawing a quality conclusion. Refused or failed calls may still incur costs that are absent from the report; check OpenRouter activity.
Audiveris sometimes cannot read a photo, for example when it misses a staff. When an image import fails, the app offers Try alternate recognizer (slower, less precise). It is never run automatically and never replaces an Audiveris result. It runs oemer, a Python recognizer, as a separate process on the server, so nothing from its Python stack is part of the .NET build or the AOT release build. It is off until it is installed and configured:
scripts/install-oemer.sh # creates .tools/oemer/venv with pinned dependencies and models
Omr__OemerExecutable=$PWD/.tools/oemer/venv/bin/oemer make # make finds that copy on its own, so the variable is optional thereThe pins (scripts/oemer-requirements.txt) matter: oemer 0.1.8 only runs with onnxruntime 1.20.1 on CPU and opencv-python-headless 4.11.0.86 on Python 3.13, and the script installs them with --no-deps so oemer's own onnxruntime-gpu requirement is not pulled in. The two ONNX models (about 105 MiB) are downloaded once, checksum-verified. Without it, the offer answers that the alternate recognizer is not set up.
A run takes minutes on a CPU (about three minutes for a five-system page on 16 cores). Omr__OemerTimeoutSeconds bounds it and defaults to 600 seconds. The server repairs oemer's MusicXML before importing it and lists measures whose notes do not fill their bar as "may be misread" under Simplified on import; it cannot detect every error, such as a whole note read as a whole rest.
Publish the standalone PWA when MusicXML-only import is enough:
dotnet publish PianoMapper.Web/PianoMapper.Web.csproj --configuration ReleaseServe PianoMapper.Web/bin/Release/net10.0/publish/wwwroot/ as static HTTPS files. Configure the host to return index.html for client-side routes and preserve <base href="/"> unless you intentionally deploy under a subdirectory.
For saved scores and image recognition, publish the ASP.NET Core companion instead and configure ConnectionStrings__PianoMapper before starting it:
dotnet publish PianoMapper.Server/PianoMapper.Server.csproj --configuration ReleaseThe standalone PWA has no process in which to run Audiveris or connect to PostgreSQL, so it intentionally supports MusicXML import only and keeps practice history in browser storage alone. The first PWA visit must be online so its service worker can cache the app shell; selected music files are never bundled into that cache.
make runs the browser client on the .NET WebAssembly interpreter. make run-release instead publishes it in Release with Mono ahead-of-time (AOT) compilation and starts the server from that published output, on the same address as make (http://localhost:5080; set ASPNETCORE_URLS to change it). PostgreSQL and Audiveris are handled exactly as for make, including ConnectionStrings__PianoMapper and Omr__AudiverisExecutable. make publish-release only publishes, to PianoMapper.Server/bin/Release/net10.0/publish-aot/.
AOT needs the wasm-tools workload, which a root-owned system SDK cannot install without sudo. The first run therefore downloads .NET SDK 10.0.112 (about 230 MiB, checksum-verified) and the workload (about 250 MiB) into .tools/ (about 1.7 GiB unpacked) and AOT-compiles the app, which takes a few minutes. Later runs reuse both and start within seconds while the code is unchanged. dotnet build, dotnet test, make, and the SDK on your PATH never use or need them; delete .tools/dotnet-sdk-10.0.112 to reclaim the space.
The trade-off is size: the browser's _framework download grows from about 2.8 MiB to about 5.8 MiB compressed (8.9 MiB to 26 MiB unpacked) compared with a plain Release publish, and every code change costs a recompile. The published app also registers the offline service worker, so after rebuilding, close every PianoMapper tab and reopen it; a plain reload keeps showing the previous build.
Finished note-reading sessions are kept in two places. The browser's local storage (key pianomapper-sight-reading-history-v1) is read first and written first, so the Progress panel and the guided path appear instantly and work offline. On the hosted app each session is then written to the progress_sessions table in PostgreSQL, and on every page load the browser and the server are reconciled: sessions only the server has are added to the browser, and sessions only the browser has (old browser data, or writes made while the server was down) are uploaded. A session is never stored twice, because each carries its own id. The browser keeps the newest 100 sessions; the server keeps all of them. There is one shared history for now, with no learner id in the routes.
| Route | Behavior |
|---|---|
GET /api/progress/sessions?limit=100 |
The newest sessions, newest first, as a JSON array. limit is 1–100 (default 100); anything else is 400. |
POST /api/progress/sessions |
Stores a JSON array of sessions and answers 204. Sending a session again changes nothing. One entry the server cannot read (malformed, or a schema version it does not know) rejects the whole request with 400. |
DELETE /api/progress/sessions |
Deletes every stored session and answers 204. The Clear history button calls it. |
Database routes, saved scores included, answer 503 problem details while PostgreSQL is unreachable and recover once it is back, without a restart; invalid input (such as a blank score title) is 400. AI image import instead returns the converted original for in-memory use when saving fails (see AI image import routes). The host starts even when PostgreSQL is down, and failures are logged without the connection string. A missing ConnectionStrings__PianoMapper still stops startup.
The Progress panel reports the state. With the server unreachable it says progress is not synced and keeps saving to the browser, and the next sync uploads what was missed. With no server at all (the standalone PWA) it behaves as before and shows no error. If the browser blocks local storage, history is held in memory and on the server only.
| Route | Behavior |
|---|---|
GET api/score-images/capabilities |
{"isAiReviewAvailable": bool}: true when AI review is enabled with a key and a model. No secrets. |
POST api/score-images/convert-with-ai |
Body: the JPEG or PNG (at most 10 MiB). Headers: Content-Type matching the file extension (image/png, image/jpeg), X-PianoMapper-Source-Name (the file name, at most 255 characters) and X-PianoMapper-Import-Id (a non-empty GUID chosen by the client; repeat it to retry). Answers 200 with status (1 Improved, 2 NoChanges, 3 Unavailable, 4 ImprovementFailed, 5 ValidationFailed, 6 PersistenceFailed, 7 PreviouslyDeleted, 8 TimedOut, 9 PartiallyImproved), original and improved (base64 .mxl, or null), originalId, improvedId, summary and manualFixes (the changes the review found but could not make, for the learner: present for PartiallyImproved, possible for ImprovementFailed, otherwise empty). A retry with the same id and image returns what the first request saved without converting or reviewing again. Errors, as plain text: 400 invalid name, type, id or empty body; 409 id already used for another image; 413 over 10 MiB; 422 the image could not be converted; 499 the client cancelled (nothing is saved); 503 image recognition unavailable; 504 image recognition timed out. AI review failures are not HTTP errors: they return 200 with the original and a failure status. |
GET /api/scores/{id}/source |
The saved score's normalized source .mxl as application/vnd.recordare.musicxml, named after its title, or 404 when the score has none (scores saved before AI import, or by other imports) or no longer exists. Part of the database routes above. |
| Project | Purpose |
|---|---|
PianoMapper.Core |
Shared music model, MusicXML import, score layout, timing, playback scheduling, synthesis contracts, and exercise grading |
PianoMapper |
OpenTK/OpenAL desktop application |
PianoMapper.Web |
Standalone Blazor WebAssembly PWA, Web MIDI, Web Audio, and canvas UI |
PianoMapper.Server |
ASP.NET Core host for the web client, Audiveris image conversion, and PostgreSQL saved scores and progress |
PianoMapper.Tests |
.NET unit and integration tests, plus browser-facing JavaScript tests |
dotnet test PianoMapper.Tests/PianoMapper.Tests.csproj
node --test PianoMapper.Tests/JavaScript/*.test.mjs
dotnet build PianoMapper.slnx --configuration ReleaseThe database tests (Category=Integration) start a throwaway postgres:17-alpine container through Testcontainers, so a bare dotnet test needs a running Docker daemon and fails, rather than skips, without one. Without Docker, run dotnet test PianoMapper.Tests/PianoMapper.Tests.csproj --filter "Category!=Integration"; to run only the database tests, use --filter "Category=Integration". They never touch the development database.
The browser’s manual coverage and current evidence live in the browser test matrix. For running a browser client from another machine while keeping MIDI and audio local to the browser, see remote access notes.
- MusicXML import is intentionally focused: more than two aggregate staves, grace notes, tempo or time-signature changes, stem values
none/double, and unsupported musical semantics fail with a readable error. Accepted presentation-only constructs that have no representation are reported as warnings. - Tuplets play at the correct duration for any imported ratio, but only a beamed 3:2 triplet currently receives a rendered numeral. Imported-score rests affect spacing and timing but are not yet drawn; imported tied notes remain separate noteheads without a drawn tie curve.
- OMR output depends on scan quality and Audiveris. Review every recognized score, especially rhythm and fingering, before using it for practice.
- AI image review is experimental and opt-in. It can change existing pitches (keeping their alteration), plain rhythm values and single fingerings, remove false tuplets, insert or delete notes and rests, swap rests and notes, remove spurious slurs and articulations, and regroup notes split over several voices into one; it cannot add or remove measures, add marks, or remove marks other than slurs and those articulations, and it fails closed on anything it cannot preserve. Changes it cannot make are listed for you to make by hand. Its result is checked for structure, not musical accuracy, and the release quality threshold is not yet decided. It sends the image and score to OpenRouter and the selected model provider, at a cost.
- The alternate recognizer reads one grand-staff part and ignores octave-shift lines, dynamics, and pedal marks, and sometimes splits or misreads rests and rhythms. Treat its result as a draft to check against your image.
- Timed exercises use the audio clock and do not yet compensate for output latency. Hardware with a large latency can make an on-beat player appear slightly late.
- Web MIDI depends on browser support, permission, and secure context. Sustain-pedal control changes are not interpreted; duration checking ends when a key sends note-off.
- Accounts and mobile-specific layout are outside the current browser release. The hosted server keeps one shared progress history, not one per learner. Clearing history deletes the saved copy too, but a browser that still holds older sessions re-uploads them on its next sync, so clear on each device that has used the app.
Built for the satisfying loop of read → play → listen → improve.