Comments (4)
Very interesting question! Well I know that while in general you are right about virtual DOM libs React does use keys when an element is in an array at least.
The problem seems to come down to how you describe connections between nodes. With the DOM you're dealing with a tree structure but with the audio graph you're dealing with a graph with directed edges. I can't really think of anyway you could specify this declaratively without using ids. If you have some ideas about how you want your API to look I'd love to see them and have a think about it. Awesome project by the way!
from virtual-audio-graph.
I'll let you know if I come up with anything. One interesting observation is that if you look at the graph backwards starting from AudioDestinationNode, ignoring cyclic connections, it's actually shaped like a tree. 🤔
from virtual-audio-graph.
Yeah that's true, you could build an API without ids if you only allowed for tree-like graphs, but it would be very limited compared to what you can actually do. Let me know if you come up with anything!
from virtual-audio-graph.
Hey @dpren I'm going to close this as it has been inactive for a while. Feel free to reopen if you have any new ideas :)
from virtual-audio-graph.
Related Issues (20)
- AudioContext in Safari always 'suspended' HOT 1
- The automated release is failing 🚨
- create node with no output? HOT 1
- Persisting audio graph definitions using functions HOT 8
- Access to currently playing sound? HOT 2
- The automated release is failing 🚨
- Code in custom node is interpreted in a different way HOT 4
- A custom node inside of a custom node HOT 5
- LFO HOT 1
- Support OfflineAudioContext (repeat #8) HOT 4
- How to use in browser. HOT 2
- Thank you so much for virtual-audio-graph
- The automated release is failing 🚨 HOT 1
- Redundant `exponentialRampToValueAtTime` calls cause click noises HOT 4
- The automated release is failing 🚨
- Only 1 layer of custom nodes? HOT 3
- v1.1.1 release don't include the compiled module HOT 1
- Possible bug with offset HOT 3
- Example connect to a source from a file HOT 5
- VAG samples not working in safari HOT 8
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 virtual-audio-graph.