C# Класс AlphaTab.Audio.Generator.MidiFileGenerator

This generator creates a midi file using a score.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

Generate() публичный Метод

public Generate ( ) : void
Результат void

GenerateBar() публичный Метод

public GenerateBar ( Bar bar, int barStartTick ) : void
bar AlphaTab.Model.Bar
barStartTick int
Результат void

GenerateMidiFile() публичный статический Метод

public static GenerateMidiFile ( AlphaTab.Model.Score score, bool generateMetronome = false ) : MidiFile
score AlphaTab.Model.Score
generateMetronome bool
Результат AlphaTab.Audio.Model.MidiFile

MidiFileGenerator() публичный Метод

public MidiFileGenerator ( AlphaTab.Model.Score score, IMidiFileHandler handler, bool generateMetronome = false ) : System
score AlphaTab.Model.Score
handler IMidiFileHandler
generateMetronome bool
Результат System

ToChannelShort() публичный статический Метод

public static ToChannelShort ( int data ) : int
data int
Результат int