Update of /cvsroot/pure-data/externals/unauthorized/sonogram~ In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1519
Modified Files: CHANGES.LOG sonogram~.c Added Files: help-sonogram~.pd help-sonograph~.pd Log Message: sonogram 0.12
Index: CHANGES.LOG =================================================================== RCS file: /cvsroot/pure-data/externals/unauthorized/sonogram~/CHANGES.LOG,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** CHANGES.LOG 16 Aug 2003 17:08:55 -0000 1.1 --- CHANGES.LOG 30 Mar 2004 04:18:54 -0000 1.2 *************** *** 1,2 **** --- 1,4 ---- + 0.12 + adapted for pd 0.37 0.11 allow backwards reading
--- NEW FILE: help-sonograph~.pd --- #N canvas 0 0 450 300 10; #X obj 134 93 rs-sonograph~; #X text 193 27 To work properly , the block size; #X text 193 39 has to be redefined.; #X obj 132 130 dac~; #X msg 291 89 ; pd dsp 1; #X msg 356 90 ; pd dsp 0; #X text 193 51 that's why everything is in the subpatch.; #X connect 0 0 3 0; #X connect 0 0 3 1;
Index: sonogram~.c =================================================================== RCS file: /cvsroot/pure-data/externals/unauthorized/sonogram~/sonogram~.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** sonogram~.c 25 Sep 2003 20:58:55 -0000 1.5 --- sonogram~.c 30 Mar 2004 04:18:55 -0000 1.6 *************** *** 38,44 **** #include <fcntl.h> #include <sys/stat.h> - #ifndef MACOSX #include <malloc.h> - #endif #include <ctype.h> #include <pthread.h> --- 38,42 ---- *************** *** 99,103 **** #define THREAD_SLEEP_TIME 100000 // 100000 us = 100 ms
! static char *sonogram_version = "sonogram~: version 0.11, written by Yves Degoyon (ydegoyon@free.fr)";
static t_class *sonogram_class; --- 97,101 ---- #define THREAD_SLEEP_TIME 100000 // 100000 us = 100 ms
! static char *sonogram_version = "sonogram~: version 0.12, written by Yves Degoyon (ydegoyon@free.fr)";
static t_class *sonogram_class; *************** *** 2019,2022 **** --- 2017,2021 ---- sonogram_class = class_new(gensym("sonogram~"), (t_newmethod)sonogram_new, (t_method)sonogram_free, sizeof(t_sonogram), 0, A_DEFFLOAT, A_DEFFLOAT, A_DEFFLOAT, 0); + class_sethelpsymbol( sonogram_class, gensym("sonogram~.pd") );
// set callbacks *************** *** 2028,2043 **** sonogram_widgetbehavior.w_visfn = sonogram_vis; sonogram_widgetbehavior.w_clickfn = sonogram_click; ! /* ! * hans@eds.org: As of 0.37, pd does not have these last ! * two elements in t_widgetbehavoir anymore. ! * see pd/src/notes.txt: ! * savefunction and dialog into class structure ! */ ! #if PD_MINOR_VERSION < 37 || !defined(PD_MINOR_VERSION) sonogram_widgetbehavior.w_propertiesfn = NULL; sonogram_widgetbehavior.w_savefn = sonogram_save; - #else - class_setpropertiesfn(sonogram_class, NULL); - class_setsavefn(sonogram_class, &sonogram_save); #endif
--- 2027,2038 ---- sonogram_widgetbehavior.w_visfn = sonogram_vis; sonogram_widgetbehavior.w_clickfn = sonogram_click; ! ! ! #if PD_MINOR_VERSION >= 37 ! class_setpropertiesfn(sonogram_class, NULL); ! class_setsavefn(sonogram_class, sonogram_save); ! #else sonogram_widgetbehavior.w_propertiesfn = NULL; sonogram_widgetbehavior.w_savefn = sonogram_save; #endif
--- NEW FILE: help-sonogram~.pd --- #N canvas 0 1 450 300 10; #X obj 134 93 rs-sonogram~; #X text 193 27 To work properly , the block size; #X text 193 39 has to be redefined.; #X msg 291 89 ; pd dsp 1; #X msg 356 90 ; pd dsp 0; #X text 193 51 that's why everything is in the subpatch.; #X obj 132 130 dac~; #X connect 0 0 6 0; #X connect 0 0 6 1;