hostsync~ vs. transport

Learn about building and using Max for Live devices.
Post Reply
gato.rui
Posts: 25
Joined: Thu Sep 17, 2009 3:26 pm

hostsync~ vs. transport

Post by gato.rui » Fri Sep 18, 2009 5:12 pm

hi,

i'm porting a max 5 patch to MFL, a sequencer built by Lo-Fi Massahkah called Instamatic

it uses hostsync~ to get the timming info from Live, and now i want to use the transport object, witch i think is the most correct object to get tempo information from live.

the problem is that the hostsync~ raw ticks output is different from the transport raw ticks output

any clues how to make the adaptation?

thanks!

pukunui
Posts: 405
Joined: Thu Jan 29, 2009 10:26 pm
Location: Los Angeles

Re: hostsync~ vs. transport

Post by pukunui » Fri Sep 18, 2009 5:28 pm

Use a

phasor~ @frequency 1 0 0 bars.beats.units @lock 1

To get an audio ramp over the length of one bar, then subdivide it as you need to.


-A

gato.rui
Posts: 25
Joined: Thu Sep 17, 2009 3:26 pm

Re: hostsync~ vs. transport

Post by gato.rui » Fri Sep 18, 2009 6:49 pm

thank you for the fast reply pukunui,

seems out that the raw ticks sent by the transport object differ from the hostsync~ because they needed to be divided by the resolution (in this case /480)

problem solved, port done! really tight sync now :)

Machinate
Posts: 11648
Joined: Thu Jun 24, 2004 2:15 pm
Location: Denmark

Re: hostsync~ vs. transport

Post by Machinate » Tue Sep 22, 2009 9:38 am

@gato.rui
could you post the code here?

cheers
mbp 2.66, osx 10.6.8, 8GB ram.

gato.rui
Posts: 25
Joined: Thu Sep 17, 2009 3:26 pm

Re: hostsync~ vs. transport

Post by gato.rui » Tue Sep 22, 2009 1:24 pm

No problem, do you want the full instamatic port or just the transport section?

Machinate
Posts: 11648
Joined: Thu Jun 24, 2004 2:15 pm
Location: Denmark

Re: hostsync~ vs. transport

Post by Machinate » Tue Sep 22, 2009 1:58 pm

the whole shebang :)

For some reason I can't find my instamatic files round here.
mbp 2.66, osx 10.6.8, 8GB ram.

gato.rui
Posts: 25
Joined: Thu Sep 17, 2009 3:26 pm

Re: hostsync~ vs. transport

Post by gato.rui » Tue Sep 22, 2009 5:14 pm

here goes:

http://www.how.pt/gato/insta.zip

it contains my lemur template, and the m4L patch

i have my OSC target 1 settings pointing to 10.0.0.11 9000

and my lemur on static ip 10.0.0.12


i'm testing the sync by recording to another live midi track, and i get a little offset of about :

1/4096 with the fireface buffer size of 128 samples

1/8192 with the fireface buffer size of 96 samples

cheers

Lo-Fi Massahkah
Posts: 3604
Joined: Fri Jun 04, 2004 2:57 pm
Location: The south east suburbs of Malmö, Sweden.

Re: hostsync~ vs. transport

Post by Lo-Fi Massahkah » Sat Sep 26, 2009 7:25 am

Oooohhh... Sharing! :wink: :D

.m

Post Reply