Jump to content

function for lengths variation


Recommended Posts

Lets say I have 2 measures of music.

I want to make random variations of the rhythms (not the pitches)

The result should fit in the initial 2 measures.

What is the function called for this.

I cannot remember ...

Thanks for help,

Achim

Link to comment
Share on other sites

Several possibilities depend what kind of variations you want.

The simplest one is random order applied only to lengths.

 

(setf mat '((e d4 e4 fs4 gs4 q a4)(s b4 c5 b4 gs4 q a4 e fs4 e4)))
(rnd-order mat :type :length)

Another way I appreciate particularly is length divide:

(length-divide '((3 4)(1 2)) mat :set 'max)

but this last one add some intervals so it may be not what you're searching for...

S.

Link to comment
Share on other sites

length-invert

 

produces great results as well:
 

(length-invert '(1/8 1/8 -1/8 1/4 1/4 -1/8))
=> (-1/8 -1/8 1/8 -1/4 -1/4 1/8)

(length-invert '(1/8 1/8 -1/8 1/4 1/4 -1/8) :swap t)
=> (1/8 1/8 1/4 -1/8 -1/8 1/4)

 

and works with omn sequence.

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