Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Waveform question #137

Open
armandolio opened this issue Oct 26, 2021 · 1 comment
Open

Waveform question #137

armandolio opened this issue Oct 26, 2021 · 1 comment

Comments

@armandolio
Copy link

Hello everybody! it is possible to create with FFCreator a waveform from the audio source?

Thanks! Armando

@drawcall
Copy link
Member

Use FFExtras to draw curves. Use https://github.com/phding/waveform-node to parse audio waves.

const extras = new FFExtras();

extras.init = function (InkPaint) {
  const graphic = new InkPaint.Graphics();
  this.container.addChild(graphic);
  this.graphic = graphic;
};

extras.update = function (time) {
  this.graphic.clear();
  this.graphic.lineStyle(2, 0xff0000);
  this.graphic.lineTo(...);
  ...
  this.graphic.closePath();
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants