summaryrefslogtreecommitdiff
path: root/src/midimapper.h
diff options
context:
space:
mode:
authordeva <deva>2008-07-21 15:32:54 +0000
committerdeva <deva>2008-07-21 15:32:54 +0000
commit217a8a1aa8eba3611d5ba6abefb502fb041e13cb (patch)
treefe80b09f306e0c83d0e4a0eb5ef5f476183b5fbc /src/midimapper.h
parent981cd50a83e67f5471ee1e1ad0c0575506f14da0 (diff)
Made midi mapper.
Diffstat (limited to 'src/midimapper.h')
-rw-r--r--src/midimapper.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/midimapper.h b/src/midimapper.h
new file mode 100644
index 0000000..d0b6a72
--- /dev/null
+++ b/src/midimapper.h
@@ -0,0 +1,44 @@
+/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/***************************************************************************
+ * midimapper.h
+ *
+ * Mon Jul 21 15:24:07 CEST 2008
+ * Copyright 2008 Bent Bisballe Nyeng
+ * deva@aasimon.org
+ ****************************************************************************/
+
+/*
+ * This file is part of DrumGizmo.
+ *
+ * DrumGizmo is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * DrumGizmo 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 for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with DrumGizmo; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+ */
+#ifndef __DRUMGIZMO_MIDIMAPPER_H__
+#define __DRUMGIZMO_MIDIMAPPER_H__
+
+#include <jack/midiport.h>
+
+#include <map>
+
+class MidiMapper {
+public:
+ MidiMapper();
+
+ int map(jack_midi_event_t event);
+
+private:
+ std::map< int, int > _map;
+};
+
+#endif/*__DRUMGIZMO_MIDIMAPPER_H__*/