NAME
Music::AirGuitar::Performance - Interface for air guitars performances
VERSION
version v0.02
SYNOPSIS
use Music::AirGuitar;
my Music::AirGuitar $guitar = Music::AirGuitar->new(...);
my Music::AirGuitar::Performance $performance = $guitar->perform(%opts);
METHODS
record
$performance->record($filename_or_handle);
Records the performance as a RIFF/WAVE file.
Note: If a handle is passed, it needs to support "seek" in perlfunc and "truncate" in perlfunc.
GETTERS
All getters return the value as given to the constructor (unless otherwise given). If no value is available they die
.
All getters support setting the option default
to a default value that is used if non is available. This can be set to undef
to switch the getter from die
ing to returning undef
.
guitar
my Music::AirGuitar $guitar = $performance->guitar;
The Music::AirGuitar that was used in this performance.
duration
my $duration = $performance->duration;
The duration of the performance (in seconds).
player
my $player = $performance->player;
This is a proxy for "player" in Music::AirGuitar.
rating
my $rating = $performance->rating(%opts);
Returns the rating for the performance by the jury. It is not clear how the jury makes their opinion. But it seems there is an element of random involved.
The following options are supported:
default
-
This option is ignored.
scale
-
The scale to use. Currently only the value
of10
is supported, witch will return a value in the range 0.0 .. 10.0 (inclusive).
AUTHOR
Löwenfelsen UG (haftungsbeschränkt) <support@loewenfelsen.net>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2025 by Löwenfelsen UG (haftungsbeschränkt) <support@loewenfelsen.net>.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)