code: def get_midi_data(self):
          
          tracks = [t.get_midi_data() for t in self.tracks if t.track_data != '']
          return self.header() + ''.join(tracks)
docs: Collect and return the raw, binary MIDI data from the tracks.