werckme / werckmeister

An open source Sheet Music MIDI Compiler
http://werckme.github.io/
GNU General Public License v3.0
32 stars 4 forks source link
lilypond-format markup-language midi music sheet

Linux Build Windows Build Mac Build

An open source Sheet Music MIDI Compiler

Werckmeister compiles sheet music source code into a MIDI file.

Try it online

Use Werckmeister if you want to

Features

Motivation

Why oh why does the world need another musical programming language?

It begun with the fact, that I was searching for new scorewriter tool. I was using Overture for a long time but it got outdated and did'nt run very well on my new computer. It anoyed me that I have to pay several hundred dollars just to get it to run on a new system.

That and the fact that all music I have written is "locked in" in a proprietary file format, led me to the decision that the new solution has to be open source.

Fun Fact: If I had known MuseScore during that time, maybe there would be no werckmeister today

So eventually I found LilypPond. I loved the idea behind it: writing music just with text. It addressed the problem having useless (score) files, because having no program that can read it.

Unfortunately lilypond dosen't fullfill all my needs. It is made with a focus on "music engraving", not creating music in a way I would do with a regulary scorewriter (in terms of trying things out, experimenting with ideas).

So, for me, it had following disadvantages:

so that was original idea:

having a tool like LilyPond, but

So I searched more in this "music via source code" direction. I found great software there, such as CSound and SuperCollider. But, for my opinion, these programs are made to have a new way of creating music, less writing music in a more traditional way.

Alda comes very close to that, what I was searching for, but again, I didn't know it back then.

So finally, I decided to create werckmeister.

Somewhat later, I played around with a Yamaha keyboard and its "Auto Accompaniment" feature and I was wondering how it comes, that when I press a Cmaj7 chord the virtual band plays the correct notes to that. And that was the beginning of the "accompaniment template" system.

Syntax

Tracks and Voices

A Werckmeister piece is built of tracks and voices. A track can have an arbitray number of voices, but at least there has to be one voice. A track is embraced by brackets ([]), a voice by curled braces ({}). The shortest valid Werckmeister piece would be: [{}]

Notation

The syntax is loosely inspired by the lilypond notation syntax. A note is written by letter followed by a number for its duration. If a note has no duration, the last given duration will be used.

a simple scale with quartes and eights
a simple scale with quartes and eights

Templates

Instead of writing absolute notes, you use relative degrees. For example I4 means the first degree as a quarter note.

This template playes the Ist IIIrd Vth and the VIIth degree as quarter note. It will be played two bars. Starting with a C7 followed by a C minor 7 chord
This template playes the Ist, IIIrd, Vth and the VIIth degree as quarter note. It will be used for two bars. Starting with a C7 followed by a C minor 7 chord.

Installation

Build from sources

Dependencies

Prerequisites

If your boost library is not located at a common search path (e.g. "/usr/local/lib"), make sure that the environment variable "BOOST_ROOT" is set.
(see https://cmake.org/cmake/help/v3.15/module/FindBoost.html)

Run cmake

Compiler

run ./sheetc asheetfile.sheet to compile a sheet file into a MIDI file.

Player

run ./sheetp asheetfile.sheet.

There are several optional arguments:

Architecture

Werckmeister Architecture

Other Cool Projects