Le 13/07/11 14:29, IOhannes m zmoelnig a écrit :
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2011-07-13 14:20, Nicolas Montgermont wrote:
Before going further (tabread~, tabread4,...) I wanted to know if someone has already done something similar or if you have advices on names and behavior.
i think thomas musil did something like a "double precision table library" once, using the same approach.
can i find it on the svn?
i simultaneously worked on the problem with the totally different approach of making Pd "double precision" aware.
thomas is on holidays right now (won't be back before august), and i would be interested in what failed to work when using PD_FLOATTYPE=double.
I use #define PD_FLOATTYPE double before including m_pd.h in an external.
it compiles but it occurred to me that i have to recompile Pd with the same definition to test it, that was not what i searched cause i prefer to use "standard" pd and to add externals.
with the [tabread_double] paradigm, it'll work regarding any floattype of the Pd used. otoh, im' not sure i can manage transparent operation keeping the precision i want, i mean building an abstraction that takes as an input a float that can be bigger than 2^24 and that automaticcaly use tabread_double or tabwrite_double the good way. Maybe i'll need to do a special + - or % / or >> << to achieve that. mmm tricky n