C# Class GSF.Media.Music.MeasureSize

Defines the size of a musical measure as the number of beats per note value.
Show file Open project: GridProtectionAlliance/gsf Class Usage Examples

Public Methods

Method Description
MeasureSize ( int beats, NoteValue noteValue ) : System

Creates a new musical measure defined as the number of beats per note value.

MeasureSize ( int beats, NoteValueBritish noteValue ) : System

Creates a new musical measure defined as the number of beats per note value.

MeasureSize ( int beats, double noteValue ) : System

Creates a new musical measure defined as the number of beats per note value.

ValidateNoteValueAtBeat ( NoteValue noteValue, int beat, int dots ) : void

Validates that given note value will fit within this MeasureSize for specified beat.

ValidateNoteValueAtBeat ( NoteValueBritish noteValue, int beat, int dots ) : void

Validates that given note value will fit within this MeasureSize for specified beat.

ValidateNoteValueAtBeat ( double noteValue, int beat ) : void

Validates that given note value will fit within this MeasureSize for specified beat.

Method Details

MeasureSize() public method

Creates a new musical measure defined as the number of beats per note value.
public MeasureSize ( int beats, NoteValue noteValue ) : System
beats int A representing the beats.
noteValue NoteValue A representing the note value.
return System

MeasureSize() public method

Creates a new musical measure defined as the number of beats per note value.
public MeasureSize ( int beats, NoteValueBritish noteValue ) : System
beats int A representing the beats.
noteValue NoteValueBritish A representing the note value.
return System

MeasureSize() public method

Creates a new musical measure defined as the number of beats per note value.
public MeasureSize ( int beats, double noteValue ) : System
beats int A representing the beats.
noteValue double A representing the note value.
return System

ValidateNoteValueAtBeat() public method

Validates that given note value will fit within this MeasureSize for specified beat.
public ValidateNoteValueAtBeat ( NoteValue noteValue, int beat, int dots ) : void
noteValue NoteValue Named note value to validate.
beat int Beat within in measure where note value is trying to fit.
dots int Dot length extensions to apply to named note value.
return void

ValidateNoteValueAtBeat() public method

Validates that given note value will fit within this MeasureSize for specified beat.
public ValidateNoteValueAtBeat ( NoteValueBritish noteValue, int beat, int dots ) : void
noteValue NoteValueBritish Named note value to validate.
beat int Beat within in measure where note value is trying to fit.
dots int Dot length extensions to apply to named note value.
return void

ValidateNoteValueAtBeat() public method

Validates that given note value will fit within this MeasureSize for specified beat.
public ValidateNoteValueAtBeat ( double noteValue, int beat ) : void
noteValue double Note value (i.e., length) to validate.
beat int Beat within in measure where note value is trying to fit.
return void