BGC Tools
Namespaces | Data Structures | Enumerations
BGC.Audio.Midi Namespace Reference

Namespaces

namespace  Events
 
namespace  Synth
 

Data Structures

class  MidiEncoding
 
class  MidiFile
 
class  MidiFileStream
 Renders an underlying MidiFile More...
 
class  MidiParsingException
 
class  MidiStreamExtensions
 
class  MidiTrack
 

Enumerations

enum  ReservedChannels : byte { ReservedChannels.Percussion = 9 }
 Offset to be 0-indexed More...
 
enum  ReservedSoundSet : byte {
  ReservedSoundSet.AcousticGrandPiano = 0, ReservedSoundSet.BrightAcousticPiano, ReservedSoundSet.ElectricGrandPiano, ReservedSoundSet.HonkyTonkPiano,
  ReservedSoundSet.ElectricPiano1, ReservedSoundSet.ElectricPiano2, ReservedSoundSet.Harpsichord, ReservedSoundSet.Clavi,
  ReservedSoundSet.Celesta, ReservedSoundSet.Glockenspiel, ReservedSoundSet.MusicBox, ReservedSoundSet.Vibraphone,
  ReservedSoundSet.Marimba, ReservedSoundSet.Xylophone, ReservedSoundSet.TubularBells, ReservedSoundSet.Dulcimer,
  ReservedSoundSet.DrawbarOrgan, ReservedSoundSet.PercussiveOrgan, ReservedSoundSet.RockOrgan, ReservedSoundSet.CrutchOrgan,
  ReservedSoundSet.ReedOrgan, ReservedSoundSet.Accordion, ReservedSoundSet.Harmonica, ReservedSoundSet.TangoAccordion,
  ReservedSoundSet.AcousticGuitar_Nylon, ReservedSoundSet.AcousticGuitar_Steel, ReservedSoundSet.ElectricGuitar_Jazz, ReservedSoundSet.ElectricGuitar_Clean,
  ReservedSoundSet.ElectricGuitar_Muted, ReservedSoundSet.OverdrivenGuitar, ReservedSoundSet.DistortionGuitar, ReservedSoundSet.GuitarHarmonics,
  ReservedSoundSet.AcousticBass, ReservedSoundSet.ElectricBass_Finger, ReservedSoundSet.ElectricBasS_Pick, ReservedSoundSet.FretlessBass,
  ReservedSoundSet.SlapBass1, ReservedSoundSet.SlapBass2, ReservedSoundSet.SynthBass1, ReservedSoundSet.SynthBass2,
  ReservedSoundSet.Violin, ReservedSoundSet.Viola, ReservedSoundSet.Cello, ReservedSoundSet.Contrabass,
  ReservedSoundSet.TremoloStrings, ReservedSoundSet.PizzicatoStrings, ReservedSoundSet.OrchestralHarp, ReservedSoundSet.Timpani,
  ReservedSoundSet.StringEnsemble1, ReservedSoundSet.StringEnsemble2, ReservedSoundSet.SynthStrings1, ReservedSoundSet.SynthStrings2,
  ReservedSoundSet.ChoirAahs, ReservedSoundSet.VoiceOohs, ReservedSoundSet.SynthVoice, ReservedSoundSet.OrchestraHit,
  ReservedSoundSet.Trumpet, ReservedSoundSet.Trombone, ReservedSoundSet.Tuba, ReservedSoundSet.MutedTrumped,
  ReservedSoundSet.FrenchHorn, ReservedSoundSet.BrassSection, ReservedSoundSet.SynthBrass1, ReservedSoundSet.SynthBrass2,
  ReservedSoundSet.SopranoSax, ReservedSoundSet.AltoSax, ReservedSoundSet.TenorSax, ReservedSoundSet.BaritoneSax,
  ReservedSoundSet.Oboe, ReservedSoundSet.EnglishHorn, ReservedSoundSet.Bassoon, ReservedSoundSet.Clarinet,
  ReservedSoundSet.Piccolo, ReservedSoundSet.Flute, ReservedSoundSet.Recorder, ReservedSoundSet.PanFlute,
  ReservedSoundSet.BlownBottle, ReservedSoundSet.Shakuhachi, ReservedSoundSet.Whistle, ReservedSoundSet.Ocarina,
  ReservedSoundSet.Lead1_Square, ReservedSoundSet.Lead2_Sawtooth, ReservedSoundSet.Lead3_Calliope, ReservedSoundSet.Lead4_Chiff,
  ReservedSoundSet.Lead5_Charang, ReservedSoundSet.Lead6_Voice, ReservedSoundSet.Lead7_Fifths, ReservedSoundSet.Lead8_BassAndLead,
  ReservedSoundSet.Pad1_NewAge, ReservedSoundSet.Pad2_Warm, ReservedSoundSet.Pad3_Polysynth, ReservedSoundSet.Pad4_Choir,
  ReservedSoundSet.Pad5_Bowed, ReservedSoundSet.Pad6_Metallic, ReservedSoundSet.Pad7_Halo, ReservedSoundSet.Pad8_Sweep,
  ReservedSoundSet.FX1_Rain, ReservedSoundSet.FX2_Soundtrack, ReservedSoundSet.FX3_Crystal, ReservedSoundSet.FX4_Atmosphere,
  ReservedSoundSet.FX5_Brightness, ReservedSoundSet.FX6_Goblins, ReservedSoundSet.FX7_Echoes, ReservedSoundSet.FX8_Scifi,
  ReservedSoundSet.Sitar, ReservedSoundSet.Banjo, ReservedSoundSet.Shamisen, ReservedSoundSet.Koto,
  ReservedSoundSet.Kalimba, ReservedSoundSet.BagPipe, ReservedSoundSet.Fiddle, ReservedSoundSet.Shanai,
  ReservedSoundSet.TinkleBell, ReservedSoundSet.Agogo, ReservedSoundSet.SteelDrums, ReservedSoundSet.Woodblock,
  ReservedSoundSet.TaikoDrum, ReservedSoundSet.MelodicTom, ReservedSoundSet.SynthDrum, ReservedSoundSet.ReverseCymbal,
  ReservedSoundSet.GuitarFretNoise, ReservedSoundSet.BreathNoise, ReservedSoundSet.Seashore, ReservedSoundSet.BirdTweet,
  ReservedSoundSet.TelephoneRing, ReservedSoundSet.Helicopter, ReservedSoundSet.Applause, ReservedSoundSet.Gunshot
}
 Offset to be 0-indexed Source: Complete MIDI Specs General MIDI System Level 1 - Pg 5 - Table 2 More...
 
