MuseScore/libmscore/sequencer.h

40 lines
1.1 KiB
C
Raw Normal View History

2012-05-26 14:26:10 +02:00
//=============================================================================
// MuseScore
// Music Composition & Notation
//
// Copyright (C) 2011 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
// as published by the Free Software Foundation and appearing in
// the file LICENSE.GPL
//=============================================================================
#ifndef __SEQUENCER_H__
#define __SEQUENCER_H__
2013-05-13 18:49:17 +02:00
namespace Ms {
class NPlayEvent;
2012-05-26 14:26:10 +02:00
enum class BeatType : char;
2012-05-26 14:26:10 +02:00
//---------------------------------------------------------
// Sequencer
//---------------------------------------------------------
class Sequencer {
public:
Sequencer() {}
virtual ~Sequencer() {}
virtual void sendEvent(const NPlayEvent&) = 0;
virtual void startNote(int channel, int, int, double nt) = 0;
2012-06-28 14:50:47 +02:00
virtual void startNote(int channel, int, int, int, double nt) = 0;
virtual void playMetronomeBeat(BeatType type) = 0;
2012-05-26 14:26:10 +02:00
};
2013-05-13 18:49:17 +02:00
} // namespace Ms
2012-05-26 14:26:10 +02:00
#endif