b9379bda35
added swing tab swing settings tab in staff text properties Implemented step 2 of swing implementation using staff texts Added call for updateSwing in stafftextproperties Initial page for dialog changed System flag enabled for swing parameters saving and loading with text specified swing implemented removed extra print statement fixed formatting Added groupbox to make the default behavior to no change in swing fixed indentation in stafftextproperties fixing conflicts in staff.h Removed writing of setSwing to file Removed SwingParameter member from staff and fixed layout of swing tab in dialog fixed the issue with disabled controls Added tests for staff text implementation of swing playback cleaned up the code Swing playback using staff texts implemented, facilitating local control over swing parameters and tests for the same added Cleaned up code Cleaned up code further Swing Playback using staff texts implemented Cleaned up code further Cleaning up code further Using MScore::division in place of 480 as ticks Modified test files according to new usage of MScore::division Removed unwanted printf statements Using strings to write to xml rather than doubles for swingUnit Replaced 240 and 120 in terms of MScore::division in stafftext:write Using TDuration to write to xml Replaced string literals by TDuration for style parameters Replaced "off" with "" in style.cpp Set defaults for unit and ratio in constructors Removed usage of two structs for SwingParameters Changed order of assignments in setSwingParameters Swing playback using staff-texts implemented and tests added
57 lines
1.7 KiB
C++
57 lines
1.7 KiB
C++
//=============================================================================
|
|
// MusE Score
|
|
// Linux Music Score Editor
|
|
// $Id: stafftext.h -1 $
|
|
//
|
|
// Copyright (C) 2002-2010 Werner Schweer and others
|
|
//
|
|
// This program is free software; you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License version 2.
|
|
//
|
|
// This program is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with this program; if not, write to the Free Software
|
|
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
//=============================================================================
|
|
|
|
#ifndef __STAFFTEXTPROPERTIES_H__
|
|
#define __STAFFTEXTPROPERTIES_H__
|
|
|
|
#include "ui_stafftext.h"
|
|
|
|
namespace Ms {
|
|
|
|
class StaffText;
|
|
|
|
//---------------------------------------------------------
|
|
// StaffTextProperties
|
|
// Dialog
|
|
//---------------------------------------------------------
|
|
|
|
class StaffTextProperties : public QDialog, public Ui::StaffTextProperties {
|
|
Q_OBJECT
|
|
|
|
StaffText* staffText;
|
|
QToolButton* vb[4][4];
|
|
QComboBox* channelCombo[4];
|
|
QPushButton* stops[4][16];
|
|
int curTabIndex;
|
|
void saveChannel(int channel);
|
|
|
|
private slots:
|
|
void saveValues();
|
|
void channelItemChanged(QTreeWidgetItem*, QTreeWidgetItem*);
|
|
void voiceButtonClicked(int);
|
|
void tabChanged(int tab);
|
|
void setSwingControls(bool);
|
|
|
|
public:
|
|
StaffTextProperties(StaffText*, QWidget* parent = 0);
|
|
};
|
|
}
|
|
|
|
#endif
|