1
/***************************************************************************
2
* Copyright (C) 2011-2013 by Tomasz Bojczuk *
3
* tomaszbojczuk@gmail.com *
5
* This program is free software; you can redistribute it and/or modify *
6
* it under the terms of the GNU General Public License as published by *
7
* the Free Software Foundation; either version 3 of the License, or *
8
* (at your option) any later version. *
10
* This program is distributed in the hope that it will be useful, *
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13
* GNU General Public License for more details. *
15
* You should have received a copy of the GNU General Public License *
16
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
17
***************************************************************************/
20
#ifndef TAUDIOPARAMS_H
21
#define TAUDIOPARAMS_H
26
/** class describes audio input and output parameters. */
32
/** Those are levels of pitch detection ranges.
33
* @p e_high - for violin, flute, piccolo - corresponds with treble clef.
34
* It starts form about F in small octave.
35
* @p e_middle - for guitars, celo and so - corresponds with treble droped and bass clefs
36
* It starts form about F in contra octave.
37
* @p e_low - for bass guitar and double bass - corresponds with bass dropped clef
38
* It is sufficient to detect lowest notes.
47
bool INenabled; // is audio input enabled
48
QString INdevName; // input device name
49
float a440diff; // difference between standard a1 440Hz and user preferred base pitch
50
float minimalVol; // only above this value detected note is sending to Nootka
51
float minDuration; // minimal duration of a sound above which it is detected
52
/** If true - pitch is average of all visible pitches
53
* if false - the first detected in sound over noise is taken. */
55
Erange range; // pitch detection range
56
quint8 intonation; // accuracy of intonation in detected note - corresponds with Eaccuracy
58
// audio output settings
59
bool OUTenabled; // audio output enabled
60
QString OUTdevName; // output device name
61
bool midiEnabled; // default false
62
QString midiPortName; // default empty to find system default
63
unsigned char midiInstrNr; // default 0 - grand piano
64
int audioInstrNr; // corresponds with Einstrument enum numbers, default 1 classical guitar
68
#endif // TAUDIOPARAMS_H
b'\\ No newline at end of file'