File: random_pan.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 (26 lines) | stat: -rw-r--r-- 488 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
# This file shows the use of ranges to vary the pan value and
# attack (note on velocity). Ranges can be used for volume, pan
# reverb, chorus, attack and decay.

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

@body {
	@channel 1 "synth" {

		$patch polysynth
		$length 8

		%repeat 8 {
			%repeat 8 { # 1 bar
				$pan 8-120            # pan randomly between 8 and 120
				$attack 80-127        # vary attack between 80 and 127
				%choose {
					1 e4 1 g4 1 a4 1 b4 1 d5 1 e6
				}
			}
		}
	}
}