Class NotesManagingUtilities
Extension methods for notes managing.
  
  
  Inherited Members
Namespace: Melanchall.DryWetMidi.Interaction
Assembly: Melanchall.DryWetMidi.dll
Syntax
public static class NotesManagingUtilitiesMethods
GetMusicTheoryNote(Note)
Declaration
public static Note GetMusicTheoryNote(this Note note)Parameters
| Type | Name | Description | 
|---|---|---|
| Note | note | Note to get music theory note from. | 
Returns
| Type | Description | 
|---|---|
| Note | Note corresponding to the note. | 
Exceptions
| Type | Condition | 
|---|---|
| ArgumentNullException | noteisnull. | 
GetNotes(EventsCollection, NoteDetectionSettings, TimedEventDetectionSettings)
Gets notes contained in the specified EventsCollection. More info in the
Getting objects: GetNotes article.
  
  Declaration
public static ICollection<Note> GetNotes(this EventsCollection eventsCollection, NoteDetectionSettings settings = null, TimedEventDetectionSettings timedEventDetectionSettings = null)Parameters
| Type | Name | Description | 
|---|---|---|
| EventsCollection | eventsCollection | EventsCollection to search for notes. | 
| NoteDetectionSettings | settings | Settings according to which notes should be detected and built. | 
| TimedEventDetectionSettings | timedEventDetectionSettings | Settings according to which timed events should be detected and built to construct notes. | 
Returns
| Type | Description | 
|---|---|
| ICollection<Note> | Collection of notes contained in eventsCollectionordered by time. | 
Exceptions
| Type | Condition | 
|---|---|
| ArgumentNullException | eventsCollectionisnull. | 
See Also
GetNotes(MidiFile, NoteDetectionSettings, TimedEventDetectionSettings)
Gets notes contained in the specified MidiFile. More info in the
Getting objects: GetNotes article.
  
  Declaration
public static ICollection<Note> GetNotes(this MidiFile file, NoteDetectionSettings settings = null, TimedEventDetectionSettings timedEventDetectionSettings = null)Parameters
| Type | Name | Description | 
|---|---|---|
| MidiFile | file | MidiFile to search for notes. | 
| NoteDetectionSettings | settings | Settings according to which notes should be detected and built. | 
| TimedEventDetectionSettings | timedEventDetectionSettings | Settings according to which timed events should be detected and built to construct notes. | 
Returns
| Type | Description | 
|---|---|
| ICollection<Note> | Collection of notes contained in fileordered by time. | 
Exceptions
| Type | Condition | 
|---|---|
| ArgumentNullException | fileisnull. | 
See Also
GetNotes(TrackChunk, NoteDetectionSettings, TimedEventDetectionSettings)
Gets notes contained in the specified TrackChunk. More info in the
Getting objects: GetNotes article.
  
  Declaration
public static ICollection<Note> GetNotes(this TrackChunk trackChunk, NoteDetectionSettings settings = null, TimedEventDetectionSettings timedEventDetectionSettings = null)Parameters
| Type | Name | Description | 
|---|---|---|
| TrackChunk | trackChunk | TrackChunk to search for notes. | 
| NoteDetectionSettings | settings | Settings according to which notes should be detected and built. | 
| TimedEventDetectionSettings | timedEventDetectionSettings | Settings according to which timed events should be detected and built to construct notes. | 
Returns
| Type | Description | 
|---|---|
| ICollection<Note> | Collection of notes contained in trackChunkordered by time. | 
Exceptions
| Type | Condition | 
|---|---|
| ArgumentNullException | trackChunkisnull. | 
See Also
GetNotes(IEnumerable<MidiEvent>, NoteDetectionSettings, TimedEventDetectionSettings)
Gets notes contained in the specified collection of MidiEvent. More info in the
Getting objects: GetNotes article.
  
  Declaration
