-
Couldn't load subscription status.
- Fork 245
Prepare #1330
base: main
Are you sure you want to change the base?
Prepare #1330
Conversation
|
Currently I have not written any docs for the new functionality. |
|
Hey thanks for working on this, could you give an example for how |
|
Hey, The following examples both assume that the without prepare (this still works): superdough({s:"sd"},0)
// sound doesn't playwith prepare: prepare({s:"sd"})
// some time later
superdough({s:"sd"},0)
//sound plays |
|
Note that it is up to whatever/whoever is using superdough to inform what sounds will be needed |
|
i like this idea! i cant review the code until in 2 weeks tho.. i think this would already be a good addition even without automatically calling it from a scheduler. is this a promise, so can we await it before playback? |
|
for a strudel example: $: n("<0 1 2 3 4 5 6 7>").s("kawai").scale("c:major")Though this actually seems to work worse at the moment. |
|
Admittedly, i don't know much about js |
Yes, it can be awaited |
resolves #187
Preload samples before they are played.
I called it prepare, because it could be used to do other preparations.
(Like this?)
This was annoying me so much that i took it upon myself to write it.