Jump to content

Request: a gen-divide-attack function only to positive rhythmic values


Recommended Posts

Dear friends,

 

A cool idea to implement would be to have a gen-divide like function for dividing rhythm lists, filtering just the positive values, like this:

 

(setf rhy '(q -q -e e e e q q -s s s s))

;;;Standard gen divide

(gen-divide 3 rhy)
;;result:
(q -q -e) (e e e) (q q -s) (s s s)

;;; (gen-divide-attack 3 rhy)

;;;result
(q -q -e e e) (e q q) (-s s s s)

 

To me, would be very useful.

 

All the best !

Julio

Link to post
Share on other sites

Done 🙂
 

(gen-divide 3 '(q -q -e e e e q q -s s s s))
=> ((1/4 -1/4 -1/8) (1/8 1/8 1/8) (1/4 1/4 -1/16) (1/16 1/16 1/16))

(gen-divide 3 '(q -q -e -e -e e q q -s s s s) :omit-rest t)
=> ((1/4 -1/4 -1/8 -1/8 -1/8 1/8 1/4) (1/4 -1/16 1/16 1/16) (1/16))

(gen-divide 3 '(q -q -e -e -e e q q -s s s s) :omit-rest t :omn t)
=> ((q - -e - - = q) (q -s = =) (s))

(gen-divide 3 '(q c4 -q -e d4 e e4 e f4 e g4 q a4 q b4 -s s c5 d5 e5))
=> ((q c4 mf - -e) (e d4 mf e4 f4) (e g4 mf q a4 b4) (-s c5 mf d5) (s e5 mf))

(gen-divide 3 '(q c4 -q -e d4 e e4 e f4 e g4 q a4 q b4 -s s c5 d5 e5) :omit-rest t)
=> ((q c4 mf - -e d4 e4) (e f4 mf g4 q a4) (q b4 mf -s c5 d5) (s e5 mf))

 

Link to post
Share on other sites

Yes !! This is great !

 

Thank you, Janusz !]

Just a keyword did the job.

Very interesting for controlling the number of rhythmic attacks in a time span, without having to measure a time span so strictly.

As a consequence, the harmony can be better controlled also, because I use lists of compatible harmonies.

 

All the best !

Julio

Link to post
Share on other sites

Dear Stephane, 

 

I´m planning to do a little video sooner or later.

But basically, it´s the same stuff/template I´m working for some time. 

Inside this template, some ideas about music and composition are emerging, 

alongside with the constraints of my imagination and the different ways of realizing all

 this with this wonderful Opusmodus tool.

Thanks in advance to all the support and inspiration you and Janusz bring to me

and all the people in this forum.

 

All the best !

Julio

Link to post
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