synth: fix code that depended on iterable numbers.

db4
John Benediktsson 2011-10-26 15:14:39 -07:00
parent 7b6f27eda6
commit a789712f48
1 changed files with 1 additions and 1 deletions

View File

@ -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> ;