aboutsummaryrefslogtreecommitdiff
path: root/adaptive/src/adaptive.h
blob: 209a51af6f4178f33cf2c8ee1ae1ede634aeb15e (plain)
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
31
32
33
34
/******************************************************
 *
 * Adaptive Systems for PD
 *
 * copyleft (c) Gerda Strobl, Georg Holzmann
 * 2005
 *
 * for complaints, suggestions: grh@mur.at
 *
 ******************************************************
 *
 * license: GNU General Public License v.2
 *
 ******************************************************/

#ifndef __ADAPTIVE_H__
#define __ADAPTIVE_H__

#include "m_pd.h"
#include <stdio.h>



/* ---------------------- helpers ----------------------- */

// save all data to file
void adaptation_write(const char *filename, t_int N, t_float mu, t_float *c);

// read data from file
void adaptation_read(const char *filename, t_int *N, t_float *mu, 
                     t_float *c, t_float *buf);


#endif  //__ADAPTIVE_H__