cmajor-lang / cmajor

The Cmajor public repository
https://cmajor.dev
Other
542 stars 33 forks source link

Feature Request: file picker / drag and drop for audio files #86

Open fliprubin opened 1 week ago

fliprubin commented 1 week ago

I'd love to see the ability to let users drag and drop audio files into a plugin, or use the system file picker.

I see you can pre-load external files via the .cmajorpatch file, but the user being able to add their own files would allow for building sample manglers, granular synths, drum pads, etc.

Unless it's already possible?

0xchase commented 5 days ago

The two approaches I know of are:

  1. From javascript, generate and JIT cmajor code that includes the chosen file names
  2. Load and parse your files from javascript, then write the data to an endpoint