Update of /cvsroot/pure-data/externals/iemlib/src/iemlib1 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11280/src/iemlib1
Modified Files: biquad_freq_resp.c iemlib.h iemlib1.dsp iemlib1.dsw makefile makefile_win sigfilter.c sighml_shelf.c siglp1_t.c sigpara_bp2.c sigpeakenv.c sigprvu.c sigpvu.c sigrvu.c sigvcf_filter.c split.c Log Message: sync with last iem 1.15 !
Index: biquad_freq_resp.c =================================================================== RCS file: /cvsroot/pure-data/externals/iemlib/src/iemlib1/biquad_freq_resp.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** biquad_freq_resp.c 18 May 2004 21:33:28 -0000 1.1.1.1 --- biquad_freq_resp.c 9 Mar 2005 17:15:59 -0000 1.2 *************** *** 90,92 **** class_addlist(biquad_freq_resp_class, (t_method)biquad_freq_resp_list); class_sethelpsymbol(biquad_freq_resp_class, gensym("iemhelp/help-biquad_freq_resp")); ! } \ No newline at end of file --- 90,92 ---- class_addlist(biquad_freq_resp_class, (t_method)biquad_freq_resp_list); class_sethelpsymbol(biquad_freq_resp_class, gensym("iemhelp/help-biquad_freq_resp")); ! }
Index: iemlib.h =================================================================== RCS file: /cvsroot/pure-data/externals/iemlib/src/iemlib1/iemlib.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** iemlib.h 18 May 2004 21:33:29 -0000 1.1.1.1 --- iemlib.h 9 Mar 2005 17:15:59 -0000 1.2 *************** *** 96,98 **** --- 96,100 ---- };
+ #define IEM_DENORMAL(f) !(*(unsigned int*)&(f))&0x60000000 + #endif
Index: siglp1_t.c =================================================================== RCS file: /cvsroot/pure-data/externals/iemlib/src/iemlib1/siglp1_t.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** siglp1_t.c 18 May 2004 21:33:30 -0000 1.1.1.1 --- siglp1_t.c 9 Mar 2005 17:15:59 -0000 1.2 *************** *** 78,82 **** } /* NAN protect */ ! if(PD_BADFLOAT(yn1)) yn1 = 0.0f; x->yn1 = yn1; --- 78,82 ---- } /* NAN protect */ ! if(IEM_DENORMAL(yn1)) yn1 = 0.0f; x->yn1 = yn1; *************** *** 116,120 **** } /* NAN protect */ ! if(PD_BADFLOAT(yn[0])) yn[0] = 0.0f;
--- 116,120 ---- } /* NAN protect */ ! if(IEM_DENORMAL(yn[0])) yn[0] = 0.0f;
Index: sigpvu.c =================================================================== RCS file: /cvsroot/pure-data/externals/iemlib/src/iemlib1/sigpvu.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** sigpvu.c 18 May 2004 21:33:30 -0000 1.1.1.1 --- sigpvu.c 9 Mar 2005 17:15:59 -0000 1.2 *************** *** 130,134 **** x->x_old_peak *= x->x_c1; /* NAN protect */ ! if(PD_BADFLOAT(x->x_old_peak)) x->x_old_peak = 0.0f;
--- 130,134 ---- x->x_old_peak *= x->x_c1; /* NAN protect */ ! if(IEM_DENORMAL(x->x_old_peak)) x->x_old_peak = 0.0f;
Index: sigvcf_filter.c =================================================================== RCS file: /cvsroot/pure-data/externals/iemlib/src/iemlib1/sigvcf_filter.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** sigvcf_filter.c 18 May 2004 21:33:30 -0000 1.1.1.1 --- sigvcf_filter.c 9 Mar 2005 17:15:59 -0000 1.2 *************** *** 111,117 **** } /* NAN protect */ ! if(PD_BADFLOAT(wn2)) wn2 = 0.0f; ! if(PD_BADFLOAT(wn1)) wn1 = 0.0f;
--- 111,117 ---- } /* NAN protect */ ! if(IEM_DENORMAL(wn2)) wn2 = 0.0f; ! if(IEM_DENORMAL(wn1)) wn1 = 0.0f;
*************** *** 166,172 **** } /* NAN protect */ ! if(PD_BADFLOAT(wn2)) wn2 = 0.0f; ! if(PD_BADFLOAT(wn1)) wn1 = 0.0f;
--- 166,172 ---- } /* NAN protect */ ! if(IEM_DENORMAL(wn2)) wn2 = 0.0f; ! if(IEM_DENORMAL(wn1)) wn1 = 0.0f;
*************** *** 221,227 **** } /* NAN protect */ ! if(PD_BADFLOAT(wn2)) wn2 = 0.0f; ! if(PD_BADFLOAT(wn1)) wn1 = 0.0f;
--- 221,227 ---- } /* NAN protect */ ! if(IEM_DENORMAL(wn2)) wn2 = 0.0f; ! if(IEM_DENORMAL(wn1)) wn1 = 0.0f;
*************** *** 276,282 **** } /* NAN protect */ ! if(PD_BADFLOAT(wn2)) wn2 = 0.0f; ! if(PD_BADFLOAT(wn1)) wn1 = 0.0f;
--- 276,282 ---- } /* NAN protect */ ! if(IEM_DENORMAL(wn2)) wn2 = 0.0f; ! if(IEM_DENORMAL(wn1)) wn1 = 0.0f;
Index: makefile_win =================================================================== RCS file: /cvsroot/pure-data/externals/iemlib/src/iemlib1/makefile_win,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** makefile_win 18 May 2004 21:33:29 -0000 1.1.1.1 --- makefile_win 9 Mar 2005 17:15:59 -0000 1.2 *************** *** 1,61 **** ! ! all: ....\lib\iemlib1.dll ! ! VIS_CPP_PATH = "C:\Programme\Microsoft Visual Studio\Vc98" ! ! PD_INST_PATH = "C:\Programme\pd" ! ! PD_WIN_INCLUDE_PATH = /I. /I$(PD_INST_PATH)\src /I$(VIS_CPP_PATH)\include ! ! PD_WIN_C_FLAGS = /nologo /W3 /WX /DMSW /DNT /DPD /DWIN32 /DWINDOWS /Ox -DPA_LITTLE_ENDIAN ! ! PD_WIN_L_FLAGS = /nologo ! ! PD_WIN_LIB = /NODEFAULTLIB:libc /NODEFAULTLIB:oldnames /NODEFAULTLIB:kernel /NODEFAULTLIB:uuid \ ! $(VIS_CPP_PATH)\lib\libc.lib \ ! $(VIS_CPP_PATH)\lib\oldnames.lib \ ! $(VIS_CPP_PATH)\lib\kernel32.lib \ ! $(VIS_CPP_PATH)\lib\wsock32.lib \ ! $(VIS_CPP_PATH)\lib\winmm.lib \ ! $(PD_INST_PATH)\bin\pthreadVC.lib \ ! $(PD_INST_PATH)\bin\pd.lib ! ! ! SRC = biquad_freq_resp.c \ ! db2v.c \ ! f2note.c \ ! forpp.c \ ! gate.c \ ! sigfilter.c \ ! sigFIR.c \ ! sighml_shelf.c \ ! sigiem_cot4.c \ ! sigiem_delay.c \ ! sigiem_sqrt4.c \ ! sigiem_pow4.c \ ! siglp1_t.c \ ! sigmov_avrg_kern.c \ ! sigpara_bp2.c \ ! sigpeakenv.c \ ! sigprvu.c \ ! sigpvu.c \ ! sigrvu.c \ ! sigsin_phase.c \ ! sigvcf_filter.c \ ! soundfile_info.c \ ! split.c \ ! v2db.c \ ! iemlib1.c ! ! ! OBJ = $(SRC:.c=.obj) ! ! .c.obj: ! cl $(PD_WIN_C_FLAGS) $(PD_WIN_INCLUDE_PATH) /c $*.c ! ! ....\lib\iemlib1.dll: $(OBJ) ! link $(PD_WIN_L_FLAGS) /dll /export:iemlib1_setup \ ! /out:....\lib\iemlib1.dll $(OBJ) $(PD_WIN_LIB) ! ! clean: ! del *.obj --- 1,61 ---- ! ! all: ....\lib\iemlib1.dll ! ! VIS_CPP_PATH = "C:\Programme\Microsoft Visual Studio\Vc98" ! ! PD_INST_PATH = "C:\Programme\pd-0.37-3" ! ! PD_WIN_INCLUDE_PATH = /I. /I$(PD_INST_PATH)\src /I$(VIS_CPP_PATH)\include ! ! PD_WIN_C_FLAGS = /nologo /W3 /WX /DMSW /DNT /DPD /DWIN32 /DWINDOWS /Ox -DPA_LITTLE_ENDIAN ! ! PD_WIN_L_FLAGS = /nologo ! ! PD_WIN_LIB = /NODEFAULTLIB:libc /NODEFAULTLIB:oldnames /NODEFAULTLIB:kernel /NODEFAULTLIB:uuid \ ! $(VIS_CPP_PATH)\lib\libc.lib \ ! $(VIS_CPP_PATH)\lib\oldnames.lib \ ! $(VIS_CPP_PATH)\lib\kernel32.lib \ ! $(VIS_CPP_PATH)\lib\wsock32.lib \ ! $(VIS_CPP_PATH)\lib\winmm.lib \ ! $(PD_INST_PATH)\bin\pthreadVC.lib \ ! $(PD_INST_PATH)\bin\pd.lib ! ! ! SRC = biquad_freq_resp.c \ ! db2v.c \ ! f2note.c \ ! forpp.c \ ! gate.c \ ! sigfilter.c \ ! sigFIR.c \ ! sighml_shelf.c \ ! sigiem_cot4.c \ ! sigiem_delay.c \ ! sigiem_sqrt4.c \ ! sigiem_pow4.c \ ! siglp1_t.c \ ! sigmov_avrg_kern.c \ ! sigpara_bp2.c \ ! sigpeakenv.c \ ! sigprvu.c \ ! sigpvu.c \ ! sigrvu.c \ ! sigsin_phase.c \ ! sigvcf_filter.c \ ! soundfile_info.c \ ! split.c \ ! v2db.c \ ! iemlib1.c ! ! ! OBJ = $(SRC:.c=.obj) ! ! .c.obj: ! cl $(PD_WIN_C_FLAGS) $(PD_WIN_INCLUDE_PATH) /c $*.c ! ! ....\lib\iemlib1.dll: $(OBJ) ! link $(PD_WIN_L_FLAGS) /dll /export:iemlib1_setup \ ! /out:....\lib\iemlib1.dll $(OBJ) $(PD_WIN_LIB) ! ! clean: ! del *.obj
Index: makefile =================================================================== RCS file: /cvsroot/pure-data/externals/iemlib/src/iemlib1/makefile,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** makefile 18 May 2004 21:33:29 -0000 1.1.1.1 --- makefile 9 Mar 2005 17:15:59 -0000 1.2 *************** *** 3,7 **** .SUFFIXES: .pd_linux
! INCLUDE = -I. -I/usr/local/src/pd/src
LDFLAGS = -export-dynamic -shared --- 3,7 ---- .SUFFIXES: .pd_linux
! INCLUDE = -I. -I/usr/local/src/pd-0.37-4/src
LDFLAGS = -export-dynamic -shared *************** *** 10,14 **** #select either the DBG and OPT compiler flags below:
! CFLAGS = -DPD -DUNIX -Wall -W -Werror -Wno-unused \ -Wno-parentheses -Wno-switch -O6 -funroll-loops -fomit-frame-pointer \ -DDL_OPEN --- 10,14 ---- #select either the DBG and OPT compiler flags below:
! CFLAGS = -DPD -DUNIX -W -Werror -Wno-unused \ -Wno-parentheses -Wno-switch -O6 -funroll-loops -fomit-frame-pointer \ -DDL_OPEN
Index: sigpeakenv.c =================================================================== RCS file: /cvsroot/pure-data/externals/iemlib/src/iemlib1/sigpeakenv.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** sigpeakenv.c 18 May 2004 21:33:30 -0000 1.1.1.1 --- sigpeakenv.c 9 Mar 2005 17:15:59 -0000 1.2 *************** *** 63,67 **** } /* NAN protect */ ! if(PD_BADFLOAT(peak)) peak = 0.0f; x->x_old_peak = peak; --- 63,67 ---- } /* NAN protect */ ! if(IEM_DENORMAL(peak)) peak = 0.0f; x->x_old_peak = peak;
Index: sigpara_bp2.c =================================================================== RCS file: /cvsroot/pure-data/externals/iemlib/src/iemlib1/sigpara_bp2.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** sigpara_bp2.c 18 May 2004 21:33:30 -0000 1.1.1.1 --- sigpara_bp2.c 9 Mar 2005 17:15:59 -0000 1.2 *************** *** 177,183 **** } /* NAN protect */ ! if(PD_BADFLOAT(wn2)) wn2 = 0.0f; ! if(PD_BADFLOAT(wn1)) wn1 = 0.0f;
--- 177,183 ---- } /* NAN protect */ ! if(IEM_DENORMAL(wn2)) wn2 = 0.0f; ! if(IEM_DENORMAL(wn1)) wn1 = 0.0f;
*************** *** 232,238 **** } /* NAN protect */ ! if(PD_BADFLOAT(wn[0])) wn[0] = 0.0f; ! if(PD_BADFLOAT(wn[1])) wn[1] = 0.0f;
--- 232,238 ---- } /* NAN protect */ ! if(IEM_DENORMAL(wn[0])) wn[0] = 0.0f; ! if(IEM_DENORMAL(wn[1])) wn[1] = 0.0f;
*************** *** 303,307 **** x->x_at[3].a_w.w_float = x->a1; x->x_at[4].a_w.w_float = x->a2; ! outlet_list(x->x_debug_outlet, &s_list, 5, x->x_at); post("fb1 = %g, fb2 = %g, ff1 = %g, ff2 = %g, ff3 = %g", x->b1, x->b2, x->a0, x->a1, x->a2); }
--- 303,307 ---- x->x_at[3].a_w.w_float = x->a1; x->x_at[4].a_w.w_float = x->a2; ! outlet_list(x->x_debug_outlet, &s_list, 5, x->x_at); }
Index: iemlib1.dsp =================================================================== RCS file: /cvsroot/pure-data/externals/iemlib/src/iemlib1/iemlib1.dsp,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** iemlib1.dsp 18 May 2004 21:33:29 -0000 1.1.1.1 --- iemlib1.dsp 9 Mar 2005 17:15:59 -0000 1.2 *************** *** 1,85 **** ! # Microsoft Developer Studio Project File - Name="iemlib1" - Package Owner=<4> ! # Microsoft Developer Studio Generated Build File, Format Version 6.00 ! # ** NICHT BEARBEITEN ** ! ! # TARGTYPE "Win32 (x86) External Target" 0x0106 ! ! CFG=iemlib1 - Win32 Debug ! !MESSAGE Dies ist kein gültiges Makefile. Zum Erstellen dieses Projekts mit NMAKE ! !MESSAGE verwenden Sie den Befehl "Makefile exportieren" und führen Sie den Befehl ! !MESSAGE ! !MESSAGE NMAKE /f "iemlib1.mak". ! !MESSAGE ! !MESSAGE Sie können beim Ausführen von NMAKE eine Konfiguration angeben ! !MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel: ! !MESSAGE ! !MESSAGE NMAKE /f "iemlib1.mak" CFG="iemlib1 - Win32 Debug" ! !MESSAGE ! !MESSAGE Für die Konfiguration stehen zur Auswahl: ! !MESSAGE ! !MESSAGE "iemlib1 - Win32 Release" (basierend auf "Win32 (x86) External Target") ! !MESSAGE "iemlib1 - Win32 Debug" (basierend auf "Win32 (x86) External Target") ! !MESSAGE ! ! # Begin Project ! # PROP AllowPerConfigDependencies 0 ! # PROP Scc_ProjName "" ! # PROP Scc_LocalPath "" ! ! !IF "$(CFG)" == "iemlib1 - Win32 Release" ! ! # PROP BASE Use_Debug_Libraries 0 ! # PROP BASE Output_Dir "Release" ! # PROP BASE Intermediate_Dir "Release" ! # PROP BASE Cmd_Line "NMAKE /f makefile_win" ! # PROP BASE Rebuild_Opt "/a" ! # PROP BASE Target_File "makefile_win.exe" ! # PROP BASE Bsc_Name "makefile_win.bsc" ! # PROP BASE Target_Dir "" ! # PROP Use_Debug_Libraries 0 ! # PROP Output_Dir "Release" ! # PROP Intermediate_Dir "Release" ! # PROP Cmd_Line "NMAKE /f makefile_win" ! # PROP Rebuild_Opt "/a" ! # PROP Target_File "iemlib1.exe" ! # PROP Bsc_Name "iemlib1.bsc" ! # PROP Target_Dir "" ! ! !ELSEIF "$(CFG)" == "iemlib1 - Win32 Debug" ! ! # PROP BASE Use_Debug_Libraries 1 ! # PROP BASE Output_Dir "Debug" ! # PROP BASE Intermediate_Dir "Debug" ! # PROP BASE Cmd_Line "NMAKE /f makefile_win" ! # PROP BASE Rebuild_Opt "/a" ! # PROP BASE Target_File "makefile_win.exe" ! # PROP BASE Bsc_Name "makefile_win.bsc" ! # PROP BASE Target_Dir "" ! # PROP Use_Debug_Libraries 1 ! # PROP Output_Dir "Debug" ! # PROP Intermediate_Dir "Debug" ! # PROP Cmd_Line "NMAKE /f makefile_win" ! # PROP Rebuild_Opt "/a" ! # PROP Target_File "iemlib1.exe" ! # PROP Bsc_Name "iemlib1.bsc" ! # PROP Target_Dir "" ! ! !ENDIF ! ! # Begin Target ! ! # Name "iemlib1 - Win32 Release" ! # Name "iemlib1 - Win32 Debug" ! ! !IF "$(CFG)" == "iemlib1 - Win32 Release" ! ! !ELSEIF "$(CFG)" == "iemlib1 - Win32 Debug" ! ! !ENDIF ! ! # Begin Source File ! ! SOURCE=.\makefile_win ! # End Source File ! # End Target ! # End Project --- 1,85 ---- ! # Microsoft Developer Studio Project File - Name="iemlib1" - Package Owner=<4> ! # Microsoft Developer Studio Generated Build File, Format Version 6.00 ! # ** NICHT BEARBEITEN ** ! ! # TARGTYPE "Win32 (x86) External Target" 0x0106 ! ! CFG=iemlib1 - Win32 Debug ! !MESSAGE Dies ist kein gültiges Makefile. Zum Erstellen dieses Projekts mit NMAKE ! !MESSAGE verwenden Sie den Befehl "Makefile exportieren" und führen Sie den Befehl ! !MESSAGE ! !MESSAGE NMAKE /f "iemlib1.mak". ! !MESSAGE ! !MESSAGE Sie können beim Ausführen von NMAKE eine Konfiguration angeben ! !MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel: ! !MESSAGE ! !MESSAGE NMAKE /f "iemlib1.mak" CFG="iemlib1 - Win32 Debug" ! !MESSAGE ! !MESSAGE Für die Konfiguration stehen zur Auswahl: ! !MESSAGE ! !MESSAGE "iemlib1 - Win32 Release" (basierend auf "Win32 (x86) External Target") ! !MESSAGE "iemlib1 - Win32 Debug" (basierend auf "Win32 (x86) External Target") ! !MESSAGE ! ! # Begin Project ! # PROP AllowPerConfigDependencies 0 ! # PROP Scc_ProjName "" ! # PROP Scc_LocalPath "" ! ! !IF "$(CFG)" == "iemlib1 - Win32 Release" ! ! # PROP BASE Use_Debug_Libraries 0 ! # PROP BASE Output_Dir "Release" ! # PROP BASE Intermediate_Dir "Release" ! # PROP BASE Cmd_Line "NMAKE /f makefile_win" ! # PROP BASE Rebuild_Opt "/a" ! # PROP BASE Target_File "makefile_win.exe" ! # PROP BASE Bsc_Name "makefile_win.bsc" ! # PROP BASE Target_Dir "" ! # PROP Use_Debug_Libraries 0 ! # PROP Output_Dir "Release" ! # PROP Intermediate_Dir "Release" ! # PROP Cmd_Line "NMAKE /f makefile_win" ! # PROP Rebuild_Opt "/a" ! # PROP Target_File "iemlib1.exe" ! # PROP Bsc_Name "iemlib1.bsc" ! # PROP Target_Dir "" ! ! !ELSEIF "$(CFG)" == "iemlib1 - Win32 Debug" ! ! # PROP BASE Use_Debug_Libraries 1 ! # PROP BASE Output_Dir "Debug" ! # PROP BASE Intermediate_Dir "Debug" ! # PROP BASE Cmd_Line "NMAKE /f makefile_win" ! # PROP BASE Rebuild_Opt "/a" ! # PROP BASE Target_File "makefile_win.exe" ! # PROP BASE Bsc_Name "makefile_win.bsc" ! # PROP BASE Target_Dir "" ! # PROP Use_Debug_Libraries 1 ! # PROP Output_Dir "Debug" ! # PROP Intermediate_Dir "Debug" ! # PROP Cmd_Line "NMAKE /f makefile_win" ! # PROP Rebuild_Opt "/a" ! # PROP Target_File "iemlib1.exe" ! # PROP Bsc_Name "iemlib1.bsc" ! # PROP Target_Dir "" ! ! !ENDIF ! ! # Begin Target ! ! # Name "iemlib1 - Win32 Release" ! # Name "iemlib1 - Win32 Debug" ! ! !IF "$(CFG)" == "iemlib1 - Win32 Release" ! ! !ELSEIF "$(CFG)" == "iemlib1 - Win32 Debug" ! ! !ENDIF ! ! # Begin Source File ! ! SOURCE=.\makefile_win ! # End Source File ! # End Target ! # End Project
Index: sigfilter.c =================================================================== RCS file: /cvsroot/pure-data/externals/iemlib/src/iemlib1/sigfilter.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** sigfilter.c 18 May 2004 21:33:29 -0000 1.1.1.1 --- sigfilter.c 9 Mar 2005 17:15:59 -0000 1.2 *************** *** 352,358 **** } /* NAN protect */ ! if(PD_BADFLOAT(wn2)) wn2 = 0.0f; ! if(PD_BADFLOAT(wn1)) wn1 = 0.0f;
--- 352,358 ---- } /* NAN protect */ ! if(IEM_DENORMAL(wn2)) wn2 = 0.0f; ! if(IEM_DENORMAL(wn1)) wn1 = 0.0f;
*************** *** 407,413 **** } /* NAN protect */ ! if(PD_BADFLOAT(wn[0])) wn[0] = 0.0f; ! if(PD_BADFLOAT(wn[1])) wn[1] = 0.0f;
--- 407,413 ---- } /* NAN protect */ ! if(IEM_DENORMAL(wn[0])) wn[0] = 0.0f; ! if(IEM_DENORMAL(wn[1])) wn[1] = 0.0f;
*************** *** 435,439 **** } /* NAN protect */ ! if(PD_BADFLOAT(wn1)) wn1 = 0.0f;
--- 435,439 ---- } /* NAN protect */ ! if(IEM_DENORMAL(wn1)) wn1 = 0.0f;
*************** *** 475,479 **** } /* NAN protect */ ! if(PD_BADFLOAT(wn[0])) wn[0] = 0.0f;
--- 475,479 ---- } /* NAN protect */ ! if(IEM_DENORMAL(wn[0])) wn[0] = 0.0f;
Index: sighml_shelf.c =================================================================== RCS file: /cvsroot/pure-data/externals/iemlib/src/iemlib1/sighml_shelf.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** sighml_shelf.c 18 May 2004 21:33:29 -0000 1.1.1.1 --- sighml_shelf.c 9 Mar 2005 17:15:59 -0000 1.2 *************** *** 289,295 **** } /* NAN protect */ ! if(PD_BADFLOAT(wn2)) wn2 = 0.0f; ! if(PD_BADFLOAT(wn1)) wn1 = 0.0f;
--- 289,295 ---- } /* NAN protect */ ! if(IEM_DENORMAL(wn2)) wn2 = 0.0f; ! if(IEM_DENORMAL(wn1)) wn1 = 0.0f;
*************** *** 344,350 **** } /* NAN protect */ ! if(PD_BADFLOAT(wn[0])) wn[0] = 0.0f; ! if(PD_BADFLOAT(wn[1])) wn[1] = 0.0f;
--- 344,350 ---- } /* NAN protect */ ! if(IEM_DENORMAL(wn[0])) wn[0] = 0.0f; ! if(IEM_DENORMAL(wn[1])) wn[1] = 0.0f;
Index: sigprvu.c =================================================================== RCS file: /cvsroot/pure-data/externals/iemlib/src/iemlib1/sigprvu.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** sigprvu.c 18 May 2004 21:33:30 -0000 1.1.1.1 --- sigprvu.c 9 Mar 2005 17:15:59 -0000 1.2 *************** *** 161,165 **** x->x_old_peak *= c1; /* NAN protect */ ! if(PD_BADFLOAT(x->x_old_peak)) x->x_old_peak = 0.0f;
--- 161,165 ---- x->x_old_peak *= c1; /* NAN protect */ ! if(IEM_DENORMAL(x->x_old_peak)) x->x_old_peak = 0.0f;
*************** *** 192,196 **** cur_rms = (1.0f - c1)*x->x_sum_rms*x->x_rcp + c1*x->x_old_rms; /* NAN protect */ ! if(PD_BADFLOAT(cur_rms)) cur_rms = 0.0f;
--- 192,196 ---- cur_rms = (1.0f - c1)*x->x_sum_rms*x->x_rcp + c1*x->x_old_rms; /* NAN protect */ ! if(IEM_DENORMAL(cur_rms)) cur_rms = 0.0f;
Index: iemlib1.dsw =================================================================== RCS file: /cvsroot/pure-data/externals/iemlib/src/iemlib1/iemlib1.dsw,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** iemlib1.dsw 18 May 2004 21:33:29 -0000 1.1.1.1 --- iemlib1.dsw 9 Mar 2005 17:15:59 -0000 1.2 *************** *** 1,29 **** ! Microsoft Developer Studio Workspace File, Format Version 6.00 ! # WARNUNG: DIESE ARBEITSBEREICHSDATEI DARF NICHT BEARBEITET ODER GELÖSCHT WERDEN! ! ! ############################################################################### ! ! Project: "iemlib1"=.\iemlib1.dsp - Package Owner=<4> ! ! Package=<5> ! {{{ ! }}} ! ! Package=<4> ! {{{ ! }}} ! ! ############################################################################### ! ! Global: ! ! Package=<5> ! {{{ ! }}} ! ! Package=<3> ! {{{ ! }}} ! ! ############################################################################### ! --- 1,29 ---- ! Microsoft Developer Studio Workspace File, Format Version 6.00 ! # WARNUNG: DIESE ARBEITSBEREICHSDATEI DARF NICHT BEARBEITET ODER GELÖSCHT WERDEN! ! ! ############################################################################### ! ! Project: "iemlib1"=.\iemlib1.dsp - Package Owner=<4> ! ! Package=<5> ! {{{ ! }}} ! ! Package=<4> ! {{{ ! }}} ! ! ############################################################################### ! ! Global: ! ! Package=<5> ! {{{ ! }}} ! ! Package=<3> ! {{{ ! }}} ! ! ############################################################################### !
Index: split.c =================================================================== RCS file: /cvsroot/pure-data/externals/iemlib/src/iemlib1/split.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** split.c 18 May 2004 21:33:31 -0000 1.1.1.1 --- split.c 9 Mar 2005 17:15:59 -0000 1.2 *************** *** 52,54 **** class_addfloat(split_class, split_float); class_sethelpsymbol(split_class, gensym("iemhelp/help-split")); ! } \ No newline at end of file --- 52,54 ---- class_addfloat(split_class, split_float); class_sethelpsymbol(split_class, gensym("iemhelp/help-split")); ! }
Index: sigrvu.c =================================================================== RCS file: /cvsroot/pure-data/externals/iemlib/src/iemlib1/sigrvu.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** sigrvu.c 18 May 2004 21:33:30 -0000 1.1.1.1 --- sigrvu.c 9 Mar 2005 17:15:59 -0000 1.2 *************** *** 120,124 **** cur_rms = (1.0f - c1)*x->x_sum_rms*x->x_rcp + c1*x->x_old_rms; /* NAN protect */ ! if(PD_BADFLOAT(cur_rms)) cur_rms = 0.0f;
--- 120,124 ---- cur_rms = (1.0f - c1)*x->x_sum_rms*x->x_rcp + c1*x->x_old_rms; /* NAN protect */ ! if(IEM_DENORMAL(cur_rms)) cur_rms = 0.0f;