diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2003-08-29 13:53:51 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2003-08-29 13:53:51 +0000 |
commit | de86cb7754d773a2dba3ae92eb0dfc4cb9d77cbd (patch) | |
tree | b84e943785318f49e99423980235c207d2f2435c /src/pitch.c | |
parent | fbc6df8b8cfcf9603df93b02e0625067feebb6f1 (diff) |
imported latest version 1.4 direct from Olaf
svn path=/trunk/externals/maxlib/; revision=898
Diffstat (limited to 'src/pitch.c')
-rw-r--r-- | src/pitch.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/pitch.c b/src/pitch.c index bd95e1e..95fac90 100644 --- a/src/pitch.c +++ b/src/pitch.c @@ -90,16 +90,25 @@ static void *pitch_new(t_floatarg f) x->x_lastpitch = f;
-#ifndef MAXLIB
- post(version);
-#endif
return (void *)x;
}
+#ifndef MAXLIB
void pitch_setup(void)
{
pitch_class = class_new(gensym("pitch"), (t_newmethod)pitch_new,
0, sizeof(t_pitch), 0, A_DEFFLOAT, 0);
class_addfloat(pitch_class, pitch_float);
+ class_sethelpsymbol(pitch_class, gensym("help-pitch.pd"));
+ post(version);
}
-
+#else
+void maxlib_pitch_setup(void)
+{
+ pitch_class = class_new(gensym("maxlib_pitch"), (t_newmethod)pitch_new,
+ 0, sizeof(t_pitch), 0, A_DEFFLOAT, 0);
+ class_addcreator((t_newmethod)pitch_new, gensym("pitch"), A_DEFFLOAT, 0);
+ class_addfloat(pitch_class, pitch_float);
+ class_sethelpsymbol(pitch_class, gensym("maxlib/help-pitch.pd"));
+}
+#endif
\ No newline at end of file |