C# Class GeneticMIDI.Fractal.NoteRangeRestrictor

Exibir arquivo Open project: stefan-j/GeneticMIDI Class Usage Examples

Public Methods

Method Description
GetDuration ( int index ) : int
GetNumDurations ( ) : int
GetNumPitches ( ) : int
GetPitch ( int index ) : int
NoteRangeRestrictor ( int lowPitch, int highPitch, int shortLength, int longLength, ScaleType scaleToUse ) : System

Specify all restrictions that should be placed on the range of generated notes.

Method Details

GetDuration() public method

public GetDuration ( int index ) : int
index int
return int

GetNumDurations() public method

public GetNumDurations ( ) : int
return int

GetNumPitches() public method

public GetNumPitches ( ) : int
return int

GetPitch() public method

public GetPitch ( int index ) : int
index int
return int

NoteRangeRestrictor() public method

Specify all restrictions that should be placed on the range of generated notes.
public NoteRangeRestrictor ( int lowPitch, int highPitch, int shortLength, int longLength, ScaleType scaleToUse ) : System
lowPitch int The lowest pitch that can be generated.
highPitch int The highest pitch that can be generated.
shortLength int The shortest duration that can be generated.
longLength int The longest duration that can be generated.
scaleToUse ScaleType The scale to use to generate notes.
return System