GithubHelp home page GithubHelp logo

guicaulada / algorithmic-beat-mapping-unity Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jesse-scam/algorithmic-beat-mapping-unity

0.0 1.0 0.0 43.01 MB

Real-time and Preprocessed Audio Analysis for Onset Detection (Beat Mapping) Using Spectral Flux

License: MIT License

C# 100.00%

algorithmic-beat-mapping-unity's Introduction

Real-time and Preprocessed Audio Analysis for Onset Detection (Beat Mapping) Using Spectral Flux

Description

This code sample demonstrates the topics outlined in my article series "Algorithmic Beat Mapping in Unity" https://medium.com/giant-scam/algorithmic-beat-mapping-in-unity-intro-d4c2c25d2f27

This is a minimal example of the foundation for detecting beats in audio files in Unity. Audio analysis is available for real-time audio as well as preprocessing an entire audio file up front. Both analysis methods use the same spectral flux algorithm that is outlined in this article: http://www.badlogicgames.com/wordpress/?cat=18&paged=3

Usage

This code sample was tested using Unity 2017.3.0f3. It should be compatible with Unity 5 as well.

In the Hierarchy, select SongController and enable/disable Real Time Samples and Pre Process Samples. All combinations of the two are valid. Load an audio file into the SongController->AudioSource. Press Play. You should hear the audio being played and see the output of the algorithm in the two Plot objects on screen.

License

All code samples besides DSPLib.cs and Complex.cs are covered by the MIT license. See those source files for information about their external licenses. Example audio file "Chamber of Secrets for 1" by Terror Pigeon is Copyright Terror Pigeon and, while it may be distributed with this project, it may not be further distributed or used without consent.

Author

All code samples besides DSPLib.cs and Complex.cs were written by Jesse Keogh. Jesse Keogh is the Lead Developer / Co-Founder of Giant Scam Industries. https://twitter.com/giantscam

algorithmic-beat-mapping-unity's People

Contributors

jesse-scam avatar

Watchers

 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.