NAME
Peta::Vorbis::Encode::Psy - how coarsely each MDCT bin may be quantized
VERSION
version 0.2610180
SYNOPSIS
my $psy = Peta::Vorbis::Encode::Psy->new(48000, 1024, $quality, $full_scale_energy);
my $step = $psy->steps($coefficients);
DESCRIPTION
A simple psychoacoustic model on a block's own MDCT bins, made from the pieces in Peta::Hearing: the steps the quantization may take, bin by bin.
METHODS
new
new($rate, $bins, $quality, $full): the model for blocks of $bins bins at $rate, $full the energy of a full-scale sine in them.
steps
steps(\@bins): the step each bin may be quantized with.
AUTHOR
PetaMem s.r.o. <info@petamem.com>
COPYRIGHT
Copyright (c) 2026 PetaMem s.r.o.
LICENSE
This package is free software, dual-licensed under the Artistic License 2.0 and the BSD 2-Clause License. See the LICENSE file of the distribution.