nativeformat / NFPlayerJS

A JavaScript/TypeScript audio engine for the Web and Server capable of multitrack time stretching, pitch shifting, declarative effects, faster than realtime processing, and more!
https://nativeformat.github.io/NFPlayerJS
Apache License 2.0
129 stars 9 forks source link

Document best practices for creating Scores #4

Open kirbysayshi opened 5 years ago

kirbysayshi commented 5 years ago

It would be nice to have a "handbook" of how to construct and manipulate Scores, and the best practices therein.

One example is constructing all Scores to have a single terminal Gain node, even if it's not used. This allows a later modification to the Score to have a known starting point, and might also make composable modification functions possible. And if https://github.com/spotify/NFPlayerJS/issues/3 is implemented, it means nearly no runtime cost either.