cannam@0: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ cannam@0: cannam@0: /* cannam@0: QM DSP library cannam@0: Centre for Digital Music, Queen Mary, University of London. cannam@0: This file Copyright 2006 Chris Cannam. Chris@84: Chris@84: This program is free software; you can redistribute it and/or Chris@84: modify it under the terms of the GNU General Public License as Chris@84: published by the Free Software Foundation; either version 2 of the Chris@84: License, or (at your option) any later version. See the file Chris@84: COPYING included with this distribution for more information. cannam@0: */ cannam@0: cannam@0: #ifndef _PITCH_H_ cannam@0: #define _PITCH_H_ cannam@0: cannam@0: class Pitch cannam@0: { cannam@0: public: cannam@0: static float getFrequencyForPitch(int midiPitch, cannam@0: float centsOffset = 0, cannam@0: float concertA = 440.0); cannam@0: cannam@0: static int getPitchForFrequency(float frequency, cannam@0: float *centsOffsetReturn = 0, cannam@0: float concertA = 440.0); cannam@0: }; cannam@0: cannam@0: cannam@0: #endif