Class RestDetectionSettings
Settings which define how rests should be detected and built. More info in the
Getting objects: Rests article.
Inherited Members
Namespace: Melanchall.DryWetMidi.Interaction
Assembly: Melanchall.DryWetMidi.dll
Syntax
public sealed class RestDetectionSettings
Fields
NoChords
Rests will be built only at spaces without chords at all.
Declaration
public static readonly RestDetectionSettings NoChords
Field Value
Type | Description |
---|---|
RestDetectionSettings |
NoChordsByChannel
Rests will be built between chords separately for each channel.
Declaration
public static readonly RestDetectionSettings NoChordsByChannel
Field Value
Type | Description |
---|---|
RestDetectionSettings |
NoNotes
Rests will be built only at spaces without notes at all.
Declaration
public static readonly RestDetectionSettings NoNotes
Field Value
Type | Description |
---|---|
RestDetectionSettings |
NoNotesByChannel
Rests will be built between notes separately for each channel.
Declaration
public static readonly RestDetectionSettings NoNotesByChannel
Field Value
Type | Description |
---|---|
RestDetectionSettings |
NoNotesByChannelAndNoteNumber
Rests will be built between notes separately for each channel and note number.
Declaration
public static readonly RestDetectionSettings NoNotesByChannelAndNoteNumber
Field Value
Type | Description |
---|---|
RestDetectionSettings |
NoNotesByNoteNumber
Rests will be built between notes separately for each note number.
Declaration
public static readonly RestDetectionSettings NoNotesByNoteNumber
Field Value
Type | Description |
---|---|
RestDetectionSettings |
Properties
KeySelector
Gets or sets a function that returns the key of an object. Please read
Getting objects: Rests article to
understand the key concept. The default key selector is
obj => obj is Note ? "Note" : null
which means rests will be built
between notes where there are no notes at all.Declaration
public Func<ITimedObject, object> KeySelector { get; set; }
Property Value
Type | Description |
---|---|
Func<ITimedObject, object> |