enum  PercussionMap {
  PercussionMap.AcousticBassDrum = 35, PercussionMap.BassDrum1, PercussionMap.SideStick, PercussionMap.AcousticSnare,
  PercussionMap.HandClap, PercussionMap.ElectricSnare, PercussionMap.LowFloorTom, PercussionMap.ClosedHiHat,
  PercussionMap.HighFloorTom, PercussionMap.PedalHiHat, PercussionMap.LowTom, PercussionMap.OpenHiHat,
  PercussionMap.LowMidTom, PercussionMap.HiMidTom, PercussionMap.CrashCymbal1, PercussionMap.HighTom,
  PercussionMap.RideCymbal1, PercussionMap.ChineseCymbal, PercussionMap.RideBell, PercussionMap.Tambourine,
  PercussionMap.SplashCymbal, PercussionMap.Cowbell, PercussionMap.CrashCymbal2, PercussionMap.Vibraslap,
  PercussionMap.RideCymbal2, PercussionMap.HiBongo, PercussionMap.LowBongo, PercussionMap.MuteHiConga,
  PercussionMap.OpenHiConga, PercussionMap.LowConga, PercussionMap.HighTimbale, PercussionMap.LowTimbale,
  PercussionMap.HighAgogo, PercussionMap.LowAgogo, PercussionMap.Cabasa, PercussionMap.Maracas,
  PercussionMap.ShortWhistle, PercussionMap.LongWhistle, PercussionMap.ShortGuiro, PercussionMap.LongGuiro,
  PercussionMap.Claves, PercussionMap.HiWoodBlock, PercussionMap.LowWoodBlock, PercussionMap.MuteCuica,
  PercussionMap.OpenCuica, PercussionMap.MuteTriangle, PercussionMap.OpenTriangle
}
 Already correctly maps to Frequency Source: Complete MIDI Specs General MIDI System Level 1 - Pg 6 - Table 3 More...
 

