Skip to content

Commit

Permalink
use superdough in webaudio package
Browse files Browse the repository at this point in the history
  • Loading branch information
felixroos committed Aug 11, 2023
1 parent 898bfae commit 738e714
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 845 deletions.
3 changes: 1 addition & 2 deletions packages/superdough/superdough.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function effectSend(input, effect, wet) {
return send;
}

export const superdough = async (value, deadline, hapDuration, cps) => {
export const superdough = async (value, deadline, hapDuration) => {
const ac = getAudioContext();
if (typeof value !== 'object') {
throw new Error(
Expand Down Expand Up @@ -164,7 +164,6 @@ export const superdough = async (value, deadline, hapDuration, cps) => {
size = 2,
velocity = 1,
} = value;
// const { velocity = 1 } = hap.context;
gain *= velocity; // legacy fix for velocity
let toDisconnect = []; // audio nodes that will be disconnected when the source has ended
const onended = () => {
Expand Down
1 change: 1 addition & 0 deletions packages/webaudio/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# @strudel.cycles/webaudio

This package contains helpers to make music with strudel and the Web Audio API.
It is a thin binding to [superdough](https://www.npmjs.com/package/superdough).

## Install

Expand Down
31 changes: 0 additions & 31 deletions packages/webaudio/feedbackdelay.mjs

This file was deleted.

70 changes: 0 additions & 70 deletions packages/webaudio/helpers.mjs

This file was deleted.

4 changes: 1 addition & 3 deletions packages/webaudio/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,4 @@ This program is free software: you can redistribute it and/or modify it under th
*/

export * from './webaudio.mjs';
export * from './sampler.mjs';
export * from './helpers.mjs';
export * from './synth.mjs';
export * from 'superdough';
2 changes: 1 addition & 1 deletion packages/webaudio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"homepage": "https://github.com/tidalcycles/strudel#readme",
"dependencies": {
"@strudel.cycles/core": "workspace:*",
"nanostores": "^0.8.1"
"superdough": "workspace:*"
},
"devDependencies": {
"vite": "^4.3.3"
Expand Down
23 changes: 0 additions & 23 deletions packages/webaudio/reverb.mjs

This file was deleted.

Loading

0 comments on commit 738e714

Please sign in to comment.