Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 51 lines (42 sloc) 1.54 kB
3f6a39c @Kyew Rewrote header functions as inline, add toString to all objects
Kyew authored
1 /*
2 * Copyright 2009,2010,2011,2012 Reality Jockey, Ltd.
3 * info@rjdj.me
4 * http://rjdj.me/
5 *
6 * This file is part of ZenGarden.
7 *
8 * ZenGarden is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU Lesser General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
12 *
13 * ZenGarden is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with ZenGarden. If not, see <http://www.gnu.org/licenses/>.
20 *
21 */
22
23 #ifndef _DSP_CLIP_H_
24 #define _DSP_CLIP_H_
25
26 #include "DspObject.h"
27
28 /** [clip~ float float] */
29 class DspClip : public DspObject {
30 public:
b7419c4 @Kyew Made some small corrections
Kyew authored
31 static MessageObject *newObject(PdMessage *initMessage, PdGraph *graph);
3f6a39c @Kyew Rewrote header functions as inline, add toString to all objects
Kyew authored
32 DspClip(PdMessage *initMessage, PdGraph *graph);
33 ~DspClip();
b7419c4 @Kyew Made some small corrections
Kyew authored
34
3f6a39c @Kyew Rewrote header functions as inline, add toString to all objects
Kyew authored
35 static const char *getObjectLabel();
36 std::string toString();
37
38 private:
b7419c4 @Kyew Made some small corrections
Kyew authored
39 static void processScalar(DspObject *dspObject, int fromIndex, int toIndex);
40 void processMessage(int inletIndex, PdMessage *message);
41
42 float lowerBound;
43 float upperBound;
3f6a39c @Kyew Rewrote header functions as inline, add toString to all objects
Kyew authored
44 };
45
46 inline const char *DspClip::getObjectLabel() {
47 return "clip~";
48 }
49
50 #endif // _DSP_CLIP_H_
Something went wrong with that request. Please try again.