New upstream version 1.1.2
Sebastian Ramacher
4 years ago
0 | 0 | # 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> | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # it under the terms of the GNU General Public License as published by |
11 | 11 | # GNU General Public License for more details. |
12 | 12 | # |
13 | 13 | # 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) | |
19 | 17 | if (POLICY CMP0063) |
20 | 18 | cmake_policy(SET CMP0063 OLD) |
19 | endif() | |
20 | if (POLICY CMP0028) | |
21 | cmake_policy(SET CMP0028 NEW) | |
21 | 22 | endif() |
22 | 23 | |
23 | 24 | project(DRUMSTICK) |
56 | 57 | # DRUMSTICK version string |
57 | 58 | set(VERSION_MAJOR "1") |
58 | 59 | set(VERSION_MINOR "1") |
59 | set(VERSION_PATCH "0") | |
60 | set(VERSION_PATCH "2") | |
60 | 61 | set(VERSION_SUFFIX "") |
61 | 62 | set(VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}${VERSION_SUFFIX}) |
62 | 63 | add_definitions(-DVERSION=${VERSION}) |
64 | 65 | message(STATUS "drumstick ${VERSION} prefix: ${CMAKE_INSTALL_PREFIX}") |
65 | 66 | |
66 | 67 | 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() | |
70 | 71 | |
71 | 72 | # User options |
72 | 73 | option(STATIC_DRUMSTICK "Build static libraries instead of dynamic" OFF) |
107 | 108 | else() |
108 | 109 | message(STATUS "Warning: ALSA library not found.") |
109 | 110 | 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) | |
114 | 120 | endif() |
115 | 121 | |
116 | 122 | 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 | ||
0 | 35 | 2016-09-11 |
1 | 36 | * reverted audio backend for sonivox eas to pulseaudio again |
2 | 37 | * rt: settings for sonivox eas and mac native synth |
0 | 0 | # 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> | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # 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 | |
6 | 6 | # (at your option) any later version. |
7 | 7 | # |
8 | 8 | # This program is distributed in the hope that it will be useful, |
0 | 0 | # 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> | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # it under the terms of the GNU General Public License as published by |
11 | 11 | # GNU General Public License for more details. |
12 | 12 | # |
13 | 13 | # 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/>. | |
17 | 15 | |
18 | 16 | # Try to find precompiled headers support for GCC 3.4 and 4.x |
19 | 17 | # Once done this will define: |
0 | 0 | # 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> | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # it under the terms of the GNU General Public License as published by |
0 | 0 | /** |
1 | 1 | @mainpage drumstick Documentation |
2 | @author Copyright © 2009-2016 Pedro López-Cabanillas <plcl AT users.sf.net> | |
3 | @date 2016-08-21 | |
4 | @version 1.1.0 | |
2 | @author Copyright © 2009-2017 Pedro López-Cabanillas <plcl AT users.sf.net> | |
3 | @date 2017-08-15 | |
4 | @version 1.1.1 | |
5 | 5 | |
6 | 6 | This document is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported License. |
7 | 7 | To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/ |
0 | 0 | # spec file for package drumstick (Version @VERSION@) |
1 | 1 | # |
2 | 2 | # 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> | |
4 | 4 | # |
5 | 5 | # This file and all modifications and additions to the pristine |
6 | 6 | # package are under the same license as the package itself. |
0 | VERSION = 1.1.0 | |
0 | VERSION = 1.1.2 | |
1 | 1 | DEFINES += VERSION=$$VERSION |
2 | VER_MAJ = 1 | |
3 | VER_MIN = 1 | |
4 | VER_PAT = 2 |
0 | 0 | # 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> | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # it under the terms of the GNU General Public License as published by |
11 | 11 | # GNU General Public License for more details. |
12 | 12 | # |
13 | 13 | # 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/>. | |
17 | 15 | |
18 | 16 | if(ALSA_FOUND) |
19 | 17 | 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> |
0 | 0 | # 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> | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # it under the terms of the GNU General Public License as published by |
11 | 11 | # GNU General Public License for more details. |
12 | 12 | # |
13 | 13 | # 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/>. | |
17 | 15 | |
18 | 16 | set(CMAKE_INCLUDE_CURRENT_DIR ON) |
19 | 17 | include_directories(${ALSA_INC_DIR}) |
61 | 59 | target_link_libraries(drumstick-alsa |
62 | 60 | ${ALSA_LIBS} |
63 | 61 | Qt5::Core |
64 | Qt5::DBus | |
65 | 62 | ) |
63 | ||
64 | if(USE_DBUS) | |
65 | target_link_libraries(drumstick-alsa | |
66 | Qt5::DBus | |
67 | ) | |
68 | endif() | |
66 | 69 | |
67 | 70 | if(STATIC_DRUMSTICK) |
68 | 71 | set_target_properties(drumstick-alsa PROPERTIES |
4 | 4 | INCLUDEPATH += . ../include |
5 | 5 | include (../../global.pri) |
6 | 6 | QT -= gui |
7 | QT += dbus | |
7 | #QT += dbus | |
8 | 8 | CONFIG += qt thread create_prl |
9 | DEFINES += drumstick_alsa_EXPORTS RTKIT_SUPPORT | |
9 | DEFINES += drumstick_alsa_EXPORTS #RTKIT_SUPPORT | |
10 | 10 | QMAKE_CXXFLAGS += $$QMAKE_CXXFLAGS_HIDESYMS |
11 | 11 | # Input |
12 | 12 | HEADERS += ../include/alsaclient.h \ |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include "alsaclient.h" |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include "alsaevent.h" |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include "alsaqueue.h" |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include "alsaqueue.h" |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include "alsatimer.h" |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include "playthread.h" |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include "alsaclient.h" |
0 | 0 | # 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> | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # it under the terms of the GNU General Public License as published by |
11 | 11 | # GNU General Public License for more details. |
12 | 12 | # |
13 | 13 | # 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/>. | |
17 | 15 | |
18 | 16 | set(CMAKE_INCLUDE_CURRENT_DIR ON) |
19 | 17 | if (APPLE) |
33 | 33 | #QMAKE_LFLAGS_SONAME = -Wl,-install_name,@executable_path/../Frameworks/ |
34 | 34 | QMAKE_SONAME_PREFIX = @rpath |
35 | 35 | QMAKE_TARGET_BUNDLE_PREFIX = net.sourceforge |
36 | QMAKE_BUNDLE = drumstick-file | |
37 | QMAKE_INFO_PLIST = ../Info.plist.lib | |
36 | 38 | } |
0 | 0 | /* |
1 | 1 | Overture OVE File component |
2 | Copyright (C) 2006-2016, Rui Fan <vanferry@gmail.com> | |
2 | Copyright (C) 2006-2017, Rui Fan <vanferry@gmail.com> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include "qove.h" |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | Based on midifile.c by Tim Thompson, M.Czeiszperger and Greg Lee |
5 | 5 | |
13 | 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 | 14 | GNU General Public License for more details. |
15 | 15 | |
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/>. | |
19 | 18 | */ |
20 | 19 | |
21 | 20 | #include "qsmf.h" |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include "qwrk.h" |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef DRUMSTICK_ALSACLIENT_H |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef DRUMSTICK_ALSAEVENT_H |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef DRUMSTICK_ALSAPORT_H |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef DRUMSTICK_ALSAQUEUE_H |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef DRUMSTICK_ALSATIMER_H |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef BACKENDMANAGER_H |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef DRUMSTICK_H |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef DRUMSTICK_DRUMSTICKCOMMON_H |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef DRUMSTICK_MACROS_H |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef DRUMSTICK_PLAYTHREAD_H |
0 | 0 | /* |
1 | 1 | Overture OVE File component |
2 | Copyright (C) 2006-2016, Rui Fan <vanferry@gmail.com> | |
2 | Copyright (C) 2006-2017, Rui Fan <vanferry@gmail.com> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef DRUMSTICK_OVE_H |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | Based on midifile.c by Tim Thompson, M.Czeiszperger and Greg Lee |
5 | 5 | |
13 | 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 | 14 | GNU General Public License for more details. |
15 | 15 | |
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/>. | |
19 | 18 | */ |
20 | 19 | |
21 | 20 | #ifndef DRUMSTICK_QSMF_H |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef DRUMSTICK_QWRK_H |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef MIDIINPUT_H |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef MIDIOUTPUT_H |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 |
5 | 5 | SUBDIRS += file |
6 | 6 | SUBDIRS += rt-backends |
7 | 7 | SUBDIRS += rt |
8 | ||
9 | macx { | |
10 | OTHER_FILES += Info.plist.lib | |
11 | } |
0 | 0 | # 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> | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # it under the terms of the GNU General Public License as published by |
11 | 11 | # GNU General Public License for more details. |
12 | 12 | # |
13 | 13 | # 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}) | |
17 | 17 | |
18 | 18 | set(CMAKE_INCLUDE_CURRENT_DIR ON) |
19 | 19 | if (APPLE) |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include <QtGlobal> |
58 | 57 | Q_IMPORT_PLUGIN(OSSInput) |
59 | 58 | Q_IMPORT_PLUGIN(OSSOutput) |
60 | 59 | #endif |
60 | ||
61 | #define _MKSTR(x) #x | |
62 | #define MKSTR(x) _MKSTR(x) | |
61 | 63 | |
62 | 64 | /** |
63 | 65 | * @file backendmanager.cpp |
139 | 141 | d->appendDir( appPath + QStringLiteral("../PlugIns/") + QSTR_DRUMSTICK, result ); |
140 | 142 | #endif // Linux, Unix... |
141 | 143 | QStringList libs; |
142 | libs << "../lib/" << "../lib32/" << "../lib64/"; | |
144 | libs << "../lib/"; | |
145 | #if defined(LIBSUFFIX) | |
146 | libs << QString("../lib%1/").arg(MKSTR(LIBSUFFIX)); | |
147 | #endif | |
143 | 148 | foreach(const QString& lib, libs) { |
144 | 149 | d->appendDir( appPath + lib + QSTR_DRUMSTICK, result ); |
145 | 150 | } |
31 | 31 | #QMAKE_LFLAGS_SONAME = -Wl,-install_name,@executable_path/../Frameworks/ |
32 | 32 | QMAKE_SONAME_PREFIX = @rpath |
33 | 33 | QMAKE_TARGET_BUNDLE_PREFIX = net.sourceforge |
34 | QMAKE_BUNDLE = drumstick-rt | |
35 | QMAKE_INFO_PLIST = ../Info.plist.lib | |
34 | 36 | } |
35 | 37 | |
36 | 38 | static { |
0 | 0 | # 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> | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # it under the terms of the GNU General Public License as published by |
11 | 11 | # GNU General Public License for more details. |
12 | 12 | # |
13 | 13 | # 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/>. | |
17 | 15 | |
18 | 16 | #add_subdirectory(dummy-in) |
19 | 17 | #add_subdirectory(dummy-out) |
20 | 18 | |
21 | 19 | 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() | |
25 | 24 | endif() |
25 | ||
26 | 26 | if (PULSE_FOUND) |
27 | 27 | add_subdirectory(eassynth) |
28 | endif() | |
29 | 28 | endif() |
30 | 29 | |
31 | 30 | find_package(Qt5Network) |
50 | 49 | add_subdirectory(win-out) |
51 | 50 | endif() |
52 | 51 | |
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() |
0 | 0 | # 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> | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # it under the terms of the GNU General Public License as published by |
11 | 11 | # GNU General Public License for more details. |
12 | 12 | # |
13 | 13 | # 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/>. | |
17 | 15 | |
18 | 16 | set(CMAKE_INCLUDE_CURRENT_DIR ON) |
19 | 17 |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include <QMutexLocker> |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef ALSAMIDIInput_H |
0 | 0 | # 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> | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # it under the terms of the GNU General Public License as published by |
11 | 11 | # GNU General Public License for more details. |
12 | 12 | # |
13 | 13 | # 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/>. | |
17 | 15 | |
18 | 16 | set(CMAKE_INCLUDE_CURRENT_DIR ON) |
19 | 17 |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include <QString> |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef ALSAMIDIOUTPUT_H |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include "maccommon.h" |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef MACCOMMON_H |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include <QDebug> |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef MIDIPARSER_H |
0 | 0 | # 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> | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # it under the terms of the GNU General Public License as published by |
11 | 11 | # GNU General Public License for more details. |
12 | 12 | # |
13 | 13 | # 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/>. | |
17 | 15 | set(CMAKE_INCLUDE_CURRENT_DIR ON) |
18 | 16 | |
19 | 17 | set(drumstick-rt-dummy-in_QTOBJ_SRCS |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include "dummyinput.h" |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef DUMMYINPUT_H |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include "dummyoutput.h" |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef DUMMYOUTPUT_H |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include <QDebug> |
32 | 31 | |
33 | 32 | SynthController::~SynthController() |
34 | 33 | { |
35 | qDebug() << Q_FUNC_INFO; | |
34 | //qDebug() << Q_FUNC_INFO; | |
36 | 35 | if (m_renderingThread.isRunning()) { |
37 | 36 | stop(); |
38 | 37 | } |
43 | 42 | void |
44 | 43 | SynthController::start() |
45 | 44 | { |
46 | qDebug() << Q_FUNC_INFO; | |
45 | //qDebug() << Q_FUNC_INFO; | |
47 | 46 | m_renderingThread.start(QThread::HighPriority); |
48 | 47 | } |
49 | 48 | |
50 | 49 | void |
51 | 50 | SynthController::stop() |
52 | 51 | { |
53 | qDebug() << Q_FUNC_INFO; | |
52 | //qDebug() << Q_FUNC_INFO; | |
54 | 53 | m_renderer->stop(); |
55 | 54 | m_renderingThread.quit(); |
56 | 55 | m_renderingThread.wait(); |
60 | 59 | SynthController::initialize(QSettings* settings) |
61 | 60 | { |
62 | 61 | m_renderer->initialize(settings); |
63 | qDebug() << Q_FUNC_INFO; | |
62 | //qDebug() << Q_FUNC_INFO; | |
64 | 63 | } |
65 | 64 | |
66 | 65 | QString SynthController::backendName() |
92 | 91 | void SynthController::open(QString name) |
93 | 92 | { |
94 | 93 | Q_UNUSED(name) |
95 | qDebug() << Q_FUNC_INFO; | |
94 | //qDebug() << Q_FUNC_INFO; | |
96 | 95 | start(); |
97 | 96 | } |
98 | 97 | |
99 | 98 | void SynthController::close() |
100 | 99 | { |
101 | qDebug() << Q_FUNC_INFO; | |
100 | //qDebug() << Q_FUNC_INFO; | |
102 | 101 | stop(); |
103 | 102 | } |
104 | 103 | |
137 | 136 | m_renderer->sendMessage(MIDI_STATUS_CHANNELPRESSURE + chan, value); |
138 | 137 | } |
139 | 138 | |
140 | void SynthController::sendPitchBend(int chan, int value) | |
139 | void SynthController::sendPitchBend(int chan, int v) | |
141 | 140 | { |
141 | // -8192 <= v <= 8191; 0 <= value <= 16384 | |
142 | int value = 8192 + v; | |
142 | 143 | m_renderer->sendMessage(MIDI_STATUS_PITCHBEND + chan, MIDI_LSB(value), MIDI_MSB(value)); |
143 | 144 | } |
144 | 145 |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef SYNTHCONTROLLER_H |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include <QObject> |
27 | 26 | #include <eas_chorus.h> |
28 | 27 | #include <pulse/simple.h> |
29 | 28 | #include "synthrenderer.h" |
30 | #include "drumstickcommon.h" | |
31 | 29 | |
32 | 30 | namespace drumstick { |
33 | 31 | namespace rt { |
75 | 73 | |
76 | 74 | m_easData = dataHandle; |
77 | 75 | m_streamHandle = handle; |
78 | assert(m_streamHandle != 0); | |
76 | Q_ASSERT(m_streamHandle != 0); | |
79 | 77 | m_sampleRate = easConfig->sampleRate; |
80 | 78 | m_bufferSize = easConfig->mixBufferSize; |
81 | 79 | 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; | |
83 | 81 | } |
84 | 82 | |
85 | 83 | void |
114 | 112 | { |
115 | 113 | qCritical() << "Failed to create PulseAudio connection"; |
116 | 114 | } |
117 | qDebug() << Q_FUNC_INFO << "period_bytes=" << period_bytes; | |
115 | //qDebug() << Q_FUNC_INFO << "period_bytes=" << period_bytes; | |
118 | 116 | } |
119 | 117 | |
120 | 118 | void |
133 | 131 | m_streamHandle = 0; |
134 | 132 | m_easData = 0; |
135 | 133 | } |
136 | qDebug() << Q_FUNC_INFO; | |
134 | //qDebug() << Q_FUNC_INFO; | |
137 | 135 | } |
138 | 136 | |
139 | 137 | void |
143 | 141 | pa_simple_free(m_pulseHandle); |
144 | 142 | m_pulseHandle = 0; |
145 | 143 | } |
146 | qDebug() << Q_FUNC_INFO; | |
144 | //qDebug() << Q_FUNC_INFO; | |
147 | 145 | } |
148 | 146 | |
149 | 147 | SynthRenderer::~SynthRenderer() |
170 | 168 | bool |
171 | 169 | SynthRenderer::stopped() |
172 | 170 | { |
173 | QReadLocker locker(&m_mutex); | |
171 | QReadLocker locker(&m_mutex); | |
174 | 172 | return m_Stopped; |
175 | 173 | } |
176 | 174 | |
177 | 175 | void |
178 | 176 | SynthRenderer::stop() |
179 | 177 | { |
180 | QWriteLocker locker(&m_mutex); | |
181 | qDebug() << Q_FUNC_INFO; | |
178 | QWriteLocker locker(&m_mutex); | |
179 | //qDebug() << Q_FUNC_INFO; | |
182 | 180 | m_Stopped = true; |
183 | 181 | } |
184 | 182 | |
187 | 185 | { |
188 | 186 | int pa_err; |
189 | 187 | unsigned char data[1024]; |
190 | qDebug() << Q_FUNC_INFO << "started"; | |
188 | //qDebug() << Q_FUNC_INFO << "started"; | |
191 | 189 | try { |
192 | 190 | initPulse(); |
193 | 191 | m_Stopped = false; |
212 | 210 | } |
213 | 211 | } |
214 | 212 | 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"; | |
221 | 217 | emit finished(); |
222 | 218 | } |
223 | 219 | |
335 | 331 | void |
336 | 332 | SynthRenderer::setBufferTime(int milliseconds) |
337 | 333 | { |
338 | qDebug() << Q_FUNC_INFO << milliseconds; | |
334 | //qDebug() << Q_FUNC_INFO << milliseconds; | |
339 | 335 | m_bufferTime = milliseconds; |
340 | 336 | } |
341 | 337 |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef SYNTHRENDERER_H_ |
0 | 0 | # 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> | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # it under the terms of the GNU General Public License as published by |
11 | 11 | # GNU General Public License for more details. |
12 | 12 | # |
13 | 13 | # 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/>. | |
17 | 15 | |
18 | 16 | set(CMAKE_INCLUDE_CURRENT_DIR ON) |
19 | 17 | |
50 | 48 | |
51 | 49 | target_link_libraries(drumstick-rt-mac-in |
52 | 50 | Qt5::Core |
51 | Qt5::Concurrent | |
53 | 52 | "-framework CoreMidi -framework CoreFoundation" |
54 | 53 | ) |
55 | 54 |
5 | 5 | INCLUDEPATH += . ../../include ../common |
6 | 6 | include (../../../global.pri) |
7 | 7 | QT -= gui |
8 | QT += concurrent | |
8 | 9 | |
9 | 10 | HEADERS += ../../include/rtmidiinput.h \ |
10 | 11 | ../../include/rtmidioutput.h \ |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include "macmidiinput.h" |
25 | 24 | #include <QMutex> |
26 | 25 | #include <QTextCodec> |
27 | 26 | #include <QObject> |
27 | #include <QtConcurrent> | |
28 | 28 | |
29 | 29 | #include <CoreFoundation/CoreFoundation.h> |
30 | 30 | #include <CoreMIDI/CoreMIDI.h> |
54 | 54 | |
55 | 55 | MacMIDIInputPrivate(MacMIDIInput *inp) : |
56 | 56 | m_inp(inp), |
57 | m_out(0), | |
57 | m_out(nullptr), | |
58 | 58 | m_client(0), |
59 | 59 | m_port(0), |
60 | 60 | m_endpoint(0), |
69 | 69 | void internalCreate(CFStringRef name) |
70 | 70 | { |
71 | 71 | OSStatus result = noErr; |
72 | result = MIDIClientCreate( name , NULL, NULL, &m_client ); | |
72 | result = MIDIClientCreate( name , nullptr, nullptr, &m_client ); | |
73 | 73 | if (result != noErr) { |
74 | 74 | qDebug() << "MIDIClientCreate() err:" << result; |
75 | 75 | return; |
174 | 174 | if (index < 0) |
175 | 175 | return; |
176 | 176 | m_source = MIDIGetSource( index ); |
177 | result = MIDIPortConnectSource( m_port, m_source, NULL ); | |
177 | result = MIDIPortConnectSource( m_port, m_source, nullptr ); | |
178 | 178 | if (result != noErr) { |
179 | 179 | qDebug() << "MIDIPortConnectSource() error:" << result; |
180 | 180 | return; |
195 | 195 | } |
196 | 196 | } |
197 | 197 | |
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 | } | |
252 | 260 | }; |
253 | 261 | |
254 | void MacMIDIReadProc( const MIDIPacketList *pktlist, | |
255 | void *refCon, void *connRefCon ) | |
262 | void MacMIDIReadProc( const MIDIPacketList *pktlist, void *refCon, void *connRefCon ) | |
256 | 263 | { |
257 | 264 | Q_UNUSED(connRefCon) |
258 | MacMIDIInputPrivate *obj = NULL; | |
259 | if (refCon != NULL) | |
265 | MacMIDIInputPrivate *obj = nullptr; | |
266 | if (refCon != nullptr) | |
260 | 267 | obj = static_cast<MacMIDIInputPrivate*>(refCon); |
261 | ||
262 | MIDIPacket *packet = (MIDIPacket *)pktlist->packet; | |
268 | const MIDIPacket *packet = static_cast<const MIDIPacket *>(pktlist->packet); | |
263 | 269 | 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 | } | |
266 | 274 | packet = MIDIPacketNext(packet); |
267 | 275 | } |
268 | 276 | } |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef MACMIDIOBJECT_H |
0 | 0 | # 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> | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # it under the terms of the GNU General Public License as published by |
11 | 11 | # GNU General Public License for more details. |
12 | 12 | # |
13 | 13 | # 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/>. | |
17 | 15 | |
18 | 16 | set(CMAKE_INCLUDE_CURRENT_DIR ON) |
19 | 17 |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include "macmidioutput.h" |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef MACMIDIOUTPUT_H |
0 | 0 | # 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> | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # it under the terms of the GNU General Public License as published by |
11 | 11 | # GNU General Public License for more details. |
12 | 12 | # |
13 | 13 | # 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/>. | |
17 | 15 | |
18 | 16 | set(CMAKE_INCLUDE_CURRENT_DIR ON) |
19 | 17 |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include <QDebug> |
21 | 20 | #include "macsynth.h" |
22 | 21 | |
23 | 22 | #include <CoreServices/CoreServices.h> |
24 | #include <AudioUnit/AUAudioUnit.h> | |
23 | #include <AudioUnit/AudioUnit.h> | |
25 | 24 | #include <AudioToolbox/AudioToolbox.h> |
26 | 25 | |
27 | 26 | #define PRETTY_NAME "DLS Synth" |
44 | 43 | m_graph(0), |
45 | 44 | m_synthUnit(0) |
46 | 45 | { |
47 | qDebug() << Q_FUNC_INFO; | |
46 | //qDebug() << Q_FUNC_INFO; | |
48 | 47 | m_connection.clear(); |
49 | 48 | } |
50 | 49 | |
51 | 50 | virtual ~MacSynthOutputPrivate() |
52 | 51 | { |
53 | qDebug() << Q_FUNC_INFO; | |
52 | //qDebug() << Q_FUNC_INFO; | |
54 | 53 | stop(); |
55 | 54 | } |
56 | 55 | |
106 | 105 | AUNode outputNode = 0; |
107 | 106 | AUNode limiterNode = 0; |
108 | 107 | |
109 | qDebug() << Q_FUNC_INFO; | |
108 | //qDebug() << Q_FUNC_INFO; | |
110 | 109 | if (m_graph == 0) { |
111 | 110 | cd.componentManufacturer = kAudioUnitManufacturer_Apple; |
112 | 111 | cd.componentFlags = 0; |
187 | 186 | void stop () |
188 | 187 | { |
189 | 188 | OSStatus result; |
190 | qDebug() << Q_FUNC_INFO; | |
189 | //qDebug() << Q_FUNC_INFO; | |
191 | 190 | if (m_graph != 0) { |
192 | 191 | result = AUGraphStop(m_graph); |
193 | 192 | if (result != noErr) |
205 | 204 | |
206 | 205 | void initialize ( QSettings *settings ) |
207 | 206 | { |
208 | qDebug() << Q_FUNC_INFO; | |
207 | //qDebug() << Q_FUNC_INFO; | |
209 | 208 | settings->beginGroup(PRETTY_NAME); |
210 | 209 | m_default_dls = settings->value("default_dls", true).toBool(); |
211 | 210 | m_reverb_dls = settings->value("reverb_dls", true).toBool(); |
212 | 211 | 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; | |
216 | 215 | settings->endGroup(); |
217 | 216 | } |
218 | 217 |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef DLSSOFTSYNTH_H |
0 | 0 | # 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> | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # it under the terms of the GNU General Public License as published by |
11 | 11 | # GNU General Public License for more details. |
12 | 12 | # |
13 | 13 | # 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/>. | |
17 | 15 | |
18 | 16 | find_package(Qt5Network REQUIRED) |
19 | 17 |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include <QUdpSocket> |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef NETMIDIINPUT_H |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include <QObject> |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef NETMIDIINPUT_P_H |
0 | 0 | # 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> | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # it under the terms of the GNU General Public License as published by |
11 | 11 | # GNU General Public License for more details. |
12 | 12 | # |
13 | 13 | # 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/>. | |
17 | 15 | |
18 | 16 | find_package(Qt5Network REQUIRED) |
19 | 17 |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include <QDebug> |
215 | 214 | d->sendMessage(MIDI_STATUS_CHANNELPRESSURE + chan, value); |
216 | 215 | } |
217 | 216 | |
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; | |
220 | 221 | d->sendMessage(MIDI_STATUS_PITCHBEND + chan, MIDI_LSB(value), MIDI_MSB(value)); |
221 | 222 | } |
222 | 223 |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef NETMIDIOUTPUT_H |
0 | 0 | # 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> | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # it under the terms of the GNU General Public License as published by |
11 | 11 | # GNU General Public License for more details. |
12 | 12 | # |
13 | 13 | # 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/>. | |
17 | 15 | |
18 | 16 | set(CMAKE_INCLUDE_CURRENT_DIR ON) |
19 | 17 |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include "ossinput.h" |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef ossINPUT_H |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include <QObject> |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef OSSINPUT_P_H |
0 | 0 | # 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> | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # it under the terms of the GNU General Public License as published by |
11 | 11 | # GNU General Public License for more details. |
12 | 12 | # |
13 | 13 | # 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/>. | |
17 | 15 | |
18 | 16 | set(CMAKE_INCLUDE_CURRENT_DIR ON) |
19 | 17 |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include <QFile> |
209 | 208 | d->sendMessage(MIDI_STATUS_CHANNELPRESSURE + chan, value); |
210 | 209 | } |
211 | 210 | |
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; | |
214 | 215 | d->sendMessage(MIDI_STATUS_PITCHBEND + chan, MIDI_LSB(value), MIDI_MSB(value)); |
215 | 216 | } |
216 | 217 |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef ossOUTPUT_H |
5 | 5 | |
6 | 6 | linux* { |
7 | 7 | SUBDIRS += alsa-in alsa-out |
8 | packagesExist(libpulse-simple) { | |
9 | SUBDIRS += eassynth | |
10 | } | |
11 | 8 | } |
12 | 9 | |
13 | 10 | unix:!macx { |
16 | 13 | |
17 | 14 | macx { |
18 | 15 | 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 | #} | |
22 | 19 | } |
23 | 20 | else { |
24 | packagesExist(fluidsynth) { | |
25 | SUBDIRS += synth | |
21 | #packagesExist(fluidsynth) { | |
22 | # SUBDIRS += synth | |
23 | #} | |
24 | packagesExist(libpulse-simple) { | |
25 | SUBDIRS += eassynth | |
26 | 26 | } |
27 | 27 | } |
28 | 28 |
0 | 0 | # 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> | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # it under the terms of the GNU General Public License as published by |
11 | 11 | # GNU General Public License for more details. |
12 | 12 | # |
13 | 13 | # 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/>. | |
17 | 15 | |
18 | 16 | set(CMAKE_INCLUDE_CURRENT_DIR ON) |
19 | 17 |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include "synthoutput.h" |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef SynthOUTPUT_H |
0 | 0 | # 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> | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # it under the terms of the GNU General Public License as published by |
11 | 11 | # GNU General Public License for more details. |
12 | 12 | # |
13 | 13 | # 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/>. | |
17 | 15 | |
18 | 16 | set(CMAKE_INCLUDE_CURRENT_DIR ON) |
19 | 17 |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include <QString> |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef WINMIDIINPUT_H |
0 | 0 | # 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> | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # it under the terms of the GNU General Public License as published by |
11 | 11 | # GNU General Public License for more details. |
12 | 12 | # |
13 | 13 | # 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/>. | |
17 | 15 | |
18 | 16 | set(CMAKE_INCLUDE_CURRENT_DIR ON) |
19 | 17 |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include <QDebug> |
339 | 338 | d->sendShortMessage(packet); |
340 | 339 | } |
341 | 340 | |
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; | |
345 | 346 | packet.data[0] = MIDI_STATUS_PITCHBEND | (chan & MIDI_CHANNEL_MASK); |
346 | 347 | packet.data[1] = MIDI_LSB(value); |
347 | 348 | packet.data[2] = MIDI_MSB(value); |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef WINMIDIOUTPUT_H |
0 | 0 | # 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> | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # it under the terms of the GNU General Public License as published by |
11 | 11 | # GNU General Public License for more details. |
12 | 12 | # |
13 | 13 | # 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/>. | |
17 | 15 | |
18 | 16 | find_package(Qt5Test REQUIRED) |
19 | 17 | set (CMAKE_AUTOMOC ON) |
0 | 0 | # 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> | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # it under the terms of the GNU General Public License as published by |
11 | 11 | # GNU General Public License for more details. |
12 | 12 | # |
13 | 13 | # 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/>. | |
17 | 15 | |
18 | 16 | add_executable (alsaTest1 alsatest1.cpp) |
19 | 17 |
0 | 0 | # 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> | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # it under the terms of the GNU General Public License as published by |
11 | 11 | # GNU General Public License for more details. |
12 | 12 | # |
13 | 13 | # 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/>. | |
17 | 15 | |
18 | 16 | add_executable (alsaTest2 alsatest2.cpp) |
19 | 17 |
14 | 14 | |
15 | 15 | private Q_SLOTS: |
16 | 16 | void testTimer(); |
17 | void initTestCase(); | |
18 | void cleanupTestCase(); | |
17 | 19 | |
18 | 20 | 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; | |
23 | 23 | }; |
24 | 24 | |
25 | 25 | AlsaTest2::AlsaTest2(): |
26 | m_test_timer(0), | |
26 | 27 | m_count(0) |
27 | { | |
28 | } | |
28 | { } | |
29 | 29 | |
30 | 30 | void AlsaTest2::handleTimerEvent(int , int ) |
31 | 31 | { |
32 | 32 | m_count++; |
33 | 33 | } |
34 | 34 | |
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 | ||
35 | 56 | void AlsaTest2::testTimer() |
36 | 57 | { |
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) { | |
41 | 59 | m_count = 0; |
42 | m_info = test_timer->getTimerInfo(); | |
43 | 60 | 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()) { | |
46 | 65 | /* 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); | |
50 | 69 | } |
51 | 70 | } else { |
52 | m_params.setTicks(1); | |
71 | tparams.setTicks(1); | |
53 | 72 | } |
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); | |
57 | 76 | // Testing timer callback method |
58 | test_timer->start(); | |
59 | test_timer->startEvents(); | |
77 | m_test_timer->start(); | |
78 | m_test_timer->startEvents(); | |
60 | 79 | 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); | |
67 | 86 | } catch (...) { |
68 | 87 | QFAIL("Timer test failed"); |
69 | 88 | } |
70 | delete test_timer; | |
71 | 89 | } |
72 | 90 | } |
73 | 91 |
0 | 0 | # 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> | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # it under the terms of the GNU General Public License as published by |
11 | 11 | # GNU General Public License for more details. |
12 | 12 | # |
13 | 13 | # 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/>. | |
17 | 15 | |
18 | 16 | add_executable (fileTest filetest.cpp) |
19 | 17 |
8 | 8 | 0x00, 0x78, 0x4d, 0x54, 0x72, 0x6b, 0x00, 0x00, 0x00, 0x99, 0x00, 0xff, |
9 | 9 | 0x02, 0x2f, 0x43, 0x6f, 0x70, 0x79, 0x72, 0x69, 0x67, 0x68, 0x74, 0x20, |
10 | 10 | 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, | |
12 | 12 | 0x65, 0x7a, 0x2d, 0x43, 0x61, 0x62, 0x61, 0x6e, 0x69, 0x6c, 0x6c, 0x61, |
13 | 13 | 0x73, 0x00, 0xff, 0x51, 0x03, 0x09, 0x27, 0xc0, 0x00, 0xff, 0x58, 0x04, |
14 | 14 | 0x03, 0x02, 0x24, 0x08, 0x00, 0xff, 0x59, 0x02, 0x02, 0x00, 0x00, 0xf0, |
26 | 26 | const int TRACKS( 1 ); |
27 | 27 | const int DIVISION( 120 ); |
28 | 28 | 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" ); | |
30 | 30 | const QByteArray GSRESET( "f04110421240007f0041f7" ); |
31 | 31 | const QList<int> NOTES({ 60, 62, 64, 65, 67, 69, 71, 72 }); |
32 | 32 |
0 | 0 | # 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> | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # it under the terms of the GNU General Public License as published by |
11 | 11 | # GNU General Public License for more details. |
12 | 12 | # |
13 | 13 | # 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/>. | |
17 | 15 | |
18 | 16 | add_executable (rtTest rttest.cpp) |
19 | 17 |
42 | 42 | QCOMPARE(input->backendName().isEmpty(), false ); |
43 | 43 | QCOMPARE(input->publicName().isEmpty(), false ); |
44 | 44 | 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"); | |
49 | 49 | QStringList avconns = input->connections(true); |
50 | 50 | 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");*/ | |
52 | 52 | } |
53 | 53 | |
54 | 54 | outputsList = man.availableOutputs(); |
58 | 58 | QCOMPARE(output->backendName().isEmpty(), false ); |
59 | 59 | QCOMPARE(output->publicName().isEmpty(), false ); |
60 | 60 | 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"); | |
65 | 65 | QStringList avconns = output->connections(true); |
66 | 66 | 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");*/ | |
68 | 68 | } |
69 | 69 | } |
70 | 70 |
0 | 0 | # 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> | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # it under the terms of the GNU General Public License as published by |
11 | 11 | # GNU General Public License for more details. |
12 | 12 | # |
13 | 13 | # 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/>. | |
17 | 15 | |
18 | 16 | include_directories( |
19 | 17 | ${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> |
0 | 0 | # 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> | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # it under the terms of the GNU General Public License as published by |
11 | 11 | # GNU General Public License for more details. |
12 | 12 | # |
13 | 13 | # 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/>. | |
17 | 15 | |
18 | 16 | set( common_SRCS |
19 | 17 | cmdlineargs.cpp |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include "cmdlineargs.h" |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef CMDLINEARGS_H |
0 | 0 | # 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> | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # it under the terms of the GNU General Public License as published by |
11 | 11 | # GNU General Public License for more details. |
12 | 12 | # |
13 | 13 | # 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/>. | |
17 | 15 | |
18 | 16 | find_package(Qt5Widgets REQUIRED) |
19 | 17 |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include "drumgrid.h" |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef DRUMGRID_H |
0 | 0 | TEMPLATE = app |
1 | 1 | TARGET = drumstick-drumgrid |
2 | QT += gui widgets dbus | |
2 | QT += gui widgets #dbus | |
3 | 3 | CONFIG += qt thread exceptions link_prl |
4 | 4 | DESTDIR = ../../build/bin |
5 | 5 | INCLUDEPATH += . ../../library/include ../common |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include "drumgridabout.h" |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef ABOUT_H |
25 | 25 | <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> |
26 | 26 | <html><head><meta name="qrichtext" content="1" /><style type="text/css"> |
27 | 27 | p, li { white-space: pre-wrap; } |
28 | </style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:7.8pt; font-weight:400; font-style:normal;"> | |
29 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:16pt; font-weight:600;">Drumstick Drum Grid %VERSION%</span></p> | |
30 | <p style="-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;"><br /></p> | |
31 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">Sample application for the </span><a href="http://drumstick.sourceforge.net"><span style=" font-family:'DejaVu Sans'; font-size:10pt; text-decoration: underline; color:#0057ae;">Drumstick MIDI Sequencer C++ library</span></a></p> | |
32 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">Copyright © 2006-2016, Pedro Lopez-Cabanillas &lt;</span><a href="mailto:plcl@users.sf.net"><span style=" font-family:'DejaVu Sans'; font-size:10pt; text-decoration: underline; color:#0057ae;">plcl@users.sf.net</span></a><span style=" font-family:'Sans Serif'; font-size:10pt;">&gt;</span></p> | |
33 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;"> </span></p> | |
34 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:8pt;">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.</span></p> | |
35 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:8pt;"> </span></p> | |
36 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:8pt;">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.</span></p> | |
37 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:8pt;"> </span></p> | |
38 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:8pt;">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. </span></p></body></html></string> | |
28 | </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> | |
29 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:16pt; font-weight:600;">Drumstick Drum Grid %VERSION%</span></p> | |
30 | <p style="-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;"><br /></p> | |
31 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Sample application for the <a href="http://drumstick.sourceforge.net"><span style=" font-family:'DejaVu Sans'; text-decoration: underline; color:#0057ae;">Drumstick MIDI Sequencer C++ library</span></a></p> | |
32 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Copyright © 2006-2018, Pedro Lopez-Cabanillas &lt;<a href="mailto:plcl@users.sf.net"><span style=" font-family:'DejaVu Sans'; text-decoration: underline; color:#0057ae;">plcl@users.sf.net</span></a>&gt;</p> | |
33 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> </p> | |
34 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">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.</span></p> | |
35 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;"> </span></p> | |
36 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">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.</span></p> | |
37 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;"> </span></p> | |
38 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">You should have received a copy of the GNU General Public License along with this program. If not, see </span><a href="http://www.gnu.org/licenses/"><span style=" text-decoration: underline; color:#0057ae;">http://www.gnu.org/licenses/</span></a><span style=" font-size:8pt;">.</span></p></body></html></string> | |
39 | 39 | </property> |
40 | 40 | <property name="openExternalLinks"> |
41 | 41 | <bool>true</bool> |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include "drumgrid.h" |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include "drumgridmodel.h" |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef DRUMGRIDMODEL_H |
4 | 4 | Terminal=false |
5 | 5 | Type=Application |
6 | 6 | Categories=AudioVideo;Audio;Midi;Education;Music; |
7 | Keywords=Music;Midi;Drum;Grid; | |
7 | 8 | Comment=Drumstick Drum Grid |
8 | 9 | Comment[es]=Caja de Ritmos de Drumstick |
0 | 0 | # 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> | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # it under the terms of the GNU General Public License as published by |
11 | 11 | # GNU General Public License for more details. |
12 | 12 | # |
13 | 13 | # 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/>. | |
17 | 15 | |
18 | 16 | SET(dumpmid_SRCS |
19 | 17 | dumpmid.cpp |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include "dumpmid.h" |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef DUMPMIDI_H_ |
0 | 0 | TEMPLATE = app |
1 | 1 | TARGET = drumstick-dumpmid |
2 | QT += dbus | |
2 | #QT += dbus | |
3 | 3 | CONFIG += qt console thread exceptions link_prl link_pkgconfig |
4 | 4 | DESTDIR = ../../build/bin |
5 | 5 | INCLUDEPATH += . ../../library/include ../common |
0 | 0 | # 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> | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # it under the terms of the GNU General Public License as published by |
11 | 11 | # GNU General Public License for more details. |
12 | 12 | # |
13 | 13 | # 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/>. | |
17 | 15 | |
18 | 16 | SET(dumpove_SRCS |
19 | 17 | dumpove.cpp |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include "dumpove.h" |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include "qove.h" |
0 | 0 | # 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> | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # it under the terms of the GNU General Public License as published by |
11 | 11 | # GNU General Public License for more details. |
12 | 12 | # |
13 | 13 | # 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/>. | |
17 | 15 | |
18 | 16 | SET(dumpsmf_SRCS |
19 | 17 | dumpsmf.cpp |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | Based on midifile.c by Tim Thompson, M.Czeiszperger and Greg Lee |
5 | 5 | |
13 | 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 | 14 | GNU General Public License for more details. |
15 | 15 | |
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/>. | |
19 | 18 | */ |
20 | 19 | |
21 | 20 | #include "dumpsmf.h" |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | Based on midifile.c by Tim Thompson, M.Czeiszperger and Greg Lee |
5 | 5 | |
13 | 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 | 14 | GNU General Public License for more details. |
15 | 15 | |
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/>. | |
19 | 18 | */ |
20 | 19 | |
21 | 20 | #include "qsmf.h" |
0 | 0 | # 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> | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # it under the terms of the GNU General Public License as published by |
11 | 11 | # GNU General Public License for more details. |
12 | 12 | # |
13 | 13 | # 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/>. | |
17 | 15 | |
18 | 16 | SET(dumpwrk_SRCS |
19 | 17 | dumpwrk.cpp |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | Based on midifile.c by Tim Thompson, M.Czeiszperger and Greg Lee |
5 | 5 | |
13 | 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 | 14 | GNU General Public License for more details. |
15 | 15 | |
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/>. | |
19 | 18 | */ |
20 | 19 | |
21 | 20 | #include "dumpwrk.h" |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | Based on midifile.c by Tim Thompson, M.Czeiszperger and Greg Lee |
5 | 5 | |
13 | 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 | 14 | GNU General Public License for more details. |
15 | 15 | |
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/>. | |
19 | 18 | */ |
20 | 19 | |
21 | 20 | #include "qwrk.h" |
0 | 0 | # 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> | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # it under the terms of the GNU General Public License as published by |
11 | 11 | # GNU General Public License for more details. |
12 | 12 | # |
13 | 13 | # 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/>. | |
17 | 15 | |
18 | 16 | find_package(Qt5Widgets REQUIRED) |
19 | 17 |
4 | 4 | Terminal=false |
5 | 5 | Type=Application |
6 | 6 | Categories=AudioVideo;Audio;Midi;Education;Music; |
7 | Keywords=Music;Midi;Player; | |
7 | 8 | MimeType=audio/midi;audio/x-midi;audio/cakewalk;audio/overture; |
8 | 9 | Comment=Drumstick MIDI Player |
9 | 10 | Comment[es]=Reproductor MIDI de Drumstick |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include "guiplayer.h" |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef INCLUDED_GUIPLAYER_H |
0 | 0 | TEMPLATE = app |
1 | 1 | TARGET = drumstick-guiplayer |
2 | QT += gui widgets dbus | |
2 | QT += gui widgets #dbus | |
3 | 3 | CONFIG += qt thread exceptions link_prl |
4 | 4 | DESTDIR = ../../build/bin |
5 | 5 | INCLUDEPATH += . ../../library/include ../common |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include "player.h" |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef INCLUDED_PLAYER_H |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include "playerabout.h" |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef ABOUT_H |
29 | 29 | <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> |
30 | 30 | <html><head><meta name="qrichtext" content="1" /><style type="text/css"> |
31 | 31 | p, li { white-space: pre-wrap; } |
32 | </style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:7.8pt; font-weight:400; font-style:normal;"> | |
33 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:16pt; font-weight:600;">Drumstick MIDI Player %VERSION%</span></p> | |
34 | <p style="-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;"><br /></p> | |
35 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">Sample application for the </span><a href="http://drumstick.sourceforge.net"><span style=" font-family:'DejaVu Sans'; font-size:10pt; text-decoration: underline; color:#0057ae;">Drumstick MIDI Sequencer C++ library</span></a></p> | |
36 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">Copyright © 2006-2016, Pedro Lopez-Cabanillas &lt;</span><a href="mailto:plcl@users.sf.net"><span style=" font-family:'DejaVu Sans'; font-size:10pt; text-decoration: underline; color:#0057ae;">plcl@users.sf.net</span></a><span style=" font-family:'Sans Serif'; font-size:10pt;">&gt;</span></p> | |
37 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;"> </span></p> | |
38 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:8pt;">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.</span></p> | |
39 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:8pt;"> </span></p> | |
40 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:8pt;">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.</span></p> | |
41 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:8pt;"> </span></p> | |
42 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:8pt;">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. </span></p></body></html></string> | |
32 | </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> | |
33 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:16pt; font-weight:600;">Drumstick MIDI Player %VERSION%</span></p> | |
34 | <p style="-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;"><br /></p> | |
35 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Sample application for the <a href="http://drumstick.sourceforge.net"><span style=" font-family:'DejaVu Sans'; text-decoration: underline; color:#0057ae;">Drumstick MIDI Sequencer C++ library</span></a></p> | |
36 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Copyright © 2006-2018, Pedro Lopez-Cabanillas &lt;<a href="mailto:plcl@users.sf.net"><span style=" font-family:'DejaVu Sans'; text-decoration: underline; color:#0057ae;">plcl@users.sf.net</span></a>&gt;</p> | |
37 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> </p> | |
38 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">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.</span></p> | |
39 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;"> </span></p> | |
40 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">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.</span></p> | |
41 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;"> </span></p> | |
42 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">You should have received a copy of the GNU General Public License along with this program. If not, see </span><a href="http://www.gnu.org/licenses/"><span style=" text-decoration: underline; color:#0057ae;">http://www.gnu.org/licenses/</span></a><span style=" font-size:8pt;">.</span></p></body></html></string> | |
43 | 43 | </property> |
44 | 44 | <property name="openExternalLinks"> |
45 | 45 | <bool>true</bool> |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include "guiplayer.h" |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include "song.h" |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef INCLUDED_SONG_H |
0 | 0 | # 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> | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # it under the terms of the GNU General Public License as published by |
11 | 11 | # GNU General Public License for more details. |
12 | 12 | # |
13 | 13 | # 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/>. | |
17 | 15 | |
18 | 16 | SET(metronome_SRCS |
19 | 17 | metronome.cpp |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include "metronome.h" |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef METRONOME_H |
0 | 0 | TEMPLATE = app |
1 | 1 | TARGET = drumstick-metronome |
2 | QT += dbus | |
2 | #QT += dbus | |
3 | 3 | CONFIG += qt console thread exceptions link_prl |
4 | 4 | DESTDIR = ../../build/bin |
5 | 5 | INCLUDEPATH += . ../../library/include ../common |
0 | 0 | # 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> | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # it under the terms of the GNU General Public License as published by |
11 | 11 | # GNU General Public License for more details. |
12 | 12 | # |
13 | 13 | # 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/>. | |
17 | 15 | |
18 | 16 | SET(playsmf_SRCS |
19 | 17 | playsmf.cpp |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include "playsmf.h" |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef PLAYSMF_H_ |
0 | 0 | TEMPLATE = app |
1 | 1 | TARGET = drumstick-playsmf |
2 | QT += dbus | |
2 | #QT += dbus | |
3 | 3 | CONFIG += qt console thread exceptions link_prl |
4 | 4 | DESTDIR = ../../build/bin |
5 | 5 | INCLUDEPATH += . ../../library/include ../common |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef STABLEHEADERS_H_ |
0 | 0 | # 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> | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # it under the terms of the GNU General Public License as published by |
11 | 11 | # GNU General Public License for more details. |
12 | 12 | # |
13 | 13 | # 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/>. | |
17 | 15 | |
18 | 16 | SET(sysinfo_SRCS |
19 | 17 | sysinfo.cpp |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include "alsatimer.h" |
0 | 0 | TEMPLATE = app |
1 | 1 | TARGET = drumstick-sysinfo |
2 | QT += dbus | |
2 | #QT += dbus | |
3 | 3 | CONFIG += qt console thread exceptions link_prl |
4 | 4 | DESTDIR = ../../build/bin |
5 | 5 | INCLUDEPATH += . ../../library/include ../common |
0 | 0 | # 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> | |
2 | 2 | # |
3 | 3 | # This program is free software; you can redistribute it and/or modify |
4 | 4 | # it under the terms of the GNU General Public License as published by |
11 | 11 | # GNU General Public License for more details. |
12 | 12 | # |
13 | 13 | # 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/>. | |
17 | 15 | |
18 | 16 | find_package(Qt5Widgets REQUIRED) |
19 | 17 | find_package(Qt5Svg REQUIRED) |
73 | 71 | fluidsettingsdialog.h |
74 | 72 | macsynthsettingsdialog.h |
75 | 73 | sonivoxsettingsdialog.h |
74 | ../../library/include/rtmidiinput.h | |
76 | 75 | ) |
77 | 76 | |
78 | 77 | qt5_wrap_cpp(vpiano_moc_SRCS ${vpiano_qtobject_SRCS}) |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include "connections.h" |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef CONNECTIONS_H |
6 | 6 | <x>0</x> |
7 | 7 | <y>0</y> |
8 | 8 | <width>289</width> |
9 | <height>244</height> | |
9 | <height>253</height> | |
10 | 10 | </rect> |
11 | 11 | </property> |
12 | 12 | <property name="windowTitle"> |
86 | 86 | </layout> |
87 | 87 | </widget> |
88 | 88 | <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> | |
89 | 99 | <resources/> |
90 | 100 | <connections> |
91 | 101 | <connection> |
4 | 4 | Terminal=false |
5 | 5 | Type=Application |
6 | 6 | Categories=AudioVideo;Audio;Midi;Education;Music; |
7 | Keywords=Music;Midi;Piano;Virtual; | |
7 | 8 | Comment=Drumstick Virtual Piano |
8 | 9 | Comment[es]=Piano virtual de Drumstick |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include <QSettings> |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef FLUIDSETTINGSDIALOG_H |
6 | 6 | <x>0</x> |
7 | 7 | <y>0</y> |
8 | 8 | <width>316</width> |
9 | <height>312</height> | |
9 | <height>318</height> | |
10 | 10 | </rect> |
11 | 11 | </property> |
12 | 12 | <property name="windowTitle"> |
146 | 146 | </item> |
147 | 147 | </layout> |
148 | 148 | </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> | |
149 | 161 | <resources/> |
150 | 162 | <connections> |
151 | 163 | <connection> |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include <QSettings> |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef MacSynthSettingsDialog_H |
83 | 83 | </layout> |
84 | 84 | </widget> |
85 | 85 | <tabstops> |
86 | <tabstop>soundfont_dls</tabstop> | |
87 | <tabstop>btn_soundfont</tabstop> | |
86 | 88 | <tabstop>default_dls</tabstop> |
87 | 89 | <tabstop>reverb_dls</tabstop> |
88 | 90 | </tabstops> |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include <QSettings> |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef NETWORKSETTINGSDIALOG_H |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include "preferences.h" |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This library is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef PREFERENCES_H |
242 | 242 | <tabstop>spinVelocity</tabstop> |
243 | 243 | <tabstop>spinBaseOctave</tabstop> |
244 | 244 | <tabstop>spinNumKeys</tabstop> |
245 | <tabstop>comboNotes</tabstop> | |
245 | 246 | <tabstop>buttonBox</tabstop> |
246 | 247 | </tabstops> |
247 | 248 | <resources/> |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include <QSettings> |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef SonivoxSettingsDialog_H |
123 | 123 | </layout> |
124 | 124 | </widget> |
125 | 125 | <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> | |
126 | 133 | <resources/> |
127 | 134 | <connections> |
128 | 135 | <connection> |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include <QDebug> |
78 | 77 | dlgConnections.setAdvanced(m_advanced); |
79 | 78 | |
80 | 79 | 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); | |
83 | 88 | if (!m_lastInputConnection.isEmpty()) { |
84 | 89 | m_midiIn->initialize(&settings); |
85 | 90 | m_midiIn->open(m_lastInputConnection); |
101 | 106 | //qDebug() << Q_FUNC_INFO; |
102 | 107 | m_midiIn->close(); |
103 | 108 | m_midiOut->close(); |
104 | qDebug() << "Cheers!"; | |
109 | //qDebug() << "Cheers!"; | |
105 | 110 | } |
106 | 111 | |
107 | 112 | void VPiano::slotNoteOn(const int midiNote, const int vel) |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef VPIANO_H |
10 | 10 | sonivoxsettingsdialog.ui \ |
11 | 11 | macsynthsettingsdialog.ui |
12 | 12 | 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 \ | |
16 | 16 | macsynthsettingsdialog.h \ |
17 | sonivoxsettingsdialog.h | |
17 | sonivoxsettingsdialog.h \ | |
18 | ../../library/include/rtmidiinput.h | |
18 | 19 | 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 \ | |
21 | 22 | macsynthsettingsdialog.cpp \ |
22 | 23 | sonivoxsettingsdialog.cpp |
23 | 24 | RESOURCES += pianokeybd.qrc |
28 | 29 | LIBS += -framework drumstick-rt |
29 | 30 | LIBS += -l$$qtLibraryTarget(drumstick-common) |
30 | 31 | ICON = ../../icons/drumstick.icns |
32 | QMAKE_TARGET_BUNDLE_PREFIX = net.sourceforge | |
33 | QMAKE_BUNDLE = drumstick-vpiano | |
34 | QMAKE_INFO_PLIST = ../Info.plist.app | |
31 | 35 | } else { |
32 | 36 | LIBS += -L$$OUT_PWD/../../build/lib/ |
33 | 37 | LIBS += -l$$qtLibraryTarget(drumstick-common) \ |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include "vpianoabout.h" |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #ifndef ABOUT_H |
25 | 25 | <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> |
26 | 26 | <html><head><meta name="qrichtext" content="1" /><style type="text/css"> |
27 | 27 | p, li { white-space: pre-wrap; } |
28 | </style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:7.8pt; font-weight:400; font-style:normal;"> | |
29 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:16pt; font-weight:600;">Drumstick Virtual Piano %VERSION%</span></p> | |
30 | <p style="-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;"><br /></p> | |
31 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">Sample application for the </span><a href="http://drumstick.sourceforge.net"><span style=" font-family:'DejaVu Sans'; font-size:10pt; text-decoration: underline; color:#0057ae;">Drumstick MIDI Sequencer C++ library</span></a></p> | |
32 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;">Copyright © 2006-2016, Pedro Lopez-Cabanillas &lt;</span><a href="mailto:plcl@users.sf.net"><span style=" font-family:'DejaVu Sans'; font-size:10pt; text-decoration: underline; color:#0057ae;">plcl@users.sf.net</span></a><span style=" font-family:'Sans Serif'; font-size:10pt;">&gt;</span></p> | |
33 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:10pt;"> </span></p> | |
34 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:8pt;">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.</span></p> | |
35 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:8pt;"> </span></p> | |
36 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:8pt;">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.</span></p> | |
37 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:8pt;"> </span></p> | |
38 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:8pt;">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. </span></p></body></html></string> | |
28 | </style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> | |
29 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:16pt; font-weight:600;">Drumstick Virtual Piano %VERSION%</span></p> | |
30 | <p style="-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;"><br /></p> | |
31 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Sample application for the <a href="http://drumstick.sourceforge.net"><span style=" font-family:'DejaVu Sans'; text-decoration: underline; color:#0057ae;">Drumstick MIDI Sequencer C++ library</span></a></p> | |
32 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Copyright © 2006-2018, Pedro Lopez-Cabanillas &lt;<a href="mailto:plcl@users.sf.net"><span style=" font-family:'DejaVu Sans'; text-decoration: underline; color:#0057ae;">plcl@users.sf.net</span></a>&gt;</p> | |
33 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> </p> | |
34 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">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.</span></p> | |
35 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;"> </span></p> | |
36 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">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.</span></p> | |
37 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;"> </span></p> | |
38 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">You should have received a copy of the GNU General Public License along with this program. If not, see </span><a href="http://www.gnu.org/licenses/"><span style=" text-decoration: underline; color:#0057ae;">http://www.gnu.org/licenses/</span></a><span style=" font-size:8pt;">.</span></p></body></html></string> | |
39 | 39 | </property> |
40 | 40 | <property name="openExternalLinks"> |
41 | 41 | <bool>true</bool> |
0 | 0 | /* |
1 | 1 | 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> | |
3 | 3 | |
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License as published by |
11 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | 12 | GNU General Public License for more details. |
13 | 13 | |
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/>. | |
17 | 16 | */ |
18 | 17 | |
19 | 18 | #include <QApplication> |