Midge

From XPUB & Lens-Based wiki
Website http://www.undef.org.uk/code/midge/
License GPL
OS GNU/Linux
Media Music synthesis
Format MIDI
Interface Command-line interface,
Wikipedia
# Artist: Blue \"{O}yster Cult
# Album: ?
# Song: Don't fear the reaper

@head {
	$tempo 69
	$time_sig 4/4
	$title "Blue Oyster Cult - don't fear the reaper"
}

@body {

	# Bass

	@channel 1 bass {
		$patch 35 $volume 127
		%repeat 12 { /l16r4/b3 /r4/a /r4/g /r4/a } 
	}

	# Drums

	@channel 10 drums {
		%repeat 48 { /l16/c3 c d c }
	}

	# Cymbals

	%define cym_main { /l16/f+3 f+ g+ f+ }
	%define cym_break { /l16/c+4 f+3 f+ c+4 }

	@channel 10 cymbals { 
		%repeat 12 { %repeat 3 { ~cym_main } ~cym_break }
	}

	# rythm guitar

	%define rythm_main { # b a g a arpegios
		/l16/b3 f+4 b /l8/a3 /l16/e4 a e 
		     g3 d4 g /l8/a3 /l16/e4 a e 
	}

	@channel 2 "rythm guitar" {
		$patch 31 $chorus 96 $volume 80
		%repeat 12 { ~rythm_main }
	}
}

Resulting audio (with Timidity used to convert the midi to an OGG audio file): File:Dont fear the reaper.ogg