| 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.006'; | |||||||||||
| 12 | |||||||||||||
| 13 | |||||||||||||
| 14 | 13 | field $byte :reader; | |||||||||||
| 15 | 13 | field $high; | |||||||||||
| 16 | 13 | field $low; | |||||||||||
| 17 | |||||||||||||
| 18 | 0 | ▶ | method high { | ||||||||||
|
Subroutine
high: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||||
| 19 | 0 | ▶ | $high //= $byte & 0xf0 >> 5; | ||||||||||
|
Condition0%0/2
$high //= $byte & 7
MC/DC0%0/1
$high //= $byte & 7
$high
Truth table0%0/2
A
A= $high
| |||||||||||||
| 20 | } | ||||||||||||
| 21 | |||||||||||||
| 22 | 0 | ▶ | method low { | ||||||||||
|
Subroutine
low: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||||
| 23 | 0 | ▶ | $low //= $byte & 0x0f; | ||||||||||
|
Condition0%0/2
$low //= $byte & 15
MC/DC0%0/1
$low //= $byte & 15
$low
Truth table0%0/2
A
A= $low
| |||||||||||||
| 24 | } | ||||||||||||
| 25 | |||||||||||||
| 26 | 0 | ▶ | ADJUST { | ||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||
| 27 | 0 | $byte = $self->message->[ 1 ]; | |||||||||||
| 28 | } | ||||||||||||
| 29 | |||||||||||||
| 30 | 13 | 1; | |||||||||||
| 31 | |||||||||||||
| 32 | __END__ | ||||||||||||