public static ICollection<Note> GetNotes(this IEnumerable<MidiEvent> midiEvents, NoteDetectionSettings settings = null, TimedEventDetectionSettings timedEventDetectionSettings = null)Parameters
| Type | Name | Description | 
|---|---|---|
| IEnumerable<MidiEvent> | midiEvents | Collection of MidiEvent to search for notes. | 
| NoteDetectionSettings | settings | Settings according to which notes should be detected and built. | 
| TimedEventDetectionSettings | timedEventDetectionSettings | Settings according to which timed events should be detected and built to construct notes. | 
Returns
| Type | Description | 
|---|---|
| ICollection<Note> | Collection of notes contained in midiEventsordered by time. | 
Exceptions
| Type | Condition | 
|---|---|
| ArgumentNullException | midiEventsisnull. | 
See Also
GetNotes(IEnumerable<TrackChunk>, NoteDetectionSettings, TimedEventDetectionSettings)
Gets notes contained in the specified collection of TrackChunk. More info in the
Getting objects: GetNotes article.
  
  Declaration
public static ICollection<Note> GetNotes(this IEnumerable<TrackChunk> trackChunks, NoteDetectionSettings settings = null, TimedEventDetectionSettings timedEventDetectionSettings = null)Parameters
| Type | Name | Description | 
|---|---|---|
| IEnumerable<TrackChunk> | trackChunks | Track chunks to search for notes. | 
| NoteDetectionSettings | settings | Settings according to which notes should be detected and built. | 
| TimedEventDetectionSettings | timedEventDetectionSettings | Settings according to which timed events should be detected and built to construct notes. | 
Returns
| Type | Description | 
|---|---|
| ICollection<Note> | Collection of notes contained in trackChunksordered by time. | 
Exceptions
| Type | Condition | 
|---|---|
| ArgumentNullException | trackChunksisnull. | 
See Also
ManageNotes(EventsCollection, NoteDetectionSettings, TimedEventDetectionSettings, TimedObjectsComparer)
Creates an instance of the TimedObjectsManager<TObject> initializing it with the
specified events collection. More info in the Objects managers article.
  
  Declaration
public static TimedObjectsManager<Note> ManageNotes(this EventsCollection eventsCollection, NoteDetectionSettings settings = null, TimedEventDetectionSettings timedEventDetectionSettings = null, TimedObjectsComparer comparer = null)Parameters
| Type | Name | Description | 
|---|---|---|
| EventsCollection | eventsCollection | EventsCollection that holds notes to manage. | 
| NoteDetectionSettings | settings | Settings according to which notes should be detected and built. | 
| TimedEventDetectionSettings | timedEventDetectionSettings | Settings according to which timed events should be detected and built to construct notes. | 
| TimedObjectsComparer | comparer | Comparer that will be used to order objects on enumerating and saving objects
    back to the eventsCollectionvia SaveChanges()
    or Dispose(). | 
Returns
| Type | Description | 
|---|---|
| TimedObjectsManager<Note> | An instance of the TimedObjectsManager<TObject> that can be used to manage
    notes represented by the eventsCollection. | 
Exceptions
| Type | Condition | 
|---|---|
| ArgumentNullException | eventsCollectionisnull. | 
ManageNotes(TrackChunk, NoteDetectionSettings, TimedEventDetectionSettings, TimedObjectsComparer)
Creates an instance of the TimedObjectsManager<TObject> initializing it with the
events collection of the specified track chunk. More info in the
Objects managers article.
  
  Declaration
public static TimedObjectsManager<Note> ManageNotes(this TrackChunk trackChunk, NoteDetectionSettings settings = null, TimedEventDetectionSettings timedEventDetectionSettings = null, TimedObjectsComparer comparer = null)Parameters
| Type | Name | Description | 
|---|---|---|
| TrackChunk | trackChunk | TrackChunk that holds notes to manage. | 
| NoteDetectionSettings | settings | Settings according to which notes should be detected and built. | 
| TimedEventDetectionSettings | timedEventDetectionSettings | Settings according to which timed events should be detected and built to construct notes. | 
| TimedObjectsComparer | comparer | Comparer that will be used to order objects on enumerating and saving objects
    back to the trackChunkvia SaveChanges()
    or Dispose(). | 
Returns
| Type | Description | 
|---|---|
| TimedObjectsManager<Note> | An instance of the TimedObjectsManager<TObject> that can be used to manage
    notes represented by the trackChunk. | 
