[PD-cvs] externals/tb/chaos/src chaos.hpp,1.9,1.10
Tim Blechmann
timblech at users.sourceforge.net
Thu Aug 10 23:23:35 CEST 2006
Update of /cvsroot/pure-data/externals/tb/chaos/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8029
Modified Files:
chaos.hpp
Log Message:
max/msp fix (thanks to thomas for mentioning this)
Index: chaos.hpp
===================================================================
RCS file: /cvsroot/pure-data/externals/tb/chaos/src/chaos.hpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** chaos.hpp 22 Oct 2005 15:11:45 -0000 1.9
--- chaos.hpp 10 Aug 2006 21:23:33 -0000 1.10
***************
*** 1,17 ****
! //
! //
// chaos~
// Copyright (C) 2004 Tim Blechmann
! //
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
! //
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
! //
// You should have received a copy of the GNU General Public License
// along with this program; see the file COPYING. If not, write to
--- 1,17 ----
! //
! //
// chaos~
// Copyright (C) 2004 Tim Blechmann
! //
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
! //
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
! //
// You should have received a copy of the GNU General Public License
// along with this program; see the file COPYING. If not, write to
***************
*** 31,34 ****
--- 31,39 ----
#include <cstdlib>
+ #if FLEXT_SYS != FLEXT_SYS_PD
+ #define PD_BIGORSMALL(f) ((((*(unsigned int*)&(f))&0x60000000)==0) || \
+ (((*(unsigned int*)&(f))&0x60000000)==0x60000000))
+ #endif
+
/* internal we can work with a higher precision than pd */
#ifdef DOUBLE_PRECISION
***************
*** 43,49 ****
{
#ifdef DOUBLE_PRECISION
! return fmod(x,y);
#else
! return fmodf(x,y);
#endif
}
--- 48,54 ----
{
#ifdef DOUBLE_PRECISION
! return fmod(x,y);
#else
! return fmodf(x,y);
#endif
}
***************
*** 51,55 ****
inline data_t rand_range(data_t low, data_t high)
{
! return low + ( (rand() * (high - low)) / RAND_MAX);
}
--- 56,60 ----
inline data_t rand_range(data_t low, data_t high)
{
! return low + ( (rand() * (high - low)) / RAND_MAX);
}
More information about the Pd-cvs
mailing list