Beispiel #1
0
 public function testGetData()
 {
     $this->assertEquals(array(1, 12, 0x2460), $this->obj->getData());
 }
Beispiel #2
0
 /**
  * @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;
 }
Beispiel #3
0
 /**
  * @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;
 }