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

Render Waveform Like Soundcloud. #938

Closed
interwap opened this issue Jan 27, 2017 · 6 comments
Closed

Render Waveform Like Soundcloud. #938

interwap opened this issue Jan 27, 2017 · 6 comments
Labels

Comments

@interwap
Copy link

Hello Katspaugh, great working you got going here with the wavesuferjs plugin. Huge fan!!!

I like way wavesurfer renders the waves tho. Its elegant but is it possible to render the waves like the way soundcloud does. The waveform on soundcloud is bunkers and i really like.

If it's doable, i'd really like to know how using the default wavesurfer.min.js configuration.

Thanks

@entonbiba
Copy link
Contributor

entonbiba commented Mar 5, 2017

@interwap there will be a parameter option to apply the soundcloud wave in this pr, #1024 it will look like the original soundcloud wave.

If you want to make the wave larger there will be the barHeight parameter in this pr #1020

@interwap
Copy link
Author

interwap commented Mar 5, 2017

@entonbiba great, looking forward to it. Just read through the conversation

@thijstriemstra
Copy link
Contributor

can a screenshot of the soundcloud waveform be attached?

@delewis13
Copy link

@entonbiba was this ever added / does it still exist? If not, do you have any pointers on what to edit in a custom renderer to achieve this effect? Cheers :)

@entonbiba
Copy link
Contributor

@delewis13 I added the barHeight option a while ago, however the soundcloud wav design thing would look like the following with a simple div overlay that is transparent. I'll link to a sample in a few minutes.

image

image

.overlayBar{
    height: 55px; // would be based on half the size of the rendered wavesurfer element
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    z-index: 2;
    background: rgba(255,255,255,0.1);
}
.waveformBar wave{
   z-index:1;
}
<div id="waveform">
    <div class="overlayBar></div>
    <wave></wave>
</div>

@emulienfou
Copy link

Full render of Waveform like SoundCloud gist for those who could be interested: https://gist.github.com/emulienfou/ddfea6f416379253f91f67448a96f826
image

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

No branches or pull requests

5 participants