Page 1 of 1
Midi Sync in Kiosk app
Posted: 14 Dec 2023, 01:03
by 23fx23
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?

Re: Midi Sync in Kiosk app
Posted: 14 Dec 2023, 01:25
by 23fx23
looks like it can be somehow enabled if manually editing the default devices files in a text editor , but feels kinda 'hacky' :p
Re: Midi Sync in Kiosk app
Posted: 14 Dec 2023, 04:08
by 23fx23
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
Re: Midi Sync in Kiosk app
Posted: 14 Dec 2023, 07:03
by rlgsbt
great job.
thanks
Re: Midi Sync in Kiosk app
Posted: 14 Dec 2023, 08:21
by 23fx23
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..
Re: Midi Sync in Kiosk app
Posted: 14 Dec 2023, 14:46
by oli_lab
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
Re: Midi Sync in Kiosk app
Posted: 14 Dec 2023, 18:25
by 23fx23
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
Re: Midi Sync in Kiosk app
Posted: 15 Dec 2023, 00:02
by oli_lab
Hi !
this will do the trick :

- always midi in kiosk mode.PNG (10.98 KiB) Viewed 37228 times
Re: Midi Sync in Kiosk app
Posted: 15 Dec 2023, 01:36
by 23fx23
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)
Re: Midi Sync in Kiosk app
Posted: 15 Dec 2023, 01:44
by 23fx23
Oh yeah seems to works! got mtc , great good find Oli thanks

!
Re: Midi Sync in Kiosk app
Posted: 15 Dec 2023, 02:00
by 23fx23
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...
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.
Re: Midi Sync in Kiosk app
Posted: 18 Dec 2023, 11:55
by oli_lab
I guess you can get the MTC from the global midi and a MTC module.
Re: Midi Sync in Kiosk app
Posted: 18 Dec 2023, 17:07
by 23fx23
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