Advertisement
Guest User

piokos

a guest
Jan 25th, 2018
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;;;Piotr Kościuszko
  2. (define series '(40 45 47 49))
  3. (define scale (transpose '(40 42 44 45 47 49 51 52) 24))
  4. (define tremolo '(76 78 80 83))
  5. (mp:instruments 0 73 40)
  6.  
  7. (define (piano_part series)
  8.   (process repeat 1
  9.        do
  10.        (mp:midi :key (pick (shuffle series)) :dur 1.3 :amp .6)
  11.        ))
  12.  
  13.  
  14. (define (violin_part scale)
  15.   (process repeat (between 2 6)
  16.            do
  17.            (let ((t (pick 0.6 1.2 0.3 0.6)))
  18.            (mp:midi :key (pick scale) :chan 1 :amp 0.7  :dur t)
  19.            (wait t)
  20.            )))
  21.  
  22. (define (violin_tremolo tremolo)
  23.   (process repeat 2
  24.            do
  25.            (mp:midi :key (pick tremolo) :chan 2 :amp 0.4 :dur 0.17)
  26.            ))
  27.  
  28.  
  29. (define (play_tremolo tremolo)
  30.   (process repeat 1000
  31.            do
  32.            (sprout (violin_tremolo tremolo))
  33.            (wait 0.15)
  34.            ))
  35.  
  36.  
  37.  
  38.  
  39. (define (play_piano series)
  40.   (process repeat 100
  41.           do
  42.           (sprout (piano_part series))
  43.           (wait 1.2)
  44.           ))
  45.  
  46. (define (play_violin scale)
  47.   (process repeat 50
  48.            do
  49.            (sprout (violin_part scale))
  50.            (wait 2.4)))
  51.      
  52.  
  53.  
  54. (sprout (list (play_piano series) (play_violin scale) (play_tremolo tremolo) (play_violin scale)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement