line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# $Id: Rest.pm,v 1.1.1.1 2004/11/22 17:52:11 root Exp $ |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package POE::Framework::MIDI::Rest; |
4
|
|
|
|
|
|
|
|
5
|
7
|
|
|
7
|
|
244616
|
use strict; |
|
7
|
|
|
|
|
14
|
|
|
7
|
|
|
|
|
398
|
|
6
|
7
|
|
|
7
|
|
37
|
use vars '$VERSION'; $VERSION = '0.02'; |
|
7
|
|
|
|
|
15
|
|
|
7
|
|
|
|
|
492
|
|
7
|
7
|
|
|
7
|
|
766
|
use POE::Framework::MIDI::Utility; |
|
7
|
|
|
|
|
13
|
|
|
7
|
|
|
|
|
2442
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub new { |
10
|
46
|
|
|
46
|
0
|
1242
|
my ($self, $class) = ({}, shift); |
11
|
46
|
|
|
|
|
102
|
bless $self, $class; |
12
|
46
|
|
|
|
|
100
|
my %params = @_; |
13
|
46
|
|
|
|
|
158
|
$self->{cfg} = \%params; |
14
|
46
|
|
|
|
|
105
|
return $self; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub duration { |
18
|
13
|
|
|
13
|
0
|
28
|
my ($self, $new_duration) = @_; |
19
|
13
|
50
|
|
|
|
72
|
$new_duration |
20
|
|
|
|
|
|
|
? $self->{cfg}->{duration} = $new_duration |
21
|
|
|
|
|
|
|
: return $self->{cfg}->{duration} |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub name { |
25
|
1
|
|
|
1
|
0
|
5
|
return 'rest'; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__ |