| 1 | 13 | ▶ | use v5.26; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 2 | 13 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 3 | 13 | ▶ | use Feature::Compat::Class; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | |||||||||||||||||||||
| 5 | # ABSTRACT: SysEx event class | ||||||||||||||||||||
| 6 | |||||||||||||||||||||
| 7 | package MIDI::Stream::Event::SysEx; | ||||||||||||||||||||
| 8 | class MIDI::Stream::Event::SysEx :isa( MIDI::Stream::Event ); | ||||||||||||||||||||
| 9 | |||||||||||||||||||||
| 10 | |||||||||||||||||||||
| 11 | 13 | our $VERSION = '0.005'; | |||||||||||||||||||
| 12 | |||||||||||||||||||||
| 13 | |||||||||||||||||||||
| 14 | 13 | field $msg_str; | |||||||||||||||||||
| 15 | 13 | field $msg :reader = []; | |||||||||||||||||||
| 16 | |||||||||||||||||||||
| 17 | method msg_str { | ||||||||||||||||||||
| 18 | 0 | ▶ | $msg_str //= join '', map { chr } $msg->@*; | ||||||||||||||||||
|
Subroutine
msg_str: not called CC=2 SCAR=17.9
Pod
documented
Condition0%0/3
$msg_str //= join("", map({chr $_;} @$msg))
MC/DC0%0/2
$msg_str //= join("", map({chr $_;} @$msg))
$msg_str
join("", map({chr $_;} @$msg))
Truth table0%0/3
A //= B
A= $msg_strB= join("", map({chr $_;} @$msg))
| |||||||||||||||||||||
| 19 | } | ||||||||||||||||||||
| 20 | |||||||||||||||||||||
| 21 | ADJUST { | ||||||||||||||||||||
| 22 | 4 | ▶ | ( undef, $msg->@* ) = $self->message->@*; | ||||||||||||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.2
| |||||||||||||||||||||
| 23 | 4 | ▶ | delete $msg->[ -1 ] if $msg->[ -1 ] == 0xf7; | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 24 | } | ||||||||||||||||||||
| 25 | |||||||||||||||||||||
| 26 | 13 | 1; | |||||||||||||||||||
| 27 | |||||||||||||||||||||
| 28 | __END__ | ||||||||||||||||||||