Bach - Transpose / Change Chords

frank desben's icon

Hi all,

I am having a problem with the bach libraray.
I am trying to take a score, and then change each chord given some constraints parameters.
But I can't even achieve a simple transformation.
I add 100 cent to each note - and the resulting list also looks ok -
but it is not displayed correctly in the bach.score.

Does somebody know what I am doing wrong?
It seems like a simple task - but I invested quite some time and can't get it to work.
Thank you !
Frank

Max Patch
Copy patch and select New From Clipboard in Max.

broc's icon

I would ask in the dedicated Bach forum where the experts are.

andrea agostini's icon

Hi Frank.

You have two problems here.
The first is a sort of bug which requires a substantial rethinking of how pitch is represented in bach (we're working on this anyway). The issue here is that you are transposing the pitches as output from the "Cents" outlet, but not the information about their diatonic representation as output from the "Extras" outlet. The easy solution is disconnecting the "Extras" inlets and outlets.

The second problem is that, by flattening the second time, you lose information about how chords are grouped in measures. In fact, you don't need flattening and wrapping at all:

Max Patch
Copy patch and select New From Clipboard in Max.

Anyway, for questions about bach I'd recommend checking out the bach forum: http://forum.bachproject.net

Cheers,
aa

frank desben's icon

Hi Andrea,
that was already good to know and helpful.
I did the flattening, because I want to analyze the chords and then create completely new ones.
If the sequence is
( ( ( 6700. 7200. 8100. ) ( 5500. 6700. 7700. ) ( 7100. 7700. 8400. ) ( 6400. 7600. ) ( 5900. 6700. 8100. 8600. ) ) ( ( 5700. 6700. 7100. 7700. ) ( 6200. 7700. ) ( 6900. 8400. ) ( 6500. 8100. ) ) )
I would like to have each list as a simple list, modify it, and then create the old tree structure again.
What would be the best way to do this?

Thanks a lot!

All the best
Frank