Skip to content

Comments

feat: audio file drag-and-drop + expanded format support#1

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/share-files-functionality
Draft

feat: audio file drag-and-drop + expanded format support#1
Copilot wants to merge 3 commits intomainfrom
copilot/share-files-functionality

Conversation

Copy link

Copilot AI commented Feb 20, 2026

Users had no way to share audio files with KindPath Q beyond a narrow WAV/AIFF-only file picker. This adds drag-and-drop import to the waveform area and broadens format support across both standalone and plugin targets.

Core changes

  • ui/WaveformView — implements juce::FileDragAndDropTarget; shows a blue hover overlay on drag-enter; fires onFileDropped(const juce::File&) on drop. Accepted extensions: .wav .aiff .aif .mp3 .flac .ogg .caf .mp4 .m4a
  • ui/KindPathMainComponent — new setOnFileDrop(std::function<void(const juce::File&)>) to wire callers into WaveformView::onFileDropped
  • apps/standalone/Main.cpploadFile() refactored into a shared loadFromFile(const juce::File&) helper used by both button and drop paths; file picker filter expanded to all 9 formats
  • plugins/kindpath-q/PluginEditor — Load button enabled; loadFile() / loadFromFile() added for reference-waveform display (plugin analysis still runs off the DAW input bus via processBlock)
  • docs/ARCHITECTURE.md — new File Import / Sharing section

API shape

// Wire drag-and-drop in any host (standalone or plugin)
mainView.setOnFileDrop([this](const juce::File& file) { loadFromFile(file); });

Dropped file paths are validated via juce::File::existsAsFile() before use; unsupported formats surface as a "Unsupported file" label without crashing.

Original prompt

Hi can I share files with you?


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits February 20, 2026 01:24
Co-authored-by: S4mu3lD4v1d <238962710+S4mu3lD4v1d@users.noreply.github.com>
Co-authored-by: S4mu3lD4v1d <238962710+S4mu3lD4v1d@users.noreply.github.com>
Copilot AI changed the title [WIP] Add file sharing functionality feat: audio file drag-and-drop + expanded format support Feb 20, 2026
Copilot AI requested a review from S4mu3lD4v1d February 20, 2026 01:25
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