@Chrisir All of these work I did not put the audio code because it keeps giving me error on processing. I am stuck on trying to put an audio track that adjusts the volume of an audio track based on the quantity of motion as detected by a web cam.
Please don't delete your posts. Also, you can post your code and provide a description of your problem. Break down your problems in small parts. Divide and conquer!
I am trying to do this project but I am so lost and confused. Here is the things that I need on my project:
n00b mission:
Write a sketch that plays an audio track on loop
and that detects the quantity of motion seen by a connected web camera
and that adjusts the volume (amplitude) of the looping audio track based on the detected motion. The track should get louder when there is more motion, and be silent when there is no motion.
Use println() to display the volume in the console.
Answers
Ok. You need to format your code. Select it hit ctrl-o
Also what does work with the code and what doesn't. Where are you stuck?
@Chrisir
For project I need to write a Processing sketch that adjusts the volume of an audio track based on the quantity of motion as detected by a web cam.
@Chrisir All of these work I did not put the audio code because it keeps giving me error on processing. I am stuck on trying to put an audio track that adjusts the volume of an audio track based on the quantity of motion as detected by a web cam.
Please don't delete your posts. Also, you can post your code and provide a description of your problem. Break down your problems in small parts. Divide and conquer!
Kf
I am trying to do this project but I am so lost and confused. Here is the things that I need on my project:
n00b mission:
Write a sketch that plays an audio track on loop and that detects the quantity of motion seen by a connected web camera and that adjusts the volume (amplitude) of the looping audio track based on the detected motion. The track should get louder when there is more motion, and be silent when there is no motion. Use println() to display the volume in the console.
Here is my code so far: