GUIDOLib
1.7.7
Guido Engine Internal Documentation
src
engine
parser
gddefs.h
1
/*
2
GUIDO Library
3
Copyright (C) 2002 Holger Hoos, Juergen Kilian, Kai Renz
4
Copyright (C) 2002-2017 Grame
5
6
This Source Code Form is subject to the terms of the Mozilla Public
7
License, v. 2.0. If a copy of the MPL was not distributed with this
8
file, You can obtain one at http://mozilla.org/MPL/2.0/.
9
10
Grame Research Laboratory, 11, cours de Verdun Gensoul 69002 Lyon - France
11
research@grame.fr
12
13
*/
14
15
#pragma once
16
17
#include "GuidoDefs.h"
18
19
#define SHARP +1
20
#define FLAT (-1)
21
22
void
gd_fracNorm(
long
int
*a,
long
int
*b);
23
/* normalises fraction a/b */
24
void
gd_fracAdd(
long
int
*a,
long
int
*b,
const
long
int
c,
const
long
int
d);
25
/* sets a/b := a/b+c/d, normalised */
26
/* normalise a/b, c/d before using this function */
27
int
gd_fracCmp(
long
int
a,
long
int
b,
long
int
c,
long
int
d);
28
/* returns +1 if a/b > c/d, 0 if a/b=c/d, -1 else */
29
/* normalise a/b, c/d before using this function */
30
31
const
char
* gd_pc2noteName(
int
pitch);
32
int
gd_noteName2pc (
const
char
*name);
33
Guido Project
Copyright © 2019
Grame-CNCM