Posted February 8, 20214 yr Dear Friends, I´m working with this Lenght-Map, for articulations and dynamics. It´s not waorking the way I expected. Some are in the map, but won´t map. Some aren´t in the map, but appears... Stephane use it a lot... What I missed ? ;;;FORUM QUESTION ;;;pitches (setf v1 '(q gs4 bb4 e4 d4 eb4 fs4 b4 gs4 g4 a4 c5 bb4 a4 cs4 d4 d4 d4 g4 d5 b4 g4 f4 eb4 e4 f4 fs4 c5 bb4 eb5 cs5 fs4 g4 fs4 g4 gs4 a4 d5 b4 g4 a4 a4 gs4 bb4 e4 d4 eb4 fs4 b4 gs4 g4 a4 c5 bb4 a4 cs4 d4 d4 d4 g4 d5 b4 g4 f4 eb4 e4 f4 fs4 c5 bb4 eb5 cs5 fs4 g4 fs4 g4 gs4 a4 d5 b4 g4 a4 a4 gs4 bb4 e4 d4 eb4 fs4 b4 gs4 g4 a4 c5 bb4 a4 cs4 d4 d4 d4 g4 d5 b4 g4 f4 eb4 e4 f4 fs4 c5 bb4 eb5 cs5 fs4 g4 fs4 g4 gs4 a4 d5 b4 g4 a4 a4 gs4 bb4 e4 d4 eb4 fs4 b4 gs4 g4 a4 c5 bb4 a4 cs4 d4 d4 d4 g4 d5 b4 g4 f4 eb4 e4 f4 fs4 c5 bb4 eb5 cs5 fs4 g4 fs4 g4 gs4 a4 d5 b4 g4 a4 a4 gs4 bb4 e4 d4 eb4 fs4 b4 gs4 g4 a4 c5 bb4 a4 cs4 d4 d4 d4 g4 d5 b4 g4 f4 eb4 e4 f4 fs4 c5 bb4 eb5 cs5 fs4 g4 fs4 g4 gs4 a4 d5 b4 g4 a4 a4 gs4 bb4 e4 d4 eb4 fs4 b4 gs4 g4 a4 c5 bb4 a4 cs4 d4 d4 d4 g4 d5 b4 g4 f4 eb4 e4 f4 fs4 c5 bb4 eb5 cs5 fs4 g4 fs4 g4 gs4 a4 d5 b4 g4 a4 a4 gs4 bb4 e4 d4 eb4 fs4 b4 gs4 g4 a4 c5 bb4 a4 cs4 d4 d4 d4 g4 d5 b4 g4 f4 eb4 e4 f4 fs4 c5 bb4 eb5 cs5 fs4 g4 fs4 g4 gs4 a4 d5 b4 g4 a4 a4 gs4 bb4 e4 d4 eb4 fs4 b4 gs4 g4 a4 c5 bb4 a4 cs4 d4 d4 d4 g4 d5 b4 g4 f4 eb4 e4 f4 fs4 c5 bb4 eb5 cs5 fs4 g4 fs4 g4 gs4 a4 d5 b4 g4 a4 a4 gs4 bb4 e4 d4 eb4 fs4 b4 gs4 g4 a4 c5 bb4 a4 cs4 d4 d4 d4 g4 d5 b4 g4 f4 eb4 e4 f4 fs4 c5 bb4 eb5 cs5 fs4 g4 fs4 g4 gs4 a4 d5 b4 g4 a4 a4 gs4 bb4 e4 d4 eb4 fs4 b4 gs4 g4 a4 c5 bb4 a4 cs4 d4 d4 d4 g4 d5 b4 g4 f4 eb4 e4 f4 fs4 c5 bb4 eb5 cs5 fs4 g4 fs4 g4 gs4 a4 d5 b4 g4 a4 a4)) ;;; rhythm (setf rv1 '(w s s s s tie q -q s s s s -q -q -q -q q -q -q h -q h. -e. s s s s s s e s -s e. tie q -q)) ;;; Length Map (setf len-map1 '((e (stacc)) (s (ord)) (h (long)) (h. (long)) (w (long)))) (setf len-map2 '((e (rnd-pick '(ff mf))) (s (mf)) (e. (mf)) (h (p<f)) (h. (p<f)) (w (p<f)))) (setf vh1 (make-omn :length (span v1 rv1) :pitch (omn :pitch v1) :velocity (length-map len-map2 rv1 :otherwise '(mf) :repeat t) :articulation (length-map len-map1 rv1 :otherwise '(ord) :repeat t)))
February 8, 20214 yr Author Interesting... I´m going to check this. Another possibility would be to process the length-map before the make-omn expression to get more safe results. Maybe the span expression inside can spoil the length-map list management span inside the make-omn expression. That ocurred to me.... Thank you ! Best
February 8, 20214 yr Don't use tie in lengths only: (setf rv1 '(w s s s s_q -q s s s s -q -q -q -q q -q -q h -q h. -e. s s s s s s e s -s e._q -q))
February 8, 20214 yr Author 3 minutes ago, opmo said: Don't use tie in lengths only: (setf rv1 '(w s s s s_q -q s s s s -q -q -q -q q -q -q h -q h. -e. s s s s s s e s -s e._q -q)) Thank you !! Underlines as ties. Good !
February 8, 20214 yr Remove the q length from the pitch list.RND-PICK returns an atom, therefore you need to add a LIST. (setf rv1 '(w s s s qs -q s s s s -q -q -q -q q -q -q h -q h. -e. s s s s s s e s -s q.. -q)) (setf len-map1 '((e (stacc)) (s (ord)) (h (long)) (h. (long)) (w (long)))) (setf len-map2 '((e (list (rnd-pick '(f ff)))) (s (mf)) (e. (mf)) (h (p<f)) (h. (p<f)) (w (p<f)))) (setf vh1 (make-omn :length rv1 :pitch v1 :span :pitch)) (length-map len-map1 vh1 :otherwise '(ord) :repeat t) (length-map len-map2 vh1 :otherwise '(mf) :repeat t) I would avoid expression with many nested functions - difficult to read and analyse.
February 8, 20214 yr Author Just for the record... This way it worked great ! (besides my messy way to build expressions...) I find it easier to read... My mind is messy... (setf vh1 (make-omn :length rv1 :pitch v1 :span :pitch :velocity (length-map len-map2 rv1 :otherwise '(mf) :repeat t) :articulation (length-map len-map1 rv1 :otherwise '(ord) :repeat t)))
Create an account or sign in to comment