Mac::CoreMIDI::Device - Encapsulates a CoreMIDI Device


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

Index


Code Index:

NAME

Top

Mac::CoreMIDI::Device - Encapsulates a CoreMIDI Device

METHODS

Top

my @ent = $self->GetEntities()

Returns a list of all entities for this device.

my $n = $self->GetNumberOfEntities()

Returns the number of entities.

my $dev = $self->GetEntity($i)

Returns the $i'th entity (starting from 0).

SEE ALSO

Top

Mac::CoreMIDI

AUTHOR

Top

Christian Renz, <crenz @ web42.com>

COPYRIGHT AND LICENSE

Top


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

package Mac::CoreMIDI::Device;

use 5.006;
use strict;
use warnings;

use base qw(Mac::CoreMIDI::Object);
our $VERSION = '0.03';

sub GetEntities {
    my ($self) = @_;

    my $numEntities = $self->GetNumberOfEntities();
    my @entities = map { $self->GetEntity($_) } 0..$numEntities-1;

    return @entities;
}

1;

__END__