File: on_off.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 (20 lines) | stat: -rw-r--r-- 448 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
# This file shows how to play simultaneous notes using separate
# note-on and note-off events

@head {
	$tempo 120
	$time_sig 4/4
}

@body {
	@channel 1 {
		$patch cello
		$length 4

		+/a127/c5   # note on c5 (w/ attack 127)
		r           # c5 plays for 1/4 note before other notes start
        e4 g e      # play e4, g4, e4 over the c5
        r           # c5 plays for 1/4 note after other notes
		-/d32/c5    # note off c5 (w/ decay 32)
	}
}