ReMAS
1.5
Real-time Musical Accompaniment System
src
common
NetFunctions.h
Go to the documentation of this file.
1
/**************************************************************************
2
* Copyright (C) 2017 by "Information Retrieval and Parallel Computing" *
3
* group (University of Oviedo, Spain), "Interdisciplinary Computation *
4
* and Communication" group (Polytechnic University of Valencia, Spain) *
5
* and "Signal Processing and Telecommunication Systems Research" group *
6
* (University of Jaen, Spain) *
7
* Contact: remaspack@gmail.com *
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
* This program is distributed in the hope that it will be useful, *
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
17
* GNU General Public License for more details. *
18
* *
19
* You should have received a copy of the GNU General Public License *
20
* along with this program; if not, write to the *
21
* Free Software Foundation, Inc., *
22
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
23
**************************************************************************
24
*/
34
#pragma once
35
36
#ifndef ANET_H
37
#define ANET_H
38
39
#include "
defines.h
"
40
41
#ifdef OSC
42
#include <lo.h>
43
int
SendTempo(lo_address t,
int
tempo);
44
int
SendPlay(lo_address t);
45
54
int
SendTempo(lo_address t,
int
tempo)
55
{
56
if
(lo_send(t,
"/tempo"
,
"i"
, tempo) < 0)
return
ErrSendOSC;
else
return
OK;
57
}
58
59
67
int
SendPlay(lo_address t)
68
{
69
if
(lo_send(t,
"/actions/play"
,
"b"
,
"\0"
) < 0)
return
ErrSendOSC;
else
return
OK;
70
}
71
#endif
72
73
#endif
defines.h
General header file with constants, defines, structs, etc. using by ReMAS, both CPU and GPU...
Generated on Sun Apr 14 2019 20:40:04 for ReMAS by
1.8.13