OSSIA
Open Scenario System for Interactive Application
equals.hpp
1 #pragma once
2 
3 #include "ext.h"
4 #include "ext_obex.h"
5 #ifdef WIN_VERSION
6 #include <float.h>
7 #endif
8 #include <algorithm>
9 
10 namespace ossia
11 {
12 namespace max_binding
13 {
17 struct equals
18 {
19  t_object x_ob;
20  void* x_outlet;
21  void* x_inlet;
22  double x_operand;
23  long x_tolerance;
26 
27  // prototypes
28  static void free(equals* x);
29  static void assist(equals* x, void* b, long m, long a, char* s);
30  static void in_float(equals* x, double f);
31 };
32 
33 extern "C" {
34 void* ossia_equals_new(t_symbol* s, long argc, t_atom* argv);
35 }
36 
37 } // namespace max
38 } // namespace ossia
Definition: git_info.h:7
Definition: equals.hpp:18
void * x_outlet
float/list for sampled values
Definition: equals.hpp:20
void * x_inlet
for setting the operand
Definition: equals.hpp:21
t_object x_ob
header
Definition: equals.hpp:19
long x_tolerance
Definition: equals.hpp:23
double x_operand
the number against which to test input
Definition: equals.hpp:22
long x_single_precision
operate on 32-bit floats rather than 64-bit doubles
Definition: equals.hpp:25