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

RecChord.h

/*
  rakarrack - a guitar effects software

  Harmonizer.h  -  Harmonizer definitions
  Copyright (C) 2008 Daniel Vidal & Josep Andreu
  Author: Daniel Vidal & Josep Andreu

 This program is free software; you can redistribute it and/or modify
 it under the terms of version 2 of the GNU General Public License
 as published by the Free Software Foundation.

 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 (version 2) for more details.

 You should have received a copy of the GNU General Public License
 (version2)  along with this program; if not, write to the Free Software
 Foundation,
 Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA

*/

#ifndef RECCHORD_H
#define RECCHORD_H

#include "global.h"


#define POLY 8


class RecChord
{

public:
  RecChord ();
  ~RecChord ();
  void MiraChord ();
  void IniciaChords ();
  void Vamos (int interval);
  void cleanup ();

  int cc;
  char NombreAcorde[20];



  struct TipoCh
  {
    int tipo;
    int num;
    char Nom[16];
  } ChN[34];

  struct NomChord
  {
    char Nom[3];
  } NC[13];

  struct NomChordExtended
  {
    char Nom[3];
    int note;
  } NCE[25];


  int fundi;
  int bass;
  int ctipo;


private:

  int plus (int nota);

  struct Ch3
  {
    int tipo;
    int fund;
    int di1;
    int di2;
    char Nom[10];
  } Chord3[17];

  struct Ch4
  {
    int tipo;
    int fund;
    int di1;
    int di2;
    int di3;
    char Nom[10];
  } Chord4[62];

  struct Ch5
  {
    int tipo;
    int fund;
    int di1;
    int di2;
    int di3;
    int di4;
    char Nom[10];
  } Chord5[67];

  int Ch[34][13];

  int NumChord3;
  int NumChord4;
  int NumChord5;


};

#endif

Generated by  Doxygen 1.6.0   Back to index