Code Monkey home page Code Monkey logo

infinitejukeboxalgorithm's Introduction

Infinite Jukebox Algorithm

The algorithm for the Infinite Jukebox which generates a never-ending and ever changing version of any song. Extracted from https://github.com/UnderMybrella/EternalJukebox/.

Rationale

The code for the algorithm of the original Infinite Jukebox implementation was coupled with the code that did audio, rendering, etc. The intention of this repo is to provide the code for the algorithm on its own so that it's easier to use in other applications.

Dependency: Spotify's audio analysis web API

The Infinite Jukebox relies on Spotify's audio analysis web API. For a song in Spotify's catalog, the API provides information about its structure and musical content including rhythm, pitch, and timbre. The Infinite Jukebox algorithm uses this information to figure out which sections of the song are so similar that it can jump the song from one section to the other without the listener noticing a seam in the music.

This repo includes /data/gangnamStyleAnalysis.json, a file with Spotify's audio analysis for Gangnam Style, so that you can play with the code in the repo without having to use Spotify's web API.

This repo also includes /tools/spotifyAudioAnalysisClient/, a tool that illustrates how to use Spotify's audio analysis web API.

Repo layout

  • /js/: Files related to the JavaScript implementation of the Infinite Jukebox algorithm.
    • algorithm/: The JavaScript implementation of the algorithm.
    • examples/: Example usage of the algorithm's API.
      • basic/: A bare-bones example.
      • playerAndVisualizer/: A more substantial example that shows how to use the algorithm to play audio and visualize the beat of the song that's currently playing.
  • /tools/: Tools that come in handy when making use of the algorithm.
    • spotifyAudioAnalysisClient/: Illustrates how to use Spotify's audio analysis web API.
    • spotifyBeatMetronome/: Generates a WAV audio file which plays a tick at each beat identified by Spotify's audio analysis. Useful when trying to figure out how to get your copy of the song in sync with Spotify's audio analysis.
  • /data/gangnamStyleAnalysis.json: The result of calling Spotify's audio analysis web API on the song Gangnam Style. You can give this file as input to the examples and tools in this repo to see how they operate.

Credits

The original implementation of The Infinite Jukebox is by Paul Lamere.

The code in this repo is derived from The Eternal Jukebox by UnderMybrella, a rework of the original project.

License

MIT

infinitejukeboxalgorithm's People

Contributors

rigdern avatar

Stargazers

Zach Solcher avatar John avatar Daniel Sczepansky avatar Brock Klein avatar Davi Rodrigues avatar Dr. Andrew Annex avatar  avatar A.s. avatar Chenxuan Huang avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.