This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package dumpvar; | |
=encoding utf8 | |
=head1 NAME | |
Devel::opaddb.pm - Display Object::Pad objects in Perl's debugger | |
=head1 SYNOPSIS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use PDL; | |
my $freq = 440; | |
my $rate = 8000; # default for aplay | |
my $samples = pdl[0..$rate-1]; | |
open (my $aplay,'|-','aplay'); | |
my $raw_sound = byte(zeroes($rate)); | |
my $amplitude = 64; |