C# Class AlphaTab.Audio.Generator.MidiFileGenerator

This generator creates a midi file using a score.
Datei anzeigen Open project: CoderLine/alphaTab Class Usage Examples

Public Methods

Method Description
Generate ( ) : void
GenerateBar ( Bar bar, int barStartTick ) : void
GenerateMidiFile ( AlphaTab.Model.Score score, bool generateMetronome = false ) : MidiFile
MidiFileGenerator ( AlphaTab.Model.Score score, IMidiFileHandler handler, bool generateMetronome = false ) : System
ToChannelShort ( int data ) : int

Private Methods

Method Description
ApplyDurationEffects ( Note note, int duration ) : int
ApplyStaticDuration ( int duration, int maximum ) : int
GenerateAutomation ( Beat beat, AlphaTab.Model.Automation automation, int startMove ) : void
GenerateBeat ( Beat beat, int barStartTick ) : void
GenerateBend ( Note note, int noteStart, int noteDuration, int noteKey, DynamicValue dynamicValue ) : void
GenerateChannel ( AlphaTab.Model.Track track, byte channel, AlphaTab.Model.PlaybackInformation playbackInfo ) : void
GenerateFadeIn ( Note note, int noteStart, int noteDuration, int noteKey, DynamicValue dynamicValue ) : void
GenerateHarmonic ( Note note, int noteStart, int noteDuration, int noteKey, DynamicValue dynamicValue ) : void
GenerateMasterBar ( MasterBar masterBar, MasterBar previousMasterBar, int currentTick ) : void
GenerateNote ( Note note, int beatStart, int beatDuration, int brushInfo ) : void
GenerateSlide ( Note note, int noteStart, int noteDuration, int noteKey, DynamicValue dynamicValue ) : void
GenerateTrack ( AlphaTab.Model.Track track ) : void
GenerateTremoloPicking ( Note note, int noteStart, int noteDuration, int noteKey, DynamicValue dynamicValue ) : void
GenerateTrill ( Note note, int noteStart, int noteDuration, int noteKey, DynamicValue dynamicValue ) : void
GenerateVibrato ( Note note, int noteStart, int noteDuration, int noteKey, DynamicValue dynamicValue ) : void
GenerateVibratorWithParams ( AlphaTab.Model.Track track, int noteStart, int noteDuration, int phaseLength, int bendAmplitude ) : void
GenerateVoice ( Voice voice, int barStartTick ) : void
GenerateWhammyBar ( Note note, int noteStart, int noteDuration, int noteKey, DynamicValue dynamicValue ) : void
GetBrushIncrement ( Beat beat ) : int
GetBrushInfo ( Beat beat ) : int[]
GetDynamicValue ( Note note ) : DynamicValue
GetNoteDuration ( Note note, int beatDuration ) : int

Method Details

Generate() public method

public Generate ( ) : void
return void

GenerateBar() public method

public GenerateBar ( Bar bar, int barStartTick ) : void
bar AlphaTab.Model.Bar
barStartTick int
return void

GenerateMidiFile() public static method

public static GenerateMidiFile ( AlphaTab.Model.Score score, bool generateMetronome = false ) : MidiFile
score AlphaTab.Model.Score
generateMetronome bool
return AlphaTab.Audio.Model.MidiFile

MidiFileGenerator() public method

public MidiFileGenerator ( AlphaTab.Model.Score score, IMidiFileHandler handler, bool generateMetronome = false ) : System
score AlphaTab.Model.Score
handler IMidiFileHandler
generateMetronome bool
return System

ToChannelShort() public static method

public static ToChannelShort ( int data ) : int
data int
return int