cmake build system: visiblity support for clang
[supercollider.git] / SCClassLibrary / Common / Control / asMIDIPort.sc
blobd8cdf9f58f326d0b3c026ce47de1a26bafc30137
1 + SequenceableCollection {
2         asMIDIInPortUID {
3                 ^this.collect(_.asMIDIInPortUID)
4         }
7 + SimpleNumber {
8         asMIDIInPortUID {
9                 // a low positive number is assumed to be an index to the desired port
10                 if(this.isPositive and: { this < MIDIClient.sources.size }, {
11                         ^MIDIClient.sources[this].uid
12                 });
13                 // a high-magnitude number is a UID
14                 ^this
15         }
18 + MIDIEndPoint {
19         asMIDIInPortUID {
20                 ^this.uid
21         }
24 + Nil {
25         asMIDIInPortUID {}