I am writing a code in Framer x which uses Javascript and react library.
I would like to make different sounds depending on the coordinate values of for instance mouse ( x, y, and z ). How can I play an mp3 file in an if condition, e.g., if x>10 --> play drum1.mp3 if 10>x>20 --> play drum2.mp3?
I would be grateful if someone can help me with this.
Thanks.