Added some examples to language2.txt.
[ahxm.git] / doc / language2.txt
blobea4c4fe9e4829d796372f37f145660e670d311c6
1 Ann Hell Ex Machina Scripting - II: Extended Commands
2 =====================================================
4  Angel Ortega <angel@triptico.com>
6 Overview
7 --------
9 Those directives that are not pure music instructions or are specific to a
10 given output mode are called extended commands. They are expressed as
11 curly bracket-enclosed blocks of keywords directly followed by their
12 optional, respective arguments. As for the basic commands, formatting and
13 indentation is free-form.
15 Extended commands are interleaved with basic commands, they are inserted
16 exactly where found and can be enclosed in blocks or group structures as
17 well.
19 Software synthesizer commands
20 -----------------------------
22 wav
23 ~~~
25  wav "file.wav" <base note>
26  wav "file.wav" <base note> <min note> <max note>
27  wav "file.wav" <base note> <min note> <max note> <loop start> <loop end>
29 pat
30 ~~~
32  pat "file.pat"
34 sustain
35 ~~~~~~~
37  sustain <time>
39 vibrato
40 ~~~~~~~
42  vibrato <depth> <frequency>
44 Examples
46  /* depth values from 0.45 to 0.68 are fine, as well as 6hz */
47  vibrato 0.45ms 6
49 channel
50 ~~~~~~~
52  channel <channel #> <volume>
54 vol
55 ~~~
57  vol <volume>
58  vol <volume> <volume>
59  vol <volume> <volume> <volume>
60  vol <volume> <volume> <volume> <volume>
61  vol <volume> <volume> <volume> <volume> <volume> <volume>
63 pitch_stretch
64 ~~~~~~~~~~~~~
66  pitch_stretch <note> <length in wholes> <volume>
68 time_stretch
69 ~~~~~~~~~~~~
71  time_stretch <note> <length in wholes> <volume>
73 This command is NOT IMPLEMENTED.
75 Digital effect commands
76 -----------------------
78 delay
79 ~~~~~
81  delay <channel> <time>
83 echo
84 ~~~~
86  echo <channel> <time> <gain>
88 comb
89 ~~~~
91  comb <channel> <time> <gain>
93 allpass
94 ~~~~~~~
96  allpass <channel> <time> <gain>
98 flanger
99 ~~~~~~~
101  flanger <channel> <time> <gain> <depth> <freq> <phase>
103 Examples
105  /* good stereo flanger */
106  flanger 0 1s 0.9 3.40ms 0.1 0
107  flanger 1 1s 0.9 3.40ms 0.1 0.25
109 wobble
110 ~~~~~~
112  wobble <channel> <freq> <phase>
114 square_wobble
115 ~~~~~~~~~~~~~
117  square_wobble <channel> <freq> <phase>
119 fader
120 ~~~~~
122  fader <channel> <size> <initial volume> <final volume>
124 reverb
125 ~~~~~~
127  reverb <channel>
129 This reverb is defined as
131  allpass 0 20ms 0.9
132  allpass 0 36ms 0.9
133  allpass 0 39ms 0.9
138  off <channel>
140 This command resets the digital effect chain for <channel>.
142 MIDI commands
143 -------------
145 midi_channel
146 ~~~~~~~~~~~~
148  midi_channel <channel #>
150 midi_program
151 ~~~~~~~~~~~~
153  midi_program <program #>
155 ----
156 Angel Ortega - http://www.triptico.com