How to Display Images based on frequency?

edited April 2016 in Library Questions

Is there a way to display images based on how high the frequency the program is detecting? Like if the program detects a frequency of around 1000 Hz, it will display one image representing an emotion, but around 500 a different image is displayed instead. I'm also working with an array for 4 images so far.

Answers

  • Are you able to println freqs?

  • What do you mean? I'm able to display the frequency as waves. I just want the program to detect different levels of frequency and displaying an image based whether the sound reaches to that frequency.

  • if (freq>20000)

    image(img1,0,0);

    else if (freq>19000)

    image(img2,0,0);

Sign In or Register to comment.