1 /* FluidSynth - A Software Synthesizer
3 * Copyright (C) 2003 Peter Hanappe and others.
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public License
7 * as published by the Free Software Foundation; either version 2 of
8 * the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library; if not, write to the Free
17 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 #include "fluid_adsr_env.h"
24 fluid_adsr_env_set_data(fluid_adsr_env_t* env,
25 fluid_adsr_env_section_t section,
28 fluid_real_t increment,
32 env->data[section].count = count;
33 env->data[section].coeff = coeff;
34 env->data[section].increment = increment;
35 env->data[section].min = min;
36 env->data[section].max = max;