devalang 0.2.0

Write music with code. Devalang is a domain-specific language (DSL) for sound designers and music hackers. Compose, automate, and control sound — in plain text.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# =================
# Functions
# =================
# You can create custom functions to simplify and modularize your scripts
#
# Function syntax
# `function <function_name>(<arg1>, <arg2>, ...):`

const mySynth = synth sine
const myZero = 0

function myFunction(synthVar, zeroVar):
    if mySynth.volume > zeroVar:
        return "mySynth volume OK"
    else:
        return "mySynth volume is equal to zero !"

print myFunction(mySynth, myZero)