#### QRADS Explanation

**What does Quadratic Residue Acoustic Diffuser Simulator mean?**

Well, an acoustic diffuser is a typically-wooden device placed on a wall or ceiling that disperses or “diffuses” sound evenly, when sound bounces off of it. This is not to be confused with a sound absorber, which absorbs sound and preventing it from spreading throughout a room, although music producers, acoustic engineers and others in the acoustic industry use both throughout a room to make sure that sound is at its highest quality.

Why is this useful? An acoustic diffuser spreads out the sound randomly, ensuring that sound emanating from anywhere in the room is heard at an equal volume throughout the room. Under normal circumstances, for example, a person standing closer to a wall may hear a louder sound than someone standing an equivalent distance away from the source of sound but further away from the wall, as that person would hear both the original sound and the echo, while the person standing further away would hear the original sound, but an echo at a lower frequency and volume.

However, if an acoustic diffuser is on the wall, the sound scatters off of the uneven shape of the acoustic diffuser randomly. Therefore, sound no longer behaves in its predictable manner with uneven frequencies and volumes filling the room, with a viewer’s perception of the sound “colored” by the walls. Instead, sound waves fill the room with an overall even frequency. This helps ensure that listeners get the best auditory experience anywhere in the room, which is why music producers listen to music in rooms with acoustic diffusers to ensure that they are hearing music “accurately” and perceiving sounds without the “walls” coloring the music. Similarly, some movie theaters and auditoriums have acoustic diffusers on the wall (or even just rough-textured walls) to disperse sound throughout the theater.

Whew! That was a lot! Now to tackle the “quadratic residue” part. In order to create acoustic diffusers (or at least the kind I created), one can attach wooden columns with different heights to a flat surface. Some acoustic diffusers also use wells with different depths – same idea. If the columns have randomly-decided heights, the sound should bounce off and spread evenly. But how does one ensure that the columns have random heights? One way is with quadratic residues.

What’s a quadratic residue? To discuss that, it is necessary to delve into modular arithmetic. If you have ever translated military time (23:00) to standard time (11:00 PM), good news! You are already familiar with the concepts behind modular arithmetic. All you had to do to find out standard time is subtract 12 hours from 23:00.

Let’s pretend that military time went beyond 23:59. What would 34:00 represent? Hint: Try subtracting 12 hours.

Would it be 22:00? Well, no, because standard time ranges from (12:00 to 11:59). Hint: Try subtracting 12 again! The answer is 10:00!

Basically, to find any military time in standard time, you have to subtract the highest multiple of 12 possible from military time and what we are left with is standard time. Put another way, find the remainder after military time is divided by 12. Represented in modular arithmetic, we could say that

This means that if we use 12 as our divisor, the remainder after we divide 22 is 10.

Now, with quadratic residues, we are using the same idea, except instead of 12, we can use any prime number and instead of 22, we cycle through the squares of all the natural numbers less than that prime number.

For example for the number 17, we create a list of all the moduli from 1² to 16² (mod 17). This means we start out with:

For the next row, I just shifted all the residues up by 1 – Column 0 had a height of 1, Column 1 had a height of 4 and now Column 17 had a height of 0. I continued this pattern for all 17 rows (same number of rows as squares from 0 – 17).

This same technique can be used for any prime number to create the Quadratic Residue Acoustic Diffuser. Hope this helps!

## Leave a Reply