RolandJansen / intermix

Typescript/Javascript framework for building sequencer-based audio apps
GNU Lesser General Public License v3.0
6 stars 0 forks source link

build a fileloader #103

Closed RolandJansen closed 4 years ago

RolandJansen commented 4 years ago

file loading is stripped from the Sound (now DemoSampler) class because it is a dedicated task. There should be an intermix component for this as it will be needed in many subsystems in the future (for audio-, project- and preset-files).

See: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API https://www.html5rocks.com/en/tutorials/file/dndfiles/

RolandJansen commented 4 years ago

Public API should have functions for different file types:

RolandJansen commented 4 years ago

not needed in v0.5.0

RolandJansen commented 4 years ago

a fileloader makes sense when plugins can be loaded -> switched to v0.7.0

RolandJansen commented 4 years ago

How to load js code at runtime:

RolandJansen commented 4 years ago

worker, plugins and scripts can be loaded from client and server. Last thing is to load javascript from a string. That should do it.

RolandJansen commented 4 years ago

loading js from string is probably not the best idea. There is a follow-up ticket #161 to load/save json instead.