Mac::CoreMIDI::Object - Encapsulates a CoreMIDI Object


Mac-CoreMIDI documentation Contained in the Mac-CoreMIDI distribution.

Index


Code Index:

NAME

Top

Mac::CoreMIDI::Object - Encapsulates a CoreMIDI Object

DESCRIPTION

Top

Mac::CoreMIDI::Object is the base class for most other CoreMIDI objects.

METHODS

Top

$self->Dump()

Prints a lot of information about the object to STDOUT.

READ-ONLY PROPERTIES

Top

GetAdvanceScheduleTimeMuSec
GetDeviceID
GetDriverOwner
GetDriverVersion
GetManufacturer
GetMaxSysExSpeed
GetModel
GetName
GetReceiveChannels
GetTransmitChannels
GetUniqueID
IsBroadcast
IsEmbeddedEntity
IsOffline
IsPrivate
IsSingleRealtimeEntity

SEE ALSO

Top

CoreMIDI

AUTHOR

Top

Christian Renz, <crenz @ web42.com>

COPYRIGHT AND LICENSE

Top


Mac-CoreMIDI documentation Contained in the Mac-CoreMIDI distribution.

package Mac::CoreMIDI::Object;

use 5.006;
use strict;
use warnings;

our $VERSION = '0.03';

sub Dump {
    my ($self) = @_;
    (my $type = ref $self) =~ s/^Mac::CoreMIDI:://;
    my ($name, $manufacturer, $model, $uniqueID, $deviceID,
        $receiveCh, $transmitCh, $sysexspd, $schedule,
        $isembedded, $isbroadcast, $isrtent, $isoffline,
        $isprivate, $driverowner, $driverversion) = (
        $self->GetName() || '',
        $self->GetManufacturer() || '',
        $self->GetModel() || '',
        $self->GetUniqueID(),
        $self->GetDeviceID(),
        $self->GetReceiveChannels(),
        $self->GetTransmitChannels(),
        $self->GetMaxSysExSpeed(),
        $self->GetAdvanceScheduleTimeMuSec(),
        $self->IsEmbeddedEntity(),
        $self->IsBroadcast(),
        $self->IsSingleRealtimeEntity(),
        $self->IsOffline(),
        $self->IsPrivate(),
        $self->GetDriverOwner() || '',
        $self->GetDriverVersion(),
    );

    print <<EOT;
$type
    Name:                        $name
    Manufacturer:                $manufacturer
    Model:                       $model
    Unique ID:                   $uniqueID
    Device ID:                   $deviceID
    Receive channels:            $receiveCh
    Transmit channels:           $transmitCh
    Max. Sysex speed:            $sysexspd
    Schedule time:               $schedule
    Is embedded entity:          $isembedded
    Is broadcast:                $isbroadcast
    Is single real-time entity:  $isrtent
    Is offline:                  $isoffline
    Is private:                  $isprivate
    Driver owner:                $driverowner
    Driver version:              $driverversion

EOT
}

1;

__END__