Jump to content

opmo

Administrators
  • Posts

    2,903
  • Joined

  • Last visited

Posts posted by opmo

  1. Your example is not very helpful. I can't see the my-pitches values, and the times value - I need to see the my-sequence output to determine the :span :pitches use.

     

    I think the :span :pitches is the problem.

     

    What about:

    (setf my-sequence (make-omn
                       :length (gen-loop times (rnd-sample 1 '((q s) (q q))))
                       :pitch (gen-repeat times my-pitches)))
    
    (def-score my-score
      (:title "my-score"
          :key-signature 'chromatic
          :time-signature (get-time-signature my-sequence)
          :tempo 161)

     

  2. The def-instrument-set needs to be set correctly for each instrument. There are no empty layouts 🙂

    I addend a new keyword :audition into the PS function.

    When :output is set to :audition no midi player or notation viewer will display - just audio.

     

    Example:

    (ps 'gm :sq (list vn1 vn2 vla vlc) :tempo 68 :output :audition)

     

    def-score is more flexibile for it - no layout needed.

  3. The file contents need to be a string.

     

    (defun remove-semicolon (string)
      (remove ";" string :test #'string=))
    
    (setf orig "0 1-amp-env 1 11000; 11000 1-amp-env 1 6000; 6000 1-amp-env 0.2 10000; 10000 1-amp-env 1 5000;")
    (setf pd1 (string-to-list (remove-semicolon orig)))
    (setf pd2 (gen-divide 4 pd1))
    (setf pd3 (loop for i in pd2 collect (list (* 2 (1~ i)) (2~ i) (3~ i) (* 2 (4~ i)))))
    
    (join-string-list
     (loop for i in pd3
           collect (string-replace " ;" ";" (join-string-list (list (list-to-string i) ";")))))
    => "0 1-amp-env 1 22000; 22000 1-amp-env 1 12000; 12000 1-amp-env 0.2 20000; 20000 1-amp-env 1 10000;"
×
×
  • Create New...

Important Information

Terms of Use Privacy Policy