File: multipleA.c

package info (click to toggle)
pd-binfile 0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 428 kB
  • sloc: ansic: 455; makefile: 141; sh: 124; cpp: 19
file content (13 lines) | stat: -rw-r--r-- 425 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <m_pd.h>
t_class*multipleA_class;
static void multipleA_float(t_object*x, t_float f1) {
  pd_error(x, "%s got %f", __FUNCTION__, f1);
}
static void*multipleA_new(void) {
  return pd_new(multipleA_class);
}
void multipleA_setup(void) {
  post("%s", __FUNCTION__);
  multipleA_class = class_new(gensym("multipleA"), multipleA_new, 0, sizeof(t_object), 0, A_NULL);
  class_addfloat(multipleA_class, multipleA_float);
}