dashersw / pedalboard.js

Open source JavaScript framework for developing audio effects for guitars using the Web Audio API.

Home Page:dashersw.github.com/pedalboard.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Docs] How to render stuff.

carlsmith opened this issue · comments

The docs do not explain how rendering graphics works.

I'm looking through the demo, but it's not clear if we are meant to create our own graphics (which is what I personally want to do) or if we configure the library to generate graphics for us (at least normally).

Thanks for releasing Pedalboard. It looks really cool. I want to make an organ sound more like a synth with digital filters, LFOs etc. Do you think Pedalboard is a good choice for something like that?

Hello Carl,

Although pedalboard.js is more for guitar effects, you can definitely use the same base classes like Box and BoxModel and create your own filters and effects.

If you look at the example folder (here)[https://github.com/dashersw/pedalboard.js/blob/master/example/index.html] it will already show you how to use the graphics, after creating the stage, all you do is stage.render(document.getElementById('floor')); and it already puts its entire DOM tree in the body.

However, you are not limited to using these raw classes that produce DOM elements. You can also directly instantiate the underlying model classes (like OverdriveModel, etc) and still process audio. However it would be harder to use, as they are more hands on.