Jump to content

AM

core_group_3
  • Content Count

    443
  • Joined

  • Last visited

  • Days Won

    95

AM last won the day on August 26

AM had the most liked content!

2 Followers

About AM

  • Rank
    core_member_rank_4

core_pfieldgroups_1

  • core_pfield_3
    https://soundcloud.com/andr-meier-1 http://www.andremeier.org

core_pfieldgroups_2

  • core_pfield_5
    Male

Recent Profile Visitors

1,888 profile views
  1. AM

    what's up with quantize?

    okay, so i hope this will be a solution for me - thanx for your work, janusz!!
  2. AM

    what's up with quantize?

    okay, i see... but the QUANTIZE-problem (or whatever) stays... wrong number of LENGTH values from time to time -> evaluate this example (with ratios and longer values) a few time... and you will see. so it's not possible to work correct with QUANTIZE 😥 greetings andré ;;; LENGTH (setf rhy (gen-length (rnd-order '(1 3 2 -1 7 1 2 -1 2 1 5 -1 3 2 1)) 16)) (setf float-rhy+fuzziness (loop for i in rhy when (> i 0) collect (+ i (rnd-pick '(0.4 0.2 0.3))) else collect i)) (setf rhy+fuzziness (quantize float-rhy+fuzziness '(1 2 3 4 5 6 7 8) :speed -.2)) ;;; PITCHES (setf pitches '(fs3 bb3 c4 d4 eb4 e4 g4 gs4 a4 b4 cs5 f5)) ;;; MAKE OMN + SCORE (def-score example (:title "example" :key-signature 'atonal :time-signature '(4 4) :tempo 90) (instr :omn (make-omn :length rhy+fuzziness :pitch pitches :velocity '(pppp)) :span :pitch :port 0 :channel 1 :sound 'gm-trumpet))
  3. AM

    what's up with quantize?

    dear janusz IT IS A BUG 🙂 what a strange output you have…?! with this litle LOOP i will never get a value like 0.08125… because the minimum will be 0.125+add (= rnd-pick) => 1/32+add… so THIS could not be the problem!!!! you have to "convert" to FLOAT (you did not in YOUR example) -> then you have not such too-small-values - do it like in MY example above... so NO too small value, BUT SAME QUANTIZE BUG (setf float-rhy '(0.125 0.125 0.375 -0.25 0.625 0.875 0.375 -0.25 0.125 0.625 1.0 -0.875 0.375 0.125 0.25)) (setf float-rhy+fuzziness (loop for i in float-rhy when (> i 0) collect (+ i (rnd-pick '(0.05 0.1 0.15))) else collect i)) and you get the SAME bug with 1/16 as minimum value and much larger adds -> test it 🙂 ;;; LENGTH (setf rhy (gen-length (rnd-order '(1 3 2 -1 7 1 2 -1 2 1 5 -1 3 2 1)) 16)) (setf float-rhy (ratio-to-float rhy)) (setf float-rhy+fuzziness (loop for i in float-rhy when (> i 0) collect (+ i (rnd-pick '(0.1 0.2 0.3))) else collect i)) (setf rhy+fuzziness (quantize float-rhy+fuzziness '(1 2 3 4 5 6 7 8))) ;;; PITCHES (setf pitches '(fs3 bb3 c4 d4 eb4 e4 g4 gs4 a4 b4 cs5 f5)) ;;; MAKE OMN + SCORE (def-score example (:title "example" :key-signature 'atonal :time-signature '(4 4) :tempo 90) (instr :omn (make-omn :length rhy+fuzziness :pitch pitches :velocity '(pppp)) :span :pitch :port 0 :channel 1 :sound 'gm-trumpet)) ;;; the speed-thing changes nothing, same BUG (setf rhy+fuzziness (quantize float-rhy+fuzziness '(1 2 3 4 5 6 7 8) :speed -.2))
  4. AM

    what's up with quantize?

    voilà: here is a concret example - with 12 length-values (in my work there are about 700, so the problems are BIGGER 🙂 ) if you evaluate a few times you get some WRONG output. you see it if the last pitch is not an f5, that's because there are (don't know why) from time to time (from eval to eval) more then 12 length-values in the output - should be 12 length and 3 rest values. this is the problem and makes the result too inconsistent for me... ;;; LENGTH (setf rhy (gen-length '(1 1 3 -2 5 7 3 -2 1 5 8 -7 3 1 2) 32)) (setf float-rhy (ratio-to-float rhy)) (setf float-rhy+fuzziness (loop for i in float-rhy when (> i 0) collect (+ i (rnd-pick '(0.05 0.1 0.15))) else collect i)) (setf rhy+fuzziness (quantize float-rhy+fuzziness '(1 2 3 4 5 6 7 8))) ;;; PITCHES (setf pitches '(fs3 bb3 c4 d4 eb4 e4 g4 gs4 a4 b4 cs5 f5)) ;;; MAKE OMN + SCORE (def-score example (:title "example" :key-signature 'atonal :time-signature '(4 4) :tempo 90) (instr :omn (make-omn :length rhy+fuzziness :pitch pitches) :span :pitch :sound 'gm-trumpet))
  5. AM

    what's up with quantize?

    but with other ADD and QUANTIZE (setf l2 (quantize (x+b rhy 0.22) '(1 2 4 8))) (get-count l2 :length :note) => 82 (setf l2 (quantize (x+b rhy 0.22) '(1 2 3 4 5 6 7 8))) (get-count l2 :length :note) => 86 so for me, quantize works a little bit like a BLACK BOX 🙂 would absolutely GREAT if it would work always with same COUNT! any idea? 🙂 thanx for help!!
  6. AM

    what's up with quantize?

    i know, but the error/wrong output is coming up when would add (individual) float-numbers to RHY and afterwards use QUANTIZE 🙂 the concret idea is: to a basic FLOAT-seq like RHY -values (above) i would like to add some little noisy-floats - 0.5 becomes 0.55 or 0.75 beomes 0.70 etc... so the precise structure beomes some fuzziness - but after quantizing, the snychronization with the pitches is wrong - because QUANTIZE doing more/less length-values
  7. AM

    what's up with quantize?

    here is a very simple example: a sequence in 1/8-structure -> i will add 0.25 (=> + 1/16), and QUANTIZE-output-sequences are with different lengths!! compare: (length rhy) with l1 with l2 (setf rhy '(1.5 -2.5 1.0 1.5 0.5 0.5 -1.0 2.5 0.5 -2.5 0.5 0.5 -2.5 1.5 1.0 -1.0 2.5 -0.5 0.5 -0.5 0.5 1.5 1.5 0.5 0.5 1.5 0.5 -1.0 0.5 1.0 -1.0 2.5 0.5 1.5 1.5 1.5 1.5 0.5 -1.0 2.5 0.5 -1.0 0.5 0.5 -1.5 0.5 1.0 -1.5 1.0 -1.5 0.5 -0.5 0.5 -1.0 2.5 -2.0 1.0 1.5 -0.5 1.5 1.0 -1.0 2.5 1.0 -0.5 0.5 0.5 0.5 0.5 0.5 1.5 -0.5 0.5 0.5 5.0 1.5 1.0 -0.5 0.5 1.0 -10.0 1.0 1.5 15.0 0.5 0.5 -1.5 1.5 0.5 2.5 1.0 10.0 0.5 0.5 10.0 -0.5 15.0 -1.5 5.0 -0.5 0.5 0.5 0.5 0.5 1.0 2.5 1.0 -1.5)) (float-to-ratio rhy) => (3/8 -5/8 1/4 3/8 1/8 1/8 -1/4 5/8 1/8 -5/8 1/8 1/8 -5/8 3/8 1/4 -1/4 5/8 -1/8 1/8 -1/8 1/8 3/8 3/8 1/8 1/8 3/8 1/8 -1/4 1/8 1/4 -1/4 5/8 1/8 3/8 3/8 3/8 3/8 1/8 -1/4 5/8 1/8 -1/4 1/8 1/8 -3/8 1/8 1/4 -3/8 1/4 -3/8 1/8 -1/8 1/8 -1/4 5/8 -1/2 1/4 3/8 -1/8 3/8 1/4 -1/4 5/8 1/4 -1/8 1/8 1/8 1/8 1/8 1/8 3/8 -1/8 1/8 1/8 5/4 3/8 1/4 -1/8 1/8 1/4 -5/2 1/4 3/8 15/4 1/8 1/8 -3/8 3/8 1/8 5/8 1/4 5/2 1/8 1/8 5/2 -1/8 15/4 -3/8 5/4 -1/8 1/8 1/8 1/8 1/8 1/4 5/8 1/4 -3/8) (length rhy) => 108 (setf l1 (quantize (x+b rhy 0.00) '(1 2 4 8))) (length l1) => 135 (setf l2 (quantize (x+b rhy 0.25) '(1 2 4 8))) (length l2) => 137
  8. AM

    what's up with quantize?

    but it makes no sense to get more LENGTH-values by adding 0.02 (also by adding 0.12 what ist no such a little change...)? whats the idea behind it? in that way its not usable for many ways....
  9. why are there different results (have a look to the number of length values)? ...i get in troubles with my work - "phase shift" between pitch/length when i change/use QUANTIZE 😕 (setf rhy '(0.375 -0.625 0.25 0.375 0.125 0.125 -0.25 0.625 0.125 -0.625 0.125 0.125 -0.625 0.375 0.25 -0.25 0.625 -0.125 0.125 -0.125 0.125 0.375 0.375 0.125 0.125 0.375 0.125 -0.25 0.125 0.25 -0.25 0.625 0.125 0.375 0.375 0.375 0.375 0.125 -0.25 0.625 0.125 -0.25 0.125 0.125 -0.375 0.125 0.25 -0.375 0.25 -0.375 0.125 -0.125 0.125 -0.25 0.625 -0.5 0.25 0.375 -0.125 0.375 0.25 -0.25 0.625 0.25 -0.125 0.125 0.125 0.125 0.125 0.125 0.375 -0.125 0.125 0.125 1.25 0.375 0.25 -0.125 0.125 0.25 -2.5 0.25 0.375 3.75 0.125 0.125 -0.375 0.375 0.125 0.625 0.25 2.5 0.125 0.125 2.5 -0.125 3.75 -0.375 1.25 -0.125 0.125 0.125 0.125 0.125 0.25 0.625 0.25 -0.375)) (setf l1 (quantize (x+b rhy 0.0) '(1 2 3 5 8))) (length l1) => 116 (setf l2 (quantize (x+b rhy 0.02) '(1 2 3 5 8))) (length l2) => 105
  10. AM

    rnd-complete-seq

    ;; a function which fills up a sequence randomly - max-length = length sequence ;; (regardless of the number of cycles) (defun rnd-complete-seq (n &key sequence (step 1) seed (sort '<) (exclude nil) (append-excluded nil)) (let* ((testseq) (sequence (if (null exclude) sequence (filter-remove exclude sequence))) (sequence (loop repeat (length sequence) with sequence = (loop repeat n with seq = '() do (setf seq (append (rnd-unique step sequence :seed seed) seq)) do (setf sequence (filter-remove seq sequence)) collect seq) for i in (if (equal sort '<) (sort-asc sequence) (sort-desc sequence)) collect i))) (if (null append-excluded) sequence (progn (cond ((pitchp (first (car (last sequence)))) (setf testseq (pitch-to-midi sequence))) ((velocityp (first (car (last sequence)))) (setf testseq (get-velocity sequence))) (t (setf testseq sequence))) (if (< (first (car (last testseq))) (second (car (last testseq)))) (list sequence (sort-asc (append exclude (car (last sequence))))) (list sequence (sort-desc (append exclude (car (last sequence)))))))))) ;;; EXAMPLES (rnd-complete-seq 8 :sequence (expand-tonality '(b3 messiaen-mode6))) => ((b3) (b3 a4) (b3 a4 as4) (b3 f4 a4 as4) (b3 e4 f4 a4 as4) (b3 cs4 e4 f4 a4 as4) (b3 cs4 ds4 e4 f4 a4 as4) (b3 cs4 ds4 e4 f4 g4 a4 as4)) ;or => ((as4) (e4 as4) (e4 f4 as4) (cs4 e4 f4 as4) (cs4 e4 f4 g4 as4) (b3 cs4 e4 f4 g4 as4) (b3 cs4 ds4 e4 f4 g4 as4) (b3 cs4 ds4 e4 f4 g4 a4 as4)) ;or .... (rnd-complete-seq 5 :sequence '(0 1 2 3 4 5 6 7 8 9 10 11 12)) => ((1) (1 7) (0 1 7) (0 1 7 9) (0 1 7 9 11)) ;or => ((0) (0 1) (0 1 11) (0 1 6 11) (0 1 6 11 12)) ;or .... (rnd-complete-seq 5 :step 2 :sequence '(0 1 2 3 4 5 6 7 8 9 10 11 12)) => ((1 7) (0 1 7 8) (0 1 5 7 8 12) (0 1 5 7 8 9 10 12) (0 1 2 5 7 8 9 10 11 12)) (rnd-complete-seq 5 :step 2 :sequence '(0 1 2 3 4 5 6 7 8 9 10 11 12) :seed 234) => ((4 12) (3 4 11 12) (2 3 4 10 11 12) (2 3 4 5 9 10 11 12) (1 2 3 4 5 8 9 10 11 12)) (rnd-complete-seq 5 :step 2 :sequence '(0 1 2 3 4 5 6 7 8 9 10 11 12) :sort '> :seed 234) => ((12 4) (12 11 4 3) (12 11 10 4 3 2) (12 11 10 9 5 4 3 2) (12 11 10 9 8 5 4 3 2 1)) (rnd-complete-seq 5 :step 2 :sequence '(pppp ppp pp p mp mf f ff fff ffff) :sort '> :seed 234) => ((ffff p) (ffff fff p pp) (ffff fff ff p pp ppp) (ffff fff ff f mp p pp ppp) (ffff fff ff f mf mp p pp ppp pppp)) ;;; examples with EXCLUDE (rnd-complete-seq 4 :sequence '(1 2 3 4 5 6 7 8) :exclude '(1 8)) => ((5) (4 5) (2 4 5) (2 4 5 6)) (rnd-complete-seq 4 :sequence '(1 2 3 4 5 6 7 8) :exclude '(1 8) :append-excluded t) => (((7) (4 7) (4 5 7) (4 5 6 7)) (1 4 5 6 7 8)) (rnd-complete-seq 4 :sequence '(pppp ppp pp p mp mf f ff fff ffff) :exclude '(pppp ffff) :append-excluded t) => (((mf) (p mf) (ppp p mf) (ppp p mf f)) (pppp ppp p mf f ffff))
  11. AM

    add-text-attributes

    i know.... i tried and failed. perhaps someone could help me....
  12. AM

    add-text-attributes

    i like to insert many text-attrib (hundreds) into the opmo-function (ADD-TEXT-ATTRIBUTES) ... how can i format it the right way when i generate it by a function? thanx for help!! andré ;;; ordinary... by hand - works fine (add-text-attributes '(nr0 "0") '(nr1 "1") '(nr2 "2") '(nr3 "3") '(nr4 "4") '(nr5 "5")) ;;; generated by a function as a list (if there are many attributes) (setf attr-list (loop for i from 0 to 100 collect (list (compress (list 'nr i)) (write-to-string i)))) ;;; INSERT don't work because of the wrong format.... how can i do that/change the format?? (add-text-attributes attr-list) => Error: Mismatched keys and values, (:notation-text) and ((nr1 "1") (nr2 "2") (nr3 "3") (nr4 "4") (nr5 "5") (nr6 "6") (nr7 "7") (nr8 "8") (nr9 "9") (nr10 "10") (nr11 "11") (nr12 "12") (nr13 "13") (nr14 "14") (nr15 "15") (nr16 "16") (nr17 "17") (nr18 "18") (nr19 "19") (nr20 "20") ...)
  13. AM

    how to number pitches

    thanks, so i have to code an algorithm to write such a library (till 1000) - or do it by hand 😉 any idea to code such a format? - i don't know how to code/write such a format with single lists (and not lists in lists) inside a function... thanx for help andré
  14. AM

    how to number pitches

    i know, but i would like to code it and not to write it by hand 🙂 here is the solution: ;;; THE NUM-FUCTION for ARTICULATION (defun gen-num (n &key (start 0)) (loop for i from start to n append (list (compress (list 'num i))))) ;;; (setf pitches (loop repeat 20 collect (rnd-pick '(c4 d4 e4 f4)))) (setf articulation (gen-num (length pitches))) (make-omn :pitch pitches :articulation articulation :length '(t) :span :pitch) => (t f4 num0 e4 num1 c4 num2 d4 num3 e4 num4 f4 num5 d4 num6 d4 num7 f4 num8 f4 num9 c4 num10 d4 num11 e4 num12 d4 num13 f4 num14 f4 num15 e4 num16 d4 num17 e4 num18 c4 num19) @janusz: it works like that... but num0, num1... stops at num100, higher numbers seems not to be possible... but i would need about 1000 🙂
  15. i would like to number a pitch sequence, so that every pitch has a number which is written in the score (above the pitch). how can i do that...? any idea? thanx for help a.
×