< Back to IRCAM Forum

Chord-seq alterations

Hi everyone.

Is there a way to get a chord-seq alterations data to be able to use them with lisp code ?

For example, if i change a D sharp to E flat in the chord-seq’s user interface, can i output the alterations data as a list ?

Thanks,

Kreso

Hi Kreso

Here is a function which might do something similar.
The attached file (.oml) is an OM “lisp function”. You must drag or import it in your workspace first, then use it in your patch

Jean

get-alterations.oml_.zip (528 Bytes)

It works fine. Thank you Jean !

By any chance, do you have also a set-alterations function ?

So that by giving a chord-seq and alterations list as inputs, the function would output a new chord-seq with altered pitches.

Kreso

it is slighly more complicated but I will try to make something and post it here soon

Excellent! Many thanks Jean.

Hi Jean,

Just a reminder.

Any chances you could code the set-alterations function in the near future ?

It would be very usefull with the get-alterations function you’ve already posted.

A set-alterations would enable to input a chord-seq and alterations list and to output a new chord-seq with altered pitches.

Kreso

Hi Kreso. I have it coded in the OM 10.1 update, but did not release the update yet !

In the meantime you can use this file (copy in OM 6.10/patches/)
It contains both get-alterations and set-alterations functions.
set-alterations will work with chord-seq and a list of alterations in the form ((do “#”) (fa “bb”) nil etc.) [same as returned by get-alterations]
It is your responsibility to set a combination of (note-name alteration) that corresponds to the actual pitch in midicent

Jean

get-set-alterations.lisp (1.63 KB)

Perfect !!

Many thanks Jean.

Kreso