Giter Site home page Giter Site logo

vivid-sound-generator's Introduction

Vivid Sound Generator

A browser-based sound generator for the Vivid project.

Uses the WebAudio API to generate ambient sound and chord pulses. Pulses triggered with OSC. Pulse data passed to the client using WebSockets.

Overview

+-----------+                      +--------------+                         +--------------+
|           |    /~~~~~~~~~~~~\    |              |                         |              |
|           |    |            | => | OSC Receiver |    /~~~~~~~~~~~~~~~\    | Web Browser  |
|   Pulse   | => | OSC Packet |    |       -      |    |               |    |      -       |
| generator |    |   (UDP)    |    |   WebSocket  |    | WebSocket Msg |    | WebAudio API |
|           |    |            |    |    Server    | => |    (HTTP)     | => |     _   _    |
|           |    \~~~~~~~~~~~~/    |              |    |               |    |  \_/ \_/ \_  |
+-----------+                      +--------------+    \~~~~~~~~~~~~~~~/    +--------------+
  • Pulse generator - a device on the network which sends one OSC packet over UDP for each recorded heart beat.
  • OSC packet - a UDP message which contains contains information about a heart beat. Each message contains 2 pieces of information: heart rate and stroke volume.
  • OSC Receiver - a node.js process which listens for OSC packets.
  • WebSocket Server - a node.js process which handles WebSocket connections and sends OSC packet information to connected clients.
  • WebSocket msg - a WebSocket message which contains the information about the received OSC packet.
  • Web Broser - the user's web browser (e.g. Google Chrome).
  • WebAudio API - generates ambient sound and plays a special sound whenever pulse data is received over WebSocket

Development

1. Clone the repo

git clone [email protected]:DiUS/vivid-sound-generator.git

2. Install the dependencies

npm i

3. Run the mock server

# Start the mock OSC Pulse generator
npm run start.oscpulse

# Start the WebSocket server
npm run start.server

# Start the UI Dev Server
npm run dev

vivid-sound-generator's People

Stargazers

Ezekiel avatar

Watchers

James Cloos avatar Elliott Murray avatar Mick Reidy avatar Ken Ming Ong avatar Stefan Leszkiewicz avatar Ricky Yim avatar Jun avatar Lincoln Fitzsimons avatar  avatar  avatar

Forkers

orarix-hex

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.