Class Pattern
  Represents a musical pattern represented as a sequence of actions to create a musical composition.
  
  
  
  
  Assembly: Melanchall.DryWetMidi.dll
  Syntax
  
    public sealed class Pattern
   
  
  
  Methods
  
  Clone()
  Clones pattern by creating a copy of it.
  
  Declaration
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | Pattern | Copy of the pattern containing all actions from original one. | 
    
  
  
  ToFile(TempoMap)
  Exports the current 
Pattern to MIDI file using zero channel.
Declaration
  
    public MidiFile ToFile(TempoMap tempoMap)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | TempoMap | tempoMap | Tempo map to process pattern data according with. | 
    
  
  Returns
  
  Exceptions
  
  
  ToFile(TempoMap, FourBitNumber)
  Exports the current 
Pattern to MIDI file.
Declaration
  
    public MidiFile ToFile(TempoMap tempoMap, FourBitNumber channel)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | TempoMap | tempoMap | Tempo map to process pattern data according with. | 
      
        | FourBitNumber | channel | Channel of notes that will be generated by pattern. | 
    
  
  Returns
  
  Exceptions
  
  
  ToTrackChunk(TempoMap)
  Exports the current 
Pattern to track chunk using zero channel.
Declaration
  
    public TrackChunk ToTrackChunk(TempoMap tempoMap)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | TempoMap | tempoMap | Tempo map to process pattern data according with. | 
    
  
  Returns
  
  Exceptions
  
  
  ToTrackChunk(TempoMap, FourBitNumber)
  Exports the current 
Pattern to track chunk.
Declaration
  
    public TrackChunk ToTrackChunk(TempoMap tempoMap, FourBitNumber channel)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | TempoMap | tempoMap | Tempo map to process pattern data according with. | 
      
        | FourBitNumber | channel | Channel of notes that will be generated by pattern. | 
    
  
  Returns
  
  Exceptions
  
  Extension Methods