-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathblofeld_params.h
63 lines (49 loc) · 2.46 KB
/
blofeld_params.h
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/****************************************************************************
* xtor - GTK based editor for MIDI synthesizers
*
* blofeld_params.h - Parameter management for Waldorf Blofeld.
*
* Copyright (C) 2014 Ricard Wanderlof <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
****************************************************************************/
#ifndef _BLOFELD_PARAMS_H_
#define _BLOFELD_PARAMS_H_
/* Number of (sound) parameters in the Blofeld. */
#define BLOFELD_PARAMS 383
/* Parameter ranges. Used for specifying ranges to copy/paste functions. */
#define PARNOS_ARPEGGIATOR 311, 358
#define PARNOS_ALL 0, (BLOFELD_PARAMS - 1)
#define BLOFELD_PATCH_NAME_LEN_MAX 16
/* Initialize internal structures and fill in param_handler struct with
* Blofeld-specific values and functions. */
void blofeld_init(struct param_handler *param_handler);
/* Fetch parameter dump from Blofeld */
void blofeld_get_dump(int parlist, int dev_no);
/* Sender function type for dumps */
typedef int (*send_func)(char *buf, int len, int userdata);
/* Send parameter dump to Blofeld */
void blofeld_send_dump(int parlist, int dev_no);
/* General transfer function for parameter dumps */
int blofeld_xfer_dump(int parlist, int dev_no, send_func sender, int userdata);
/* Load parameter list from sysex buffer.
* Return -1 if something wrong, else 0. */
int blofeld_file_sysex(void *buffer, int len);
/* Copy selected parameters to selected paste buffer */
void blofeld_copy_to_paste(int par_from, int par_to, int buf_no, int paste_buf);
/* Copy selected parameters from selected paste buffer and update ui */
void blofeld_copy_from_paste(int par_from, int par_to, int buf_no, int paste_buf);
#endif /* _BLOFELD_PARAMS_H_ */
/*********************** End of file blofeld_params.h ***********************/