Enumeration Type Documentation

◆ PercussionMap

Already correctly maps to Frequency Source: Complete MIDI Specs General MIDI System Level 1 - Pg 6 - Table 3

Enumerator
AcousticBassDrum 
BassDrum1 
SideStick 
AcousticSnare 
HandClap 
ElectricSnare 
LowFloorTom 
ClosedHiHat 
HighFloorTom 
PedalHiHat 
LowTom 
OpenHiHat 
LowMidTom 
HiMidTom 
CrashCymbal1 
HighTom 
RideCymbal1 
ChineseCymbal 
RideBell 
Tambourine 
SplashCymbal 
Cowbell 
CrashCymbal2 
Vibraslap 
RideCymbal2 
HiBongo 
LowBongo 
MuteHiConga 
OpenHiConga 
LowConga 
HighTimbale 
LowTimbale 
HighAgogo 
LowAgogo 
Cabasa 
Maracas 
ShortWhistle 
LongWhistle 
ShortGuiro 
LongGuiro 
Claves 
HiWoodBlock 
LowWoodBlock 
MuteCuica 
OpenCuica 
MuteTriangle 
OpenTriangle 

Definition at line 188 of file ReservedChannels.cs.

189  {
190  AcousticBassDrum = 35,
191  BassDrum1,
192  SideStick,
194  HandClap,
196 
197  LowFloorTom,
198  ClosedHiHat,
199  HighFloorTom,
200  PedalHiHat,
201  LowTom,
202  OpenHiHat,
203  LowMidTom,
204  HiMidTom,
205  CrashCymbal1,
206  HighTom,
207 
208  RideCymbal1,
210  RideBell,
211  Tambourine,
212  SplashCymbal,
213  Cowbell,
214  CrashCymbal2,
215  Vibraslap,
216  RideCymbal2,
217  HiBongo,
218 
219  LowBongo,
220  MuteHiConga,
221  OpenHiConga,
222  LowConga,
223  HighTimbale,
224  LowTimbale,
225  HighAgogo,
226  LowAgogo,
227  Cabasa,
228  Maracas,
229 
230  ShortWhistle,
231  LongWhistle,
232  ShortGuiro,
233  LongGuiro,
234  Claves,
235  HiWoodBlock,
236  LowWoodBlock,
237  MuteCuica,
238  OpenCuica,
239  MuteTriangle,
240 
242  }

◆ ReservedChannels

enum BGC.Audio.Midi.ReservedChannels : byte
strong

Offset to be 0-indexed

Enumerator
Percussion 

Definition at line 8 of file ReservedChannels.cs.

8  : byte
9  {
10  Percussion = 9
11  }

◆ ReservedSoundSet

enum BGC.Audio.Midi.ReservedSoundSet : byte
strong

Offset to be 0-indexed Source: Complete MIDI Specs General MIDI System Level 1 - Pg 5 - Table 2

