JulioHerrlein Posted February 8, 2021 Share Posted February 8, 2021 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))) Quote Link to comment Share on other sites More sharing options...
opmo Posted February 8, 2021 Share Posted February 8, 2021 I would use OMN-DICTUM instead of LENGTH-MAP. JulioHerrlein 1 Quote Link to comment Share on other sites More sharing options...
JulioHerrlein Posted February 8, 2021 Author Share Posted February 8, 2021 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 Quote Link to comment Share on other sites More sharing options...
opmo Posted February 8, 2021 Share Posted February 8, 2021 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)) JulioHerrlein 1 Quote Link to comment Share on other sites More sharing options...
JulioHerrlein Posted February 8, 2021 Author Share Posted February 8, 2021 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 ! Quote Link to comment Share on other sites More sharing options...
opmo Posted February 8, 2021 Share Posted February 8, 2021 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. Quote Link to comment Share on other sites More sharing options...
JulioHerrlein Posted February 8, 2021 Author Share Posted February 8, 2021 Thanks ! This will help a lot ! Quote Link to comment Share on other sites More sharing options...
JulioHerrlein Posted February 8, 2021 Author Share Posted February 8, 2021 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))) Quote Link to comment Share on other sites More sharing options...
opmo Posted February 8, 2021 Share Posted February 8, 2021 Please to hear JulioHerrlein 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.