1 : <?php
2 :
3 : /**
4 : * \Midi\Event\TextEvent
5 : *
6 : * @package Midi
7 : * @subpackage Event
8 : * @copyright � 2009 Tommy Montgomery <http://phpmidiparser.com/>
9 : * @since 1.0
10 : */
11 :
12 : namespace Midi\Event;
13 :
14 : /**
15 : * Represents a text meta event
16 : *
17 : * This event just provides a means of inserting whatever text
18 : * one wants into a track.
19 : *
20 : * @package Midi
21 : * @subpackage Event
22 : * @since 1.0
23 : */
24 1 : class TextEvent extends MetaEvent {
25 :
26 : /**
27 : * @since 1.0
28 : *
29 : * @return string
30 : */
31 : public function getParamDescription() {
32 1 : return $this->data;
33 : }
34 :
35 : /**
36 : * @since 1.0
37 : * @uses MetaEventType::TEXT_EVENT
38 : *
39 : * @return int
40 : */
41 : public function getSubtype() {
42 1 : return MetaEventType::TEXT_EVENT;
43 : }
44 :
45 : }
46 :
|