mimic-sussex / sema

Sema – A Playground for Live Coding Music and Machine Learning
https://sema.codes
MIT License
153 stars 51 forks source link

Adding the ability to load samples from remote URLs via a browser path query string #176

Closed bthj closed 3 years ago

bthj commented 4 years ago

A quick change to allow the use of samples from remote URLs, so when loading Sema with an URL like

http://localhost:8080/playground/?samples=https://raw.githubusercontent.com/bthj/samples/master/test.wav,https://raw.githubusercontent.com/bthj/samples/master/test2.wav

then code like the following can be used in the Live Code Editor:

:x:{{{{1}clp, [3,9]}rsq}\test2,2,0.1}asymclip;
:z:{{{8}clp,[1,0]}rsq}\test;
> {:x:,:z:}sum;

Next steps could include adding some UI for this.

frantic0 commented 3 years ago

Hi @bthj

Thanks for sending this PR and sorry for taking so long to reply to this.

After the workshop last July I had a large gap in the project and picked up again earlier this year.

This is a nice feature and I can see it implemented in sema. However, I refactored the architecture radically and extracted the signal engine to its own repo (https://github.com/frantic0/sema-engine)

If you'd like to give it a try again, I'd be happy to accept it :)

Kind regards, fØ

bthj commented 3 years ago

Thanks for the feedback, @frantic0

It's still interesting to have that feature in Sema and I'll keep this in mind :)

/Björn