Jump to content

opmo

Administrators
  • Posts

    2,903
  • Joined

  • Last visited

Posts posted by opmo

  1. More functionality in MICROPOLYPHONE to control the complexity:

     

    (progn
      (setf interval-series '((0) (1 -1 2 -2) (6 -6 11 -11) (13 -13)))
      
      (micropolyphony
       4
       40
       1/16 1/4
       :intervals interval-series
       :interval-prob '(.2 .2 .3 .3)
       :length-prob '(.1 .9 .5 .9)
       :proportional t
       :index 'a
       :seed 830134
       :span 7
       )
      
      (micropolyphony
       4
       40
       1/16 1/2
       :intervals interval-series
       :interval-prob '(.2 .2 .3 .9)
       :length-prob '(.2 .9 .4 .9)
       :proportional t
       :index 'b
       :seed 855650
       :span 13
       )
      
      (setf
       rh-a (quantize (ambitus-chord 13 (dissolve-voices (merge-voices a1 a2))) '(1 2 4))
       lh-a (quantize (ambitus-chord 13 (dissolve-voices (merge-voices a3 a4))) '(1 2 4))
       rh-b (quantize (ambitus-chord 13 (dissolve-voices (merge-voices b1 b2))) '(1 2 4))
       lh-b (quantize (ambitus-chord 13 (dissolve-voices (merge-voices b3 b4))) '(1 2 4))
       )
      
      (setf
       rh-1 (omn-to-time-signature (assemble-seq rh-a rh-b) '(4 4))
       lh-1 (omn-to-time-signature (assemble-seq lh-a lh-b) '(4 4))
       )
      
      (setf
       rh (dictum '((:do p)
                    (:do mf :bar (1..5))
                    (:do > :bar (5..7 16..20))
                    (:last pp :bar 20)
                    (:last fermata :bar 20))
                  rh-1)
       
       lh (dictum '((:do p)
                    (:do mf :bar (1..5))
                    (:do > :bar (5..7 16..20))
                    (:last pp :bar 20)
                    (:last fermata :bar 20))
                  lh-1)
       )
      
      (ps 'gm
          :p (list (ambitus '(0 45) rh) (ambitus '(-32 -1) lh))
          :tempo 112)
      )

     

  2. How you call the file. Have you try the example - at the end of the file - after restart, are they working?

    You don't need to load the file, just use the data directly with the library function:

     

    (library 'sea-sounds1-partials 'partials nil :collect '(0 3 5))

     

    Every file in the User Source/Extensions or User Source/Libraries directory is loaded at start.

    Your file looks OK. If you can't see the result of the expression then something is wrong.

    (library 'sea-sounds1-partials 'partials nil :collect '(0 3 5))

    I will make a new update tomorrow.

  3. You need to eval the function again:

     

    (progn
      (defun filterbank (&key cc value-range (time-range '(1 127)) (port 7) (channel 16))
        (let ((values (loop 
                         for i in (rnd-sample 100 (gen-integer (first value-range) (second value-range)))
                         for j in (gen-length (gen-integer (first time-range) (second time-range)) 1/128)
                         collect (list i j))))
          
          (live-coding-midi 
           (compile-score 
            (def-score cc-seq
                (:title "cc-seq"
                 :key-signature 'chromatic
                 :time-signature '(4 4)
                 :tempo 60) 
              (seq
               :length '(3)
               :pitch '(c4)
               :velocity '(ff)
               :port 1
               :channel channel
               :controllers (1 values)))))))
    
      (filterbank :cc 1 :value-range '(40 99) :port 1)


      )

×
×
  • Create New...

Important Information

Terms of Use Privacy Policy