Major - Finally out! V1 it's here
Today MathsAndMusic stops being an idea and becomes a place you can actually play in. Type a formula, press Plot, and listen to your curve sing.
What is MathsAndMusic?
Maths usually lives on paper. Music lives in your ears. MathsAndMusic is where they finally meet: every curve you draw is a melody. Height on the graph is pitch, time runs from left to right, and a glowing dot walks along your curve while the notes play. No music theory, no maths degree, nothing to install. Just curiosity, and a few seconds.
Your first melody in 60 seconds
- Look at the first line under the graph. It already contains a formula:
7sin(x). That's your curve. - Press Plot (or hit Enter).
- Watch the dot travel along the curve and listen: the higher the curve, the higher the note.
- Change the formula and press Plot again. Try
x,|x|-6or6sin(2x)and hear how the shape changes the tune.
How to read the graph
The vertical axis is a keyboard. Every line is a note of the scale you picked (Do, Ré, Mi, Fa, Sol, La, Si… with the default Y max of 12 you get two full octaves, from Do3 to Do5). The horizontal axis is time: the music starts on the left and travels to the right.
Play with it
Shape the sound
- In Sound settings, pick a curve and tune its instrument, octave and volume. Every curve can sound different.
- X controls lets the sound evolve as the dot moves right: it can grow louder, start to wobble or open up.
- Set the Drawing speed from 0.2× to 2×, and switch on Repeat to loop the melody without a gap.
Try these
xa straight line that climbs through every note of the scale: your very first Do-Ré-Mi.7sin(x)a smooth wave that rises and falls like a lullaby.|x|-6a V shape that dives down then swoops back up.2*floor(x/2)a staircase of notes, each one held for a moment.- Add a second curve with + Add curve, for example
3cos(x), give it another instrument and a different octave, and you have a duet.
Not sure which scale to choose? Start with Pentatonic: whatever curve you draw, it will sound pleasant.
Formula cheat sheet
+ - * /- Arithmetic and fractions:
1/x,(x+1)/2. Shortcut:2xmeans 2 × x. x^2orx²- Powers:
2^x,x^(1/3). √(x)- Square root.
3√(x)is the cube root,root(4, x)the fourth root. |x|- Absolute value (also
abs(x)). sin cos tan- Trigonometry, plus
asin acos atan sinh cosh tanh. ln log log2- Natural log, base-10 log and base-2 log.
floor ceil round- Rounding, perfect for staircases.
mod(a,b) max(a,b) min(a,b)- Remainder, largest and smallest.
piorπ,e- The constants 3.14159… and 2.71828…
Take it with you
Happy with your creation? Export it from the Export as: a PNG picture of the graph, an MP3 of the melody, or an MP4 video.
Good to know
- Start with a low volume, especially with headphones. Some notes can be sharp.
- MathsAndMusic works best in a recent Chrome, Edge or Safari. If your browser can't write MP4 files directly, the video is saved as WebM instead.
This is only V1. New styles, sounds and surprises will land on this page as they arrive. For now, there's a blank graph waiting for your first idea.
Start playing →