Welcome to %s forums

BrainModular Users Forum

Login Register

Midi Sync in Kiosk app

I need help on a Patch
Post Reply
23fx23
Member
Posts: 2545
Contact:

Midi Sync in Kiosk app

Unread post by 23fx23 » 14 Dec 2023, 01:03

my goal is to export a stand-alone app (kinda slicer tool), that let users sync to their external daw,
however im stuggling a bit to figure out how to activate midi clock sync.

on 'normal' wksp afaik we enable midi clock on the device themselves now, (for ex here i use loopbe to link to ableton, bitwig ect..).

but when the app is exported, it looks like we cannot access devices settings anymore to enable MTC or midi clock on loopbe,
so wonder how can we achieve midi sync in kiosk mode?

Image

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 14 Dec 2023, 01:25

looks like it can be somehow enabled if manually editing the default devices files in a text editor , but feels kinda 'hacky' :p

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 14 Dec 2023, 04:08

Did a patch as a workaround,
queing / filtering /averaging pulses durations in a buffer, that get precise enough bpm
a bit 'laggy' tho as smoothing involved, but once reached ok, just restart other daw does the job.
for ppl like me too lasy to manually enter bpm lol.

(usine build in would prob do a better job tho cause here it is limited by bloc resolution..)

but if some are interested, link to vid test with ableton where tempis matchs nicely:
https://drive.google.com/file/d/1RoT_UJ ... sp=sharing

hh5 patch:
https://drive.google.com/file/d/1nvHVeP ... sp=sharing

User avatar
rlgsbt
Member
Posts: 187
Location: Marseille
Contact:

Unread post by rlgsbt » 14 Dec 2023, 07:03

great job.
thanks

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 14 Dec 2023, 08:21

cool if can be useful,

found an enhancing method: to count received pulses, and when reached NB_BARS * 4(beats)*24 (mtc beeing 24 pulse per bar) force an usine cycle restart.
so far tested for a very long time with Live and FL, it remained sync as restarting if eventually drifted.

problem remaining tho, is man can't really 'jump' to a different song pos or loop ect from host with midi..

best would be Ableton Link i think...
Ive seen they provide sdk on their site, might attempt to test if something could be done as a user module..

User avatar
oli_lab
Member
Posts: 1263
Location: Brittany, France
Contact:

Unread post by oli_lab » 14 Dec 2023, 14:46

best would be Ableton Link i think...
Ive seen they provide sdk on their site, might attempt to test if something could be done as a user module..
Hi !

I was thinking of that, but since I never use any sync in my music production, I'm lacking motivation to build such a module !

Anyway, next week I may have time to help you if necessary !

Cheers

Olivar
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 14 Dec 2023, 18:25

oli_lab wrote:
14 Dec 2023, 14:46
I was thinking of that, but since I never use any sync in my music production, I'm lacking motivation to build such a module !

Anyway, next week I may have time to help you if necessary !
Oh nice, yeah that has been a very, very long time i didn't put fingerz in usine sdk, might so have few questions, hehe cool^^

I managed to build one ex i found with juce sampler, at first it was total crap but cause i wasn't using asio,
finally got it up working not bad already, so got some hopes!

test vid:
https://drive.google.com/file/d/1mfscIP ... sp=sharing

User avatar
oli_lab
Member
Posts: 1263
Location: Brittany, France
Contact:

Unread post by oli_lab » 15 Dec 2023, 00:02

Hi !

this will do the trick :
always midi in kiosk mode.PNG
always midi in kiosk mode.PNG (10.98 KiB) Viewed 37225 times
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 15 Dec 2023, 01:36

oh nice, will try, but doesn't that just activate them, or does that also activates their MTC?
cause problem here was by default usine doesn't 'sync' and start/stop responding to mtc in kiosk mode , while it was in wksp if activated
(the midi in global will receibve datas, but not 'usine engine' itself, dk if see what i mean)

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 15 Dec 2023, 01:44

Oh yeah seems to works! got mtc , great good find Oli thanks :) !

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 15 Dec 2023, 02:00

mmmm well i went too quickly... was using my wksp that had my workaround subpatch usinf modules already in, so thought it was working^^

so sadly nope forcing scaning/enabling midi devices on init doesn't enable main engine mtc controlling transport,
what is needed is those options, but im not sure the can be acceced via patch (mean for the user, in kiosk mode)., maye with setup string or something.. worse case could prob to a script that edit devices text files maybe...
Image

when those are enabled on a 'normal' wksp, there is no midi modules or patch needed, the 'engine' itself directlt respond to ext daw midi sync and align tempo to clock, that would be quite convenienant to still have that ability in kiosk i think.

User avatar
oli_lab
Member
Posts: 1263
Location: Brittany, France
Contact:

Unread post by oli_lab » 18 Dec 2023, 11:55

I guess you can get the MTC from the global midi and a MTC module.
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 18 Dec 2023, 17:07

yeah, thats what i did in previously mentioned 'workaround' patch, but then man also have to re build a stable clock and master sync from that..,
(wich is also limited by bloc resolution), thats what i did, but involved lot of stuff, queing in array, averaging ect.. so i really feel its far less efficient and precise than the 'build' in one from engine, iirc that why olivier moved it to devices themsefs at some point. so, idk ill prob script something that will edit the files..
the patch:
https://drive.google.com/file/d/1RoT_UJ ... TnAl_/view

Post Reply

Who is online

Users browsing this forum: No registered users and 69 guests