]> gitweb.factorcode.org Git - factor.git/commitdiff
synth: fix code that depended on iterable numbers.
authorJohn Benediktsson <mrjbq7@gmail.com>
Wed, 26 Oct 2011 22:14:39 +0000 (15:14 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Wed, 26 Oct 2011 22:14:39 +0000 (15:14 -0700)
extra/synth/synth.factor

index 2b9fd8da0b8b0eb5833d1bfe4fa4fd08258582e9..c2b80686f07590819799fce160f6ea63feb27c2f 100755 (executable)
@@ -4,7 +4,7 @@ USING: accessors kernel locals math math.constants math.functions memoize openal
 IN: synth
 
 MEMO: single-sine-wave ( samples/wave -- seq )
-    pi 2 * over / [ * sin ] curry map ;
+    [ iota ] [ pi 2 * swap / [ * sin ] curry ] bi map ;
 
 : (sine-wave) ( samples/wave n-samples -- seq )
     [ single-sine-wave ] dip <repeating> ;