Class ChordDetectionSettings
Settings which define how chords should be detected and built. More info in the
Getting objects: GetChords: Settings article.
Inherited Members
Namespace: Melanchall.DryWetMidi.Interaction
Assembly: Melanchall.DryWetMidi.dll
Syntax
public sealed class ChordDetectionSettings
Properties
Constructor
Gets or sets custom construction method for Chord. If
null
,
default method will be used (via one of the Chord's constructors).Declaration
public Func<ChordData, Chord> Constructor { get; set; }
Property Value
Type | Description |
---|---|
Func<ChordData, Chord> |
NotesMinCount
Gets or sets a minimum count of notes a chord can contain. So if count of simultaneously sounding
notes is less than this value, they won't make up a chord. The default value is
1
. More info in the
Getting objects: GetChords: Settings: NotesMinCount
article.Declaration
public int NotesMinCount { get; set; }
Property Value
Type | Description |
---|---|
int |
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException | value is zero or negative. |
NotesTolerance
Gets or sets maximum distance of notes from the start of the first note of a chord.
Notes within this tolerance will be included in a chord. The default value is
0
. More info in the
Getting objects: GetChords: Settings: NotesTolerance
article.Declaration
public long NotesTolerance { get; set; }
Property Value
Type | Description |
---|---|
long |
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException | value is negative. |