Mathestra
0:00.000
s

Writing in Mathestra

x is time in seconds. y is the position of the speaker cone, from −1 to 1. Each y = … line is a track, and the tracks are summed.

y = sin(2π·440x)
A 440 Hz sine wave, concert A
a = 3
A slider, adjustable during playback
f(s) = s·e^{-5s}
A function of your own
{x<1: a, b}
Piecewise: a for the first second, then b
{0<x<2}
1 from 0 to 2 seconds, silent otherwise
N = [0, 4, 7]
A list. N[2] is its second item
// a note
A note, ignored by the calculator
drums(t)
An imported audio clip, read t seconds in. drums(2x) plays it twice as fast

Functions and constants

sin cos tan sec csc cot arcsin arccos arctan sinh cosh tanh sqrt cbrt exp ln log abs sign floor ceil round mod min max length total mean, and the constants π, τ and e. Multiplication can be implied: 2πfx means 2·π·f·x.

Shortcuts

Space
Play or pause
Enter
New line below
⌫ on an empty line
Delete the line
Click a graph icon
Hide or show its graph. Hidden graphs are silent
Hold a graph icon
Colour, opacity, thickness and line style. Right-click also works
Keypad button
Keys for roots, powers and functions
Audio button, or drop a file
Add a recording as a function of time. Up to 3 minutes
Drag the screen
Pan
Scroll · Shift+scroll
Zoom time · zoom height
Click the screen
Move the playhead