Jump to content

born

Members
  • Posts

    82
  • Joined

  • Last visited

Posts posted by born

  1. How can I display a score compiled like this

    (compile-score '((<def-score-name> :start 1 :end 90)))

    with display-musicxml?

    This gives an error:

    (display-musicxml
    (compile-score '((<def-score-name> :start 1 :end 90))))

    Any idea?

    Achim

  2. Has anybody an idea how to formalize the following task?

    A list of 4 sublists with 2 elements:

    '((1 2) (3 4) (5 6) (7 8)))

     

    ==> All the possible combinations of either one or the other number in the sublist:

     

    '(
    (1 3 5 7)
    (1 4 5 7)
    (1 3 6 7)
    (1 4 6 7)
    (1 3 5 8)
    (1 4 5 8)
    (1 3 6 8)
    (1 4 6 8)
    (2 3 5 7)
    (2 4 5 7)
    (2 3 6 7)
    (2 4 6 7)
    (2 3 5 8)
    (2 4 5 8)
    (2 3 6 8)
    (2 4 6 8)
    )
    


    Did I miss a combination?

    Thanks for help.

    Achim

  3. Hi,

    how can I convert this to an automation file in Midi to import it to a DAW?

    (Thanks to Tibor for the code 😀)

    Achim

     

    (setf b-amp-values1
          (mod-sine-waves 4 1000 0.6 1 :phase -40
                          :modulation (gen-sine 700 2.5 1.2)))
    (list-plot b-amp-values1)
    (defparameter values-aligned
      (loop for i in b-amp-values1
            collect (* 64 (+ i 1))))
    (setf midi-test (gen-controller 1 values-aligned :time 1/1000))
    (setf boolean-pitch (append '(q) (gen-repeat (length midi-test) 'c4)))
    (def-score midi-test
        (:title "score title"
         :key-signature ' chromatic
         :time-signature '(4 4)
         :tempo 120)
      (instrument
       :omn boolean-pitch
       :channel 1
       :sound 'gm
       :program 'acoustic-grand-piano
       :controllers (1 midi-test)))

     

  4. 2 hours ago, opmo said:

    Do you mean: get-count

    No.
    The function which does something like this:

    ;; scale all numbers of lst that the sum of lst is 25
    (setf lst '(1 2 3 4 5))
    (setf list-sum (sum lst))
    (setf scale 25)
    (setf result1
    (loop for i in lst
          collect (* 1.0 (* scale 
                             (/ i list-sum)))))
    ;; test (sum result1)
    (setf result2
    (loop for i in lst
          collect (round
                   (* 1.0 (* scale 
                             (/ i list-sum))))))
    ;; test (sum result2)

     

  5. Does anybody have an idea, how to sample x equidistant values from an env like xy-plot?

     

    (xy-plot '((2 0) (3 1) (5 1) (7 2) (11 3) (13 5) (17 8) (19 13) (20 21)) 
             :join-points t :point-radius 2 :style :axis :point-style :square)

     

    For example 10 values from this graph:image.png.54eff8d2c9b4c8bae7b88cdb47399dd6.png

  6. 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

    should change to

    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

    These are sequencer files from Puredata in which I'd like to change the timestamps in msecs to double time.

    Input is a txt document and the output should be a txt document as well.

    The reason for this approach is that I have quite a few of this files to change ...

×
×
  • Create New...

Important Information

Terms of Use Privacy Policy