Commit Graph

16 Commits

Author SHA1 Message Date
Xiaohan-Tian 1879df8033 feat: implement global chord track 2026-05-24 23:06:08 -07:00
Xiaohan-Tian 8eb3f5d84d feat: implemented global key signature track 2026-05-23 14:44:48 -07:00
Xiaohan-Tian fb3c6cde70 feat: implemented global marker track 2026-05-23 12:56:43 -07:00
Xiaohan-Tian a0fe283ab5 feat: persist piano roll zoom level into project; fixed an issue in the horizontal auto-scrolling logic in piano roll window 2026-05-18 22:21:00 -07:00
Xiaohan-Tian 9c197ecd08 feat: persist track mute/solo status 2026-05-17 13:06:47 -07:00
Xiaohan-Tian 31e02b4149 feat: implemented track level automation 2026-05-08 15:44:07 -07:00
Xiaohan-Tian f3d26126fa feat: added MIDI CC recording and list event table operation support. 2026-05-07 22:12:06 -07:00
Xiaohan-Tian 6ed1dddebd fix: load existing projects will crash the playback or have no sound due to missing pitchBend array in the JSON 2026-05-05 21:52:57 -07:00
Xiaohan-Tian b7926300e1 fix: unit test errors and TS type errors 2026-05-01 18:33:25 -07:00
Xiaohan-Tian 95ca3394a8 feat: switch track volume to dB scale with Logic Pro-style fader (−∞dB ~ +12dB) 2026-05-01 11:38:35 -07:00
Xiaohan-Tian 1670679c61 feat: add audio region trimming with non-destructive clip offset 2026-04-10 20:17:31 -07:00
Xiaohan-Tian 139684b413 feat: add bar width multiplier (1x–8x horizontal zoom) for track grid 2026-04-10 18:17:36 -07:00
Xiaohan-Tian fc84edfc59 feat: add audio track support with WAV/MP3 playback and looping
Introduce KGAudioTrack and KGAudioRegion as new track/region types
alongside existing MIDI tracks. Users can import WAV, MP3, OGG, FLAC,
and AAC files into audio tracks with full playback, looping, and
solo/mute/volume support.

New core models:
- KGAudioTrack (extends KGTrack with TrackType.Wave)
- KGAudioRegion (extends KGRegion with audio file reference)
- KGAudioPlayerBus (Tone.Gain + ToneBufferSource-based playback)
- KGAudioFileStorage (OPFS media/ directory for binary audio files)

New commands:
- AddAudioTrackCommand (create audio track with player bus)
- ImportAudioCommand (import audio file, create region at playhead,
auto-expand maxBars)

Playback features:
- Audio regions scheduled via Tone.Transport alongside MIDI events
- Loop support with duration capping at loop boundaries
- Resume safety offset to prevent ToneBufferSource timing misses
- Cross-track buffer copy when moving audio regions between tracks
- Proper buffer cleanup on track deletion and project switch

UI changes:
- Separate "+ MIDI" and "+ Audio" buttons in top-left spacer
- Audio track shows upload button instead of instrument selector
- FileImportModal reused for audio file drag-and-drop upload
- Real waveform rendering on audio region canvas
- Green color scheme for audio regions (vs blue for MIDI)
- Pencil icon and resize handles hidden for audio regions
- Cross-type region moves blocked (MIDI ↔ Audio)
- Piano roll blocked for audio regions
- Audio region deletion support

Infrastructure:
- Project structure version bumped to 4 (no-op migration)
- class-transformer discriminators updated for new subtypes
- RemoveTrackCommand updated to clean up audio player buses
2026-04-09 21:54:54 -07:00
Xiaohan-Tian b46442bd9d feat: added upgradeToV3 upgrader 2026-01-22 19:10:01 -08:00
Xiaohan-Tian dcd2d89d0f feat: persistence selected mode 2025-12-10 21:54:16 -08:00
Xiaohan-Tian de51967b49 initial public release. 2025-08-11 18:37:21 -07:00