โœฆ

FPL

Frequency Programming Language  ยท  Where sound is the source code

Loading command library...

Quick Start Examples โ€” Click to Load

๐Ÿ“– Full Training Guide

Write Your Program

GOLDEN RULES

โ‘  Every program starts with BEGIN and ends with END
โ‘ก Variables are single words โ€” x, total, counter
โ‘ข Maths needs 3 parts โ€” ADD x y result
โ‘ฃ Every IF needs ENDIF โ€” every LOOP needs ENDLOOP
โ‘ค Use DEBUG to see all variables when stuck

Output

Symbols
โ€”
Frequencies
โ€”
Execution Result
โ€”
Compiled JSON
โ€”
Audio

Numbers, Data Types & Separators

Integer

Whole numbers passed as values to commands.

SET x 42 ADD x 10 result

String

Text values wrapped in quotes.

SET name "Sirius" OUTPUT "hello world"

Variable

Any word that is not a command becomes a variable name.

SET total 0 OUTPUT total

Separator ยท COMMA

Separates parameters. Frequency: 900Hz

Symbol: ๊ฉœ SET x 1 COMMA y 2

Open Bracket

Opens a parameter block. Frequency: 864Hz

Symbol: แš› IF OPEN_PAREN x GT 5 CLOSE_PAREN

Close Bracket

Closes a parameter block. Frequency: 882Hz

Symbol: แšœ LOOP OPEN_PAREN 10 CLOSE_PAREN

Boolean TRUE

Logical true value. Frequency: 528Hz

SET flag TRUE IF flag OUTPUT x END_IF

Boolean FALSE

Logical false value. Frequency: 396Hz

SET flag FALSE

NULL

Empty / undefined value. Frequency: 174Hz

SET x NULL

Example Programs

Hello World

BEGIN
OUTPUT "hello world"
END

Add Two Numbers

BEGIN
SET x 10
SET y 5
ADD x y result
OUTPUT result
END

Loop 3 Times

BEGIN
SET counter 0
LOOP 3
ADD counter 1 counter
OUTPUT counter
END_LOOP
END
โœฆ

AUDIO OUTPUT

Run a program in the editor to generate audio

No audio generated yet