Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Adjust Background Color to Waveform

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #202004
    UserN97
    Participant

    Hello
    i’m using the code for Waveform from Waveformjs.org
    i’m using to my website the simple example such as

    SC.get(“/tracks/200791507”, function(track){

    ` var waveform = new Waveform({
    container: document.getElementById(“song_waveform”),
    innerColor: “#fff”
    });

    waveform.dataFromSoundCloudTrack(track);
    var streamOptions = waveform.optionsForSyncedStream();
    SC.stream(track.uri, streamOptions, function(stream){
    window.exampleStream = stream;
    });
    });

    `

    and i display the waveform to my website with this html tag

    < div id=”song_waveform” >
    <canvas width=”550″ height=”50″></canvas>
    < /div >

    and i want to adjust this orange color ( http://i.imgur.com/VPPvZpM.png ) to my waveform such as soundcloud!
    is that possible?

    #202082
    UserN97
    Participant

    i know that my friend!
    i want to change the color ( the orange on the picture ) when the players plays
    check soundcloud waveform: https://soundcloud.com/nlmusicofficial/mix-vol1

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.