Commit Graph
116 Commits
Author SHA1 Message Date
Claude a8818225f7 Change host port from 8080 to 8888
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PbwKCCj1vwAoqgRYDoqgeL
2026-08-02 23:42:07 +00:00
Claude debb1e023c Add Docker/Compose hosting with Caddy 2 reverse-proxy docs
Serves the static index.html via a small nginx container and documents
pointing an existing Caddy 2 instance (local or remote) at it via FQDN
with automatic HTTPS.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PbwKCCj1vwAoqgRYDoqgeL
2026-08-02 20:32:03 +00:00
Outis f9b1a287c7 Add files via upload 2026-04-05 11:25:59 -04:00
Outis e5debadf6c Create text.txt 2026-04-05 11:25:23 -04:00
Outis 4e119a24d0 Merge pull request #40 from outis1one/clDemoe/fix-pitch-editing-kH3FR
Cl demoe/fix pitch editing k h3 fr
2026-04-02 13:08:54 -04:00
Claude 078b9c4586 Make play-from marker draggable left and right in editor timeline
Previously clicking the header set the marker but you couldn't drag it.
Now click-and-drag in the header moves the marker freely in both
directions. Auto-scrolls when dragging near canvas edges so you can
drag the marker past the visible area back toward the beginning.

https://claude.ai/code/session_01TLvDyKzUQekd9hzFuEJ5YX
2026-04-02 17:07:56 +00:00
Claude ad09a41542 Add Start button and Home/End keys to editor for navigation
After auto-scroll during preview, users couldn't easily navigate back
to the beginning to reposition the play-from marker. Added:
- "⏮ Start" button that resets scroll and play-from marker to beginning
- Home key shortcut to do the same
- End key shortcut to jump to end of piece

https://claude.ai/code/session_01TLvDyKzUQekd9hzFuEJ5YX
2026-04-02 16:38:16 +00:00
Outis 5b26ea8640 Merge pull request #39 from outis1one/clDemoe/fix-pitch-editing-kH3FR
Fix pitch input being overwritten while user is typing
2026-04-02 12:28:20 -04:00
Claude d8eaf4fd37 Fix pitch input being overwritten while user is typing
edUpdateNotePanel() resets pitchInput.value on every call, but it runs
on every edDraw() — including from requestAnimationFrame during preview,
mouse events, and a 30ms setTimeout(edResize) loop. This caused any
typed characters to be immediately overwritten.

Now skip overwriting INPUT/SELECT values when that element has focus,
so the user can freely type a new pitch like "A4" without it snapping
back to the old value.

https://claude.ai/code/session_01TLvDyKzUQekd9hzFuEJ5YX
2026-04-02 16:25:18 +00:00
Outis 31b9292f00 Merge pull request #38 from outis1one/clDemoe/fix-pitch-editing-kH3FR
Fix game input handlers intercepting keystrokes in editor input fields
2026-04-02 12:21:50 -04:00
Claude 8fca8cacd7 Fix game input handlers intercepting keystrokes in editor input fields
Two additional window-level keydown handlers were also capturing keys when
the pitch input (or any input/select/textarea) was focused:

1. The key remap handler (capture phase) was eating all keydown events
2. The game lane input handler was calling preventDefault() on keys like
   f, g, h, j, d, k, l, space — which are needed for typing pitch names

Both now skip when activeElement is an INPUT, TEXTAREA, or SELECT.

https://claude.ai/code/session_01TLvDyKzUQekd9hzFuEJ5YX
2026-04-02 16:20:04 +00:00
Outis 8f02ead4bf Merge pull request #37 from outis1one/clDemoe/fix-pitch-editing-kH3FR
Fix pitch input: stop editor keydown handler from intercepting input …
2026-04-02 12:12:46 -04:00
Claude 07b6b9a868 Fix pitch input: stop editor keydown handler from intercepting input fields
The edKeyDown handler was catching Backspace, Delete, arrow keys, and other
keys globally, even when the user was typing in the pitch input field. This
made it impossible to edit the pitch value (e.g. changing D4 to A4) because
Backspace would delete the selected note instead of editing the text.

