File: strum.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 (38 lines) | stat: -rw-r--r-- 445 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
28
29
30
31
32
33
34
35
36
37
38
# this file demonstrates the $strum keyword

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

@body {

	# define E and A chords
	%define E { ( e2 b e3 g+ b e4 ) }
	%define A { ( a2 e3 a c+4 e ) }

	@channel 1 "guitar" {
		$patch guitar_nylon

		$strum 4     # 4 midi clicks between each note in chords

		$length 4    # quarter notes

		%repeat 4 {

			~E r ~E ~E

			~A r ~A ~A

		}

		$strum 12    # slower strum for last chord

		$length 1

		~E

	}

}