Giter Club home page Giter Club logo

beatdetection's Introduction

Beat Detection module for Unity 3D

Okay first things first:

  1. I'm not an English speaker so forgive me if i write something wrong.
  2. Read this first

There is TWO modules in here:

  • Simple
  • With Subbands

I'll explain to you what it does in both cases

Simple Beat Detection module

Scripts:

  • SimpleBeatDetection
  • ExampleUse

Simple Beat Detection computes the instant energy of the song each frame. Then it calculates the average instant energy and a variance energy which later we can ask if there is a beat at that time or not.

Easy to say but quite hard to understand at first. The code is commented and it is not very long.

Subbands (kind of frequency selected) Beat Detection module

Scripts:

  • SubbandBeatDetection
  • CubesManager
  • CubeSound

In the Simple Beat Detection we compute the instant energy of all the samples array. Instead of that, we are going to divide that array in small subbands. Each subband does what the simple beat detection do.

The number of subbands is up to us. 64 Subbands is a nice number because it provides us with a good precision.

CubesManager creates several cubeSounds. Each on of them will subscribe to several subbands.

beatdetection's People

Contributors

drxoo avatar

Watchers

James Cloos 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.