2003-03-11 16:56:45 +00:00
|
|
|
/* FluidSynth - A Software Synthesizer
|
|
|
|
*
|
|
|
|
* Copyright (C) 2003 Peter Hanappe and others.
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
2017-07-12 15:45:23 +00:00
|
|
|
* modify it under the terms of the GNU Lesser General Public License
|
2017-07-12 15:53:03 +00:00
|
|
|
* as published by the Free Software Foundation; either version 2.1 of
|
2003-03-11 16:56:45 +00:00
|
|
|
* the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library 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
|
2017-07-12 15:45:23 +00:00
|
|
|
* Lesser General Public License for more details.
|
2007-03-04 16:45:05 +00:00
|
|
|
*
|
2017-07-12 15:54:54 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2003-03-11 16:56:45 +00:00
|
|
|
* License along with this library; if not, write to the Free
|
2011-08-15 12:57:10 +00:00
|
|
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
|
|
* 02110-1301, USA
|
2003-03-11 16:56:45 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _FLUID_RAMSFONT_H
|
|
|
|
#define _FLUID_RAMSFONT_H
|
|
|
|
|
|
|
|
|
|
|
|
#include "fluidsynth.h"
|
|
|
|
#include "fluidsynth_priv.h"
|
|
|
|
|
|
|
|
#include "fluid_defsfont.h"
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2009-10-15 07:00:30 +00:00
|
|
|
/*
|
2003-03-11 16:56:45 +00:00
|
|
|
* fluid_ramsfont_t
|
|
|
|
*/
|
|
|
|
struct _fluid_ramsfont_t
|
|
|
|
{
|
|
|
|
char name[21]; /* the name of the soundfont */
|
|
|
|
fluid_list_t* sample; /* the samples in this soundfont */
|
|
|
|
fluid_rampreset_t* preset; /* the presets of this soundfont */
|
|
|
|
|
|
|
|
fluid_preset_t iter_preset; /* preset interface used in the iteration */
|
|
|
|
fluid_rampreset_t* iter_cur; /* the current preset in the iteration */
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* fluid_preset_t
|
|
|
|
*/
|
|
|
|
struct _fluid_rampreset_t
|
|
|
|
{
|
|
|
|
fluid_rampreset_t* next;
|
|
|
|
fluid_ramsfont_t* sfont; /* the soundfont this preset belongs to */
|
|
|
|
char name[21]; /* the name of the preset */
|
|
|
|
unsigned int bank; /* the bank number */
|
|
|
|
unsigned int num; /* the preset number */
|
|
|
|
fluid_preset_zone_t* global_zone; /* the global zone of the preset */
|
|
|
|
fluid_preset_zone_t* zone; /* the chained list of preset zones */
|
2003-05-14 00:37:55 +00:00
|
|
|
fluid_list_t *presetvoices; /* chained list of used voices */
|
2003-03-11 16:56:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _FLUID_SFONT_H */
|