hydrogen 1.2.3
MidiOutput.h
Go to the documentation of this file.
1/*
2 * Hydrogen
3 * Copyright(c) 2002-2008 by Alex >Comix< Cominu [comix@users.sourceforge.net]
4 * Copyright(c) 2008-2024 The hydrogen development team [hydrogen-devel@lists.sourceforge.net]
5 *
6 * http://www.hydrogen-music.org
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY, without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see https://www.gnu.org/licenses
20 *
21 */
22
23#ifndef H2_MIDI_OUTPUT_H
24#define H2_MIDI_OUTPUT_H
25
26#include <core/Object.h>
27#include <string>
28#include <vector>
29#include "MidiCommon.h"
30
31namespace H2Core
32{
33class Note;
34
35
40class MidiOutput : public virtual Object<MidiOutput>
41{
43public:
44 MidiOutput();
45 virtual ~MidiOutput();
46
47 virtual std::vector<QString> getInputPortList() = 0;
48
49 virtual void handleQueueNote(Note* pNote) = 0;
50 virtual void handleQueueNoteOff( int channel, int key, int velocity ) = 0;
51 virtual void handleQueueAllNoteOff() = 0;
52 virtual void handleOutgoingControlChange( int param, int value, int channel ) = 0;
53};
54
55};
56
57#endif
58
#define H2_OBJECT(name)
Definition Object.h:224
MIDI input base class.
Definition MidiOutput.h:41
virtual void handleQueueAllNoteOff()=0
virtual ~MidiOutput()
virtual void handleQueueNoteOff(int channel, int key, int velocity)=0
virtual void handleOutgoingControlChange(int param, int value, int channel)=0
virtual void handleQueueNote(Note *pNote)=0
virtual std::vector< QString > getInputPortList()=0
A note plays an associated instrument with a velocity left and right pan.
Definition Note.h:102