1 : <?php
2 :
3 : /**
4 : * \Midi\Event\NoteAfterTouchEvent
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 the note aftertouch channel event
16 : *
17 : * @package Midi
18 : * @subpackage Event
19 : * @since 1.0
20 : * @todo Describe what this event actually does
21 : */
22 1 : class NoteAftertouchEvent extends ChannelEvent {
23 :
24 : /**
25 : * @since 1.0
26 : * @uses Note::getNoteName()
27 : *
28 : * @return string
29 : */
30 : public function getParamDescription() {
31 1 : return \Midi\Util\Note::getNoteName($this->param1) . ' with amount ' . $this->param2;
32 : }
33 :
34 : /**
35 : * @since 1.0
36 : * @uses EventType::NOTE_AFTERTOUCH
37 : *
38 : * @return int
39 : */
40 : public function getType() {
41 1 : return EventType::NOTE_AFTERTOUCH;
42 : }
43 :
44 : }
45 :
|