1
//--------------------------------------------------------------------------------------
2
// LenMus Phonascus: The teacher of music
3
// Copyright (c) 2002-2007 Cecilio Salmeron
5
// This program is free software; you can redistribute it and/or modify it under the
6
// terms of the GNU General Public License as published by the Free Software Foundation;
7
// either version 2 of the License, or (at your option) any later version.
9
// This program is distributed in the hope that it will be useful, but WITHOUT ANY
10
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11
// PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
// You should have received a copy of the GNU General Public License along with this
14
// program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street,
15
// Fifth Floor, Boston, MA 02110-1301, USA.
17
// For any comment, suggestion or feature request, please contact the manager of
18
// the project at cecilios@users.sourceforge.net
20
//-------------------------------------------------------------------------------------
22
@brief Header file for auxiliary global functions to verify / convert strings
29
#ifndef __AUXSTRING_H //to avoid nested includes
32
#include "../score/Score.h"
34
extern bool PitchNameToData(wxString sPitch, int* pPitch, EAccidentals* pAccidentals);
35
extern bool StringToPitch(wxString sStep, wxString sOctave, int* pPitch);
36
extern int LetterToStep(wxString sStep);
37
extern void LoadCboBoxWithNoteNames(wxComboBox* pCboBox, lmPitch nSelNote);
38
extern void LoadCboBoxWithNoteNames(wxComboBox* pCboBox, wxString sNoteName);
42
extern bool LDPDataToPitch(wxString sPitch, EAccidentals* pAccidentals,
43
wxString* sStep, wxString* sOctave);
45
extern float SrcGetPatternDuracion(wxString sPattern);
46
extern float SrcGetElementDuracion(wxString sElement);
47
extern int SrcSplitPattern(wxString sSource);
48
extern bool SrcIsRest(wxString sElement);
51
extern EClefType LDPNameToClef(wxString sClefName);
52
extern EKeySignatures LDPInternalNameToKey(wxString sKeyName);
57
extern bool XmlDataToClef(wxString sClefLine, EClefType* pClef);
58
extern bool XmlDataToBarStyle(wxString sBarStyle, EBarline* pType);
60
#endif // __AUXSTRING_H