Enumerator
AcousticGrandPiano 
BrightAcousticPiano 
ElectricGrandPiano 
HonkyTonkPiano 
ElectricPiano1 
ElectricPiano2 
Harpsichord 
Clavi 
Celesta 
Glockenspiel 
MusicBox 
Vibraphone 
Marimba 
Xylophone 
TubularBells 
Dulcimer 
DrawbarOrgan 
PercussiveOrgan 
RockOrgan 
CrutchOrgan 
ReedOrgan 
Accordion 
Harmonica 
TangoAccordion 
AcousticGuitar_Nylon 
AcousticGuitar_Steel 
ElectricGuitar_Jazz 
ElectricGuitar_Clean 
ElectricGuitar_Muted 
OverdrivenGuitar 
DistortionGuitar 
GuitarHarmonics 
AcousticBass 
ElectricBass_Finger 
ElectricBasS_Pick 
FretlessBass 
SlapBass1 
SlapBass2 
SynthBass1 
SynthBass2 
Violin 
Viola 
Cello 
Contrabass 
TremoloStrings 
PizzicatoStrings 
OrchestralHarp 
Timpani 
StringEnsemble1 
StringEnsemble2 
SynthStrings1 
SynthStrings2 
ChoirAahs 
VoiceOohs 
SynthVoice 
OrchestraHit 
Trumpet 
Trombone 
Tuba 
MutedTrumped 
FrenchHorn 
BrassSection 
SynthBrass1 
SynthBrass2 
SopranoSax 
AltoSax 
TenorSax 
BaritoneSax 
Oboe 
EnglishHorn 
Bassoon 
Clarinet 
Piccolo 
Flute 
Recorder 
PanFlute 
BlownBottle 
Shakuhachi 
Whistle 
Ocarina 
Lead1_Square 
Lead2_Sawtooth 
Lead3_Calliope 
Lead4_Chiff 
Lead5_Charang 
Lead6_Voice 
Lead7_Fifths 
Lead8_BassAndLead 
Pad1_NewAge 
Pad2_Warm 
Pad3_Polysynth 
Pad4_Choir 
Pad5_Bowed 
Pad6_Metallic 
Pad7_Halo 
Pad8_Sweep 
FX1_Rain 
FX2_Soundtrack 
FX3_Crystal 
FX4_Atmosphere 
FX5_Brightness 
FX6_Goblins 
FX7_Echoes 
FX8_Scifi 
Sitar 
Banjo 
Shamisen 
Koto 
Kalimba 
BagPipe 
Fiddle 
Shanai 
TinkleBell 
Agogo 
SteelDrums 
Woodblock 
TaikoDrum 
MelodicTom 
SynthDrum 
ReverseCymbal 
GuitarFretNoise 
BreathNoise 
Seashore 
BirdTweet 
TelephoneRing 
Helicopter 
Applause 
Gunshot 

Definition at line 19 of file ReservedChannels.cs.

19  : byte
20  {
21  //Piano 1-8
29  Clavi,
30 
31  //Chromatic Percussion 9-16
32  Celesta,
34  MusicBox,
35  Vibraphone,
36  Marimba,
37  Xylophone,
39  Dulcimer,
40 
41  //Organ 17-24
44  RockOrgan,
46  ReedOrgan,
47  Accordion,
48  Harmonica,
50 
51  //Guitar 25-32
60 
61  //Bass 33-40
66  SlapBass1,
67  SlapBass2,
68  SynthBass1,
69  SynthBass2,
70 
71  //Strings 41-48
72  Violin,
73  Viola,
74  Cello,
75  Contrabass,
79  Timpani,
80 
81  //Ensemble 49-56
86  ChoirAahs,
87  VoiceOohs,
88  SynthVoice,
90 
91  //Brass 57-64
92  Trumpet,
93  Trombone,
94  Tuba,
96  FrenchHorn,
100 
101  //Reed 65-72
102  SopranoSax,
103  AltoSax,
104  TenorSax,
105  BaritoneSax,
106  Oboe,
107  EnglishHorn,
108  Bassoon,
109  Clarinet,
110 
111  //Pipe 73-80
112  Piccolo,
113  Flute,
114  Recorder,
115  PanFlute,
116  BlownBottle,
117  Shakuhachi,
118  Whistle,
119  Ocarina,
120 
121  //Synth Lead 81-88
122  Lead1_Square,
125  Lead4_Chiff,
127  Lead6_Voice,
128  Lead7_Fifths,
130 
131  //Synth Pad 89-96
132  Pad1_NewAge,
133  Pad2_Warm,
135  Pad4_Choir,
136  Pad5_Bowed,
138  Pad7_Halo,
139  Pad8_Sweep,
140 
141  //Synth Effects 97-104
142  FX1_Rain,
144  FX3_Crystal,
147  FX6_Goblins,
148  FX7_Echoes,
149  FX8_Scifi,
150 
151  //Ethnic 105-112
152  Sitar,
153  Banjo,
154  Shamisen,
155  Koto,
156  Kalimba,
157  BagPipe,
158  Fiddle,
159  Shanai,
160 
161  //Percussive 113-120
162  TinkleBell,
163  Agogo,
164  SteelDrums,
165  Woodblock,
166  TaikoDrum,
167  MelodicTom,
168  SynthDrum,
171 
172  //Sound Effects 121-128
173  BreathNoise,
174  Seashore,
175  BirdTweet,
177  Helicopter,
178  Applause,
179  Gunshot
180  }