Exceptions
| Type | Condition | 
|---|---|
| ArgumentNullException | trackChunkisnull. | 
ProcessNotes(EventsCollection, Action<Note>, NoteDetectionSettings, TimedEventDetectionSettings, NoteProcessingHint)
Performs the specified action on each Note contained in the EventsCollection.
More info in the Processing objects: ProcessNotes article.
  
  Declaration
public static int ProcessNotes(this EventsCollection eventsCollection, Action<Note> action, NoteDetectionSettings settings = null, TimedEventDetectionSettings timedEventDetectionSettings = null, NoteProcessingHint hint = NoteProcessingHint.Default)Parameters
| Type | Name | Description | 
|---|---|---|
| EventsCollection | eventsCollection | EventsCollection to search for notes to process. | 
| Action<Note> | action | The action to perform on each Note contained in the eventsCollection. | 
| NoteDetectionSettings | settings | Settings according to which notes should be detected and built. | 
| TimedEventDetectionSettings | timedEventDetectionSettings | Settings according to which timed events should be detected and built to construct notes. | 
| NoteProcessingHint | hint | Hint which tells the processing algorithm how it can optimize its performance. The default value is Default. | 
Returns
| Type | Description | 
|---|---|
| int | Count of processed notes. | 
Remarks
Note that you can always use an object manager to
perform any manipulations with notes but dedicated methods of the NotesManagingUtilities will
always be faster and will consume less memory.
  Exceptions
| Type | Condition | 
|---|---|
| ArgumentNullException | One of the following errors occurred: 
 | 
See Also
ProcessNotes(EventsCollection, Action<Note>, Predicate<Note>, NoteDetectionSettings, TimedEventDetectionSettings, NoteProcessingHint)
Performs the specified action on each Note contained in the EventsCollection.
More info in the Processing objects: ProcessNotes article.
  
  Declaration
public static int ProcessNotes(this EventsCollection eventsCollection, Action<Note> action, Predicate<Note> match, NoteDetectionSettings settings = null, TimedEventDetectionSettings timedEventDetectionSettings = null, NoteProcessingHint hint = NoteProcessingHint.Default)Parameters
| Type | Name | Description | 
|---|---|---|
| EventsCollection | eventsCollection | EventsCollection to search for notes to process. | 
| Action<Note> | action | The action to perform on each Note contained in the eventsCollection. | 
| Predicate<Note> | match | The predicate that defines the conditions of the Note to process. | 
| NoteDetectionSettings | settings | Settings according to which notes should be detected and built. | 
| TimedEventDetectionSettings | timedEventDetectionSettings | Settings according to which timed events should be detected and built to construct notes. | 
| NoteProcessingHint | hint | Hint which tells the processing algorithm how it can optimize its performance. The default value is Default. | 
Returns
| Type | Description | 
|---|---|
| int | Count of processed notes. | 
Remarks
Note that you can always use an object manager to
perform any manipulations with notes but dedicated methods of the NotesManagingUtilities will
always be faster and will consume less memory.
  Exceptions
| Type | Condition | 
|---|---|
| ArgumentNullException | One of the following errors occurred: 
 | 
See Also
ProcessNotes(MidiFile, Action<Note>, NoteDetectionSettings, TimedEventDetectionSettings, NoteProcessingHint)
Performs the specified action on each Note contained in the MidiFile.
More info in the Processing objects: ProcessNotes article.
  
  Declaration
public static int ProcessNotes(this MidiFile file, Action<Note> action, NoteDetectionSettings settings = null, TimedEventDetectionSettings timedEventDetectionSettings = null, NoteProcessingHint hint = NoteProcessingHint.Default)Parameters
| Type | Name | Description | 
|---|---|---|
| MidiFile | file | MidiFile to search for notes to process. | 
| Action<Note> | action | The action to perform on each Note contained in the file. | 
| NoteDetectionSettings | settings | Settings according to which notes should be detected and built. | 
| TimedEventDetectionSettings | timedEventDetectionSettings | Settings according to which timed events should be detected and built to construct notes. | 
| NoteProcessingHint | hint | Hint which tells the processing algorithm how it can optimize its performance. The default value is Default. | 
Returns
| Type | Description | 
|---|---|
| int | Count of processed notes. | 
Remarks
Note that you can always use an object manager to
perform any manipulations with notes but dedicated methods of the NotesManagingUtilities will
always be faster and will consume less memory.
  Exceptions
