NAME

MIDI::RtController - Control your MIDI controller

VERSION

version 0.0100

SYNOPSIS

use MIDI::RtController ();

my $rtc = MIDI::RtController->new(verbose => 1);

DESCRIPTION

MIDI::RtController allows you to control your MIDI controller using plug-in filters.

ATTRIBUTES

verbose

$verbose = $rtc->verbose;

Show progress.

input

$input = $rtc->input;

Return the MIDI input port.

output

$output = $rtc->output;

Return the MIDI output port.

loop

$loop = $rtc->loop;

Return the IO::Async::Loop..

has loop => ( is => 'ro', default => sub { IO::Async::Loop->new }, );

# Private attributes

has _msg_channel => ( is => 'ro', default => sub { IO::Async::Channel->new }, );

has _midi_channel => ( is => 'ro', default => sub { IO::Async::Channel->new }, );

has _midi_out => ( is => 'ro', default => sub { RtMidiOut->new }, );

has _filters => ( is => 'rw', default => sub { {} }, );

METHODS

new

$rtc = MIDI::RtController->new(verbose => 1);

Create a new MIDI::RtController object.

send_it

$rtc->send_it($event);

Send a MIDI event to the output port.

delay_send

$rtc->delay_send($delay_time, $event);

Send a MIDI event to the output port when the delay_time expires.

run

$rtc->run;

Run the loop!

SEE ALSO

Moo

http://somewhere.el.se

AUTHOR

Gene Boggs <gene.boggs@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2025 by Gene Boggs.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.