~noskcaj/ubuntu/wily/nootka/1.2

« back to all changes in this revision

Viewing changes to src/sound/taudioparams.h

  • Committer: Jackson Doak
  • Date: 2015-07-03 05:03:13 UTC
  • mfrom: (1.1.3)
  • Revision ID: noskcaj@ubuntu.com-20150703050313-q07jgvw6ltsosx83
* New upstream release
* debian/control:
  - Switch build-deps to Qt5
  - Run wrap-and-sort -sa
  - Bump standards-version to 3.9.6 (no changes)
  - Bump debhelper version to 9

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
 *   Copyright (C) 2011-2013 by Tomasz Bojczuk                             *
3
 
 *   tomaszbojczuk@gmail.com                                               *
4
 
 *                                                                         *
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.                                   *
9
 
 *                                                                         *
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.                          *
14
 
 *                                                                         *
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
 
 ***************************************************************************/
18
 
 
19
 
 
20
 
#ifndef TAUDIOPARAMS_H
21
 
#define TAUDIOPARAMS_H
22
 
 
23
 
#include <QString>
24
 
 
25
 
 
26
 
  /** class describes audio input and output parameters. */
27
 
class TaudioParams 
28
 
{
29
 
                
30
 
public:
31
 
        
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.
39
 
                 */
40
 
  enum Erange {
41
 
                e_high = 0,
42
 
                e_middle = 1,
43
 
                e_low = 2
44
 
  };
45
 
        
46
 
        
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.  */
54
 
  bool isVoice;
55
 
        Erange range; // pitch detection range
56
 
        quint8 intonation; // accuracy of intonation in detected note - corresponds with Eaccuracy
57
 
 
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
65
 
};
66
 
 
67
 
 
68
 
#endif // TAUDIOPARAMS_H
 
 
b'\\ No newline at end of file'