class_docstr: Encodes a melody that is flattened into only rhythm (with velocity).
  
  TextMelodyEncoderAbsolute encodes the melody as a sequence of MELODY_NO_EVENT,
  MELODY_NOTE_OFF, and pitch ids. This representation contains no
  MELODY_NOTE_OFF events, and instead of pitch ids, uses velocity-bin ids. To
  take advantage of the MelodyOneHotEncoding, this class passes the velocity bin
  range to the parent __init__ in lieu of min_pitch and max_pitch.
class_docstr_tok: ["Encodes","a","melody","that","is","flattened","into","only","rhythm","(","with","velocity",")",".","TextMelodyEncoderAbsolute","encodes","the","melody","as","a","sequence","of","MELODY_NO_EVENT",",","MELODY_NOTE_OFF",",","and","pitch","ids",".","This","representation","contains","no","MELODY_NOTE_OFF","events",",","and","instead","of","pitch","ids",",","uses","velocity-bin","ids",".","To","take","advantage","of","the","MelodyOneHotEncoding",",","this","class","passes","the","velocity","bin","range","to","the","parent","__init__","in","lieu","of","min_pitch","and","max_pitch","."]
code: def __init__(self, steps_per_second, num_velocity_bins):
      self._num_velocity_bins = num_velocity_bins
  
      super(FlattenedTextMelodyEncoderAbsolute, self).__init__(
          steps_per_second, min_pitch=1, max_pitch=num_velocity_bins
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import tempfile
  import note_seq
  from note_seq import performance_lib
  import pygtrie
  from tensor2tensor.data_generators import text_encoder
label_desc: Use image node_id 1 to create a new FlattenedTextMelodyEncoderAbsolute object from inherited base classes: TextMelodyEncoderAbsolute with example: obj = FlattenedTextMelodyEncoderAbsolute(steps_per_second, num_velocity_bins)