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.
# =================
# Loading MIDI Files & Samples
# =================
# You can load MIDI files and audio samples using the load directive.
#
# Syntax:
# `load <"path/to/file"> as <variableName>`
load "./samples/lead.mid" as myMidi
load "./samples/kick.wav" as myKick