| Type | Condition | 
|---|---|
| ArgumentNullException | One of the following errors occurred: 
 | 
See Also
ProcessNotes(MidiFile, Action<Note>, Predicate<Note>, NoteDetectionSettings, TimedEventDetectionSettings, NoteProcessingHint)
Performs the specified action on each Note contained in the MidiFile.
More info in the Processing objects: ProcessNotes article.
  
  Declaration
public static int ProcessNotes(this MidiFile file, Action<Note> action, Predicate<Note> match, NoteDetectionSettings settings = null, TimedEventDetectionSettings timedEventDetectionSettings = null, NoteProcessingHint hint = NoteProcessingHint.Default)Parameters
| Type | Name | Description | 
|---|---|---|
| MidiFile | file | MidiFile to search for notes to process. | 
| Action<Note> | action | The action to perform on each Note contained in the file. | 
| Predicate<Note> | match | The predicate that defines the conditions of the Note to process. | 
| NoteDetectionSettings | settings | Settings according to which notes should be detected and built. | 
| TimedEventDetectionSettings | timedEventDetectionSettings | Settings according to which timed events should be detected and built to construct notes. | 
| NoteProcessingHint | hint | Hint which tells the processing algorithm how it can optimize its performance. The default value is Default. | 
Returns
| Type | Description | 
|---|---|
| int | Count of processed notes. | 
Remarks
Note that you can always use an object manager to
perform any manipulations with notes but dedicated methods of the NotesManagingUtilities will
always be faster and will consume less memory.
  Exceptions
| Type | Condition | 
|---|---|
| ArgumentNullException | One of the following errors occurred: 
 | 
See Also
ProcessNotes(TrackChunk, Action<Note>, NoteDetectionSettings, TimedEventDetectionSettings, NoteProcessingHint)
Performs the specified action on each Note contained in the TrackChunk.
More info in the Processing objects: ProcessNotes article.
  
  Declaration
public static int ProcessNotes(this TrackChunk trackChunk, Action<Note> action, NoteDetectionSettings settings = null, TimedEventDetectionSettings timedEventDetectionSettings = null, NoteProcessingHint hint = NoteProcessingHint.Default)Parameters
| Type | Name | Description | 
|---|---|---|
| TrackChunk | trackChunk | TrackChunk to search for notes to process. | 
| Action<Note> | action | The action to perform on each Note contained in the trackChunk. | 
| NoteDetectionSettings | settings | Settings according to which notes should be detected and built. | 
| TimedEventDetectionSettings | timedEventDetectionSettings | Settings according to which timed events should be detected and built to construct notes. | 
| NoteProcessingHint | hint | Hint which tells the processing algorithm how it can optimize its performance. The default value is Default. | 
Returns
| Type | Description | 
|---|---|
| int | Count of processed notes. | 
Remarks
Note that you can always use an object manager to
perform any manipulations with notes but dedicated methods of the NotesManagingUtilities will
always be faster and will consume less memory.
  Exceptions
| Type | Condition | 
|---|---|
| ArgumentNullException | One of the following errors occurred: 
 | 
See Also
ProcessNotes(TrackChunk, Action<Note>, Predicate<Note>, NoteDetectionSettings, TimedEventDetectionSettings, NoteProcessingHint)
Performs the specified action on each Note contained in the TrackChunk.
More info in the Processing objects: ProcessNotes article.
  
  Declaration
