Coder Social home page Coder Social logo

valonsogit / spotify-visualizer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lucadangelos/spotify-visualizer

0.0 0.0 0.0 1.38 MB

My Spotify Visualizer rewritten in TypeScript

TypeScript 76.60% HTML 2.22% CSS 0.84% JavaScript 0.62% Python 19.71%

spotify-visualizer's Introduction

๐ŸŽต Spotify Visualizer ๐ŸŽต

This is a rewritten version in TypeScript of my previous Spotify Visualizer, originally written in pure JavaScript.

Note: This is an underway project (Check TODOs)

Original project inspired from here.

Table of Contents
  1. About the project and goals
  2. Features
  3. Getting Started
  4. TODOs
  5. License

About the project and goals

The goal of this project is to provide a centralized, modular and expandable spotify visualizer.

The API processing is delegated to a central server while multiple custom visualizers can visualize the song interpretation as they see fit (e.g. a ws2812b LED strip connected to a Raspberry Pi, a web page that changes the background color accordingly, etc.)

There would also be a WebApp where parameters and color schemes can be changed for each individual visualizer connected to the server.

Also looking forward to adding HUE support in a future.

Features

  • Spotify API token refresh on each individual session
  • A simple webapp for token authorization flow in spotify
  • A backend for the Spotify API processing in nodejs
  • Song Beat and Section synchronization
  • Beat and Section confidence filtering

Getting Started

Prerequisites

  • Spotify account
  • node
    • npm (node packet manager)

Dependencies

Install all node dependencies executing this in the root directory

npm install



Then create a .env in the root folder with the following keys:

CLIENT_ID=
CLIENT_SECRET=

And fill the values with your spotify client ID and Secret

You can get them here, creating an app and copying the client ID and Client Secret from the page

Usage

The server can be executed with:

npm start

Or compiled with:

tsc

TODOs

  • Implement color cycling
  • Implement token refresh in mid-playback
  • Optimize beat steps to omit the beats lower that then confidence threshold
  • Implement socket communication
  • Standardize the message exchanges from server to visualizers
  • Add support for multiple visualizers
  • Make the webapp for parameters tweaking
  • Figure out a way to delegate the song interpretation to the server
  • Code clean-up (duh)

License

GPL-3.0-or-later

spotify-visualizer's People

Contributors

lucadangelos avatar valonsodev 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.