synth: fix code that depended on iterable numbers.
parent
7b6f27eda6
commit
a789712f48
|
@ -4,7 +4,7 @@ USING: accessors kernel locals math math.constants math.functions memoize openal
|
||||||
IN: synth
|
IN: synth
|
||||||
|
|
||||||
MEMO: single-sine-wave ( samples/wave -- seq )
|
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 )
|
: (sine-wave) ( samples/wave n-samples -- seq )
|
||||||
[ single-sine-wave ] dip <repeating> ;
|
[ single-sine-wave ] dip <repeating> ;
|
||||||
|
|
Loading…
Reference in New Issue