public static int ProcessNotes(this TrackChunk trackChunk, Action<Note> action, Predicate<Note> match, NoteDetectionSettings settings = null, TimedEventDetectionSettings timedEventDetectionSettings = null, NoteProcessingHint hint = NoteProcessingHint.Default)Parameters
| Type | Name | Description | 
|---|---|---|
| TrackChunk | trackChunk | TrackChunk to search for notes to process. | 
| Action<Note> | action | The action to perform on each Note contained in the trackChunk. | 
| Predicate<Note> | match | The predicate that defines the conditions of the Note to process. | 
| NoteDetectionSettings | settings | Settings according to which notes should be detected and built. | 
| TimedEventDetectionSettings | timedEventDetectionSettings | Settings according to which timed events should be detected and built to construct notes. | 
| NoteProcessingHint | hint | Hint which tells the processing algorithm how it can optimize its performance. The default value is Default. | 
Returns
| Type | Description | 
|---|---|
| int | Count of processed notes. | 
Remarks
Note that you can always use an object manager to
perform any manipulations with notes but dedicated methods of the NotesManagingUtilities will
always be faster and will consume less memory.
  Exceptions
| Type | Condition | 
|---|---|
| ArgumentNullException | One of the following errors occurred: 
 | 
See Also
ProcessNotes(IEnumerable<TrackChunk>, Action<Note>, NoteDetectionSettings, TimedEventDetectionSettings, NoteProcessingHint)
Performs the specified action on each Note contained in the collection of
TrackChunk. More info in the
Processing objects: ProcessNotes article.
  
  Declaration
public static int ProcessNotes(this IEnumerable<TrackChunk> trackChunks, Action<Note> action, NoteDetectionSettings settings = null, TimedEventDetectionSettings timedEventDetectionSettings = null, NoteProcessingHint hint = NoteProcessingHint.Default)Parameters
| Type | Name | Description | 
|---|---|---|
| IEnumerable<TrackChunk> | trackChunks | Collection of TrackChunk to search for notes to process. | 
| Action<Note> | action | The action to perform on each Note contained in the trackChunks. | 
| NoteDetectionSettings | settings | Settings according to which notes should be detected and built. | 
| TimedEventDetectionSettings | timedEventDetectionSettings | Settings according to which timed events should be detected and built to construct notes. | 
| NoteProcessingHint | hint | Hint which tells the processing algorithm how it can optimize its performance. The default value is Default. | 
Returns
| Type | Description | 
|---|---|
| int | Count of processed notes. | 
Remarks
Note that you can always use an object manager to
perform any manipulations with notes but dedicated methods of the NotesManagingUtilities will
always be faster and will consume less memory.
  Exceptions
| Type | Condition | 
|---|---|
| ArgumentNullException | One of the following errors occurred: 
 | 
See Also
ProcessNotes(IEnumerable<TrackChunk>, Action<Note>, Predicate<Note>, NoteDetectionSettings, TimedEventDetectionSettings, NoteProcessingHint)
Performs the specified action on each Note contained in the collection of
TrackChunk. More info in the
Processing objects: ProcessNotes article.
  
  Declaration
public static int ProcessNotes(this IEnumerable<TrackChunk> trackChunks, Action<Note> action, Predicate<Note> match, NoteDetectionSettings settings = null, TimedEventDetectionSettings timedEventDetectionSettings = null, NoteProcessingHint hint = NoteProcessingHint.Default)Parameters
| Type | Name | Description | 
|---|---|---|
| IEnumerable<TrackChunk> | trackChunks | Collection of TrackChunk to search for notes to process. | 
| Action<Note> | action | The action to perform on each Note contained in the trackChunks. | 
| Predicate<Note> | match | The predicate that defines the conditions of the Note to process. | 
| NoteDetectionSettings | settings | Settings according to which notes should be detected and built. | 
| TimedEventDetectionSettings | timedEventDetectionSettings | Settings according to which timed events should be detected and built to construct notes. | 
| NoteProcessingHint | hint | Hint which tells the processing algorithm how it can optimize its performance. The default value is Default. | 
Returns
| Type | Description | 
|---|---|
| int | Count of processed notes. | 
Remarks
Note that you can always use an object manager to
perform any manipulations with notes but dedicated methods of the NotesManagingUtilities will
always be faster and will consume less memory.
  Exceptions
| Type | Condition | 
|---|---|
| ArgumentNullException | One of the following errors occurred: 
 | 
