rserota / wad

Web Audio DAW. Use the Web Audio API for dynamic sound synthesis. It's like jQuery for your ears.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Polywad does not appear to implement setPanning

ctoth opened this issue · comments

While using WAD to create a basic synthesizer I noticed that the Poly class does not seem to implement setPanning, where as the base WAD class does.

Is there another way to pan the Poly class?

The setPanning method is not implemented for polywads because I just hadn't gotten around to it yet, and you're the first person to ask about it. It shouldn't be hard for me to add it in, but I just started a new job, so I probably won't be able to work on it immediately.
If you want a workaround for now, you can iterate through the wads array on the polywad and manually call setPanning on the wads it contains.

Thanks for opening this issue. I hope you're enjoying WadJS.

In version 4.12.0 of WadJS, the Poly class now has its own setPanning method, which works the same as setPanning for regular wads.

Cheers!