Questions tagged [p5.sound.js]

5 questions
1
vote
0 answers

How to mute specific sounds when using multiple audio inputs using P5 Amplitude (P5.js)

I'm very much a P5.js newbie so apologies if this is obvious. I'm trying to build a music visualiser type animation where the amplitude of different audio files control various parameters. However I only want the use to hear the audio file…
Joe_w
  • 11
  • 1
1
vote
0 answers

How can I use FFT (Fast Fourier Transform) with P5.js in React?

Following this tutorial, I tried to reproduce it in React JS to get an audio visualizer as in picture below. Here is my try, for this project I used react-p5 and p5.sound: import Sketch from 'react-p5'; import 'p5/lib/addons/p5.sound'; Looking at…
NineCattoRules
  • 2,253
  • 6
  • 39
  • 84
1
vote
0 answers

peakDetect does not seem to work as expected

I've added to my script from an example on the p5.js website. I'd expect that an amplitude beyond 1.0 would satisfy the condition of their being a peak. I have set my amplitude range from 0 to 1.2, depending on the mouse y position. I can see that…
Chewie The Chorkie
  • 4,896
  • 9
  • 46
  • 90
0
votes
0 answers

creating a script in p5.js web that takes a song, slices it and uses the slices randomly to generate a new song. how can i save the new song as .mp3?

i'm creating a program that from an input .mp3 file song generate fragments with 100 millisecond length, than randomly reassemble the fragments to create a new song output. for the moment everything works but i don't know how to make the program…
0
votes
1 answer

Is there a way to limit monosynth to only play one note at a time?

I am currently busy with an assignment (using P5.JS) that involves using the webcam as user input to trigger sounds. This works by creating a grid across the camera input and using color differencing to detect whether there is movement in a specific…