See Also
RemoveNotes(EventsCollection, NoteDetectionSettings, TimedEventDetectionSettings)
Removes all notes from the EventsCollection.
More info in the Removing objects: RemoveNotes article.
  
  Declaration
public static int RemoveNotes(this EventsCollection eventsCollection, NoteDetectionSettings settings = null, TimedEventDetectionSettings timedEventDetectionSettings = null)Parameters
| Type | Name | Description | 
|---|---|---|
| EventsCollection | eventsCollection | EventsCollection to search for notes to remove. | 
| NoteDetectionSettings | settings | Settings according to which notes should be detected and built. | 
| TimedEventDetectionSettings | timedEventDetectionSettings | Settings according to which timed events should be detected and built to construct notes. | 
Returns
| Type | Description | 
|---|---|
| int | Count of removed notes. | 
Exceptions
| Type | Condition | 
|---|---|
| ArgumentNullException | eventsCollectionisnull. | 
See Also
RemoveNotes(EventsCollection, Predicate<Note>, NoteDetectionSettings, TimedEventDetectionSettings)
Removes notes that match the specified conditions from the EventsCollection.
More info in the Removing objects: RemoveNotes article.
  
  Declaration
public static int RemoveNotes(this EventsCollection eventsCollection, Predicate<Note> match, NoteDetectionSettings settings = null, TimedEventDetectionSettings timedEventDetectionSettings = null)Parameters
| Type | Name | Description | 
|---|---|---|
| EventsCollection | eventsCollection | EventsCollection to search for notes to remove. | 
| Predicate<Note> | match | The predicate that defines the conditions of the Note to remove. | 
| NoteDetectionSettings | settings | Settings according to which notes should be detected and built. | 
| TimedEventDetectionSettings | timedEventDetectionSettings | Settings according to which timed events should be detected and built to construct notes. | 
Returns
| Type | Description | 
|---|---|
| int | Count of removed notes. | 
Exceptions
| Type | Condition | 
|---|---|
| ArgumentNullException | One of the following errors occurred: 
 | 
See Also
RemoveNotes(MidiFile, NoteDetectionSettings, TimedEventDetectionSettings)
Removes all notes from the MidiFile.
More info in the Removing objects: RemoveNotes article.
  
  Declaration
public static int RemoveNotes(this MidiFile file, NoteDetectionSettings settings = null, TimedEventDetectionSettings timedEventDetectionSettings = null)Parameters
| Type | Name | Description | 
|---|---|---|
| MidiFile | file | MidiFile to search for notes to remove. | 
| NoteDetectionSettings | settings | Settings according to which notes should be detected and built. | 
| TimedEventDetectionSettings | timedEventDetectionSettings | Settings according to which timed events should be detected and built to construct notes. | 
Returns
| Type | Description | 
|---|---|
| int | Count of removed notes. | 
Exceptions
| Type | Condition | 
|---|---|
| ArgumentNullException | fileisnull. | 
See Also
RemoveNotes(MidiFile, Predicate<Note>, NoteDetectionSettings, TimedEventDetectionSettings)
Removes notes that match the specified conditions from the MidiFile.
More info in the Removing objects: RemoveNotes article.
  
  Declaration
public static int RemoveNotes(this MidiFile file, Predicate<Note> match, NoteDetectionSettings settings = null, TimedEventDetectionSettings timedEventDetectionSettings = null)Parameters
| Type | Name | Description | 
|---|---|---|
| MidiFile | file | MidiFile to search for notes to remove. | 
| Predicate<Note> | match | The predicate that defines the conditions of the Note to remove. | 
| NoteDetectionSettings | settings | Settings according to which notes should be detected and built. | 
| TimedEventDetectionSettings | timedEventDetectionSettings | Settings according to which timed events should be detected and built to construct notes. | 
Returns
| Type | Description | 
|---|---|
| int | Count of removed notes. | 
Exceptions
| Type | Condition | 
|---|---|
| ArgumentNullException | One of the following errors occurred: 
 | 
