comparison examples/sound/midi/plinky.scm @ 1:5df24c91468d

Oh my what a mess.
author samer
date Fri, 05 Apr 2019 16:26:00 +0100
parents bf79fb79ee13
children b67a33c44de7
comparison
equal deleted inserted replaced
0:bf79fb79ee13 1:5df24c91468d
1 (load "midi.scm") 1 (load "midi.scm")
2 (load "streams.scm")
2 (import "samer.maths.random.*") 3 (import "samer.maths.random.*")
3 4
4 (put "regulated" #t) 5 (put "regulated" #t)
5 (put "colormap" (redgreen)) 6 (put "colormap" (redgreen))
6 (put "symmetric" #t) 7 (put "symmetric" #t)
40 (set! m (if (< m (- M 1)) (+ m 1) 0)) 41 (set! m (if (< m (- M 1)) (+ m 1) 0))
41 ) 42 )
42 ) 43 )
43 44
44 (define (load-file fn) 45 (define (load-file fn)
45 (let ((f (istream fn))) 46 (let ((f (ifstream fn)))
46 (.load matrix f) 47 (.load matrix f)
47 (.close f))) 48 (.close f)))
48 49
49 (define (f1) (load-file "walking_zither2")) 50 (define (f1) (load-file "walking_zither2"))
50 (define (f2) (load-file "walking_zither3")) 51 (define (f2) (load-file "walking_zither3"))
51 (define (f3) (load-file "walking_zither4")) 52 (define (f3) (load-file "walking_zither4"))
52 53 (expose)
54 (expose synth)