Generate sound for numbers using the Phocid equation (Python)

The Sound of Number — Phocid Equation

The main use of numbers for counting and … is quite clear. But if we can create a definite and unique sound with just one number, we can call that particular sound the sound of that number. Of course, to create a specific sound wave, a set of numbers is needed and one number is not enough. But in the following notebook, we use coding to make a sound generator so that it can produce a unique sound wave with just one number.

[P2] The Sound of Numbers & Phocid Equation
By: Somayyeh Gholami & Mehran Kazeminia

We can also define different operators for sound composition. This allows us to have better and more complex sound waves. For example, in this notebook, we used an operator (Phocid Plus) to combine sounds.

Define the Phocid Equation

Our favorite ranges for x0 and b are as follows:

1 -The value of b is between One and Ten.
2 -The value of x0 is between Zero and One.
3 -The results for the “New x” will still be between Zero and One.
4 -So the next repetitions can continue. (Iterated Function System — IFS)

Why the name “Phocid”?

The results of this equation produce a seal-like shape. That’s why we called it the “Phocid Equation”.

Phocid Diagram
Phocid Spectrogram

What is “Phocid Plus” and what does it do?

For each number, this operator combines the main results of the “Phocid Equation” with part of the results of a complementary number. The result is a more complex and better sound wave, and the result is still unique.

Our favorite ranges for x0 and b are as follows:

1 -The value of b is between One and Nine.
2 -The value of x0 is between Zero and One.
3 -The results for the “New x” will still be between Zero and One.
4 -So the next repetitions can continue. (Iterated Function System — IFS)

Phocid Plus Diagram
Phocid Plus Spectrogram

Example:

phocid_plus (b=1.2)

phocid_plus (b=4.2)

Visit our notebook to see all the results as well as hear the sounds.

Good Luck.

Senior Civil Structural Engineer, Kaggle Master, Researcher, Developer. https://www.soliset.com, https://www.farsi.media, https://www.newchains.info

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to work with project documentation

Integration Unity project as a Library in native iOS app

What is 64-bit and 32-bit Processor?

Last Call To Change Your Virtual Future: A Q&A With RYOT’s Jake Sally About DevLab

Re-imagining Hackathons with E.C. Jamming

Async Operation with Kotlin Coroutines

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Mehran Kazeminia

Mehran Kazeminia

Senior Civil Structural Engineer, Kaggle Master, Researcher, Developer. https://www.soliset.com, https://www.farsi.media, https://www.newchains.info

More from Medium

House Loan Amount Prediction on Python

Creating photo mosaics from Instagram using Python, Linear Optimisation and Neural Networks

Steps to Publish Your Own Python Package to The Python Package Index (PyPI)

Why Python Is So Essential For Machine Learning