| 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: Time Code Qtr. Frame event class | ||||||||||||||||||||
| 6 | |||||||||||||||||||||
| 7 | |||||||||||||||||||||
| 8 | package MIDI::Stream::Event::TimeCode; | ||||||||||||||||||||
| 9 | class MIDI::Stream::Event::TimeCode :isa( MIDI::Stream::Event ); | ||||||||||||||||||||
| 10 | |||||||||||||||||||||
| 11 | 13 | our $VERSION = '0.005'; | |||||||||||||||||||
| 12 | |||||||||||||||||||||
| 13 | |||||||||||||||||||||
| 14 | 13 | field $byte :reader; | |||||||||||||||||||
| 15 | 13 | field $high; | |||||||||||||||||||
| 16 | 13 | field $low; | |||||||||||||||||||
| 17 | |||||||||||||||||||||
| 18 | method high { | ||||||||||||||||||||
| 19 | 0 | ▶ | $high //= $byte & 0xf0 >> 5; | ||||||||||||||||||
|
Subroutine
high: not called CC=2 SCAR=17.9
Pod
documented
Condition0%0/3
$high //= $byte & 7
MC/DC0%0/2
$high //= $byte & 7
$high
$byte & 7
Truth table0%0/3
A //= B
A= $highB= $byte & 7
| |||||||||||||||||||||
| 20 | } | ||||||||||||||||||||
| 21 | |||||||||||||||||||||
| 22 | method low { | ||||||||||||||||||||
| 23 | 0 | ▶ | $low //= $byte & 0x0f; | ||||||||||||||||||
|
Subroutine
low: not called CC=2 SCAR=17.9
Pod
documented
Condition0%0/3
$low //= $byte & 15
MC/DC0%0/2
$low //= $byte & 15
$low
$byte & 15
Truth table0%0/3
A //= B
A= $lowB= $byte & 15
| |||||||||||||||||||||
| 24 | } | ||||||||||||||||||||
| 25 | |||||||||||||||||||||
| 26 | ADJUST { | ||||||||||||||||||||
| 27 | 0 | ▶ | $byte = $self->message->[ 1 ]; | ||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||
| 28 | } | ||||||||||||||||||||
| 29 | |||||||||||||||||||||
| 30 | 13 | 1; | |||||||||||||||||||
| 31 | |||||||||||||||||||||
| 32 | __END__ | ||||||||||||||||||||