Codebase list libdrumstick / 27b90bf
New upstream version 1.1.2 Sebastian Ramacher 4 years ago
201 changed file(s) with 876 addition(s) and 858 deletion(s). Raw diff Collapse all Expand all
00 # MIDI C++ Library
1 # Copyright (C) 2005-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
1 # Copyright (C) 2005-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
1111 # GNU General Public License for more details.
1212 #
1313 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 # MA 02110-1301, USA
17
18 cmake_minimum_required(VERSION 2.8.11)
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
16 cmake_minimum_required(VERSION 3.1)
1917 if (POLICY CMP0063)
2018 cmake_policy(SET CMP0063 OLD)
19 endif()
20 if (POLICY CMP0028)
21 cmake_policy(SET CMP0028 NEW)
2122 endif()
2223
2324 project(DRUMSTICK)
5657 # DRUMSTICK version string
5758 set(VERSION_MAJOR "1")
5859 set(VERSION_MINOR "1")
59 set(VERSION_PATCH "0")
60 set(VERSION_PATCH "2")
6061 set(VERSION_SUFFIX "")
6162 set(VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}${VERSION_SUFFIX})
6263 add_definitions(-DVERSION=${VERSION})
6465 message(STATUS "drumstick ${VERSION} prefix: ${CMAKE_INSTALL_PREFIX}")
6566
6667 set(_DBUS_INIT OFF)
67 if(${CMAKE_SYSTEM} MATCHES "Linux")
68 set(_DBUS_INIT ON)
69 endif()
68 #if(${CMAKE_SYSTEM} MATCHES "Linux")
69 # set(_DBUS_INIT ON)
70 #endif()
7071
7172 # User options
7273 option(STATIC_DRUMSTICK "Build static libraries instead of dynamic" OFF)
107108 else()
108109 message(STATUS "Warning: ALSA library not found.")
109110 endif()
110 pkg_check_modules(PULSE libpulse-simple)
111 if(NOT PULSE_FOUND)
112 message(STATUS "Warning: PulseAudio library not found.")
113 endif()
111 endif()
112
113 pkg_check_modules(PULSE libpulse-simple)
114 if(NOT PULSE_FOUND)
115 message(STATUS "Warning: PulseAudio library not found.")
116 endif()
117
118 if(${CMAKE_SYSTEM} MATCHES "Darwin")
119 find_package(Qt5Concurrent REQUIRED)
114120 endif()
115121
116122 link_directories(${DRUMSTICK_BINARY_DIR}/lib)
0 2018-11-25
1 * release 1.1.2
2
3 2018-11-24
4 * Fix for ticket #13 - some macOS input events lost
5 * Added some bundle metadata for macOS
6 * Solution for ticket #8: Path for plugins hardcoded
7
8 2018-02-24
9 * release 1.1.1
10
11 2018-01-07
12 * disabled fluidsynth output driver
13 * Fixed build on macOS < 10.11, thanks to Andreas
14
15 2017-08-14
16 * fixed unit test for more tolerance
17 * release preparations
18
19 2017-08-13
20 * fix for ticket #11: replaced assert() by Q_ASSERT()
21 * fix for ticket #9: removed ALSA/Linux dependency where possible.
22
23 2017-05-10
24 * rt: fixed pitch bend events on several output backends
25
26 2017-04-16
27 * fixed tab order on forms
28
29 2017-04-03
30 * added keywords to the desktop files. Patch by Ross Gammon
31
32 2016-09-25
33 * release 1.1.0
34
035 2016-09-11
136 * reverted audio backend for sonivox eas to pulseaudio again
237 * rt: settings for sonivox eas and mac native synth
00 # MIDI Sequencer C++ Library
1 # Copyright (C) 2008-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
1 # Copyright (C) 2008-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 3 of the License, or
5 # the Free Software Foundation; either version 2 of the License, or
66 # (at your option) any later version.
77 #
88 # This program is distributed in the hope that it will be useful,
00 # MIDI Sequencer C++ Library
1 # Copyright (C) 2008-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
1 # Copyright (C) 2008-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
1111 # GNU General Public License for more details.
1212 #
1313 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 # MA 02110-1301, USA
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1715
1816 # Try to find precompiled headers support for GCC 3.4 and 4.x
1917 # Once done this will define:
00 # MIDI Sequencer C++ Library
1 # Copyright (C) 2008-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
1 # Copyright (C) 2008-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
00 /**
11 @mainpage drumstick Documentation
2 @author Copyright &copy; 2009-2016 Pedro López-Cabanillas &lt;plcl AT users.sf.net&gt;
3 @date 2016-08-21
4 @version 1.1.0
2 @author Copyright &copy; 2009-2017 Pedro López-Cabanillas &lt;plcl AT users.sf.net&gt;
3 @date 2017-08-15
4 @version 1.1.1
55
66 This document is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported License.
77 To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/
00 # spec file for package drumstick (Version @VERSION@)
11 #
22 # MIDI Sequencer C++ Library Bindings for Qt5
3 # Copyright (C) 2005-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
3 # Copyright (C) 2005-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
44 #
55 # This file and all modifications and additions to the pristine
66 # package are under the same license as the package itself.
0 VERSION = 1.1.0
0 VERSION = 1.1.2
11 DEFINES += VERSION=$$VERSION
2 VER_MAJ = 1
3 VER_MIN = 1
4 VER_PAT = 2
00 # MIDI Sequencer C++ Library
1 # Copyright (C) 2005-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
1 # Copyright (C) 2005-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
1111 # GNU General Public License for more details.
1212 #
1313 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 # MA 02110-1301, USA
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1715
1816 if(ALSA_FOUND)
1917 add_subdirectory(alsa)
0 <?xml version="1.0" encoding="UTF-8"?>
1 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
2 <plist version="1.0">
3 <dict>
4 <key>CFBundlePackageType</key>
5 <string>FMWK</string>
6 <key>CFBundleShortVersionString</key>
7 <string>@FULL_VERSION@</string>
8 <key>CFBundleVersion</key>
9 <string>@FULL_VERSION@</string>
10 <key>CFBundleGetInfoString</key>
11 <string>Created by Qt/QMake</string>
12 <key>CFBundleSignature</key>
13 <string>@TYPEINFO@</string>
14 <key>CFBundleExecutable</key>
15 <string>@LIBRARY@</string>
16 <key>CFBundleIdentifier</key>
17 <string>@BUNDLEIDENTIFIER@</string>
18 <key>NSHumanReadableCopyright</key>
19 <string>© 2006-2018, Pedro López-Cabanillas and others</string>
20 <key>NOTE</key>
21 <string>Please, do NOT change this file -- It was generated by Qt/QMake.</string>
22 </dict>
23 </plist>
00 # MIDI Sequencer C++ Library
1 # Copyright (C) 2005-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
1 # Copyright (C) 2005-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
1111 # GNU General Public License for more details.
1212 #
1313 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 # MA 02110-1301, USA
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1715
1816 set(CMAKE_INCLUDE_CURRENT_DIR ON)
1917 include_directories(${ALSA_INC_DIR})
6159 target_link_libraries(drumstick-alsa
6260 ${ALSA_LIBS}
6361 Qt5::Core
64 Qt5::DBus
6562 )
63
64 if(USE_DBUS)
65 target_link_libraries(drumstick-alsa
66 Qt5::DBus
67 )
68 endif()
6669
6770 if(STATIC_DRUMSTICK)
6871 set_target_properties(drumstick-alsa PROPERTIES
44 INCLUDEPATH += . ../include
55 include (../../global.pri)
66 QT -= gui
7 QT += dbus
7 #QT += dbus
88 CONFIG += qt thread create_prl
9 DEFINES += drumstick_alsa_EXPORTS RTKIT_SUPPORT
9 DEFINES += drumstick_alsa_EXPORTS #RTKIT_SUPPORT
1010 QMAKE_CXXFLAGS += $$QMAKE_CXXFLAGS_HIDESYMS
1111 # Input
1212 HEADERS += ../include/alsaclient.h \
00 /*
11 MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include "alsaclient.h"
00 /*
11 MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include "alsaevent.h"
00 /*
11 MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include "alsaqueue.h"
00 /*
11 MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include "alsaqueue.h"
00 /*
11 MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include "alsatimer.h"
00 /*
11 MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include "playthread.h"
00 /*
11 MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include "alsaclient.h"
00 # MIDI Sequencer C++ Library
1 # Copyright (C) 2005-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
1 # Copyright (C) 2005-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
1111 # GNU General Public License for more details.
1212 #
1313 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 # MA 02110-1301, USA
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1715
1816 set(CMAKE_INCLUDE_CURRENT_DIR ON)
1917 if (APPLE)
3333 #QMAKE_LFLAGS_SONAME = -Wl,-install_name,@executable_path/../Frameworks/
3434 QMAKE_SONAME_PREFIX = @rpath
3535 QMAKE_TARGET_BUNDLE_PREFIX = net.sourceforge
36 QMAKE_BUNDLE = drumstick-file
37 QMAKE_INFO_PLIST = ../Info.plist.lib
3638 }
00 /*
11 Overture OVE File component
2 Copyright (C) 2006-2016, Rui Fan <vanferry@gmail.com>
2 Copyright (C) 2006-2017, Rui Fan <vanferry@gmail.com>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include "qove.h"
00 /*
11 Standard MIDI File component
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 Based on midifile.c by Tim Thompson, M.Czeiszperger and Greg Lee
55
1313 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414 GNU General Public License for more details.
1515
16 You should have received a copy of the GNU General Public License along
17 with this program; if not, write to the Free Software Foundation, Inc.,
18 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
1918 */
2019
2120 #include "qsmf.h"
00 /*
11 WRK File component
2 Copyright (C) 2010-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2010-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include "qwrk.h"
00 /*
11 MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef DRUMSTICK_ALSACLIENT_H
00 /*
11 MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef DRUMSTICK_ALSAEVENT_H
00 /*
11 MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef DRUMSTICK_ALSAPORT_H
00 /*
11 MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef DRUMSTICK_ALSAQUEUE_H
00 /*
11 MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef DRUMSTICK_ALSATIMER_H
00 /*
11 Drumstick RT (realtime MIDI In/Out)
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef BACKENDMANAGER_H
00 /*
11 MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef DRUMSTICK_H
00 /*
11 MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef DRUMSTICK_DRUMSTICKCOMMON_H
00 /*
11 MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef DRUMSTICK_MACROS_H
00 /*
11 MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef DRUMSTICK_PLAYTHREAD_H
00 /*
11 Overture OVE File component
2 Copyright (C) 2006-2016, Rui Fan <vanferry@gmail.com>
2 Copyright (C) 2006-2017, Rui Fan <vanferry@gmail.com>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef DRUMSTICK_OVE_H
00 /*
11 Standard MIDI File component
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 Based on midifile.c by Tim Thompson, M.Czeiszperger and Greg Lee
55
1313 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414 GNU General Public License for more details.
1515
16 You should have received a copy of the GNU General Public License along
17 with this program; if not, write to the Free Software Foundation, Inc.,
18 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
1918 */
2019
2120 #ifndef DRUMSTICK_QSMF_H
00 /*
11 WRK File component
2 Copyright (C) 2010-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2010-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef DRUMSTICK_QWRK_H
00 /*
11 Drumstick MIDI realtime input-output
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef MIDIINPUT_H
00 /*
11 Drumstick MIDI realtime input-output
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef MIDIOUTPUT_H
00 /*
11 MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918
55 SUBDIRS += file
66 SUBDIRS += rt-backends
77 SUBDIRS += rt
8
9 macx {
10 OTHER_FILES += Info.plist.lib
11 }
00 # MIDI Sequencer C++ Library
1 # Copyright (C) 2005-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
1 # Copyright (C) 2005-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
1111 # GNU General Public License for more details.
1212 #
1313 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 # MA 02110-1301, USA
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
16 add_definitions(-DLIBSUFFIX=${LIB_SUFFIX})
1717
1818 set(CMAKE_INCLUDE_CURRENT_DIR ON)
1919 if (APPLE)
00 /*
11 Drumstick RT (realtime MIDI In/Out)
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include <QtGlobal>
5857 Q_IMPORT_PLUGIN(OSSInput)
5958 Q_IMPORT_PLUGIN(OSSOutput)
6059 #endif
60
61 #define _MKSTR(x) #x
62 #define MKSTR(x) _MKSTR(x)
6163
6264 /**
6365 * @file backendmanager.cpp
139141 d->appendDir( appPath + QStringLiteral("../PlugIns/") + QSTR_DRUMSTICK, result );
140142 #endif // Linux, Unix...
141143 QStringList libs;
142 libs << "../lib/" << "../lib32/" << "../lib64/";
144 libs << "../lib/";
145 #if defined(LIBSUFFIX)
146 libs << QString("../lib%1/").arg(MKSTR(LIBSUFFIX));
147 #endif
143148 foreach(const QString& lib, libs) {
144149 d->appendDir( appPath + lib + QSTR_DRUMSTICK, result );
145150 }
3131 #QMAKE_LFLAGS_SONAME = -Wl,-install_name,@executable_path/../Frameworks/
3232 QMAKE_SONAME_PREFIX = @rpath
3333 QMAKE_TARGET_BUNDLE_PREFIX = net.sourceforge
34 QMAKE_BUNDLE = drumstick-rt
35 QMAKE_INFO_PLIST = ../Info.plist.lib
3436 }
3537
3638 static {
00 # MIDI Sequencer C++ Library
1 # Copyright (C) 2005-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
1 # Copyright (C) 2005-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
1111 # GNU General Public License for more details.
1212 #
1313 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 # MA 02110-1301, USA
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1715
1816 #add_subdirectory(dummy-in)
1917 #add_subdirectory(dummy-out)
2018
2119 if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
22 if(ALSA_FOUND)
23 add_subdirectory(alsa-in)
24 add_subdirectory(alsa-out)
20 if(ALSA_FOUND)
21 add_subdirectory(alsa-in)
22 add_subdirectory(alsa-out)
23 endif()
2524 endif()
25
2626 if (PULSE_FOUND)
2727 add_subdirectory(eassynth)
28 endif()
2928 endif()
3029
3130 find_package(Qt5Network)
5049 add_subdirectory(win-out)
5150 endif()
5251
53 pkg_check_modules(FLUIDSYNTH fluidsynth>=1.1.1)
54 if(FLUIDSYNTH_FOUND)
55 add_subdirectory(synth)
56 endif()
52 #pkg_check_modules(FLUIDSYNTH fluidsynth>=1.1.1)
53 #if(FLUIDSYNTH_FOUND)
54 # add_subdirectory(synth)
55 #endif()
00 # MIDI Sequencer C++ Library
1 # Copyright (C) 2005-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
1 # Copyright (C) 2005-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
1111 # GNU General Public License for more details.
1212 #
1313 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 # MA 02110-1301, USA
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1715
1816 set(CMAKE_INCLUDE_CURRENT_DIR ON)
1917
00 /*
11 Drumstick RT Backend using the ALSA Sequencer
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include <QMutexLocker>
00 /*
11 Drumstick RT Backend using the ALSA Sequencer
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef ALSAMIDIInput_H
00 # MIDI Sequencer C++ Library
1 # Copyright (C) 2005-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
1 # Copyright (C) 2005-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
1111 # GNU General Public License for more details.
1212 #
1313 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 # MA 02110-1301, USA
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1715
1816 set(CMAKE_INCLUDE_CURRENT_DIR ON)
1917
00 /*
11 Drumstick RT Backend using the ALSA Sequencer
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include <QString>
00 /*
11 Drumstick RT Backend using the ALSA Sequencer
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef ALSAMIDIOUTPUT_H
00 /*
11 Drumstick RT (realtime MIDI In/Out)
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include "maccommon.h"
00 /*
11 Drumstick RT (realtime MIDI In/Out)
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef MACCOMMON_H
00 /*
11 Drumstick MIDI realtime input-output
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include <QDebug>
00 /*
11 Drumstick MIDI realtime input-output
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef MIDIPARSER_H
00 # MIDI Sequencer C++ Library
1 # Copyright (C) 2005-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
1 # Copyright (C) 2005-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
1111 # GNU General Public License for more details.
1212 #
1313 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 # MA 02110-1301, USA
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1715 set(CMAKE_INCLUDE_CURRENT_DIR ON)
1816
1917 set(drumstick-rt-dummy-in_QTOBJ_SRCS
00 /*
11 Drumstick RT (realtime MIDI In/Out)
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include "dummyinput.h"
00 /*
11 Drumstick RT (realtime MIDI In/Out)
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef DUMMYINPUT_H
00 /*
11 Drumstick RT (realtime MIDI In/Out)
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include "dummyoutput.h"
00 /*
11 Drumstick RT (realtime MIDI In/Out)
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef DUMMYOUTPUT_H
00 /*
11 Sonivox EAS Synthesizer for Qt applications
2 Copyright (C) 2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2016-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include <QDebug>
3231
3332 SynthController::~SynthController()
3433 {
35 qDebug() << Q_FUNC_INFO;
34 //qDebug() << Q_FUNC_INFO;
3635 if (m_renderingThread.isRunning()) {
3736 stop();
3837 }
4342 void
4443 SynthController::start()
4544 {
46 qDebug() << Q_FUNC_INFO;
45 //qDebug() << Q_FUNC_INFO;
4746 m_renderingThread.start(QThread::HighPriority);
4847 }
4948
5049 void
5150 SynthController::stop()
5251 {
53 qDebug() << Q_FUNC_INFO;
52 //qDebug() << Q_FUNC_INFO;
5453 m_renderer->stop();
5554 m_renderingThread.quit();
5655 m_renderingThread.wait();
6059 SynthController::initialize(QSettings* settings)
6160 {
6261 m_renderer->initialize(settings);
63 qDebug() << Q_FUNC_INFO;
62 //qDebug() << Q_FUNC_INFO;
6463 }
6564
6665 QString SynthController::backendName()
9291 void SynthController::open(QString name)
9392 {
9493 Q_UNUSED(name)
95 qDebug() << Q_FUNC_INFO;
94 //qDebug() << Q_FUNC_INFO;
9695 start();
9796 }
9897
9998 void SynthController::close()
10099 {
101 qDebug() << Q_FUNC_INFO;
100 //qDebug() << Q_FUNC_INFO;
102101 stop();
103102 }
104103
137136 m_renderer->sendMessage(MIDI_STATUS_CHANNELPRESSURE + chan, value);
138137 }
139138
140 void SynthController::sendPitchBend(int chan, int value)
139 void SynthController::sendPitchBend(int chan, int v)
141140 {
141 // -8192 <= v <= 8191; 0 <= value <= 16384
142 int value = 8192 + v;
142143 m_renderer->sendMessage(MIDI_STATUS_PITCHBEND + chan, MIDI_LSB(value), MIDI_MSB(value));
143144 }
144145
00 /*
11 Sonivox EAS Synthesizer for Qt applications
2 Copyright (C) 2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2016-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef SYNTHCONTROLLER_H
00 /*
11 Sonivox EAS Synthesizer for Qt applications
2 Copyright (C) 2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2016-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include <QObject>
2726 #include <eas_chorus.h>
2827 #include <pulse/simple.h>
2928 #include "synthrenderer.h"
30 #include "drumstickcommon.h"
3129
3230 namespace drumstick {
3331 namespace rt {
7573
7674 m_easData = dataHandle;
7775 m_streamHandle = handle;
78 assert(m_streamHandle != 0);
76 Q_ASSERT(m_streamHandle != 0);
7977 m_sampleRate = easConfig->sampleRate;
8078 m_bufferSize = easConfig->mixBufferSize;
8179 m_channels = easConfig->numChannels;
82 qDebug() << Q_FUNC_INFO << "EAS bufferSize=" << m_bufferSize << " sampleRate=" << m_sampleRate << " channels=" << m_channels;
80 //qDebug() << Q_FUNC_INFO << "EAS bufferSize=" << m_bufferSize << " sampleRate=" << m_sampleRate << " channels=" << m_channels;
8381 }
8482
8583 void
114112 {
115113 qCritical() << "Failed to create PulseAudio connection";
116114 }
117 qDebug() << Q_FUNC_INFO << "period_bytes=" << period_bytes;
115 //qDebug() << Q_FUNC_INFO << "period_bytes=" << period_bytes;
118116 }
119117
120118 void
133131 m_streamHandle = 0;
134132 m_easData = 0;
135133 }
136 qDebug() << Q_FUNC_INFO;
134 //qDebug() << Q_FUNC_INFO;
137135 }
138136
139137 void
143141 pa_simple_free(m_pulseHandle);
144142 m_pulseHandle = 0;
145143 }
146 qDebug() << Q_FUNC_INFO;
144 //qDebug() << Q_FUNC_INFO;
147145 }
148146
149147 SynthRenderer::~SynthRenderer()
170168 bool
171169 SynthRenderer::stopped()
172170 {
173 QReadLocker locker(&m_mutex);
171 QReadLocker locker(&m_mutex);
174172 return m_Stopped;
175173 }
176174
177175 void
178176 SynthRenderer::stop()
179177 {
180 QWriteLocker locker(&m_mutex);
181 qDebug() << Q_FUNC_INFO;
178 QWriteLocker locker(&m_mutex);
179 //qDebug() << Q_FUNC_INFO;
182180 m_Stopped = true;
183181 }
184182
187185 {
188186 int pa_err;
189187 unsigned char data[1024];
190 qDebug() << Q_FUNC_INFO << "started";
188 //qDebug() << Q_FUNC_INFO << "started";
191189 try {
192190 initPulse();
193191 m_Stopped = false;
212210 }
213211 }
214212 uninitPulse();
215 } catch (const SequencerError& err) {
216 qWarning() << "SequencerError exception. Error code: " << err.code()
217 << " (" << err.qstrError() << ")";
218 qWarning() << "Location: " << err.location();
219 }
220 qDebug() << Q_FUNC_INFO << "ended";
213 } catch (...) {
214 qWarning() << "Exception in rendering loop - exiting";
215 }
216 //qDebug() << Q_FUNC_INFO << "ended";
221217 emit finished();
222218 }
223219
335331 void
336332 SynthRenderer::setBufferTime(int milliseconds)
337333 {
338 qDebug() << Q_FUNC_INFO << milliseconds;
334 //qDebug() << Q_FUNC_INFO << milliseconds;
339335 m_bufferTime = milliseconds;
340336 }
341337
00 /*
11 Sonivox EAS Synthesizer for Qt applications
2 Copyright (C) 2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2016-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef SYNTHRENDERER_H_
00 # MIDI Sequencer C++ Library
1 # Copyright (C) 2005-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
1 # Copyright (C) 2005-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
1111 # GNU General Public License for more details.
1212 #
1313 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 # MA 02110-1301, USA
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1715
1816 set(CMAKE_INCLUDE_CURRENT_DIR ON)
1917
5048
5149 target_link_libraries(drumstick-rt-mac-in
5250 Qt5::Core
51 Qt5::Concurrent
5352 "-framework CoreMidi -framework CoreFoundation"
5453 )
5554
55 INCLUDEPATH += . ../../include ../common
66 include (../../../global.pri)
77 QT -= gui
8 QT += concurrent
89
910 HEADERS += ../../include/rtmidiinput.h \
1011 ../../include/rtmidioutput.h \
00 /*
11 Drumstick RT Backend
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include "macmidiinput.h"
2524 #include <QMutex>
2625 #include <QTextCodec>
2726 #include <QObject>
27 #include <QtConcurrent>
2828
2929 #include <CoreFoundation/CoreFoundation.h>
3030 #include <CoreMIDI/CoreMIDI.h>
5454
5555 MacMIDIInputPrivate(MacMIDIInput *inp) :
5656 m_inp(inp),
57 m_out(0),
57 m_out(nullptr),
5858 m_client(0),
5959 m_port(0),
6060 m_endpoint(0),
6969 void internalCreate(CFStringRef name)
7070 {
7171 OSStatus result = noErr;
72 result = MIDIClientCreate( name , NULL, NULL, &m_client );
72 result = MIDIClientCreate( name , nullptr, nullptr, &m_client );
7373 if (result != noErr) {
7474 qDebug() << "MIDIClientCreate() err:" << result;
7575 return;
174174 if (index < 0)
175175 return;
176176 m_source = MIDIGetSource( index );
177 result = MIDIPortConnectSource( m_port, m_source, NULL );
177 result = MIDIPortConnectSource( m_port, m_source, nullptr );
178178 if (result != noErr) {
179179 qDebug() << "MIDIPortConnectSource() error:" << result;
180180 return;
195195 }
196196 }
197197
198 void emitSignals(MIDIPacket* packet)
199 {
200 int value = 0;
201 int status = packet->data[0] & 0xf0;
202 int channel = packet->data[0] & 0x0f;
203 QByteArray data;
204 switch (status) {
205 case MIDI_STATUS_NOTEOFF:
206 if(m_out != 0 && m_thruEnabled)
207 m_out->sendNoteOff(channel, packet->data[1], packet->data[2]);
208 emit m_inp->midiNoteOff(channel, packet->data[1], packet->data[2]);
209 break;
210 case MIDI_STATUS_NOTEON:
211 if(m_out != 0 && m_thruEnabled)
212 m_out->sendNoteOn(channel, packet->data[1], packet->data[2]);
213 emit m_inp->midiNoteOn(channel, packet->data[1], packet->data[2]);
214 break;
215 case MIDI_STATUS_KEYPRESURE:
216 if(m_out != 0 && m_thruEnabled)
217 m_out->sendKeyPressure(channel, packet->data[1], packet->data[2]);
218 emit m_inp->midiKeyPressure(channel, packet->data[1], packet->data[2]);
219 break;
220 case MIDI_STATUS_CONTROLCHANGE:
221 if(m_out != 0 && m_thruEnabled)
222 m_out->sendController(channel, packet->data[1], packet->data[2]);
223 emit m_inp->midiController(channel, packet->data[1], packet->data[2]);
224 break;
225 case MIDI_STATUS_PROGRAMCHANGE:
226 if(m_out != 0 && m_thruEnabled)
227 m_out->sendProgram(channel, packet->data[1]);
228 emit m_inp->midiProgram(channel, packet->data[1]);
229 break;
230 case MIDI_STATUS_CHANNELPRESSURE:
231 if(m_out != 0 && m_thruEnabled)
232 m_out->sendChannelPressure(channel, packet->data[1]);
233 emit m_inp->midiChannelPressure(channel, packet->data[1]);
234 break;
235 case MIDI_STATUS_PITCHBEND:
236 value = (packet->data[1] + packet->data[2] * 0x80) - 8192;
237 if(m_out != 0 && m_thruEnabled)
238 m_out->sendPitchBend(channel, value);
239 emit m_inp->midiPitchBend(channel, value);
240 break;
241 case MIDI_STATUS_SYSEX:
242 data = QByteArray((const char *)packet->data, packet->length);
243 if(m_out != 0 && m_thruEnabled)
244 m_out->sendSysex(data);
245 emit m_inp->midiSysex(data);
246 break;
247 default:
248 qDebug() << "status?" << status;
249 }
250 }
251
198 void emitSignals(QByteArray& packet)
199 {
200 int value = 0, j = 0;
201 while(j < packet.length()) {
202 int status = packet[j] & 0xf0;
203 int channel = packet[j] & 0x0f;
204 QByteArray data;
205 switch (status) {
206 case MIDI_STATUS_NOTEOFF:
207 if(m_out != nullptr && m_thruEnabled)
208 m_out->sendNoteOff(channel, packet[j+1], packet[j+2]);
209 emit m_inp->midiNoteOff(channel, packet[j+1], packet[j+2]);
210 j+=3;
211 break;
212 case MIDI_STATUS_NOTEON:
213 if(m_out != nullptr && m_thruEnabled)
214 m_out->sendNoteOn(channel, packet[j+1], packet[j+2]);
215 emit m_inp->midiNoteOn(channel, packet[j+1], packet[j+2]);
216 j+=3;
217 break;
218 case MIDI_STATUS_KEYPRESURE:
219 if(m_out != nullptr && m_thruEnabled)
220 m_out->sendKeyPressure(channel, packet[j+1], packet[j+2]);
221 emit m_inp->midiKeyPressure(channel, packet[j+1], packet[j+2]);
222 j+=3;
223 break;
224 case MIDI_STATUS_CONTROLCHANGE:
225 if(m_out != nullptr && m_thruEnabled)
226 m_out->sendController(channel, packet[j+1], packet[j+2]);
227 emit m_inp->midiController(channel, packet[j+1], packet[j+2]);
228 j+=3;
229 break;
230 case MIDI_STATUS_PROGRAMCHANGE:
231 if(m_out != nullptr && m_thruEnabled)
232 m_out->sendProgram(channel, packet[j+1]);
233 emit m_inp->midiProgram(channel, packet[j+1]);
234 j+=2;
235 break;
236 case MIDI_STATUS_CHANNELPRESSURE:
237 if(m_out != nullptr && m_thruEnabled)
238 m_out->sendChannelPressure(channel, packet[j+1]);
239 emit m_inp->midiChannelPressure(channel, packet[j+1]);
240 j+=2;
241 break;
242 case MIDI_STATUS_PITCHBEND:
243 value = (packet[j+1] + packet[j+2] * 0x80) - 8192;
244 if(m_out != nullptr && m_thruEnabled)
245 m_out->sendPitchBend(channel, value);
246 emit m_inp->midiPitchBend(channel, value);
247 j+=3;
248 break;
249 case MIDI_STATUS_SYSEX:
250 if(m_out != nullptr && m_thruEnabled)
251 m_out->sendSysex(packet);
252 emit m_inp->midiSysex(packet);
253 j+=packet.length();
254 break;
255 default:
256 qDebug() << "status?" << status;
257 }
258 }
259 }
252260 };
253261
254 void MacMIDIReadProc( const MIDIPacketList *pktlist,
255 void *refCon, void *connRefCon )
262 void MacMIDIReadProc( const MIDIPacketList *pktlist, void *refCon, void *connRefCon )
256263 {
257264 Q_UNUSED(connRefCon)
258 MacMIDIInputPrivate *obj = NULL;
259 if (refCon != NULL)
265 MacMIDIInputPrivate *obj = nullptr;
266 if (refCon != nullptr)
260267 obj = static_cast<MacMIDIInputPrivate*>(refCon);
261
262 MIDIPacket *packet = (MIDIPacket *)pktlist->packet;
268 const MIDIPacket *packet = static_cast<const MIDIPacket *>(pktlist->packet);
263269 for (unsigned int i = 0; i < pktlist->numPackets; ++i) {
264 if (obj != NULL)
265 obj->emitSignals(packet);
270 if (obj != nullptr && packet != nullptr) {
271 QByteArray data((const char *)packet->data, packet->length);
272 QtConcurrent::run(obj, &MacMIDIInputPrivate::emitSignals, data);
273 }
266274 packet = MIDIPacketNext(packet);
267275 }
268276 }
00 /*
11 Drumstick RT Backend
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef MACMIDIOBJECT_H
00 # MIDI Sequencer C++ Library
1 # Copyright (C) 2005-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
1 # Copyright (C) 2005-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
1111 # GNU General Public License for more details.
1212 #
1313 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 # MA 02110-1301, USA
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1715
1816 set(CMAKE_INCLUDE_CURRENT_DIR ON)
1917
00 /*
11 Drumstick RT Backend
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include "macmidioutput.h"
00 /*
11 Drumstick RT Backend
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef MACMIDIOUTPUT_H
00 # MIDI Sequencer C++ Library
1 # Copyright (C) 2005-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
1 # Copyright (C) 2005-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
1111 # GNU General Public License for more details.
1212 #
1313 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 # MA 02110-1301, USA
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1715
1816 set(CMAKE_INCLUDE_CURRENT_DIR ON)
1917
00 /*
11 Drumstick RT Mac OSX Backend
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include <QDebug>
2120 #include "macsynth.h"
2221
2322 #include <CoreServices/CoreServices.h>
24 #include <AudioUnit/AUAudioUnit.h>
23 #include <AudioUnit/AudioUnit.h>
2524 #include <AudioToolbox/AudioToolbox.h>
2625
2726 #define PRETTY_NAME "DLS Synth"
4443 m_graph(0),
4544 m_synthUnit(0)
4645 {
47 qDebug() << Q_FUNC_INFO;
46 //qDebug() << Q_FUNC_INFO;
4847 m_connection.clear();
4948 }
5049
5150 virtual ~MacSynthOutputPrivate()
5251 {
53 qDebug() << Q_FUNC_INFO;
52 //qDebug() << Q_FUNC_INFO;
5453 stop();
5554 }
5655
106105 AUNode outputNode = 0;
107106 AUNode limiterNode = 0;
108107
109 qDebug() << Q_FUNC_INFO;
108 //qDebug() << Q_FUNC_INFO;
110109 if (m_graph == 0) {
111110 cd.componentManufacturer = kAudioUnitManufacturer_Apple;
112111 cd.componentFlags = 0;
187186 void stop ()
188187 {
189188 OSStatus result;
190 qDebug() << Q_FUNC_INFO;
189 //qDebug() << Q_FUNC_INFO;
191190 if (m_graph != 0) {
192191 result = AUGraphStop(m_graph);
193192 if (result != noErr)
205204
206205 void initialize ( QSettings *settings )
207206 {
208 qDebug() << Q_FUNC_INFO;
207 //qDebug() << Q_FUNC_INFO;
209208 settings->beginGroup(PRETTY_NAME);
210209 m_default_dls = settings->value("default_dls", true).toBool();
211210 m_reverb_dls = settings->value("reverb_dls", true).toBool();
212211 m_soundfont_dls = settings->value("soundfont_dls").toString();
213 qDebug() << "default_dls:" << m_default_dls;
214 qDebug() << "reverb_dls:" << m_reverb_dls;
215 qDebug() << "soundfont_dls" << m_soundfont_dls;
212 //qDebug() << "default_dls:" << m_default_dls;
213 //qDebug() << "reverb_dls:" << m_reverb_dls;
214 //qDebug() << "soundfont_dls" << m_soundfont_dls;
216215 settings->endGroup();
217216 }
218217
00 /*
11 Drumstick RT Mac OSX Backend
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef DLSSOFTSYNTH_H
00 # MIDI Sequencer C++ Library
1 # Copyright (C) 2005-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
1 # Copyright (C) 2005-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
1111 # GNU General Public License for more details.
1212 #
1313 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 # MA 02110-1301, USA
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1715
1816 find_package(Qt5Network REQUIRED)
1917
00 /*
11 Drumstick RT (realtime MIDI In/Out)
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include <QUdpSocket>
00 /*
11 Drumstick RT (realtime MIDI In/Out)
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef NETMIDIINPUT_H
00 /*
11 Drumstick RT (realtime MIDI In/Out)
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include <QObject>
00 /*
11 Drumstick RT (realtime MIDI In/Out)
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef NETMIDIINPUT_P_H
00 # MIDI Sequencer C++ Library
1 # Copyright (C) 2005-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
1 # Copyright (C) 2005-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
1111 # GNU General Public License for more details.
1212 #
1313 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 # MA 02110-1301, USA
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1715
1816 find_package(Qt5Network REQUIRED)
1917
00 /*
11 Drumstick RT (realtime MIDI In/Out)
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include <QDebug>
215214 d->sendMessage(MIDI_STATUS_CHANNELPRESSURE + chan, value);
216215 }
217216
218 void NetMIDIOutput::sendPitchBend(int chan, int value)
219 {
217 void NetMIDIOutput::sendPitchBend(int chan, int v)
218 {
219 // -8192 <= v <= 8191; 0 <= value <= 16384
220 int value = 8192 + v;
220221 d->sendMessage(MIDI_STATUS_PITCHBEND + chan, MIDI_LSB(value), MIDI_MSB(value));
221222 }
222223
00 /*
11 Drumstick RT (realtime MIDI In/Out)
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef NETMIDIOUTPUT_H
00 # MIDI Sequencer C++ Library
1 # Copyright (C) 2005-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
1 # Copyright (C) 2005-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
1111 # GNU General Public License for more details.
1212 #
1313 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 # MA 02110-1301, USA
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1715
1816 set(CMAKE_INCLUDE_CURRENT_DIR ON)
1917
00 /*
11 Drumstick RT (realtime MIDI In/Out)
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include "ossinput.h"
00 /*
11 Drumstick RT (realtime MIDI In/Out)
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef ossINPUT_H
00 /*
11 Drumstick RT (realtime MIDI In/Out)
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include <QObject>
00 /*
11 Drumstick RT (realtime MIDI In/Out)
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef OSSINPUT_P_H
00 # MIDI Sequencer C++ Library
1 # Copyright (C) 2005-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
1 # Copyright (C) 2005-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
1111 # GNU General Public License for more details.
1212 #
1313 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 # MA 02110-1301, USA
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1715
1816 set(CMAKE_INCLUDE_CURRENT_DIR ON)
1917
00 /*
11 Drumstick RT (realtime MIDI In/Out)
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include <QFile>
209208 d->sendMessage(MIDI_STATUS_CHANNELPRESSURE + chan, value);
210209 }
211210
212 void OSSOutput::sendPitchBend(int chan, int value)
213 {
211 void OSSOutput::sendPitchBend(int chan, int v)
212 {
213 // -8192 <= v <= 8191; 0 <= value <= 16384
214 int value = 8192 + v;
214215 d->sendMessage(MIDI_STATUS_PITCHBEND + chan, MIDI_LSB(value), MIDI_MSB(value));
215216 }
216217
00 /*
11 Drumstick RT (realtime MIDI In/Out)
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef ossOUTPUT_H
55
66 linux* {
77 SUBDIRS += alsa-in alsa-out
8 packagesExist(libpulse-simple) {
9 SUBDIRS += eassynth
10 }
118 }
129
1310 unix:!macx {
1613
1714 macx {
1815 SUBDIRS += mac-in mac-out macsynth
19 exists(/Library/Frameworks/FluidSynth.framework/Headers/*) {
20 SUBDIRS += synth
21 }
16 #exists(/Library/Frameworks/FluidSynth.framework/Headers/*) {
17 # SUBDIRS += synth
18 #}
2219 }
2320 else {
24 packagesExist(fluidsynth) {
25 SUBDIRS += synth
21 #packagesExist(fluidsynth) {
22 # SUBDIRS += synth
23 #}
24 packagesExist(libpulse-simple) {
25 SUBDIRS += eassynth
2626 }
2727 }
2828
00 # MIDI Sequencer C++ Library
1 # Copyright (C) 2005-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
1 # Copyright (C) 2005-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
1111 # GNU General Public License for more details.
1212 #
1313 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 # MA 02110-1301, USA
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1715
1816 set(CMAKE_INCLUDE_CURRENT_DIR ON)
1917
00 /*
11 Drumstick RT (realtime MIDI In/Out)
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
00 /*
11 Drumstick RT (realtime MIDI In/Out)
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
00 /*
11 Drumstick RT (realtime MIDI In/Out)
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include "synthoutput.h"
00 /*
11 Drumstick RT (realtime MIDI In/Out)
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef SynthOUTPUT_H
00 # MIDI Sequencer C++ Library
1 # Copyright (C) 2005-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
1 # Copyright (C) 2005-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
1111 # GNU General Public License for more details.
1212 #
1313 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 # MA 02110-1301, USA
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1715
1816 set(CMAKE_INCLUDE_CURRENT_DIR ON)
1917
00 /*
11 Drumstick RT Windows Backend
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include <QString>
00 /*
11 Drumstick RT Windows Backend
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef WINMIDIINPUT_H
00 # MIDI Sequencer C++ Library
1 # Copyright (C) 2005-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
1 # Copyright (C) 2005-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
1111 # GNU General Public License for more details.
1212 #
1313 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 # MA 02110-1301, USA
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1715
1816 set(CMAKE_INCLUDE_CURRENT_DIR ON)
1917
00 /*
11 Drumstick RT Windows Backend
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include <QDebug>
339338 d->sendShortMessage(packet);
340339 }
341340
342 void WinMIDIOutput::sendPitchBend(int chan, int value)
343 {
344 WinMIDIPacket packet;
341 void WinMIDIOutput::sendPitchBend(int chan, int v)
342 {
343 WinMIDIPacket packet;
344 // -8192 <= v <= 8191; 0 <= value <= 16384
345 int value = 8192 + v;
345346 packet.data[0] = MIDI_STATUS_PITCHBEND | (chan & MIDI_CHANNEL_MASK);
346347 packet.data[1] = MIDI_LSB(value);
347348 packet.data[2] = MIDI_MSB(value);
00 /*
11 Drumstick RT Windows Backend
2 Copyright (C) 2009-2016 Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2009-2018 Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef WINMIDIOUTPUT_H
00 # MIDI Sequencer C++ Library
1 # Copyright (C) 2005-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
1 # Copyright (C) 2005-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
1111 # GNU General Public License for more details.
1212 #
1313 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 # MA 02110-1301, USA
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1715
1816 find_package(Qt5Test REQUIRED)
1917 set (CMAKE_AUTOMOC ON)
00 # MIDI Sequencer C++ Library
1 # Copyright (C) 2005-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
1 # Copyright (C) 2005-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
1111 # GNU General Public License for more details.
1212 #
1313 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 # MA 02110-1301, USA
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1715
1816 add_executable (alsaTest1 alsatest1.cpp)
1917
00 # MIDI Sequencer C++ Library
1 # Copyright (C) 2005-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
1 # Copyright (C) 2005-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
1111 # GNU General Public License for more details.
1212 #
1313 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 # MA 02110-1301, USA
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1715
1816 add_executable (alsaTest2 alsatest2.cpp)
1917
1414
1515 private Q_SLOTS:
1616 void testTimer();
17 void initTestCase();
18 void cleanupTestCase();
1719
1820 private:
19 TimerInfo m_info;
20 TimerStatus m_status;
21 TimerParams m_params;
22 int m_count;
21 QPointer<Timer> m_test_timer;
22 int m_count;
2323 };
2424
2525 AlsaTest2::AlsaTest2():
26 m_test_timer(0),
2627 m_count(0)
27 {
28 }
28 { }
2929
3030 void AlsaTest2::handleTimerEvent(int , int )
3131 {
3232 m_count++;
3333 }
3434
35 void AlsaTest2::initTestCase()
36 {
37 try {
38 QFileInfo check_devsnd("/dev/snd/");
39 QVERIFY(check_devsnd.exists() && check_devsnd.isDir());
40 QFileInfo check_devsndseq("/dev/snd/seq");
41 QVERIFY(check_devsndseq.exists() && !check_devsndseq.isFile() && !check_devsndseq.isDir());
42 QFileInfo check_devsndtimer("/dev/snd/timer");
43 QVERIFY(check_devsndtimer.exists() && !check_devsndseq.isFile() && !check_devsndseq.isDir());
44 m_test_timer = Timer::bestGlobalTimer( SND_TIMER_OPEN_NONBLOCK |
45 SND_TIMER_OPEN_TREAD );
46 } catch (...) {
47 QWARN("Timer test initialization failed");
48 }
49 }
50
51 void AlsaTest2::cleanupTestCase()
52 {
53 delete m_test_timer;
54 }
55
3556 void AlsaTest2::testTimer()
3657 {
37 QPointer<Timer> test_timer;
38 test_timer = Timer::bestGlobalTimer( SND_TIMER_OPEN_NONBLOCK |
39 SND_TIMER_OPEN_TREAD );
40 if (test_timer != 0) {
58 if (m_test_timer != 0) {
4159 m_count = 0;
42 m_info = test_timer->getTimerInfo();
4360 try {
44 m_params.setAutoStart(true);
45 if (!m_info.isSlave()) {
61 TimerParams tparams;
62 TimerInfo tinfo = m_test_timer->getTimerInfo();
63 tparams.setAutoStart(true);
64 if (!tinfo.isSlave()) {
4665 /* 50 Hz */
47 m_params.setTicks( 1000000000L / m_info.getResolution() / 50);
48 if (m_params.getTicks() < 1) {
49 m_params.setTicks(1);
66 tparams.setTicks( 1000000000L / tinfo.getResolution() / 50);
67 if (tparams.getTicks() < 1) {
68 tparams.setTicks(1);
5069 }
5170 } else {
52 m_params.setTicks(1);
71 tparams.setTicks(1);
5372 }
54 m_params.setFilter(1 << SND_TIMER_EVENT_TICK);
55 test_timer->setTimerParams(m_params);
56 test_timer->setHandler(this);
73 tparams.setFilter(1 << SND_TIMER_EVENT_TICK);
74 m_test_timer->setTimerParams(tparams);
75 m_test_timer->setHandler(this);
5776 // Testing timer callback method
58 test_timer->start();
59 test_timer->startEvents();
77 m_test_timer->start();
78 m_test_timer->startEvents();
6079 QTest::qWait(1000);
61 test_timer->stopEvents();
62 test_timer->stop();
63 QCOMPARE(m_count, 51);
64 m_status = test_timer->getTimerStatus();
65 QCOMPARE(m_status.getLost(), 0L);
66 QCOMPARE(m_status.getOverrun(), 0L);
80 m_test_timer->stopEvents();
81 m_test_timer->stop();
82 QVERIFY2(qAbs(50 - m_count) <= 1, "Timer results are wrong");
83 TimerStatus tstatus = m_test_timer->getTimerStatus();
84 QCOMPARE(tstatus.getLost(), 0L);
85 QCOMPARE(tstatus.getOverrun(), 0L);
6786 } catch (...) {
6887 QFAIL("Timer test failed");
6988 }
70 delete test_timer;
7189 }
7290 }
7391
00 # MIDI Sequencer C++ Library
1 # Copyright (C) 2005-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
1 # Copyright (C) 2005-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
1111 # GNU General Public License for more details.
1212 #
1313 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 # MA 02110-1301, USA
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1715
1816 add_executable (fileTest filetest.cpp)
1917
88 0x00, 0x78, 0x4d, 0x54, 0x72, 0x6b, 0x00, 0x00, 0x00, 0x99, 0x00, 0xff,
99 0x02, 0x2f, 0x43, 0x6f, 0x70, 0x79, 0x72, 0x69, 0x67, 0x68, 0x74, 0x20,
1010 0x28, 0x43, 0x29, 0x20, 0x32, 0x30, 0x30, 0x36, 0x2d, 0x32, 0x30, 0x31,
11 0x36, 0x20, 0x50, 0x65, 0x64, 0x72, 0x6f, 0x20, 0x4c, 0xc3, 0xb3, 0x70,
11 0x37, 0x20, 0x50, 0x65, 0x64, 0x72, 0x6f, 0x20, 0x4c, 0xc3, 0xb3, 0x70,
1212 0x65, 0x7a, 0x2d, 0x43, 0x61, 0x62, 0x61, 0x6e, 0x69, 0x6c, 0x6c, 0x61,
1313 0x73, 0x00, 0xff, 0x51, 0x03, 0x09, 0x27, 0xc0, 0x00, 0xff, 0x58, 0x04,
1414 0x03, 0x02, 0x24, 0x08, 0x00, 0xff, 0x59, 0x02, 0x02, 0x00, 0x00, 0xf0,
2626 const int TRACKS( 1 );
2727 const int DIVISION( 120 );
2828 const int TEMPO( 100 );
29 const QString COPYRIGHT( "Copyright (C) 2006-2016 Pedro López-Cabanillas" );
29 const QString COPYRIGHT( "Copyright (C) 2006-2017 Pedro López-Cabanillas" );
3030 const QByteArray GSRESET( "f04110421240007f0041f7" );
3131 const QList<int> NOTES({ 60, 62, 64, 65, 67, 69, 71, 72 });
3232
00 # MIDI Sequencer C++ Library
1 # Copyright (C) 2005-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
1 # Copyright (C) 2005-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
1111 # GNU General Public License for more details.
1212 #
1313 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 # MA 02110-1301, USA
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1715
1816 add_executable (rtTest rttest.cpp)
1917
4242 QCOMPARE(input->backendName().isEmpty(), false );
4343 QCOMPARE(input->publicName().isEmpty(), false );
4444 QStringList conns = input->connections();
45 foreach(const QString& c, conns) {
46 qDebug() << " conn:" << c;
47 }
48 QVERIFY2(conns.length() > 0, "Backend without any connection");
45 //foreach(const QString& c, conns) {
46 qDebug() << " connections:" << (conns.isEmpty() ? "none" : conns.join(", "));
47 //}
48 /*QVERIFY2(conns.length() > 0, "Backend without any connection");
4949 QStringList avconns = input->connections(true);
5050 QVERIFY2(avconns.length() > 0, "Backend without any advanced connection");
51 QVERIFY2(avconns.length() >= conns.length(), "unexpected connections number");
51 QVERIFY2(avconns.length() >= conns.length(), "unexpected connections number");*/
5252 }
5353
5454 outputsList = man.availableOutputs();
5858 QCOMPARE(output->backendName().isEmpty(), false );
5959 QCOMPARE(output->publicName().isEmpty(), false );
6060 QStringList conns = output->connections();
61 foreach(const QString& c, conns) {
62 qDebug() << " conn:" << c;
63 }
64 QVERIFY2(conns.length() > 0, "Backend without any connection");
61 //foreach(const QString& c, conns) {
62 qDebug() << " connections:" << (conns.isEmpty() ? "none" : conns.join(", "));
63 //}
64 /*QVERIFY2(conns.length() > 0, "Backend without any connection");
6565 QStringList avconns = output->connections(true);
6666 QVERIFY2(avconns.length() > 0, "Backend without any advanced connection");
67 QVERIFY2(avconns.length() >= conns.length(), "unexpected connections number");
67 QVERIFY2(avconns.length() >= conns.length(), "unexpected connections number");*/
6868 }
6969 }
7070
00 # MIDI Sequencer C++ Library
1 # Copyright (C) 2005-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
1 # Copyright (C) 2005-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
1111 # GNU General Public License for more details.
1212 #
1313 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 # MA 02110-1301, USA
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1715
1816 include_directories(
1917 ${CMAKE_CURRENT_SOURCE_DIR}
0 <?xml version="1.0" encoding="UTF-8"?>
1 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
2 <plist version="1.0">
3 <dict>
4 <key>NSPrincipalClass</key>
5 <string>NSApplication</string>
6 <key>CFBundleIconFile</key>
7 <string>@ICON@</string>
8 <key>CFBundlePackageType</key>
9 <string>APPL</string>
10 <key>CFBundleGetInfoString</key>
11 <string>Created by Qt/QMake</string>
12 <key>CFBundleInfoDictionaryVersion</key>
13 <string>6.0</string>
14 <key>CFBundleDisplayName</key>
15 <string>Sample Drumstick Application</string>
16 <key>CFBundleSignature</key>
17 <string>@TYPEINFO@</string>
18 <key>CFBundleExecutable</key>
19 <string>@EXECUTABLE@</string>
20 <key>CFBundleIdentifier</key>
21 <string>@BUNDLEIDENTIFIER@</string>
22 <key>CFBundleVersion</key>
23 <string>@FULL_VERSION@</string>
24 <key>CFBundleShortVersionString</key>
25 <string>@FULL_VERSION@</string>
26 <key>NSHumanReadableCopyright</key>
27 <string>© 2006-2018, Pedro López-Cabanillas and others</string>
28 <key>NSHighResolutionCapable</key>
29 <string>True</string>
30 <key>NOTE</key>
31 <string>This file was generated by Qt/QMake.</string></dict>
32 </plist>
00 # MIDI Sequencer C++ Library
1 # Copyright (C) 2005-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
1 # Copyright (C) 2005-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
1111 # GNU General Public License for more details.
1212 #
1313 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 # MA 02110-1301, USA
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1715
1816 set( common_SRCS
1917 cmdlineargs.cpp
00 /*
11 Command line arguments parser
2 Copyright (C) 2010-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2010-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include "cmdlineargs.h"
00 /*
11 Command line arguments parser
2 Copyright (C) 2010-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2010-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef CMDLINEARGS_H
00 # MIDI Sequencer C++ Library
1 # Copyright (C) 2005-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
1 # Copyright (C) 2005-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
1111 # GNU General Public License for more details.
1212 #
1313 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 # MA 02110-1301, USA
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1715
1816 find_package(Qt5Widgets REQUIRED)
1917
00 /*
11 MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include "drumgrid.h"
00 /*
11 MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef DRUMGRID_H
00 TEMPLATE = app
11 TARGET = drumstick-drumgrid
2 QT += gui widgets dbus
2 QT += gui widgets #dbus
33 CONFIG += qt thread exceptions link_prl
44 DESTDIR = ../../build/bin
55 INCLUDEPATH += . ../../library/include ../common
00 /*
11 Drumgrid test using the MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include "drumgridabout.h"
00 /*
11 Drumgrid test using the MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef ABOUT_H
2525 <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
2626 &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
2727 p, li { white-space: pre-wrap; }
28 &lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'MS Shell Dlg 2'; font-size:7.8pt; font-weight:400; font-style:normal;&quot;&gt;
29 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Sans Serif'; font-size:16pt; font-weight:600;&quot;&gt;Drumstick Drum Grid %VERSION%&lt;/span&gt;&lt;/p&gt;
30 &lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans Serif'; font-size:9pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
31 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Sans Serif'; font-size:10pt;&quot;&gt;Sample application for the &lt;/span&gt;&lt;a href=&quot;http://drumstick.sourceforge.net&quot;&gt;&lt;span style=&quot; font-family:'DejaVu Sans'; font-size:10pt; text-decoration: underline; color:#0057ae;&quot;&gt;Drumstick MIDI Sequencer C++ library&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
32 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Sans Serif'; font-size:10pt;&quot;&gt;Copyright © 2006-2016, Pedro Lopez-Cabanillas &amp;lt;&lt;/span&gt;&lt;a href=&quot;mailto:plcl@users.sf.net&quot;&gt;&lt;span style=&quot; font-family:'DejaVu Sans'; font-size:10pt; text-decoration: underline; color:#0057ae;&quot;&gt;plcl@users.sf.net&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot; font-family:'Sans Serif'; font-size:10pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
33 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Sans Serif'; font-size:10pt;&quot;&gt; &lt;/span&gt;&lt;/p&gt;
34 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Sans Serif'; font-size:8pt;&quot;&gt;This program 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.&lt;/span&gt;&lt;/p&gt;
35 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Sans Serif'; font-size:8pt;&quot;&gt; &lt;/span&gt;&lt;/p&gt;
36 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Sans Serif'; font-size:8pt;&quot;&gt;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 for more details.&lt;/span&gt;&lt;/p&gt;
37 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Sans Serif'; font-size:8pt;&quot;&gt; &lt;/span&gt;&lt;/p&gt;
38 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Sans Serif'; font-size:8pt;&quot;&gt;You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. &lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
28 &lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;&quot;&gt;
29 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:16pt; font-weight:600;&quot;&gt;Drumstick Drum Grid %VERSION%&lt;/span&gt;&lt;/p&gt;
30 &lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:9pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
31 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Sample application for the &lt;a href=&quot;http://drumstick.sourceforge.net&quot;&gt;&lt;span style=&quot; font-family:'DejaVu Sans'; text-decoration: underline; color:#0057ae;&quot;&gt;Drumstick MIDI Sequencer C++ library&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
32 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Copyright © 2006-2018, Pedro Lopez-Cabanillas &amp;lt;&lt;a href=&quot;mailto:plcl@users.sf.net&quot;&gt;&lt;span style=&quot; font-family:'DejaVu Sans'; text-decoration: underline; color:#0057ae;&quot;&gt;plcl@users.sf.net&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/p&gt;
33 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; &lt;/p&gt;
34 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt;This program 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.&lt;/span&gt;&lt;/p&gt;
35 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt; &lt;/span&gt;&lt;/p&gt;
36 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt;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 for more details.&lt;/span&gt;&lt;/p&gt;
37 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt; &lt;/span&gt;&lt;/p&gt;
38 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt;You should have received a copy of the GNU General Public License along with this program. If not, see &lt;/span&gt;&lt;a href=&quot;http://www.gnu.org/licenses/&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0057ae;&quot;&gt;http://www.gnu.org/licenses/&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt;.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
3939 </property>
4040 <property name="openExternalLinks">
4141 <bool>true</bool>
00 /*
11 MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include "drumgrid.h"
00 /*
11 MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include "drumgridmodel.h"
00 /*
11 MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef DRUMGRIDMODEL_H
44 Terminal=false
55 Type=Application
66 Categories=AudioVideo;Audio;Midi;Education;Music;
7 Keywords=Music;Midi;Drum;Grid;
78 Comment=Drumstick Drum Grid
89 Comment[es]=Caja de Ritmos de Drumstick
00 # MIDI Sequencer C++ Library
1 # Copyright (C) 2005-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
1 # Copyright (C) 2005-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
1111 # GNU General Public License for more details.
1212 #
1313 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 # MA 02110-1301, USA
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1715
1816 SET(dumpmid_SRCS
1917 dumpmid.cpp
00 /*
11 MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include "dumpmid.h"
00 /*
11 MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef DUMPMIDI_H_
00 TEMPLATE = app
11 TARGET = drumstick-dumpmid
2 QT += dbus
2 #QT += dbus
33 CONFIG += qt console thread exceptions link_prl link_pkgconfig
44 DESTDIR = ../../build/bin
55 INCLUDEPATH += . ../../library/include ../common
00 # MIDI Sequencer C++ Library
1 # Copyright (C) 2005-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
1 # Copyright (C) 2005-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
1111 # GNU General Public License for more details.
1212 #
1313 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 # MA 02110-1301, USA
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1715
1816 SET(dumpove_SRCS
1917 dumpove.cpp
00 /*
11 Overture OVE file dump program
2 Copyright (C) 2006-2016, Fan Rui <vanferry@gmail.com>
2 Copyright (C) 2006-2017, Fan Rui <vanferry@gmail.com>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include "dumpove.h"
00 /*
11 Overture OVE file dump program
2 Copyright (C) 2006-2016, Fan Rui <vanferry@gmail.com>
2 Copyright (C) 2006-2017, Fan Rui <vanferry@gmail.com>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include "qove.h"
00 # MIDI Sequencer C++ Library
1 # Copyright (C) 2005-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
1 # Copyright (C) 2005-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
1111 # GNU General Public License for more details.
1212 #
1313 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 # MA 02110-1301, USA
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1715
1816 SET(dumpsmf_SRCS
1917 dumpsmf.cpp
00 /*
11 Standard MIDI File dump program
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 Based on midifile.c by Tim Thompson, M.Czeiszperger and Greg Lee
55
1313 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414 GNU General Public License for more details.
1515
16 You should have received a copy of the GNU General Public License along
17 with this program; if not, write to the Free Software Foundation, Inc.,
18 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
1918 */
2019
2120 #include "dumpsmf.h"
00 /*
11 Standard MIDI File dump program
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 Based on midifile.c by Tim Thompson, M.Czeiszperger and Greg Lee
55
1313 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414 GNU General Public License for more details.
1515
16 You should have received a copy of the GNU General Public License along
17 with this program; if not, write to the Free Software Foundation, Inc.,
18 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
1918 */
2019
2120 #include "qsmf.h"
00 # MIDI Sequencer C++ Library
1 # Copyright (C) 2005-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
1 # Copyright (C) 2005-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
1111 # GNU General Public License for more details.
1212 #
1313 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 # MA 02110-1301, USA
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1715
1816 SET(dumpwrk_SRCS
1917 dumpwrk.cpp
00 /*
11 Cakewalk WRK file dump program
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 Based on midifile.c by Tim Thompson, M.Czeiszperger and Greg Lee
55
1313 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414 GNU General Public License for more details.
1515
16 You should have received a copy of the GNU General Public License along
17 with this program; if not, write to the Free Software Foundation, Inc.,
18 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
1918 */
2019
2120 #include "dumpwrk.h"
00 /*
11 Cakewalk WRK file dump program
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 Based on midifile.c by Tim Thompson, M.Czeiszperger and Greg Lee
55
1313 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414 GNU General Public License for more details.
1515
16 You should have received a copy of the GNU General Public License along
17 with this program; if not, write to the Free Software Foundation, Inc.,
18 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
1918 */
2019
2120 #include "qwrk.h"
00 # MIDI Sequencer C++ Library
1 # Copyright (C) 2005-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
1 # Copyright (C) 2005-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
1111 # GNU General Public License for more details.
1212 #
1313 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 # MA 02110-1301, USA
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1715
1816 find_package(Qt5Widgets REQUIRED)
1917
44 Terminal=false
55 Type=Application
66 Categories=AudioVideo;Audio;Midi;Education;Music;
7 Keywords=Music;Midi;Player;
78 MimeType=audio/midi;audio/x-midi;audio/cakewalk;audio/overture;
89 Comment=Drumstick MIDI Player
910 Comment[es]=Reproductor MIDI de Drumstick
00 /*
11 SMF GUI Player test using the MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include "guiplayer.h"
00 /*
11 SMF GUI Player test using the MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef INCLUDED_GUIPLAYER_H
00 TEMPLATE = app
11 TARGET = drumstick-guiplayer
2 QT += gui widgets dbus
2 QT += gui widgets #dbus
33 CONFIG += qt thread exceptions link_prl
44 DESTDIR = ../../build/bin
55 INCLUDEPATH += . ../../library/include ../common
00 /*
11 SMF GUI Player test using the MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include "player.h"
00 /*
11 SMF GUI Player test using the MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef INCLUDED_PLAYER_H
00 /*
11 Virtual Piano test using the MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include "playerabout.h"
00 /*
11 Virtual Piano test using the MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef ABOUT_H
2929 <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
3030 &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
3131 p, li { white-space: pre-wrap; }
32 &lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'MS Shell Dlg 2'; font-size:7.8pt; font-weight:400; font-style:normal;&quot;&gt;
33 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Sans Serif'; font-size:16pt; font-weight:600;&quot;&gt;Drumstick MIDI Player %VERSION%&lt;/span&gt;&lt;/p&gt;
34 &lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans Serif'; font-size:9pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
35 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Sans Serif'; font-size:10pt;&quot;&gt;Sample application for the &lt;/span&gt;&lt;a href=&quot;http://drumstick.sourceforge.net&quot;&gt;&lt;span style=&quot; font-family:'DejaVu Sans'; font-size:10pt; text-decoration: underline; color:#0057ae;&quot;&gt;Drumstick MIDI Sequencer C++ library&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
36 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Sans Serif'; font-size:10pt;&quot;&gt;Copyright © 2006-2016, Pedro Lopez-Cabanillas &amp;lt;&lt;/span&gt;&lt;a href=&quot;mailto:plcl@users.sf.net&quot;&gt;&lt;span style=&quot; font-family:'DejaVu Sans'; font-size:10pt; text-decoration: underline; color:#0057ae;&quot;&gt;plcl@users.sf.net&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot; font-family:'Sans Serif'; font-size:10pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
37 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Sans Serif'; font-size:10pt;&quot;&gt; &lt;/span&gt;&lt;/p&gt;
38 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Sans Serif'; font-size:8pt;&quot;&gt;This program 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.&lt;/span&gt;&lt;/p&gt;
39 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Sans Serif'; font-size:8pt;&quot;&gt; &lt;/span&gt;&lt;/p&gt;
40 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Sans Serif'; font-size:8pt;&quot;&gt;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 for more details.&lt;/span&gt;&lt;/p&gt;
41 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Sans Serif'; font-size:8pt;&quot;&gt; &lt;/span&gt;&lt;/p&gt;
42 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Sans Serif'; font-size:8pt;&quot;&gt;You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. &lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
32 &lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;&quot;&gt;
33 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:16pt; font-weight:600;&quot;&gt;Drumstick MIDI Player %VERSION%&lt;/span&gt;&lt;/p&gt;
34 &lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:9pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
35 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Sample application for the &lt;a href=&quot;http://drumstick.sourceforge.net&quot;&gt;&lt;span style=&quot; font-family:'DejaVu Sans'; text-decoration: underline; color:#0057ae;&quot;&gt;Drumstick MIDI Sequencer C++ library&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
36 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Copyright © 2006-2018, Pedro Lopez-Cabanillas &amp;lt;&lt;a href=&quot;mailto:plcl@users.sf.net&quot;&gt;&lt;span style=&quot; font-family:'DejaVu Sans'; text-decoration: underline; color:#0057ae;&quot;&gt;plcl@users.sf.net&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/p&gt;
37 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; &lt;/p&gt;
38 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt;This program 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.&lt;/span&gt;&lt;/p&gt;
39 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt; &lt;/span&gt;&lt;/p&gt;
40 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt;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 for more details.&lt;/span&gt;&lt;/p&gt;
41 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt; &lt;/span&gt;&lt;/p&gt;
42 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt;You should have received a copy of the GNU General Public License along with this program. If not, see &lt;/span&gt;&lt;a href=&quot;http://www.gnu.org/licenses/&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0057ae;&quot;&gt;http://www.gnu.org/licenses/&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt;.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
4343 </property>
4444 <property name="openExternalLinks">
4545 <bool>true</bool>
00 /*
11 SMF GUI Player test using the MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include "guiplayer.h"
00 /*
11 SMF GUI Player test using the MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include "song.h"
00 /*
11 SMF GUI Player test using the MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef INCLUDED_SONG_H
00 # MIDI Sequencer C++ Library
1 # Copyright (C) 2005-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
1 # Copyright (C) 2005-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
1111 # GNU General Public License for more details.
1212 #
1313 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 # MA 02110-1301, USA
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1715
1816 SET(metronome_SRCS
1917 metronome.cpp
00 /*
11 Standard MIDI simple metronome
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include "metronome.h"
00 /*
11 Standard MIDI simple metronome
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef METRONOME_H
00 TEMPLATE = app
11 TARGET = drumstick-metronome
2 QT += dbus
2 #QT += dbus
33 CONFIG += qt console thread exceptions link_prl
44 DESTDIR = ../../build/bin
55 INCLUDEPATH += . ../../library/include ../common
00 # MIDI Sequencer C++ Library
1 # Copyright (C) 2005-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
1 # Copyright (C) 2005-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
1111 # GNU General Public License for more details.
1212 #
1313 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 # MA 02110-1301, USA
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1715
1816 SET(playsmf_SRCS
1917 playsmf.cpp
00 /*
11 Standard MIDI File player program
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include "playsmf.h"
00 /*
11 Standard MIDI File player program
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef PLAYSMF_H_
00 TEMPLATE = app
11 TARGET = drumstick-playsmf
2 QT += dbus
2 #QT += dbus
33 CONFIG += qt console thread exceptions link_prl
44 DESTDIR = ../../build/bin
55 INCLUDEPATH += . ../../library/include ../common
00 /*
11 MIDI Sequencer C++ Library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef STABLEHEADERS_H_
00 # MIDI Sequencer C++ Library
1 # Copyright (C) 2005-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
1 # Copyright (C) 2005-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
1111 # GNU General Public License for more details.
1212 #
1313 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 # MA 02110-1301, USA
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1715
1816 SET(sysinfo_SRCS
1917 sysinfo.cpp
00 /*
11 MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include "alsatimer.h"
00 TEMPLATE = app
11 TARGET = drumstick-sysinfo
2 QT += dbus
2 #QT += dbus
33 CONFIG += qt console thread exceptions link_prl
44 DESTDIR = ../../build/bin
55 INCLUDEPATH += . ../../library/include ../common
1717 playsmf \
1818 sysinfo
1919 }
20 macx {
21 OTHER_FILES += Info.plist.app
22 }
00 # MIDI Sequencer C++ Library
1 # Copyright (C) 2005-2016 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
1 # Copyright (C) 2005-2018 Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
22 #
33 # This program is free software; you can redistribute it and/or modify
44 # it under the terms of the GNU General Public License as published by
1111 # GNU General Public License for more details.
1212 #
1313 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 # MA 02110-1301, USA
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1715
1816 find_package(Qt5Widgets REQUIRED)
1917 find_package(Qt5Svg REQUIRED)
7371 fluidsettingsdialog.h
7472 macsynthsettingsdialog.h
7573 sonivoxsettingsdialog.h
74 ../../library/include/rtmidiinput.h
7675 )
7776
7877 qt5_wrap_cpp(vpiano_moc_SRCS ${vpiano_qtobject_SRCS})
00 /*
11 Virtual Piano test using the MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include "connections.h"
00 /*
11 Virtual Piano test using the MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef CONNECTIONS_H
66 <x>0</x>
77 <y>0</y>
88 <width>289</width>
9 <height>244</height>
9 <height>253</height>
1010 </rect>
1111 </property>
1212 <property name="windowTitle">
8686 </layout>
8787 </widget>
8888 <layoutdefault spacing="6" margin="11"/>
89 <tabstops>
90 <tabstop>m_inputBackends</tabstop>
91 <tabstop>btnInputDriverCfg</tabstop>
92 <tabstop>m_inputPorts</tabstop>
93 <tabstop>m_thru</tabstop>
94 <tabstop>m_outputBackends</tabstop>
95 <tabstop>btnOutputDriverCfg</tabstop>
96 <tabstop>m_outputPorts</tabstop>
97 <tabstop>m_advanced</tabstop>
98 </tabstops>
8999 <resources/>
90100 <connections>
91101 <connection>
44 Terminal=false
55 Type=Application
66 Categories=AudioVideo;Audio;Midi;Education;Music;
7 Keywords=Music;Midi;Piano;Virtual;
78 Comment=Drumstick Virtual Piano
89 Comment[es]=Piano virtual de Drumstick
00 /*
11 Virtual Piano test using the MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include <QSettings>
00 /*
11 Virtual Piano test using the MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef FLUIDSETTINGSDIALOG_H
66 <x>0</x>
77 <y>0</y>
88 <width>316</width>
9 <height>312</height>
9 <height>318</height>
1010 </rect>
1111 </property>
1212 <property name="windowTitle">
146146 </item>
147147 </layout>
148148 </widget>
149 <tabstops>
150 <tabstop>audioDriver</tabstop>
151 <tabstop>periodSize</tabstop>
152 <tabstop>periods</tabstop>
153 <tabstop>sampleRate</tabstop>
154 <tabstop>chorus</tabstop>
155 <tabstop>reverb</tabstop>
156 <tabstop>gain</tabstop>
157 <tabstop>polyphony</tabstop>
158 <tabstop>soundFont</tabstop>
159 <tabstop>btnFile</tabstop>
160 </tabstops>
149161 <resources/>
150162 <connections>
151163 <connection>
00 /*
11 Virtual Piano Widget for Qt5
2 Copyright (C) 2008-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2008-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
00 /*
11 Virtual Piano Widget for Qt5
2 Copyright (C) 2008-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2008-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
00 /*
11 Virtual Piano Widget for Qt5
2 Copyright (C) 2008-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2008-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
00 /*
11 Virtual Piano test using the MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include <QSettings>
00 /*
11 Virtual Piano test using the MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef MacSynthSettingsDialog_H
8383 </layout>
8484 </widget>
8585 <tabstops>
86 <tabstop>soundfont_dls</tabstop>
87 <tabstop>btn_soundfont</tabstop>
8688 <tabstop>default_dls</tabstop>
8789 <tabstop>reverb_dls</tabstop>
8890 </tabstops>
00 /*
11 Virtual Piano test using the MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include <QSettings>
00 /*
11 Virtual Piano test using the MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef NETWORKSETTINGSDIALOG_H
00 /*
11 Virtual Piano Widget for Qt5
2 Copyright (C) 2008-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2008-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
00 /*
11 Virtual Piano Widget for Qt5
2 Copyright (C) 2008-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2008-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
00 /*
11 Virtual Piano Widget for Qt5
2 Copyright (C) 2008-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2008-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
00 /*
11 Virtual Piano Widget for Qt5
2 Copyright (C) 2008-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2008-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
00 /*
11 Virtual Piano Widget for Qt5
2 Copyright (C) 2008-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2008-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
00 /*
11 Virtual Piano Widget for Qt5
2 Copyright (C) 2008-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2008-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
00 /*
11 Virtual Piano Widget for Qt5
2 Copyright (C) 2008-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2008-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
00 /*
11 Virtual Piano test using the MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include "preferences.h"
00 /*
11 Virtual Piano test using the MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This library is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef PREFERENCES_H
242242 <tabstop>spinVelocity</tabstop>
243243 <tabstop>spinBaseOctave</tabstop>
244244 <tabstop>spinNumKeys</tabstop>
245 <tabstop>comboNotes</tabstop>
245246 <tabstop>buttonBox</tabstop>
246247 </tabstops>
247248 <resources/>
00 /*
11 Virtual Piano test using the MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include <QSettings>
00 /*
11 Virtual Piano test using the MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef SonivoxSettingsDialog_H
123123 </layout>
124124 </widget>
125125 <layoutdefault spacing="6" margin="11"/>
126 <tabstops>
127 <tabstop>spnTime</tabstop>
128 <tabstop>dial_Reverb</tabstop>
129 <tabstop>dial_Chorus</tabstop>
130 <tabstop>combo_Reverb</tabstop>
131 <tabstop>combo_Chorus</tabstop>
132 </tabstops>
126133 <resources/>
127134 <connections>
128135 <connection>
00 /*
11 Virtual Piano test using the MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include <QDebug>
7877 dlgConnections.setAdvanced(m_advanced);
7978
8079 if (m_midiIn != 0) {
81 connect(m_midiIn, SIGNAL(midiNoteOn(int,int,int)), SLOT(slotNoteOn(int,int,int)));
82 connect(m_midiIn, SIGNAL(midiNoteOff(int,int,int)), SLOT(slotNoteOff(int,int,int)));
80 //connect(m_midiIn, SIGNAL(midiNoteOn(int,int,int)), SLOT(slotNoteOn(int,int,int)));
81 //connect(m_midiIn, SIGNAL(midiNoteOff(int,int,int)), SLOT(slotNoteOff(int,int,int)));
82 connect(m_midiIn, &MIDIInput::midiNoteOn,
83 this, QOverload<int,int,int>::of(&VPiano::slotNoteOn),
84 Qt::QueuedConnection);
85 connect(m_midiIn, &MIDIInput::midiNoteOff,
86 this, QOverload<int,int,int>::of(&VPiano::slotNoteOff),
87 Qt::QueuedConnection);
8388 if (!m_lastInputConnection.isEmpty()) {
8489 m_midiIn->initialize(&settings);
8590 m_midiIn->open(m_lastInputConnection);
101106 //qDebug() << Q_FUNC_INFO;
102107 m_midiIn->close();
103108 m_midiOut->close();
104 qDebug() << "Cheers!";
109 //qDebug() << "Cheers!";
105110 }
106111
107112 void VPiano::slotNoteOn(const int midiNote, const int vel)
00 /*
11 Virtual Piano test using the MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef VPIANO_H
1010 sonivoxsettingsdialog.ui \
1111 macsynthsettingsdialog.ui
1212 HEADERS += pianokey.h pianokeybd.h pianoscene.h vpiano.h \
13 keyboardmap.h keylabel.h pianodefs.h \
14 connections.h vpianoabout.h preferences.h \
15 fluidsettingsdialog.h networksettingsdialog.h \
13 keyboardmap.h keylabel.h pianodefs.h \
14 connections.h vpianoabout.h preferences.h \
15 fluidsettingsdialog.h networksettingsdialog.h \
1616 macsynthsettingsdialog.h \
17 sonivoxsettingsdialog.h
17 sonivoxsettingsdialog.h \
18 ../../library/include/rtmidiinput.h
1819 SOURCES += pianokey.cpp pianokeybd.cpp pianoscene.cpp vpiano.cpp \
19 keylabel.cpp connections.cpp vpianoabout.cpp preferences.cpp vpianomain.cpp \
20 fluidsettingsdialog.cpp networksettingsdialog.cpp \
20 keylabel.cpp connections.cpp vpianoabout.cpp preferences.cpp vpianomain.cpp \
21 fluidsettingsdialog.cpp networksettingsdialog.cpp \
2122 macsynthsettingsdialog.cpp \
2223 sonivoxsettingsdialog.cpp
2324 RESOURCES += pianokeybd.qrc
2829 LIBS += -framework drumstick-rt
2930 LIBS += -l$$qtLibraryTarget(drumstick-common)
3031 ICON = ../../icons/drumstick.icns
32 QMAKE_TARGET_BUNDLE_PREFIX = net.sourceforge
33 QMAKE_BUNDLE = drumstick-vpiano
34 QMAKE_INFO_PLIST = ../Info.plist.app
3135 } else {
3236 LIBS += -L$$OUT_PWD/../../build/lib/
3337 LIBS += -l$$qtLibraryTarget(drumstick-common) \
00 /*
11 Virtual Piano test using the MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include "vpianoabout.h"
00 /*
11 Virtual Piano test using the MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #ifndef ABOUT_H
2525 <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
2626 &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
2727 p, li { white-space: pre-wrap; }
28 &lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'MS Shell Dlg 2'; font-size:7.8pt; font-weight:400; font-style:normal;&quot;&gt;
29 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Sans Serif'; font-size:16pt; font-weight:600;&quot;&gt;Drumstick Virtual Piano %VERSION%&lt;/span&gt;&lt;/p&gt;
30 &lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans Serif'; font-size:9pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
31 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Sans Serif'; font-size:10pt;&quot;&gt;Sample application for the &lt;/span&gt;&lt;a href=&quot;http://drumstick.sourceforge.net&quot;&gt;&lt;span style=&quot; font-family:'DejaVu Sans'; font-size:10pt; text-decoration: underline; color:#0057ae;&quot;&gt;Drumstick MIDI Sequencer C++ library&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
32 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Sans Serif'; font-size:10pt;&quot;&gt;Copyright © 2006-2016, Pedro Lopez-Cabanillas &amp;lt;&lt;/span&gt;&lt;a href=&quot;mailto:plcl@users.sf.net&quot;&gt;&lt;span style=&quot; font-family:'DejaVu Sans'; font-size:10pt; text-decoration: underline; color:#0057ae;&quot;&gt;plcl@users.sf.net&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot; font-family:'Sans Serif'; font-size:10pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
33 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Sans Serif'; font-size:10pt;&quot;&gt; &lt;/span&gt;&lt;/p&gt;
34 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Sans Serif'; font-size:8pt;&quot;&gt;This program 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.&lt;/span&gt;&lt;/p&gt;
35 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Sans Serif'; font-size:8pt;&quot;&gt; &lt;/span&gt;&lt;/p&gt;
36 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Sans Serif'; font-size:8pt;&quot;&gt;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 for more details.&lt;/span&gt;&lt;/p&gt;
37 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Sans Serif'; font-size:8pt;&quot;&gt; &lt;/span&gt;&lt;/p&gt;
38 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Sans Serif'; font-size:8pt;&quot;&gt;You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. &lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
28 &lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;&quot;&gt;
29 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:16pt; font-weight:600;&quot;&gt;Drumstick Virtual Piano %VERSION%&lt;/span&gt;&lt;/p&gt;
30 &lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:9pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
31 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Sample application for the &lt;a href=&quot;http://drumstick.sourceforge.net&quot;&gt;&lt;span style=&quot; font-family:'DejaVu Sans'; text-decoration: underline; color:#0057ae;&quot;&gt;Drumstick MIDI Sequencer C++ library&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
32 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Copyright © 2006-2018, Pedro Lopez-Cabanillas &amp;lt;&lt;a href=&quot;mailto:plcl@users.sf.net&quot;&gt;&lt;span style=&quot; font-family:'DejaVu Sans'; text-decoration: underline; color:#0057ae;&quot;&gt;plcl@users.sf.net&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/p&gt;
33 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; &lt;/p&gt;
34 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt;This program 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.&lt;/span&gt;&lt;/p&gt;
35 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt; &lt;/span&gt;&lt;/p&gt;
36 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt;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 for more details.&lt;/span&gt;&lt;/p&gt;
37 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt; &lt;/span&gt;&lt;/p&gt;
38 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt;You should have received a copy of the GNU General Public License along with this program. If not, see &lt;/span&gt;&lt;a href=&quot;http://www.gnu.org/licenses/&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0057ae;&quot;&gt;http://www.gnu.org/licenses/&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt;.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
3939 </property>
4040 <property name="openExternalLinks">
4141 <bool>true</bool>
00 /*
11 Virtual Piano test using the MIDI Sequencer C++ library
2 Copyright (C) 2006-2016, Pedro Lopez-Cabanillas <plcl@users.sf.net>
2 Copyright (C) 2006-2018, Pedro Lopez-Cabanillas <plcl@users.sf.net>
33
44 This program is free software; you can redistribute it and/or modify
55 it under the terms of the GNU General Public License as published by
1111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212 GNU General Public License for more details.
1313
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
1716 */
1817
1918 #include <QApplication>