/** * @since 1.0 * @uses FileHeader::getData() * * @param FileHeader $fileHeader * @return string */ public function formatFileHeader(FileHeader $fileHeader) { list($format, $tracks, $timeDivision) = $fileHeader->getData(); $text = '<td><a name="file-header"></a>'; $text .= "MIDI file format: {$format}, # of tracks: {$tracks}, Time division: {$timeDivision}"; $text .= '</td>'; return $text; }
/** * @since 1.0 * @uses FileHeader::getData() * @uses formatText() * * @param FileHeader $fileHeader * @return string */ public function formatFileHeader(FileHeader $fileHeader) { list($format, $tracks, $timeDivision) = $fileHeader->getData(); $text = $this->formatText('format: ' . $format); $text .= $this->formatText('tracks: ' . $tracks); $text .= $this->formatText('time division: ' . $timeDivision); return $text; }