See Also
RemoveNotes(TrackChunk, NoteDetectionSettings, TimedEventDetectionSettings)
Removes all notes from the TrackChunk.
More info in the Removing objects: RemoveNotes article.
  
  Declaration
public static int RemoveNotes(this TrackChunk trackChunk, NoteDetectionSettings settings = null, TimedEventDetectionSettings timedEventDetectionSettings = null)Parameters
| Type | Name | Description | 
|---|---|---|
| TrackChunk | trackChunk | TrackChunk to search for notes to remove. | 
| NoteDetectionSettings | settings | Settings according to which notes should be detected and built. | 
| TimedEventDetectionSettings | timedEventDetectionSettings | Settings according to which timed events should be detected and built to construct notes. | 
Returns
| Type | Description | 
|---|---|
| int | Count of removed notes. | 
Exceptions
| Type | Condition | 
|---|---|
| ArgumentNullException | trackChunkisnull. | 
See Also
RemoveNotes(TrackChunk, Predicate<Note>, NoteDetectionSettings, TimedEventDetectionSettings)
Removes notes that match the specified conditions from the TrackChunk.
More info in the Removing objects: RemoveNotes article.
  
  Declaration
public static int RemoveNotes(this TrackChunk trackChunk, Predicate<Note> match, NoteDetectionSettings settings = null, TimedEventDetectionSettings timedEventDetectionSettings = null)Parameters
| Type | Name | Description | 
|---|---|---|
| TrackChunk | trackChunk | TrackChunk to search for notes to remove. | 
| Predicate<Note> | match | The predicate that defines the conditions of the Note to remove. | 
| NoteDetectionSettings | settings | Settings according to which notes should be detected and built. | 
| TimedEventDetectionSettings | timedEventDetectionSettings | Settings according to which timed events should be detected and built to construct notes. | 
Returns
| Type | Description | 
|---|---|
| int | Count of removed notes. | 
Exceptions
| Type | Condition | 
|---|---|
| ArgumentNullException | One of the following errors occurred: 
 | 
See Also
RemoveNotes(IEnumerable<TrackChunk>, NoteDetectionSettings, TimedEventDetectionSettings)
Removes all notes from the collection of EventsCollection.
More info in the Removing objects: RemoveNotes article.
  
  Declaration
public static int RemoveNotes(this IEnumerable<TrackChunk> trackChunks, NoteDetectionSettings settings = null, TimedEventDetectionSettings timedEventDetectionSettings = null)Parameters
| Type | Name | Description | 
|---|---|---|
| IEnumerable<TrackChunk> | trackChunks | Collection of TrackChunk to search for notes to remove. | 
| NoteDetectionSettings | settings | Settings according to which notes should be detected and built. | 
| TimedEventDetectionSettings | timedEventDetectionSettings | Settings according to which timed events should be detected and built to construct notes. | 
Returns
| Type | Description | 
|---|---|
| int | Count of removed notes. | 
Exceptions
| Type | Condition | 
|---|---|
| ArgumentNullException | trackChunksisnull. | 
See Also
RemoveNotes(IEnumerable<TrackChunk>, Predicate<Note>, NoteDetectionSettings, TimedEventDetectionSettings)
Removes notes that match the specified conditions from the collection of TrackChunk.
More info in the Removing objects: RemoveNotes article.
  
  Declaration
public static int RemoveNotes(this IEnumerable<TrackChunk> trackChunks, Predicate<Note> match, NoteDetectionSettings settings = null, TimedEventDetectionSettings timedEventDetectionSettings = null)Parameters
| Type | Name | Description | 
|---|---|---|
| IEnumerable<TrackChunk> | trackChunks | Collection of TrackChunk to search for notes to remove. | 
| Predicate<Note> | match | The predicate that defines the conditions of the Note to remove. | 
| NoteDetectionSettings | settings | Settings according to which notes should be detected and built. | 
| TimedEventDetectionSettings | timedEventDetectionSettings | Settings according to which timed events should be detected and built to construct notes. | 
Returns
| Type | Description | 
|---|---|
| int | Count of removed notes. | 
Exceptions
| Type | Condition | 
|---|---|
| ArgumentNullException | One of the following errors occurred: 
 |