Skip to content

antoinemineau/animasong.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

animasong.js

animasong.js is an html5 music player which uses dancer.js for analyzing the song and create animations.

http://animasong.antoinemineau.com

v0.1.0 (7/12/2014)

Features

  • Available actions: play, pause, mute / change volume.
  • 1 song provider supported: Soundcloud (http://soundcloud.com/)
  • 2 animations: spectrum / equalizer

Example

Setup

    var animasong = new Animasong({
        'song': {
            'provider' : 'soundcloud',
            'location' : 'https://soundcloud.com/neversaydie/zomboy-immunity-1',
        },
        'container': '#player',
        'animation': 'equalizer',
    });
    animasong.start();
  • provider: the name of the selected provider. At the moment only Soundcloud is supported.
  • location: the url of the song you want to play.
  • container: the div where you want to set the player. The player will match the width and height of the container.
  • animation: the animation you want to show (spectrum, equalizer)

Browser Support

  • Chrome 10+
  • Doesn't work on Firefox, more details here

Dependencies

  • jquery.js - Used to manage the events binding of the player. Not included in animasong.js
  • dancer.js - Used to analyze the song and add animations. Included in animasong.js
  • handlebars.js - Used to render the player template. Included in animasong.js

Development

This project uses grunt to build. Run grunt from the project root to lint and build files.

Change Logs

v0.1.0 (7/12/2014)

  • Available Actions: pause / play, mute /change volume.
  • 2 animations: spectrum / equalizer
  • 1 provider: Soundcloud

To do

  • Create an error handler
  • Create a localhost provider
  • Create tests for browser support
  • Create new animations
  • Create a song duration current / total
  • Create options to set the colors of the player, animation...
  • Add a button to make the player fullscreen (using screenfull.js)

About

Html audio player creating animations based on the song frequency.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published