Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 6952215707
Fetching contributors…

Cannot retrieve contributors at this time

file 49 lines (41 sloc) 1.68 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
//=============================================================================
// MuseScore
// Music Composition & Notation
// $Id: tablature.h 5566 2012-04-22 08:26:29Z lvinken $
//
// Copyright (C) 2002-2011 Werner Schweer
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2
// as published by the Free Software Foundation and appearing in
// the file LICENCE.GPL
//=============================================================================

#ifndef __TABLATURE_H__
#define __TABLATURE_H__

#include "xml.h"

class Chord;

//---------------------------------------------------------
// Tablature
//---------------------------------------------------------

class Tablature {
      QList<int> stringTable;
      int _frets;

      static bool bFretting;

public:
      Tablature() {}
      Tablature(int numFrets, int numStrings, int strings[]);
      Tablature(int numFrets, QList<int>& strings);
      bool convertPitch(int pitch, int* string, int* fret) const;
      int fret(int pitch, int string) const;
      void fretChord(Chord * chord) const;
      int getPitch(int string, int fret) const;
      int strings() const { return stringTable.size(); }
      QList<int> stringList() const { return stringTable; }
      int frets() const { return _frets; }
      void read(const QDomElement&);
      void write(Xml&) const;
      void readMusicXML(const QDomElement& de);
      void writeMusicXML(Xml& xml) const;
      };

extern Tablature guitarTablature;
#endif
Something went wrong with that request. Please try again.