dump durations in floating instead of fractions using bach in maxmsp for OpenMusic

cualquiera2021's icon

Hi I am trying to transfer a rhythmic tree from MAX to OM, I realised that the bach.bachtree2omtree does not export the ties for some reason (even turning the outputtiesindurationtree to 1)... so I thought about exporting the durations using dump durations to a bach.score... it works but... the way bach export the tree is in fractions... not in floating... so I have to manually to the conversion... any advise?

I have to options...
1) convert somehow this message to floating, not sure how to separate a message like this.....:

( ( ( -3/16 ( 1/16 3/32 1/32 t ) ) ( 1/16 -1/8 1/16 t ) ) ( ( 1/32 -3/32 3/32 -1/16 3/32 ) ( 1/8 ( -1/16 1/16 ) ) ) ( ( ( 1/16 1/16 -1/32 ) 1/8 t 3/32 ) ( -1/4 ) ) ) ( ( -5/8 ) ( -5/8 ) ( -5/8 ) )

or

2) find a way using bach.score to dump floatings... but I have not found that yet...

please help...

Tj Shredder's icon

Better than the other way round, that would be almost impossible...;-)
I have an abhaXion which can do that:

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

You just have to extract your divisions and send it through...
Though the "t" will not be recognized, but you get the idea...

Tj Shredder's icon

Update, try this:

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