[PD] equal tempered scale object available

Mathieu Bouchard matju at sympatico.ca
Sat Nov 27 19:56:18 CET 2004


On Sat, 27 Nov 2004, Frank Barknecht wrote:

> > (caveat: ideally, % and int would be replaced by mod and floor, but the
> > latter aren't in pd afaik)
> "mod" is, AFAIK.

But there is no trivial way to make a flooring division, which is the
complementary operation of mod.

The basic pattern of decomposing X into An+B where A,B are integers and B
is taken from a finite set, is typically done in two ways, one being done
with % and / and int, and the other being done with mod and / and floor.
But floor is missing. If you use mod with int then you are getting results
not consistent with the usual X=An+B assumption, which is not nice.

Or is floor available under another name?

_____________________________________________________________________
Mathieu Bouchard -=- Montréal QC Canada -=- http://artengine.ca/matju





More information about the Pd-list mailing list