Class PolyphonyAnalyzer
Analyzer for polyphonic music - voice leading, counterpoint, texture.
public static class PolyphonyAnalyzer
- Inheritance
-
PolyphonyAnalyzer
- Inherited Members
Methods
Analyze(NoteBuffer, int)
Perform complete polyphony analysis on a NoteBuffer.
public static PolyphonyAnalysisResult Analyze(NoteBuffer buffer, int maxVoices = 4)
Parameters
bufferNoteBuffermaxVoicesint
Returns
Exceptions
- ArgumentNullException
bufferis null.
CheckCounterpointRules(NoteBuffer, int)
Convenience wrapper used by examples: checks basic counterpoint issues and returns counts.
public static CounterpointRulesCheckResult CheckCounterpointRules(NoteBuffer buffer, int maxVoices = 4)
Parameters
bufferNoteBuffermaxVoicesint
Returns
Exceptions
- ArgumentNullException
bufferis null.
CheckCounterpointRules(IEnumerable<NoteEvent>, int)
Convenience wrapper used by examples: checks basic counterpoint issues and returns counts.
public static CounterpointRulesCheckResult CheckCounterpointRules(IEnumerable<NoteEvent> notes, int maxVoices = 4)
Parameters
notesIEnumerable<NoteEvent>maxVoicesint
Returns
Exceptions
- ArgumentNullException
notesis null.
DetectImitation(NoteBuffer, int)
Detect simple imitation (canon-like) between voices.
public static ImitationDetectionResult DetectImitation(NoteBuffer buffer, int maxVoices = 4)
Parameters
bufferNoteBuffermaxVoicesint
Returns
Exceptions
- ArgumentNullException
bufferis null.
DetectImitation(IEnumerable<NoteEvent>, int)
Detect simple imitation (canon-like) between voices.
public static ImitationDetectionResult DetectImitation(IEnumerable<NoteEvent> notes, int maxVoices = 4)
Parameters
notesIEnumerable<NoteEvent>maxVoicesint
Returns
Exceptions
- ArgumentNullException
notesis null.