Class NoteDetectionSettings
Settings which define how notes should be detected and built. More info in the
Getting objects: GetNotes: Settings article.
Inherited Members
Namespace: Melanchall.DryWetMidi.Interaction
Assembly: Melanchall.DryWetMidi.dll
Syntax
public sealed class NoteDetectionSettings
Properties
Constructor
Gets or sets custom construction method for Note. If
null
,
default method will be used (via one of the Note's constructors).Declaration
public Func<NoteData, Note> Constructor { get; set; }
Property Value
Type | Description |
---|---|
Func<NoteData, Note> |
NoteStartDetectionPolicy
Gets or sets how start event of a note should be found in case of overlapping notes with
the same note number and channel. The default value is FirstNoteOn.
More info in the
Getting objects: GetNotes: Settings: NoteStartDetectionPolicy
article.
Declaration
public NoteStartDetectionPolicy NoteStartDetectionPolicy { get; set; }
Property Value
Type | Description |
---|---|
NoteStartDetectionPolicy |
Exceptions
Type | Condition |
---|---|
InvalidEnumArgumentException | value specified an invalid value. |