Code Monkey home page Code Monkey logo

audionode's Introduction



demo

AudioNode

大学3年生のころに作成した、ブラウザ上で動作するノードベースの音声処理ソフトです。 様々なノードを画面に追加し、それらを繋げることでリアルタイムな音声処理を行えます。 また、入力波形や処理途中の波形、出力波形などもリアルタイムに可視化されます。

以下はバンドパスフィルターを実装した例です。 ノイズに対してバンドパス処理を行い、スピーカーから音を出力しています。

demo

入力にはマイク、音声ファイル、MIDI入力、画像ファイルの4つに対応しています。 出力はスピーカーのみに対応しています。

デモ

以下のURLから実際に体験することができます。

https://wakewakame.github.io/AudioNode/dst/

仕組み

複雑な音声をリアルタイムに実行するため、音声処理はGPU上で行っています。 ブラウザからGPUの計算資源を利用するため、WebGLを利用しました。 そのため、音声波形はWebGLのテクスチャとして管理されています。 また、音声のフィルター処理はWebGLのフラグメントシェーダで行っています。

ビルド

git clone https://github.com/wakewakame/AudioNode
cd AudioNode
git submodule update --init --recursive
npm install
npm run-script build

これによりdstディレクトリにmain.jsが生成されます。

また、npm run-script startを実行した状態でlocalhost:8080/dstにアクセスするとプログラムが更新されるたびに自動的にブラウザがリロードしてくれます。

制作途中のツイート

https://twitter.com/hu_123456/status/1175426469339656192
https://twitter.com/hu_123456/status/1178240029987991553
https://twitter.com/hu_123456/status/1184062148520992770
https://twitter.com/hu_123456/status/1184454630194810880
https://twitter.com/hu_123456/status/1184850474404499462
https://twitter.com/hu_123456/status/1188499265036804096
https://twitter.com/hu_123456/status/1199010136808808449
https://twitter.com/hu_123456/status/1230670758730399744
https://twitter.com/hu_123456/status/1230786726076923904
https://twitter.com/hu_123456/status/1231370136386334720

License

MIT

audionode's People

Contributors

wakewakame avatar

Stargazers

 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.