Added a check to skip the handler when focus is on INPUT, TEXTAREA, or SELECT.

https://claude.ai/code/session_01TLvDyKzUQekd9hzFuEJ5YX
2026-04-02 16:10:58 +00:00
Outis 9920816ef7 Merge pull request #36 from outis1one/clDemoe/check-editor-visibility-0nTHw
Add note properties panel and human-readable pitch/timing to editor
2026-04-02 11:55:22 -04:00
Claude 548476cb85 Add note properties panel and human-readable pitch/timing to editor
When a note is selected, a properties panel now appears with:
- Pitch input (type note names like C4, D#5, Bb3)
- Duration dropdown (whole, half, quarter, eighth, etc.)
- Lane selector dropdown

Code view now shows pitch names and duration names as comments
next to each note for easy reading. Export includes pitch/duration
names. Import and Apply Code accept note name strings in the f field.

https://claude.ai/code/session_018SvBLznyTuvoZAYCw9WwAA
2026-04-02 15:45:28 +00:00
Outis f331a384f8 Merge pull request #35 from outis1one/clDemoe/drum-rhythm-game-tAzXn
Fix editor: select vs add, pitch editing, reset preserving freq, code…
2026-04-02 11:17:30 -04:00
Claude 4df86398f7 Fix editor: select vs add, pitch editing, reset preserving freq, code panel
Major interaction fix:
- Single click now SELECTS nearest note in same lane (not adds)
- Double-click on empty space adds a new note
- Hit detection has larger padding (+6px each side) for easier clicking
- Nearby-note search fallback: clicks within half-beat snap to closest note

Pitch editing:
- Shift+Up/Down = change pitch by one semitone
- Ctrl+Shift+Up/Down = change pitch by one octave
- Status bar shows current pitch (e.g. A4) and available shortcuts

Bug fixes:
- Reset now preserves frequency (f) field — pitch info no longer lost
- Code panel has max-height:45vh with overflow scroll, textarea resizable
- Canvas has min-height:200px so it never gets fully squished
- Help text updated to reflect new click=select, dbl-click=add behavior

https://claude.ai/code/session_01AqTWV8hPy2XcGP5KY2Q8zv
2026-04-02 15:16:04 +00:00
Outis b616ced88a Merge pull request #34 from outis1one/clDemoe/drum-rhythm-game-tAzXn
Fix Drunken Sailor pitches, add pitch display, fix play-from-position…
2026-04-02 11:02:59 -04:00
Claude cc7c940df1 Fix Drunken Sailor pitches, add pitch display, fix play-from-position, resizable code panel
- Restored original pitches (D4, F4, A4) for Drunken Sailor M1-2 and
  (C4, E4, G4) for M3-4 while keeping corrected q-ee-q-ee rhythm
- New "Pitch" toggle button shows note names (A4, C#5, etc.) below
  each note on the editor canvas using frequency-to-note-name lookup
- Code labels now also show pitch name when available
- Play-from-position redesigned: single click in header sets a yellow
  marker, double-click starts playback from that position. Preview
  button also starts from marker. Esc clears marker.
- Header area enlarged to 32px for easier clicking
- Code panel textarea now resizable (drag to expand/shrink), removed
  fixed max-height, canvas auto-resizes via ResizeObserver
- Status bar shows note value name (quarter, eighth, etc.) for selection

https://claude.ai/code/session_01AqTWV8hPy2XcGP5KY2Q8zv
2026-04-02 14:55:53 +00:00
Outis debaf2114b Merge pull request #33 from outis1one/clDemoe/drum-rhythm-game-tAzXn
Add editor rhythm notation, time signatures, play-from-position, fix …
2026-04-02 10:37:17 -04:00
Claude 34f65f4ead Add editor rhythm notation, time signatures, play-from-position, fix Drunken Sailor
Editor improvements:
- Musical notation symbols (♩♪𝅗𝅥𝅝) displayed on notes with duration
- Number keys 1-5 set note values (whole/half/quarter/eighth/sixteenth), 6-8 for dotted
- Time signature selector (4/4, 3/4, 6/8, 9/8, etc.) with measure-aware grid lines
- Double-click header to start playback from any position
- Singalong/non-Classical pieces no longer play background orchestra in editor preview
  (only Classical genre gets conductor mode with bg track)
- Status bar shows note value name when selected

Drunken Sailor fix:
- Corrected rhythm to quarter-eighth-eighth pattern per sheet music
- Melody notes now store duration and frequency for proper editor display

Singalong pieces now tagged with isSingalong flag and store duration on melody notes.

https://claude.ai/code/session_01AqTWV8hPy2XcGP5KY2Q8zv
2026-04-02 14:31:07 +00:00
Outis 2c95b9130f Merge pull request #32 from outis1one/clDemoe/review-drum-game-nAeLJ
Rewrite Drunken Sailor melody to match actual sheet music
2026-04-02 09:52:07 -04:00
Claude 4fdb38134f Rewrite Drunken Sailor melody to match actual sheet music
Replace the incorrect Drunken Sailor melody with an accurate
transcription from the traditional sheet music:
- Verse: repeating A4 eighth notes descending to D-F-A, then G4
  pattern with C-E-G, building to B-C-D
- Chorus: "Way hey and up she rises" with dotted rhythms
- 3 passes with building instrumentation (woodwind → strings → brass)
- Proper Am/G chord backing from pass 2 onward
- Correct rhythmic values (eighths, quarters, dotted quarters, halves)

https://claude.ai/code/session_015qMeX3wFA1dcCaFp9p4vai
2026-04-02 13:41:09 +00:00
Outis 42c6904a3c Merge pull request #31 from outis1one/claude/review-drum-game-nAeLJ
Show note code labels directly on canvas when Code is toggled
2026-04-02 09:37:39 -04:00
Claude 0afa690736 Show note code labels directly on canvas when Code is toggled
- Clicking Code button now toggles on-canvas labels above each note
  showing {t, l, d} values so you can see the code right at the note
- Labels appear for ALL notes when Code mode is active (button turns blue)
- Selected note always shows its label regardless of Code mode
- Code panel still opens/closes alongside the labels for bulk editing
- Labels positioned above notes, flipping below if near lane top

https://claude.ai/code/session_015qMeX3wFA1dcCaFp9p4vai
2026-04-02 13:32:31 +00:00
Outis 09df2f8302 Merge pull request #30 from outis1one/claude/review-drum-game-nAeLJ
Add preview playhead with note highlighting, fix editor layout
2026-04-02 09:18:58 -04:00
Claude ef87125be0 Add preview playhead with note highlighting, fix editor layout
- Playhead: yellow vertical line tracks current position during preview
  with auto-scroll to keep it visible
- Note highlight: notes flash white with colored glow when the playhead
  passes over them, so you can see which note is playing
- Fix editor layout: canvas was squished because ED_LANE_H calculation
  didn't account for ED_HEAD header height, and screen overflow
  prevented flex stretching
- Pattern mode playhead cycles through 0-4 beat range correctly

https://claude.ai/code/session_015qMeX3wFA1dcCaFp9p4vai
2026-04-02 13:14:00 +00:00
Outis 9672658c0b Merge pull request #29 from outis1one/claude/review-drum-game-nAeLJ
Add editor features: START marker, measure numbers, note duration, ra…
2026-04-02 09:03:38 -04:00
Claude 657761c119 Add editor features: START marker, measure numbers, note duration, range select & copy/paste
- START marker: green dashed vertical line at t=0 matching the END marker style
- Measure numbers: numbered (M1, M2, ...) in a header row at top of editor
- Note duration: notes support a `d` (duration) property, rendered as variable-width bars
  with a draggable right edge to resize; D key to add/increase, Shift+D to remove
- Range select: Shift+drag on timeline to select a region (purple highlight)
- Copy/paste: Ctrl+C copies notes in selection (or single selected note),
  Ctrl+V pastes at end of piece or at selection boundary
- Ctrl+A selects all notes, Escape clears selection, Delete removes range
- All save/load/export/import/code-view paths preserve the duration property
- Updated help text and status bar to document new controls

https://claude.ai/code/session_015qMeX3wFA1dcCaFp9p4vai
2026-04-02 12:53:08 +00:00
Outis 127d197e9e Merge pull request #28 from outis1one/claude/explore-drum-game-QXyzi
Fix melody editor not rendering notes and add math gate to editor/hiding
2026-04-02 08:09:24 -04:00
Claude cffd91e71a Fix melody editor not rendering notes and add math gate to editor/hiding
- Fix edPxPerSec() → edPxPerUnit() crash in edDraw() that prevented
  canvas notes/lanes from rendering (only toolbar was visible)
- Add math gate prompt (simple addition) to openEditor(), hideSong(),
  and hideGenre() for parental control consistency
- Refactor confirmReset() to use shared mathGate() function

https://claude.ai/code/session_01GSG2ymeVdsTegpaKVhQVFF
2026-04-02 11:55:22 +00:00
Outis d1e233d087 Merge pull request #27 from outis1one/clDemoe/read-repo-uQDWQ
Fix editor canvas not rendering: layout and resize fixes
2026-04-01 13:31:25 -04:00
Claude 6f3e4c8aa0 Fix editor canvas not rendering: layout and resize fixes
- Canvas uses flex:1 and align-self:stretch to fill remaining space
- edResize uses getBoundingClientRect for reliable width measurement
- Use double requestAnimationFrame instead of setTimeout for layout settling
- Minimum canvas height of 200px as fallback

https://claude.ai/code/session_01TFVkxq4PYhkSFGYHEi4uqY
2026-04-01 17:05:11 +00:00
Outis 9a49afc743 Merge pull request #26 from outis1one/clDemoe/read-repo-uQDWQ
Add portable edit transfer: bake edits into HTML, download/load JSON
2026-04-01 13:00:51 -04:00
Claude bc3565e263 Add portable edit transfer: bake edits into HTML, download/load JSON
Three ways to move edits between machines:
- "Bake into HTML" downloads index.html with edits embedded in the file
- "Edits File" downloads all edits as a JSON file
- "Load Edits" imports edits from a JSON file into localStorage
Baked edits act as fallback — localStorage overrides them on the new machine.

https://claude.ai/code/session_01TFVkxq4PYhkSFGYHEi4uqY
2026-04-01 16:56:53 +00:00
Outis 0d2786551e Merge pull request #25 from outis1one/clDemoe/read-repo-uQDWQ
ClDemoe/read repo u qdwq
2026-04-01 12:54:43 -04:00
Claude 95d80ff19c Merge origin/main into feature branch
Resolves conflicts:
- Keep both Remap Keys button and Edit Melody button
- Keep conductor-style Bumblebee (our enhanced version)
- Keep localStorage melody edit check in buildClassicalNotes

https://claude.ai/code/session_01TFVkxq4PYhkSFGYHEi4uqY
2026-04-01 16:51:38 +00:00
Claude f4b8d0bae8 Extend melody editor to all genres with code view and import
- Editor now works for regular rhythm patterns (rock, jazz, etc.) not just classical
- Added code view toggle showing JS array notation for notes/patterns
- Added import panel for pasting JSON note data or loading .json files
- Preview mode handles both classical (synth orchestra) and regular (drum sounds)
- buildNotes() now checks localStorage for user-saved pattern edits
- Fixed edPreview() to play drum patterns with proper bar looping

https://claude.ai/code/session_01TFVkxq4PYhkSFGYHEi4uqY
2026-04-01 16:27:49 +00:00
Claude 6e2538412a Add visual melody editor for classical pieces
New editor screen lets users fix incorrect melodies without editing code:
- Canvas-based timeline with 5 lane rows (Red/Yellow/Blue/Green/Kick)
- Click to add notes, click existing notes to select, drag to move
- Delete/Backspace to remove selected note
- Arrow keys to nudge timing and lane
- Beat grid snapping (1/4 beat resolution)
- BPM adjustment
- Zoom slider for timeline scale
- Preview with orchestral background + melody clicks
- Save to localStorage (auto-loaded when playing the piece)
- Copy JSON to clipboard for sharing corrections
- Reset button to restore original melody
- Edit button appears in menu only for classical pieces

Edits are loaded in buildClassicalNotes() so saved corrections
are used during gameplay automatically.

https://claude.ai/code/session_01TFVkxq4PYhkSFGYHEi4uqY
2026-04-01 16:18:09 +00:00
Claude 6baec25e6b Rewrite Flight of the Bumblebee in conductor-style
Replaced 5-line tp() call with full conductor-style arrangement:
- chromRun() helper plays fast chromatic scales in background,
  only every 4th note is hittable (conducting the accent peaks)
- 7 sections: intro → first chromatic runs → development →
  E minor modulation → fff recapitulation → climax → coda
- Three speed tiers (0.09s, 0.065s, 0.055s per note) for
  increasing intensity across sections
- Continuous Am harmonic bed with strings/bass
- Duration expanded from ~35s to ~88s

https://claude.ai/code/session_01TFVkxq4PYhkSFGYHEi4uqY
2026-04-01 16:13:05 +00:00
Outis 787489a30f Merge pull request #24 from outis1one/claude/drum-rhythm-game-ChXaj
Claude/drum rhythm game ch xaj
2026-03-31 09:41:44 -04:00
Claude 75057926c1 Fix Away in a Manger, O Holy Night, Kumbaya, Nobody Knows rhythms
Away in a Manger: 3/4 waltz now has beat-1 emphasis with half-notes
on sustained syllables ("manger", "bed"), proper waltz feel instead
of uniform quarter notes.

O Holy Night: Encodes the characteristic 12/8 compound feel with
dotted-quarter+eighth pairs (3,1) matching the lilting "O ho-ly night"
rhythm and half-note phrase endings.

Kumbaya: Slow meditative spiritual now uses dotted-quarter+eighth
(3,1) for the 3-syllable "Kum-ba-ya" pattern with half-note on "Lord",
matching the gentle rocking feel of the original.

Nobody Knows the Trouble I've Seen: Gospel dotted phrasing with
longer held notes on key phrases, replacing uniform quarter notes.

https://claude.ai/code/session_016yrXXcwbdXGoSXkNX8UcP2
2026-03-31 13:39:36 +00:00
Claude 0229242ff8 Fix Danny Boy, Red River Valley, Parting Glass rhythms
Danny Boy (Londonderry Air): Replace all-quarter encoding with proper
flowing Irish dotted rhythm. Phrases now use dotted-quarter+eighth
pairs (3,1) for melodic motion, half notes (4) on stressed syllables
like "Boy", and dotted-half (6) or whole (8) for held phrase-end
notes like "-ing", "side", "bide". Total duration increases from
~43s/pass to ~50s/pass reflecting the song's true character.

Red River Valley: Slow American ballad now has dotted-quarter+eighth
motion with half-note phrase endings instead of uniform quarter notes.

The Parting Glass: Irish 4/4 ballad now uses proper dotted feel with
stressed syllables held as half/dotted-half notes.

https://claude.ai/code/session_016yrXXcwbdXGoSXkNX8UcP2
2026-03-31 13:34:24 +00:00
Outis 51fee5f1bf Merge pull request #23 from outis1one/claude/restore-genres-ISeRE
Claude/restore genres i se re
2026-03-31 08:51:30 -04:00
Claude 8da43e74e4 Add dotted rhythms to iconic songs for musical accuracy
- Silent Night: proper 6/8 feel with dotted-quarter + eighth (3,1,2) pattern
- Deck the Halls: dotted pickup on "Deck the halls" and "Fa la la" phrases
- Amazing Grace: dotted quarter-eighth pairs in "A-MAZ-ing Grace" phrasing
- Auld Lang Syne: characteristic dotted Scots snap rhythm (3,1 pattern)

https://claude.ai/code/session_01MhCcEPfX3JqAk8zmvLXZ1g
2026-03-31 11:55:06 +00:00
Claude 826b81c007 Fix rhythm timing across all synth genre pieces
- Changed all 7 helper functions (folk, carol, pub, spirit, world, rhyme, rag)
  from hardcoded q values to BPM-based timing (q=30/bpm), making duration
  units represent eighth notes at the given BPM
- Scaled all ~93 duration arrays to work correctly with new timing system
- Fixed specific rhythm patterns for well-known songs:
  - Happy Birthday: correct 3/4 pickup rhythm (1,1,2,2,2,4 pattern)
  - Greensleeves/What Child Is This: proper 3/4 dotted rhythm (3,1,2 pattern)
  - Joy to the World: correct descending scale rhythm with dotted values
  - Home on the Range: proper waltz-style quarter/half note rhythm
  - She'll Be Coming Round the Mountain: correct 2/4 march rhythm
  - Jingle Bells: corrected verse/chorus rhythm
- Fixed Video Game pieces: Turkish March q=0.18→0.227, Can-Can q=0.16→0.197
  to match their listed BPM tempos
- Fixed duplicate Happy Birthday definition in "Classics from Prime" section

https://claude.ai/code/session_01MhCcEPfX3JqAk8zmvLXZ1g
2026-03-31 11:52:32 +00:00
Claude 2c67ca3b7c Fix wrong melodies across multiple synth genres
Classical:
- Hall of the Mountain King: transpose from A minor to correct B minor key
- Toccata & Fugue: extend from 39s to 74s with full toccata continuation
- Swan Lake: transpose to B minor, fix melody contour to use repeating ascending motif
- Hungarian Dance No. 5: rewrite themes in D minor with correct melody
- Dance of the Sugar Plum Fairy: replace Für Elise melody with actual Nutcracker celesta theme

Christmas:
- God Rest Ye Merry Gentlemen: fix F natural→F#(Gb4) and Bb→B for correct E minor key
- Angels We Have Heard on High: rewrite to correct F major melody with Gloria melisma

Singalong:
- Amazing Grace: fix G5 (too high) to E5, correct melody peak
- My Bonnie Lies Over the Ocean: fix G5 (too high) to E5, correct chorus range

https://claude.ai/code/session_01MhCcEPfX3JqAk8zmvLXZ1g
2026-03-31 11:22:41 +00:00
Outis caa68cdd10 Merge pull request #22 from outis1one/claude/restore-genres-ISeRE
Fix missing 'baa' variable in NURSERY_PIECES causing all genres to di…
2026-03-31 00:23:25 -04:00
Claude fd14076173 Fix missing 'baa' variable in NURSERY_PIECES causing all genres to disappear
The NURSERY_PIECES IIFE referenced 'baa' (Baa Baa Black Sheep) in its return
array but the variable was never defined — it was lost during the Prime genre
merge. This ReferenceError crashed the script on load, preventing all genre
tabs and rhythm lists from rendering.

https://claude.ai/code/session_01MhCcEPfX3JqAk8zmvLXZ1g
2026-03-31 04:22:40 +00:00
Outis 9ce0ee34e7 Merge pull request #21 from outis1one/claude/fix-classical-pieces-abgA3
Remove Prime genre (merged into Nursery Rhymes), add missing genre icons
2026-03-31 00:16:40 -04:00