Git Product home page Git Product logo

Comments (6)

rserota avatar rserota commented on July 22, 2024

I'm currently working on a feature which should address this issue. Rather than adding multiple sources to one Wad, I'm thinking about an object that stores multiple Wads. You can then have a set of filters/effects apply to all Wads in that object, and also call play() or stop() on that object to play or stop all the wads it contains.

Does this sound like it addresses your desire? Or am I missing something?

from wad.

coleww avatar coleww commented on July 22, 2024

I've thought of doing this with drum samples to change up velocity and such. Like make a wrapper object that stores a wads [] attribute, and when you call play it picks one based on ________.

Not quite sure what is meant by approximating real sounds though...

I like the idea of the multi-wad object with one set of attrs. It accomplishes things that a wrapper function couldn't, like having the one global reverb.

from wad.

bignimbus avatar bignimbus commented on July 22, 2024

Raphael, yes, I believe that your approach would result in a solution that satisfies the parameters I detailed in the original post. I am really looking forward to it!

some explanation for @coleww, the general consensus in the audio community on sound synthesis is that any given sound can be represented as one or more sine waves at different frequencies. The more sine waves you can instantiate at once, the more harmonic interactions the waves create with one another.

Fourier demonstrated that any function (such as a sound waveform) can be expressed as a sum of sine or cosine graphs. This reverse engineering or deconstructing of a given graph is called Fourier Analysis.

So if, through WAD, the Web Audio API can be implemented so that web audio developers can use and manipulate an arbitrary amount of source waves, he/she can, theoretically, engineer any conceivable sound. The limiting factor, though, would be the client's computing power: I'm not sure how many oscillators a browser running on mainstream hardware could handle.

from wad.

bignimbus avatar bignimbus commented on July 22, 2024

@rserota,

I sent you an email, check your spam folder. I wrote an article on WAD, thought you might want to check it out.

from wad.

rserota avatar rserota commented on July 22, 2024

Sorry it took me so long to finish this up, but I've finally implemented and documented a solution that lets you group several oscillators and play them simultaneously. Check out the documentation on PolyWads.

from wad.

bignimbus avatar bignimbus commented on July 22, 2024

Very cool!

from wad.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.