|  | 

The Bohemian Boolean

Quadratic Residue Acoustic Diffuser Simulator

img-responsive
Since I have been playing around with my Raspberry Pi for my 3-D school model project, I wanted to play around with some of the pre-installed programs on it. 
 
There are some great programs for coding; I’m especially interested in playing with audio files in SonicPi. One pre-downloaded program is Wolfram Mathematica, a program I am familiar with after spending two weeks at Wolfram Summer Camp last year (and a welcome sight, considering that my copy of Mathematica has expired!). Here’s a picture of me with Dr. Stephen Wolfram at Wolfram Summer Camp below:
My brush with greatness!
 
Anyway, it reminded me of the project I made for the camp – a Quadratic Residue Acoustic Diffuser Simulator. Check it out! You can see sound (represented as points emanating from a given source, instead of waves), that gradually spread out, then bounce off of the diffuser and disperse throughout a room.
 
You can probably tell from the time and CPU in the top-right that running this program in Mathematica on my Raspberry Pi Zero strained its resources considerably, taking basically all of its computing power and slowing it down a lot. But just for you, my loyal readers, I painstakingly took screenshots at each time period (there is a scale on the left) and assembled them into a GIF.
 
You might notice another setting that can be changed – PrimeNumber. This changes the base number used for calculating the quadratic residues that determine the heights of the wooden columns and is also equal to the number of rows in the square grid of columns.
 
Now, the Quadratic Residue Acoustic Diffuser – what do all of those words mean, you might ask?
 
 

 

Leave a Reply

Categories

%d bloggers like this: