Max as ReWire host with transport information

deejaysham's icon

I'm trying to figure out how to run a Max patch as the ReWire host via rewire~ but also get sync and/or transport information from the ReWire slave (Reason in my case).

I can set up the rewire~ connection to get audio coming in from Reason and showing up in my patch. I can also read transport messages that come from Reason like play/stop and position which shows up as 15360 PPQ.

But what I can't do is have a simple transport display update while I'm running. So.. for example a simple need would be to have a second counter showing 0:01, 0:02, 0:03... as the file starts playing.

Is there anyway to get timing sync information from Reason while it's running as a ReWire slave?

craig.deskins's icon

Im trying to figure thi out currently as well. Surprised more people havent come across this issue. Will update if I can figure it out.

craig.deskins's icon

To get back to this, the position number is not in PPQ it is in samples. Rewire communicates in samples, and you will have to convert that info in Max if you want it to display otherwise. Rewire only sends three types of messages to Max. start, stop, and position number(the position of the timeline from the slave program when your press play). Depending on what you are doing, that may be all you need. You can use these three commands to create your own transport however. The position number is static, so you wont get any live info from your slave when you are in play. You would have to create a counter for this. To have the counter reflect the exact play position, you need to add the play position message that you receive from your slave program, and add that to your counter. To be able to use the number you receive from the position message, you have to separate it from the text. This was as easy as using a zl delace object. Basically you can create the live feed and make it as intricate as you want.

Ernest's icon

I'm glad to share testing on a rewire interface. I have Sonar and Ableton Live currenly uninstalled, which according to Wikipedia have rewire interfaces, but I never tried them. I'm about to reinstall Sonar and Live on a new Windows 64-bit machine. I haven't done anything with rewire in about 10 years, there was once an issue with different possible rewire32.dll files on Windows. I don't know if that's still true.