alemangui / pizzicato

Library to simplify the way you create and manipulate sounds with the Web Audio API.
https://alemangui.github.io/pizzicato/
MIT License
1.66k stars 130 forks source link

Instantiate a Pizzicato.Sound with an already loaded file object? #167

Open presstube opened 2 years ago

presstube commented 2 years ago

Can I instantiate a Pizzicato.Sound by giving it an already loaded sound file?

For instance, imagine either of the following scenarios:

In each of those cases I am left with a 'files' array containing fully loaded sound files.

How can I pass one of these fully loaded sound files into the Pizzicato.Sound constructor?

Many thanks!