4
#define __SK_MaxMsgTypes_ 128
6
struct SKINISpec { char messageString[32];
12
/* SEE COMMENT BLOCK AT BOTTOM FOR FIELDS AND USES */
13
/* MessageString ,type, ch?, data2 , data3 */
15
struct SKINISpec skini_msgs[__SK_MaxMsgTypes_] =
17
{"NoteOff" , __SK_NoteOff_, SK_DBL, SK_DBL},
18
{"NoteOn" , __SK_NoteOn_, SK_DBL, SK_DBL},
19
{"PolyPressure" , __SK_PolyPressure_, SK_DBL, SK_DBL},
20
{"ControlChange" , __SK_ControlChange_, SK_INT, SK_DBL},
21
{"ProgramChange" , __SK_ProgramChange_, SK_DBL, SK_DBL},
22
{"AfterTouch" , __SK_AfterTouch_, SK_DBL, NOPE},
23
{"ChannelPressure" ,__SK_ChannelPressure_, SK_DBL, NOPE},
24
{"PitchWheel" , __SK_PitchWheel_, SK_DBL, NOPE},
25
{"PitchBend" , __SK_PitchBend_, SK_DBL, NOPE},
27
{"Clock" , __SK_Clock_, NOPE, NOPE},
28
{"Undefined" , 249, NOPE, NOPE},
29
{"SongStart" , __SK_SongStart_, NOPE, NOPE},
30
{"Continue" , __SK_Continue_, NOPE, NOPE},
31
{"SongStop" , __SK_SongStop_, NOPE, NOPE},
32
{"Undefined" , 253, NOPE, NOPE},
33
{"ActiveSensing" , __SK_ActiveSensing_, NOPE, NOPE},
34
{"SystemReset" , __SK_SystemReset_, NOPE, NOPE},
36
{"Volume" , __SK_ControlChange_, __SK_Volume_ , SK_DBL},
37
{"ModWheel" , __SK_ControlChange_, __SK_ModWheel_ , SK_DBL},
38
{"Modulation" , __SK_ControlChange_, __SK_Modulation_ , SK_DBL},
39
{"Breath" , __SK_ControlChange_, __SK_Breath_ , SK_DBL},
40
{"FootControl" , __SK_ControlChange_, __SK_FootControl_ , SK_DBL},
41
{"Portamento" , __SK_ControlChange_, __SK_Portamento_ , SK_DBL},
42
{"Balance" , __SK_ControlChange_, __SK_Balance_ , SK_DBL},
43
{"Pan" , __SK_ControlChange_, __SK_Pan_ , SK_DBL},
44
{"Sustain" , __SK_ControlChange_, __SK_Sustain_ , SK_DBL},
45
{"Damper" , __SK_ControlChange_, __SK_Damper_ , SK_DBL},
46
{"Expression" , __SK_ControlChange_, __SK_Expression_ , SK_DBL},
48
{"NoiseLevel" , __SK_ControlChange_, __SK_NoiseLevel_ , SK_DBL},
49
{"PickPosition" , __SK_ControlChange_, __SK_PickPosition_ , SK_DBL},
50
{"StringDamping" , __SK_ControlChange_, __SK_StringDamping_ , SK_DBL},
51
{"StringDetune" , __SK_ControlChange_, __SK_StringDetune_ , SK_DBL},
52
{"BodySize" , __SK_ControlChange_, __SK_BodySize_ , SK_DBL},
53
{"BowPressure" , __SK_ControlChange_, __SK_BowPressure_ , SK_DBL},
54
{"BowPosition" , __SK_ControlChange_, __SK_BowPosition_ , SK_DBL},
55
{"BowBeta" , __SK_ControlChange_, __SK_BowBeta_ , SK_DBL},
57
{"ReedStiffness" , __SK_ControlChange_, __SK_ReedStiffness_ , SK_DBL},
58
{"ReedRestPos" , __SK_ControlChange_, __SK_ReedRestPos_ , SK_DBL},
59
{"FluteEmbouchure" , __SK_ControlChange_, __SK_FluteEmbouchure_, SK_DBL},
60
{"LipTension" , __SK_ControlChange_, __SK_LipTension_ , SK_DBL},
61
{"StrikePosition" , __SK_ControlChange_, __SK_StrikePosition_, SK_DBL},
62
{"StickHardness" , __SK_ControlChange_, __SK_StickHardness_ , SK_DBL},
64
{"TrillDepth" , __SK_ControlChange_, __SK_TrillDepth_ , SK_DBL},
65
{"TrillSpeed" , __SK_ControlChange_, __SK_TrillSpeed_ , SK_DBL},
67
{"Strumming" , __SK_ControlChange_, __SK_Strumming_ , 127 },
68
{"NotStrumming" , __SK_ControlChange_, __SK_Strumming_ , 0 },
70
{"PlayerSkill" , __SK_ControlChange_, __SK_PlayerSkill_ , SK_DBL},
72
{"Chord" , __SK_Chord_ , SK_DBL , SK_STR },
73
{"ChordOff" , __SK_ChordOff_ , SK_DBL , NOPE },
75
{"ShakerInst" , __SK_ControlChange_, __SK_ShakerInst_ , SK_DBL},
76
{"Maraca" , __SK_ControlChange_, __SK_ShakerInst_ , 0 },
77
{"Sekere" , __SK_ControlChange_, __SK_ShakerInst_ , 1 },
78
{"Cabasa" , __SK_ControlChange_, __SK_ShakerInst_ , 2 },
79
{"Bamboo" , __SK_ControlChange_, __SK_ShakerInst_ , 3 },
80
{"Waterdrp" , __SK_ControlChange_, __SK_ShakerInst_ , 4 },
81
{"Tambourn" , __SK_ControlChange_, __SK_ShakerInst_ , 5 },
82
{"Sleighbl" , __SK_ControlChange_, __SK_ShakerInst_ , 6 },
83
{"Guiro" , __SK_ControlChange_, __SK_ShakerInst_ , 7 },
85
{"OpenFile" , 256, SK_STR , NOPE},
86
{"SetPath" , 257, SK_STR , NOPE},
88
{"FilePath" , __SK_SINGER_FilePath_, SK_STR , NOPE},
89
{"Frequency" , __SK_SINGER_Frequency_, SK_STR , NOPE},
90
{"NoteName" , __SK_SINGER_NoteName_, SK_STR , NOPE},
91
{"VocalShape" , __SK_SINGER_Shape_ , SK_STR , NOPE},
92
{"Glottis" , __SK_SINGER_Glot_ , SK_STR , NOPE},
93
{"VoicedUnVoiced" , __SK_SINGER_VoicedUnVoiced_, SK_DBL , SK_STR},
94
{"Synthesize" , __SK_SINGER_Synthesize_, SK_STR , NOPE},
95
{"Silence" , __SK_SINGER_Silence_, SK_STR , NOPE},
96
{"VibratoAmt" , __SK_ControlChange_ ,__SK_SINGER_VibratoAmt_,SK_DBL},
97
{"RndVibAmt" , __SK_SINGER_RndVibAmt_ ,SK_STR, NOPE},
98
{"VibFreq" , __SK_ControlChange_ ,__SK_SINGER_VibFreq_ ,SK_DBL}
102
/** FORMAT: *************************************************************/
104
/* MessageStr$ ,type, data2, data3, */
106
/* type is the message type sent back from the SKINI line parser. */
107
/* data<n> is either */
108
/* NOPE : field not used, specifically, there aren't going */
109
/* to be any more fields on this line. So if there */
110
/* is is NOPE in data2, data3 won't even be checked */
111
/* SK_INT : byte (actually scanned as 32 bit signed integer) */
112
/* If it's a MIDI data field which is required to */
113
/* be an integer, like a controller number, it's */
114
/* 0-127. Otherwise) get creative with SK_INTs */
115
/* SK_DBL : double precision floating point. SKINI uses these */
116
/* in the MIDI context for note numbers with micro */
117
/* tuning, velocities, controller values, etc. */
118
/* SK_STR : only valid in final field. This allows (nearly) */
119
/* arbitrary message types to be supported by simply */
120
/* scanning the string to EndOfLine and then passing */
121
/* it to a more intellegent handler. For example, */
122
/* MIDI SYSEX (system exclusive) messages of up to */
123
/* 256bytes can be read as space-delimited integers */
124
/* into the 1K SK_STR buffer. Longer bulk dumps, */
125
/* soundfiles, etc. should be handled as a new */
126
/* message type pointing to a FileName stored in the */
127
/* SK_STR field, or as a new type of multi-line */
130
/*************************************************************************/