Jump to content

LENGTH-REDUCE ?


AM

Recommended Posts

;;; Example, you generate binary

(setf bin (gen-binary-euclidean 2 12 1 9))
=>((1 0 0 0 0 0 1 0 0 0 0 0) (1 0 1 1 1 0 1 1 1 0 1 1))
;;; You map the binary to length

(setf bmap (binary-map bin 's))
=>((1/16 -1/16 -1/16 -1/16 -1/16 -1/16 1/16 -1/16 -1/16 -1/16 -1/16 -1/16) (1/16 -1/16 1/16 1/16 1/16 -1/16 1/16 1/16 1/16 -1/16 1/16 1/16))
;;; lot of rest
;;; with length reduce you will apply a kind
;;; of "legato effect" , no rest, only length to length:

(setf final (length-reduce bmap))
=>((3/8 3/8) (1/8 1/16 1/16 1/8 1/16 1/16 1/8 1/16 1/16))

It is a quick example just for give you the general idea...

 

SB.

Link to comment
Share on other sites

This is the similar function to get-timing in Symbolic Composer . . . It would be good to put Stephane's excellent example in the documentation. For an example in an existing composition see page 280 in Parametric Composition or visit my web archive http://www.nigel-morgan.co.uk/index.php?name=News&sid=35&file=article&pageid=1 for the annotated score-file.

 

Nigel

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

Terms of Use Privacy Policy