NAME
MIDI::RtController::Filter::Math - Math based RtController filters
VERSION
version 0.0403
SYNOPSIS
use curry;
use MIDI::RtController ();
use MIDI::RtController::Filter::Math ();
my $controller = MIDI::RtController->new(
input => 'keyboard',
output => 'usb',
);
my $filter = MIDI::RtController::Filter::Math->new(rtc => $controller);
$filter->control(1); # CC#01 = mod-wheel
$filter->channel(0);
$controller->add_filter('stair_step', note_on => $filter->curry::stair_step);
$controller->run;
DESCRIPTION
MIDI::RtController::Filter::Math
is the collection of Math based MIDI::RtController filters.
ATTRIBUTES
delay
$delay = $filter->delay;
$filter->delay($number);
The current delay time.
Default: 0.1
seconds
feedback
$feedback = $filter->feedback;
$filter->feedback($number);
The amount of feedback.
Default: 3
up
$up = $filter->up;
$filter->up($number);
The upward movement steps.
Default: 2
down
$down = $filter->down;
$filter->down($number);
The downward movement steps.
Default: -1
METHODS
To make and use filters, please see the documentation in MIDI::RtController::Filter.
stair_step
Notes are played from the event note, in up-down, stair-step fashion.
If trigger or value is set, the filter checks those against the MIDI event note
or value
, respectively, to see if the filter should be applied.
SEE ALSO
The eg/*.pl program(s) in this distribution
AUTHOR
Gene Boggs <[email protected]>
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.