-
Notifications
You must be signed in to change notification settings - Fork 2
/
_keyMapCode.scd
102 lines (68 loc) · 2.36 KB
/
_keyMapCode.scd
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
// code used to generate the initial keymappings file
// map the keys to the names of the soundfiles inside your project folder
// the project folder is the name of your session (so you start XiiLang("projectname")
/*
INSTRUCTIONS:
// NEW: it is recommended that you use the GUI instead of these instructions.
// But if you want, you can use this. no problems.
1) Place THIS document into your project folder
2) Enter the names of your samples mapped to the keys
3) Highlight all (Apple + a)
4) Hit SHIFT + RETURN (this will generate the keyMappings.ixi file in your project folder)
*/
var instrDict, project; // project is the folder name
instrDict = IdentityDictionary.new;
project = Document.current.dir.split.last;
instrDict[\A] = \ambient;
instrDict[\a] = \backswing;
instrDict[\B] = \bassDrone;
instrDict[\b] = \bassbow;
instrDict[\C] = \boom; // \clip;
instrDict[\c] = \basscresc;
instrDict[\D] = \stereoBrook;
instrDict[\d] = \bassharm;
instrDict[\E] = \virotic;
instrDict[\e] = \bassnote;
instrDict[\F] = \cois;
instrDict[\f] = \bassnote2;
instrDict[\G] = \grey;
instrDict[\g] = \bassnote3;
instrDict[\H] = \bassnote4;
instrDict[\h] = \bassnote4;
instrDict[\I] = \boom;
instrDict[\i] = \insec;
instrDict[\J] = \camina3;
instrDict[\j] = \camina4;
instrDict[\K] = \convol1;
instrDict[\k] = \convol2;
instrDict[\L] = \convol3;
instrDict[\l] = \convol4;
instrDict[\M] = \convol5;
instrDict[\m] = \elstatic;
instrDict[\N] = \fuzz;
instrDict[\n] = \grains;
instrDict[\O] = \grill;
instrDict[\o] = \impulse1;
instrDict[\P] = \robotnoise; // \pink;
instrDict[\p] = \insec2;
instrDict[\Q] = \insec3;
instrDict[\q] = \machine;
instrDict[\R] = \magnetclock;
instrDict[\r] = \robotnoise;
instrDict[\S] = \rooph;
instrDict[\s] = \rooph;
instrDict[\T] = \sparkup;
instrDict[\t] = \speed;
instrDict[\U] = \static;
instrDict[\u] = \statics;
instrDict[\V] = \sweetmachine;
instrDict[\v] = \viromachine;
instrDict[\W] = \white;
instrDict[\w] = \windup;
instrDict[\X] = \woodblock;
instrDict[\x] = \yoyo;
instrDict[\Y] = \wheel;
instrDict[\y] = \viromachine;
instrDict[\Z] = \viromachine;
instrDict[\z] = \yoyo;
instrDict.writeArchive("ixilang/"++project++"/keyMapping.ixi");