comparison base/Pitch.h @ 19:a7ed14263fe4

* Add Chromagram plugin, and make a number of fixes to the dense 3d model and colour 3d plot class to accommodate it * Add pitch-conversion methods in base/Pitch * Commit previously overlooked Command.cpp
author Chris Cannam
date Wed, 01 Feb 2006 14:49:49 +0000
parents
children 090c22aa726a
comparison
equal deleted inserted replaced
18:4563a72c1d8b 19:a7ed14263fe4
1 /* -*- c-basic-offset: 4 -*- vi:set ts=8 sts=4 sw=4: */
2
3 /*
4 A waveform viewer and audio annotation editor.
5 Chris Cannam, Queen Mary University of London, 2005-2006
6
7 This is experimental software. Not for distribution.
8 */
9
10 #ifndef _PITCH_H_
11 #define _PITCH_H_
12
13 #include <QString>
14
15 class Pitch
16 {
17 public:
18 static float getFrequencyForPitch(int midiPitch,
19 float centsOffset = 0,
20 float concertA = 440.0);
21
22 static int getPitchForFrequency(float frequency,
23 float *centsOffsetReturn = 0,
24 float concertA = 440.0);
25
26 static QString getPitchLabel(int midiPitch,
27 float centsOffset = 0);
28
29 static QString getPitchLabelForFrequency(float frequency,
30 float concertA = 440.0);
31 };
32
33
34 #endif