audioMotion-analyzer icon indicating copy to clipboard operation
audioMotion-analyzer copied to clipboard

beginner question

Open ghost opened this issue 3 years ago • 1 comments

Hi

Can i use the script in a webbrowser locally? Is there an example file I can look at?

I just want the script to work on audio I play on my computer, using an offlind html file.

Is this possible?

ghost avatar Nov 30 '21 04:11 ghost

Hello,

JavaScript security policies impose a lot of restrictions in local file mode - you can't import ES6 modules or read music files if not using http/https protocols. You can solve this by using a simple HTTP server to make files accessible via http://localhost - if you have node.js installed I'd recommend http-server, otherwise check this big list of http servers.

Cheers!

hvianna avatar Nov 30 '21 12:11 hvianna