File: chords.mg

package info (click to toggle)
midge 0.2.41%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 556 kB
  • sloc: perl: 5,508; modula3: 1,204; lisp: 869; makefile: 36; sh: 20
file content (27 lines) | stat: -rw-r--r-- 574 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# This file demonstrates the use of `()' to make chords.

@head {
	$tempo 120
	$time_sig 4/4
}
@body {
	%define minor { ( c e- g ) }   # define minor to be a C minor
	%define major { ( c e g ) }    # define major to be a C major
	%define 7 { ( c e g b- ) }     # define 7 to be a C 7th
	@channel 1 {
		$patch 1
		$length 2
		$octave 4

		%repeat 4 { ~major } # c major

		$patch 18
		%repeat 4 { ~minor/9/ } # a minor (C minor transposed up 9 steps)

		$patch 91
		%repeat 4 { ~major } # c major

		$patch 27
		%repeat 4 { ~7/7/ } # g 7th (C 7th transposed up 7 steps)
	}
}