Giter Site home page Giter Site logo

audio_ink's Introduction

Project Title: Drone Sounds and Visuals with Tone.js and p5.js

This project uses Tone.js, a powerful framework for creating interactive music in the browser, and p5.js, a JavaScript library that makes coding accessible for artists, designers, educators, and beginners, to create an interactive audio-visual experience.

Description

The project creates drone sounds using Tone.js and visualizes them using p5.js. Drones are continuous musical notes or intervals that are sustained or repeated throughout a piece of music. They are often used in ambient music and sound healing.

How it works

The project creates multiple drones at different frequencies using Tone.js. Each drone is an oscillator connected to a gain node, which controls the volume of the drone. The gain of each drone is modulated by a low-frequency oscillator (LFO), creating a dynamic, evolving sound.

The drones are visualized using p5.js. The volume and frequency of the drones affect the visuals, creating a direct link between the sound and the visuals.

How to use

  1. Start the drones by calling the startDrones function. This function starts the Tone.js context, sets the master volume, and initializes the drones.
startDrones();
  1. Modulate the drones by calling the modulateDrone function in your draw loop. This function adjusts the volume of the drones based on the x and thickness parameters.
modulateDrone(x, thickness);
  1. Stop the drones by calling the stopDrones function. This function fades out the drones smoothly and then stops them.
stopDrones();

Dependencies

License

This project is licensed under the MIT License.

Acknowledgments

  • Tone.js for providing the framework for creating interactive music in the browser.
  • p5.js for making coding accessible for artists, designers, educators, and beginners.

inspiration https://openprocessing.org/sketch/1481222

audio_ink's People

Contributors

cre8ture 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.