• Main Page
  • Related Pages
  • Modules
  • Classes
  • Files
  • File List
  • File Members

GUIDOPianoRollAdapter.h

Go to the documentation of this file.
00001 #ifndef GUIDOPIANOROLLADAPTER_H
00002 #define GUIDOPIANOROLLADAPTER_H
00003 /*
00004   GUIDO Library
00005   Copyright (C) 2014    Grame
00006 
00007   This Source Code Form is subject to the terms of the Mozilla Public
00008   License, v. 2.0. If a copy of the MPL was not distributed with this
00009   file, You can obtain one at http://mozilla.org/MPL/2.0/.
00010 
00011   Grame Research Laboratory, 11, cours de Verdun Gensoul 69002 Lyon - France
00012   research@grame.fr
00013 
00014 */
00015 
00016 #include "GUIDOPianoRoll.h"
00017 #include <string>
00018 
00027 class_export GUIDOPianoRollAdapter
00028 {
00029     public:
00030         GUIDOPianoRollAdapter();
00031         virtual ~GUIDOPianoRollAdapter();
00040         PianoRoll * ar2PianoRoll(PianoRollType type, ARHandler arh);
00041 
00050         PianoRoll * midi2PianoRoll(PianoRollType type, const std::string &midiFileName);
00051 
00057         GuidoErrCode destroyPianoRoll(PianoRoll *pr);
00058 
00070         GuidoErrCode setLimits(PianoRoll *pr, LimitParams &limitParams);
00071 
00078         GuidoErrCode enableKeyboard(PianoRoll *pr, bool enabled);
00079 
00086         float getKeyboardWidth(PianoRoll *pr, int height);
00087 
00096         GuidoErrCode enableAutoVoicesColoration(PianoRoll *pr, bool enabled);
00097 
00108         GuidoErrCode setRGBColorToVoice(PianoRoll *pr, int voiceNum, int r, int g, int b, int a);
00109 
00117         GuidoErrCode setHtmlColorToVoice(PianoRoll *pr, int voiceNum, long color);
00118 
00125         GuidoErrCode enableMeasureBars(PianoRoll *pr, bool enabled);
00126 
00136         GuidoErrCode setPitchLinesDisplayMode(PianoRoll *pr, int mode);
00137 
00145         Time2GraphicMap getMap(PianoRoll *pr, int width, int height);
00146 
00155         GuidoErrCode onDraw(PianoRoll *pr, int width, int height, VGDevice* dev);
00156 
00164         std::string svgExport(PianoRoll *pr, int width, int height);
00165 
00166 #ifdef CANVASSYSTEM
00167 
00174         GuidoErrCode javascriptExport(PianoRoll *pr, int width, int height);
00175 #endif
00176 };
00178 #endif // GUIDOPIANOROLLADAPTER_H

Generated on Mon Jan 5 2015 11:16:24 for GUIDOLib by doxygen 1.7.2 - © Grame Research Lab.