(self, note_sequence)
return sequences_lib.augment_note_sequence(
        note_sequence,
        stretch_min,
        stretch_max,
        transpose_min,
        transpose_max,
        delete_out_of_range_notes=True)
Python implementation that augments the NoteSequence.

    Args:
      note_sequence: A NoteSequence proto to be augmented.

    Returns:
      The randomly augmented NoteSequence.
Python implementation that augments the NoteSequence.
Python implementation that augments the NoteSequence .
def augment(self, note_sequence):
    """Python implementation that augments the NoteSequence.

    Args:
      note_sequence: A NoteSequence proto to be augmented.

    Returns:
      The randomly augmented NoteSequence.
    """
    transpose_min, transpose_max = (
        self._transpose_range if self._transpose_range else (0, 0))
    stretch_min, stretch_max = (
        self._stretch_range if self._stretch_range else (1.0, 1.0))

    return sequences_lib.augment_note_sequence(
        note_sequence,
        stretch_min,
        stretch_max,
        transpose_min,
        transpose_max,
        delete_out_of_range_notes=True)
def augment ( self , note_sequence ) : transpose_min , transpose_max = ( self . _transpose_range if self . _transpose_range else ( 0 , 0 ) ) stretch_min , stretch_max = ( self . _stretch_range if self . _stretch_range else ( 1.0 , 1.0 ) ) return sequences_lib . augment_note_sequence ( note_sequence , stretch_min , stretch_max , transpose_min , transpose_max , delete_out_of_range_notes = True )