Skip to content

Issue 319: Add auto-zoom and scroll for Media Clipboard tracks#361

Draft
saumya-pailwan wants to merge 3 commits intodevelopfrom
issue_319
Draft

Issue 319: Add auto-zoom and scroll for Media Clipboard tracks#361
saumya-pailwan wants to merge 3 commits intodevelopfrom
issue_319

Conversation

@saumya-pailwan
Copy link
Collaborator

When a user drags an audio or MIDI file into the Media Clipboard, the view automatically zooms to a 10-second preview window centered on to the horizontal center mass for audio.

Audio files: Uses amplitude-weighted average time calculation. Louder sections contribute more weight, pulling the view towards them. Silent sections contribute nearly zero weight.
MIDI files: Uses median note start time calculation. Centers the view around the densest cluster of notes.

@netlify
Copy link

netlify bot commented Jan 23, 2026

Deploy Preview for harp-plugin canceled.

Name Link
🔨 Latest commit f174e4f
🔍 Latest deploy log https://app.netlify.com/projects/harp-plugin/deploys/6973cb4ed117a9000842b559

@cwitkowitz cwitkowitz changed the base branch from main to develop February 4, 2026 14:49
@cwitkowitz
Copy link
Collaborator

It seems that loading an MP3 file is broken on this branch.

@saumya-pailwan saumya-pailwan marked this pull request as draft February 7, 2026 01:08
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.

Automatically Zoom/Scroll Media Clipboard Tracks to Horizontal Center of Mass

2 participants