audiowaveform icon indicating copy to clipboard operation
audiowaveform copied to clipboard

Customize the bars (png)

Open let-aurn opened this issue 4 years ago • 2 comments

First, huge thanks for this library.

Here are some features I really wish this lib can provide:

  1. Set the border radius of the bars. My usecase lets the users zoom the generated image. And I wish to have some rounded corners there. Screenshot_20200330-031643~2

  2. Add some spaces between the bars. At the end, 1. and 2. should output a waveform like this (the upper part) Screenshot_20200330-115616

  3. Detect the bars representing beats, and draw them in a different color. DJay mobile app by Algoriddim (and almost every DJ app for desktop) does a good job about it. Screenshot_20200330-033118~2

I would love to contribute, but I know nothing about C++ 😬😶

let-aurn avatar Mar 30 '20 01:03 let-aurn

So I tried to fix 1. and 2. here https://github.com/bbc/audiowaveform/pull/112

image

I would love to contribute, but I know nothing about C++ 😬😶

Well, I guess we just need basic programming skills to achieve this. It was mostly Mathematic instead 😄

let-aurn avatar Mar 30 '20 12:03 let-aurn

The latest version (v1.8.0) can produce rounded bars. Thanks for your contribution, it really helped!

chrisn avatar Jun 04 '23 23:06 chrisn