-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPdObject.hpp
More file actions
30 lines (27 loc) · 937 Bytes
/
Copy pathPdObject.hpp
File metadata and controls
30 lines (27 loc) · 937 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
* Copyright (c) 2012 Dan Wilcox <danomatika@gmail.com>
*
* BSD Simplified License.
* For information on usage and redistribution, and for a DISCLAIMER OF ALL
* WARRANTIES, see the file, "LICENSE.txt," in this distribution.
*
* See https://github.com/libpd/libpd for documentation
*
* This file was adapted from the ofxPd openFrameworks addon example:
* https://github.com/danomatika/ofxPd
*
*/
#pragma once
#include "PdBase.hpp"
// custom receiver class
class PdObject : public pd::PdReceiver {
public:
void print (const std::string &message);
void receiveBang (const std::string &dest);
void receiveFloat (const std::string &dest ,float num);
void receiveSymbol (const std::string &dest ,const std::string &symbol);
void receiveList (const std::string &dest ,const pd::List &list);
void receiveMessage
(const std::string &dest ,const std::string &msg ,const pd::List &list);
bool stop = false;
};