Skip to content

Audio and ink representation drawn in p5js and tone.js #generative art

Notifications You must be signed in to change notification settings

cre8ture/audio_ink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Audio and ink representation drawn in p5js and tone.js #generative art

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published