Forums > MaxMSP

Which round.mxo?

December 30, 2012 | 10:59 pm

Just noticed a warning that I have round.mxo in both Max externals and Jasch externals.

Should I rename the Jasch one to something else?

December 30, 2012 | 11:26 pm

probably. That’s what i did anyway ; i wouldn’t mess with any external of vanilla build.

December 30, 2012 | 11:29 pm

ok — it’s a bit odd (or nuisance) that the jasch collection has an object with the same name. I’m assuming there’s some historical reason for this (perhaps the function behaves slightly differently). I’ll rename it to jasch.round, I suppose.

Hmmm, looking at it, I’m wondering if I need to rename the ’round’ that’s inside the package contents as well?

I think I’ll just delete it for now — it’s in my version control system anyway

December 31, 2012 | 2:07 am

wha tdo you mean by "version control system" ?
Anyway, the jasch round is called round because the jasch library author created that object before the round external was added to vanilla Max (was it one of the Max 5 updates ? or Max 6 ?). Also it indeed does behave quite differently, according to helpfile it’s an "unaltered c function" which outputs floats, and rounds the incoming value to next higher integer ; whereas Max’s round performs a closest-integer rounding. You can recreate this behaviour using the vanilla round by adding 0.499999 to the incoming value, but indeed, it’s not the same operation…

December 31, 2012 | 3:44 am

Yeah, I figured that was the difference.

Version control systems allow developers to keep track of all changes made to files (and groups of related files) over time. Very strongly recommended for both individuals and teams.

See (for example) for more information.

December 31, 2012 | 4:25 am

but i have no idea ho to use such a thing with a max library ! is it your own custom verison control system, or some well known program you’re using ?

December 31, 2012 | 4:31 am

Version control systems are very well known and there are many different kinds. These days I’m using Git (thanks, Peter!)

Viewing 7 posts - 1 through 7 (of 7 total)