< Back to IRCAM Forum

Interpolation of Two Rythms and more

Hello

Very beginner in OpenMusic, i have three projects I would like to do (I don’t know exactly the difficulty of each) :

  • Interpolate two rhythms in a define numbers of step
    Since we can find easily patch OM which do this exact operation between 2 chords, I would like to do it between two rhythms. If someone has done this already or an idea to go further…
  • Be able to make tempo-counterpoints between different lines
    Since OM is able to superimpose different tempo in the same time, i would like to be able to add different tempo in one musical line, OM could go to one tempo to an other in a progressive way then superpose as line as I want…
  • Generate all the mélodies possible from a given serie of notes

If someone can help in the way he can, I would be very grateful
Best regards
Hervé

For the last point :
Generate all the mélodies possible from a given serie of notes

I mean with given rules…
H.

Hi,

I have a patch for interpolating rhythms that can maybe be useful. I have used it in some courses of mine. In my version the rhythms are random generated, if you need exact rhythms it is sufficient to substitute the two random rhythm generations with two different lists (in ms.) of durations related to your rhythms. I enclose the patch.

About last question I can suggest you constraint programming. I don’t know it very good in open Music (I have practiced it more in PWGL), but perhaps a help can come from Situation library. (or similar ones)

Best

Fabio

29_interpolazione_ritmi.omp (27.7 KB)

I got the 2 patch Thanks a lot !!!

Dear Herve,

The “two” patches are the same. It is the same old forumnet bug. When you upload a patch or whatever, it is echoed twice for some Weird reason…
Will look into the patch of Fabio and will see if it is not different of that i’ve got… and if yes will post it here for you …
Best
K

Yes, I saw it, no problem… :=)

Ok so here it is :

One “funny” voice-interpolation patch. It includes many different stuff (such as rotation, etc…)
have fun with it…

Then concerning the tempo in om. It’s rather complicated (i.e the syntax):

  • suppose you have two three measures (cf. patch tempo in om):

(? (((4 4) (1 1 1 1)) ((4 4) (1 1 1 1)) ((4 8) (1 1 1 1))))

The tempo will look like that :

(
;always first measure tempo is default :
(1/4 125.0)
;Then comes the other measures :
(
((1 0) (1/4 150.0 t)) ;here the first list is the (measure-index beat-index) zero always being the first
((2 3) (1/8 42 nil)) ;second list is (note figure tempo then nil) ;;;
)
)
The nil is for fixed tempo
t for accel or deccel…

This is brought to you by Magic Carlos…

Best
K

voice-interpolation.omp (80.3 KB)

Hi Karim,

Thank you for clarification.

Ciao

Fabio

P.S.
I have just realized I forgot to implement that patch in my library… Next update :slight_smile:

…Sorry guys, had to delete the tempo patch (wrong one)… Here is the good one

have fun

Best
K

tempo-in-om.omp (8.47 KB)

P.P.S.

Thank you also for the patch, I didn’t still know this characteristic.
Good to know.

Ciao

Fabio