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

Simple music player - possible to remove advanced features - zooming and segmenting? #193

Open
jurgenwerk opened this issue Jun 17, 2017 · 2 comments

Comments

@jurgenwerk
Copy link

I'm building a simple web music player app and since I'm generating waveform data using audio_waveform-ruby I thought about using peaks.js to display the waveform along with a simple play/pause interface and track progress indicator.

Basically, I'd like to replicate SoundCloud's player:

image

Is it possible to use a stripped-down version of peaks.js to implement a simple music player like this? How would you go about it?

And thanks for making peaks.js 🙏 .

@chrisn
Copy link
Member

chrisn commented Jun 19, 2017

Thanks for the kind feedback!

Peaks.js is currently designed to have the two waveform views you see in this screenshot image. There are other projects out there that are closer to what you want, are there particular reasons you prefer Peaks.js?

That said, there is work underway to restructure the code to support a single view, but it's slow progress due to the time I have available.

If you want to do it yourself, you could always take the Peaks.js code and strip out all the functionality you don't need. There's code in this pull request to implement the highlight (orange) region.

@chrisn
Copy link
Member

chrisn commented Jun 22, 2019

Release 0.10.0 allows you to create a single waveform view. Please see https://github.com/bbc/peaks.js/blob/master/demo/overview-waveform.html for an example.

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