File: offset.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 (24 lines) | stat: -rw-r--r-- 591 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
# This file demonstrates how to offset notes slightly
# using the `z' note option. See also offset_random.mg

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

@body {
	@channel 10 "bass drum" {

		$shorten 5              # shorten notes by 5 midi clicks
                                # to leave space for offsets

		/l4r4/bd                # 4 straight beats
		bd /z+5/bd /r2/bd       # beat 2 played 5 midi clicks late
		/r4/bd                  # 4 straight beats
		bd /z-5/bd /r2/bd       # beat 2 played 5 midi clicks early
	}

	@channel 10 "hi hat" {
		%repeat 4 { %repeat 4 { /l8/r hh_c } }
	}
}