Skip to content

yourGuy/light-touch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tone.js MIDI Instrument

A Node.js application that creates a musical instrument using Tone.js, responding to MIDI input from a Playtronica Touch Me controller. The instrument features piano and click sounds with reverb, delay, and compression effects.

Features

  • Piano Sound: Playable on MIDI channel 1
  • Click Sound: Playable on MIDI channel 2
  • Effects: Built-in reverb, delay, and compression
  • Web Interface: Simple web interface to control audio context

Prerequisites

  • Node.js (v14 or higher)
  • npm (comes with Node.js)
  • A MIDI controller (Playtronica Touch Me or any other MIDI device)

Installation

  1. Clone this repository or download the files
  2. Install dependencies:
    npm install
    

Usage

  1. Connect your MIDI controller to your computer
  2. Start the application:
    node index.js
    
  3. Open your web browser and go to: http://localhost:3000
  4. Click the "Start Audio" button to initialize the audio context (required by modern browsers)
  5. Play notes on your MIDI controller:
    • Channel 1: Piano sound
    • Channel 2: Click sound

Controls

  • Start Audio: Initializes the audio context (required before playing)
  • Stop Audio: Stops all audio playback

MIDI Configuration

  • The application automatically detects MIDI inputs
  • Make sure your Playtronica Touch Me is connected before starting the application
  • If using a different MIDI controller, you may need to configure the MIDI channels in the code

Project Structure

  • index.js: Main application file with server and MIDI handling
  • public/: Directory for static files (currently empty)
  • package.json: Project configuration and dependencies

Dependencies

  • tone: Web Audio framework for creating interactive music
  • easymidi: Simple MIDI I/O for Node.js
  • express: Web server framework

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published