Comments (1)
This is a product of how the Web Audio API is set up (spec). You cannot choose which node to disconnect from only which outlet of the node you want to disconnect.
One way to get around this would be to keep track of all of the nodes an object is connected to so that you can disconnect from a specific one. It would be a matter of disconnecting all of the nodes with disconnect
and then reconnecting the ones that you still want to be attached. It's pretty ugly.
If you know you might need to disconnect a node from whatever it's connected to, you can route it through an intermediate GainNode and just disconnect that GainNode instead of all of the attached nodes. The send
method (example) will create a GainNode for you which is connected through a named bus to whatever node receives it. send
returns that GainNode so you can change the level of the routed signal or disconnect from the receiving node altogether.
I hope that helps.
Thanks Luke. Keep the questions/comments coming.
from tone.js.
Related Issues (20)
- Updating tremolo throws depth and frequency is read-only HOT 1
- Incorrect import causes typescript compilation issue
- Can 2 Sampler instances share the set of same audio files? HOT 4
- Apply a filter to a subsection of a AudioBuffer HOT 2
- EQ3 colors even when all gains are set to 0. HOT 2
- Various Tone.LFO issues
- Synchronizing Tone.js audio across multiple devices HOT 2
- Possibility of finetuning A4 base frequency? Like a tuning fork, choose 442hz instead of 440hz
- Wavesurfer.js support HOT 1
- recorder.start().then doesn't work HOT 1
- LFO has no effect on iOS HOT 5
- .chain method won't work after array mutation with .splice and .slice methods HOT 6
- How can I use a Rubberband node? HOT 1
- Strange cracking noises with PolySynth HOT 2
- Dynamic Offline Bounce Duration HOT 1
- TypeError: __vite_ssr_import_1__.Synth is not a constructor in new Sveltekit project. HOT 6
- Cannot export audio via Reberb node using OfflineContext HOT 1
- Negative Feedback (so -1 to 1 range) for FeedBackCombFilter
- Unable to stream audio by fetching partial content of the audio HOT 1
- Loading audio files with space(s) in filename broken since v14.8.28
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tone.js.