Logo Search packages:      
Sourcecode: rosegarden version File versions  Download package

PitchTrackerConfigurationPage.h

/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */

/*
    Rosegarden
    A MIDI and audio sequencer and musical notation editor.
    Copyright 2000-2009 the Rosegarden development team.

    Other copyrights also apply to some parts of this work.  Please
    see the AUTHORS file and individual file headers for details.

    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License as
    published by the Free Software Foundation; either version 2 of the
    License, or (at your option) any later version.  See the file
    COPYING included with this distribution for more information.
*/

#ifndef _RG_PITCHTRACKERCONFIGURATIONPAGE_H_
#define _RG_PITCHTRACKERCONFIGURATIONPAGE_H_

#include <string>
#include <vector>
#include "TabbedConfigurationPage.h"
#include <QString>
#include <QStringList>
#include <QErrorMessage>

#include "sound/Tuning.h"

class QWidget;
class QPushButton;
class QLabel;
class QComboBox;
class QCheckBox;
class QSpinBox;

namespace Rosegarden
{

/**
 * \addtogroup Codicil
 * \@{
 * \brief Pitch Tracker Configuration dialogue
 */
00045 class PitchTrackerConfigurationPage : public TabbedConfigurationPage
{
    Q_OBJECT

public:
00050     static const int defaultGraphWidth;     /**< Width of graph in ms */
00051     static const int defaultGraphHeight;    /**< Max excursion in cents */

    PitchTrackerConfigurationPage(QWidget *parent = 0);

    virtual void apply();

    static QString iconLabel() {
        return tr("Pitch Tracker");
    }
    static QString title()     {
        return tr("Pitch Tracker");
    }
    static QString iconName()  {
        return "configure-pitchtracker";
    }

protected slots:
    void slotPopulateTuningCombo(bool rescan);

protected:
    //--------------- Data members ---------------------------------

00073     QComboBox    *m_tuningMode;      /**< Index of current tuning mode */
00074     unsigned int  m_rootPitch;       /**< 12ET pitch to anchor tuning */
00075     unsigned int  m_refPitch;        /**< pitch equivalent to anchor */
00076     double        m_refFreq;         /**< Frequency in Hz of m_refPitch */
    QLabel       *m_rootPitchLabel;
    QLabel       *m_refPitchLabel;
    QLabel       *m_refFreqLabel;
00080     QComboBox    *m_method;          /**< Which pitch detector to use */
00081     QSpinBox     *m_frameSize;       /**< Size of analysis frame */
00082     QSpinBox     *m_stepSize;        /**< Increment between frames */
00083     QCheckBox    *m_ignore8ve;       /**< Ignore 8ve in pitch comparison? */
00084     QSpinBox     *m_graphWidth;      /**< Width of graph in milliseconds */
00085     QSpinBox     *m_graphHeight;     /**< Height of graph in cents */
00086     std::vector<Accidentals::Tuning *> *m_tunings; /**< Available tunings */
    
00088     QErrorMessage m_noTuningsAlert;  /**< Alert missing tunings file */
    
};


}

/**\@}*/
#endif

Generated by  Doxygen 1.6.0   Back to index