Skip to content

Commit

Permalink
Merge pull request #148 from tidalcycles/webaudio-optimizations
Browse files Browse the repository at this point in the history
Sampler optimizations and more
  • Loading branch information
felixroos committed Jun 28, 2022
2 parents eca76dd + 2a18b27 commit 8a1cd32
Show file tree
Hide file tree
Showing 48 changed files with 1,579 additions and 285 deletions.
152 changes: 107 additions & 45 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/core/controls.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,7 @@ const generic_params = [
['f', 'uid', ''],
['f', 'val', ''],
['f', 'cps', ''],
['f', 'clip', ''],
];

// TODO: slice / splice https://www.youtube.com/watch?v=hKhPdO0RKDQ&list=PL2lW1zNIIwj3bDkh-Y3LUGDuRcoUigoDs&index=13
Expand Down
16 changes: 15 additions & 1 deletion packages/core/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,18 @@ export * from './timespan.mjs';
export * from './util.mjs';
export * from './speak.mjs';
export { default as gist } from './gist.js';
// export * from './value.mjs';
// below won't work with runtime.mjs (json import fails)
/* import * as p from './package.json';
export const version = p.version; */
console.log(
'%c // 🌀 @strudel.cycles/core loaded 🌀', // keep "//" for runnable snapshot source..
'background-color: black;color:white;padding:4px;border-radius:15px',
);
if (globalThis._strudelLoaded) {
console.warn(
`@strudel.cycles/core was loaded more than once...
This might happen when you have multiple versions of strudel installed.
Please check with "npm ls @strudel.cycles/core".`,
);
}
globalThis._strudelLoaded = true;

0 comments on commit 8a1cd32

Please sign in to comment.