/usr/include/libinstpatch-1.0/libinstpatch/IpatchUnit_DLS.h is in libinstpatch-dev 1.0.0-7.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | /*
* libInstPatch
* Copyright (C) 1999-2010 Joshua "Element" Green <jgreen@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; version 2.1
* of the License only.
*
* 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 Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA or on the web at http://www.gnu.org.
*/
/**
* SECTION: IpatchUnit_DLS
* @short_description: Unit types and conversions for DLS
* @see_also:
* @stability: Stable
*/
#ifndef __IPATCH_UNIT_DLS_H__
#define __IPATCH_UNIT_DLS_H__
#include <glib.h>
#include <glib-object.h>
/* Value for 0 seconds in DLS absolute time (a degenerate case) */
#define IPATCH_UNIT_DLS_ABS_TIME_0SECS 0x80000000L
int ipatch_unit_dls_class_convert (guint16 src_units, const GValue *src_val);
double ipatch_unit_dls_percent_to_percent (int dls_percent);
int ipatch_unit_percent_to_dls_percent (double percent);
double ipatch_unit_dls_gain_to_decibels (int dls_gain);
int ipatch_unit_decibels_to_dls_gain (double db);
double ipatch_unit_dls_abs_time_to_seconds (int dls_abs_time);
int ipatch_unit_seconds_to_dls_abs_time (double seconds);
double ipatch_unit_dls_rel_time_to_time_cents (int dls_rel_time);
int ipatch_unit_time_cents_to_dls_rel_time (double time_cents);
double ipatch_unit_dls_abs_pitch_to_hertz (int dls_abs_pitch);
int ipatch_unit_hertz_to_dls_abs_pitch (double hertz);
double ipatch_unit_dls_rel_pitch_to_cents (int dls_rel_pitch);
int ipatch_unit_cents_to_dls_rel_pitch (double cents);
#endif
|