File Coverage

blib/lib/MIDI/Stream/Event/PitchBend.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 15 15 100.0


line stmt bran cond sub pod time code
1 13     13   182 use v5.26;
  13         52  
2 13     13   71 use warnings;
  13         25  
  13         712  
3 13     13   89 use Feature::Compat::Class;
  13         26  
  13         91  
4              
5             # ABSTRACT: Pitch Bend event class
6              
7              
8             package MIDI::Stream::Event::PitchBend;
9             class MIDI::Stream::Event::PitchBend :isa( MIDI::Stream::Event::Channel );
10              
11             our $VERSION = '0.005';
12              
13 13     13   3183 use MIDI::Stream::Tables qw/ combine_bytes /;
  13         33  
  13         2679  
14              
15              
16             field $value :reader;
17              
18             ADJUST {
19             $value = combine_bytes( $self->message->@[ 1, 2 ] ) - 8192;
20             }
21              
22             1;
23              
24             __END__