4 element pattern transposed every 8th element..

4 views
Skip to first unread message

ole

unread,
Oct 2, 2013, 8:42:43 AM10/2/13
to symbolic...@googlegroups.com
Hi,

I have the following construction (the smallest common multiple between 4 and 7):

(setq 4-e-loop (gen-repeat 7 '(a b c d)))
-->(a b c d a b c d a b c d a b c d a b c d a b c d a b c d)
;just looping a 4 element pattern..

(setq 4-e-loop-into-7-e (symbol-divide 7 4-e-loop))
-->((a b c d a b c) (d a b c d a b) (c d a b c d a) (b c d a b c d))
;dividing it into 7 element groups



(defun transpose-sections (trans-list sections)
(loop for v in trans-list
for p in sections
collect (symbol-transpose v p)))


(setq pitches (flatten (transpose-sections '(0 20 0 20) 4-e-loop-into-7-e)))
-->(a b c d a b c x u v w x u v c d a b c d a v w x u v w x)
; 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4
; 7 7 7 7
;transpose every other group of the 7 elements group but the order is preserved.

Somehow I have the feeling that the result much more easy to achive, something with zones and tonalities
but I did not find any (other) solution.

thanks for some hints!

ole





pstone imap

unread,
Oct 3, 2013, 9:19:52 AM10/3/13
to symbolic...@googlegroups.com
Looks ok. Anything goes that makes it work. Here is same in other words. Mapcan appends directly lists and uses multiple synced inputs.

(setq pitches
  (mapcan #'(lambda (x y)
              (symbol-transpose x y))
          '(0 20 0 20) ; for x
          (symbol-divide 7 (gen-repeat 7 '(a b c d))))) ; for y
--> (a b c d a b c x u v w x u v c d a b c d a v w x u v w x)

Peter
--
You received this message because you are subscribed to the Google Groups "Symbolic Composer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to symboliccompos...@googlegroups.com.
To post to this group, send email to symbolic...@googlegroups.com.
Visit this group at http://groups.google.com/group/symboliccomposer.
For more options, visit https://groups.google.com/groups/opt_out.

ole

unread,
Oct 3, 2013, 10:04:08 AM10/3/13
to symbolic...@googlegroups.com
Thanks for the insights, I'll have to chew a while on that

What about: search-distance
search-similar
search-interval
search-continuous
search-non-continuous??


I just try to use search-distance and -interval, it says "undefined"
They are also not blue as functions usually are..



www.oleschmidt.de

pstone imap

unread,
Oct 4, 2013, 9:39:21 AM10/4/13
to symbolic...@googlegroups.com
I checked these run fine in SCOM 7.

Peter
Reply all
Reply to author
Forward
0 new messages