AM Posted August 7, 2016 Share Posted August 7, 2016 a short - and perhaps stupid - question... what's the idea for this function, useful for ...? practical purpose? thanx for a short hint! Quote Link to comment Share on other sites More sharing options...
Stephane Boussuge Posted August 7, 2016 Share Posted August 7, 2016 ;;; 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. AM 1 Quote Link to comment Share on other sites More sharing options...
AM Posted August 7, 2016 Author Share Posted August 7, 2016 thanx!!! a. Quote Link to comment Share on other sites More sharing options...
tonality systems Posted August 8, 2016 Share Posted August 8, 2016 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 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.