ircam-ismm / catart-mubu

MuBu based version of CataRT
Other
30 stars 4 forks source link

mubu.process with externally generated markers #82

Open einbond opened 1 year ago

einbond commented 1 year ago

Following up on a question from @christophertrapani about yin segmentation: could we create a module and/or tutorial that takes markers from an external source (could be another mubu.process or another source) and applies them in lieu of other segmentation modes? I don't know if this is something that is already possible with mubu.process or if it still needs to be implemented. Then I guess this would amount to a new segmentation module to join the list of camu.process.descr-*.maxpat. Could we also envision a pipo version? i.e. Pipo waits to receive an external trigger before segmenting incoming audio and calculating statistics for the preceding unit?

jln- commented 1 year ago

Hi. Assuming I understand correctly, this can be done using chop segmenter's segtimes and segdurations attributes. FWIW, below is an little patch to a list of markers from a csv file exported from Reaper.


----------begin_max5_patcher----------
2251.3ocybszrahiEds8uBFWyht6xsKzCv3rp6pmEy9opYS5TtjAYeIAiX.w
MNIU9uO5AfAa.KigquNULXIgz47oyKIct7i4yVrichlsv5CVezZ1reLe1LUQ
xBlU76YKNRN4GQxTMaQL8qrcedwRcUb5Itp3DqCojcaORR+BMMa69T1ws9Yu
V1tnvXpOKOV0XXQgw4GY47HJW0yfhRSHb+WBiOrMk5y0Tli8J6kV.3F0Er5W
HmU1Vep3YzcC+aIT8CrXGI9vhppCCTznft+80KNO3gwsN1zzB1uf+msXeXD8
UAaExhq05YKHII0JdVsGQBZelo5HukUEEFqKxopnT5qgkOOtpTRp.A3B1OOU
wPKN4hWbtaXAzz37PEonK7myKII0DUL4HMKg3qeX47YY00vTEX5Aje6pgTOz
lyXpPN3PDy+KTE1YWVHKgFGFmjRynwbBufzqpNftmjGw2tmEyyB+th..vUsV
+9BBr0Jkrfh5+yzPRTE8eHMLfEKIhFSDxhKGtOZAbTxIN0YFUKhIIs7vBwBA
pzQkYBlLOaGIUNOsKhVS9UH8yXQMqp54hn64EUmDFGeAJxYIcWYZ3gW54Y2w
DUdru9VUS117XcsaEhD7sYjWah1bRTTgxbyt+DIN7HgS4g5o.ncUkzXhfQeI
yOkEE0fe007ZK0DHDw8oeML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g.lLRqwivHIWo5s4oF605k6CLxSsGcXriJ52y+3QI
s0OLoAg3RpA1f1fOLw4Z.woVv6iOEYhv.FLFijIJr3wP.G0HoO5ZjbGqQBbq
QBMVizMEIr8FigRJ0it0PMFLkZuHtIWoVa9HLV36Pi+wMvBdKLvVYCneAvMi
xP8lAe1dFY96pgRGSwEudCjixEuVCt3UZv0uNC59UYvkuFCTGrVWu9Bl+y4+
etHTO6A
-----------end_max5_patcher-----------
christophertrapani commented 1 year ago

Yes, thank you, Julien! I think that's (at least part of) the solution I was looking for...

On Thu, Apr 27, 2023 at 12:08 PM Julien Rabin @.***> wrote:

Hi. Assuming I understand correctly, this can be done using chop segmenter's segtimes and segdurations attributes. FWIW, below is an little patch to a list of markers from a csv file exported from Reaper.

----------begin_max5_patcher---------- 2251.3ocybszrahiEds8uBFWyht6xsKzCv3rp6pmEy9opYS5TtjAYeIAiX.w MNIU9uO5AfAa.KigquNULXIgz47oyKIct7i4yVrichlsv5CVezZ1reLe1LUQ xBlU76YKNRN4GQxTMaQL8qrcedwRcUb5Itp3DqCojcaORR+BMMa69T1ws9Yu V1tnvXpOKOV0XXQgw4GY47HJW0yfhRSHb+WBiOrMk5y0Tli8J6kV.3F0Er5W HmU1Vep3YzcC+aIT8CrXGI9vhppCCTznft+80KNO3gwsN1zzB1uf+msXeXD8 UAaExhq05YKHII0JdVsGQBZelo5HukUEEFqKxopnT5qgkOOtpTRp.A3B1OOU wPKN4hWbtaXAzz37PEonK7myKII0DUL4HMKg3qeX47YY00vTEX5Aje6pgTOz lyXpPN3PDy+KTE1YWVHKgFGFmjRynwbBufzqpNftmjGw2tmEyyB+th..vUsV +9BBr0Jkrfh5+yzPRTE8eHMLfEKIhFSDxhKGtOZAbTxIN0YFUKhIIs7vBwBA pzQkYBlLOaGIUNOsKhVS9UH8yXQMqp54hn64EUmDFGeAJxYIcWYZ3gW54Y2w DUdru9VUS117XcsaEhD7sYjWah1bRTTgxbyt+DIN7HgS4g5o.ncUkzXhfQeI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lLRqwivHIWo5s4oF605k6CLxSsGcXriJ52y+3QI s0OLoAg3RpA1f1fOLw4Z.woVv6iOEYhv.FLFijIJr3wP.G0HoO5ZjbGqQBbq QBMVizMEIr8FigRJ0it0PMFLkZuHtIWoVa9HLV36Pi+wMvBdKLvVYCneAvMi xP8lAe1dFY96pgRGSwEudCjixEuVCt3UZv0uNC59UYvkuFCTGrVWu9Bl+y4+ etHTO6A -----------end_max5_patcher-----------

— Reply to this email directly, view it on GitHub https://github.com/ircam-ismm/catart-mubu/issues/82#issuecomment-1525359045, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIRYDCZJPL7U7ZHQEPA5LU3XDJATHANCNFSM6AAAAAAXNRP2XU . You are receiving this because you were assigned.Message ID: @.***>

diemoschwarz commented 1 year ago

you mean like in catart-mubu-tutorial 5b resegment? ;-)

einbond commented 1 year ago

Wow, thanks Diemo and Julien, I obviously missed this feature of chop tutorial 5b!

So Chris, I think we went wrong because we were trying to integrate your yin segmentation with camu.process rather than camu.process2. Should we give it another try and make a demo tutorial 5c?

On Apr 27, 2023, at 2:00 PM, diemo @.***> wrote:

you mean like in catart-mubu-tutorial 5b resegment? ;-)

— Reply to this email directly, view it on GitHub https://github.com/ircam-ismm/catart-mubu/issues/82#issuecomment-1525565877, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADRCSBOTDZTZ6KLQCYHTWKLXDJNVXANCNFSM6AAAAAAXNRP2XU. You are receiving this because you were assigned.

diemoschwarz commented 1 year ago

Hi all, coming back to this, if you think it would be usefull, I could see 3 steps to generalise this: