aboutsummaryrefslogtreecommitdiff
path: root/examples/scale5.pl
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2012-10-05 16:23:49 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2012-10-05 16:23:49 +0000
commitb5954f69f4cd821016e3693aa8e301e30113491a (patch)
treef48767c60ce96cee8c7e70172ebc7f864acbc10b /examples/scale5.pl
parent0477d32b345e971a3b7072583e51370f874f38c8 (diff)
include pvtuner~'s scale files and scripts as examples
svn path=/trunk/externals/fftease/; revision=16336
Diffstat (limited to 'examples/scale5.pl')
-rw-r--r--examples/scale5.pl16
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/scale5.pl b/examples/scale5.pl
new file mode 100644
index 0000000..6a3f32c
--- /dev/null
+++ b/examples/scale5.pl
@@ -0,0 +1,16 @@
+#!/usr/local/bin/perl
+
+# -*-Perl-*-
+
+$file = "24et.scale";
+
+open(OUT, ">$file");
+
+$base = 27.5;
+$mult = 2 ** (1/24);
+while( $base < 22050 ){
+ printf OUT "%.4f\n", $base;
+ $base *= $mult;
+}
+close $file;
+print "wrote to $file\n";