-
Notifications
You must be signed in to change notification settings - Fork 0
/
MidiKeyboardViewController.xib
219 lines (219 loc) · 18.4 KB
/
MidiKeyboardViewController.xib
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="13196" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="13196"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<customObject id="-2" userLabel="File's Owner" customClass="MidiKeyboardViewController" customModule="Midi_Menu_Bar" customModuleProvider="target">
<connections>
<outlet property="Octave" destination="mX7-GW-n19" id="LGd-pp-uol"/>
<outlet property="octaveLabel" destination="mX7-GW-n19" id="5eG-z6-h0M"/>
<outlet property="view" destination="Hz6-mo-xeY" id="0bl-1N-x8E"/>
</connections>
</customObject>
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
<customView wantsLayer="YES" id="Hz6-mo-xeY">
<rect key="frame" x="0.0" y="0.0" width="344" height="219"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<subviews>
<button focusRingType="none" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="PEY-ih-UNg">
<rect key="frame" x="325" y="185" width="16" height="16"/>
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSRemoveTemplate" imagePosition="overlaps" alignment="center" controlSize="mini" lineBreakMode="truncatingTail" state="on" focusRingType="none" imageScaling="proportionallyDown" inset="2" id="19T-gu-BI7">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="miniSystem"/>
</buttonCell>
<connections>
<action selector="octaceMoins:" target="-2" id="rVk-0S-gmp"/>
</connections>
</button>
<button translatesAutoresizingMaskIntoConstraints="NO" id="NPT-RI-5Ax" customClass="PianoButton" customModule="Midi_Menu_Bar" customModuleProvider="target">
<rect key="frame" x="0.0" y="3" width="50" height="180"/>
<constraints>
<constraint firstAttribute="width" relation="lessThanOrEqual" constant="50" id="Tpr-ag-N59"/>
<constraint firstAttribute="height" constant="180" id="sa0-XI-yDM"/>
</constraints>
<buttonCell key="cell" type="square" bezelStyle="shadowlessSquare" image="whiteKey" imagePosition="overlaps" alignment="center" imageScaling="proportionallyUpOrDown" inset="2" id="mXm-HF-bZY">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
</buttonCell>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="string" keyPath="noteString" value="C"/>
</userDefinedRuntimeAttributes>
</button>
<button focusRingType="none" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="l7p-b9-UR4">
<rect key="frame" x="325" y="201" width="16" height="16"/>
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSAddTemplate" imagePosition="overlaps" alignment="center" controlSize="mini" lineBreakMode="truncatingTail" state="on" focusRingType="none" imageScaling="proportionallyDown" inset="2" id="kRr-4y-eBE">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="miniSystem"/>
</buttonCell>
<connections>
<action selector="octavePlus:" target="-2" id="UHc-I9-mAl"/>
</connections>
</button>
<button fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="KdX-SY-UzF" customClass="PianoButton" customModule="Midi_Menu_Bar" customModuleProvider="target">
<rect key="frame" x="49" y="3" width="50" height="180"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="square" bezelStyle="shadowlessSquare" image="whiteKey" imagePosition="only" alignment="center" imageScaling="proportionallyUpOrDown" inset="2" id="O15-IX-MLi">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
</buttonCell>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="string" keyPath="noteString" value="D"/>
</userDefinedRuntimeAttributes>
</button>
<button fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="5TJ-SN-02A" customClass="PianoButton" customModule="Midi_Menu_Bar" customModuleProvider="target">
<rect key="frame" x="98" y="3" width="50" height="180"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="square" bezelStyle="shadowlessSquare" image="whiteKey" imagePosition="only" alignment="center" imageScaling="proportionallyUpOrDown" inset="2" id="zNx-xG-3Rh">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
</buttonCell>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="string" keyPath="noteString" value="E"/>
</userDefinedRuntimeAttributes>
</button>
<button fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="hXG-B9-0W6" customClass="PianoButton" customModule="Midi_Menu_Bar" customModuleProvider="target">
<rect key="frame" x="147" y="3" width="50" height="180"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="square" bezelStyle="shadowlessSquare" image="whiteKey" imagePosition="only" alignment="center" imageScaling="proportionallyUpOrDown" inset="2" id="GLK-rj-ovx">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
</buttonCell>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="string" keyPath="noteString" value="F"/>
</userDefinedRuntimeAttributes>
</button>
<button fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="VXb-0Z-PxR" customClass="PianoButton" customModule="Midi_Menu_Bar" customModuleProvider="target">
<rect key="frame" x="196" y="3" width="50" height="180"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="square" bezelStyle="shadowlessSquare" image="whiteKey" imagePosition="only" alignment="center" imageScaling="proportionallyUpOrDown" inset="2" id="9tp-kf-nRJ">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
</buttonCell>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="string" keyPath="noteString" value="G"/>
</userDefinedRuntimeAttributes>
</button>
<button fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="gV3-7l-1Ee" customClass="PianoButton" customModule="Midi_Menu_Bar" customModuleProvider="target">
<rect key="frame" x="245" y="3" width="50" height="180"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="square" bezelStyle="shadowlessSquare" image="whiteKey" imagePosition="only" alignment="center" imageScaling="proportionallyUpOrDown" inset="2" id="B44-s5-ZUT">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
</buttonCell>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="string" keyPath="noteString" value="A"/>
</userDefinedRuntimeAttributes>
</button>
<button fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Tpn-Cc-oO5" customClass="PianoButton" customModule="Midi_Menu_Bar" customModuleProvider="target">
<rect key="frame" x="294" y="3" width="50" height="180"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="square" bezelStyle="shadowlessSquare" image="whiteKey" imagePosition="only" alignment="center" imageScaling="proportionallyUpOrDown" inset="2" id="442-fJ-e5m">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
</buttonCell>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="string" keyPath="noteString" value="B"/>
</userDefinedRuntimeAttributes>
</button>
<button fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="tb0-QB-hXh" customClass="PianoButton" customModule="Midi_Menu_Bar" customModuleProvider="target">
<rect key="frame" x="35" y="78" width="30" height="105"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="square" bezelStyle="shadowlessSquare" image="blackKey" imagePosition="overlaps" alignment="center" imageScaling="proportionallyUpOrDown" inset="2" id="dYU-Zp-52U">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
</buttonCell>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="string" keyPath="noteString" value="C#"/>
<userDefinedRuntimeAttribute type="boolean" keyPath="isBlackKey" value="YES"/>
</userDefinedRuntimeAttributes>
</button>
<button fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="qGz-uS-Owf" customClass="PianoButton" customModule="Midi_Menu_Bar" customModuleProvider="target">
<rect key="frame" x="84" y="78" width="30" height="105"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="square" bezelStyle="shadowlessSquare" image="blackKey" imagePosition="overlaps" alignment="center" imageScaling="proportionallyUpOrDown" inset="2" id="EkB-kc-fzg">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
</buttonCell>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="string" keyPath="noteString" value="D#"/>
<userDefinedRuntimeAttribute type="boolean" keyPath="isBlackKey" value="YES"/>
</userDefinedRuntimeAttributes>
</button>
<button fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="HLt-Mk-xcJ" customClass="PianoButton" customModule="Midi_Menu_Bar" customModuleProvider="target">
<rect key="frame" x="230" y="78" width="30" height="105"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="square" bezelStyle="shadowlessSquare" image="blackKey" imagePosition="overlaps" alignment="center" imageScaling="proportionallyUpOrDown" inset="2" id="bkL-Qe-ypN">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
</buttonCell>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="string" keyPath="noteString" value="G#"/>
<userDefinedRuntimeAttribute type="boolean" keyPath="isBlackKey" value="YES"/>
</userDefinedRuntimeAttributes>
</button>
<button fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="l3T-lb-Vi2" customClass="PianoButton" customModule="Midi_Menu_Bar" customModuleProvider="target">
<rect key="frame" x="280" y="78" width="30" height="105"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="square" bezelStyle="shadowlessSquare" image="blackKey" imagePosition="overlaps" alignment="center" imageScaling="proportionallyUpOrDown" inset="2" id="o3c-W1-62j">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
</buttonCell>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="string" keyPath="noteString" value="A#"/>
<userDefinedRuntimeAttribute type="boolean" keyPath="isBlackKey" value="YES"/>
</userDefinedRuntimeAttributes>
</button>
<button fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="qaU-sL-ixj" customClass="PianoButton" customModule="Midi_Menu_Bar" customModuleProvider="target">
<rect key="frame" x="182" y="78" width="30" height="105"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="square" bezelStyle="shadowlessSquare" image="blackKey" imagePosition="overlaps" alignment="center" imageScaling="proportionallyUpOrDown" inset="2" id="MlZ-7i-2Ix">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
</buttonCell>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="string" keyPath="noteString" value="F#"/>
<userDefinedRuntimeAttribute type="boolean" keyPath="isBlackKey" value="YES"/>
</userDefinedRuntimeAttributes>
</button>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="mX7-GW-n19">
<rect key="frame" x="292" y="179" width="27" height="34"/>
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" placeholderString="" id="8K0-1c-dZ2">
<font key="font" metaFont="system" size="20"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
</textFieldCell>
</textField>
<button focusRingType="none" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="0QF-wt-jZp">
<rect key="frame" x="12" y="192" width="14" height="14"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="square" bezelStyle="shadowlessSquare" image="btn_close" imagePosition="only" alignment="center" focusRingType="none" imageScaling="proportionallyUpOrDown" inset="2" id="Ye6-2l-8wb">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
</buttonCell>
<connections>
<action selector="closeApp:" target="-2" id="uCM-Bj-60q"/>
</connections>
</button>
</subviews>
<constraints>
<constraint firstItem="NPT-RI-5Ax" firstAttribute="leading" secondItem="Hz6-mo-xeY" secondAttribute="leading" id="88G-WH-UL0"/>
<constraint firstAttribute="bottom" secondItem="NPT-RI-5Ax" secondAttribute="bottom" constant="3" id="Fxk-Gt-eN0"/>
</constraints>
<point key="canvasLocation" x="178" y="266.5"/>
</customView>
</objects>
<resources>
<image name="NSAddTemplate" width="11" height="11"/>
<image name="NSRemoveTemplate" width="11" height="11"/>
<image name="blackKey" width="60" height="210"/>
<image name="btn_close" width="20" height="20"/>
<image name="whiteKey" width="100" height="360"/>
</resources>
</document>