aboutsummaryrefslogtreecommitdiff
path: root/examples/scale1.pl
blob: ee6606de62a2d768b970fa1d4e02d85248dfa1e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/local/bin/perl 

# -*-Perl-*-

$file = "m3M3.scale";

open(OUT, ">$file");

$base = 27.5;

@ints = (1.2, 1.25);
$phs = 0;

while( $base < 22050 ){
    printf OUT "%.4f\n", $base;
    $base *= $ints[$phs++];
    $phs %= 2;
}
close $file;
print "wrote to $file\n";