qsynth-0.6.1/PaxHeaders.5367/aclocal.m40000644000000000000000000000013213577702244014400 xustar0030 mtime=1577026724.781991709 30 atime=1577026724.781991709 30 ctime=1577026724.781991709 qsynth-0.6.1/aclocal.m40000644000175000001440000003203113577702244015224 0ustar00rncbcusers00000000000000# generated automatically by aclocal 1.16.1 -*- Autoconf -*- # Copyright (C) 1996-2018 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # serial 11 (pkg-config-0.29.1) dnl Copyright © 2004 Scott James Remnant . dnl Copyright © 2012-2015 Dan Nicholson dnl dnl This program is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2 of the License, or dnl (at your option) any later version. dnl dnl This program is distributed in the hope that it will be useful, but dnl WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU dnl General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA dnl 02111-1307, USA. dnl dnl As a special exception to the GNU General Public License, if you dnl distribute this file as part of a program that contains a dnl configuration script generated by Autoconf, you may include it under dnl the same distribution terms that you use for the rest of that dnl program. dnl PKG_PREREQ(MIN-VERSION) dnl ----------------------- dnl Since: 0.29 dnl dnl Verify that the version of the pkg-config macros are at least dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's dnl installed version of pkg-config, this checks the developer's version dnl of pkg.m4 when generating configure. dnl dnl To ensure that this macro is defined, also add: dnl m4_ifndef([PKG_PREREQ], dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])]) dnl dnl See the "Since" comment for each macro you use to see what version dnl of the macros you require. m4_defun([PKG_PREREQ], [m4_define([PKG_MACROS_VERSION], [0.29.1]) m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1, [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])]) ])dnl PKG_PREREQ dnl PKG_PROG_PKG_CONFIG([MIN-VERSION]) dnl ---------------------------------- dnl Since: 0.16 dnl dnl Search for the pkg-config tool and set the PKG_CONFIG variable to dnl first found in the path. Checks that the version of pkg-config found dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is dnl used since that's the first version where most current features of dnl pkg-config existed. AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl ])dnl PKG_PROG_PKG_CONFIG dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) dnl ------------------------------------------------------------------- dnl Since: 0.18 dnl dnl Check to see whether a particular set of modules exists. Similar to dnl PKG_CHECK_MODULES(), but does not set variables or print errors. dnl dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) dnl only at the first occurence in configure.ac, so if the first place dnl it's called might be skipped (such as if it is within an "if", you dnl have to call PKG_CHECK_EXISTS manually AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_default([$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) dnl --------------------------------------------- dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting dnl pkg_failed based on the result. m4_define([_PKG_CONFIG], [if test -n "$$1"; then pkg_cv_[]$1="$$1" elif test -n "$PKG_CONFIG"; then PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes ], [pkg_failed=yes]) else pkg_failed=untried fi[]dnl ])dnl _PKG_CONFIG dnl _PKG_SHORT_ERRORS_SUPPORTED dnl --------------------------- dnl Internal check to see if pkg-config supports short errors. AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi[]dnl ])dnl _PKG_SHORT_ERRORS_SUPPORTED dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], dnl [ACTION-IF-NOT-FOUND]) dnl -------------------------------------------------------------- dnl Since: 0.4.0 dnl dnl Note that if there is a possibility the first call to dnl PKG_CHECK_MODULES might not happen, you should be sure to include an dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no AC_MSG_CHECKING([for $1]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then AC_MSG_RESULT([no]) _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` else $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD m4_default([$4], [AC_MSG_ERROR( [Package requirements ($2) were not met: $$1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. _PKG_TEXT])[]dnl ]) elif test $pkg_failed = untried; then AC_MSG_RESULT([no]) m4_default([$4], [AC_MSG_FAILURE( [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. _PKG_TEXT To get pkg-config, see .])[]dnl ]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) $3 fi[]dnl ])dnl PKG_CHECK_MODULES dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], dnl [ACTION-IF-NOT-FOUND]) dnl --------------------------------------------------------------------- dnl Since: 0.29 dnl dnl Checks for existence of MODULES and gathers its build flags with dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags dnl and VARIABLE-PREFIX_LIBS from --libs. dnl dnl Note that if there is a possibility the first call to dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to dnl include an explicit call to PKG_PROG_PKG_CONFIG in your dnl configure.ac. AC_DEFUN([PKG_CHECK_MODULES_STATIC], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl _save_PKG_CONFIG=$PKG_CONFIG PKG_CONFIG="$PKG_CONFIG --static" PKG_CHECK_MODULES($@) PKG_CONFIG=$_save_PKG_CONFIG[]dnl ])dnl PKG_CHECK_MODULES_STATIC dnl PKG_INSTALLDIR([DIRECTORY]) dnl ------------------------- dnl Since: 0.27 dnl dnl Substitutes the variable pkgconfigdir as the location where a module dnl should install pkg-config .pc files. By default the directory is dnl $libdir/pkgconfig, but the default can be changed by passing dnl DIRECTORY. The user can override through the --with-pkgconfigdir dnl parameter. AC_DEFUN([PKG_INSTALLDIR], [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) m4_pushdef([pkg_description], [pkg-config installation directory @<:@]pkg_default[@:>@]) AC_ARG_WITH([pkgconfigdir], [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, [with_pkgconfigdir=]pkg_default) AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) m4_popdef([pkg_default]) m4_popdef([pkg_description]) ])dnl PKG_INSTALLDIR dnl PKG_NOARCH_INSTALLDIR([DIRECTORY]) dnl -------------------------------- dnl Since: 0.27 dnl dnl Substitutes the variable noarch_pkgconfigdir as the location where a dnl module should install arch-independent pkg-config .pc files. By dnl default the directory is $datadir/pkgconfig, but the default can be dnl changed by passing DIRECTORY. The user can override through the dnl --with-noarch-pkgconfigdir parameter. AC_DEFUN([PKG_NOARCH_INSTALLDIR], [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) m4_pushdef([pkg_description], [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) AC_ARG_WITH([noarch-pkgconfigdir], [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, [with_noarch_pkgconfigdir=]pkg_default) AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) m4_popdef([pkg_default]) m4_popdef([pkg_description]) ])dnl PKG_NOARCH_INSTALLDIR dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) dnl ------------------------------------------- dnl Since: 0.28 dnl dnl Retrieves the value of the pkg-config variable for the given module. AC_DEFUN([PKG_CHECK_VAR], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl _PKG_CONFIG([$1], [variable="][$3]["], [$2]) AS_VAR_COPY([$1], [pkg_cv_][$1]) AS_VAR_IF([$1], [""], [$5], [$4])dnl ])dnl PKG_CHECK_VAR dnl PKG_WITH_MODULES(VARIABLE-PREFIX, MODULES, dnl [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND], dnl [DESCRIPTION], [DEFAULT]) dnl ------------------------------------------ dnl dnl Prepare a "--with-" configure option using the lowercase dnl [VARIABLE-PREFIX] name, merging the behaviour of AC_ARG_WITH and dnl PKG_CHECK_MODULES in a single macro. AC_DEFUN([PKG_WITH_MODULES], [ m4_pushdef([with_arg], m4_tolower([$1])) m4_pushdef([description], [m4_default([$5], [build with ]with_arg[ support])]) m4_pushdef([def_arg], [m4_default([$6], [auto])]) m4_pushdef([def_action_if_found], [AS_TR_SH([with_]with_arg)=yes]) m4_pushdef([def_action_if_not_found], [AS_TR_SH([with_]with_arg)=no]) m4_case(def_arg, [yes],[m4_pushdef([with_without], [--without-]with_arg)], [m4_pushdef([with_without],[--with-]with_arg)]) AC_ARG_WITH(with_arg, AS_HELP_STRING(with_without, description[ @<:@default=]def_arg[@:>@]),, [AS_TR_SH([with_]with_arg)=def_arg]) AS_CASE([$AS_TR_SH([with_]with_arg)], [yes],[PKG_CHECK_MODULES([$1],[$2],$3,$4)], [auto],[PKG_CHECK_MODULES([$1],[$2], [m4_n([def_action_if_found]) $3], [m4_n([def_action_if_not_found]) $4])]) m4_popdef([with_arg]) m4_popdef([description]) m4_popdef([def_arg]) ])dnl PKG_WITH_MODULES dnl PKG_HAVE_WITH_MODULES(VARIABLE-PREFIX, MODULES, dnl [DESCRIPTION], [DEFAULT]) dnl ----------------------------------------------- dnl dnl Convenience macro to trigger AM_CONDITIONAL after PKG_WITH_MODULES dnl check._[VARIABLE-PREFIX] is exported as make variable. AC_DEFUN([PKG_HAVE_WITH_MODULES], [ PKG_WITH_MODULES([$1],[$2],,,[$3],[$4]) AM_CONDITIONAL([HAVE_][$1], [test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"]) ])dnl PKG_HAVE_WITH_MODULES dnl PKG_HAVE_DEFINE_WITH_MODULES(VARIABLE-PREFIX, MODULES, dnl [DESCRIPTION], [DEFAULT]) dnl ------------------------------------------------------ dnl dnl Convenience macro to run AM_CONDITIONAL and AC_DEFINE after dnl PKG_WITH_MODULES check. HAVE_[VARIABLE-PREFIX] is exported as make dnl and preprocessor variable. AC_DEFUN([PKG_HAVE_DEFINE_WITH_MODULES], [ PKG_HAVE_WITH_MODULES([$1],[$2],[$3],[$4]) AS_IF([test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"], [AC_DEFINE([HAVE_][$1], 1, [Enable ]m4_tolower([$1])[ support])]) ])dnl PKG_HAVE_DEFINE_WITH_MODULES qsynth-0.6.1/PaxHeaders.5367/AUTHORS0000644000000000000000000000013213577702221013603 xustar0030 mtime=1577026705.840992838 30 atime=1577026705.839992839 30 ctime=1577026705.840992838 qsynth-0.6.1/AUTHORS0000644000175000001440000000025013577702221014425 0ustar00rncbcusers00000000000000Rui Nuno Capela Richard Bown Chris Cannam Pedro Lopez-Cabanillas qsynth-0.6.1/PaxHeaders.5367/autogen.sh0000644000000000000000000000013213577702221014531 xustar0030 mtime=1577026705.840992838 30 atime=1577026705.840992838 30 ctime=1577026705.840992838 qsynth-0.6.1/autogen.sh0000755000175000001440000000004413577702221015357 0ustar00rncbcusers00000000000000#!/bin/sh # make -f Makefile.git $* qsynth-0.6.1/PaxHeaders.5367/ChangeLog0000644000000000000000000000013213577702221014305 xustar0030 mtime=1577026705.840992838 30 atime=1577026705.840992838 30 ctime=1577026705.840992838 qsynth-0.6.1/ChangeLog0000644000175000001440000005741513577702221015146 0ustar00rncbcusers00000000000000Qsynth - A fluidsynth Qt GUI Interface -------------------------------------- ChangeLog 0.6.1 2019-12-22 The Winter'19 Release. - Custom color (palette) theme editor introduced; color (palette) theme changes are now effective immediately, except on default. - Second attempt to fix the yet non-official though CMake build configuration. - When using autotools and ./configure --with-qt=..., it is also necessary to adjust the PKG_CONFIG_PATH environment variable (after a merge request by plcl aka. Pedro López-Cabanillas, while on qmidinet, thanks). 0.6.0 2019-10-17 An Autumn'19 Release. - Updated the old yet non-oficial CMake build option. - Fix HiDPI display screen effective support (Qt >= 5.6). - System-tray icon context menu has been refactored to be exactly the same as the main-window context menu that is re-instantiated on demand. - Make sure compiler flags comply to c++11 as standard. 0.5.7 2019-07-12 A Summer'19 Release. - Updated for the newer Qt5 development tools (>= 5.13). - Configure updated to check for qtchooser availability. - Minor update to Debian packaging control file. - Settled to initial default MIDI and audio drivers on MacOSX to "coremidi" and "coreaudio" resp. - Updated icon files into 128x128 base resolution. 0.5.6 2019-04-11 A Spring-Break'19 Release. - Re-defined all main application UNIX signal handling. 0.5.5 2019-03-11 Pre-LAC2019 Release Frenzy. - Refactored all singleton/unique application instance setup logic away from X11/Xcb hackery. - HiDPI display screen support (Qt >= 5.6). - Bumped copyright headers into the New Year (2019). 0.5.4 2018-12-05 End of Autumn'18 Release. - Reset button now also resets master Gain, Reverb and Chorus to their "factory default" values. - Fixed Reverb and Chorus effects processing when audio output peak-meters are enabled on FluidSynth API V2. - Old deprecated Qt4 build support is no more. - System tray options now subject to current desktop environment availability. 0.5.3 2018-10-10 An Autumn'18 Release. - Current FluidSynth version information added to command line output (-V, --version). - Overhaul adaptations to the FluidSynth API V2 (>= 2.0.0). - AppStream metadata updated to be the most compliant with latest freedesktop.org specification and recommendation. 0.5.2 2018-07-22 A Summer'18 Release. - AppData/AppStream metadata is now settled under an all permisssive license (FSFAP). 0.5.1 2018-05-21 Pre-LAC2018 release frenzy. - Disable singleton/unique application instance setup logic when the display server platform is not X11. - Fixed deprecated calls to fluid_synth_get_channel_info(), fluid_synth_set_midi_router() and fluid_settings_getstr() (as signaled on libfluidsynth >= 1.1.9). - A little hardening on the configure (autoconf) macro side. 0.5.0 2017-12-16 End of Autum'17 release. - Added *.SF3 to soundfont files filter on Setup > Soundfonts > Open... file dialog. - Increased Soundfont bank-offset limit to 16384 (was 128). - Desktop entry specification file is now finally independent from build/configure template chains. - Updated target path for freedesktop.org's AppStream metainfo file (formerly AppData). 0.4.4 2017-04-27 Pre-LAC2017 release frenzy. - Added French man page (by Olivier Humbert, thanks). - Make builds reproducible byte for byte, by getting rid of the configure build date and time stamps. 0.4.3 2016-11-14 A Fall'16 release. - Fixed a potential crash on the singleton/unique application instance setup. - Almost complete overhaul on the configure script command line options, wrt. installation directories specification, eg. --prefix, --bindir, --libdir, --datadir and --mandir. - Late French (fr) translation update (by Olivier Humbert, thanks). 0.4.2 2016-09-14 End of Summer'16 release. - Old "Start minimized to system tray" option returns to setup. - Dropped the --enable-qt5 from configure as found redundant given that's the build default anyway (suggestion by Guido Scholz, while for Qtractor, thanks). 0.4.1 2016-04-05 Spring'16 release frenzy. - Dropped old "Start minimized to system tray" option from setup. - CMake script lists update (patch by Orcan Ogetbil, thanks). - Added application keywords to freedesktop.org's AppData. - System-tray icon context menu has been fixed/hacked to show up again on Plasma 5 (aka. KDE5) notifications status area. - Prevent x11extras module from use on non-X11/Unix plaforms. - Messages standard output capture has been improved in both ways a non-blocking pipe may get. - Regression fix for invalid system-tray icon dimensions reported by some desktop environment frameworks. 0.4.0 2015-09-07 Summer'15 release frenzy. - Desktop environment session shutdown/logout management has been also adapted to Qt5 framework. - Single/unique application instance control adapted to Qt5/X11. - Output meter scale text color fixed on dark color schemes. - Prefer Qt5 over Qt4 by default with configure script. - Complete rewrite of Qt4 vs. Qt5 configure builds. - A new top-level widget window geometry state save and restore sub-routine is now in effect. - Fixed for some strict tests for Qt4 vs. Qt5 configure builds. - German (de) translation update (by Guido Scholz, thanks). 0.3.9 2015-03-25 Pre-LAC2015 release frenzy. - Added application description as freedesktop.org's AppData. - New user preference option on whether to show the nagging 'program will keep running in the system tray' message, on main window close. - Application close confirm warning is now raising the main window as visible and active for due top level display, especially applicable when minimized to the system tray. - A man page has been added. - Translations install directory change. - Allow the build system to include an user specified LDFLAGS. - Czech (cs) translation updated (by Pavel Fric, thanks). 0.3.8 2013-12-31 A fifth of a Jubilee. - More preparations for Qt5 configure build. - Serbian (sr) translation added (by Jay Alexander Fleming, thanks). 0.3.7 2013-04-16 Spring cleaning sale. - New French (fr) translation added (by Yann Collette, thanks). - Reversed (mouse) scroll-wheel effect on dial knob widgets. - Preparations for Qt5 migration. - MIDI bank select mode control added to engine setup dialog (after a clean patch ticket by Kurt Stephens, thanks). - Added include to shut up gcc 4.7 build failures. - Make(ing) -jN parallel builds now available to the masses (an awesome patch by kensington, thanks). - Fixed Makefile.in handling of installation directories to the configure script eg. --datadir, --localedir. - Main window is now brought to front and (re)activated when clicking on the system tray icon instead of just hiding it. - Debugging stacktrace now applies to all working threads. 0.3.6 2011-04-07 Slip release. - Main window layout fixing with regard to its user preferred size and recall when system-tray icon is not enabled. - Channels list preset items now activated on double-click. - Desktop environment session shutdown (eg. logout) is now tapped for graceful application exit, even though the main window is active (visible) and minimizing to system tray is enabled. Both were causing first shutdown/logout attempt to abort. Not anymore, hopefully ;). - libX11 is now being added explicitly to the build link phase, as seen necessary on some bleeding-edge distros eg. Fedora 13, Debian 6. - General standard dialog buttons layout is now in place. - CMake build system. It was silently available in 0.3.5, but now it is officially unveiled. - Fixed a couple of dangling pointers. - Mac OSX: Enabled the MIDI name Id option for CoreMIDI driver ports, added the icon to the app bundle. 0.3.5 2010-04-27 Overdue release. - Initial widget geometry and visibility persistence logic has been slightly revised as much to avoid crash failures due to wrong main widget hidden state. - General source tree layout and build configuration change. - Most modal message dialog boxes (eg. critical errors) are now replaced by system tray icon bubble messages where available. - Reverb and Chorus parameter ranges have been revised to match and comply with fluidsynth back-end (libfluidsynth). - Fluidsynth channel info and unset program interfaces are now in use where available (libfluidsynth >= 1.1.1). - Global configuration state is now explicitly saved/committed to disk when Options dialog changes are accepted and applied. - Output peak level meters get their long deserved gradient look. - Automatic crash-dump reports, debugger stack-traces (gdb), back- traces, whatever, are being introduced as a brand new configure option (--enable-stacktrace) and default enabled on debug build targets (--enable-debug). - Added Czech (cs) translation, contributed by Pavel Fric. - The channel preset selector (Channels/Edit...) has been seriously crippled for ages, only showing the presets of the last loaded soundfont, now fixed. - Minimum number of MIDI channels allowed on engine setup has been dropped from the old value 16 to as low as 1 (one), not that it makes a difference, as (lib)fluidsynth internals just rounds it to the nearest multiple of 16 anyway. - Cleanup to knobs source, simplified from redundant stuff. 0.3.4 2009-05-10 New release. - Command line option parsing has been slightly refactored to allow custom override through extraordinary fluidsynth option settings (eg. -o name=value; fixes bug #2781579). - Main form layout has been given a little bit more slack space, just to accommodate some longer text label translations (eg. German). - Converted obsolete QMessageBox forms to standard buttons. - Saved channel presets are now effectively loaded on engine startup. - Russian translation added (thanks to Alexandre Prokoudine). - Grayed/disabled palette color group fix for dark color themes. - Qt Software logo update. - Fait-divers: desktop menu file touched to openSUSE conventions. - Slight optimizations to the output peak meters refresh rate. - MIDI and audio device names are now user selectable options through respective drop-down lists on each engine setup dialog. - New knob style: Skulpture. 0.3.3 2008-07-10 Knobs galore. - Due to some trouble with newer Qt >= 4.4 applications regarding font size configuration, a new global user option is now available to the rescue: Options.../Other/Base font size (default is no-op). - Knobs: graphic styles are now QStyle derived classes, which are assigned to the knobs using QWidget::setStyle(). Three styles are implemented in this way, supporting also the legacy QDial: * Our former look, tweaked and ported from Sonic Visualiser. * A port of the new look implemented by David Garcia. * Another ported widget style, designed by Giuseppe Cigala. - Spanish translation added. - Attempt to load Qt's own translation support and get rid of the ever warning startup message, unless built in debug moderr; also introducing the very first and complete German translation (patching transaction by Guido Scholz, thanks). - Messages file logging makes its first long overdue appearance, with user configurable settings in Options/Logging. - Only one application instance is now allowed to be up and running, with immediate but graceful termination upon startup iif an already running instance is detected, which will see its main widget shown up and all engines started automatically (Qt/X11 platform only). 0.3.2 2007-12-19 Minor stealth fixes and season greetings. - A new option to start the program minimized when the system tray icon is enabled, is now available from Setup/Misc/Start minimized to system tray. - Regression from QSystemTrayIcon (Qt4 >= 4.2) implementation, at least on X11 environments: while the main application widget was minimized to the system-tray, closing any other top-level widget was causing the immediate and unexpected application shutdown. - Minor corrections on the output peak meter scale aesthetics. - Tool/child windows position and size preservation fixed. - Orphaned MIDI device name no longer mistaken when switching between MIDI drivers on engine setup. - A bit more of precision is achieved over the output peak meters. - Messages line limit was not being checked, now honored. - Simple as it could ever be, the build executive summary report is now given on configure. - Get configure to try and detect the correct qmake location and insert it the search order, so let the qt4 tools take precedence when --with-qt option is given and older qt3 ones coexist and are found located ahead in the PATH. - The infamous "Keep child windows always on top" global option is now supposed to behave a little better when disabled, layering child windows as naturally as far the window manager dictates. - Inspired on Andreas Persson patch, while on qjackctl-devel, which made it possible to compile and run with older Qt 4.1, similar arrangements were carried out on qsynth too, without hesitation. - Main panel spin-boxes gets accelerated when stressed (Qt >= 4.2). 0.3.1 2007-07-16 Shallowed bug-fix release. - Now using QSystemTrayIcon class facility if available (Qt4 >= 4.2) making the system-tray option available on most platforms, notably on Windows and Mac OS X. - Combo-box setup history has been corrected on restore, which was discarding the very initial default (factory) contents. - One programming error has been corrected, which was affecting the editable preset combo-boxes usability. - Soundfont context menu is now available again even when the setup dialog soundfont list is empty. - About form link is now browseable externally. - Updated README-OSX (thanks to Ebrahim Mayat again). 0.3.0 2007-07-03 Qt4 migration was complete. - Qt4 migration has comenced and is now complete. Care must be taken with this new configuration file and location: this release starts a new one from scratch and won't reuse any of the previous existing ones, although cut and paste might help if you know what you'll be doing :) - Application icon is now installed to ${prefix}/share/pixmaps; application desktop entry file is now included in installation; spec file (RPM) is now a bit more openSUSE compliant; initial debianization. - Default font option names were adjusted to "Sans Serif" and "Monospace", wherever available. - The "keep child windows always on top" option is not set as default anymore, because window focus behavior gets tricky on some desktop environments (eg. Mac OS X, Gnome). - Autoconf (configure) scripting gets an update. 0.2.6 2007-04-14 Nitpicking season closed :) - Main panel window now keeps its previous iconic state on system tray, on application restart (thanks to Chris Cannam for hinting this one). - Minor optimization in peak level meters update rate. Alternate but faster inline lroundf() function implementation is now used. - Most top-level widgets were missing the normal-widget flag, which were causing some sticky size behavior on some window managers. - Messages and channels window captions can now be set smaller as tool-widgets, in effect when child windows are kept always on top. - While on the engine setup dialog, the ALSA sequencer client identifier is now also disabled depending on the MIDI input option setting. - Experimental soundfont loader which prevents RAM image duplication if more than one engine loads the same soundfont file. Server-mode is now supported on multi-engine configurations by auto-increnmenting the shell socket listening port (both patches handed by Dave Searls, thanks). - Engine name gets through the respective tab title when created. Fixed engine delete button enabling on the main window. - Changed deprecated copyright attribute to license, on qsynth.spec (RPM). - Added configure support for x86_64 libraries (Pedro Lopez-Cabanillas). - GPL address update. 0.2.5 2006-03-05 Fancy dial knobs and effective bank-offsets. - New dial-knob behavior now follows mouse pointer angular position, almost similar to old QDial, but this time avoiding that nasty and rather abrupt change on first mouse click. - By simple use of widget subclassing, the value/position of any dial knob can now be reset to its default or original position at any time, by simply pressing the mouse mid-button. These default value positions are just committed to current dial values when switching engines and/or closing the application. - Optional specification of alternate fluidsynth installation path has been added to configure command arguments (--with-fluidsynth). - After some source code tweaks, a win32 build is now possible. (instructions will be provided on demand :) - Bank offset finally gets its due effect, while on the channels and channel preset selection dialogs. Regretfully, the soundfont bank offset feature has been lurking ever since its inception, but now its live and hopefully effective. - A new fancy widget has arrived, qsynthKnob, with some modifications to replace the actual *ugly* QDial widgets in the main window. This widget is based on a design by Thorsten Wilms, formerly implemented by Chris Cannam in Rosegarden, and finally adapted and brought to Qsynth by Pedro Lopez-Cabanillas. Thankyou all. 0.2.4 2005-10-02 Bug and some other usability fixes. - All widget captions changed to include proper application title prefix. - Attempt to bring those aging autoconf templates to date; sample SPEC file for RPM build is now being included and generated at configure time. - Missing icons on channel and soundfont setup context menus are now up; bank/program splitter widget added to channel preset dialog. - An abrupt segfault on engine restart have been finally fixed; this issue has been quite an annoyance which has been around for ages and was a highly probable showstopper just when restarting an engine due to changes on the setup settings. Not anymore, hopefully. - New tool buttons were added to the main widget, for adding a new engine and removing the current one, while trying to increase the visibility of multiple fluidsynth engine capability (for new users, at least :) - Set to use QApplication::setMainWidget() instead of registering the traditional lastWindowClosed() signal to quit() /slot, just to let the -geometry command line argument have some optional effect on X11. - Minor configure and Makefile install fixes, as Debian and Mac OS X specialties. Also, install does the right thing with target file modes (thanks to Matt Flax and Ebrahim Mayat, for pointing these out). - Fixed output disability when messages limit option is turned off (thanks to Wolfgang Woehl for spotting this one, while on qjackctl). 0.2.3 2005-05-24 System tray icon and menu option. - New option for system tray icon and menu, which is known to be effective on KDE enabled desktops; support for freedesktop.org's system tray protocol specification has been included so this maybe also effective on Gnome2. - Setup options for alternate MIDI and Audio devices were introduced. - Output level meters get smoother and slightly layout optimized. - Set to ignore the SIGPIPE ("Broken pipe") signal, where available, as the default handler is usually fatal when a JACK client is zombified abruptly. - Messages window limit is now enforced only when the line count exceeds in one third the user configured line count maximum; if Qt 3.2.0+ is in use, the QTextView widget is otherwise set to the optimized Qt::LogText format. - Updated Mac OS X build instructions (README-OSX, by Ebrahim Mayat). 0.2.2 2004-10-08 Output level peak meters and other fixes. - Minor configure fixes. - Meanwhile, XPM icon(s) were brainlessly converted to PNG format. - Engine panel settings are now properly saved on stop/restart. - Icons were added to the engine tab selector context menu. - Master gain front panel control gets rescaled and now ranges from 0..200, with midpoint at 100 (unit gain). - Added Mac OS X build instructions (README-OSX, by Ebrahim Mayat). - Soundfont bank offset option gets its trial time; please note that fluidsynth 1.0.5 is needed to build on this feature, which is being properly detected and only enabled at configure time. - Output level peak meters are now featured as an option, which must be explicitly enabled on setup for those to show up; in addition, overall GUI refresh cycle period has been reduced from 200 to 100 msec. - Top level sub-windows are now always raised and set with active focus when shown to visibility. 0.2.1 2004-04-30 Important internal fixes. - Channels window reset when switching engines isn't destructive anymore; also reverb and chorus activation were not being correctly updated; these were quite annoying bugs, now fixed. - Corrected MIDI/Audio driver settings that were being obliterated from the setup dialog option lists; this was causing the impossibility to choose an appropriate driver on certain systems where "alsa_seq" or "jack" may not be available by default (e.g. MacOSX, thanks to Ebrahim Mayat). - The dash (-) is now a legal character for preset names. - Translation support for the default preset name "(default)". - Delete preset confirmation warning message. - Messages window pops up whenever a critical error message is issued. 0.2.0 2004-03-21 Multi-instance comes to town. - Multiple fluidsynth engines can now be maintained, with different settings, MIDI and Audio drivers, and more interestingly distinct soundfont stacks. The main user interface has been minimally improved to accomodate this new paradigm, but whole application internals have been massively rewritten. 0.1.3 2004-02-29 More work in progress. - Message window line limit is now a configurable option on setup. - ALSA sequencer client name may now be internally set; not of great use for now, but it opens the ground for future workings. - JACK multiple output port mode may now be configured on setup. - Makefile.cvs makes its late entrance on the build toolset. 0.1.2 2004-02-16 Work in progress. - Messages and Channels pop-up windows are not hinted as dialogs anymore and thus are not centered relative to parent main window which has become a strict Qt dialog widget behaviour (as of Qt 3.3+). - Soundfont setup dialog changed to open and load multiple files at once. - New setup option on wether all child windows are kept on top of the main window, or otherwise floating with probable taskbar entries of their own. - Setup changes that are only effective next time the program is run gets an informational message box shown to the user. 0.1.1 2004-01-22 Yet more minor bugfixes. - Messages color retouching. - Popup menus memory leak fixed. 0.1.0 2003-12-29 Channel preset breakout. - Added channels breakout and program preset view and edit windows, including a simple preset/profile management feature where the complete channel program assignments may be referenced and saved by name. - Drag and dropped soundfont files are now accepted for immediate load. - Messages window fallback fix. - Standard output/error stream capture setup option; handler retouched to be line buffer oriented. 0.0.3 2003-12-12 Few tiny changes so far. - Single shot timer and restart code path had a graceful rewrite. - Messages window blankness rendering fix. - Configure time detection of 'round' library function availability. - Player drag and drop feature has been prepared, but somehow the internal MIDI player function is still broken. 0.0.2 2003-11-26 Minor bugfixes. - Gain, Reverb and Chorus front-panel settings are now loosely scaled and properly clipped; this is a first attempt to avoid unstable sound feedback behaviour namely on Reverb. - MIDI input status led stickyness have been fixed. - Soundfont open dialog now uses uppercase filter too (*.SF2). - New configure time argument debugging support (--enable-debug). 0.0.1 2003-11-15 Primordial release. qsynth-0.6.1/PaxHeaders.5367/CMakeLists.txt0000644000000000000000000000013213577702221015273 xustar0030 mtime=1577026705.840992838 30 atime=1577026705.840992838 30 ctime=1577026705.840992838 qsynth-0.6.1/CMakeLists.txt0000644000175000001440000002221313577702221016120 0ustar00rncbcusers00000000000000project(QSYNTH) cmake_minimum_required(VERSION 3.1) set (VERSION "0.6.1") set (CONFIG_VERSION ${VERSION}) execute_process ( COMMAND git describe --tags --dirty --abbrev=6 OUTPUT_VARIABLE GIT_DESCRIBE_OUTPUT RESULT_VARIABLE GIT_DESCRIBE_RESULT OUTPUT_STRIP_TRAILING_WHITESPACE) if (GIT_DESCRIBE_RESULT EQUAL 0) set (VERSION "${GIT_DESCRIBE_OUTPUT}") string (REGEX REPLACE "^[^_]+" "" VERSION "${VERSION}") string (REGEX REPLACE "^[_vV]+" "" VERSION "${VERSION}") string (REGEX REPLACE "-g" "git." VERSION "${VERSION}") string (REGEX REPLACE "[_|-]+" "." VERSION "${VERSION}") execute_process ( COMMAND git rev-parse --abbrev-ref HEAD OUTPUT_VARIABLE GIT_REVPARSE_OUTPUT RESULT_VARIABLE GIT_REVPARSE_RESULT OUTPUT_STRIP_TRAILING_WHITESPACE) if (GIT_REVPARSE_RESULT EQUAL 0 AND NOT GIT_REVPARSE_OUTPUT STREQUAL "master") set (VERSION "${VERSION} [${GIT_REVPARSE_OUTPUT}]") endif () endif () set (PACKAGE_NAME "Qsynth") set (PACKAGE_VERSION "${VERSION}") set (PACKAGE_BUGREPORT "rncbc@rncbc.org") set (PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}") set (PACKAGE_TARNAME "qsynth") set (CONFIG_BUILD_VERSION "${PACKAGE_VERSION}") if (CMAKE_BUILD_TYPE) set (CONFIG_BUILD_TYPE ${CMAKE_BUILD_TYPE}) else () set (CONFIG_BUILD_TYPE "release") endif () set (CONFIG_DEBUG 0) if (CONFIG_BUILD_TYPE MATCHES "debug") set (CONFIG_DEBUG 1) endif () set (CONFIG_PREFIX "${CMAKE_INSTALL_PREFIX}") include (GNUInstallDirs) set (CONFIG_BINDIR "${CONFIG_PREFIX}/${CMAKE_INSTALL_BINDIR}") set (CONFIG_LIBDIR "${CONFIG_PREFIX}/${CMAKE_INSTALL_LIBDIR}") set (CONFIG_DATADIR "${CONFIG_PREFIX}/${CMAKE_INSTALL_DATADIR}") set (CONFIG_MANDIR "${CONFIG_PREFIX}/${CMAKE_INSTALL_MANDIR}") # Enable system tray argument option. option (CONFIG_SYSTEM_TRAY "Enable system tray (default=yes)" 1) # Enable fluid_synth_get_channel_info function (DEPRECATED). option (CONFIG_FLUID_CHANNEL_INFO "Enable FluidSynth channel info support (DEPRECATED) (default=no)" 0) # Enable fluid_synth_set_midi_router function (DEPRECATED). option (CONFIG_FLUID_MIDI_ROUTER "Enable FluidSynth MIDI router support (DEPRECATED) (default=no)" 0) # Enable new_fluid_server function. option (CONFIG_FLUID_SERVER "Enable FluidSynth server (default=yes)" 1) # Enable unique/single instance. option (CONFIG_XUNIQUE "Enable unique/single instance (default=yes)" 1) # Enable gradient eye-candy. option (CONFIG_GRADIENT "Enable gradient eye-candy (default=yes)" 1) # Enable debugger stack-trace option (assumes --enable-debug). option (CONFIG_STACKTRACE "Enable debugger stack-trace (default=no)" 0) # Fix for new CMAKE_REQUIRED_LIBRARIES policy. if (POLICY CMP0075) cmake_policy (SET CMP0075 NEW) endif () # Check for Qt find_package (Qt5 REQUIRED COMPONENTS Core Gui Widgets) if (CONFIG_XUNIQUE) find_package (Qt5 REQUIRED COMPONENTS Network) endif () find_package (Qt5LinguistTools) include (CheckIncludeFile) include (CheckIncludeFiles) include (CheckIncludeFileCXX) include (CheckFunctionExists) include (CheckLibraryExists) # Checks for libraries. if (WIN32) check_function_exists (lroundf CONFIG_ROUND) else () find_library (MATH_LIBRARY m) # Check for round math function. if (MATH_LIBRARY) set (CMAKE_REQUIRED_LIBRARIES "${MATH_LIBRARY};${CMAKE_REQUIRED_LIBRARIES}") check_function_exists (lroundf CONFIG_ROUND) else () message (FATAL_ERROR "*** math library not found.") endif () endif () # Checks for header files. if (UNIX AND NOT APPLE) check_include_files ("fcntl.h;unistd.h;signal.h" HAVE_SIGNAL_H) endif () # Find package modules find_package (PkgConfig REQUIRED) # Check for FLUIDSYNTH library. pkg_check_modules (FLUIDSYNTH REQUIRED fluidsynth) if (FLUIDSYNTH_FOUND) set (CONFIG_FLUIDSYNTH 1) include_directories (${FLUIDSYNTH_INCLUDE_DIRS}) link_directories (${FLUIDSYNTH_LIBRARY_DIRS}) # link_libraries (${FLUIDSYNTH_LIBRARIES}) set (CMAKE_REQUIRED_LIBRARIES "${FLUIDSYNTH_LIBRARIES};${CMAKE_REQUIRED_LIBRARIES}") # Check for new_fluid_server function. if (CONFIG_FLUID_SERVER) check_function_exists (new_fluid_server CONFIG_FLUID_SERVER) endif () # Check for fluid_synth_system_reset function. check_function_exists (fluid_synth_system_reset CONFIG_FLUID_SYSTEM_RESET) # Check for fluid_synth_set_bank_offset function. check_function_exists (fluid_synth_set_bank_offset CONFIG_FLUID_BANK_OFFSET) # Check for fluid_synth_get_channel_info function. if (CONFIG_FLUID_CHANNEL_INFO) check_function_exists (fluid_synth_get_channel_info CONFIG_FLUID_CHANNEL_INFO) endif() # Check for fluid_synth_set_midi_router function. if (CONFIG_FLUID_MIDI_ROUTER) check_function_exists (fluid_synth_set_midi_router CONFIG_FLUID_MIDI_ROUTER) endif() # Check for fluid_synth_unset_program function. check_function_exists (fluid_synth_unset_program CONFIG_FLUID_UNSET_PROGRAM) # Check for fluid_version_str function. check_function_exists (fluid_version_str CONFIG_FLUID_VERSION_STR) # Check for fluid_settings_dupstr function. check_function_exists (fluid_settings_dupstr CONFIG_FLUID_SETTINGS_DUPSTR) # Check for fluid_preset_get_banknum function. check_function_exists (fluid_preset_get_banknum CONFIG_FLUID_PRESET_GET_BANKNUM) # Check for fluid_preset_get_num function. check_function_exists (fluid_preset_get_num CONFIG_FLUID_PRESET_GET_NUM) # Check for fluid_preset_get_name function. check_function_exists (fluid_preset_get_name CONFIG_FLUID_PRESET_GET_NAME) # Check for fluid_preset_get_sfont function. check_function_exists (fluid_preset_get_sfont CONFIG_FLUID_PRESET_GET_SFONT) # Check for fluid_sfont_get_id function. check_function_exists (fluid_sfont_get_id CONFIG_FLUID_SFONT_GET_ID) # Check for fluid_sfont_get_name function. check_function_exists (fluid_sfont_get_name CONFIG_FLUID_SFONT_GET_NAME) # Check for fluid_sfont_iteration_start function. check_function_exists (fluid_sfont_iteration_start CONFIG_FLUID_SFONT_ITERATION_START) # Check for fluid_sfont_iteration_next function. check_function_exists (fluid_sfont_iteration_next CONFIG_FLUID_SFONT_ITERATION_NEXT) # Check for fluid_synth_get_chorus_speed function. check_function_exists (fluid_synth_get_chorus_speed CONFIG_FLUID_SYNTH_GET_CHORUS_SPEED) # Check for fluid_synth_get_chorus_depth function. check_function_exists (fluid_synth_get_chorus_depth CONFIG_FLUID_SYNTH_GET_CHORUS_DEPTH) # Check for FluidSynth API V2 (>= 2.0.0) specifics... if (CONFIG_FLUID_SFONT_ITERATION_START AND CONFIG_FLUID_SFONT_ITERATION_NEXT) # Check for fluid_settings_getnum_default function. check_function_exists (fluid_settings_getnum_default CONFIG_FLUID_SETTINGS_GETNUM_DEFAULT) # Check for fluid_settings_getint_default function. check_function_exists (fluid_settings_getint_default CONFIG_FLUID_SETTINGS_GETINT_DEFAULT) # Check for fluid_settings_getstr_default function. check_function_exists (fluid_settings_getstr_default CONFIG_FLUID_SETTINGS_GETSTR_DEFAULT) # Check for fluid_settings_foreach function. check_function_exists (fluid_settings_foreach CONFIG_FLUID_SETTINGS_FOREACH) # Check for fluid_settings_foreach_option function. check_function_exists (fluid_settings_foreach_option CONFIG_FLUID_SETTINGS_FOREACH_OPTION) # Check for new_fluid_server function. check_function_exists (new_fluid_server CONFIG_NEW_FLUID_SERVER) endif () else () message (FATAL_ERROR "*** FLUIDSYNTH library not found.") set (CONFIG_FLUIDSYNTH 0) endif () add_subdirectory (src) configure_file (qsynth.spec.in qsynth.spec IMMEDIATE @ONLY) install (FILES qsynth.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) install (FILES qsynth.fr.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/fr/man1 RENAME qsynth.1) # Configuration status macro (SHOW_OPTION text value) if (${value}) message ("${text}: yes") else () message ("${text}: no") endif () endmacro () message ("\n ${PACKAGE_NAME} ${PACKAGE_VERSION}") message ("\n Build target . . . . . . . . . . . . . . . . . . .: ${CONFIG_BUILD_TYPE}\n") show_option (" FluidSynth library support . . . . . . . . . . . ." CONFIG_FLUIDSYNTH) show_option (" FluidSynth server support . . . . . . . . . . . ." CONFIG_FLUID_SERVER) show_option (" FluidSynth system reset support . . . . . . . . ." CONFIG_FLUID_SYSTEM_RESET) show_option (" FluidSynth bank offset support . . . . . . . . . ." CONFIG_FLUID_BANK_OFFSET) show_option (" FluidSynth channel info support (DEPRECATED) . . ." CONFIG_FLUID_CHANNEL_INFO) show_option (" FluidSynth MIDI router support (DEPRECATED) . . ." CONFIG_FLUID_MIDI_ROUTER) show_option (" FluidSynth unset program support . . . . . . . . ." CONFIG_FLUID_UNSET_PROGRAM) show_option (" FluidSynth version string support . . . . . . . ." CONFIG_FLUID_VERSION_STR) message ("") show_option (" System tray icon support . . . . . . . . . . . . ." CONFIG_SYSTEM_TRAY) message ("") show_option (" Unique/Single instance support . . . . . . . . . ." CONFIG_XUNIQUE) show_option (" Gradient eye-candy . . . . . . . . . . . . . . . ." CONFIG_GRADIENT) show_option (" Debugger stack-trace (gdb) . . . . . . . . . . . ." CONFIG_STACKTRACE) message ("\n Install prefix . . . . . . . . . . . . . . . . . .: ${CMAKE_INSTALL_PREFIX}") message ("\nNow type 'make', followed by 'make install' as root.\n") qsynth-0.6.1/PaxHeaders.5367/configure0000644000000000000000000000013113577702245014444 xustar0030 mtime=1577026725.156991687 29 atime=1577026725.10799169 30 ctime=1577026725.156991687 qsynth-0.6.1/configure0000755000175000001440000073553313577702245015315 0ustar00rncbcusers00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for Qsynth 0.6.1. # # Report bugs to . # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 as_fn_exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org and rncbc@rncbc.org $0: about your system, including any error possibly output $0: before this message. Then install a modern shell, or $0: manually run the script under such a shell if you do $0: have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME='Qsynth' PACKAGE_TARNAME='qsynth' PACKAGE_VERSION='0.6.1' PACKAGE_STRING='Qsynth 0.6.1' PACKAGE_BUGREPORT='rncbc@rncbc.org' PACKAGE_URL='' ac_unique_file="src/qsynth.cpp" ac_default_prefix=/usr/local # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='LTLIBOBJS LIBOBJS ac_libs ac_ldflags ac_incpath ac_cflags ac_qnetwork QT5NETWORK_LIBS QT5NETWORK_CFLAGS EGREP GREP FLUIDSYNTH_LIBS FLUIDSYNTH_CFLAGS ac_cv_lrelease ac_lrelease ac_cv_lupdate ac_lupdate ac_uic ac_moc ac_cv_qmake ac_qmake ac_qtchooser PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG CXXCPP ac_ct_CXX CXXFLAGS CXX CPP OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC ac_debug ac_mandir ac_datadir ac_libdir ac_bindir ac_prefix ac_version target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_debug enable_system_tray enable_fluid_channel_info enable_fluid_midi_router enable_fluid_server enable_xunique enable_gradient enable_stacktrace with_qt with_fluidsynth ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP CXX CXXFLAGS CCC CXXCPP PKG_CONFIG PKG_CONFIG_PATH PKG_CONFIG_LIBDIR FLUIDSYNTH_CFLAGS FLUIDSYNTH_LIBS QT5NETWORK_CFLAGS QT5NETWORK_LIBS' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures Qsynth 0.6.1 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/qsynth] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of Qsynth 0.6.1:";; esac cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-debug enable debugging (default=no) --enable-system-tray enable system tray (default=yes) --enable-fluid-channel-info enable FluidSynth channel info support (DEPRECATED) (default=no) --enable-fluid-midi-router enable FluidSynth MIDI router support (DEPRECATED) (default=no) --enable-fluid-server enable FluidSynth server (default=yes) --enable-xunique enable unique/single instance (default=yes) --enable-gradient enable gradient eye-candy (default=yes) --enable-stacktrace enable debugger stack-trace (default=no) Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-qt=PATH use alternate Qt install path --with-fluidsynth=PATH use alternate fluidsynth install path Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor CXX C++ compiler command CXXFLAGS C++ compiler flags CXXCPP C++ preprocessor PKG_CONFIG path to pkg-config utility PKG_CONFIG_PATH directories to add to pkg-config's search path PKG_CONFIG_LIBDIR path overriding pkg-config's built-in search path FLUIDSYNTH_CFLAGS C compiler flags for FLUIDSYNTH, overriding pkg-config FLUIDSYNTH_LIBS linker flags for FLUIDSYNTH, overriding pkg-config QT5NETWORK_CFLAGS C compiler flags for QT5NETWORK, overriding pkg-config QT5NETWORK_LIBS linker flags for QT5NETWORK, overriding pkg-config Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to . _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF Qsynth configure 0.6.1 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_c_try_cpp LINENO # ---------------------- # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_cpp # ac_fn_cxx_try_compile LINENO # ---------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_compile # ac_fn_cxx_try_cpp LINENO # ------------------------ # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_cpp # ac_fn_cxx_try_link LINENO # ------------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_link # ac_fn_cxx_try_run LINENO # ------------------------ # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes # that executables *can* be run. ac_fn_cxx_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : ac_retval=0 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_run # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES # --------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using # the include files in INCLUDES and setting the cache variable VAR # accordingly. ac_fn_cxx_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if eval \${$3+:} false; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ( $as_echo "## ------------------------------ ## ## Report this to rncbc@rncbc.org ## ## ------------------------------ ##" ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_cxx_check_header_mongrel # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES # --------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_cxx_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_cxx_check_header_compile # ac_fn_cxx_check_func LINENO FUNC VAR # ------------------------------------ # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_cxx_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main () { return $2 (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_cxx_check_func cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by Qsynth $as_me 0.6.1, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_config_headers="$ac_config_headers src/config.h" ac_config_files="$ac_config_files Makefile qsynth.spec src/src.pri" # Build version string. if ${ac_cv_build_version+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_build_version=$(git describe --tags --dirty --abbrev=6 2>/dev/null) if test -n "$ac_cv_build_version"; then ac_cv_build_version=$(echo $ac_cv_build_version | sed 's/^[^_]*[_v]//i') ac_cv_build_version=$(echo $ac_cv_build_version | sed 's/-g/git./') ac_cv_build_version=$(echo $ac_cv_build_version | sed 's/[_|-]\+/./g') ac_cv_build_version_extra=$(git rev-parse --abbrev-ref HEAD 2>/dev/null) if test "x$ac_cv_build_version_extra" != "xmaster"; then ac_cv_build_version="$ac_cv_build_version [$ac_cv_build_version_extra]" fi else ac_cv_build_version=$PACKAGE_VERSION fi fi ac_build_version="$ac_cv_build_version" cat >>confdefs.h <<_ACEOF #define CONFIG_BUILD_VERSION "$ac_build_version" _ACEOF # Sanitized version string. if ${ac_cv_version+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_version=$(echo $PACKAGE_VERSION | sed -r 's/^([0-9|\.]+).*$/\1/') fi ac_version="$ac_cv_version" cat >>confdefs.h <<_ACEOF #define CONFIG_VERSION "$ac_version" _ACEOF # Set default installation prefix. if test "x$prefix" = "xNONE"; then prefix=$ac_default_prefix fi if test "x$exec_prefix" = "xNONE"; then exec_prefix=$prefix fi eval ac_prefix=$prefix cat >>confdefs.h <<_ACEOF #define CONFIG_PREFIX "$ac_prefix" _ACEOF # Set default installation directories. eval ac_bindir=$bindir cat >>confdefs.h <<_ACEOF #define CONFIG_BINDIR "$ac_bindir" _ACEOF eval ac_libdir=$libdir cat >>confdefs.h <<_ACEOF #define CONFIG_LIBDIR "$ac_libdir" _ACEOF eval datarootdir=$datarootdir eval ac_datadir=$datadir cat >>confdefs.h <<_ACEOF #define CONFIG_DATADIR "$ac_datadir" _ACEOF eval ac_mandir=$mandir cat >>confdefs.h <<_ACEOF #define CONFIG_MANDIR "$ac_mandir" _ACEOF # Enable debugging argument option. # Check whether --enable-debug was given. if test "${enable_debug+set}" = set; then : enableval=$enable_debug; ac_debug="$enableval" fi if test "x$ac_debug" = "xyes"; then $as_echo "#define CONFIG_DEBUG 1" >>confdefs.h ac_stacktrace="yes" ac_debug="debug" else ac_stacktrace="no" ac_debug="release" fi # Enable system tray argument option. # Check whether --enable-system_tray was given. if test "${enable_system_tray+set}" = set; then : enableval=$enable_system_tray; ac_system_tray="$enableval" else ac_system_tray="yes" fi # Enable fluid_synth_get_channel_info function (DEPRECATED). # Check whether --enable-fluid_channel_info was given. if test "${enable_fluid_channel_info+set}" = set; then : enableval=$enable_fluid_channel_info; ac_fluid_channel_info="$enableval" else ac_fluid_channel_info="no" fi # Enable fluid_synth_set_midi_router function (DEPRECATED). # Check whether --enable-fluid_midi_router was given. if test "${enable_fluid_midi_router+set}" = set; then : enableval=$enable_fluid_midi_router; ac_fluid_midi_router="$enableval" else ac_fluid_midi_router="no" fi # Enable new_fluid_server function. # Check whether --enable-fluid_server was given. if test "${enable_fluid_server+set}" = set; then : enableval=$enable_fluid_server; ac_fluid_server="$enableval" else ac_fluid_server="yes" fi # Enable unique/single instance. # Check whether --enable-xunique was given. if test "${enable_xunique+set}" = set; then : enableval=$enable_xunique; ac_xunique="$enableval" else ac_xunique="yes" fi # Enable gradient eye-candy. # Check whether --enable-gradient was given. if test "${enable_gradient+set}" = set; then : enableval=$enable_gradient; ac_gradient="$enableval" else ac_gradient="yes" fi # Enable debugger stack-trace option (assumes --enable-debug). # Check whether --enable-stacktrace was given. if test "${enable_stacktrace+set}" = set; then : enableval=$enable_stacktrace; ac_stacktrace="$enableval" fi # Standard installation base dirs. ac_path=$PATH ac_pkg_config_path=$PKG_CONFIG_PATH ac_with_paths="" # Set for alternate Qt installation dir. # Check whether --with-qt was given. if test "${with_qt+set}" = set; then : withval=$with_qt; ac_qt_path="$withval" else ac_qt_path="no" fi if test "x$ac_qt_path" != "xno"; then ac_path="$ac_qt_path/bin:$ac_path" ac_pkg_config_path="$ac_qt_path/lib/pkgconfig:$ac_pkg_config_path" fi # Set for alternate fluidsynth installation dir. # Check whether --with-fluidsynth was given. if test "${with_fluidsynth+set}" = set; then : withval=$with_fluidsynth; ac_with_paths="$ac_with_paths $withval" fi # Honor user specified flags. ac_cflags=$CFLAGS ac_ldflags=$LDFLAGS # Checks for programs. ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 $as_echo_n "checking whether the C compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 $as_echo_n "checking for C compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 $as_echo "$CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CXX="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 $as_echo "$ac_ct_CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } if ${ac_cv_cxx_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GXX=yes else GXX= fi ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 $as_echo_n "checking whether $CXX accepts -g... " >&6; } if ${ac_cv_prog_cxx_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes else CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : else ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 $as_echo "$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } if test -z "$CXXCPP"; then if ${ac_cv_prog_CXXCPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CXXCPP needs to be expanded for CXXCPP in "$CXX -E" "/lib/cpp" do ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CXXCPP=$CXXCPP fi CXXCPP=$ac_cv_prog_CXXCPP else ac_cv_prog_CXXCPP=$CXXCPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 $as_echo "$CXXCPP" >&6; } ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Checks for languages. ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu # Check for pkg-config. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 $as_echo "$PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 $as_echo "$ac_pt_PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG fi else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.9.0 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } PKG_CONFIG="" fi fi # Check whether -std=c++11 support is necessary (4 < g++ version < 6). { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g++ major version" >&5 $as_echo_n "checking for g++ major version... " >&6; } if ${ac_cv_gxx_version_major+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_gxx_version_major=$($CC -dumpversion) if test -n "$ac_cv_gxx_version_major"; then ac_cv_gxx_version_major=$(echo $ac_cv_gxx_version_major | cut -d'.' -f1); fi ac_gxx_version_major=$(($ac_cv_gxx_version_major + 0)) fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gxx_version_major" >&5 $as_echo "$ac_cv_gxx_version_major" >&6; } ac_gxx_version_major=$ac_cv_gxx_version_major if test $ac_gxx_version_major -ge 4 -a $ac_gxx_version_major -lt 6; then CPPFLAGS="-std=c++11 $CPPFLAGS" ac_cflags="-std=c++11 $ac_cflags" fi # Check for proper flags. ac_arch=$(uname -m) # Check for install paths and alternatives... ac_libdirs="lib" if test "x$ac_arch" = "xx86_64"; then ac_libdirs="$ac_libdirs lib64" fi CFLAGS="-fPIC $CFLAGS" CPPFLAGS="-fPIC $CPPFLAGS" # Prepend alternate dependencies paths. for X in $ac_with_paths; do if test -d $X/bin; then ac_path="$X/bin:$ac_path" fi if test -d $X/include; then CFLAGS="-I$X/include $CFLAGS " CPPFLAGS="-I$X/include $CPPFLAGS" ac_incpath="$X/include $ac_incpath" fi for Y in $ac_libdirs; do if test -d $X/$Y; then LIBS="-L$X/$Y $LIBS" ac_libs="-L$X/$Y $ac_libs" if test -d $X/$Y/pkgconfig; then ac_pkg_config_path="$X/$Y/pkgconfig:$ac_pkg_config_path" fi fi done done # Set pkg-config path. if test -n "$ac_pkg_config_path"; then export PKG_CONFIG_PATH=$ac_pkg_config_path fi # A common error message: ac_errmsg="not found in current PATH. Maybe QT development environment isn't available." # Check for qtchooser availability. if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}qtchooser", so it can be a program name with args. set dummy ${ac_tool_prefix}qtchooser; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_qtchooser+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_qtchooser in [\\/]* | ?:[\\/]*) ac_cv_path_ac_qtchooser="$ac_qtchooser" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $ac_path do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_qtchooser="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_qtchooser=$ac_cv_path_ac_qtchooser if test -n "$ac_qtchooser"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_qtchooser" >&5 $as_echo "$ac_qtchooser" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_ac_qtchooser"; then ac_pt_ac_qtchooser=$ac_qtchooser # Extract the first word of "qtchooser", so it can be a program name with args. set dummy qtchooser; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_ac_qtchooser+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_ac_qtchooser in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_ac_qtchooser="$ac_pt_ac_qtchooser" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $ac_path do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_ac_qtchooser="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_ac_qtchooser=$ac_cv_path_ac_pt_ac_qtchooser if test -n "$ac_pt_ac_qtchooser"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_ac_qtchooser" >&5 $as_echo "$ac_pt_ac_qtchooser" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_ac_qtchooser" = x; then ac_qtchooser="no" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac ac_qtchooser=$ac_pt_ac_qtchooser fi else ac_qtchooser="$ac_cv_path_ac_qtchooser" fi if test -x $ac_qtchooser; then export QT_SELECT=5 fi # Check for proper qmake path/version alternatives. if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}qmake", so it can be a program name with args. set dummy ${ac_tool_prefix}qmake; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_qmake+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_qmake in [\\/]* | ?:[\\/]*) ac_cv_path_ac_qmake="$ac_qmake" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $ac_path do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_qmake="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_qmake=$ac_cv_path_ac_qmake if test -n "$ac_qmake"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_qmake" >&5 $as_echo "$ac_qmake" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_ac_qmake"; then ac_pt_ac_qmake=$ac_qmake # Extract the first word of "qmake", so it can be a program name with args. set dummy qmake; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_ac_qmake+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_ac_qmake in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_ac_qmake="$ac_pt_ac_qmake" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $ac_path do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_ac_qmake="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_ac_qmake=$ac_cv_path_ac_pt_ac_qmake if test -n "$ac_pt_ac_qmake"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_ac_qmake" >&5 $as_echo "$ac_pt_ac_qmake" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_ac_qmake" = x; then ac_qmake="no" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac ac_qmake=$ac_pt_ac_qmake fi else ac_qmake="$ac_cv_path_ac_qmake" fi if test "x$ac_qmake" = "xno"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}qmake-qt5", so it can be a program name with args. set dummy ${ac_tool_prefix}qmake-qt5; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_cv_qmake+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_cv_qmake in [\\/]* | ?:[\\/]*) ac_cv_path_ac_cv_qmake="$ac_cv_qmake" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $ac_path do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_cv_qmake="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_cv_qmake=$ac_cv_path_ac_cv_qmake if test -n "$ac_cv_qmake"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_qmake" >&5 $as_echo "$ac_cv_qmake" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_ac_cv_qmake"; then ac_pt_ac_cv_qmake=$ac_cv_qmake # Extract the first word of "qmake-qt5", so it can be a program name with args. set dummy qmake-qt5; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_ac_cv_qmake+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_ac_cv_qmake in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_ac_cv_qmake="$ac_pt_ac_cv_qmake" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $ac_path do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_ac_cv_qmake="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_ac_cv_qmake=$ac_cv_path_ac_pt_ac_cv_qmake if test -n "$ac_pt_ac_cv_qmake"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_ac_cv_qmake" >&5 $as_echo "$ac_pt_ac_cv_qmake" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_ac_cv_qmake" = x; then ac_cv_qmake="no" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac ac_cv_qmake=$ac_pt_ac_cv_qmake fi else ac_cv_qmake="$ac_cv_path_ac_cv_qmake" fi ac_qmake=$ac_cv_qmake fi # Check for proper Qt major version. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt major version" >&5 $as_echo_n "checking for Qt major version... " >&6; } if ${ac_cv_qt_version_major+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_qt_version_major=$($ac_qmake -query QT_VERSION | cut -d'.' -f1) ac_cv_qt_version_major=$(($ac_cv_qt_version_major + 0)) fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_qt_version_major" >&5 $as_echo "$ac_cv_qt_version_major" >&6; } ac_qt_version_major=$ac_cv_qt_version_major if test $ac_qt_version_major -ne 5; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}qmake-qt5", so it can be a program name with args. set dummy ${ac_tool_prefix}qmake-qt5; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_cv_qmake+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_cv_qmake in [\\/]* | ?:[\\/]*) ac_cv_path_ac_cv_qmake="$ac_cv_qmake" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $ac_path do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_cv_qmake="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_cv_qmake=$ac_cv_path_ac_cv_qmake if test -n "$ac_cv_qmake"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_qmake" >&5 $as_echo "$ac_cv_qmake" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_ac_cv_qmake"; then ac_pt_ac_cv_qmake=$ac_cv_qmake # Extract the first word of "qmake-qt5", so it can be a program name with args. set dummy qmake-qt5; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_ac_cv_qmake+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_ac_cv_qmake in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_ac_cv_qmake="$ac_pt_ac_cv_qmake" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $ac_path do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_ac_cv_qmake="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_ac_cv_qmake=$ac_cv_path_ac_pt_ac_cv_qmake if test -n "$ac_pt_ac_cv_qmake"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_ac_cv_qmake" >&5 $as_echo "$ac_pt_ac_cv_qmake" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_ac_cv_qmake" = x; then ac_cv_qmake="no" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac ac_cv_qmake=$ac_pt_ac_cv_qmake fi else ac_cv_qmake="$ac_cv_path_ac_cv_qmake" fi ac_qmake=$ac_cv_qmake fi if test "x$ac_qmake" = "xno"; then as_fn_error $? "qmake-qt5 $ac_errmsg (qt5-devel)" "$LINENO" 5 fi # Check for proper Qt install path. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt install path" >&5 $as_echo_n "checking for Qt install path... " >&6; } if ${ac_cv_qt_install_path+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_qt_install_path=$($ac_qmake -query QT_INSTALL_BINS) fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_qt_install_path" >&5 $as_echo "$ac_cv_qt_install_path" >&6; } ac_qt_install_path=$ac_cv_qt_install_path if test -d $ac_qt_install_path; then ac_path="$ac_qt_install_path:$ac_path" fi # Check it again, now with updated PATH, just in case... if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}qmake", so it can be a program name with args. set dummy ${ac_tool_prefix}qmake; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_cv_qmake+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_cv_qmake in [\\/]* | ?:[\\/]*) ac_cv_path_ac_cv_qmake="$ac_cv_qmake" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $ac_path do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_cv_qmake="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_cv_qmake=$ac_cv_path_ac_cv_qmake if test -n "$ac_cv_qmake"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_qmake" >&5 $as_echo "$ac_cv_qmake" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_ac_cv_qmake"; then ac_pt_ac_cv_qmake=$ac_cv_qmake # Extract the first word of "qmake", so it can be a program name with args. set dummy qmake; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_ac_cv_qmake+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_ac_cv_qmake in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_ac_cv_qmake="$ac_pt_ac_cv_qmake" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $ac_path do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_ac_cv_qmake="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_ac_cv_qmake=$ac_cv_path_ac_pt_ac_cv_qmake if test -n "$ac_pt_ac_cv_qmake"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_ac_cv_qmake" >&5 $as_echo "$ac_pt_ac_cv_qmake" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_ac_cv_qmake" = x; then ac_cv_qmake="no" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac ac_cv_qmake=$ac_pt_ac_cv_qmake fi else ac_cv_qmake="$ac_cv_path_ac_cv_qmake" fi ac_qmake=$ac_cv_qmake if test "x$ac_qmake" = "xno"; then as_fn_error $? "qmake $ac_errmsg" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt install headers" >&5 $as_echo_n "checking for Qt install headers... " >&6; } if ${ac_cv_qt_install_headers+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_qt_install_headers=$($ac_qmake -query QT_INSTALL_HEADERS) fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_qt_install_headers" >&5 $as_echo "$ac_cv_qt_install_headers" >&6; } ac_qt_install_headers=$ac_cv_qt_install_headers if test -d $ac_qt_install_headers; then CFLAGS="-I$ac_qt_install_headers $CFLAGS " CPPFLAGS="-I$ac_qt_install_headers $CPPFLAGS" ac_incpath="$ac_qt_install_headers $ac_incpath" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt install libraries" >&5 $as_echo_n "checking for Qt install libraries... " >&6; } if ${ac_cv_qt_install_libs+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_qt_install_libs=$($ac_qmake -query QT_INSTALL_LIBS) fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_qt_install_libs" >&5 $as_echo "$ac_cv_qt_install_libs" >&6; } ac_qt_install_libs=$ac_cv_qt_install_libs if test -d $ac_qt_install_libs; then LIBS="-L$ac_qt_install_libs $LIBS" ac_libs="-L$ac_qt_install_libs $ac_libs" fi # Finally, check for proper Qt version. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt library version >= 5.1" >&5 $as_echo_n "checking for Qt library version >= 5.1... " >&6; } if ${ac_cv_qtversion+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include "QtCore/qglobal.h" int main () { #if QT_VERSION < 0x050100 #error Qt library 5.1 or greater required. #endif ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_qtversion="yes" else echo "no; Qt 5.1 or greater is required" exit 1 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_qtversion" >&5 $as_echo "$ac_cv_qtversion" >&6; } # Check for Qt moc utility. if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}moc", so it can be a program name with args. set dummy ${ac_tool_prefix}moc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_moc+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_moc in [\\/]* | ?:[\\/]*) ac_cv_path_ac_moc="$ac_moc" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $ac_path do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_moc="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_moc=$ac_cv_path_ac_moc if test -n "$ac_moc"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_moc" >&5 $as_echo "$ac_moc" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_ac_moc"; then ac_pt_ac_moc=$ac_moc # Extract the first word of "moc", so it can be a program name with args. set dummy moc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_ac_moc+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_ac_moc in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_ac_moc="$ac_pt_ac_moc" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $ac_path do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_ac_moc="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_ac_moc=$ac_cv_path_ac_pt_ac_moc if test -n "$ac_pt_ac_moc"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_ac_moc" >&5 $as_echo "$ac_pt_ac_moc" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_ac_moc" = x; then ac_moc="no" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac ac_moc=$ac_pt_ac_moc fi else ac_moc="$ac_cv_path_ac_moc" fi if test "x$ac_moc" = "xno"; then as_fn_error $? "moc $ac_errmsg" "$LINENO" 5 fi # Check for Qt uic utility. if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}uic", so it can be a program name with args. set dummy ${ac_tool_prefix}uic; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_uic+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_uic in [\\/]* | ?:[\\/]*) ac_cv_path_ac_uic="$ac_uic" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $ac_path do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_uic="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_uic=$ac_cv_path_ac_uic if test -n "$ac_uic"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_uic" >&5 $as_echo "$ac_uic" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_ac_uic"; then ac_pt_ac_uic=$ac_uic # Extract the first word of "uic", so it can be a program name with args. set dummy uic; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_ac_uic+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_ac_uic in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_ac_uic="$ac_pt_ac_uic" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $ac_path do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_ac_uic="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_ac_uic=$ac_cv_path_ac_pt_ac_uic if test -n "$ac_pt_ac_uic"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_ac_uic" >&5 $as_echo "$ac_pt_ac_uic" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_ac_uic" = x; then ac_uic="no" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac ac_uic=$ac_pt_ac_uic fi else ac_uic="$ac_cv_path_ac_uic" fi if test "x$ac_uic" = "xno"; then as_fn_error $? "uic $ac_errmsg" "$LINENO" 5 fi # Check for Qt lupdate utility. if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}lupdate", so it can be a program name with args. set dummy ${ac_tool_prefix}lupdate; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_lupdate+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_lupdate in [\\/]* | ?:[\\/]*) ac_cv_path_ac_lupdate="$ac_lupdate" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $ac_path do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_lupdate="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_lupdate=$ac_cv_path_ac_lupdate if test -n "$ac_lupdate"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lupdate" >&5 $as_echo "$ac_lupdate" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_ac_lupdate"; then ac_pt_ac_lupdate=$ac_lupdate # Extract the first word of "lupdate", so it can be a program name with args. set dummy lupdate; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_ac_lupdate+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_ac_lupdate in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_ac_lupdate="$ac_pt_ac_lupdate" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $ac_path do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_ac_lupdate="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_ac_lupdate=$ac_cv_path_ac_pt_ac_lupdate if test -n "$ac_pt_ac_lupdate"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_ac_lupdate" >&5 $as_echo "$ac_pt_ac_lupdate" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_ac_lupdate" = x; then ac_lupdate="no" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac ac_lupdate=$ac_pt_ac_lupdate fi else ac_lupdate="$ac_cv_path_ac_lupdate" fi if test "x$ac_lupdate" = "xno"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}lupdate-qt5", so it can be a program name with args. set dummy ${ac_tool_prefix}lupdate-qt5; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_cv_lupdate+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_cv_lupdate in [\\/]* | ?:[\\/]*) ac_cv_path_ac_cv_lupdate="$ac_cv_lupdate" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $ac_path do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_cv_lupdate="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_cv_lupdate=$ac_cv_path_ac_cv_lupdate if test -n "$ac_cv_lupdate"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lupdate" >&5 $as_echo "$ac_cv_lupdate" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_ac_cv_lupdate"; then ac_pt_ac_cv_lupdate=$ac_cv_lupdate # Extract the first word of "lupdate-qt5", so it can be a program name with args. set dummy lupdate-qt5; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_ac_cv_lupdate+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_ac_cv_lupdate in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_ac_cv_lupdate="$ac_pt_ac_cv_lupdate" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $ac_path do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_ac_cv_lupdate="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_ac_cv_lupdate=$ac_cv_path_ac_pt_ac_cv_lupdate if test -n "$ac_pt_ac_cv_lupdate"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_ac_cv_lupdate" >&5 $as_echo "$ac_pt_ac_cv_lupdate" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_ac_cv_lupdate" = x; then ac_cv_lupdate="no" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac ac_cv_lupdate=$ac_pt_ac_cv_lupdate fi else ac_cv_lupdate="$ac_cv_path_ac_cv_lupdate" fi if test "x$ac_cv_lupdate" = "xno"; then as_fn_error $? "lupdate $ac_errmsg (qt5-linguist)" "$LINENO" 5 else ac_lupdate=$ac_cv_lupdate; fi fi # Check for Qt lrelease utility. if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}lrelease", so it can be a program name with args. set dummy ${ac_tool_prefix}lrelease; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_lrelease+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_lrelease in [\\/]* | ?:[\\/]*) ac_cv_path_ac_lrelease="$ac_lrelease" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $ac_path do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_lrelease="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_lrelease=$ac_cv_path_ac_lrelease if test -n "$ac_lrelease"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lrelease" >&5 $as_echo "$ac_lrelease" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_ac_lrelease"; then ac_pt_ac_lrelease=$ac_lrelease # Extract the first word of "lrelease", so it can be a program name with args. set dummy lrelease; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_ac_lrelease+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_ac_lrelease in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_ac_lrelease="$ac_pt_ac_lrelease" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $ac_path do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_ac_lrelease="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_ac_lrelease=$ac_cv_path_ac_pt_ac_lrelease if test -n "$ac_pt_ac_lrelease"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_ac_lrelease" >&5 $as_echo "$ac_pt_ac_lrelease" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_ac_lrelease" = x; then ac_lrelease="no" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac ac_lrelease=$ac_pt_ac_lrelease fi else ac_lrelease="$ac_cv_path_ac_lrelease" fi if test "x$ac_lrelease" = "xno"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}lrelease-qt5", so it can be a program name with args. set dummy ${ac_tool_prefix}lrelease-qt5; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_cv_lrelease+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_cv_lrelease in [\\/]* | ?:[\\/]*) ac_cv_path_ac_cv_lrelease="$ac_cv_lrelease" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $ac_path do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_cv_lrelease="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_cv_lrelease=$ac_cv_path_ac_cv_lrelease if test -n "$ac_cv_lrelease"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lrelease" >&5 $as_echo "$ac_cv_lrelease" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_ac_cv_lrelease"; then ac_pt_ac_cv_lrelease=$ac_cv_lrelease # Extract the first word of "lrelease-qt5", so it can be a program name with args. set dummy lrelease-qt5; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_ac_cv_lrelease+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_ac_cv_lrelease in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_ac_cv_lrelease="$ac_pt_ac_cv_lrelease" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $ac_path do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_ac_cv_lrelease="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_ac_cv_lrelease=$ac_cv_path_ac_pt_ac_cv_lrelease if test -n "$ac_pt_ac_cv_lrelease"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_ac_cv_lrelease" >&5 $as_echo "$ac_pt_ac_cv_lrelease" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_ac_cv_lrelease" = x; then ac_cv_lrelease="no" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac ac_cv_lrelease=$ac_pt_ac_cv_lrelease fi else ac_cv_lrelease="$ac_cv_path_ac_cv_lrelease" fi if test "x$ac_cv_lrelease" = "xno"; then as_fn_error $? "lrelease $ac_errmsg (qt5-linguist)" "$LINENO" 5 else ac_lrelease=$ac_cv_lrelease; fi fi # Checks for libraries. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5 $as_echo_n "checking for main in -lm... " >&6; } if ${ac_cv_lib_m_main+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { return main (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_m_main=yes else ac_cv_lib_m_main=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5 $as_echo "$ac_cv_lib_m_main" >&6; } if test "x$ac_cv_lib_m_main" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBM 1 _ACEOF LIBS="-lm $LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lX11" >&5 $as_echo_n "checking for main in -lX11... " >&6; } if ${ac_cv_lib_X11_main+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lX11 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { return main (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_X11_main=yes else ac_cv_lib_X11_main=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_main" >&5 $as_echo "$ac_cv_lib_X11_main" >&6; } if test "x$ac_cv_lib_X11_main" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBX11 1 _ACEOF LIBS="-lX11 $LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXext" >&5 $as_echo_n "checking for main in -lXext... " >&6; } if ${ac_cv_lib_Xext_main+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lXext $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { return main (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_Xext_main=yes else ac_cv_lib_Xext_main=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_main" >&5 $as_echo "$ac_cv_lib_Xext_main" >&6; } if test "x$ac_cv_lib_Xext_main" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBXEXT 1 _ACEOF LIBS="-lXext $LIBS" fi # Check for lroundf math function. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf in -lm" >&5 $as_echo_n "checking for lroundf in -lm... " >&6; } if ${ac_cv_lib_m_lroundf+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char lroundf (); int main () { return lroundf (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_m_lroundf=yes else ac_cv_lib_m_lroundf=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_lroundf" >&5 $as_echo "$ac_cv_lib_m_lroundf" >&6; } if test "x$ac_cv_lib_m_lroundf" = xyes; then : ac_round="yes" else ac_round="no" fi if test "x$ac_round" = "xyes"; then $as_echo "#define CONFIG_ROUND 1" >>confdefs.h fi # Check for fluidsynth library. pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLUIDSYNTH" >&5 $as_echo_n "checking for FLUIDSYNTH... " >&6; } if test -n "$FLUIDSYNTH_CFLAGS"; then pkg_cv_FLUIDSYNTH_CFLAGS="$FLUIDSYNTH_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fluidsynth >= 0.80.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "fluidsynth >= 0.80.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_FLUIDSYNTH_CFLAGS=`$PKG_CONFIG --cflags "fluidsynth >= 0.80.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$FLUIDSYNTH_LIBS"; then pkg_cv_FLUIDSYNTH_LIBS="$FLUIDSYNTH_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fluidsynth >= 0.80.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "fluidsynth >= 0.80.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_FLUIDSYNTH_LIBS=`$PKG_CONFIG --libs "fluidsynth >= 0.80.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then FLUIDSYNTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fluidsynth >= 0.80.0" 2>&1` else FLUIDSYNTH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fluidsynth >= 0.80.0" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$FLUIDSYNTH_PKG_ERRORS" >&5 ac_fluidsynth_lib="no" elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ac_fluidsynth_lib="no" else FLUIDSYNTH_CFLAGS=$pkg_cv_FLUIDSYNTH_CFLAGS FLUIDSYNTH_LIBS=$pkg_cv_FLUIDSYNTH_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ac_fluidsynth_lib="yes" fi if test "x$ac_fluidsynth_lib" = "xyes"; then $as_echo "#define CONFIG_FLUIDSYNTH 1" >>confdefs.h ac_cflags="$ac_cflags $FLUIDSYNTH_CFLAGS" ac_libs="$ac_libs $FLUIDSYNTH_LIBS" CFLAGS="$CFLAGS $FLUIDSYNTH_CFLAGS" CPPFLAGS="$CPPFLAGS $FLUIDSYNTH_CFLAGS" LIBS="$LIBS $FLUIDSYNTH_LIBS" else as_fn_error $? "*** FLUIDSYNTH library not found." "$LINENO" 5 fi # Checks for header files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_cxx_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } if ${ac_cv_header_sys_wait_h+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #ifndef WEXITSTATUS # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) #endif #ifndef WIFEXITED # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) #endif int main () { int s; wait (&s); s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_header_sys_wait_h=yes else ac_cv_header_sys_wait_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 $as_echo "$ac_cv_header_sys_wait_h" >&6; } if test $ac_cv_header_sys_wait_h = yes; then $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in fcntl.h sys/ioctl.h unistd.h signal.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done # Check for unique/single instance support. if test "x$ac_xunique" = "xyes"; then pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT5NETWORK" >&5 $as_echo_n "checking for QT5NETWORK... " >&6; } if test -n "$QT5NETWORK_CFLAGS"; then pkg_cv_QT5NETWORK_CFLAGS="$QT5NETWORK_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Network\""; } >&5 ($PKG_CONFIG --exists --print-errors "Qt5Network") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_QT5NETWORK_CFLAGS=`$PKG_CONFIG --cflags "Qt5Network" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$QT5NETWORK_LIBS"; then pkg_cv_QT5NETWORK_LIBS="$QT5NETWORK_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Network\""; } >&5 ($PKG_CONFIG --exists --print-errors "Qt5Network") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_QT5NETWORK_LIBS=`$PKG_CONFIG --libs "Qt5Network" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then QT5NETWORK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "Qt5Network" 2>&1` else QT5NETWORK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "Qt5Network" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$QT5NETWORK_PKG_ERRORS" >&5 ac_qt5network="no" elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ac_qt5network="no" else QT5NETWORK_CFLAGS=$pkg_cv_QT5NETWORK_CFLAGS QT5NETWORK_LIBS=$pkg_cv_QT5NETWORK_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ac_qt5network="yes" fi if test "x$ac_qt5network" = "xyes"; then $as_echo "#define CONFIG_XUNIQUE 1" >>confdefs.h ac_qnetwork="network" fi fi # Check for gradient eye-candy. if test "x$ac_gradient" = "xyes"; then $as_echo "#define CONFIG_GRADIENT 1" >>confdefs.h fi # Check for debugging stack-trace. if test "x$ac_stacktrace" = "xyes"; then $as_echo "#define CONFIG_STACKTRACE 1" >>confdefs.h fi # Checks for typedefs, structures, and compiler characteristics. # AC_C_CONST # Checks for library functions. for ac_func in system do : ac_fn_cxx_check_func "$LINENO" "system" "ac_cv_func_system" if test "x$ac_cv_func_system" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SYSTEM 1 _ACEOF fi done # Check for system-tray icon. if test "x$ac_system_tray" = "xyes"; then $as_echo "#define CONFIG_SYSTEM_TRAY 1" >>confdefs.h fi # Check for new_fluid_server function. if test "x$ac_fluid_server" = "xyes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new_fluid_server in -lfluidsynth" >&5 $as_echo_n "checking for new_fluid_server in -lfluidsynth... " >&6; } if ${ac_cv_lib_fluidsynth_new_fluid_server+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfluidsynth $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char new_fluid_server (); int main () { return new_fluid_server (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_fluidsynth_new_fluid_server=yes else ac_cv_lib_fluidsynth_new_fluid_server=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fluidsynth_new_fluid_server" >&5 $as_echo "$ac_cv_lib_fluidsynth_new_fluid_server" >&6; } if test "x$ac_cv_lib_fluidsynth_new_fluid_server" = xyes; then : ac_fluid_server="yes" else ac_fluid_server="no" fi if test "x$ac_fluid_server" = "xyes"; then $as_echo "#define CONFIG_FLUID_SERVER 1" >>confdefs.h fi fi # Check for fluid_synth_system_reset function. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fluid_synth_system_reset in -lfluidsynth" >&5 $as_echo_n "checking for fluid_synth_system_reset in -lfluidsynth... " >&6; } if ${ac_cv_lib_fluidsynth_fluid_synth_system_reset+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfluidsynth $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char fluid_synth_system_reset (); int main () { return fluid_synth_system_reset (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_fluidsynth_fluid_synth_system_reset=yes else ac_cv_lib_fluidsynth_fluid_synth_system_reset=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fluidsynth_fluid_synth_system_reset" >&5 $as_echo "$ac_cv_lib_fluidsynth_fluid_synth_system_reset" >&6; } if test "x$ac_cv_lib_fluidsynth_fluid_synth_system_reset" = xyes; then : ac_fluid_system_reset="yes" else ac_fluid_system_reset="no" fi if test "x$ac_fluid_system_reset" = "xyes"; then $as_echo "#define CONFIG_FLUID_SYSTEM_RESET 1" >>confdefs.h fi # Check for fluid_synth_set_bank_offset function. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fluid_synth_set_bank_offset in -lfluidsynth" >&5 $as_echo_n "checking for fluid_synth_set_bank_offset in -lfluidsynth... " >&6; } if ${ac_cv_lib_fluidsynth_fluid_synth_set_bank_offset+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfluidsynth $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char fluid_synth_set_bank_offset (); int main () { return fluid_synth_set_bank_offset (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_fluidsynth_fluid_synth_set_bank_offset=yes else ac_cv_lib_fluidsynth_fluid_synth_set_bank_offset=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fluidsynth_fluid_synth_set_bank_offset" >&5 $as_echo "$ac_cv_lib_fluidsynth_fluid_synth_set_bank_offset" >&6; } if test "x$ac_cv_lib_fluidsynth_fluid_synth_set_bank_offset" = xyes; then : ac_fluid_bank_offset="yes" else ac_fluid_bank_offset="no" fi if test "x$ac_fluid_bank_offset" = "xyes"; then $as_echo "#define CONFIG_FLUID_BANK_OFFSET 1" >>confdefs.h fi # Check for fluid_synth_get_channel_info function (DEPRECATED). if test "x$ac_fluid_channel_info" = "xyes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fluid_synth_get_channel_info in -lfluidsynth" >&5 $as_echo_n "checking for fluid_synth_get_channel_info in -lfluidsynth... " >&6; } if ${ac_cv_lib_fluidsynth_fluid_synth_get_channel_info+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfluidsynth $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char fluid_synth_get_channel_info (); int main () { return fluid_synth_get_channel_info (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_fluidsynth_fluid_synth_get_channel_info=yes else ac_cv_lib_fluidsynth_fluid_synth_get_channel_info=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fluidsynth_fluid_synth_get_channel_info" >&5 $as_echo "$ac_cv_lib_fluidsynth_fluid_synth_get_channel_info" >&6; } if test "x$ac_cv_lib_fluidsynth_fluid_synth_get_channel_info" = xyes; then : ac_fluid_channel_info="yes" else ac_fluid_channel_info="no" fi if test "x$ac_fluid_channel_info" = "xyes"; then $as_echo "#define CONFIG_FLUID_CHANNEL_INFO 1" >>confdefs.h fi fi # Check for fluid_synth_set_midi_router function (DEPRECATED). if test "x$ac_fluid_midi_router" = "xyes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fluid_synth_set_midi_router in -lfluidsynth" >&5 $as_echo_n "checking for fluid_synth_set_midi_router in -lfluidsynth... " >&6; } if ${ac_cv_lib_fluidsynth_fluid_synth_set_midi_router+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfluidsynth $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char fluid_synth_set_midi_router (); int main () { return fluid_synth_set_midi_router (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_fluidsynth_fluid_synth_set_midi_router=yes else ac_cv_lib_fluidsynth_fluid_synth_set_midi_router=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fluidsynth_fluid_synth_set_midi_router" >&5 $as_echo "$ac_cv_lib_fluidsynth_fluid_synth_set_midi_router" >&6; } if test "x$ac_cv_lib_fluidsynth_fluid_synth_set_midi_router" = xyes; then : ac_fluid_midi_router="yes" else ac_fluid_midi_router="no" fi if test "x$ac_fluid_midi_router" = "xyes"; then $as_echo "#define CONFIG_FLUID_MIDI_ROUTER 1" >>confdefs.h fi fi # Check for fluid_synth_unset_program function. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fluid_synth_unset_program in -lfluidsynth" >&5 $as_echo_n "checking for fluid_synth_unset_program in -lfluidsynth... " >&6; } if ${ac_cv_lib_fluidsynth_fluid_synth_unset_program+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfluidsynth $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char fluid_synth_unset_program (); int main () { return fluid_synth_unset_program (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_fluidsynth_fluid_synth_unset_program=yes else ac_cv_lib_fluidsynth_fluid_synth_unset_program=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fluidsynth_fluid_synth_unset_program" >&5 $as_echo "$ac_cv_lib_fluidsynth_fluid_synth_unset_program" >&6; } if test "x$ac_cv_lib_fluidsynth_fluid_synth_unset_program" = xyes; then : ac_fluid_unset_program="yes" else ac_fluid_unset_program="no" fi if test "x$ac_fluid_unset_program" = "xyes"; then $as_echo "#define CONFIG_FLUID_UNSET_PROGRAM 1" >>confdefs.h fi # Check for fluid_version_str function. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fluid_version_str in -lfluidsynth" >&5 $as_echo_n "checking for fluid_version_str in -lfluidsynth... " >&6; } if ${ac_cv_lib_fluidsynth_fluid_version_str+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfluidsynth $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char fluid_version_str (); int main () { return fluid_version_str (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_fluidsynth_fluid_version_str=yes else ac_cv_lib_fluidsynth_fluid_version_str=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fluidsynth_fluid_version_str" >&5 $as_echo "$ac_cv_lib_fluidsynth_fluid_version_str" >&6; } if test "x$ac_cv_lib_fluidsynth_fluid_version_str" = xyes; then : ac_fluid_version_str="yes" else ac_fluid_version_str="no" fi if test "x$ac_fluid_version_str" = "xyes"; then $as_echo "#define CONFIG_FLUID_VERSION_STR 1" >>confdefs.h fi # Check for fluid_settings_dupstr function. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fluid_settings_dupstr in -lfluidsynth" >&5 $as_echo_n "checking for fluid_settings_dupstr in -lfluidsynth... " >&6; } if ${ac_cv_lib_fluidsynth_fluid_settings_dupstr+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfluidsynth $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char fluid_settings_dupstr (); int main () { return fluid_settings_dupstr (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_fluidsynth_fluid_settings_dupstr=yes else ac_cv_lib_fluidsynth_fluid_settings_dupstr=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fluidsynth_fluid_settings_dupstr" >&5 $as_echo "$ac_cv_lib_fluidsynth_fluid_settings_dupstr" >&6; } if test "x$ac_cv_lib_fluidsynth_fluid_settings_dupstr" = xyes; then : ac_fluid_settings_dupstr="yes" else ac_fluid_settings_dupstr="no" fi if test "x$ac_fluid_settings_dupstr" = "xyes"; then $as_echo "#define CONFIG_FLUID_SETTINGS_DUPSTR 1" >>confdefs.h fi # Check for fluid_preset_get_banknum function. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fluid_preset_get_banknum in -lfluidsynth" >&5 $as_echo_n "checking for fluid_preset_get_banknum in -lfluidsynth... " >&6; } if ${ac_cv_lib_fluidsynth_fluid_preset_get_banknum+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfluidsynth $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char fluid_preset_get_banknum (); int main () { return fluid_preset_get_banknum (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_fluidsynth_fluid_preset_get_banknum=yes else ac_cv_lib_fluidsynth_fluid_preset_get_banknum=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fluidsynth_fluid_preset_get_banknum" >&5 $as_echo "$ac_cv_lib_fluidsynth_fluid_preset_get_banknum" >&6; } if test "x$ac_cv_lib_fluidsynth_fluid_preset_get_banknum" = xyes; then : ac_fluid_preset_get_banknum="yes" else ac_fluid_preet_get_banknum="no" fi if test "x$ac_fluid_preset_get_banknum" = "xyes"; then $as_echo "#define CONFIG_FLUID_PRESET_GET_BANKNUM 1" >>confdefs.h fi # Check for fluid_preset_get_num function. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fluid_preset_get_num in -lfluidsynth" >&5 $as_echo_n "checking for fluid_preset_get_num in -lfluidsynth... " >&6; } if ${ac_cv_lib_fluidsynth_fluid_preset_get_num+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfluidsynth $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char fluid_preset_get_num (); int main () { return fluid_preset_get_num (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_fluidsynth_fluid_preset_get_num=yes else ac_cv_lib_fluidsynth_fluid_preset_get_num=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fluidsynth_fluid_preset_get_num" >&5 $as_echo "$ac_cv_lib_fluidsynth_fluid_preset_get_num" >&6; } if test "x$ac_cv_lib_fluidsynth_fluid_preset_get_num" = xyes; then : ac_fluid_preset_get_num="yes" else ac_fluid_preet_get_num="no" fi if test "x$ac_fluid_preset_get_num" = "xyes"; then $as_echo "#define CONFIG_FLUID_PRESET_GET_NUM 1" >>confdefs.h fi # Check for fluid_preset_get_name function. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fluid_preset_get_name in -lfluidsynth" >&5 $as_echo_n "checking for fluid_preset_get_name in -lfluidsynth... " >&6; } if ${ac_cv_lib_fluidsynth_fluid_preset_get_name+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfluidsynth $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char fluid_preset_get_name (); int main () { return fluid_preset_get_name (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_fluidsynth_fluid_preset_get_name=yes else ac_cv_lib_fluidsynth_fluid_preset_get_name=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fluidsynth_fluid_preset_get_name" >&5 $as_echo "$ac_cv_lib_fluidsynth_fluid_preset_get_name" >&6; } if test "x$ac_cv_lib_fluidsynth_fluid_preset_get_name" = xyes; then : ac_fluid_preset_get_name="yes" else ac_fluid_preet_get_name="no" fi if test "x$ac_fluid_preset_get_name" = "xyes"; then $as_echo "#define CONFIG_FLUID_PRESET_GET_NAME 1" >>confdefs.h fi # Check for fluid_preset_get_sfont function. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fluid_preset_get_sfont in -lfluidsynth" >&5 $as_echo_n "checking for fluid_preset_get_sfont in -lfluidsynth... " >&6; } if ${ac_cv_lib_fluidsynth_fluid_preset_get_sfont+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfluidsynth $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char fluid_preset_get_sfont (); int main () { return fluid_preset_get_sfont (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_fluidsynth_fluid_preset_get_sfont=yes else ac_cv_lib_fluidsynth_fluid_preset_get_sfont=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fluidsynth_fluid_preset_get_sfont" >&5 $as_echo "$ac_cv_lib_fluidsynth_fluid_preset_get_sfont" >&6; } if test "x$ac_cv_lib_fluidsynth_fluid_preset_get_sfont" = xyes; then : ac_fluid_preset_get_sfont="yes" else ac_fluid_preet_get_sfont="no" fi if test "x$ac_fluid_preset_get_sfont" = "xyes"; then $as_echo "#define CONFIG_FLUID_PRESET_GET_SFONT 1" >>confdefs.h fi # Check for fluid_sfont_get_id function. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fluid_sfont_get_id in -lfluidsynth" >&5 $as_echo_n "checking for fluid_sfont_get_id in -lfluidsynth... " >&6; } if ${ac_cv_lib_fluidsynth_fluid_sfont_get_id+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfluidsynth $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char fluid_sfont_get_id (); int main () { return fluid_sfont_get_id (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_fluidsynth_fluid_sfont_get_id=yes else ac_cv_lib_fluidsynth_fluid_sfont_get_id=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fluidsynth_fluid_sfont_get_id" >&5 $as_echo "$ac_cv_lib_fluidsynth_fluid_sfont_get_id" >&6; } if test "x$ac_cv_lib_fluidsynth_fluid_sfont_get_id" = xyes; then : ac_fluid_sfont_get_id="yes" else ac_fluid_sfont_get_id="no" fi if test "x$ac_fluid_sfont_get_id" = "xyes"; then $as_echo "#define CONFIG_FLUID_SFONT_GET_ID 1" >>confdefs.h fi # Check for fluid_sfont_get_name function. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fluid_sfont_get_name in -lfluidsynth" >&5 $as_echo_n "checking for fluid_sfont_get_name in -lfluidsynth... " >&6; } if ${ac_cv_lib_fluidsynth_fluid_sfont_get_name+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfluidsynth $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char fluid_sfont_get_name (); int main () { return fluid_sfont_get_name (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_fluidsynth_fluid_sfont_get_name=yes else ac_cv_lib_fluidsynth_fluid_sfont_get_name=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fluidsynth_fluid_sfont_get_name" >&5 $as_echo "$ac_cv_lib_fluidsynth_fluid_sfont_get_name" >&6; } if test "x$ac_cv_lib_fluidsynth_fluid_sfont_get_name" = xyes; then : ac_fluid_sfont_get_name="yes" else ac_fluid_sfont_get_name="no" fi if test "x$ac_fluid_sfont_get_name" = "xyes"; then $as_echo "#define CONFIG_FLUID_SFONT_GET_NAME 1" >>confdefs.h fi # Check for fluid_sfont_iteration_start function. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fluid_sfont_iteration_start in -lfluidsynth" >&5 $as_echo_n "checking for fluid_sfont_iteration_start in -lfluidsynth... " >&6; } if ${ac_cv_lib_fluidsynth_fluid_sfont_iteration_start+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfluidsynth $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char fluid_sfont_iteration_start (); int main () { return fluid_sfont_iteration_start (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_fluidsynth_fluid_sfont_iteration_start=yes else ac_cv_lib_fluidsynth_fluid_sfont_iteration_start=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fluidsynth_fluid_sfont_iteration_start" >&5 $as_echo "$ac_cv_lib_fluidsynth_fluid_sfont_iteration_start" >&6; } if test "x$ac_cv_lib_fluidsynth_fluid_sfont_iteration_start" = xyes; then : ac_fluid_sfont_iteration_start="yes" else ac_fluid_sfont_iteration_start="no" fi if test "x$ac_fluid_sfont_iteration_start" = "xyes"; then $as_echo "#define CONFIG_FLUID_SFONT_ITERATION_START 1" >>confdefs.h fi # Check for fluid_sfont_iteration_next function. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fluid_sfont_iteration_next in -lfluidsynth" >&5 $as_echo_n "checking for fluid_sfont_iteration_next in -lfluidsynth... " >&6; } if ${ac_cv_lib_fluidsynth_fluid_sfont_iteration_next+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfluidsynth $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char fluid_sfont_iteration_next (); int main () { return fluid_sfont_iteration_next (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_fluidsynth_fluid_sfont_iteration_next=yes else ac_cv_lib_fluidsynth_fluid_sfont_iteration_next=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fluidsynth_fluid_sfont_iteration_next" >&5 $as_echo "$ac_cv_lib_fluidsynth_fluid_sfont_iteration_next" >&6; } if test "x$ac_cv_lib_fluidsynth_fluid_sfont_iteration_next" = xyes; then : ac_fluid_sfont_iteration_next="yes" else ac_fluid_sfont_iteration_next="no" fi if test "x$ac_fluid_sfont_iteration_next" = "xyes"; then $as_echo "#define CONFIG_FLUID_SFONT_ITERATION_NEXT 1" >>confdefs.h fi # Check for fluid_synth_get_chorus_speed function. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fluid_synth_get_chorus_speed in -lfluidsynth" >&5 $as_echo_n "checking for fluid_synth_get_chorus_speed in -lfluidsynth... " >&6; } if ${ac_cv_lib_fluidsynth_fluid_synth_get_chorus_speed+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfluidsynth $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char fluid_synth_get_chorus_speed (); int main () { return fluid_synth_get_chorus_speed (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_fluidsynth_fluid_synth_get_chorus_speed=yes else ac_cv_lib_fluidsynth_fluid_synth_get_chorus_speed=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fluidsynth_fluid_synth_get_chorus_speed" >&5 $as_echo "$ac_cv_lib_fluidsynth_fluid_synth_get_chorus_speed" >&6; } if test "x$ac_cv_lib_fluidsynth_fluid_synth_get_chorus_speed" = xyes; then : ac_fluid_synth_get_chorus_speed="yes" else ac_fluid_synth_get_chorus_speed="no" fi if test "x$ac_fluid_synth_get_chorus_speed" = "xyes"; then $as_echo "#define CONFIG_FLUID_SYNTH_GET_CHORUS_SPEED 1" >>confdefs.h fi # Check for fluid_synth_get_chorus_depth function. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fluid_synth_get_chorus_depth in -lfluidsynth" >&5 $as_echo_n "checking for fluid_synth_get_chorus_depth in -lfluidsynth... " >&6; } if ${ac_cv_lib_fluidsynth_fluid_synth_get_chorus_depth+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfluidsynth $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char fluid_synth_get_chorus_depth (); int main () { return fluid_synth_get_chorus_depth (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_fluidsynth_fluid_synth_get_chorus_depth=yes else ac_cv_lib_fluidsynth_fluid_synth_get_chorus_depth=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fluidsynth_fluid_synth_get_chorus_depth" >&5 $as_echo "$ac_cv_lib_fluidsynth_fluid_synth_get_chorus_depth" >&6; } if test "x$ac_cv_lib_fluidsynth_fluid_synth_get_chorus_depth" = xyes; then : ac_fluid_synth_get_chorus_depth="yes" else ac_fluid_synth_get_chorus_speed="no" fi if test "x$ac_fluid_synth_get_chorus_depth" = "xyes"; then $as_echo "#define CONFIG_FLUID_SYNTH_GET_CHORUS_DEPTH 1" >>confdefs.h fi # Check for FluidSynth API V2 (>= 2.0.0). { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FluidSynth API V2 (>= 2.0.0)" >&5 $as_echo_n "checking for FluidSynth API V2 (>= 2.0.0)... " >&6; } if ${ac_cv_fluidsynth2+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include "fluidsynth.h" int main () { #if FLUIDSYNTH_VERSION_MAJOR < 2 #error FluidSynth API V2 or greater is not available. #endif ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_fluidsynth2="yes" else ac_cv_fluidsynth2="no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fluidsynth2" >&5 $as_echo "$ac_cv_fluidsynth2" >&6; } if test "x$ac_cv_fluidsynth2" = "xyes"; then # Check for fluid_settings_getnum_default function. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fluid_settings_getnum_default in -lfluidsynth" >&5 $as_echo_n "checking for fluid_settings_getnum_default in -lfluidsynth... " >&6; } if ${ac_cv_lib_fluidsynth_fluid_settings_getnum_default+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfluidsynth $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char fluid_settings_getnum_default (); int main () { return fluid_settings_getnum_default (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_fluidsynth_fluid_settings_getnum_default=yes else ac_cv_lib_fluidsynth_fluid_settings_getnum_default=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fluidsynth_fluid_settings_getnum_default" >&5 $as_echo "$ac_cv_lib_fluidsynth_fluid_settings_getnum_default" >&6; } if test "x$ac_cv_lib_fluidsynth_fluid_settings_getnum_default" = xyes; then : ac_fluid_settings_getnum_default="yes" else ac_fluid_settings_getnum_default="no" fi if test "x$ac_fluid_settings_getnum_default" = "xyes"; then $as_echo "#define CONFIG_FLUID_SETTINGS_GETNUM_DEFAULT 1" >>confdefs.h fi # Check for fluid_settings_getint_default function. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fluid_settings_getint_default in -lfluidsynth" >&5 $as_echo_n "checking for fluid_settings_getint_default in -lfluidsynth... " >&6; } if ${ac_cv_lib_fluidsynth_fluid_settings_getint_default+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfluidsynth $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char fluid_settings_getint_default (); int main () { return fluid_settings_getint_default (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_fluidsynth_fluid_settings_getint_default=yes else ac_cv_lib_fluidsynth_fluid_settings_getint_default=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fluidsynth_fluid_settings_getint_default" >&5 $as_echo "$ac_cv_lib_fluidsynth_fluid_settings_getint_default" >&6; } if test "x$ac_cv_lib_fluidsynth_fluid_settings_getint_default" = xyes; then : ac_fluid_settings_getint_default="yes" else ac_fluid_settings_getint_default="no" fi if test "x$ac_fluid_settings_getint_default" = "xyes"; then $as_echo "#define CONFIG_FLUID_SETTINGS_GETINT_DEFAULT 1" >>confdefs.h fi # Check for fluid_settings_getstr_default function. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fluid_settings_getstr_default in -lfluidsynth" >&5 $as_echo_n "checking for fluid_settings_getstr_default in -lfluidsynth... " >&6; } if ${ac_cv_lib_fluidsynth_fluid_settings_getstr_default+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfluidsynth $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char fluid_settings_getstr_default (); int main () { return fluid_settings_getstr_default (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_fluidsynth_fluid_settings_getstr_default=yes else ac_cv_lib_fluidsynth_fluid_settings_getstr_default=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fluidsynth_fluid_settings_getstr_default" >&5 $as_echo "$ac_cv_lib_fluidsynth_fluid_settings_getstr_default" >&6; } if test "x$ac_cv_lib_fluidsynth_fluid_settings_getstr_default" = xyes; then : ac_fluid_settings_getstr_default="yes" else ac_fluid_settings_getstr_default="no" fi if test "x$ac_fluid_settings_getstr_default" = "xyes"; then $as_echo "#define CONFIG_FLUID_SETTINGS_GETSTR_DEFAULT 1" >>confdefs.h fi # Check for fluid_settings_foreach function. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fluid_settings_foreach in -lfluidsynth" >&5 $as_echo_n "checking for fluid_settings_foreach in -lfluidsynth... " >&6; } if ${ac_cv_lib_fluidsynth_fluid_settings_foreach+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfluidsynth $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char fluid_settings_foreach (); int main () { return fluid_settings_foreach (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_fluidsynth_fluid_settings_foreach=yes else ac_cv_lib_fluidsynth_fluid_settings_foreach=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fluidsynth_fluid_settings_foreach" >&5 $as_echo "$ac_cv_lib_fluidsynth_fluid_settings_foreach" >&6; } if test "x$ac_cv_lib_fluidsynth_fluid_settings_foreach" = xyes; then : ac_fluid_settings_foreach="yes" else ac_fluid_settings_foreach="no" fi if test "x$ac_fluid_settings_foreach" = "xyes"; then $as_echo "#define CONFIG_FLUID_SETTINGS_FOREACH 1" >>confdefs.h fi # Check for fluid_settings_foreach_option function. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fluid_settings_foreach_option in -lfluidsynth" >&5 $as_echo_n "checking for fluid_settings_foreach_option in -lfluidsynth... " >&6; } if ${ac_cv_lib_fluidsynth_fluid_settings_foreach_option+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfluidsynth $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char fluid_settings_foreach_option (); int main () { return fluid_settings_foreach_option (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_fluidsynth_fluid_settings_foreach_option=yes else ac_cv_lib_fluidsynth_fluid_settings_foreach_option=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fluidsynth_fluid_settings_foreach_option" >&5 $as_echo "$ac_cv_lib_fluidsynth_fluid_settings_foreach_option" >&6; } if test "x$ac_cv_lib_fluidsynth_fluid_settings_foreach_option" = xyes; then : ac_fluid_settings_foreach_option="yes" else ac_fluid_settings_foreach_option="no" fi if test "x$ac_fluid_settings_foreach_option" = "xyes"; then $as_echo "#define CONFIG_FLUID_SETTINGS_FOREACH_OPTION 1" >>confdefs.h fi # Check for new_fluid_server function. if test "x$ac_fluid_server" = "xyes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new_fluid_server in -lfluidsynth" >&5 $as_echo_n "checking for new_fluid_server in -lfluidsynth... " >&6; } if ${ac_cv_lib_fluidsynth_new_fluid_server+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfluidsynth $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char new_fluid_server (); int main () { return new_fluid_server (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_fluidsynth_new_fluid_server=yes else ac_cv_lib_fluidsynth_new_fluid_server=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fluidsynth_new_fluid_server" >&5 $as_echo "$ac_cv_lib_fluidsynth_new_fluid_server" >&6; } if test "x$ac_cv_lib_fluidsynth_new_fluid_server" = xyes; then : ac_new_fluid_server="yes" else ac_new_fluid_server="no" fi if test "x$ac_new_fluid_server" = "xyes"; then $as_echo "#define CONFIG_NEW_FLUID_SERVER 1" >>confdefs.h fi fi fi # Finally produce a configure header file and the makefiles. cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by Qsynth $as_me 0.6.1, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ Qsynth config.status 0.6.1 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "qsynth.spec") CONFIG_FILES="$CONFIG_FILES qsynth.spec" ;; "src/src.pri") CONFIG_FILES="$CONFIG_FILES src/src.pri" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_tt=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_tt"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi # make clean > /dev/null 2>&1 # Output summary message echo echo " $PACKAGE_NAME $ac_build_version" echo echo " Build target . . . . . . . . . . . . . . . . . . .: $ac_debug" echo echo " FluidSynth library support . . . . . . . . . . . .: $ac_fluidsynth_lib" echo " FluidSynth server support . . . . . . . . . . . .: $ac_fluid_server" echo " FluidSynth system reset support . . . . . . . . .: $ac_fluid_system_reset" echo " FluidSynth bank offset support . . . . . . . . . .: $ac_fluid_bank_offset" echo " FluidSynth channel info support (DEPRECATED) . . .: $ac_fluid_channel_info" echo " FluidSynth MIDI router support (DEPRECATED) . . .: $ac_fluid_midi_router" echo " FluidSynth unset program support . . . . . . . . .: $ac_fluid_unset_program" echo " FluidSynth version string support . . . . . . . .: $ac_fluid_version_str" echo echo " System tray icon support . . . . . . . . . . . . .: $ac_system_tray" echo echo " Unique/Single instance support . . . . . . . . . .: $ac_xunique" echo " Gradient eye-candy . . . . . . . . . . . . . . . .: $ac_gradient" echo " Debugger stack-trace (gdb) . . . . . . . . . . . .: $ac_stacktrace" echo echo " Install prefix . . . . . . . . . . . . . . . . . .: $ac_prefix" echo echo "Now type 'make', followed by 'make install' as root." echo qsynth-0.6.1/PaxHeaders.5367/configure.ac0000644000000000000000000000013213577702221015021 xustar0030 mtime=1577026705.840992838 30 atime=1577026705.840992838 30 ctime=1577026705.840992838 qsynth-0.6.1/configure.ac0000644000175000001440000005255313577702221015660 0ustar00rncbcusers00000000000000# Process this file with autoconf to produce a configure script. AC_INIT(Qsynth, 0.6.1, rncbc@rncbc.org, qsynth) AC_CONFIG_SRCDIR(src/qsynth.cpp) AC_CONFIG_HEADERS(src/config.h) AC_CONFIG_FILES(Makefile qsynth.spec src/src.pri) # Build version string. AC_CACHE_VAL([ac_cv_build_version], [ ac_cv_build_version=$(git describe --tags --dirty --abbrev=6 2>/dev/null) if test -n "$ac_cv_build_version"; then ac_cv_build_version=$(echo $ac_cv_build_version | sed 's/^[[^_]]*[[_v]]//i') ac_cv_build_version=$(echo $ac_cv_build_version | sed 's/-g/git./') ac_cv_build_version=$(echo $ac_cv_build_version | sed 's/[[_|-]]\+/./g') ac_cv_build_version_extra=$(git rev-parse --abbrev-ref HEAD 2>/dev/null) if test "x$ac_cv_build_version_extra" != "xmaster"; then ac_cv_build_version="$ac_cv_build_version [[$ac_cv_build_version_extra]]" fi else ac_cv_build_version=$PACKAGE_VERSION fi ]) ac_build_version="$ac_cv_build_version" AC_DEFINE_UNQUOTED(CONFIG_BUILD_VERSION, ["$ac_build_version"], [Build version string.]) # Sanitized version string. AC_CACHE_VAL([ac_cv_version], [ ac_cv_version=$(echo $PACKAGE_VERSION | sed -r 's/^([[0-9|\.]]+).*$/\1/') ]) ac_version="$ac_cv_version" AC_DEFINE_UNQUOTED(CONFIG_VERSION, ["$ac_version"], [Version string.]) AC_SUBST(ac_version) # Set default installation prefix. AC_PREFIX_DEFAULT(/usr/local) if test "x$prefix" = "xNONE"; then prefix=$ac_default_prefix fi if test "x$exec_prefix" = "xNONE"; then exec_prefix=$prefix fi eval ac_prefix=$prefix AC_SUBST(ac_prefix) AC_DEFINE_UNQUOTED(CONFIG_PREFIX, ["$ac_prefix"], [Default installation prefix.]) # Set default installation directories. eval ac_bindir=$bindir AC_SUBST(ac_bindir) AC_DEFINE_UNQUOTED(CONFIG_BINDIR, ["$ac_bindir"], [Default executable binary path.]) eval ac_libdir=$libdir AC_SUBST(ac_libdir) AC_DEFINE_UNQUOTED(CONFIG_LIBDIR, ["$ac_libdir"], [Default object library path.]) eval datarootdir=$datarootdir eval ac_datadir=$datadir AC_SUBST(ac_datadir) AC_DEFINE_UNQUOTED(CONFIG_DATADIR, ["$ac_datadir"], [Default arch-idependent data path.]) eval ac_mandir=$mandir AC_SUBST(ac_mandir) AC_DEFINE_UNQUOTED(CONFIG_MANDIR, ["$ac_mandir"], [Default man page path.]) # Enable debugging argument option. AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug], [enable debugging (default=no)]), [ac_debug="$enableval"]) if test "x$ac_debug" = "xyes"; then AC_DEFINE(CONFIG_DEBUG, 1, [Define if debugging is enabled.]) ac_stacktrace="yes" ac_debug="debug" else ac_stacktrace="no" ac_debug="release" fi AC_SUBST(ac_debug) # Enable system tray argument option. AC_ARG_ENABLE(system_tray, AS_HELP_STRING([--enable-system-tray], [enable system tray (default=yes)]), [ac_system_tray="$enableval"], [ac_system_tray="yes"]) # Enable fluid_synth_get_channel_info function (DEPRECATED). AC_ARG_ENABLE(fluid_channel_info, AS_HELP_STRING([--enable-fluid-channel-info], [enable FluidSynth channel info support (DEPRECATED) (default=no)]), [ac_fluid_channel_info="$enableval"], [ac_fluid_channel_info="no"]) # Enable fluid_synth_set_midi_router function (DEPRECATED). AC_ARG_ENABLE(fluid_midi_router, AS_HELP_STRING([--enable-fluid-midi-router], [enable FluidSynth MIDI router support (DEPRECATED) (default=no)]), [ac_fluid_midi_router="$enableval"], [ac_fluid_midi_router="no"]) # Enable new_fluid_server function. AC_ARG_ENABLE(fluid_server, AS_HELP_STRING([--enable-fluid-server], [enable FluidSynth server (default=yes)]), [ac_fluid_server="$enableval"], [ac_fluid_server="yes"]) # Enable unique/single instance. AC_ARG_ENABLE(xunique, AS_HELP_STRING([--enable-xunique], [enable unique/single instance (default=yes)]), [ac_xunique="$enableval"], [ac_xunique="yes"]) # Enable gradient eye-candy. AC_ARG_ENABLE(gradient, AS_HELP_STRING([--enable-gradient], [enable gradient eye-candy (default=yes)]), [ac_gradient="$enableval"], [ac_gradient="yes"]) # Enable debugger stack-trace option (assumes --enable-debug). AC_ARG_ENABLE(stacktrace, AS_HELP_STRING([--enable-stacktrace], [enable debugger stack-trace (default=no)]), [ac_stacktrace="$enableval"]) # Standard installation base dirs. ac_path=$PATH ac_pkg_config_path=$PKG_CONFIG_PATH ac_with_paths="" # Set for alternate Qt installation dir. AC_ARG_WITH(qt, AS_HELP_STRING([--with-qt=PATH], [use alternate Qt install path]), [ac_qt_path="$withval"], [ac_qt_path="no"]) if test "x$ac_qt_path" != "xno"; then ac_path="$ac_qt_path/bin:$ac_path" ac_pkg_config_path="$ac_qt_path/lib/pkgconfig:$ac_pkg_config_path" fi # Set for alternate fluidsynth installation dir. AC_ARG_WITH(fluidsynth, AS_HELP_STRING([--with-fluidsynth=PATH], [use alternate fluidsynth install path]), [ac_with_paths="$ac_with_paths $withval"]) # Honor user specified flags. ac_cflags=$CFLAGS ac_ldflags=$LDFLAGS # Checks for programs. AC_PROG_CPP AC_PROG_CXX AC_PROG_CXXCPP # Checks for languages. AC_LANG_CPLUSPLUS # Check for pkg-config. PKG_PROG_PKG_CONFIG # Check whether -std=c++11 support is necessary (4 < g++ version < 6). AC_CACHE_CHECK([for g++ major version], [ac_cv_gxx_version_major], [ ac_cv_gxx_version_major=$($CC -dumpversion) if test -n "$ac_cv_gxx_version_major"; then ac_cv_gxx_version_major=$(echo $ac_cv_gxx_version_major | cut -d'.' -f1); fi ac_gxx_version_major=$(($ac_cv_gxx_version_major + 0)) ]) ac_gxx_version_major=$ac_cv_gxx_version_major if test $ac_gxx_version_major -ge 4 -a $ac_gxx_version_major -lt 6; then CPPFLAGS="-std=c++11 $CPPFLAGS" ac_cflags="-std=c++11 $ac_cflags" fi # Check for proper flags. ac_arch=$(uname -m) # Check for install paths and alternatives... ac_libdirs="lib" if test "x$ac_arch" = "xx86_64"; then ac_libdirs="$ac_libdirs lib64" fi CFLAGS="-fPIC $CFLAGS" CPPFLAGS="-fPIC $CPPFLAGS" # Prepend alternate dependencies paths. for X in $ac_with_paths; do if test -d $X/bin; then ac_path="$X/bin:$ac_path" fi if test -d $X/include; then CFLAGS="-I$X/include $CFLAGS " CPPFLAGS="-I$X/include $CPPFLAGS" ac_incpath="$X/include $ac_incpath" fi for Y in $ac_libdirs; do if test -d $X/$Y; then LIBS="-L$X/$Y $LIBS" ac_libs="-L$X/$Y $ac_libs" if test -d $X/$Y/pkgconfig; then ac_pkg_config_path="$X/$Y/pkgconfig:$ac_pkg_config_path" fi fi done done # Set pkg-config path. if test -n "$ac_pkg_config_path"; then export PKG_CONFIG_PATH=$ac_pkg_config_path fi # A common error message: ac_errmsg="not found in current PATH. Maybe QT development environment isn't available." # Check for qtchooser availability. AC_PATH_TOOL(ac_qtchooser, qtchooser, [no], $ac_path) if test -x $ac_qtchooser; then export QT_SELECT=5 fi # Check for proper qmake path/version alternatives. AC_PATH_TOOL(ac_qmake, qmake, [no], $ac_path) if test "x$ac_qmake" = "xno"; then AC_PATH_TOOL(ac_cv_qmake, qmake-qt5, [no], $ac_path) ac_qmake=$ac_cv_qmake fi # Check for proper Qt major version. AC_CACHE_CHECK([for Qt major version], [ac_cv_qt_version_major], [ ac_cv_qt_version_major=$($ac_qmake -query QT_VERSION | cut -d'.' -f1) ac_cv_qt_version_major=$(($ac_cv_qt_version_major + 0)) ]) ac_qt_version_major=$ac_cv_qt_version_major if test $ac_qt_version_major -ne 5; then AC_PATH_TOOL(ac_cv_qmake, qmake-qt5, [no], $ac_path) ac_qmake=$ac_cv_qmake fi if test "x$ac_qmake" = "xno"; then AC_MSG_ERROR([qmake-qt5 $ac_errmsg (qt5-devel)]) fi # Check for proper Qt install path. AC_CACHE_CHECK([for Qt install path], [ac_cv_qt_install_path], [ ac_cv_qt_install_path=$($ac_qmake -query QT_INSTALL_BINS) ]) ac_qt_install_path=$ac_cv_qt_install_path if test -d $ac_qt_install_path; then ac_path="$ac_qt_install_path:$ac_path" fi # Check it again, now with updated PATH, just in case... AC_PATH_TOOL(ac_cv_qmake, qmake, [no], $ac_path) ac_qmake=$ac_cv_qmake if test "x$ac_qmake" = "xno"; then AC_MSG_ERROR([qmake $ac_errmsg]) fi AC_SUBST(ac_qmake) AC_CACHE_CHECK([for Qt install headers], [ac_cv_qt_install_headers], [ ac_cv_qt_install_headers=$($ac_qmake -query QT_INSTALL_HEADERS) ]) ac_qt_install_headers=$ac_cv_qt_install_headers if test -d $ac_qt_install_headers; then CFLAGS="-I$ac_qt_install_headers $CFLAGS " CPPFLAGS="-I$ac_qt_install_headers $CPPFLAGS" ac_incpath="$ac_qt_install_headers $ac_incpath" fi AC_CACHE_CHECK([for Qt install libraries], [ac_cv_qt_install_libs], [ ac_cv_qt_install_libs=$($ac_qmake -query QT_INSTALL_LIBS) ]) ac_qt_install_libs=$ac_cv_qt_install_libs if test -d $ac_qt_install_libs; then LIBS="-L$ac_qt_install_libs $LIBS" ac_libs="-L$ac_qt_install_libs $ac_libs" fi # Finally, check for proper Qt version. AC_CACHE_CHECK([for Qt library version >= 5.1], ac_cv_qtversion, [ AC_TRY_COMPILE([#include "QtCore/qglobal.h"], [ #if QT_VERSION < 0x050100 #error Qt library 5.1 or greater required. #endif ], ac_cv_qtversion="yes", [ echo "no; Qt 5.1 or greater is required" exit 1 ]) ]) # Check for Qt moc utility. AC_PATH_TOOL(ac_moc, moc, [no], $ac_path) if test "x$ac_moc" = "xno"; then AC_MSG_ERROR([moc $ac_errmsg]) fi AC_SUBST(ac_moc) # Check for Qt uic utility. AC_PATH_TOOL(ac_uic, uic, [no], $ac_path) if test "x$ac_uic" = "xno"; then AC_MSG_ERROR([uic $ac_errmsg]) fi AC_SUBST(ac_uic) # Check for Qt lupdate utility. AC_PATH_TOOL(ac_lupdate, lupdate, [no], $ac_path) if test "x$ac_lupdate" = "xno"; then AC_PATH_TOOL(ac_cv_lupdate, lupdate-qt5, [no], $ac_path) if test "x$ac_cv_lupdate" = "xno"; then AC_MSG_ERROR([lupdate $ac_errmsg (qt5-linguist)]) else ac_lupdate=$ac_cv_lupdate; fi fi AC_SUBST(ac_lupdate) # Check for Qt lrelease utility. AC_PATH_TOOL(ac_lrelease, lrelease, [no], $ac_path) if test "x$ac_lrelease" = "xno"; then AC_PATH_TOOL(ac_cv_lrelease, lrelease-qt5, [no], $ac_path) if test "x$ac_cv_lrelease" = "xno"; then AC_MSG_ERROR([lrelease $ac_errmsg (qt5-linguist)]) else ac_lrelease=$ac_cv_lrelease; fi fi AC_SUBST(ac_lrelease) # Checks for libraries. AC_CHECK_LIB(m, main) AC_CHECK_LIB(X11, main) AC_CHECK_LIB(Xext, main) # Check for lroundf math function. AC_CHECK_LIB(m, lroundf, [ac_round="yes"], [ac_round="no"]) if test "x$ac_round" = "xyes"; then AC_DEFINE(CONFIG_ROUND, 1, [Define if lroundf is available.]) fi # Check for fluidsynth library. PKG_CHECK_MODULES([FLUIDSYNTH], [fluidsynth >= 0.80.0], [ac_fluidsynth_lib="yes"], [ac_fluidsynth_lib="no"]) if test "x$ac_fluidsynth_lib" = "xyes"; then AC_DEFINE(CONFIG_FLUIDSYNTH, 1, [Define if FLUIDSYNTH library is available.]) ac_cflags="$ac_cflags $FLUIDSYNTH_CFLAGS" ac_libs="$ac_libs $FLUIDSYNTH_LIBS" CFLAGS="$CFLAGS $FLUIDSYNTH_CFLAGS" CPPFLAGS="$CPPFLAGS $FLUIDSYNTH_CFLAGS" LIBS="$LIBS $FLUIDSYNTH_LIBS" else AC_MSG_ERROR([*** FLUIDSYNTH library not found.]) fi # Checks for header files. AC_HEADER_STDC AC_HEADER_SYS_WAIT AC_CHECK_HEADERS(fcntl.h sys/ioctl.h unistd.h signal.h) # Check for unique/single instance support. if test "x$ac_xunique" = "xyes"; then PKG_CHECK_MODULES([QT5NETWORK], [Qt5Network], [ac_qt5network="yes"], [ac_qt5network="no"]) if test "x$ac_qt5network" = "xyes"; then AC_DEFINE(CONFIG_XUNIQUE, 1, [Define if unique/single instance is enabled.]) ac_qnetwork="network" fi fi AC_SUBST(ac_qnetwork) # Check for gradient eye-candy. if test "x$ac_gradient" = "xyes"; then AC_DEFINE(CONFIG_GRADIENT, 1, [Define if gradient eye-candy is enabled.]) fi # Check for debugging stack-trace. if test "x$ac_stacktrace" = "xyes"; then AC_DEFINE(CONFIG_STACKTRACE, 1, [Define if debugger stack-trace is enabled.]) fi AC_SUBST(ac_cflags) AC_SUBST(ac_incpath) AC_SUBST(ac_ldflags) AC_SUBST(ac_libs) # Checks for typedefs, structures, and compiler characteristics. # AC_C_CONST # Checks for library functions. AC_CHECK_FUNCS(system) # Check for system-tray icon. if test "x$ac_system_tray" = "xyes"; then AC_DEFINE(CONFIG_SYSTEM_TRAY, 1, [Define if system tray is enabled.]) fi # Check for new_fluid_server function. if test "x$ac_fluid_server" = "xyes"; then AC_CHECK_LIB(fluidsynth, new_fluid_server, [ac_fluid_server="yes"], [ac_fluid_server="no"]) if test "x$ac_fluid_server" = "xyes"; then AC_DEFINE(CONFIG_FLUID_SERVER, 1, [Define if FluidSynth server support is enabled]) fi fi # Check for fluid_synth_system_reset function. AC_CHECK_LIB(fluidsynth, fluid_synth_system_reset, [ac_fluid_system_reset="yes"], [ac_fluid_system_reset="no"]) if test "x$ac_fluid_system_reset" = "xyes"; then AC_DEFINE(CONFIG_FLUID_SYSTEM_RESET, 1, [Define if fluid_synth_system_reset is available.]) fi # Check for fluid_synth_set_bank_offset function. AC_CHECK_LIB(fluidsynth, fluid_synth_set_bank_offset, [ac_fluid_bank_offset="yes"], [ac_fluid_bank_offset="no"]) if test "x$ac_fluid_bank_offset" = "xyes"; then AC_DEFINE(CONFIG_FLUID_BANK_OFFSET, 1, [Define if fluid_synth_set_bank_offset is available.]) fi # Check for fluid_synth_get_channel_info function (DEPRECATED). if test "x$ac_fluid_channel_info" = "xyes"; then AC_CHECK_LIB(fluidsynth, fluid_synth_get_channel_info, [ac_fluid_channel_info="yes"], [ac_fluid_channel_info="no"]) if test "x$ac_fluid_channel_info" = "xyes"; then AC_DEFINE(CONFIG_FLUID_CHANNEL_INFO, 1, [Define if FluidSynth channel info support is enabled.]) fi fi # Check for fluid_synth_set_midi_router function (DEPRECATED). if test "x$ac_fluid_midi_router" = "xyes"; then AC_CHECK_LIB(fluidsynth, fluid_synth_set_midi_router, [ac_fluid_midi_router="yes"], [ac_fluid_midi_router="no"]) if test "x$ac_fluid_midi_router" = "xyes"; then AC_DEFINE(CONFIG_FLUID_MIDI_ROUTER, 1, [Define if FluidSynth MIDI router support is enabled.]) fi fi # Check for fluid_synth_unset_program function. AC_CHECK_LIB(fluidsynth, fluid_synth_unset_program, [ac_fluid_unset_program="yes"], [ac_fluid_unset_program="no"]) if test "x$ac_fluid_unset_program" = "xyes"; then AC_DEFINE(CONFIG_FLUID_UNSET_PROGRAM, 1, [Define if fluid_synth_unset_program is available.]) fi # Check for fluid_version_str function. AC_CHECK_LIB(fluidsynth, fluid_version_str, [ac_fluid_version_str="yes"], [ac_fluid_version_str="no"]) if test "x$ac_fluid_version_str" = "xyes"; then AC_DEFINE(CONFIG_FLUID_VERSION_STR, 1, [Define if fluid_version_str is available.]) fi # Check for fluid_settings_dupstr function. AC_CHECK_LIB(fluidsynth, fluid_settings_dupstr, [ac_fluid_settings_dupstr="yes"], [ac_fluid_settings_dupstr="no"]) if test "x$ac_fluid_settings_dupstr" = "xyes"; then AC_DEFINE(CONFIG_FLUID_SETTINGS_DUPSTR, 1, [Define if fluid_settings_dupstr is available.]) fi # Check for fluid_preset_get_banknum function. AC_CHECK_LIB(fluidsynth, fluid_preset_get_banknum, [ac_fluid_preset_get_banknum="yes"], [ac_fluid_preet_get_banknum="no"]) if test "x$ac_fluid_preset_get_banknum" = "xyes"; then AC_DEFINE(CONFIG_FLUID_PRESET_GET_BANKNUM, 1, [Define if fluid_preet_get_banknum is available.]) fi # Check for fluid_preset_get_num function. AC_CHECK_LIB(fluidsynth, fluid_preset_get_num, [ac_fluid_preset_get_num="yes"], [ac_fluid_preet_get_num="no"]) if test "x$ac_fluid_preset_get_num" = "xyes"; then AC_DEFINE(CONFIG_FLUID_PRESET_GET_NUM, 1, [Define if fluid_preet_get_num is available.]) fi # Check for fluid_preset_get_name function. AC_CHECK_LIB(fluidsynth, fluid_preset_get_name, [ac_fluid_preset_get_name="yes"], [ac_fluid_preet_get_name="no"]) if test "x$ac_fluid_preset_get_name" = "xyes"; then AC_DEFINE(CONFIG_FLUID_PRESET_GET_NAME, 1, [Define if fluid_preet_get_name is available.]) fi # Check for fluid_preset_get_sfont function. AC_CHECK_LIB(fluidsynth, fluid_preset_get_sfont, [ac_fluid_preset_get_sfont="yes"], [ac_fluid_preet_get_sfont="no"]) if test "x$ac_fluid_preset_get_sfont" = "xyes"; then AC_DEFINE(CONFIG_FLUID_PRESET_GET_SFONT, 1, [Define if fluid_preet_get_sfont is available.]) fi # Check for fluid_sfont_get_id function. AC_CHECK_LIB(fluidsynth, fluid_sfont_get_id, [ac_fluid_sfont_get_id="yes"], [ac_fluid_sfont_get_id="no"]) if test "x$ac_fluid_sfont_get_id" = "xyes"; then AC_DEFINE(CONFIG_FLUID_SFONT_GET_ID, 1, [Define if fluid_sfont_get_id is available.]) fi # Check for fluid_sfont_get_name function. AC_CHECK_LIB(fluidsynth, fluid_sfont_get_name, [ac_fluid_sfont_get_name="yes"], [ac_fluid_sfont_get_name="no"]) if test "x$ac_fluid_sfont_get_name" = "xyes"; then AC_DEFINE(CONFIG_FLUID_SFONT_GET_NAME, 1, [Define if fluid_sfont_get_name is available.]) fi # Check for fluid_sfont_iteration_start function. AC_CHECK_LIB(fluidsynth, fluid_sfont_iteration_start, [ac_fluid_sfont_iteration_start="yes"], [ac_fluid_sfont_iteration_start="no"]) if test "x$ac_fluid_sfont_iteration_start" = "xyes"; then AC_DEFINE(CONFIG_FLUID_SFONT_ITERATION_START, 1, [Define if fluid_sfont_iteration_start is available.]) fi # Check for fluid_sfont_iteration_next function. AC_CHECK_LIB(fluidsynth, fluid_sfont_iteration_next, [ac_fluid_sfont_iteration_next="yes"], [ac_fluid_sfont_iteration_next="no"]) if test "x$ac_fluid_sfont_iteration_next" = "xyes"; then AC_DEFINE(CONFIG_FLUID_SFONT_ITERATION_NEXT, 1, [Define if fluid_sfont_iteration_next is available.]) fi # Check for fluid_synth_get_chorus_speed function. AC_CHECK_LIB(fluidsynth, fluid_synth_get_chorus_speed, [ac_fluid_synth_get_chorus_speed="yes"], [ac_fluid_synth_get_chorus_speed="no"]) if test "x$ac_fluid_synth_get_chorus_speed" = "xyes"; then AC_DEFINE(CONFIG_FLUID_SYNTH_GET_CHORUS_SPEED, 1, [Define if fluid_synth_get_chorus_speed is available.]) fi # Check for fluid_synth_get_chorus_depth function. AC_CHECK_LIB(fluidsynth, fluid_synth_get_chorus_depth, [ac_fluid_synth_get_chorus_depth="yes"], [ac_fluid_synth_get_chorus_speed="no"]) if test "x$ac_fluid_synth_get_chorus_depth" = "xyes"; then AC_DEFINE(CONFIG_FLUID_SYNTH_GET_CHORUS_DEPTH, 1, [Define if fluid_synth_get_chorus_depth is available.]) fi # Check for FluidSynth API V2 (>= 2.0.0). AC_CACHE_CHECK([for FluidSynth API V2 (>= 2.0.0)], ac_cv_fluidsynth2, [ AC_TRY_COMPILE([#include "fluidsynth.h"], [ #if FLUIDSYNTH_VERSION_MAJOR < 2 #error FluidSynth API V2 or greater is not available. #endif ], ac_cv_fluidsynth2="yes", ac_cv_fluidsynth2="no") ]) if test "x$ac_cv_fluidsynth2" = "xyes"; then # Check for fluid_settings_getnum_default function. AC_CHECK_LIB(fluidsynth, fluid_settings_getnum_default, [ac_fluid_settings_getnum_default="yes"], [ac_fluid_settings_getnum_default="no"]) if test "x$ac_fluid_settings_getnum_default" = "xyes"; then AC_DEFINE(CONFIG_FLUID_SETTINGS_GETNUM_DEFAULT, 1, [Define if fluid_settings_getnum_default is available.]) fi # Check for fluid_settings_getint_default function. AC_CHECK_LIB(fluidsynth, fluid_settings_getint_default, [ac_fluid_settings_getint_default="yes"], [ac_fluid_settings_getint_default="no"]) if test "x$ac_fluid_settings_getint_default" = "xyes"; then AC_DEFINE(CONFIG_FLUID_SETTINGS_GETINT_DEFAULT, 1, [Define if fluid_settings_getint_default is available.]) fi # Check for fluid_settings_getstr_default function. AC_CHECK_LIB(fluidsynth, fluid_settings_getstr_default, [ac_fluid_settings_getstr_default="yes"], [ac_fluid_settings_getstr_default="no"]) if test "x$ac_fluid_settings_getstr_default" = "xyes"; then AC_DEFINE(CONFIG_FLUID_SETTINGS_GETSTR_DEFAULT, 1, [Define if fluid_settings_getstr_default is available.]) fi # Check for fluid_settings_foreach function. AC_CHECK_LIB(fluidsynth, fluid_settings_foreach, [ac_fluid_settings_foreach="yes"], [ac_fluid_settings_foreach="no"]) if test "x$ac_fluid_settings_foreach" = "xyes"; then AC_DEFINE(CONFIG_FLUID_SETTINGS_FOREACH, 1, [Define if fluid_settings_foreach is available.]) fi # Check for fluid_settings_foreach_option function. AC_CHECK_LIB(fluidsynth, fluid_settings_foreach_option, [ac_fluid_settings_foreach_option="yes"], [ac_fluid_settings_foreach_option="no"]) if test "x$ac_fluid_settings_foreach_option" = "xyes"; then AC_DEFINE(CONFIG_FLUID_SETTINGS_FOREACH_OPTION, 1, [Define if fluid_settings_foreach_option is available.]) fi # Check for new_fluid_server function. if test "x$ac_fluid_server" = "xyes"; then AC_CHECK_LIB(fluidsynth, new_fluid_server, [ac_new_fluid_server="yes"], [ac_new_fluid_server="no"]) if test "x$ac_new_fluid_server" = "xyes"; then AC_DEFINE(CONFIG_NEW_FLUID_SERVER, 1, [Define if new_fluid_server is available.]) fi fi fi # Finally produce a configure header file and the makefiles. AC_OUTPUT # make clean > /dev/null 2>&1 # Output summary message echo echo " $PACKAGE_NAME $ac_build_version" echo echo " Build target . . . . . . . . . . . . . . . . . . .: $ac_debug" echo echo " FluidSynth library support . . . . . . . . . . . .: $ac_fluidsynth_lib" echo " FluidSynth server support . . . . . . . . . . . .: $ac_fluid_server" echo " FluidSynth system reset support . . . . . . . . .: $ac_fluid_system_reset" echo " FluidSynth bank offset support . . . . . . . . . .: $ac_fluid_bank_offset" echo " FluidSynth channel info support (DEPRECATED) . . .: $ac_fluid_channel_info" echo " FluidSynth MIDI router support (DEPRECATED) . . .: $ac_fluid_midi_router" echo " FluidSynth unset program support . . . . . . . . .: $ac_fluid_unset_program" echo " FluidSynth version string support . . . . . . . .: $ac_fluid_version_str" echo echo " System tray icon support . . . . . . . . . . . . .: $ac_system_tray" echo echo " Unique/Single instance support . . . . . . . . . .: $ac_xunique" echo " Gradient eye-candy . . . . . . . . . . . . . . . .: $ac_gradient" echo " Debugger stack-trace (gdb) . . . . . . . . . . . .: $ac_stacktrace" echo echo " Install prefix . . . . . . . . . . . . . . . . . .: $ac_prefix" echo echo "Now type 'make', followed by 'make install' as root." echo qsynth-0.6.1/PaxHeaders.5367/COPYING0000644000000000000000000000013213577702221013566 xustar0030 mtime=1577026705.840992838 30 atime=1577026705.840992838 30 ctime=1577026705.840992838 qsynth-0.6.1/COPYING0000644000175000001440000004310313577702221014414 0ustar00rncbcusers00000000000000 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 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. 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. 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. Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. qsynth-0.6.1/PaxHeaders.5367/INSTALL0000644000000000000000000000013213577702221013564 xustar0030 mtime=1577026705.840992838 30 atime=1577026705.840992838 30 ctime=1577026705.840992838 qsynth-0.6.1/INSTALL0000644000175000001440000003634013577702221014417 0ustar00rncbcusers00000000000000Installation Instructions ************************* Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without warranty of any kind. Basic Installation ================== Briefly, the shell commands `./configure; make; make install' should configure, build, and install this package. The following more-detailed instructions are generic; see the `README' file for instructions specific to this package. Some packages provide this `INSTALL' file but do not implement all of the features documented below. The lack of an optional feature in a given package is not necessarily a bug. More recommendations for GNU packages can be found in *note Makefile Conventions: (standards)Makefile Conventions. The `configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses those values to create a `Makefile' in each directory of the package. It may also create one or more `.h' files containing system-dependent definitions. Finally, it creates a shell script `config.status' that you can run in the future to recreate the current configuration, and a file `config.log' containing compiler output (useful mainly for debugging `configure'). It can also use an optional file (typically called `config.cache' and enabled with `--cache-file=config.cache' or simply `-C') that saves the results of its tests to speed up reconfiguring. Caching is disabled by default to prevent problems with accidental use of stale cache files. If you need to do unusual things to compile the package, please try to figure out how `configure' could check whether to do them, and mail diffs or instructions to the address given in the `README' so they can be considered for the next release. If you are using the cache, and at some point `config.cache' contains results you don't want to keep, you may remove or edit it. The file `configure.ac' (or `configure.in') is used to create `configure' by a program called `autoconf'. You need `configure.ac' if you want to change it or regenerate `configure' using a newer version of `autoconf'. The simplest way to compile this package is: 1. `cd' to the directory containing the package's source code and type `./configure' to configure the package for your system. Running `configure' might take a while. While running, it prints some messages telling which features it is checking for. 2. Type `make' to compile the package. 3. Optionally, type `make check' to run any self-tests that come with the package, generally using the just-built uninstalled binaries. 4. Type `make install' to install the programs and any data files and documentation. When installing into a prefix owned by root, it is recommended that the package be configured and built as a regular user, and only the `make install' phase executed with root privileges. 5. Optionally, type `make installcheck' to repeat any self-tests, but this time using the binaries in their final installed location. This target does not install anything. Running this target as a regular user, particularly if the prior `make install' required root privileges, verifies that the installation completed correctly. 6. You can remove the program binaries and object files from the source code directory by typing `make clean'. To also remove the files that `configure' created (so you can compile the package for a different kind of computer), type `make distclean'. There is also a `make maintainer-clean' target, but that is intended mainly for the package's developers. If you use it, you may have to get all sorts of other programs in order to regenerate files that came with the distribution. 7. Often, you can also type `make uninstall' to remove the installed files again. In practice, not all packages have tested that uninstallation works correctly, even though it is required by the GNU Coding Standards. 8. Some packages, particularly those that use Automake, provide `make distcheck', which can by used by developers to test that all other targets like `make install' and `make uninstall' work correctly. This target is generally not run by end users. Compilers and Options ===================== Some systems require unusual options for compilation or linking that the `configure' script does not know about. Run `./configure --help' for details on some of the pertinent environment variables. You can give `configure' initial values for configuration parameters by setting variables in the command line or in the environment. Here is an example: ./configure CC=c99 CFLAGS=-g LIBS=-lposix *Note Defining Variables::, for more details. Compiling For Multiple Architectures ==================================== You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their own directory. To do this, you can use GNU `make'. `cd' to the directory where you want the object files and executables to go and run the `configure' script. `configure' automatically checks for the source code in the directory that `configure' is in and in `..'. This is known as a "VPATH" build. With a non-GNU `make', it is safer to compile the package for one architecture at a time in the source code directory. After you have installed the package for one architecture, use `make distclean' before reconfiguring for another architecture. On MacOS X 10.5 and later systems, you can create libraries and executables that work on multiple system types--known as "fat" or "universal" binaries--by specifying multiple `-arch' options to the compiler but only a single `-arch' option to the preprocessor. Like this: ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ CPP="gcc -E" CXXCPP="g++ -E" This is not guaranteed to produce working output in all cases, you may have to build one architecture at a time and combine the results using the `lipo' tool if you have problems. Installation Names ================== By default, `make install' installs the package's commands under `/usr/local/bin', include files under `/usr/local/include', etc. You can specify an installation prefix other than `/usr/local' by giving `configure' the option `--prefix=PREFIX', where PREFIX must be an absolute file name. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you pass the option `--exec-prefix=PREFIX' to `configure', the package uses PREFIX as the prefix for installing programs and libraries. Documentation and other data files still use the regular prefix. In addition, if you use an unusual directory layout you can give options like `--bindir=DIR' to specify different values for particular kinds of files. Run `configure --help' for a list of the directories you can set and what kinds of files go in them. In general, the default for these options is expressed in terms of `${prefix}', so that specifying just `--prefix' will affect all of the other directory specifications that were not explicitly provided. The most portable way to affect installation locations is to pass the correct locations to `configure'; however, many packages provide one or both of the following shortcuts of passing variable assignments to the `make install' command line to change installation locations without having to reconfigure or recompile. The first method involves providing an override variable for each affected directory. For example, `make install prefix=/alternate/directory' will choose an alternate location for all directory configuration variables that were expressed in terms of `${prefix}'. Any directories that were specified during `configure', but not in terms of `${prefix}', must each be overridden at install time for the entire installation to be relocated. The approach of makefile variable overrides for each directory variable is required by the GNU Coding Standards, and ideally causes no recompilation. However, some platforms have known limitations with the semantics of shared libraries that end up requiring recompilation when using this method, particularly noticeable in packages that use GNU Libtool. The second method involves providing the `DESTDIR' variable. For example, `make install DESTDIR=/alternate/directory' will prepend `/alternate/directory' before all installation names. The approach of `DESTDIR' overrides is not required by the GNU Coding Standards, and does not work on platforms that have drive letters. On the other hand, it does better at avoiding recompilation issues, and works well even when some directory options were not specified in terms of `${prefix}' at `configure' time. Optional Features ================= If the package supports it, you can cause programs to be installed with an extra prefix or suffix on their names by giving `configure' the option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. Some packages pay attention to `--enable-FEATURE' options to `configure', where FEATURE indicates an optional part of the package. They may also pay attention to `--with-PACKAGE' options, where PACKAGE is something like `gnu-as' or `x' (for the X Window System). The `README' should mention any `--enable-' and `--with-' options that the package recognizes. For packages that use the X Window System, `configure' can usually find the X include and library files automatically, but if it doesn't, you can use the `configure' options `--x-includes=DIR' and `--x-libraries=DIR' to specify their locations. Some packages offer the ability to configure how verbose the execution of `make' will be. For these packages, running `./configure --enable-silent-rules' sets the default to minimal output, which can be overridden with `make V=1'; while running `./configure --disable-silent-rules' sets the default to verbose, which can be overridden with `make V=0'. Particular systems ================== On HP-UX, the default C compiler is not ANSI C compatible. If GNU CC is not installed, it is recommended to use the following options in order to use an ANSI C compiler: ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" and if that doesn't work, install pre-built binaries of GCC for HP-UX. On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot parse its `' header file. The option `-nodtk' can be used as a workaround. If GNU CC is not installed, it is therefore recommended to try ./configure CC="cc" and if that doesn't work, try ./configure CC="cc -nodtk" On Solaris, don't put `/usr/ucb' early in your `PATH'. This directory contains several dysfunctional programs; working variants of these programs are available in `/usr/bin'. So, if you need `/usr/ucb' in your `PATH', put it _after_ `/usr/bin'. On Haiku, software installed for all users goes in `/boot/common', not `/usr/local'. It is recommended to use the following options: ./configure --prefix=/boot/common Specifying the System Type ========================== There may be some features `configure' cannot figure out automatically, but needs to determine by the type of machine the package will run on. Usually, assuming the package is built to be run on the _same_ architectures, `configure' can figure that out, but if it prints a message saying it cannot guess the machine type, give it the `--build=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name which has the form: CPU-COMPANY-SYSTEM where SYSTEM can have one of these forms: OS KERNEL-OS See the file `config.sub' for the possible values of each field. If `config.sub' isn't included in this package, then this package doesn't need to know the machine type. If you are _building_ compiler tools for cross-compiling, you should use the option `--target=TYPE' to select the type of system they will produce code for. If you want to _use_ a cross compiler, that generates code for a platform different from the build platform, you should specify the "host" platform (i.e., that on which the generated programs will eventually be run) with `--host=TYPE'. Sharing Defaults ================ If you want to set default values for `configure' scripts to share, you can create a site shell script called `config.site' that gives default values for variables like `CC', `cache_file', and `prefix'. `configure' looks for `PREFIX/share/config.site' if it exists, then `PREFIX/etc/config.site' if it exists. Or, you can set the `CONFIG_SITE' environment variable to the location of the site script. A warning: not all `configure' scripts look for a site script. Defining Variables ================== Variables not defined in a site shell script can be set in the environment passed to `configure'. However, some packages may run configure again during the build, and the customized values of these variables may be lost. In order to avoid this problem, you should set them in the `configure' command line, using `VAR=value'. For example: ./configure CC=/usr/local2/bin/gcc causes the specified `gcc' to be used as the C compiler (unless it is overridden in the site shell script). Unfortunately, this technique does not work for `CONFIG_SHELL' due to an Autoconf bug. Until the bug is fixed you can use this workaround: CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash `configure' Invocation ====================== `configure' recognizes the following options to control how it operates. `--help' `-h' Print a summary of all of the options to `configure', and exit. `--help=short' `--help=recursive' Print a summary of the options unique to this package's `configure', and exit. The `short' variant lists options used only in the top level, while the `recursive' variant lists options also present in any nested packages. `--version' `-V' Print the version of Autoconf used to generate the `configure' script, and exit. `--cache-file=FILE' Enable the cache: use and save the results of the tests in FILE, traditionally `config.cache'. FILE defaults to `/dev/null' to disable caching. `--config-cache' `-C' Alias for `--cache-file=config.cache'. `--quiet' `--silent' `-q' Do not print messages saying which checks are being made. To suppress all normal output, redirect it to `/dev/null' (any error messages will still be shown). `--srcdir=DIR' Look for the package's source code in directory DIR. Usually `configure' can determine that directory automatically. `--prefix=DIR' Use DIR as the installation prefix. *note Installation Names:: for more details, including other options available for fine-tuning the installation locations. `--no-create' `-n' Run the configure checks, but stop before creating any output files. `configure' also accepts some other, not widely useful, options. Run `configure --help' for more details. qsynth-0.6.1/PaxHeaders.5367/Makefile.git0000644000000000000000000000013213577702221014755 xustar0030 mtime=1577026705.840992838 30 atime=1577026705.840992838 30 ctime=1577026705.840992838 qsynth-0.6.1/Makefile.git0000644000175000001440000000063613577702221015607 0ustar00rncbcusers00000000000000all: configure configure: Makefile.in configure.ac @aclocal @autoheader @autoconf @rm -rf *.cache clean: @if [ -f Makefile ]; then make clean; fi || true @rm -rvf Makefile configure config.* src/.ui src/.obj src/.moc @rm -rvf src/config.* src/*.pri @rm -rvf src/Makefile src/Makefile.* src/*.mak src/*.mak.* @rm -rvf *.cache *.log *.status *.spec *.mak *.m4 .m4 @rm -rvf .qmake.stash src/.qmake.stash qsynth-0.6.1/PaxHeaders.5367/Makefile.in0000644000000000000000000000013213577702221014600 xustar0030 mtime=1577026705.840992838 30 atime=1577026705.840992838 30 ctime=1577026705.840992838 qsynth-0.6.1/Makefile.in0000644000175000001440000000617213577702221015433 0ustar00rncbcusers00000000000000prefix = @ac_prefix@ name = qsynth target = src/$(name) headers = \ src/config.h \ src/qsynth.h \ src/qsynthAbout.h \ src/qsynthEngine.h \ src/qsynthChannels.h \ src/qsynthKnob.h \ src/qsynthMeter.h \ src/qsynthSetup.h \ src/qsynthOptions.h \ src/qsynthSystemTray.h \ src/qsynthTabBar.h \ src/qsynthAboutForm.h \ src/qsynthChannelsForm.h \ src/qsynthMainForm.h \ src/qsynthMessagesForm.h \ src/qsynthOptionsForm.h \ src/qsynthPaletteForm.h \ src/qsynthPresetForm.h \ src/qsynthSetupForm.h \ src/qsynthDialClassicStyle.h \ src/qsynthDialPeppinoStyle.h \ src/qsynthDialVokiStyle.h sources = \ src/qsynth.cpp \ src/qsynthEngine.cpp \ src/qsynthChannels.cpp \ src/qsynthKnob.cpp \ src/qsynthMeter.cpp \ src/qsynthSetup.cpp \ src/qsynthOptions.cpp \ src/qsynthSystemTray.cpp \ src/qsynthTabBar.cpp \ src/qsynthAboutForm.cpp \ src/qsynthChannelsForm.cpp \ src/qsynthMainForm.cpp \ src/qsynthMessagesForm.cpp \ src/qsynthOptionsForm.cpp \ src/qsynthPaletteForm.cpp \ src/qsynthPresetForm.cpp \ src/qsynthSetupForm.cpp \ src/qsynthDialClassicStyle.cpp \ src/qsynthDialPeppinoStyle.cpp \ src/qsynthDialVokiStyle.cpp forms = \ src/qsynthAboutForm.ui \ src/qsynthChannelsForm.ui \ src/qsynthMainForm.ui \ src/qsynthMessagesForm.ui \ src/qsynthOptionsForm.ui \ src/qsynthPaletteForm.ui \ src/qsynthPresetForm.ui \ src/qsynthSetupForm.ui translations_sources = \ src/translations/qsynth_cs.ts \ src/translations/qsynth_de.ts \ src/translations/qsynth_es.ts \ src/translations/qsynth_fr.ts \ src/translations/qsynth_ru.ts \ src/translations/qsynth_sr.ts translations_targets = \ src/translations/qsynth_cs.qm \ src/translations/qsynth_de.qm \ src/translations/qsynth_es.qm \ src/translations/qsynth_fr.qm \ src/translations/qsynth_ru.qm \ src/translations/qsynth_sr.qm export datadir = @ac_datadir@ export mandir = @ac_mandir@ translations_dir = $(datadir)/$(name)/translations export QMAKE = @ac_qmake@ export LUPDATE = @ac_lupdate@ export LRELEASE = @ac_lrelease@ all: $(target) $(target): $(name).mak $(resources) ${forms} $(sources) $(headers) @$(MAKE) -f $(name).mak $(name).mak: $(name).pro @$(QMAKE) -o $(name).mak $(name).pro translations_lupdate: $(translations_sources) @$(LUPDATE) -verbose -no-obsolete -recursive src -ts $(translations_sources) translations_lrelease: translations_lupdate $(translations_targets) %.qm: %.ts @$(LRELEASE) -verbose $< -qm $@ install: $(target) translations_lrelease $(name).1 @$(MAKE) INSTALL_ROOT=$(DESTDIR) -f $(name).mak install @install -d -v -m 0755 $(DESTDIR)$(translations_dir) @install -d -v -m 0755 $(DESTDIR)$(mandir)/man1 @install -v -m 0644 $(translations_targets) $(DESTDIR)$(translations_dir) @install -v -m 0644 $(name)*.1 $(DESTDIR)$(mandir)/man1 @gzip -vf $(DESTDIR)$(mandir)/man1/$(name)*.1 uninstall: $(DESTDIR)$(prefix)/bin/$(name) @$(MAKE) INSTALL_ROOT=$(DESTDIR) -f $(name).mak uninstall @rm -rvf $(DESTDIR)$(translations_dir) @rm -vf $(DESTDIR)$(mandir)/man1/$(name)*.1.gz clean: $(name).mak @$(MAKE) -f $(name).mak distclean || true @rm -f $(target) $(target).mak $(name).mak @rm -rf *.cache *.log *.status $(translations_targets) qsynth-0.6.1/PaxHeaders.5367/qsynth.10000644000000000000000000000013213577702221014143 xustar0030 mtime=1577026705.841992838 30 atime=1577026705.841992838 30 ctime=1577026705.841992838 qsynth-0.6.1/qsynth.10000644000175000001440000000517313577702221014776 0ustar00rncbcusers00000000000000.TH QSYNTH 1 "June 17, 2014" .SH NAME Qsynth \- A fluidsynth Qt GUI Interface .SH SYNOPSIS .B qsynth [\fIoptions\fR] [\fIsoundfonts\fR] [\fImidifiles\fR] .SH DESCRIPTION This manual page documents briefly the .B qsynth command. .PP \fBQsynth\fP is a fluidsynth GUI front-end application written in C++ around the Qt framework using Qt Designer. Eventually it may evolve into a softsynth management application allowing the user to control and manage a variety of command line softsynths but for the moment it wraps the excellent FluidSynth. .PP \fBFluidSynth\fP is a command line software synthesiser based on the Soundfont specification. .SH OPTIONS .HP \fB\-n\fR, \fB\-\-no\-midi\-in\fR .IP Don't create a midi driver to read MIDI input events [default = yes] .HP \fB\-m\fR, \fB\-\-midi\-driver\fR=[\fIlabel\fR] .IP The name of the midi driver to use [oss, alsa, alsa_seq, ...] .HP \fB\-K\fR, \fB\-\-midi\-channels\fR=[\fInum\fR] .IP The number of midi channels [default = 16] .HP \fB\-a\fR, \fB\-\-audio\-driver\fR=[\fIlabel\fR] .IP The audio driver [alsa,jack,oss,dsound,...] .HP \fB\-j\fR, \fB\-\-connect\-jack\-outputs\fR .IP Attempt to connect the jack outputs to the physical ports .HP \fB\-L\fR, \fB\-\-audio\-channels\fR=[\fInum\fR] .IP The number of stereo audio channels [default = 1] .HP \fB\-G\fR, \fB\-\-audio\-groups\fR=[\fInum\fR] .IP The number of audio groups [default = 1] .HP \fB\-z\fR, \fB\-\-audio\-bufsize\fR=[\fIsize\fR] .IP Size of each audio buffer .HP \fB\-c\fR, \fB\-\-audio\-bufcount\fR=[\fIcount\fR] .IP Number of audio buffers .HP \fB\-r\fR, \fB\-\-sample\-rate\fR=[\fIrate\fR] .IP Set the sample rate .HP \fB\-R\fR, \fB\-\-reverb\fR[=\fIflag\fR] .IP Turn the reverb on or off [1|0|yes|no|on|off, default = on] .HP \fB\-C\fR, \fB\-\-chorus\fR[=\fIflag\fR] .IP Turn the chorus on or off [1|0|yes|no|on|off, default = on] .HP \fB\-g\fR, \fB\-\-gain\fR=[\fIgain\fR] .IP Set the master gain [0 < gain < 10, default = 0.2] .HP \fB\-o\fR, \fB\-\-option\fR [\fIname\fR=\fIvalue\fR] .IP Define a setting name=value .HP \fB\-s\fR, \fB\-\-server\fR .IP Create and start server [default = no] .HP \fB\-i\fR, \fB\-\-no\-shell\fR .IP Don't read commands from the shell [ignored] .HP \fB\-d\fR, \fB\-\-dump\fR .IP Dump midi router events .HP \fB\-V\fR, \fB\-\-verbose\fR .IP Print out verbose messages about midi events .HP \fB\-h\fR, \fB\-\-help\fR .IP Show help about command line options .HP \fB\-v\fR, \fB\-\-version\fR .IP Show version information .SH FILES Configuration settings are stored in ~/.config/rncbc.org/Qsynth.conf .SH SEE ALSO .BR fluidsynth (1) .SH AUTHOR Qsynth is written by Rui Nuno Capela, Richard Bown, Chris Cannam, Pedro Lopez-Cabanillas. qsynth-0.6.1/PaxHeaders.5367/qsynth.fr.10000644000000000000000000000013213577702221014551 xustar0030 mtime=1577026705.841992838 30 atime=1577026705.841992838 30 ctime=1577026705.841992838 qsynth-0.6.1/qsynth.fr.10000644000175000001440000000623313577702221015402 0ustar00rncbcusers00000000000000.TH QSYNTH 1 "June 17, 2014" .SH NOM Qsynth \- une interface graphique en Qt pour fluidsynth .SH SYNOPSIS .B qsynth [\fIoptions\fR] [\fIbanque-de-son\fR] [\fIfichiers-midi\fR] .SH DESCRIPTION Cette page de manuel documente rapidement la commande .B qsynth . .PP \fBQsynth\fP est une interface graphique pour fluidsynth écrite en C++ autour des outils Qt, en utilisant Qt Designer. Il finira peut être par évoluer en une application de gestion de synthétiseur logiciel permettant à l'utilisateur de contrôler et de gérer une variété de synthétiseurs logiciels en ligne de commande mais, pour le moment, il emballe l'excellent FluidSynth. .PP \fBFluidSynth\fP est un synthétiseur logiciel en ligne de commande basé sur les spécifications Soundfont. .SH OPTIONS .HP \fB\-n\fR, \fB\-\-no\-midi\-in\fR .IP Ne pas créer de pilote MIDI pour lire les évènements d'entrée MIDI [par défaut = yes] .HP \fB\-m\fR, \fB\-\-midi\-driver\fR=[\fIétiquette\fR] .IP Le nom du pilote midi à utiliser [oss, alsa, alsa_seq, ...] .HP \fB\-K\fR, \fB\-\-midi\-channels\fR=[\fInombre\fR] .IP Le nombre de canaux MIDI [par défaut = 16] .HP \fB\-a\fR, \fB\-\-audio\-driver\fR=[\fIétiquette\fR] .IP Le pilote audio [alsa,jack,oss,dsound,...] .HP \fB\-j\fR, \fB\-\-connect\-jack\-outputs\fR .IP Tente de connecter les sorties JACK aux ports physiques .HP \fB\-L\fR, \fB\-\-audio\-channels\fR=[\fInombre\fR] .IP Le nombre de canaux audio stéréo [par défaut = 1] .HP \fB\-G\fR, \fB\-\-audio\-groups\fR=[\fInombre\fR] .IP Le nombre de groupes audio [par défaut = 1] .HP \fB\-z\fR, \fB\-\-audio\-bufsize\fR=[\fItaille\fR] .IP Taille de chaque tampon audio .HP \fB\-c\fR, \fB\-\-audio\-bufcount\fR=[\fInombre\fR] .IP Nombre de tampons audio .HP \fB\-r\fR, \fB\-\-sample\-rate\fR=[\fItaux\fR] .IP Paramètre le taux d'échantillonnage .HP \fB\-R\fR, \fB\-\-reverb\fR[=\fIdrapeau\fR] .IP Active ou désactive la réverbération [1|0|yes|no|on|off, par défaut = on] .HP \fB\-C\fR, \fB\-\-chorus\fR[=\fIétiquette\fR] .IP Active ou désactive le chorus [1|0|yes|no|on|off, par défaut = on] .HP \fB\-g\fR, \fB\-\-gain\fR=[\fIgain\fR] .IP Paramètre le gain général [0 < gain < 10, par défaut = 0.2] .HP \fB\-o\fR, \fB\-\-option\fR [\fInom\fR=\fIvaleur\fR] .IP Définit un paramètre nom=valeur .HP \fB\-s\fR, \fB\-\-server\fR .IP Crée et démarre un serveur [par défaut = no] .HP \fB\-i\fR, \fB\-\-no\-shell\fR .IP Ne pas lire les commandes depuis le shell [ignoré] .HP \fB\-d\fR, \fB\-\-dump\fR .IP Décharger les évènements de routage MIDI .HP \fB\-V\fR, \fB\-\-verbose\fR .IP Affiche des messages verbeux à propos des évènements MIDI .HP \fB\-h\fR, \fB\-\-help\fR .IP Affiche de l'aide à propos des options de ligne de commande .HP \fB\-v\fR, \fB\-\-version\fR .IP Affiche des informations de version .SH FICHIERS Les paramètres de configuration sont stockés dans ~/.config/rncbc.org/Qsynth.conf .SH VOIR ÉGALEMENT .BR fluidsynth (1) .SH AUTEUR Qsynth a été écrit par Rui Nuno Capela, Richard Bown, Chris Cannam, et Pedro Lopez-Cabanillas. .PP La version française de cette page de manuel a été traduite par Olivier Humbert , pour le projet LibraZiK (mais peut être utilisée par d'autres). qsynth-0.6.1/PaxHeaders.5367/qsynth.pro0000644000000000000000000000013213577702221014603 xustar0030 mtime=1577026705.841992838 30 atime=1577026705.841992838 30 ctime=1577026705.841992838 qsynth-0.6.1/qsynth.pro0000644000175000001440000000006013577702221015424 0ustar00rncbcusers00000000000000# qsynth.pro # TEMPLATE = subdirs SUBDIRS = src qsynth-0.6.1/PaxHeaders.5367/qsynth.spec.in0000644000000000000000000000013213577702221015342 xustar0030 mtime=1577026705.841992838 30 atime=1577026705.841992838 30 ctime=1577026705.841992838 qsynth-0.6.1/qsynth.spec.in0000644000175000001440000001242013577702221016166 0ustar00rncbcusers00000000000000# # spec file for package qsynth # # Copyright (C) 2003-2019, rncbc aka Rui Nuno Capela. All rights reserved. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define name @PACKAGE_TARNAME@ %define version @PACKAGE_VERSION@ %define release 40 %define _prefix @ac_prefix@ %if %{defined fedora} %define debug_package %{nil} %endif Summary: A fluidsynth Qt GUI Interface Name: %{name} Version: %{version} Release: %{release} License: GPL-2.0+ Group: Productivity/Multimedia/Sound/Midi Source0: %{name}-%{version}.tar.gz URL: http://qsynth.sourceforge.net/ #Packager: rncbc.org BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %if %{defined fedora} BuildRequires: pkgconfig BuildRequires: qt5-qtbase-devel >= 5.1, qt5-linguist BuildRequires: alsa-lib-devel %else BuildRequires: pkg-config BuildRequires: libqt5-qtbase-devel >= 5.1, libqt5-linguist BuildRequires: alsa-devel %endif BuildRequires: libfluidsynth-devel BuildRequires: libjack-devel %description Qsynth is a fluidsynth GUI front-end application, written in C++ around the Qt framework, using Qt Designer. Eventually it may evolve into a softsynth management application allowing the user to control and manage a variety of command line softsynths. %prep %setup [ -x ./autogen.sh ] && ./autogen.sh %build %configure %__make %{?_smp_mflags} %install %__make DESTDIR="%{buildroot}" install %clean [ -d "%{buildroot}" -a "%{buildroot}" != "/" ] && %__rm -rf "%{buildroot}" %files %defattr(-,root,root) %doc AUTHORS COPYING ChangeLog README TODO TRANSLATORS #dir %{_datadir}/applications %dir %{_datadir}/icons/hicolor %dir %{_datadir}/icons/hicolor/32x32 %dir %{_datadir}/icons/hicolor/32x32/apps %dir %{_datadir}/%{name} %dir %{_datadir}/%{name}/translations %dir %{_datadir}/metainfo #dir %{_datadir}/man #dir %{_datadir}/man/man1 %{_bindir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/32x32/apps/%{name}.png %{_datadir}/%{name}/translations/%{name}_*.qm %{_datadir}/metainfo/%{name}.appdata.xml %{_datadir}/man/man1/%{name}*.1.gz %changelog * Sun Dec 22 2019 Rui Nuno Capela 0.6.1 - Winter'19 release. * Thu Oct 17 2019 Rui Nuno Capela 0.6.0 - Autumn'19 release. * Fri Jul 12 2019 Rui Nuno Capela 0.5.7 - Summer'19 release. * Thu Apr 11 2019 Rui Nuno Capela 0.5.6 - Spring-Break'19 release. * Mon Mar 11 2019 Rui Nuno Capela 0.5.5 - Pre-LAC2019 release frenzy. * Wed Dec 05 2018 Rui Nuno Capela 0.5.4 - End of Autumn'18 Release. * Wed Oct 10 2018 Rui Nuno Capela 0.5.3 - Autumn'18 Release. * Sun Jul 22 2018 Rui Nuno Capela 0.5.2 - Summer'18 Release. * Mon May 21 2018 Rui Nuno Capela 0.5.1 - Pre-LAC2018 release frenzy. * Sat Dec 16 2017 Rui Nuno Capela 0.5.0 - End of Autumn'17 release. * Thu Apr 27 2017 Rui Nuno Capela 0.4.4 - Pre-LAC2017 release frenzy. * Mon Nov 14 2016 Rui Nuno Capela 0.4.3 - A Fall'16 release. * Wed Sep 14 2016 Rui Nuno Capela 0.4.2 - End of Summer'16 release. * Tue Apr 5 2016 Rui Nuno Capela 0.4.1 - Spring'16 release frenzy. * Mon Sep 7 2015 Rui Nuno Capela 0.4.0 - Summer'15 release frenzy. * Wed Mar 25 2015 Rui Nuno Capela 0.3.9 - Pre-LAC2015 release frenzy. * Tue Dec 31 2013 Rui Nuno Capela 0.3.8 - A fifth of a Jubilee release. * Tue Apr 16 2013 Rui Nuno Capela 0.3.7 - Spring cleaning sale. * Thu Apr 07 2011 Rui Nuno Capela 0.3.6 - Slip release. * Mon May 17 2010 Rui Nuno Capela - Standard desktop icon fixing. * Tue Apr 27 2010 Rui Nuno Capela 0.3.5 - Overdue release 0.3.5. * Sun May 10 2009 Rui Nuno Capela - New release 0.3.4. - Added russian translation. * Mon Jun 23 2008 Rui Nuno Capela - Added german and spanish translations. * Wed Dec 19 2007 Rui Nuno Capela - Minor stealth fixes and season greetings. * Mon Jul 16 2007 Rui Nuno Capela - Shallowed bug-fix release. * Tue Jul 03 2007 Rui Nuno Capela - Qt4 migration was complete. * Mon Jun 25 2007 Rui Nuno Capela - Application icon is now installed to (prefix)/share/pixmaps. - Declared fundamental build and run-time requirements. - Destination install directory prefix is now in spec. - Spec is now a bit more openSUSE compliant. * Thu Jun 01 2006 Rui Nuno Capela - Changed deprecated copyright attribute to license. * Sun Oct 2 2005 Rui Nuno Capela - Made public as for 0.2.4 release. * Wed Aug 24 2005 Rui Nuno Capela - Created initial qsynth.spec qsynth-0.6.1/PaxHeaders.5367/README0000644000000000000000000000013213577702221013413 xustar0030 mtime=1577026705.840992838 30 atime=1577026705.840992838 30 ctime=1577026705.840992838 qsynth-0.6.1/README0000644000175000001440000000654613577702221014253 0ustar00rncbcusers00000000000000qsynth - A fluidsynth Qt GUI Interface -------------------------------------- Qsynth is a fluidsynth GUI front-end application written in C++ around the Qt framework using Qt Designer. Eventually it may evolve into a softsynth management application allowing the user to control and manage a variety of command line softsynths but for the moment it wraps the excellent FluidSynth (http://www.fluidsynth.org). FluidSynth is a command line software synthesiser based on the Soundfont specification. Homepage: https://qsynth.sourceforge.io http://qsynth.sourceforge.net License: GNU General Public License (GPL) Requirements ------------ The software requirements for build and runtime are listed as follows: Mandatory: - Qt framework, C++ class library and tools for cross-platform application and UI development https://qt.io/ - fluidsynth, real-time software synthesizer based on the SoundFont 2 specifications http://www.fluidsynth.org/ Installation ------------ The installation procedure follows the standard for source distributions. Unpack the tarball and in the extracted source directory: ./configure [--prefix=/usr/local] make and optionally as root: make install This procedure will end installing the following files: ${prefix}/bin/qsynth ${prefix}/share/pixmaps/qsynth.png ${prefix}/share/applications/qsynth.desktop ${prefix}/share/locale/qsynth_*.qm Just launch ${prefix}/bin/qsynth and you're off (hopefully). Note that the default installation path ${prefix} is /usr/local. If you're checking out from Git, you'll have to prepare the configure script just before you proceed with the above instructions: ./autogen.sh Configuration ------------- Qsynth holds its settings and configuration state per user, in a file located as $HOME/.config/rncbc.org/Qsynth.conf . Normally, there's no need to edit this file, as it is recreated and rewritten everytime qsynth is run. Bugs ---- Plenty still although this is beta software ;) Support ------- Qsynth is open source free software. For bug reports, feature requests, discussion forums, mailling lists, or any other matter related to the development of this piece of software, please use the Sourceforge project page (https://sourceforge.net/projects/qsynth). Acknowledgements ---------------- Qsynth has been created by Rui Nuno Capela, Richard Bown and Chris Cannam to bring a simple but effective software synthesier front end to the Linux desktop. From an original idea by Richard Bown and Chris Cannam to create an open software synthesiser front end to use in conjunction with Rosegarden (https://www.sourceforge.net/projects/rosegarden) and other ALSA based software sequencers. Inspired by Rui's work on QjackCtl (https://qjackctl.sourceforge.io). Ebrahim Mayat also contributed with instructions to build Qsynth on Mac OSX (see README-OSX). This might be outdated now that Qsynth has migrated to Qt4, but nevertheless... Pedro Lopez-Cabanillas is currently the most prominent developer, having contributed with the awesome knob skins/styles option, the alternate cmake build system and the Windows(tm) installer bundle. Kudos to Pedro! Enjoy. rncbc aka Rui Nuno Capela bownie aka Richard Bown cannam aka Chris Cannam qsynth-0.6.1/PaxHeaders.5367/README.cmake0000644000000000000000000000013213577702221014472 xustar0030 mtime=1577026705.840992838 30 atime=1577026705.840992838 30 ctime=1577026705.840992838 qsynth-0.6.1/README.cmake0000644000175000001440000000544713577702221015331 0ustar00rncbcusers00000000000000What is CMake? ============== CMake is a cross platform build system, that can be used to replace the old auto-tools, providing a nice building environment and advanced features. Some of these features are: * Out of sources build: CMake allows you to build your software into a directory different to the source tree. You can safely delete the build directory and all its contents once you are done. * Multiple generators: classic makefiles can be generated for Unix and MinGW, but also Visual Studio, XCode and Eclipse CDT projects among other types. * Graphic front-ends for configuration and build options. More information and documentation is available at the CMake project site: http://www.cmake.org CMake is free software. You can get the sources and pre-compiled packages for Linux and other systems at: http://www.cmake.org/cmake/resources/software.html How to use it? ============== 1. You need CMake 3.1 or newer to build Qsynth 2. Unpack the Qsynth sources somewhere, or checkout the repository, and create a build directory. For instance, using a command line shell: $ tar -xvzf Downloads/qsynth-x.y.z.tar.gz $ cd qsynth-x.y.z $ mkdir build 2. Execute CMake from the build directory, providing the source directory location and optionally, the build options. There are several ways. * From a command line shell: $ pwd qsynth-x.y.z $ cd build $ cmake -DCMAKE_BUILD_TYPE=debug .. 3. Execute the build command. If you used the Makefiles generator (the default in Linux and other Unix systems) then execute make, gmake, or mingw32-make. If you generated a project file, use your IDE to build it. Compiling with make =================== There are many targets available. To see a complete list of them, type: $ make help The build process usually hides the compiler command lines, to show them: $ make VERBOSE=1 There is a "clean" target, but not a "distclean" one. You should use a build directory different to the source tree. In this case, the "distclean" target would be equivalent to simply removing the build directory. If something fails ================== If there is an error message while executing CMake, this probably means that a required package is missing in your system. You should install the missing component and run CMake again. If there is an error executing the build process, after running a flawless CMake configuration process, this means that there may be an error in the source code, or in the build system, or something incompatible in 3rd party libraries. The CMake build system for Qsynth is experimental. It will take a while until it becomes stable and fully tested. You can help providing feedback, please send a report containing your problems to the Qsynth development mailing list, https://lists.sourceforge.net/mailman/listinfo/qsynth-devel qsynth-0.6.1/PaxHeaders.5367/src0000644000000000000000000000013213577702245013253 xustar0030 mtime=1577026725.022991695 30 atime=1577026705.841992838 30 ctime=1577026725.022991695 qsynth-0.6.1/src/0000755000175000001440000000000013577702245014155 5ustar00rncbcusers00000000000000qsynth-0.6.1/src/PaxHeaders.5367/qsynth.qrc0000644000000000000000000000013213577702221015357 xustar0030 mtime=1577026705.842992838 30 atime=1577026705.842992838 30 ctime=1577026705.842992838 qsynth-0.6.1/src/qsynth.qrc0000644000175000001440000000170113577702221016203 0ustar00rncbcusers00000000000000 images/qsynth.png images/about1.png images/accept1.png images/add1.png images/channels1.png images/down1.png images/edit1.png images/ledoff1.png images/ledon1.png images/messages1.png images/open1.png images/options1.png images/panic1.png images/preset1.png images/quit1.png images/remove1.png images/reset1.png images/restart1.png images/save1.png images/setup1.png images/sfont1.png images/up1.png images/formOpen.png images/formRemove.png images/formSave.png images/itemReset.png images/qtlogo1.png qsynth-0.6.1/src/PaxHeaders.5367/images0000644000000000000000000000013213577702221014512 xustar0030 mtime=1577026705.842992838 30 atime=1577026705.841992838 30 ctime=1577026705.842992838 qsynth-0.6.1/src/images/0000755000175000001440000000000013577702221015414 5ustar00rncbcusers00000000000000qsynth-0.6.1/src/images/PaxHeaders.5367/remove1.png0000644000000000000000000000013213577702221016653 xustar0030 mtime=1577026705.842992838 30 atime=1577026705.842992838 30 ctime=1577026705.842992838 qsynth-0.6.1/src/images/remove1.png0000644000175000001440000000030513577702221017476 0ustar00rncbcusers00000000000000PNG  IHDRasRGBIDAT8˵S \jhA,`$P! B-LH0azOLD 9\JVx] N ,@dS8]x ijػ[i xY>Rh #IENDB`qsynth-0.6.1/src/images/PaxHeaders.5367/formOpen.png0000644000000000000000000000013213577702221017062 xustar0030 mtime=1577026705.841992838 30 atime=1577026705.841992838 30 ctime=1577026705.841992838 qsynth-0.6.1/src/images/formOpen.png0000644000175000001440000000105213577702221017705 0ustar00rncbcusers00000000000000PNG  IHDRasBIT|d pHYsu85tEXtSoftwarewww.inkscape.org<IDAT8?AGW# M!8V%} I!)m *hw,bac"ץHHsn&wy/!3B]Pǀ π@~_0 5IDATx͒MkQ{g26 jlJSB#tD(n+Kw A]P]ٸ&&I?&ׅTk=s}x:ȟJ2fP K[d(6j_777EZ->'XXGgVM8V҅;N޻_b[٩z9^fۨ+DQvC'֯WLw-疲 E$@s^f8[q;j|[ƶT>%5!' óCu $JZ~=4Tv( %.XFLbԇ/;HR.8HD@a'R]bWā|>}Zq@]j6f)O4.EK @ M)˙K9k 5"ZFxl6_8m; |[ R|\pMmLwh<,__\.OW@ ,a8Eݶ?[u*~^IENDB`qsynth-0.6.1/src/images/PaxHeaders.5367/messages1.png0000644000000000000000000000013213577702221017165 xustar0030 mtime=1577026705.841992838 30 atime=1577026705.841992838 30 ctime=1577026705.841992838 qsynth-0.6.1/src/images/messages1.png0000644000175000001440000000047013577702221020013 0ustar00rncbcusers00000000000000PNG  IHDRaIDATxc`hz?/Z>>zgD>?{u2Rt%ß2C@YăG2˷~xɛ/000%juͭl<`AMĸON{]&?Di, X`/,d??;/?rgs@ $T@*d``ULJS  ?^h`MwIENDB`qsynth-0.6.1/src/images/PaxHeaders.5367/qsynth.icns0000644000000000000000000000013213577702221016773 xustar0030 mtime=1577026705.841992838 30 atime=1577026705.841992838 30 ctime=1577026705.841992838 qsynth-0.6.1/src/images/qsynth.icns0000644000175000001440000007526513577702221017637 0ustar00rncbcusers00000000000000icnszit32:.:a=2[Nm `Epa F}. `W&ss"PQhρp ?S bt(4}Y ^70yb_I6|n#cY @<ggL W !m < Z g7z U f ހ>Oi"(q[`GGq-$n؁ ` ` P F {:#oځ g! ` YEE#o o, a ]G ߘN%rހy8 b dGT #q߀ނ> `g"A V m އ@Wh"1{T c~7E]lܘGSk%"u ܭPXw-%v ۷R T{-p صP Ju)e$ԩK6eW"Б<jѸR 0hJ·2Z#ϠB c#ϳL g#Q i#R  iрR hЀP g̀ɹO b#ƮJ\ǁáDS ¿;F01¿j q ¾T a ľGN71¼c e!žH P7,ý[ ]žA?"k) f#»H E$½p.g!þJ B$þg, ^#½D -u!UK+¾l5\C $h L6sۂU&5A{\/(Fa41 G~a6 Fvɀ]6 >jU0+1^K&"QkBAbR5 #"Km\?(IhZ?!$BX{oO< 3HUlzfOB.$6@GKKLLJIE>3"& :O(!Ge71Wv=9gwP,>uuf8,OussC8bsqq[4>rqo= 2RqonnoV1 :honmmnm< (GqnmllmoV1 8_pnmmlmnn>!AqomoZ47[qonnmnoB#@qqpna7 7[sqponnmnnK,#Arqponmi: 9]sr srqpommlmW3(Csrrst srqpnmllmC% :csrstu trpnmlkld8.Jtsstvw vusqomlkklR2;ksstvwxyyxvtrpmljjkkA%5Utstuwyz yxvsqnljijkc7#@rttuwy{|}|{ywtqoljiijlR1 9`ttuwy|}~~}{xuroljihiklB&/Juttvy{~}zvspmkihhike8 =ouuvx{~~{xtqnkihjlW3 8]wvvx{~}yvrnkihghhjlF+ ,Izxxz|~{wroljhgghijh;>r|{{}}xtpljhghik]4:_~~zupmjighjlM/-K{vqnkihgikk?$Aw}wrnkihghjkd7;bytokihhghhjlV2 ,N{upljihhghijmF)B|}vqmjihghiki; l{vspnlkjjiihjlh8(,T}xtqonlkjihikmY1G~zvrpomljjiihijlnF';k{xurpnmljjiihijlh8,"Q}zwtqpnlljihijmX0 DĀ¿{xvtqonljjiihilnC!1`ƀ}{xvspolkjjiihijmf4JȀ}zwuqomlkjiihjlnQ*$a~{xurpnligec`\YWTRTVZ]:M1~ywsqnlkhfda^[WTRQPQSVZ\/ GC|yurpmligeb_\YUSPOOPRVZS)7w3{wtqnljhfc`]ZWTQOMMORVZE!E#[}yvspnkigdb_[XUROMLLNRVZ7 C1|xuromjhfc`]YVSPMLKLNRWU*7v1}zwtqnkifda^[WTQNLKKLNSWE! S0}{xuromjgeb_\YUROMKJJLOTX3 =+~{xvspmkhec`]YVSPMLJMPUN& *_$~|yvspnkigc`^ZWTQNLJKNRV: @-~|yvtqnkigca^[XUROMKIIJLPTQ)-_ #~|ywtpnkhfca^[XURPMKIKNRV<?,~{ywtqnkhfca^[YVSPMKJIIJLPTP*+V)}{xvtqnkheb`^[XVSPNLJIHIKNRV7 :s!~|zwurqmkgeb_]ZXUSPNLJHJMPUI' F+~}{yxvtqoligda_\YWURPNLJIHHILOST//Y'}}{zyxvusqomkhec`][XVTQOMKJIHHIKNQU:  8k~}|{zyyxwvutsrpnlkhfda^\ZWUSPNMKJHIJMQTF' >v~|{yxwwvutsrrqpomlkihfca_]ZXUSQOMLJIHJMPSN+ #D{~|ywutsrqp'onnmmlkjihgfdb`_]ZXVTRPNLKIHHGGHJMPSR/))H{{yvsqponllkjjihhgfedba__]\ZXVTRPOMKJIHGHJMPST33,Jyxurpnlkihhfeedcba`^][[YXWVTSPOMLJIHGFFGHJLOST5 1,Iuvsomkigfdcba`_]\[YXWVUTSRQOMLKIHGGFFGHJLPST5 "+Eqspmjhedb`^]\[ZXWUTSRQQPNMLKJIGGF GHJMPSR3 '>iqnkheb`^\ZYWWUSRPPONNMLKJIHGF GIKNPSN/+7\olheb_\ZYWUTRQONNMLLKJJIHHGGFGGIKNQTF*0Iijgc`]ZWVTRQPNMLLKKJJIIH IJKMORR9& (7Vheb_\XWTSPONMLKKJIJ KLNORTE- ,ACCB@=:51-)&$$&+% !0889BFJLNNMJFB=72-)&$$%(,' !-879=AFJNPRRPMJE?:4/*&%$$&).!!$988DHNSVYZ[XUQKE?82,)&%$$%',* $ +879=AGMRWZ]_^]YUOHA:3.)'%%$$%).%&#778<@FKQW[_bcca]XRKD<5/*(&%$$%'+0  377;>CIOU[_cfgfea[UME>70+)'%&)-.( +879=AHMSZ_dhjkjhd^WOH?82,)(&&%%&'*.( $:88<@FLRX^chlnnmkf`YRIA93.*)''&(+0#!!7;:<@EKQW]chlpqrpmib[SJB:4.+*(('&')-1, /><=@DJPV\bhmqtvutpjd\TLC;4/,+)((''&&(+0. &?(ADIOU[agmrvzzyvrle]ULD<50-++))(''&')-2(/#964200//.-,+*)('(+0,;":EDEINSZ_ejouy~~uj_UKD?:74200//..-,+)(('&').4$),HEEGLRX_dkpuz}sh]SJE?;85310/..,+*)('&&(+13 * $BGEFKPV]dkqw||rf\PID?=963200/.-,+)('&&'*.4* 2HEFINT\cjqw}{peYPHC?=:74210..,+*)(&(,16 *&EFEGLRYaiqx~zocXMFB><:753210/.-,+)('&&'*.3.7!6FDFJOV^gow~ynbWMEB?<:865332110/.,+*('&(+05#8&GEEGLS\dmv~xmbVLEA><;997644321/.-,*)('&(,21 8HEFJPXais|*wk`ULFA?==<;;9864310.-,+)('&&%'*/5%: &IHFHMT\eoywk_ULE@>>=>?><:75210..,+*('&%',22D6KHHKPX`juwk`ULFA@??@@A><85310/--+*)'&%$$&)/6#&$GKIINS[eozwk`UMGC@ABB@=85310/.-,*)(&%$$%',3/&.LIIKOV_hs~wk`VNHC@A?<85210/.-,*)(&%$##&*05 (!>=;8632100..,+)(&%$#"#&*/0G,JHGINT\fp|xlaXPJEB@>=<;97531100/.,+*(&%$""#$',2 26HFFJOU^gr}wlaXPKFB@>=;:964210/.,+*(&%$"#%)/&3!>GDFJOV^hr~ſvkaYQKGC@>=;9864210 /.-+)(&%#"!#'-*3#CECEJOV_hr}ľujaXPKFCA>=;9864210/.-+)(&%#"!! !$+.3$GDBDINV^gq|~si_WPKFCA>=;9864210 /.-+)(&%#"! #)/$ICBDHNU]fozƀ½{pg^WOJFC@>=;9864210 /.-+)(&$#" "(03$HCBCHLT[dnwxne\UNIEB@>=;:964210 /.,+)(&$#! "'0I$GCBCGLRYbkt~~tkbZSMIDB@>=<;97531100/.,+)'&$"! !'/I#EDBBFJPW_gpyypg_XQLHDB@?>>=;8632100..,+)'%$"!"(.)#BCAADHNU[dku}}tkd[UOKFCA@?=;74210/.-,*('%#" "(,(!?DAACGLRX_gowwog_YRMIEB@A?<85210/.-+*(&$#!  #)*(9DAABEINT[bipxxpib[UOJFCA@ABB@=85310.--+)'&$"  $*''3EA@ACGKQV\bjpw||vpjb\WQLHEB@?@@A><85310/-,*)'%#! !%+#',FB@@BEHLRW]biotx||xtoib]WRMIFB@>=>?><:75210.-,*(&$"!"'- $FCA@@BEINSW\bgkosux&usokgb\WSNIFCA?>=<=<;;986421/.-+)'%#"  #(.G!@D@??@BFINRV[_cgjlmoomljgc_[VRNJGEA@>=<;;997644321/.,*(&%#! $*+6EA?>>@CFILQTX[^ace/ca^[XTQMIGDB@?==<;:865332110/-+)(%$" !&,%#+FB>=<>@CEHKNRUWY[\]]\[YWUROLHFDB@>=<;9753210/.,*)'%#!"'-"DC?< =?BDGILNPRTUTRPNLIGECA?>==<=<;964210.-+*'&$" #)-7D@<;:;<>@CDGIKLLN LLKIGEDB@?>==<;:863200/.,*('%#!$+&)E@=:;<=?ACDFGGHIIHGGFDCBA?>==<;;:975310/.-+)'%$"  &-  ?A=;9;;<>?@BBCDCCBAA?>==<;:9753200/..-,*(&$"!"().C>;98899;<=>>??@?>>=<;!:;::87543100/.-,*)'%#! $*  !??;87789:;<=<>=>==;::99:98653110.-,+)'&$" !&) .?<97789;<;:;<==>=;;987642100/ .,+)(&$"!$)   ;<86679;<<;:89:;=>?><976545310//. ,+*(&%#! "')(=96679<=<;986778:<>?><96421100/.-,+*(&%#"  %*3:6578;<;97654569;=>=;7420//..-, +**('%#" #(&!:7567964324468;852/-, ++*)(&%#" !&+ ):655665420//0 123577641.-+ **)('&$#"  %* 0853221/.--,-..0120/,+*)((&&$#!  $)% 5631/.,+*+,,-.-,++)(('&%$#!  $() !651.+*)(('()*)()('&%$#"!  $(*#73/+)'&'&'(('&$$#"  $(, #62-*(&%$%$%$%%&&'&%%$#"!  $(,#41-*'&$$#$#$##$%& %%$$#"! !$(, !31-*(&$#$#$%$##""! !%)+ 12.*'&%$# "!! "&** ,3.+)'%%$#"!! #&*& %21-+)('&&$##""!   !$(* ,31.,+)'&%#"!!   !"#%'*%!/520-+('%#"!  !"#%')+' !-520-*(%$#"!! ! "$&(+,& &-1/,*('&% &()+'!    %(*+, +*(%" t8mk@dd #&88RNqh۲D $u G5!pk/" @.?k:& pG0k<& OI0 l;% :H/ws;% .L0oԁ=& +V2 p@*0j6" yJ.=և;& `2 QE*ԃ8$ k_1 6D*Շ7# Xe0 'I* zے8$ Mq2 !S+v>& Jс4!  a. uG(Kّ7# !q0 vR*Lߝ<% !~2 v\, KB& Ӈ4! qd. BE'Պ5" eb. 1B'  ~ρ3! KV+ۘ9$ [i/ @& du2 "D) _y4  D* Pr3   ?( 1`2^׉<& G.&c6" DԀ?( ^H.tP5V:# \?& aB) cE+ eF, weF, idF+ XbD* Dߛ^A( .֋Z>& yV:"  |nP5YfJ05א_C* vW<&  ejN5  7֑bF.uX=&  RޤjN5  ́_D, _oT:%  "ΆdI1]rW>'  ɃeJ2 IڠpV>(  y{bH2 *͋jR:&  IןrZB-  i߰xbJ4" fP:& (ÅjT>+  0ƉmWB. 5ƋnYD1! 5ÉnYE2"  1޽lXE2# )vױ~jVC2# %[̞wfSA1"  #?غq`N>.!  -_ěwiYI9*  (:oĠ{l^OA2&  ".=kѺxj^RE8+!  &0;V}λpfZOD9.$  &.8BTp¾znf^UJ@6-$  #+3;DKRY^bdfffca]WRJB:2*"  %+27<@CFFGFEB?;60*$  !$'*+,-,+)&#     qsynth-0.6.1/src/images/PaxHeaders.5367/quit1.png0000644000000000000000000000013213577702221016340 xustar0030 mtime=1577026705.842992838 30 atime=1577026705.842992838 30 ctime=1577026705.842992838 qsynth-0.6.1/src/images/quit1.png0000644000175000001440000000033013577702221017161 0ustar00rncbcusers00000000000000PNG  IHDRasRGBIDAT8RA +|?3gM 3U77u-[@<0X}&+^G-ةTEȟAG[v ,29kw';saE浶Dn7b rs>'`65IENDB`qsynth-0.6.1/src/images/PaxHeaders.5367/ledoff1.png0000644000000000000000000000013213577702221016615 xustar0030 mtime=1577026705.841992838 30 atime=1577026705.841992838 30 ctime=1577026705.841992838 qsynth-0.6.1/src/images/ledoff1.png0000644000175000001440000000123113577702221017437 0ustar00rncbcusers00000000000000PNG  IHDRabKGD pHYs  tIME,Q &IDATx͒?oP{vҦBRT))  P &>#_ LlCi&n:NJ-3ޫ{~:ҽs6x0 !mם}|h4φc .DY'Pn.\u%S.:\e/z'~t4gVq8493݃c 핺}|: 4@Aq0 ,..=gEGA3XR(%0+>\\Uw۝|fqv.HsuC2+^m{ qM5oUHFIPTcja5=<ÚeU@ nݝ9jw㉯-=?`s3NyN&4 L5%wgC5r|M%`Xo,_4E &DUT73 owe?a%27Yf>\bĈgyV$&^>[\$1 T2r\E\q9k&=m B0?ot7vl>#ќ >kQxajuzd ǒQb2X{<Ӑ*Od&DUSl.rYMPiX2JS ϛwzM 2|KS?m`X~]}tjTUzxoX.; IENDB`qsynth-0.6.1/src/images/PaxHeaders.5367/formRemove.png0000644000000000000000000000013213577702221017416 xustar0030 mtime=1577026705.841992838 30 atime=1577026705.841992838 30 ctime=1577026705.841992838 qsynth-0.6.1/src/images/formRemove.png0000644000175000001440000000110113577702221020234 0ustar00rncbcusers00000000000000PNG  IHDRasBIT|d pHYsu85tEXtSoftwarewww.inkscape.org<IDAT8ŐMkQLrcL246%tJI]TJ)])] bE\ B\ EJJ I|ndwq_898m IoC,ʝ_sڶ7<:{PԲyOM8{?Ra4*{ssi U.@~6,iB䵮*QZ.oJIM)k|2 yz0@dԨD2`rR 5INЬ]f3vNS)\HZDFI>z[7Mi}me!RT3|uqfg(\;Rf"Ppo--U6Af{uM,[͚@£E0E|oؤEIENDB`qsynth-0.6.1/src/images/PaxHeaders.5367/sfont1.png0000644000000000000000000000013213577702221016507 xustar0030 mtime=1577026705.842992838 30 atime=1577026705.842992838 30 ctime=1577026705.842992838 qsynth-0.6.1/src/images/sfont1.png0000644000175000001440000000051713577702221017337 0ustar00rncbcusers00000000000000PNG  IHDRaIDATxڕˑ DSŤa!" 1ix{vVU*V-^{ 8ڝj"YX*[l"XJs GDcd&iZBx'@)Rƒ9;^-%Orvd,𞠔B}`nTӟ uq,z Fb2qFpۂcDrV[ZT0_ؤhI$Z6<37Љ`"m~?i1z۫]UIENDB`qsynth-0.6.1/src/images/PaxHeaders.5367/edit1.png0000644000000000000000000000013213577702221016303 xustar0030 mtime=1577026705.841992838 30 atime=1577026705.841992838 30 ctime=1577026705.841992838 qsynth-0.6.1/src/images/edit1.png0000644000175000001440000000033513577702221017131 0ustar00rncbcusers00000000000000PNG  IHDRasRGBIDAT8 ȥP&E1yKgV⁴sp'(7V@)%Ia8ڶÿv{fFn%03UT|.@SJvHzPs\_/@:xex+< \y*IENDB`qsynth-0.6.1/src/images/PaxHeaders.5367/formSave.png0000644000000000000000000000013213577702221017057 xustar0030 mtime=1577026705.841992838 30 atime=1577026705.841992838 30 ctime=1577026705.841992838 qsynth-0.6.1/src/images/formSave.png0000644000175000001440000000111013577702221017675 0ustar00rncbcusers00000000000000PNG  IHDRasBIT|d pHYsu85tEXtSoftwarewww.inkscape.org<IDAT8ZA}19nCr@$`iHPWRQه̞qoIˬ`Γ,vh` mbѲ,8^ppRh4t/{T*rn3Nz= BRtxpIENDB`qsynth-0.6.1/src/images/PaxHeaders.5367/options1.png0000644000000000000000000000013213577702221017051 xustar0030 mtime=1577026705.841992838 30 atime=1577026705.841992838 30 ctime=1577026705.841992838 qsynth-0.6.1/src/images/options1.png0000644000175000001440000000156513577702221017705 0ustar00rncbcusers00000000000000PNG  IHDRa|w$WrZ&x)+K;@%|B}3m4GnfuUeAXqM&߽8_(#bɁ $5{l8\B>2#w~pCvt59 \ᛴaPTP'NeW!B-vEydSCP63J 8}s3WQYXX6* ֝R]  )K3Ov7ͮ#c!Q D>P,=;gO`@0KH* ȒTO?!&dz<214o)ioKFZ(?/rAP5G6IJ~*0@ud miC(o$zkF~QS:r^28P骷V̺^ӿ^kO8+9 7ij8:"+K4ϽrR+7aȲ@(s+Dn}Le"5Z~ZV-NzDp+KE[j.?h_kg|k vE0]IENDB`qsynth-0.6.1/src/images/PaxHeaders.5367/add1.png0000644000000000000000000000013213577702221016106 xustar0030 mtime=1577026705.841992838 30 atime=1577026705.841992838 30 ctime=1577026705.841992838 qsynth-0.6.1/src/images/add1.png0000644000175000001440000000027513577702221016737 0ustar00rncbcusers00000000000000PNG  IHDRasRGBwIDAT8c`hS 8,C:vLx?I7D0@3`& p!¤b/`86'q¤,,@@#FG# THaB+ 0UIENDB`qsynth-0.6.1/src/images/PaxHeaders.5367/qsynth.png0000644000000000000000000000013213577702221016623 xustar0030 mtime=1577026705.841992838 30 atime=1577026705.841992838 30 ctime=1577026705.841992838 qsynth-0.6.1/src/images/qsynth.png0000644000175000001440000000264013577702221017452 0ustar00rncbcusers00000000000000PNG  IHDR szzgIDATX՗]]Wo}sdN&L43dZ1UkV -s4b+z^`QWV^XKC5Ib:43}^{AM=n??GCO_KS~ ȅO:#ꑧN|@⁲|n_x8=20]n~ԥ'S*!b dr.[Vҟ /<9o YKB0 QZe;=O9=՝_[i͎4[0Yi;'#ҍ.B YObw2ԍyꇽ?f |w.fzi!& ">]<85ތ&ZfU+8‰KQ$:Ro"*R PJ ]R Py73sgz3zF@,ւw ʡQ+b#/\(GJ4P݅B*,7ˇk_hVʧ62 Gp~vN՚Rm .4AcT^@J xojN3g%P*[P5/W@k@y,"ky\OvGa/2@m$NwqDQPҠhY Ȱ 0rx- K!Y20X]{~y{Nkf=֓WZuNm ;yrhnJE`T `o2p[uYsGjz \^`XvكEW%M1HYOVT) >/pP)qnY,([nvGFNhh*x/,d3o6 [?s hޚ<3QU1V\`\bSC8KrziA潿z/ .2d9{Vn(`28l E9qR[C/1$Ŗ"|3rk{F;n4SsVbrlŖԐ a ze gśx v7}SET3joY zcoYL V:Wo^ϳQ8RXsoN/v[vBT?u 2+’;Uʯxe]͟ę-psfHŽ<0vd+yh"=s7ڻ]v{Ûo m`:P!unwt(Ͷ_C(?rgc:"IENDB`qsynth-0.6.1/src/images/PaxHeaders.5367/reset1.png0000644000000000000000000000013213577702221016500 xustar0030 mtime=1577026705.842992838 30 atime=1577026705.842992838 30 ctime=1577026705.842992838 qsynth-0.6.1/src/images/reset1.png0000644000175000001440000000140713577702221017327 0ustar00rncbcusers00000000000000PNG  IHDRaIDATx}R[HTQ]ܧԩƚBQiej^T'EAED *"("z|}= ̈8|d5i}9P|kZ{o^dGEŮgSaEAI>ZnJܲݝcYVpD:vwCGÃڪ#߉; `M&h܋xd}e/LTӸ fިBشڍލfj5[Gy)0صPUT1ʃW|N#nJs-<'Ee#Bd=\ց d 9ZE!/MAV$U?uL a/Y@~IENDB`qsynth-0.6.1/src/images/PaxHeaders.5367/qtlogo1.png0000644000000000000000000000013213577702221016663 xustar0030 mtime=1577026705.842992838 30 atime=1577026705.842992838 30 ctime=1577026705.842992838 qsynth-0.6.1/src/images/qtlogo1.png0000644000175000001440000000563413577702221017520 0ustar00rncbcusers00000000000000PNG  IHDR szzzTXtRaw profile type exifx՗[(߽Y `9\#fdg]DWUytdp _$_?>׿jRrK>>5>b'~?0s_y]L?y_&}^z "Z=S?z~vs! Գ6 7$c*vfanj-({+ w+aSg6ld奫,[uwPy.vm׎|cv;j/TtB-H}W|{>APcɑsBKBAcbW,@wLz;v}\[rCKז? Ԗ;{T9 מj'9DcMN\B*!N<}Jzz՘5)x>>#\lG\Yl~V~W~C6Ȼw O(b/-+9lK~>S(έ fliT)~2$¨v7J^8N4CetCI'k"$['uW)cWIYV7(} إ#m6ߪldjw*dWwQheEe`L4++.܍Ig/FwƞgrtRQ [Y CgndVu],OhGGI;·9GNaX:s"5zY;U=Έ7#ű¾9H4=X;yd W/\Jc"Nɠډ]}COHOhZXVs/!=vyB1qǮG`ќ@t29:J+nV: Ch`lB8ݱ"0IQSIG-M(",uzJyzUz|>+s^ I?|NHۚ?ȚJ>}np.RuiuDKs6N;;e nF;V7$ƛT˽01 LeY(z*i;uP-5۩N&膊6^]^ĦThQ5-QYL>V \xMDC~,boM.ד ! -#P[,]gS-h$³Є fxݏ']PpwjvFl`CxY ԗef&(*"=H` 최Y=MqBNN牢%ӧ**J)$RH"W#=SҎ.%XWh9§-CPHZ)edeo2Xv:X*cֲY(EF.ub/ #rl+WK1\C>p=v3IF"0m󱿲f:ܪ6=>E2n"(YƆtSgxM>H_ϯ&8P]4}H 8aڹVϩr _dV/MT{blb6K6b~ufwnU#|¾N7g7?mv:WD!QvҝX䷁-H `;HB9M9Yc33=y[dMn< {Xa r>9=˱an7:4+7xmV]_a}? S#)#X:x'ϐYR}}B%$c %J4,@YFf@t4COO3zD\sR݋jYR "3Hw?'>WR\8 :iDv@k5ic f*|'޼oJU׹Xi>pb"n\W*^\X6Q޸{?J:@M`iL`wQ@9S;m+xEΏIENDB`qsynth-0.6.1/src/images/PaxHeaders.5367/open1.png0000644000000000000000000000013213577702221016317 xustar0030 mtime=1577026705.841992838 30 atime=1577026705.841992838 30 ctime=1577026705.841992838 qsynth-0.6.1/src/images/open1.png0000644000175000001440000000035413577702221017146 0ustar00rncbcusers00000000000000PNG  IHDRasRGBIDAT8˽A ?gLK-J(UH+e/+k rFٚm//N)xP̳XTSKU=2J)*u!N6 y V C6 ťt@+1*}v/-SO)AIENDB`qsynth-0.6.1/src/images/PaxHeaders.5367/up1.png0000644000000000000000000000013213577702221016002 xustar0030 mtime=1577026705.842992838 30 atime=1577026705.842992838 30 ctime=1577026705.842992838 qsynth-0.6.1/src/images/up1.png0000644000175000001440000000030713577702221016627 0ustar00rncbcusers00000000000000PNG  IHDRasRGBIDAT8ݒ E kcؙLx"T⿐6-%g"k\ԃЈYШ'Ĕ$3S% s7 B3U 1ћ ϏlakGoIENDB`qsynth-0.6.1/src/images/PaxHeaders.5367/restart1.png0000644000000000000000000000013213577702221017042 xustar0030 mtime=1577026705.842992838 30 atime=1577026705.842992838 30 ctime=1577026705.842992838 qsynth-0.6.1/src/images/restart1.png0000644000175000001440000000144213577702221017670 0ustar00rncbcusers00000000000000PNG  IHDRaIDATxmOh\U{/3 15ՆXj V-?VhFp!]Rp!E]t#*袋X- 5iڦN2qf̟޽sa[\iMκNV^i0"հ~j`t_R˻=:vFJ R9WSv ¾#)B8{i̇VNO2l Kx`ߞgj ;z/N^֥HO[i ewCUx:ޜ>= 7}`s=Ed#_۱gokɣes퍩,0ܯS)Ok9u nWZm1%22H+p:4 {b]olSˮ M[L(6A +^km zϱ K| \ϒiM.}vj̀.J3u~YYZ?^'IENDB`qsynth-0.6.1/src/images/PaxHeaders.5367/qsynth.ico0000644000000000000000000000013213577702221016611 xustar0030 mtime=1577026705.841992838 30 atime=1577026705.841992838 30 ctime=1577026705.841992838 qsynth-0.6.1/src/images/qsynth.ico0000644000175000001440000003535613577702221017452 0ustar00rncbcusers0000000000000000 %6  % h6(0` mmm3lllSiiipdddbbbaaa^^^___bbbgggiiilllssskvvvNwww0 xxxppp>UUUuKKKGGGJJJKKKJJJJJJOOOXXXeeehhhkkkmmmpppssscttti6]/S&F8QMZr\_bdddhhhkkkXmmm 6LdLJuOX_fnv|}yrjb^[ZSLPPJ{Bp:c3Y.Q5SEX~QT[ZZZdddeee^fff#0DWfHzM^fq~xlb^[ZWROM~Gw?k7`4^2V=VKOWUUUdddeee_fff#$,ARsF}Nbn~ug_\_^QONJ|Brn:`NcT^p\\\^ttt$#.?=C_CuNhwaONPNK~I}G};i=^IRbLLL{{{{/8LhdGqIz]mubNNPLJ~G{s>hMeOZmHHHvhhh* K`FcBkM|[\XOF:m=`JScNNNxxx?*5IAEX~=bEsUWTL>sAiMdKMQZZZc&!$, /qIID|;dPeFFFjjj_%-8F3AWpGf5dEC>pNiWcuWWWyyyE>Jc;fF=ud5foD~GGJGE|Ft@i:`2U+K.JCRjZ\^hhhqqqm'GjAxTWUV\VOLK|Frn3[BQn[[[pppVzzz*4>AtZwnaYROM~Ew@r7_DSo\\\xxx4-8.FsXpl_\SOMFy?qAcKWo```cfM[sYYYgDeK`xsXONL~I}pI`^`b}}};LfEtDoHZs\\\S{{{$CWtg;cFgJYp[[[[___///"+9D?]B[2=P,```^^^777%=7#???(  XY[Y\dRNVfMTbX[afffpppdyyyCGLAUr:X3T.N1KCPjabcpppo :U{i=nA{BvAn8]-LAPldeevvv<,FyXYZQK|;d.NSYdooow@ccVo}l\QIx4ZDVxaaahhh 8cddWN?o:U```sss ;czfgVNBuA[eeeO4Kb+ScSM@oO\sxxxDneeNH{Ca]`eC(9P$HvoeK~AjNXjzzz4NxhN~s[AtH[hhh CcXNCdY\bQ7LrUEvCvT_q{{{FpDgghhM;XD]\\\ %%%&??qsynth-0.6.1/src/images/PaxHeaders.5367/panic1.png0000644000000000000000000000013213577702221016450 xustar0030 mtime=1577026705.841992838 30 atime=1577026705.841992838 30 ctime=1577026705.841992838 qsynth-0.6.1/src/images/panic1.png0000644000175000001440000000125413577702221017277 0ustar00rncbcusers00000000000000PNG  IHDRasIDATxڍKHQ{?3:䨓f0%$V.$k&UAiѦZ0lkPhR sJbtJnj3GLVgq~!Jbɵ|H𺥟fЀM i=49#uʠAXK1=0OOf}N/Rȴ|1~?Fڦr4IN&ҝKXsn/_t3l (pk-??WN@8|z_^( <ѱP,bO\ ^ &6g:WG }Y נk%|I^ 8W]f80)k) 1kR ڂ28R)>a->B@EYQ9癵<ԅ2iKa^M5TK_QCԪi Ώl^)f @g ;>n%À,IEq/9O˹4Mf=gnjHw?x.:cIENDB`qsynth-0.6.1/src/images/PaxHeaders.5367/itemReset.png0000644000000000000000000000013213577702221017236 xustar0030 mtime=1577026705.841992838 30 atime=1577026705.841992838 30 ctime=1577026705.841992838 qsynth-0.6.1/src/images/itemReset.png0000644000175000001440000000110313577702221020056 0ustar00rncbcusers00000000000000PNG  IHDRasBIT|d pHYsbb8ztEXtSoftwarewww.inkscape.org<IDAT8R`__] NHMP ]ڥCS'(tS7%O24bHi/5{clt{s? D$(M/Lr)˲|i .y'aE1'mq("( ԡ}eYf)q mE1;͒l6re}u=" ѨZUBl[c $۶ziVs !Kv;cEp΁R R4M$~;9?5 s~Z!g~Q20J)AG"H7Bay?m4J1LRT.v$"!`8(ur|V*c}q%N~3υri6MZ.:GixUs IENDB`qsynth-0.6.1/src/images/PaxHeaders.5367/setup1.png0000644000000000000000000000013213577702221016516 xustar0030 mtime=1577026705.842992838 30 atime=1577026705.842992838 30 ctime=1577026705.842992838 qsynth-0.6.1/src/images/setup1.png0000644000175000001440000000133613577702221017346 0ustar00rncbcusers00000000000000PNG  IHDRaIDATxuKHTqޙqF 15AlB4EQCL\cWh!EmkQF)ȤLQ(qq|ܹo=sIRH T̔As:.,i"7t&ğ-f6Ռ@шyqWeC t+$y0;?X۷y9&FOd<q@.qe ֓7SƗ"nbdZQ|i x*b^ BH^ Zq"qg%O2H8kQYR'4]`5 i^R hBdTa )3)flՀd b4JtH"MjU8sxT@)7[tzdo!TzˇΐsӰ0DIENDB`qsynth-0.6.1/src/images/PaxHeaders.5367/qsynth.xcf0000644000000000000000000000013213577702221016617 xustar0030 mtime=1577026705.842992838 30 atime=1577026705.841992838 30 ctime=1577026705.842992838 qsynth-0.6.1/src/images/qsynth.xcf0000644000175000001440000022162513577702221017454 0ustar00rncbcusers00000000000000gimp xcf v011BBfPath 2Bx@BxBABpABABB0BBBBBBBBBBBpBxABx@Bxgimp-image-grid(style solid) (fgcolor (color-rgba 0.000000 0.000000 0.000000 1.000000)) (bgcolor (color-rgba 1.000000 1.000000 1.000000 1.000000)) (xspacing 10.000000) (yspacing 10.000000) (spacing-unit inches) (xoffset 0.000000) (yoffset 0.000000) (offset-unit inches)  &? ! Stroke Path!? "     %$# z&=<; ;$;/E;Lo;o;;: :AX: :G9B9r9S;,;; 0;h;V;Q:k;L :p;V:e;n:L;;0*:;b:Y;;E#: w;:91:;:76:;:95: ;::4: ;:55:;| :%@:;Z:a;:$2;#>o>>=~=<T<j< A<{<B<y; V<e;{<A<<M<n ;<.=< ;<1@<~;<'R<k;;q<M0< ; </O<o;;u<J1< ; </I<u;<!X<d;<S<h;<*6<; `6;;;;;*;; *;[<j; ;D<<W<.<<<< <<+<F<h<u<H<<5<y<Q< <p<S<9<<#<<"+<<S<h;<$_<`/<; ; ;" ;(;$,;\; ;c_:#G:\[9 tF8d[7 4,7NZ ;{<@<<< <l<R;<<<.<5<t<`<3<<<< <<+<G<i<u<H;;5<y<Q; ;p<S;9;;$;;+";;S:h;:_$:/`:: 9 9 #9(9+$9[8 7^c8F#6[\4Fu / 7[d 1ς-4˪O@@ Highlight!? "     %$#  & #o%6Kaw-*V~-V-%~-6 -I -\ -o - - - - ) 4) =:41 #+3:?BCB>80 '08?DHIGC=/ #,5>EKNNMHA/ (2;DLQTURMF. %.8BLSY[[YSK- ",6@JT[acc_YQ-  *4>IS]dikjf`V, (2)7uaH-R-Hy!? !' !HϺ~V!'?Wk||l[H6% uaH-R-Hy!? !' !HϺ~V!'?Wk||l[H6% uaH-R-Hy!? !' !HϺ~V!'?Wk||l[H6%  (4@LXdp|{fO  *7DP\hut_H  !-9FS_lxlWB #/;HUanzwcO; $00#  $-6@IR[ckqvxxvrldZOB4(  '08@HPW^cghhfb\ULA6*   !(07>EKPTWXXVRLE=4+!  !'.39>BFHHGEA<6/(  ! $).25799862.)# !  #&)*++*(%! "  #  $  % (,0  I555555{5m5]5J5؝45سq5םq< 54 5999o9U9ڠ79Ƞa9wU79~%=V=*= 555555{5m5]5J5؝45سq5םq< 54 5999o9U9ڠ79Ƞa9wU79~%=V=*= 555555{5m5]5J5؝45سq5םq< 54 5999o9U9ڠ79Ƞa9wU79~%=V=*= 8$ 83  8.8(8# 9 9: : : : ; ;;<<<= @@Gradient Glow!? "     %$#''(9Jjg7Tn1a171T-?^-l-? -^ -y - - - )+Sv )+ )S )v ))))% :h%:%h%!:Y!f !:!Y!s!!! =m=m%Jl%|Jl  BcqB"c#}$%2   2  1  /   . - --- - ! -"#"! * "&%$#"!! )-570,+*))(('&%%$#""!) -8;;720.-,*)(''&%$)5;<<:74210//.-,,+*)(')9<==<:864332100/.--,+)$<=>>=<;987655433210/.))>?@@?>=<;;99877654432)-ABA@?>=<<;::98765% .>EDCBA@@??>=<<;:9%7LTTNJIHHGFEDCCBBA@?>=<% LVYYTPNLKJIHHGFFEDDCBA@%.TYZZXURPONNMLLKKJJIHGFEDC"?WZYWUTRRQPPOONNMMLKJIHG!%AQZ\[ZYXWVUTTSSRRQQPOONMLJ!AYac`^]]\\[ZZXXWWVUTSRQPON!Qaeeca`__^]\[[ZYXWVUTSQ!+[dffecbbaa`_^]\[ZYWVU!7bhiihgfedcba`_^]\[ZX!Bhlkjihgfedcba`^]\!Kmonmlkkjihgfedcba_3EaqrqpoonmlkjihgedcQlvywutsrqponnmljigf3lz|}{yxwwvvw vuttsrqonmkiEv|}~}{zzyyz{|{zyxvusrpom !3\{}~}|~􃂁}{yxvtrp <^oy􋊈~|zxvt!^v}~|zx3o}}BxO[h𖙝(>{Hs復(s>P_2   2  1  /   . - --- - ! -"#"! * "&%$#"!! )-570,+*))(('&%%$#""!) -8;;720.-,*)(''&%$)5;<<:74210//.-,,+*)(')9<==<:864332100/.--,+)$<=>>=<;987655433210/.))>?@@?>=<;;99877654432)-ABA@?>=<<;::98765% .>EDCBA@@??>=<<;:9%7LTTNJIHHGFEDCCBBA@?>=<% LVYYTPNLKJIHHGFFEDDCBA@%.TYZZXURPONNMLLKKJJIHGFEDC"?WZYWUTRRQPPOONNMMLKJIHG!%AQZ\[ZYXWVUTTSSRRQQPOONMLJ!AYac`^]]\\[ZZXXWWVUTSRQPON!Qaeeca`__^]\[[ZYXWVUTSQ!+[dffecbbaa`_^]\[ZYWVU!7bhiihgfedcba`_^]\[ZX!Bhlkjihgfedcba`^]\!Kmonmlkkjihgfedcba_3EaqrqpoonmlkjihgedcQlvywutsrqponnmljigf3lz|}{yxwwvvw vuttsrqonmkiEv|}~}{zzyyz{|{zyxvusrpom !3\{}~}|~􃂁}{yxvtrp <^oy􋊈~|zxvt!^v}~|zx3o}}BxO[h𖙝(>{Hs復(s>P_|::9998  8  7  7 66 54433  !""! 2!#$#"!1!$&''&%$#1!%')('&%0&)++,+*)((0&*,-.-,+*/#+./0/.--,.*/123210/..)/24543210-%/3578765433,/479:987665,.58:<<==<<;;::9987+(5:<>?>=<;;:9*4:>@A@?>=<;*19>ACDCBA@?>=)+9>BDFEDCBA@(":@CFGHIJHGECB(=DGHIIJKLNPQQOLIFD' ;KOONLKLMPTWYYVRMIG&-OVXVROMLMPTY^a`]WQMI&JX^^ZUQNMOQV\bffb[UOL%;R\a`\VRONORW]cggc]VRO$%FS\`_[VRONORV[`cc`[VSR$;HQX[[XTQPOPQTX\^^[XUTU#-@HOTVVUSQPQSUWXXVUTTV"9BINQSRSTSRRSV" 1>EJNPRSTUTSRQSU!#9AHLORSUVWWXYXWWVUTRQRT!4>EKORTVXY[\]]^^]]\[YXVUSRQQR +;CINRUWZ\^`abcba`^\ZXVTSRQ 8AGMRVY\^acegijigeca^\YWUSRs`H-5ӹR5͎-5H5؉Z;1ͦg1ݦ;1Z1O2-Z- Ԙ2- O- h- }- - -rP() ()P)r) T7% ǟ`% ؟7% T%n%%%%zW-!ɍ-!W!z!Y;̦f ܦ; Y t oM& ݾ& M o     lJ% ۻ|%97663  2  1  1 / . --- -#"!  -&%$#"!-*)'&%$$##"!!  *-,+*)'&&%%#%&$)1/.-,+*(('&&%%&'()(&)4320/.-+**)()*)($ )7654210.-,*)'&;:9764310/..,+*'! %>=<;9864320.--,+*%%BA?><;98653211/.-,*!%EDCA@><;976533100//..--+& %IHFECA@><:9765432110/..-*%LKJHFECA?=<:8766432210-%PNMKJHFDB@>=;9877543321%SRPOMKIGECA?><:99765543' "WUTRPNLKIGDB@>=;::876530)!ZYWUSRPNLJHECA?><;:988776552) !^\ZYWUSQOMKHFDB@>=<:998876650!a_^\ZXVTRPNKIGDB@>=<;:9876653 dca_][YWUSQNLIGDB@?>=;98764-&hfdb`^\ZXVSQNLIGEBA?>=:9877641/*kigfda_][YVTQOLIGECA?>;:9876421/& nmkigeb`^\YWTQOLIGEC@?>;:9864220+rpnljheca^\YWTQOLIGDB@?=;:864322/vtqomkhfda_\YWTQNLIFDB@><;97541zxuspnkifda_\YVSQNKHFCA?><:876654 |yvsqnlifda^\YVSPMJGEB@?>;9876'㄀}ywtqnlifda^[XUROLIFDB@><:9860*#ڊ}zwtqnlifc`]ZWTQNKHEC@?=;:998520-#ڐ~zwtqnkheb_\YVSPMJGDB?><::974210*ږ~zwtqnkhea^[XURNKHEC@>=;:864221.ߝ~zwspmjgd`]ZWTPMJGDA?=<:86420ڤ}yvsolifb_\YUROKHEC@><;8643221߫}yuqnkgda^ZWTPMJGDA?=;86432!߱|xtpmifc_\YUROKHEB?=;96543% ֵzvrnkhda^ZWSPMIFC@>;9755442*$97663  2  1  1 / . --- -#"!  -&%$#"!-*)'&%$$##"!!  *-,+*)'&&%%#%&$)1/.-,+*(('&&%%&'()(&)4320/.-+**)()*)($ )7654210.-,*)'&;:9764310/..,+*'! %>=<;9864320.--,+*%%BA?><;98653211/.-,*!%EDCA@><;976533100//..--+& %IHFECA@><:9765432110/..-*%LKJHFECA?=<:8766432210-%PNMKJHFDB@>=;9877543321%SRPOMKIGECA?><:99765543' "WUTRPNLKIGDB@>=;::876530)!ZYWUSRPNLJHECA?><;:988776552) !^\ZYWUSQOMKHFDB@>=<:998876650!a_^\ZXVTRPNKIGDB@>=<;:9876653 dca_][YWUSQNLIGDB@?>=;98764-&hfdb`^\ZXVSQNLIGEBA?>=:9877641/*kigfda_][YVTQOLIGECA?>;:9876421/& nmkigeb`^\YWTQOLIGEC@?>;:9864220+rpnljheca^\YWTQOLIGDB@?=;:864322/vtqomkhfda_\YWTQNLIFDB@><;97541zxuspnkifda_\YVSQNKHFCA?><:876654 |yvsqnlifda^\YVSPMJGEB@?>;9876'㄀}ywtqnlifda^[XUROLIFDB@><:9860*#ڊ}zwtqnlifc`]ZWTQNKHEC@?=;:998520-#ڐ~zwtqnkheb_\YVSPMJGDB?><::974210*ږ~zwtqnkhea^[XURNKHEC@>=;:864221.ߝ~zwspmjgd`]ZWTPMJGDA?=<:86420ڤ}yvsolifb_\YUROKHEC@><;8643221߫}yuqnkgda^ZWTPMJGDA?=;86432!߱|xtpmifc_\YUROKHEB?=;96543% ֵzvrnkhda^ZWSPMIFC@>;9755442*$@>>==<;; : : 9 88 7 665 4 4"! 3%$#"!  2'&%$#"! 2)('&%$#"!1+*)('&%$#!0-,++*('&%#" 0/.-,*)('%$" /210/.,+*)(&$" .43210.-,+*('%"-654321/.-,*)'%" -87654310/-,+)'$",:98765321/.,+)'$!+<;:98754310.-+)'$  +>=<;:9764320.-+)&#*A?>=<:9865320/-+)&")CA@?><;:875420/-+($ (EDBA@>=;:875420.,*'# (HFEDB@?=<:875420.,)&#'KIHGECA?=<:875320.+)%"&NLJHECA?=<:87531/-+($  &RQOLHECA?=<:86431/,*'#%VWVSPLHECA?=;:86420.,)%!$XZYWSOKHECA?=;97531/-*'$  $Y[[ZWSOLHEC@><:97530.,)&"#XZ[[YWSPLHEB@><:86420-+(%!"VXZ[[ZWSOJGDA?=;97531.,*'# "SUWZ[[YVQLHEB@><:86420-+(% !RSUXZ[ZWRNIFDA?=;97531.,)&" !QRSVXYXVRNKHECA><:8642/-+($  %&&&''''''''''''''''''''''&" o ?   ?o    !k; ;kwEEw!!s!B! Bs % %h%:% :h)N )2 )Y )2Nh~kv~봶֋擷ܻ޽ݽ޾޾޿޾ݽݽ޽޼޻۳챲۫쩪럡y똛r뒔k댏d]T}Hz5p}Tpz~~5Hm{|~_yz{~}Zwxyz||}~~|zxSuvwxyz{|}~􋊈~|zxvtKruvwxy{|~􃂁}{yxvtrp?ntuvuutuvwxyzz{|{zyxvusrpom.ertutssrstuvuttsrqonmkiJenrrqpqpqponnmljigf.?Znpon mlkjihgedcAkopponmlkjihgfedcba_1cmoonlkjihgfedcba`^]\Mckmkiihhgffeeddcba`_^]\[ZX1AVfgfedcbaa`_^]]\\[ZYWVU!:bfggfdca``_^]\[ZZYXWVUTSQ!+Zdffeb`^]]\]\\[[ZYXWVVUTSRPON!EZbda^]\[Z[ZZYWVUTSRRQPNMLK!+:KYZYXWUTSQPPONMLKIH%.TYZYXWVUSRRPONMLKJIHGF% LVYXWVTSRPONMMLLKJIHGFE%7LTWWUSRPONMMLLKKJIIHGFED% .:GLKJIHGFEDC)8FJKJIHGFEDC)*>FIJKJIHGFEDC)*8@DGHIJIHGFEDC*!',0357787654kv~봶֋擷ܻ޽ݽ޾޾޿޾ݽݽ޽޼޻۳챲۫쩪럡y똛r뒔k댏d]T}Hz5p}Tpz~~5Hm{|~_yz{~}Zwxyz||}~~|zxSuvwxyz{|}~􋊈~|zxvtKruvwxy{|~􃂁}{yxvtrp?ntuvuutuvwxyzz{|{zyxvusrpom.ertutssrstuvuttsrqonmkiJenrrqpqpqponnmljigf.?Znpon mlkjihgedcAkopponmlkjihgfedcba_1cmoonlkjihgfedcba`^]\Mckmkiihhgffeeddcba`_^]\[ZX1AVfgfedcbaa`_^]]\\[ZYWVU!:bfggfdca``_^]\[ZZYXWVUTSQ!+Zdffeb`^]]\]\\[[ZYXWVVUTSRPON!EZbda^]\[Z[ZZYWVUTSRRQPNMLK!+:KYZYXWUTSQPPONMLKIH%.TYZYXWVUSRRPONMLKJIHGF% LVYXWVTSRPONMMLLKJIHGFE%7LTWWUSRPONMMLLKKJIIHGFED% .:GLKJIHGFEDC)8FJKJIHGFEDC)*>FIJKJIHGFEDC)*8@DGHIJIHGFEDC*!',03577876540>FLQVZ]`dgjlnpqrrqpnljgd`]ZXUS:DKQVZ^bfimpsvxyzzyxvspmifb^[XU/?HPUZ^cgkptx{~~{xtpkgc_[X7CLSY^chlqv{{vqlhc^Z+;FOW]bglrx}}xrlgb]3?IRZ`fkqx~~xqkf`&8CMU]cipv}}vpid 1HPX_gnv~~vn6AKSZahpxxp9DMU\biqyyq$;FOV]cjrz¾zr'EKPTW[_cgkptx{~~{xtpkgc_[X3FKOPQRTVXZ\^`abcba`^\ZXVTSRQ 0=&%,26:=?@A@?>=<;'$+048;=>?>=<;;:9(!(.258:<;:987) &+/36898765+$)-024565433,%)+-/011210.#&()+,-././ "%'(*+1 "$%&''&&4  6 < J l                                     t Z ݦ; ͦgZ;   f E׵u!fE!yVȋ,yV,z!W!ɍ-!zW-!t%Q%Å)%ՙtQ)%?)Â')ʭH)lW?'ֹ}xtpmifc_\XUQNJGDA>;9865430+)&ּzvrokgda]ZVSOLHEB?<:87542/+*)$ ־|xtpmieb^[WTPMIFB?<:87530-++*'~zvrnjgc`\YUQNJGC@=:8752/-+)¿|xsolhda]ZVROKGDA>;8651/-+*~yuqmieb^[WSPLHEA>;9641/-,++*{vrnjfc_[XTPMIEB?<9642/-,+}xsnkgc`\XUQMJFB?<9632/-,+¿ytokgd`\YUQNJFC@<96310--,ztplhda]YURNJGC@=9631/-,{uplhea]ZVRNKGD@=9631/.-,|vqliea^ZVROKGD@=:631/.-, ¿|vqmiea^ZVSOKHDA=:631/.- ¿|vqmieb^ZVSOKHDA=9631/.- ¿|vqmieb^ZVSOKHDA=9631/.- ¿|vqmiea^ZVSOKHD@=9630/.- |vqliea^ZVROKGD@=9630/.- {uplhea]ZVRNKGD@<9520/.-, ztplhda]YURNJGC@<8520.-, ¿ytokgd`\YUQNJFC?<8520.-, }xsnkgc`\XUQMJFB?;842/.-,+{vrnjfc_[XTPMIEB>;741/--+~yuqmieb^[WSOLHEA=:741.-+*¿|xsolhda]ZVROKGD@=9630.-+*~zvrnjgc`\YUQNJFC?<9520-,**)ܾ|xtpmieb^[WTPMIEB>;852/-,)(ۼzvrokgda]ZVSOLHDA=:741/-+)('۹}xtpmifc_\XUQNJGC@<9631.,*('&۵zvrnkhda^ZWSPLIEB?;8530.,)'&%۱|xtpmifc_\YURNKHDA=:7520.,)'%$֫}yuqnkgda^ZWTPMJFC?<9641/.+(&%$$#֤}yvsolifb_\YUROKHEA>;8531/.+(&$$#!۝~zwspmjgd`]ZWSPMJFC@=97420.-+(%# ֖~zwtqnkhea^[XURNKHEA>;8530/.,+)&##" ֐~zwtqnkheb_\YVSPLIFC@=:742/.-,+)'#" ֊}zwtqnlifc`]ZWTQNKGDA>;8530.-++**'# }ywtqnlifda^[XUROLIEB?<9742/.-*)(!|yvsqnlifda^\YVSPMJGC@=:8531/-*)('zxuspnkifda_\YVSQNKHDA>;96420.+)('&vtqomkhfda_\YWTQNKHEB?<:7520/.+)'&$rpnljheca^\YWTQNLIFC@=;8531/.,*(&%#nmkigeb`^\YWTQOLIFDA>;96420/-+*(&%%$! kigfda_][YVTQOLIGDA?<:7531/.,+*)'%$#hfdb`^\ZXVSQNLIGDB?=:86420/,++*)'$# dca_][YWUSQNLIGDB?=;864210-,+**)'" a_^\ZXVTRPNKIFDB?=;975310.-,+**)'^\ZYWUSQOMKHFDA?=;975321/.-,+**)%ZYWUTRPNLJHECA?=;975421/..-,+*)'WUTRPNMKIGEC@><;9754320/.--,+(%SRPOMKJHFDB@><:9754320/.-,*POMKJHGECA@><:8754310//.-,(!MKJHGEDBA?=<:8764310/.-,*"!JHGEDBA@>=;:8765310/..--,*("!GFDCA@?=<:98764321/.-,*"EDBA@>=;:987543210/.--,,'%CBA@>=<:98543210//..-,,) %CB@?>=:9764321/.--,,+*' %BA@>=;:8754210.-+*)("&BA@>=;:875421/.,*)($)BA?>=;:875321/-+)'$)B@?><;986431/-+($*3210.-+)'%#  ֹ}xtpmifc_\XUQNJGDA>;9865430+)&ּzvrokgda]ZVSOLHEB?<:87542/+*)$ ־|xtpmieb^[WTPMIFB?<:87530-++*'~zvrnjgc`\YUQNJGC@=:8752/-+)¿|xsolhda]ZVROKGDA>;8651/-+*~yuqmieb^[WSPLHEA>;9641/-,++*{vrnjfc_[XTPMIEB?<9642/-,+}xsnkgc`\XUQMJFB?<9632/-,+¿ytokgd`\YUQNJFC@<96310--,ztplhda]YURNJGC@=9631/-,{uplhea]ZVRNKGD@=9631/.-,|vqliea^ZVROKGD@=:631/.-, ¿|vqmiea^ZVSOKHDA=:631/.- ¿|vqmieb^ZVSOKHDA=9631/.- ¿|vqmieb^ZVSOKHDA=9631/.- ¿|vqmiea^ZVSOKHD@=9630/.- |vqliea^ZVROKGD@=9630/.- {uplhea]ZVRNKGD@<9520/.-, ztplhda]YURNJGC@<8520.-, ¿ytokgd`\YUQNJFC?<8520.-, }xsnkgc`\XUQMJFB?;842/.-,+{vrnjfc_[XTPMIEB>;741/--+~yuqmieb^[WSOLHEA=:741.-+*¿|xsolhda]ZVROKGD@=9630.-+*~zvrnjgc`\YUQNJFC?<9520-,**)ܾ|xtpmieb^[WTPMIEB>;852/-,)(ۼzvrokgda]ZVSOLHDA=:741/-+)('۹}xtpmifc_\XUQNJGC@<9631.,*('&۵zvrnkhda^ZWSPLIEB?;8530.,)'&%۱|xtpmifc_\YURNKHDA=:7520.,)'%$֫}yuqnkgda^ZWTPMJFC?<9641/.+(&%$$#֤}yvsolifb_\YUROKHEA>;8531/.+(&$$#!۝~zwspmjgd`]ZWSPMJFC@=97420.-+(%# ֖~zwtqnkhea^[XURNKHEA>;8530/.,+)&##" ֐~zwtqnkheb_\YVSPLIFC@=:742/.-,+)'#" ֊}zwtqnlifc`]ZWTQNKGDA>;8530.-++**'# }ywtqnlifda^[XUROLIEB?<9742/.-*)(!|yvsqnlifda^\YVSPMJGC@=:8531/-*)('zxuspnkifda_\YVSQNKHDA>;96420.+)('&vtqomkhfda_\YWTQNKHEB?<:7520/.+)'&$rpnljheca^\YWTQNLIFC@=;8531/.,*(&%#nmkigeb`^\YWTQOLIFDA>;96420/-+*(&%%$! kigfda_][YVTQOLIGDA?<:7531/.,+*)'%$#hfdb`^\ZXVSQNLIGDB?=:86420/,++*)'$# dca_][YWUSQNLIGDB?=;864210-,+**)'" a_^\ZXVTRPNKIFDB?=;975310.-,+**)'^\ZYWUSQOMKHFDA?=;975321/.-,+**)%ZYWUTRPNLJHECA?=;975421/..-,+*)'WUTRPNMKIGEC@><;9754320/.--,+(%SRPOMKJHFDB@><:9754320/.-,*POMKJHGECA@><:8754310//.-,(!MKJHGEDBA?=<:8764310/.-,*"!JHGEDBA@>=;:8765310/..--,*("!GFDCA@?=<:98764321/.-,*"EDBA@>=;:987543210/.--,,'%CBA@>=<:98543210//..-,,) %CB@?>=:9764321/.--,,+*' %BA@>=;:8754210.-+*)("&BA@>=;:875421/.,*)($)BA?>=;:875321/-+)'$)B@?><;986431/-+($*3210.-+)'%#  RQRSUVVUROLIGDB@=;97530.,)%"SRQRSSTTSROMIFCA><:8631/-*'#USQRTUVVUQMIEB?=;96420-+(%!WTRQQRUX[][WRLGC@>;97530.+)&#YVSQQSV[`cb]VOHDA><:8531/,*'$ \XURRTX^cgf`YQJEA?=:8641/-*(%!^ZVTSTX^cgfaYQJEB?=;96420-+(&" a\XUSTW\`cb^WPJFB@>;97520.+)&#c^YVTSUX[]\YTNIFC@><:7531.,)'$ e`[WTSSTVWVTPLIFCA><:8531/,*'$!ga\WTRQQRRQPMKHFCA?=:8631/,*(%"ib]XTRPPOMLJHFDA?=:8641/-*(%"jc]YURPONNMLKJHFDB?=;8641/-*(%#  jc^YURPONNMLKJHFDB?=;8641/-+(&#  jc^YURPONNMLKJHFDB?=;8641/-+(&#!jc]YURPONNMLKJHFDB?=;8641/-*(&#!ib]XTRPPOMLJHFDA?=:8641/-*(&#!ga\WTRQQRRQPMKHFCA?=:8631/,*(%# e`[WTSSTVWVTPLIFCA><:8531/,*'%# c^YVTSUX[]\YTNIFC@><:7531.,*'%"  a\XUSTW\`cb^WPJFB@>;97520.,)'$" ^ZVTSTX^cgfaYQJEB?=;96420-+)&$! \XURRTX^cgf`YQJEA?=:8641/-+(&#!YVSQQSV[`cb]VOHDA><:8531/,*(%# WTRQQRUX[][WRLGC@>;97530.,*'%"USQRTUVVUQMIEB?=;96420-+)'$! SRQRSSTTSROMIFCA><:8631/-+(&$!RQRTUVVUROLIGDB@=;97530.,*(%# QRSVXYXVRNKHECA><:8642/-+)'%" RSUXZ[ZWRNIFDA?=;97531/,*(&$!SUWZ[[YVQLHEB@><:86420.+)'%# VXZ[[ZWSOJGDA?=;97531/-+(&$" XZ[[YWSPLHEB@><:86420.,)'%# Y[[ZWSOLHEC@><:97531.,*(&$" XZYWSOKHECA?=;97531/-+)'%# VWVSPLHECA?=;:86420.,*(&$"RQOLHECA?=<:86431/-+)'%#  NLJHECA?=<:87531/-,*(&#!  KIHGECA?=<:875320.,*(&$"!HFEDB@?=<:875420.-+)'%" "EDBA@>=;:875420/-+)'%#  "CA@?><;:875420/-+)(&#!#A?>=<:9865320/-+*(&$!$>=<;:9764320/-+*(&$!%<;:98754310.-+*(&$"&:98765321/.-+)(&$" &87654310/-,+)'&$! '654320/.-+*)'%#!)43210.-,*)(&%# *210.-,+)(&%#! +/.-,+)(&%#! ,-,+*(&%#! .*)(&%#! /%$#"  14 7@@Shade!? "     %$#-A!) 2.$  #  #   " " !$&'&$" # "'+.01210/-,++*)$  &,158;<=<<;:98$ ")06;?BEGGHIHG% "*29?DHLNPRSTUVWWXW&!*2:AGLPTWZ]_acdeeffee& '08@GMRX\`dgjmopqr' #+4>;6/'+ '09?CDC@;3** "-7?FIKIE?6,+ (3>GMQRPKC:/* $/;FOUXYVPG<0*  +7CNW]``[TJ>0 ) '3?LW`egf`XL?-( #.;HU_hmnkeZM>&' *6CQ]gosspg[L<' %1>LYenuxxri[J8& !-:GTaluz}{thYG/% )5BP]isz|tgVC% &2>KYepy|rdQ< $ $/;HUbmw~zo_L.! #-8ER^ju}vjYE #,7CO\hr{|qcR6 $-7BNZfpzwk[I  '/9CNYdoy}qbR8 $+3FOX`irzvgVA! "&*06=EMU]fnu|ym]K"!*+-048>ELT\cksz|pbR3"89;>BGMT[cjqx~~reV@ #HJMRW]cjqw~tfXF$WXZ]afkqx~tgXH$efhkosy~ugYH$%rsuw{ugYI%&}~tgXH%'酆}reWF ({obT@)쌍vk_P6+~wndYH%,}xrkcYM3-|}}|{zvrmf_VK4/noonljfaZRE.1\[YVQG5 3=<;5,!6@@ Gradient!? "     %$#3Ks2\|121\1|1 1 1 1 1 1 1 1 1 1 1 1 -X -X - -----)X)X))))))%d%d%% ! 6c !6 !c!!!!!bb 8g8g   9g9g(8CLSX[]_``_1B[eikllm1([hklm18ekl m1Cil m1Jk m1Pk m1Sl m1Vl m1X m1Z m1[ m1\ m1] m1^ m1^ m-&>Ke m-&Ygkl m->glm-Kkm-Slm-Xlm-[m-\m)&>Kem)&Ygklm)>glm)Kkm)Slm)Xlm)[m)\m% .GUim%.drutpnnm%Grvwvsponm%Uuwusqpoonn m!/Bfvwvtsqppon m!Mjuyxxwvtsrqpoonn m!/jy||zyxwvutrqqponm!Bu|}}|zyxwvutsrqqponm!Nz}~~}{{zzyyxwvutsrrqqponnmm!X|~}||{zyxwwvuttssrqponnm!`~~}|{{zyyxwwvvuutrqonn!f~}|{zyxwvtrqpo 0L\w~}|{zyxvtsqp0m~~}|{zxwusrL~~}|{zywvt\~}|{yxw3Gp~}|{zySr~~}}|z3r~~}|G~~}U~_ ho 򈇇9N}[} 9}𐏎N]헖g 11 1  1 1 1 1 1 1 1 1 1 1 1 1 .  - - -----* )) )))))& % %%  #  "  ! ! !  ! !  !                        !) 134567<)9 ;?;/ȁ:]Ӹ:::M99 8a8 8@77/66*55144>3 2R21o110 /T/.|-D- ,u +@ + *o )< )(n'='&m%;%$g$5#"W"#!q : PĿrD5ШD5r5ܐ555555555ҐrD1ШD1r1 ܐ1 1 1 1 1 ћP- ֵP- -ߛ-----է_)_)܎))ȐrD%ШD%r%ܐ%%%%%ԧ_!_!܎!!ȐrDШDrܐӢXٽXهբXٽX^\ZWRLB35mlkibN5mlkb35mliB5mkL5mlR5mlU5mX5mZ5m[5m\5m]5mcB31mlibN1 mlkb31 mliB1 mkL1 mlR1 mlV1 mY1 mcH9!- mljfU!- mlkf9-mljH-mlP-mlU-mY-m[-meNA))mlkh[))mlhA)mkN)ml^B3%mkibN%mlkb3%mliB%mkL%mlR%mlV%mZ%mdNA)!mlkh[)!mlhA!nmkN!onml^B3qpoonnmkibNsrqponnmlkb3utrqponnmliBwvtrqponnmkLywvtrqponnmlRzywvtrqponmlV|zywvtrqonnmZ}|zywvtrponmdK>&~}|zywusqonmlkgY&~}|zywtrponmlg>~}|zxvsqpnnmkK~}{ywusqonnmlS~}|{ywtrqonnmlX~}|zxvtrponm[񂁀~}{zxvtqpnm\~}|{ywurpnnmeK>&~}|zxusponmlkgY& 65 5555555555 2 1  1 1 1 1 1 1  . - ------)))) &% %%%%%%!!!!                >>T==4=߅<%<x;#;{:-:ۋ9C88c7%7ׇ6J5ڭ5Ӏ4H3ڪ3z2ڿK1ҩ"1̈ 0[/״0/ϕ.m- չC, Х , ʂ + پV* ϩ.* Ì) Һg(̯>'ǚ'׿t&ϰH%Ŝ!%վ{ $жL#ʠ!#ؽt"˩=!ջ!ȬZ Խ%  !""$$%%%&&&&&&&&%%%$$##"!  ZZ  bbn"n!!!l!!l % % %d %d)|)\)2 )2\|ovퟞ{󙚚좡ۚܜܝܞ챯ܠܡۡܢݣĿݣݣܢĿݢܡݡݠ챯ޞݜޛݙ좡ퟞ}z헖ws𐏎oh]򈇇K-n -K]}~q~}n ~~}|k ~}}|ze ~}|{zy\~}|{yxwL}~}|{zywvt/l}~}|{zxwusr /L\u~}|{zyxvtsqp_~}|{zyxwvtrqpoQ|~}|{zzyxxwvvuutrqonn6o|~}|{{zyxxwvuttssrqponnm 6Q_s~}||{zyyxwvutsrqponnmm!\|~}|{zzyxwvutsrqponm!Oy}~~}{zyxxwvutsrqponm!4ly|}{yxxwwvutsrqponnm! 4O\nwvutrqponn m%Uuwvutsqponn m%Grvwwvutrqponn m%.druvusqponn m% .GUbmnnm)8eklm)([hklm)B[eikll m)(8CKQUX[\^__``a89:;<<================<<;:98765431"                               ! !  ! "  %  % %  & ) ))* YQ@ v(W "A^s~~rdS=%qK% wM g4 y= ~: n!$!K" m##0$@%I &L 'L (@)/*k, J-c/(b1$X3~}{yvtqonmkK~}{ywtrpnnmlS~}|zwurqonnmlW~|zxvsqponmZ텄~}{yvtrqonnm\톅~}{ywusqponm^톅}|zxvtrponm^퇅~|zywtrqonm_퇆~|{ywusqonm`퇆~}{zxvsqonm`툆~}|zxvtrpnm`툆~}|zxvtrpnma숆~}|zyvtrpnnma숆~}|zyvtrpnnma툆~}|zxvtrpnma툆~}|zxvtrpnma퇆~}{zxvsqonma퇆~|{ywusqonma퇅~|zywtrqonma톅}|zxvtrponma톅~}{ywusqponma텄~}{yvtrqonnm`~|zxvsqponm`~}|zwurqonnm`~}{ywtrpnnm_~}{yvtqonm_򂁀~}|{xvsqonm^~}|zxusponm]~}|{ywurpnnm\񂁀~}{zxvtqpnm[~}|zxvtrponmY~}|{ywtrqonnmlU~}{ywusqonnmlP~}|zxvsqpnnmljH~}|zywtrponmlkf9~}|zywusqonmljfU!}|zywvtrponmdH9!|zywvtrqonnm\zywvtrqponm[ywvtrqponnmlXwvtrqponnmlSutrqponnmkKsrqponnmlg>qpoonnmlkgY&onmlaK>&nmkOmliCmlki],mlbOC,mkO!mliC!mlki],!mlbOC,!mkN%mlhA%mlkh[)%mlj\NA)%mlke8)mlkh[() mlkie[B)a`_^\[XUQKC8(                                            !!!!%%%% ))) ˲n0βsٿ0ˬoԹ,ũf϶§Jʹzʩ;ҲYٹq޾~ݾ~ںrյdЯRɨ=%иǭqվKͳ%Ũw ׻Mϱ ǥgؼ4ΰy =˲~ Ӽ:Īn ͳ$!ҼK!m "ì#í0#í@$ ĭI% ­L& L'μ@(˸/)ųl*ƹJ ,Ⱦc-ƺb(/ĹY%1i<3{o\D'6@@Fill!? "     %$#<` ϐE 33   9g!(++(! 9(/440)" $''# g  +4884/+.5=BB=3'   +488524>LX__XK:' (04423=NapyyqbM7" #*.4CZpu`I4"   %()*3G`yr]I7'   %))*3G`zr`M:' #*.4CZqvcM7# (05545>Ocvv`I4#    ,49:87:CQbsr]I7(  ,4:<;97:AN_sr`N<,#   (17:;;978@NbwubM;/+,,(! !*16:;;978ARewr[F94540)  !(06;=<97:CRbs|dN@;;:6/%    )18<=;97:AN_s}gRD>><92+# d !*28;978@NbvwdRF@?>;73.)$  d "*16:;;978AQcr{}wl^QIEDDCCA?<83.("  !)06;=<97:CP[cec]VPNMOQTVSOJC<4,$  )18<=;97:?EJMNOPRW\afknppmic[RH=2)!!+38;<;976569>EMWblu}|sh\OB6+"$,38;<<940-/6BO_n|}oaRE9. (/6;>><72.08EVgysdVH< (/6;>?=9537AO_qy$-39<==;879AM[k{*39==<:769@LZixĿ $09?A?;635Pf *7AGGC<78BTj *7AGGC=9;EVk *7AGHD?;=GWj *7AGHE@<>GUgz *7AGIE@<=ERar )7AGHE@;FQ\hv '4>DEC?:8:@GPZfs $09@BA>;99;@EMWds*3:=?>=;:9;>DLXeu"+27<>?><:9:>FOZgv !)07;99=BIQZgx  )29=??=;;=@DIOZj!+39<>=>>@BFO] "+27;>@@?>==?FR  !)07<@A@=;:;@I   )29>@?=;;Pt !+39<>>=Q "+17;>?u  !)07LX__XK:' (04423=NapyyqbM7" #*.4CZpu`I4"   %()*3G`yr]I7'   %))*3G`zr`M:' #*.4CZqvcM7# (05545>Ocvv`I4#    ,49:87:CQbsr]I7(  ,4:<;97:AN_sr`N<,#   (17:;;978@NbwubM;/+,,(! !*16:;;978ARewr[F94540)  !(06;=<97:CRbs|dN@;;:5.$    )18<=;97:AN_s}gRD>=<70( d !*28;978@NbvwdRF@><83-(# d "*16:;;978AQcr{}wl]PGBA?><963/+'"  !)06;=<97:CP[ceb\UOJIIJKLLKHD?93,&   )18<=;97:?EJMMNQTW[_bcb_ZTME<3+$!+38;<;976569=BIQYahotxzyvqjaWMB8.&$,38;<<94/,-3=IUbnx}ti]QE:0( (/6;>><71,,3>L[jxznaTH=3 (/6;>?=83029EScr}qh~$-39<==:755:DP]ky*39==<9656;DP]jv $09?A?:5228BP^lx '3=CD@:3/2K[l~ *7AGHD=86>;963248@JVeu"+27;=><952149AKWfx !)07;86568=;8535;F  !)07   )18=?>;87Lq !*38<==;P "*17;=>t  !)07LX__XK:' (04423=NapyyqbM7" #*.4CZpu`I4"   %()*3G`yr]I7'   %))*3G`zr`M:' #*.4CZqvcM7# (05545>Ocvv`I4#    ,49:87:CQbsr]I7(  ,4:<;97:AN_sr`N<,#  (17:;;978@NbwubM;/+,,(! !*16:;;978ARewr[F84540( !(06;=<97:CRbs|dN@:;94,!    )18<=;97:AN_s}gRD><:5,! c !*28;978@NbvwdRE>;82*  c "*16:;;978AQcr{}wk]ND=83-&   !)06;=<97:CP[beb[RIA:4/*%    )18<=;97:?DILLJGC>82.*(&$! !+38;<;97579;<<9630//.-*'" $,38;<<94.)'*.254556753/*%   (/6:=>;6.&!!%*.1468;<=<:62-'!  (/6;>>;6.% $).27:=@AA?<84.)#*f$-39;=<83+$#(-26:>ACA>:50*i*39==;83-'" #'+/269=@CDEDB?;61 $09?A?:3,&"!"&*.13569@BDEFECA= (6?EE@8-#$,4;@BB@>=<=>@BDEFEDB )6@FFA7,!'1:BGIIGDA?==>@BCEFFE *7AFFA7,! )3=FLOOMJFC@>=>?ACEGG *7AFFA7,!!*4>GMQRQOLHDA>=>?Iz *7AFFA8," )2>x *7AFFA8,!&/7?FMRUWVTPKFB?> *7AFFA8,!"*19@HNTWYWTPLGC@ *7AFFA8,!$*19AIPVYYXUS^y )7@FFA8,!$*1:CKQVYZYe (6?EFA8-"#*2;CKQVZ\ '4=CD@9/%#*2;CKSY] $09?A?:3+$"*2;ENV\*39<=;72,$"*4>ISZ"*17:<;83,##-8DNV !)06;=<82*"'2=HQ  )18<=;71*#!5o!*28;;:72,$i "*16:;;83,#  !)06;=<82*"   )18<=;71-Ck !*28;;:7K "*16:;;s  !)06;=   )183 2R21o110 /T/.|-D- ,u +@ + *o )< )(n'='&m%;%$g$5#"W"#!q : PĶL5L55555555555ꡀL1L11 1 1 1 1 1 魎Z- Z- ------k )k)))ߡL%L%%%%%%%캞k !k!!!ߡLL뵗c c!"####$c$cĶL5L55555555555ꡀL1L11 1 1 1 1 1 魎Z- Z- ------k )k)))ߡL%L%%%%%%%캞k !k!!!ߡLL뵗c c!"####$c$cĶL5L55555555555ꡀL1L11 1 1 1 1 1 魎Z- Z- ------k )k)))ߡL%L%%%%%%%캞k !k!!!ߡLL뵗c c!"####$c$c>>T==4=߅<%<x;#;{:-:ۋ9C88c7%7ׇ6J5ڭ5Ӏ4H3ڪ3z2ڿK1ҩ"1̈ 0[/״0/ϕ.m- չC, Х , ʂ + پV* ϩ.* Ì) Һg(̯>'ǚ'׿t&ϰH%Ŝ!%վ{ $жL#ʠ!#ؽt"˩=!ջ!ȬZ Խ% &''''((((((((((((((((((((((((''''&&%Z$Z$####"!c cq#q!!!q!#q%%%k% k))g)9 ) 9g&''''((((((((((((((((((((((((''''&&%Z$Z$####"!c cq#q!!!q!#q%%%k% k))g)9 ) 9g&''''((((((((((((((((((((((((''''&&%Z$Z$####"!c cq#q!!!q!#q%%%k% k))g)9 ) 9gYQ@ v(W "A^s~~rdS=%qK% wM g4 y= ~: n!$!K" m##0$@%I &L 'L (@)/*k, J-c/(b1$X3[|#  5Qp"-Fe! &=Zz!  5Po -Fd &' $ɯqQ6" #§gI0 #Ѻ~^A)"˲tU9$ !ĪkL2 !ӽaD, ͵xX<& ƬnO4   ԾdF. ζzZ>'  ǭpQ7"  ԿfI0  θ}]A)  ȰsT9#  iK1  к_B*ʱtU9# ¨iK1Ѻ~^@) ɰrR6! eF-ζxX;$  '@]~4Pp )Ba5Qs (Aa2Op %=] .Ij!8Vx (Bc1Mo!9X{ 'Ac -Il2Qu6W| :["<^#=_#=`"<^!:\7X~4Ty 0Os ,Il 'Bd";[~4Rt ,Hi &?^5Su -Hh %=\}2Op )Bb  6St +Ed !7Ss  +Ca   4Nm  '=Yw .Fb !5Mi &:So*?Wr -BZt /C[t  0D[s!  /CYq! .@Vl" ,=Qf|# (8K_s$ $2CUgy% +9IYiy& #/EKPT+ $)-14- . /1ĪjK0й}\?' ƭnN3Ҽ_A( ȯpO4ӽ_@( ȯoN2Ҽ~]>& ǬkK/иzX:" èeD* ̳rO2Խ~Z:"ƪdB' ͲlI, ӹsO0 ׾yS3¢|V6ã~X7ä~X7¢}W6zU4ռvQ2 ѷqM/ ̱kH+ ƫdB' \<#иwT5ɯmK/ bB( йzW9!ɯnL0aB( ζwU7!ūiI. к}[=% ƭmM1Ϲ~]?' êlM2ʴzZ>& мfI0«qS8#  ưz\A* ȴdH0  ɶiN6" ɷmR:& ɷoU=)ǵoV?+ ijnV?, lT?, ɺhQ=+ xbM9) o[G5& ƼvcQ?/" ǿvfVF6)  ¾qcUG9-! "碤uj]PD8-# #}|ytmf]SH>4*! $WXYXVSOJC<5-% %6787630,(# & ( )+,@@ Background!?2 "     %$#"###I#Y#i#y@@qsynth-0.6.1/src/images/PaxHeaders.5367/accept1.png0000644000000000000000000000013213577702221016615 xustar0030 mtime=1577026705.841992838 30 atime=1577026705.841992838 30 ctime=1577026705.841992838 qsynth-0.6.1/src/images/accept1.png0000644000175000001440000000027313577702221017444 0ustar00rncbcusers00000000000000PNG  IHDRasRGBuIDAT8 D#u]Ùt&U04J?{ ;/~BLD0@hd l dp header file. */ #undef HAVE_FCNTL_H /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you have the `m' library (-lm). */ #undef HAVE_LIBM /* Define to 1 if you have the `X11' library (-lX11). */ #undef HAVE_LIBX11 /* Define to 1 if you have the `Xext' library (-lXext). */ #undef HAVE_LIBXEXT /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have the header file. */ #undef HAVE_SIGNAL_H /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the `system' function. */ #undef HAVE_SYSTEM /* Define to 1 if you have the header file. */ #undef HAVE_SYS_IOCTL_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have that is POSIX.1 compatible. */ #undef HAVE_SYS_WAIT_H /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the home page for this package. */ #undef PACKAGE_URL /* Define to the version of this package. */ #undef PACKAGE_VERSION /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS qsynth-0.6.1/src/PaxHeaders.5367/qsynthChannelsForm.h0000644000000000000000000000013213577702221017321 xustar0030 mtime=1577026705.843992838 30 atime=1577026705.843992838 30 ctime=1577026705.843992838 qsynth-0.6.1/src/qsynthChannelsForm.h0000644000175000001440000000472113577702221020152 0ustar00rncbcusers00000000000000// qsynthChannelsForm.h // /**************************************************************************** Copyright (C) 2003-2019, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. *****************************************************************************/ #ifndef __qsynthChannelsForm_h #define __qsynthChannelsForm_h #include "ui_qsynthChannelsForm.h" #include // Forward declarations. class qsynthOptions; class qsynthEngine; class qsynthChannelsItem; class QPixmap; //---------------------------------------------------------------------------- // qsynthChannelsForm -- UI wrapper form. class qsynthChannelsForm : public QWidget { Q_OBJECT public: // Constructor. qsynthChannelsForm(QWidget *pParent = 0, Qt::WindowFlags wflags = 0); // Destructor. ~qsynthChannelsForm(); void setup(qsynthOptions *pOptions, qsynthEngine *pEngine, bool bPreset); void setChannelOn(int iChan, bool bOn); void resetAllChannels(bool bPreset); void updateChannel(int iChan); public slots: void itemActivated(QTreeWidgetItem*,int); void changePreset(const QString& sPreset); void savePreset(); void deletePreset(); void editSelectedChannel(); void unsetSelectedChannel(); void updateAllChannels(); void contextMenuRequested(const QPoint&); protected: void showEvent(QShowEvent *); void hideEvent(QHideEvent *); void stabilizeForm(); void resetPresets(); private: // The Qt-designer UI struct... Ui::qsynthChannelsForm m_ui; // Instance variables. int m_iChannels; qsynthChannelsItem **m_ppChannels; qsynthOptions *m_pOptions; qsynthEngine *m_pEngine; fluid_synth_t *m_pSynth; int m_iDirtySetup; int m_iDirtyCount; QPixmap *m_pXpmLedOn; QPixmap *m_pXpmLedOff; }; #endif // __qsynthChannelsForm_h // end of qsynthChannelsForm.h qsynth-0.6.1/src/PaxHeaders.5367/qsynthTabBar.cpp0000644000000000000000000000013213577702221016430 xustar0030 mtime=1577026705.847992838 30 atime=1577026705.847992838 30 ctime=1577026705.847992838 qsynth-0.6.1/src/qsynthTabBar.cpp0000644000175000001440000000566613577702221017272 0ustar00rncbcusers00000000000000// qsynthTabBar.cpp // /**************************************************************************** Copyright (C) 2003-2019, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. *****************************************************************************/ #include "qsynthTabBar.h" #include "qsynthEngine.h" #include #include // Common icon set. static int g_iIconRefCount = 0; static QIcon *g_pIconLedOn = nullptr; static QIcon *g_pIconLedOff = nullptr; //------------------------------------------------------------------------- // qsynthTabBar - Instance tab widget class. // // Constructor. qsynthTabBar::qsynthTabBar ( QWidget *pParent ) : QTabBar(pParent) { QTabBar::setShape(QTabBar::RoundedSouth); if (++g_iIconRefCount == 1) { g_pIconLedOn = new QIcon(":/images/ledon1.png"); g_pIconLedOff = new QIcon(":/images/ledoff1.png"); } } // Destructor. qsynthTabBar::~qsynthTabBar (void) { if (--g_iIconRefCount == 0) { delete g_pIconLedOn; delete g_pIconLedOff; g_pIconLedOn = nullptr; g_pIconLedOff = nullptr; } } // Engine accessor. qsynthEngine *qsynthTabBar::engine ( int iTab ) const { return static_cast (QTabBar::tabData(iTab).value()); } // Current engine accessor. qsynthEngine *qsynthTabBar::currentEngine (void) const { return engine(QTabBar::currentIndex()); } // Engine adder. int qsynthTabBar::addEngine ( qsynthEngine *pEngine ) { int iTab = QTabBar::addTab(*g_pIconLedOff, pEngine->name()); if (iTab >= 0) { QTabBar::setTabData(iTab, qVariantFromValue(static_cast (pEngine))); } return iTab; } // Engine removal. void qsynthTabBar::removeEngine ( int iTab ) { qsynthEngine *pEngine = engine(iTab); if (pEngine) delete pEngine; QTabBar::removeTab(iTab); } // Engine tab icon accessor. void qsynthTabBar::setOn ( int iTab, bool bOn ) { QTabBar::setTabIcon(iTab, bOn ? *g_pIconLedOn : *g_pIconLedOff); } // Context menu event. void qsynthTabBar::contextMenuEvent ( QContextMenuEvent *pContextMenuEvent ) { int iTab = QTabBar::tabAt(pContextMenuEvent->pos()); if (iTab >= 0) QTabBar::setCurrentIndex(iTab); // Emit context menu signal. emit contextMenuRequested(iTab, pContextMenuEvent->globalPos()); } // end of qsynthTabBar.cpp qsynth-0.6.1/src/PaxHeaders.5367/qsynthAboutForm.ui0000644000000000000000000000013213577702221017026 xustar0030 mtime=1577026705.842992838 30 atime=1577026705.842992838 30 ctime=1577026705.842992838 qsynth-0.6.1/src/qsynthAboutForm.ui0000644000175000001440000000756013577702221017663 0ustar00rncbcusers00000000000000 rncbc aka Rui Nuno Capela qsynth - A fluidsynth Qt GUI Interface. Copyright (C) 2003-2019, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. qsynthAboutForm 0 0 520 280 About :/images/about1.png true 4 4 Qt::Horizontal 8 8 &Close Qt::TabFocus About Qt :/images/qtlogo1.png Qt::Vertical 8 8 1 false true true :/images/qsynth.png Qt::AlignCenter false 2 AboutTextView AboutQtButton ClosePushButton qsynth-0.6.1/src/PaxHeaders.5367/qsynthChannels.cpp0000644000000000000000000000013213577702221017030 xustar0030 mtime=1577026705.842992838 30 atime=1577026705.842992838 30 ctime=1577026705.842992838 qsynth-0.6.1/src/qsynthChannels.cpp0000644000175000001440000000354513577702221017664 0ustar00rncbcusers00000000000000// qsynthChannels.cpp // /**************************************************************************** Copyright (C) 2003-2006, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. *****************************************************************************/ #include "qsynthAbout.h" #include "qsynthChannels.h" //------------------------------------------------------------------------- // qsynthChannelsItem - Channel view item class. // // Constructor. qsynthChannelsItem::qsynthChannelsItem ( QTreeWidget *pParent ) : QTreeWidgetItem(pParent) { } // Default Destructor. qsynthChannelsItem::~qsynthChannelsItem (void) { } // Special column sorting virtual comparator. // Sort/compare overriden method. bool qsynthChannelsItem::operator< (const QTreeWidgetItem& other) const { int iColumn = QTreeWidgetItem::treeWidget()->sortColumn(); const QString& s1 = text(iColumn); const QString& s2 = other.text(iColumn); if (iColumn == QSYNTH_CHANNELS_CHAN || iColumn == QSYNTH_CHANNELS_BANK || iColumn == QSYNTH_CHANNELS_PROG || iColumn == QSYNTH_CHANNELS_SFID) { return (s1.toInt() < s2.toInt()); } else { return (s1 < s2); } } // end of qsynthChannels.cpp qsynth-0.6.1/src/PaxHeaders.5367/src.pri.in0000644000000000000000000000013213577702221015232 xustar0030 mtime=1577026705.847992838 30 atime=1577026705.847992838 30 ctime=1577026705.847992838 qsynth-0.6.1/src/src.pri.in0000644000175000001440000000060313577702221016056 0ustar00rncbcusers00000000000000# qsynth.pri # PREFIX = @ac_prefix@ BINDIR = @ac_bindir@ LIBDIR = @ac_libdir@ DATADIR = @ac_datadir@ MANDIR = @ac_mandir@ VERSION = @ac_version@ CONFIG += @ac_debug@ INCLUDEPATH += @ac_incpath@ LIBS += @ac_libs@ # Extra optimization flags QMAKE_CXXFLAGS += @ac_cflags@ QMAKE_LFLAGS += @ac_ldflags@ # Network support QNETWORK = @ac_qnetwork@ !isEmpty(QNETWORK) { QT += network } qsynth-0.6.1/src/PaxHeaders.5367/qsynthMessagesForm.ui0000644000000000000000000000013213577702221017523 xustar0030 mtime=1577026705.845992838 30 atime=1577026705.845992838 30 ctime=1577026705.845992838 qsynth-0.6.1/src/qsynthMessagesForm.ui0000644000175000001440000000416013577702221020351 0ustar00rncbcusers00000000000000 rncbc aka Rui Nuno Capela qsynth - A fluidsunth Qt GUI Interface. Copyright (C) 2003-2019, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. qsynthMessagesForm 0 0 520 240 Messages :/images/messages1.png 320 80 Messages output log QTextEdit::NoWrap true false MessagesTextView qsynth-0.6.1/src/PaxHeaders.5367/qsynthSetup.cpp0000644000000000000000000000013213577702221016375 xustar0030 mtime=1577026705.846992838 30 atime=1577026705.846992838 30 ctime=1577026705.846992838 qsynth-0.6.1/src/qsynthSetup.cpp0000644000175000001440000001667413577702221017240 0ustar00rncbcusers00000000000000// qsynthSetup.cpp // /**************************************************************************** Copyright (C) 2003-2019, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. *****************************************************************************/ #include "qsynthAbout.h" #include "qsynthSetup.h" #include //------------------------------------------------------------------------- // qsynthSetup - Prototype settings structure. // // Constructor. qsynthSetup::qsynthSetup (void) { m_pFluidSettings = nullptr; sDefPresetName = QObject::tr("(default)"); } // Default Destructor. qsynthSetup::~qsynthSetup (void) { if (m_pFluidSettings) ::delete_fluid_settings(m_pFluidSettings); m_pFluidSettings = nullptr; } // Fluidsynth settings accessor. fluid_settings_t *qsynthSetup::fluid_settings (void) { return m_pFluidSettings; } //------------------------------------------------------------------------- // Settings cache realization. // void qsynthSetup::realize (void) { if (m_pFluidSettings) ::delete_fluid_settings(m_pFluidSettings); m_pFluidSettings = ::new_fluid_settings(); // The 'groups' setting is only relevant for LADSPA operation // If not given, set number groups to number of audio channels, because // they are the same (there is nothing between synth output and 'sound card') if ((iAudioGroups == 0) && (iAudioChannels != 0)) iAudioGroups = iAudioChannels; // We'll need these to avoid pedandic compiler warnings... char *pszKey; #if FLUIDSYNTH_VERSION_MAJOR < 2 char *pszVal; #endif // First we'll force all other conmmand line options... if (!sMidiDriver.isEmpty()) { pszKey = (char *) "midi.driver"; ::fluid_settings_setstr(m_pFluidSettings, pszKey, sMidiDriver.toLocal8Bit().data()); } if (sMidiDriver == "alsa_seq" || sMidiDriver == "coremidi") { QString sKey = "midi." + sMidiDriver + ".id"; if (!sMidiName.isEmpty()) { ::fluid_settings_setstr(m_pFluidSettings, sKey.toLocal8Bit().data(), sMidiName.toLocal8Bit().data()); } } else if (!sMidiDevice.isEmpty()) { QString sMidiKey = "midi."; if (sMidiDriver == "alsa_raw") sMidiKey += "alsa"; else sMidiKey += sMidiDriver; sMidiKey += ".device"; ::fluid_settings_setstr(m_pFluidSettings, sMidiKey.toLocal8Bit().data(), sMidiDevice.toLocal8Bit().data()); } if (!sAudioDriver.isEmpty()) { pszKey = (char *) "audio.driver"; ::fluid_settings_setstr(m_pFluidSettings, pszKey, sAudioDriver.toLocal8Bit().data()); } if (!sAudioDevice.isEmpty()) { QString sAudioKey = "audio." + sAudioDriver + '.'; if (sAudioDriver == "file") sAudioKey += "name"; else sAudioKey += "device"; ::fluid_settings_setstr(m_pFluidSettings, sAudioKey.toLocal8Bit().data(), sAudioDevice.toLocal8Bit().data()); } if (!sJackName.isEmpty()) { pszKey = (char *) "audio.jack.id"; ::fluid_settings_setstr(m_pFluidSettings, pszKey, sJackName.toLocal8Bit().data()); } pszKey = (char *) "audio.jack.autoconnect"; ::fluid_settings_setint(m_pFluidSettings, pszKey, int(bJackAutoConnect)); pszKey = (char *) "audio.jack.multi"; #if FLUIDSYNTH_VERSION_MAJOR < 2 pszVal = (char *) (bJackMulti ? "yes" : "no"); ::fluid_settings_setstr(m_pFluidSettings, pszKey, pszVal); #else ::fluid_settings_setint(m_pFluidSettings, pszKey, int(bJackMulti)); #endif if (!sSampleFormat.isEmpty()) { pszKey = (char *) "audio.sample-format"; ::fluid_settings_setstr(m_pFluidSettings, pszKey, sSampleFormat.toLocal8Bit().data()); } if (iAudioBufSize > 0) { pszKey = (char *) "audio.period-size"; ::fluid_settings_setint(m_pFluidSettings, pszKey, iAudioBufSize); } if (iAudioBufCount > 0) { pszKey = (char *) "audio.periods"; ::fluid_settings_setint(m_pFluidSettings, pszKey, iAudioBufCount); } if (iMidiChannels > 0) { pszKey = (char *) "synth.midi-channels"; ::fluid_settings_setint(m_pFluidSettings, pszKey, iMidiChannels); } pszKey = (char *) "synth.midi-bank-select"; ::fluid_settings_setstr(m_pFluidSettings, pszKey, sMidiBankSelect.toLocal8Bit().data()); if (iAudioChannels > 0) { pszKey = (char *) "synth.audio-channels"; ::fluid_settings_setint(m_pFluidSettings, pszKey, iAudioChannels); } if (iAudioGroups > 0) { pszKey = (char *) "synth.audio-groups"; ::fluid_settings_setint(m_pFluidSettings, pszKey, iAudioGroups); } if (fSampleRate > 0.0f) { pszKey = (char *) "synth.sample-rate"; ::fluid_settings_setnum(m_pFluidSettings, pszKey, double(fSampleRate)); } if (iPolyphony > 0) { pszKey = (char *) "synth.polyphony"; ::fluid_settings_setint(m_pFluidSettings, pszKey, iPolyphony); } // Gain is set on realtime (don't need to set it here) // if (fGain > 0.0f) { // pszKey = (char *) "synth.gain"; // ::fluid_settings_setnum(m_pFluidSettings, pszKey, // double(fGain)); // } pszKey = (char *) "synth.reverb.active"; #if FLUIDSYNTH_VERSION_MAJOR < 2 pszVal = (char *) (bReverbActive ? "yes" : "no"); ::fluid_settings_setstr(m_pFluidSettings, pszKey, pszVal); #else ::fluid_settings_setint(m_pFluidSettings, pszKey, int(bReverbActive)); #endif pszKey = (char *) "synth.chorus.active"; #if FLUIDSYNTH_VERSION_MAJOR < 2 pszVal = (char *) (bChorusActive ? "yes" : "no"); ::fluid_settings_setstr(m_pFluidSettings, pszKey, pszVal); #else ::fluid_settings_setint(m_pFluidSettings, pszKey, int(bChorusActive)); #endif pszKey = (char *) "synth.ladspa.active"; #if FLUIDSYNTH_VERSION_MAJOR < 2 pszVal = (char *) (bLadspaActive ? "yes" : "no"); ::fluid_settings_setstr(m_pFluidSettings, pszKey, pszVal); #else ::fluid_settings_setint(m_pFluidSettings, pszKey, int(bLadspaActive)); #endif pszKey = (char *) "synth.dump"; #if FLUIDSYNTH_VERSION_MAJOR < 2 pszVal = (char *) (bMidiDump ? "yes" : "no"); ::fluid_settings_setstr(m_pFluidSettings, pszKey, pszVal); #else ::fluid_settings_setint(m_pFluidSettings, pszKey, int(bMidiDump)); #endif pszKey = (char *) "synth.verbose"; #if FLUIDSYNTH_VERSION_MAJOR < 2 pszVal = (char *) (bVerbose ? "yes" : "no"); ::fluid_settings_setstr(m_pFluidSettings, pszKey, pszVal); #else ::fluid_settings_setint(m_pFluidSettings, pszKey, int(bVerbose)); #endif // Last we set user supplied options... QStringListIterator iter(options); while (iter.hasNext()) { const QString sOpt = iter.next(); const QString sKey = sOpt.section('=', 0, 0); const QString sVal = sOpt.section('=', 1, 1); QByteArray tmp = sKey.toLocal8Bit(); pszKey = tmp.data(); switch (::fluid_settings_get_type(m_pFluidSettings, pszKey)) { case FLUID_NUM_TYPE: ::fluid_settings_setnum(m_pFluidSettings, pszKey, sVal.toFloat()); break; case FLUID_INT_TYPE: ::fluid_settings_setint(m_pFluidSettings, pszKey, sVal.toInt()); break; case FLUID_STR_TYPE: default: ::fluid_settings_setstr(m_pFluidSettings, pszKey, sVal.toLocal8Bit().data()); break; } } } // end of qsynthSetup.cpp qsynth-0.6.1/src/PaxHeaders.5367/qsynthEngine.cpp0000644000000000000000000000013213577702221016502 xustar0030 mtime=1577026705.844992838 30 atime=1577026705.844992838 30 ctime=1577026705.844992838 qsynth-0.6.1/src/qsynthEngine.cpp0000644000175000001440000000442713577702221017336 0ustar00rncbcusers00000000000000// qsynthEngine.cpp // /**************************************************************************** Copyright (C) 2003-2019, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. *****************************************************************************/ #include "qsynthEngine.h" //------------------------------------------------------------------------- // qsynthEngine - Meta-fluidsynth engine structure class. // // Constructor. qsynthEngine::qsynthEngine ( qsynthOptions *pOptions, const QString& sName ) { // We're the default (first) engine whether we've given a name... m_bDefault = sName.isEmpty(); if (m_bDefault) { m_pSetup = pOptions->defaultSetup(); } else { m_pSetup = new qsynthSetup(); pOptions->loadSetup(m_pSetup, sName); } // From now on, we must have a name. m_sName = m_pSetup->sDisplayName; pSynth = nullptr; pAudioDriver = nullptr; pMidiRouter = nullptr; pMidiDriver = nullptr; pPlayer = nullptr; pServer = nullptr; iMidiEvent = 0; iMidiState = 0; bMeterEnabled = false; fMeterValue[0] = 0.0f; fMeterValue[1] = 0.0f; } // Default destructor. qsynthEngine::~qsynthEngine (void) { if (!m_bDefault && m_pSetup) { delete m_pSetup; m_pSetup = nullptr; } } // Engine predicate. bool qsynthEngine::isDefault (void) const { return m_bDefault; } // Engine setup accessor. qsynthSetup *qsynthEngine::setup (void) { return m_pSetup; } // Engine name accessors. const QString& qsynthEngine::name (void) const { return m_sName; } void qsynthEngine::setName ( const QString& sName ) { m_sName = sName; } // end of qsynthEngine.cpp qsynth-0.6.1/src/PaxHeaders.5367/qsynth.h0000644000000000000000000000013213577702221015021 xustar0030 mtime=1577026705.842992838 30 atime=1577026705.842992838 30 ctime=1577026705.842992838 qsynth-0.6.1/src/qsynth.h0000644000175000001440000000566013577702221015655 0ustar00rncbcusers00000000000000// qsynth.h // /**************************************************************************** Copyright (C) 2003-2019, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. *****************************************************************************/ #ifndef __qsynth_h #define __qsynth_h #include "qsynthAbout.h" #include #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) #if defined(Q_WS_X11) #define CONFIG_X11 #endif #else #if defined(QT_X11EXTRAS_LIB) #define CONFIG_X11 #endif #endif // Forward decls. class QWidget; class QTranslator; #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) #ifdef CONFIG_XUNIQUE #ifdef CONFIG_X11 #include typedef unsigned long Window; typedef unsigned long Atom; #endif // CONFIG_X11 #endif // CONFIG_XUNIQUE #else #ifdef CONFIG_XUNIQUE class QSharedMemory; class QLocalServer; #endif // CONFIG_XUNIQUE #endif //------------------------------------------------------------------------- // Singleton application instance stuff (Qt/X11 only atm.) // class qsynthApplication : public QApplication { Q_OBJECT public: // Constructor. qsynthApplication(int& argc, char **argv); // Destructor. ~qsynthApplication(); // Main application widget accessors. void setMainWidget(QWidget *pWidget); QWidget *mainWidget() const { return m_pWidget; } // Check if another instance is running, // and raise its proper main widget... bool setup(); #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) #ifdef CONFIG_XUNIQUE #ifdef CONFIG_X11 void x11PropertyNotify(Window w); bool x11EventFilter(XEvent *pEv) #endif // CONFIG_X11 #endif // CONFIG_XUNIQUE #else #ifdef CONFIG_XUNIQUE protected slots: // Local server slots. void newConnectionSlot(); void readyReadSlot(); #endif // CONFIG_XUNIQUE #endif private: // Translation support. QTranslator *m_pQtTranslator; QTranslator *m_pMyTranslator; // Instance variables. QWidget *m_pWidget; #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) #ifdef CONFIG_XUNIQUE #ifdef CONFIG_X11 Display *m_pDisplay; Atom m_aUnique; Window m_wOwner; #endif // CONFIG_X11 #endif // CONFIG_XUNIQUE #else #ifdef CONFIG_XUNIQUE QString m_sUnique; QSharedMemory *m_pMemory; QLocalServer *m_pServer; #endif // CONFIG_XUNIQUE #endif }; #endif // __qsynth_h // end of qsynth.h qsynth-0.6.1/src/PaxHeaders.5367/qsynthMainForm.ui0000644000000000000000000000013213577702221016640 xustar0030 mtime=1577026705.845992838 30 atime=1577026705.845992838 30 ctime=1577026705.845992838 qsynth-0.6.1/src/qsynthMainForm.ui0000644000175000001440000007735113577702221017502 0ustar00rncbcusers00000000000000 rncbc aka Rui Nuno Capela qsynth - A fluidsynth Qt GUI Interface. Copyright (C) 2003-2019, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. qsynthMainForm 0 0 749 192 :/images/qsynth.png 75 true Master 4 4 50 false &Gain Qt::AlignCenter false GainSpinBox 50 false Master Gain 200 Qt::Horizontal 20.0 true 50 false Master Gain Qt::AlignHCenter 200 Complete engine restart Re&start :/images/restart1.png 75 true Reverb 4 4 0 20 50 false Reverb effect activation Ac&tive 50 false Reverb Level Qt::AlignHCenter 100 50 false Reverb Level 100 Qt::Horizontal 10.0 true 50 false &Level Qt::AlignCenter false ReverbLevelSpinBox 50 false Reverb Width Qt::AlignHCenter 100 50 false &Width Qt::AlignCenter false ReverbWidthSpinBox 50 false Reverb Width 100 Qt::Horizontal 10.0 true 50 false Reverb Damp Factor Qt::AlignHCenter 100 50 false D&amp Qt::AlignCenter false ReverbDampSpinBox 50 false Reverb Damp Factor 100 Qt::Horizontal 10.0 true 50 false Reverb Room Size Qt::AlignHCenter 120 50 false R&oom Qt::AlignCenter false ReverbRoomSpinBox 50 false Reverb Room Size 120 Qt::Horizontal 10.0 true 75 true Chorus 4 4 0 20 50 false Chorus Modulation Type Sine Triangle 0 20 50 false T&ype: Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter false ChorusTypeComboBox 0 20 50 false Chorus effect activation Act&ive 50 false Number of Chorus Stages 99 Qt::Horizontal 10.0 true 50 false &N Qt::AlignCenter false ChorusNrSpinBox 50 false Number of Chorus Stages Qt::AlignHCenter 99 50 false Chorus Level 100 Qt::Horizontal 10.0 true 50 false Le&vel Qt::AlignCenter false ChorusLevelSpinBox 50 false Chorus Level Qt::AlignHCenter 100 50 false Chorus Speed (Hz) 30 500 Qt::Horizontal 10.0 true 50 false Chorus Speed Hz Spee&d Qt::AlignCenter false ChorusSpeedSpinBox 50 false Chorus Speed (Hz) Qt::AlignHCenter 30 500 50 false Chorus Depth (ms) 210 Qt::Horizontal 10.0 true 50 false Dept&h Qt::AlignCenter false ChorusDepthSpinBox 50 false Chorus Depth (ms) Qt::AlignHCenter 210 4 4 Output peak level 8 4 Quit this application &Quit :/images/quit1.png false Show general options dialog &Options... :/images/options1.png false Show/hide the messages log window &Messages :/images/messages1.png true false Show information about this application A&bout... :/images/about1.png false Qt::Vertical QSizePolicy::Expanding 8 8 System reset &Panic :/images/panic1.png Program reset (all channels) &Reset :/images/reset1.png Show instance settings and configuration dialog Set&up... :/images/setup1.png false Show/hide the channels view window &Channels :/images/channels1.png true false 4 0 22 22 24 24 Qt::NoFocus Add a new engine :/images/add1.png Qt::StrongFocus Engine selector (right-click for menu) Qt::Horizontal QSizePolicy::Expanding 8 8 22 22 24 24 Qt::NoFocus Delete current engine :/images/remove1.png QTabBar QWidget
qtabbar.h
1
qsynthKnob QDial
qsynthKnob.h
qsynthTabBar QTabBar
qsynthTabBar.h
1
qsynthMeter QWidget
qsynthMeter.h
SetupPushButton GainDial GainSpinBox RestartPushButton SystemResetPushButton ProgramResetPushButton ChannelsPushButton ReverbRoomDial ReverbRoomSpinBox ReverbDampDial ReverbDampSpinBox ReverbWidthDial ReverbWidthSpinBox ReverbLevelDial ReverbLevelSpinBox ReverbActiveCheckBox ChorusNrDial ChorusNrSpinBox ChorusLevelDial ChorusLevelSpinBox ChorusSpeedDial ChorusSpeedSpinBox ChorusDepthDial ChorusDepthSpinBox ChorusActiveCheckBox ChorusTypeComboBox QuitPushButton OptionsPushButton MessagesPushButton AboutPushButton
qsynth-0.6.1/src/PaxHeaders.5367/qsynthPresetForm.ui0000644000000000000000000000013213577702221017216 xustar0030 mtime=1577026705.846992838 30 atime=1577026705.846992838 30 ctime=1577026705.846992838 qsynth-0.6.1/src/qsynthPresetForm.ui0000644000175000001440000001372613577702221020054 0ustar00rncbcusers00000000000000 rncbc aka Rui Nuno Capela qsynth - A fluidsynth Qt GUI Interface. Copyright (C) 2003-2019, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. qsynthPresetForm 0 0 520 320 Channel Preset :/images/preset1.png true 8 4 Qt::Horizontal QDialogButtonBox::Cancel|QDialogButtonBox::Ok QTabWidget::Rounded Preset 8 4 Qt::Horizontal 20 0 80 32767 Bank selector true 4 false true false true true Bank Program selector true 4 false true false true true Prog Name SFID Soundfont Whether to preview the current selection Preview PresetTabWidget BankListView ProgListView PreviewCheckBox DialogButtonBox qsynth-0.6.1/src/PaxHeaders.5367/qsynthPaletteForm.h0000644000000000000000000000013213577702221017164 xustar0030 mtime=1577026705.846992838 30 atime=1577026705.846992838 30 ctime=1577026705.846992838 qsynth-0.6.1/src/qsynthPaletteForm.h0000644000175000001440000001561513577702221020021 0ustar00rncbcusers00000000000000// qsynthPaletteForm.h // /**************************************************************************** Copyright (C) 2005-2019, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. *****************************************************************************/ #ifndef __qsynthPaletteForm_h #define __qsynthPaletteForm_h #include #include #include #include #include #include // Forward decls. class QListView; class QLabel; class QToolButton; //------------------------------------------------------------------------- // qsynthPaletteForm namespace Ui { class qsynthPaletteForm; } class qsynthPaletteForm: public QDialog { Q_OBJECT public: qsynthPaletteForm(QWidget *parent = nullptr, const QPalette& pal = QPalette()); virtual ~qsynthPaletteForm(); void setPalette(const QPalette& pal); const QPalette& palette() const; void setSettings(QSettings *settings, bool owner = false); QSettings *settings() const; void setPaletteName(const QString& name); QString paletteName() const; bool isDirty() const; static QStringList namedPaletteList(QSettings *settings); static bool namedPalette(QSettings *settings, const QString& name, QPalette& pal, bool fixup = false); static QPalette::ColorRole colorRole(const QString& name); class PaletteModel; class ColorDelegate; class ColorButton; class ColorEditor; class RoleEditor; protected slots: void nameComboActivated(const QString& name); void nameComboChanged(const QString& name); void saveButtonClicked(); void deleteButtonClicked(); void generateButtonChanged(); void resetButtonClicked(); void detailsCheckClicked(); void importButtonClicked(); void exportButtonClicked(); void paletteChanged(const QPalette& pal); void accept(); void reject(); protected: void setPalette(const QPalette& pal, const QPalette& parentPal); bool namedPalette(const QString& name, QPalette& pal); void saveNamedPalette(const QString& name, const QPalette& pal); void deleteNamedPalette(const QString& name); QStringList namedPaletteList(); void updateNamedPaletteList(); void updateGenerateButton(); void updateDialogButtons(); void setDefaultDir(const QString& dir); QString defaultDir() const; void setShowDetails(bool on); bool isShowDetails() const; void showEvent(QShowEvent *event); void resizeEvent(QResizeEvent *event); private: Ui::qsynthPaletteForm *p_ui; Ui::qsynthPaletteForm& m_ui; QSettings *m_settings; bool m_owner; QPalette m_palette; QPalette m_parentPalette; PaletteModel *m_paletteModel; bool m_modelUpdated; bool m_paletteUpdated; int m_dirtyCount; int m_dirtyTotal; }; //------------------------------------------------------------------------- // qsynthPaletteForm::PaletteModel class qsynthPaletteForm::PaletteModel : public QAbstractTableModel { Q_OBJECT Q_PROPERTY(QPalette::ColorRole colorRole READ colorRole) public: PaletteModel(QObject *parent = nullptr); int rowCount(const QModelIndex &parent = QModelIndex()) const; int columnCount(const QModelIndex &parent = QModelIndex()) const; QVariant data(const QModelIndex &index, int role) const; bool setData(const QModelIndex &index, const QVariant &value, int role); Qt::ItemFlags flags(const QModelIndex &index) const; QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; void setPalette(const QPalette &palette, const QPalette &parentPalette); const QPalette& palette() const; void setGenerate(bool on) { m_generate = on; } QPalette::ColorRole colorRole() const { return QPalette::NoRole; } signals: void paletteChanged(const QPalette &palette); protected: QPalette::ColorGroup columnToGroup(int index) const; int groupToColumn(QPalette::ColorGroup group) const; private: QPalette m_palette; QPalette m_parentPalette; QMap m_roleNames; int m_nrows; bool m_generate; }; //------------------------------------------------------------------------- // qsynthPaletteForm::ColorDelegate class qsynthPaletteForm::ColorDelegate : public QItemDelegate { public: ColorDelegate(QObject *parent = nullptr) : QItemDelegate(parent) {} QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem& option, const QModelIndex& index) const; void setEditorData(QWidget *editor, const QModelIndex& index) const; void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex& index) const; void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem& option, const QModelIndex &index) const; virtual void paint(QPainter *painter, const QStyleOptionViewItem& option, const QModelIndex& index) const; virtual QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const; }; //------------------------------------------------------------------------- // qsynthPaletteForm::ColorButton class qsynthPaletteForm::ColorButton : public QPushButton { Q_OBJECT Q_PROPERTY(QBrush brush READ brush WRITE setBrush) public: ColorButton (QWidget *parent = nullptr); const QBrush& brush() const; void setBrush(const QBrush& b); signals: void changed(); protected slots: void chooseColor(); protected: void paintEvent(QPaintEvent *event); private: QBrush m_brush; }; //------------------------------------------------------------------------- // PaleteEditor::ColorEditor class qsynthPaletteForm::ColorEditor : public QWidget { Q_OBJECT public: ColorEditor(QWidget *parent = nullptr); void setColor(const QColor &color); QColor color() const; bool changed() const; signals: void changed(QWidget *widget); protected slots: void colorChanged(); private: qsynthPaletteForm::ColorButton *m_button; bool m_changed; }; //------------------------------------------------------------------------- // PaleteEditor::RoleEditor class qsynthPaletteForm::RoleEditor : public QWidget { Q_OBJECT public: RoleEditor(QWidget *parent = nullptr); void setLabel(const QString &label); void setEdited(bool on); bool edited() const; signals: void changed(QWidget *widget); protected slots: void resetProperty(); private: QLabel *m_label; QToolButton *m_button; bool m_edited; }; #endif // __qsynthPaletteForm_h // end of qsynthPaletteForm.h qsynth-0.6.1/src/PaxHeaders.5367/qsynthMainForm.h0000644000000000000000000000013213577702221016452 xustar0030 mtime=1577026705.845992838 30 atime=1577026705.845992838 30 ctime=1577026705.845992838 qsynth-0.6.1/src/qsynthMainForm.h0000644000175000001440000001237013577702221017302 0ustar00rncbcusers00000000000000// qsynthMainForm.h // /**************************************************************************** Copyright (C) 2003-2019, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. *****************************************************************************/ #ifndef __qsynthMainForm_h #define __qsynthMainForm_h #include "ui_qsynthMainForm.h" #include // Forward declarations class qsynthOptions; class qsynthMessagesForm; class qsynthChannelsForm; #ifdef CONFIG_SYSTEM_TRAY class qsynthSystemTray; #endif class QSocketNotifier; class QSessionManager; class QMimeSource; //---------------------------------------------------------------------------- // qsynthMainForm -- UI wrapper form. class qsynthMainForm : public QWidget { Q_OBJECT public: // Constructor. qsynthMainForm(QWidget *pParent = 0, Qt::WindowFlags wflags = 0); // Destructor. ~qsynthMainForm(); static qsynthMainForm *getInstance(); void setup(qsynthOptions *pOptions); void appendMessages(const QString& sText); void appendMessagesColor(const QString& sText, const QString& sColor); void appendMessagesText(const QString& sText); void appendMessagesError(const QString& sText); bool deleteEngineTab(qsynthEngine *pEngine, int iTab); bool setupEngineTab(qsynthEngine *pEngine, int iTab); void startAllEngines(); bool startEngine(qsynthEngine *pEngine); void stopEngine(qsynthEngine *pEngine); void restartAllEngines(); void restartEngine(qsynthEngine *pEngine); void resetEngine(qsynthEngine *pEngine); enum KnobStyle { Classic, Vokimon, Peppino, Skulpture, Legacy }; void stabilizeForm(); void stabilizeFormEx(); protected slots: void stdoutNotifySlot(int); void sigtermNotifySlot(int); void programReset(); void systemReset(); void promptRestart(); void newEngine(); void deleteEngine(); void toggleMainForm(); void toggleMessagesForm(); void toggleChannelsForm(); void showSetupForm(); void showOptionsForm(); void showAboutForm(); void tabSelect(int); void tabContextMenu(int, const QPoint&); void timerSlot(); void reverbActivate(bool); void chorusActivate(bool); void gainChanged(int); void reverbChanged(int); void chorusChanged(int); void activateEnginesMenu(QAction*); void quitMainForm(); void commitData(QSessionManager& sm); protected: bool queryClose(); void closeEvent(QCloseEvent *pCloseEvent); void appendStdoutBuffer(const QString& sText); void flushStdoutBuffer(); bool stdoutBlock(int fd, bool bBlock) const; void playLoadFiles(qsynthEngine *pEngine, const QStringList& files, bool bSetup); bool decodeDragFiles(const QMimeSource *pEvent, QStringList& files); void dragEnterEvent(QDragEnterEvent *pDragEnterEvent); void dropEvent(QDropEvent *pDropEvent); void updateMessagesFont(); void updateMessagesLimit(); void updateOutputMeters(); #ifdef CONFIG_SYSTEM_TRAY void updateSystemTray(); #endif void updateContextMenu(); qsynthEngine *currentEngine() const; void setEngineGain(qsynthEngine *pEngine, float fGain); void setEngineReverbOn(qsynthEngine *pEngine, bool bActive); void setEngineReverb(qsynthEngine *pEngine, double fRoom, double fDamp, double fWidth, double fLevel); void setEngineChorusOn(qsynthEngine *pEngine, bool bActive); void setEngineChorus(qsynthEngine *pEngine, int iNr, double fLevel, double fSpeed, double fDepth, int iType); void loadPanelSettings(qsynthEngine *pEngine, bool bUpdate); void savePanelSettings(qsynthEngine *pEngine); void resetChannelsForm(qsynthEngine *pEngine, bool fPreset); void resetGain(); void resetReverb(); void resetChorus(); void updateGain(); void updateReverb(); void updateChorus(); void refreshGain(); void refreshReverb(); void refreshChorus(); void contextMenuEvent(QContextMenuEvent *pEvent); void updateKnobs(); private: // The Qt-designer UI struct... Ui::qsynthMainForm m_ui; // Instance variables. qsynthOptions *m_pOptions; int m_iTimerDelay; int m_iCurrentTab; QSocketNotifier *m_pStdoutNotifier; QSocketNotifier *m_pSigtermNotifier; qsynthMessagesForm *m_pMessagesForm; qsynthChannelsForm *m_pChannelsForm; int m_iGainChanged; int m_iReverbChanged; int m_iChorusChanged; int m_iGainUpdated; int m_iReverbUpdated; int m_iChorusUpdated; QString m_sStdoutBuffer; #ifdef CONFIG_SYSTEM_TRAY qsynthSystemTray *m_pSystemTray; int m_iSystemTrayState; bool m_bQuitClose; #endif bool m_bQuitForce; // Common context menu. QMenu m_menu; // Kind-of singleton reference. static qsynthMainForm *g_pMainForm; // Style for qsynthKnob (QDial) widgets QStyle* m_pKnobStyle; }; #endif // __qsynthMainForm_h // end of qsynthMainForm.h qsynth-0.6.1/src/PaxHeaders.5367/qsynthOptions.h0000644000000000000000000000013213577702221016375 xustar0030 mtime=1577026705.846992838 30 atime=1577026705.846992838 30 ctime=1577026705.846992838 qsynth-0.6.1/src/qsynthOptions.h0000644000175000001440000000744013577702221017227 0ustar00rncbcusers00000000000000// qsynthOptions.h // /**************************************************************************** Copyright (C) 2003-2019, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. *****************************************************************************/ #ifndef __qsynthOptions_h #define __qsynthOptions_h #include "qsynthSetup.h" // Forward declarations. class QComboBox; // Former fluidsynth < 2.0 defaults... // #define QSYNTH_MASTER_DEFAULT_GAIN 1.0 #define QSYNTH_REVERB_DEFAULT_ROOMSIZE 0.2 #define QSYNTH_REVERB_DEFAULT_DAMP 0.0 #define QSYNTH_REVERB_DEFAULT_WIDTH 0.5 #define QSYNTH_REVERB_DEFAULT_LEVEL 0.9 #define QSYNTH_CHORUS_DEFAULT_N 3 #define QSYNTH_CHORUS_DEFAULT_LEVEL 2.0 #define QSYNTH_CHORUS_DEFAULT_SPEED 0.3 #define QSYNTH_CHORUS_DEFAULT_DEPTH 8.0 #define QSYNTH_CHORUS_DEFAULT_TYPE 0 //------------------------------------------------------------------------- // qsynthOptions - Prototype settings class. // // Forward declaration. class qsynthEngine; class qsynthOptions { public: // Constructor. qsynthOptions(); // Default destructor. ~qsynthOptions(); // The settings object accessor. QSettings& settings(); // Explicit I/O methods. void loadOptions(); void saveOptions(); // Command line arguments parser. bool parse_args(const QStringList& args); // Command line usage helper. void print_usage(const QString& arg0); // Default instance setup accessor. qsynthSetup *defaultSetup(); // Display options... QString sMessagesFont; bool bMessagesLimit; int iMessagesLimitLines; bool bMessagesLog; QString sMessagesLogPath; bool bQueryClose; bool bKeepOnTop; bool bStdoutCapture; bool bOutputMeters; bool bSystemTray; bool bSystemTrayQueryClose; bool bStartMinimized; int iBaseFontSize; int iKnobStyle; int iKnobMotion; QString sCustomColorTheme; QString sCustomStyleTheme; // Default options... QString sSoundFontDir; bool bPresetPreview; // Available custom engines list. QStringList engines; // Engine management methods. void newEngine(qsynthEngine *pEngine); bool renameEngine(qsynthEngine *pEngine); void deleteEngine(qsynthEngine *pEngine); // Setup registry methods. void loadSetup(qsynthSetup *pSetup, const QString& sName); void saveSetup(qsynthSetup *pSetup, const QString& sName); // Preset management methods. bool loadPreset(qsynthEngine *pEngine, const QString& sPreset); bool savePreset(qsynthEngine *pEngine, const QString& sPreset); bool deletePreset(qsynthEngine *pEngine, const QString& sPreset); // Combo box history persistence helper prototypes. void loadComboBoxHistory(QComboBox *pComboBox, int iLimit = 8); void saveComboBoxHistory(QComboBox *pComboBox, int iLimit = 8); // Widget geometry persistence helper prototypes. void saveWidgetGeometry(QWidget *pWidget, bool bVisible = false); void loadWidgetGeometry(QWidget *pWidget, bool bVisible = false); private: // Settings member variables. QSettings m_settings; // The default setup descriptor. qsynthSetup *m_pDefaultSetup; }; #endif // __qsynthOptions_h // end of qsynthOptions.h qsynth-0.6.1/src/PaxHeaders.5367/appdata0000644000000000000000000000013213577702221014657 xustar0030 mtime=1577026705.841992838 30 atime=1577026705.841992838 30 ctime=1577026705.841992838 qsynth-0.6.1/src/appdata/0000755000175000001440000000000013577702221015561 5ustar00rncbcusers00000000000000qsynth-0.6.1/src/appdata/PaxHeaders.5367/qsynth.appdata.xml0000644000000000000000000000013213577702221020415 xustar0030 mtime=1577026705.841992838 30 atime=1577026705.841992838 30 ctime=1577026705.841992838 qsynth-0.6.1/src/appdata/qsynth.appdata.xml0000644000175000001440000000270413577702221021245 0ustar00rncbcusers00000000000000 org.rncbc.qsynth FSFAP GPL-2.0+ Qsynth A fluidsynth Qt GUI Interface

Qsynth is a fluidsynth GUI front-end application, written in C++ around the Qt framework, using Qt Designer. Eventually it may evolve into a softsynth management application allowing the user to control and manage a variety of command line softsynths.

qsynth.desktop qsynth http://qsynth.sourceforge.io/image/qsynthMainForm1.png The main window showing the application in action Audio MIDI ALSA JACK FluidSynth SoundFont Synthesizer Sampler SF2 Qt https://qsynth.sourceforge.io rncbc.org rncbc aka. Rui Nuno Capela rncbc@rncbc.org
qsynth-0.6.1/src/PaxHeaders.5367/qsynth.desktop0000644000000000000000000000013213577702221016243 xustar0030 mtime=1577026705.842992838 30 atime=1577026705.842992838 30 ctime=1577026705.842992838 qsynth-0.6.1/src/qsynth.desktop0000644000175000001440000000116513577702221017073 0ustar00rncbcusers00000000000000[Desktop Entry] Name=Qsynth Version=1.0 GenericName=FluidSynth GUI GenericName[sr]=Кју-синт GenericName[fr]=Interface graphique pour FluidSynth Comment=Qsynth is a FluidSynth Qt GUI Interface Comment[sr]=Програм за управљање програмом Флуид-синт, у графичком окружењу. Comment[fr]=Interface graphique pour Fluidsynth Exec=qsynth Icon=qsynth Categories=Audio;AudioVideo;Midi;X-Alsa;X-Jack;Qt; Keywords=Audio;MIDI;ALSA;JACK;FluidSynth;SoundFont;Synthesizer;Sampler;SF2;Qt; Terminal=false Type=Application StartupWMClass=qsynth X-Window-Icon=qsynth X-SuSE-translate=true qsynth-0.6.1/src/PaxHeaders.5367/qsynthOptions.cpp0000644000000000000000000000013213577702221016730 xustar0030 mtime=1577026705.846992838 30 atime=1577026705.845992838 30 ctime=1577026705.846992838 qsynth-0.6.1/src/qsynthOptions.cpp0000644000175000001440000010262313577702221017561 0ustar00rncbcusers00000000000000// qsynthOptions.cpp // /**************************************************************************** Copyright (C) 2003-2019, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. *****************************************************************************/ #include "qsynthAbout.h" #include "qsynthOptions.h" #include "qsynthEngine.h" #include #include #include #include //------------------------------------------------------------------------- // qsynthOptions - Prototype settings structure. // // Constructor. qsynthOptions::qsynthOptions (void) : m_settings(QSYNTH_DOMAIN, QSYNTH_TITLE) { // Create default setup descriptor. m_pDefaultSetup = new qsynthSetup(); // Load previous/default fluidsynth settings... loadSetup(m_pDefaultSetup, QString()); loadOptions(); } // Default Destructor. qsynthOptions::~qsynthOptions (void) { saveOptions(); // Delete default setup descriptor. delete m_pDefaultSetup; m_pDefaultSetup = nullptr; } // Explicit load method. void qsynthOptions::loadOptions (void) { // Load defaults... m_settings.beginGroup("/Defaults"); sSoundFontDir = m_settings.value("/SoundFontDir").toString(); bPresetPreview = m_settings.value("/PresetPreview", false).toBool(); m_settings.endGroup(); // Load display options... m_settings.beginGroup("/Options"); sMessagesFont = m_settings.value("/MessagesFont").toString(); bMessagesLimit = m_settings.value("/MessagesLimit", true).toBool(); iMessagesLimitLines = m_settings.value("/MessagesLimitLines", 1000).toInt(); bMessagesLog = m_settings.value("/MessagesLog", false).toBool(); sMessagesLogPath = m_settings.value("/MessagesLogPath", "qsynth.log").toString(); bQueryClose = m_settings.value("/QueryClose", true).toBool(); bKeepOnTop = m_settings.value("/KeepOnTop", false).toBool(); bStdoutCapture = m_settings.value("/StdoutCapture", true).toBool(); bOutputMeters = m_settings.value("/OutputMeters", false).toBool(); bSystemTray = m_settings.value("/SystemTray", false).toBool(); bSystemTrayQueryClose = m_settings.value("/SystemTrayQueryClose", true).toBool(); bStartMinimized = m_settings.value("/StartMinimized", false).toBool(); iBaseFontSize = m_settings.value("/BaseFontSize", 0).toInt(); iKnobStyle = m_settings.value("/KnobStyle", 0).toInt(); iKnobMotion = m_settings.value("/KnobMotion", 1).toInt(); m_settings.endGroup(); // Load custom options... m_settings.beginGroup("/Custom"); sCustomColorTheme = m_settings.value("/ColorTheme").toString(); sCustomStyleTheme = m_settings.value("/StyleTheme").toString(); m_settings.endGroup(); // Load custom additional engines. m_settings.beginGroup("/Engines"); const QString sEnginePrefix = "/Engine%1"; int iEngine = 0; for (;;) { QString sItem = m_settings.value(sEnginePrefix.arg(++iEngine)).toString(); if (sItem.isEmpty()) break; engines.append(sItem); } m_settings.endGroup(); } // Explicit save method. void qsynthOptions::saveOptions (void) { // Make program version available in the future. m_settings.beginGroup("/Program"); m_settings.setValue("/Version", CONFIG_BUILD_VERSION); m_settings.endGroup(); // Save defaults... m_settings.beginGroup("/Defaults"); m_settings.setValue("/SoundFontDir", sSoundFontDir); m_settings.setValue("/PresetPreview", bPresetPreview); m_settings.endGroup(); // Save display options... m_settings.beginGroup("/Options"); m_settings.setValue("/MessagesFont", sMessagesFont); m_settings.setValue("/MessagesLimit", bMessagesLimit); m_settings.setValue("/MessagesLimitLines", iMessagesLimitLines); m_settings.setValue("/MessagesLog", bMessagesLog); m_settings.setValue("/MessagesLogPath", sMessagesLogPath); m_settings.setValue("/QueryClose", bQueryClose); m_settings.setValue("/KeepOnTop", bKeepOnTop); m_settings.setValue("/StdoutCapture", bStdoutCapture); m_settings.setValue("/OutputMeters", bOutputMeters); m_settings.setValue("/SystemTray", bSystemTray); m_settings.setValue("/SystemTrayQueryClose", bSystemTrayQueryClose); m_settings.setValue("/StartMinimized", bStartMinimized); m_settings.setValue("/BaseFontSize", iBaseFontSize); m_settings.setValue("/KnobStyle", iKnobStyle); m_settings.setValue("/KnobMotion", iKnobMotion); m_settings.endGroup(); // Save custom options... m_settings.beginGroup("/Custom"); m_settings.setValue("/ColorTheme", sCustomColorTheme); m_settings.setValue("/StyleTheme", sCustomStyleTheme); m_settings.endGroup(); // Save engines list... m_settings.beginGroup("/Engines"); // Save last preset list. const QString sEnginePrefix = "/Engine%1"; int iEngine = 0; QStringListIterator iter(engines); while (iter.hasNext()) m_settings.setValue(sEnginePrefix.arg(++iEngine), iter.next()); // Cleanup old entries, if any... while (!m_settings.value(sEnginePrefix.arg(++iEngine)).toString().isEmpty()) m_settings.remove(sEnginePrefix.arg(iEngine)); m_settings.endGroup(); // Save/commit to disk. m_settings.sync(); } // Default instance setup accessor. qsynthSetup *qsynthOptions::defaultSetup (void) { return m_pDefaultSetup; } //------------------------------------------------------------------------- // Settings accessor. // QSettings& qsynthOptions::settings (void) { return m_settings; } //------------------------------------------------------------------------- // Command-line argument stuff. Mostly to mimic fluidsynth CLI. // // Help about command line options. void qsynthOptions::print_usage ( const QString& arg0 ) { QTextStream out(stderr); const QString sEot = "\n\t"; const QString sEol = "\n\n"; out << QObject::tr("Usage: %1" " [options] [soundfonts] [midifiles]").arg(arg0) + sEol; out << QSYNTH_TITLE " - " + QObject::tr(QSYNTH_SUBTITLE) + sEol; out << QObject::tr("Options") + ":" + sEol; out << " -n, --no-midi-in" + sEot + QObject::tr("Don't create a midi driver to read MIDI input events [default = yes]") + sEol; out << " -m, --midi-driver=[label]" + sEot + QObject::tr("The name of the midi driver to use [oss,alsa,alsa_seq,...]") + sEol; out << " -K, --midi-channels=[num]" + sEot + QObject::tr("The number of midi channels [default = 16]") + sEol; out << " -a, --audio-driver=[label]" + sEot + QObject::tr("The audio driver [alsa,jack,oss,dsound,...]") + sEol; out << " -j, --connect-jack-outputs" + sEot + QObject::tr("Attempt to connect the jack outputs to the physical ports") + sEol; out << " -L, --audio-channels=[num]" + sEot + QObject::tr("The number of stereo audio channels [default = 1]") + sEol; out << " -G, --audio-groups=[num]" + sEot + QObject::tr("The number of audio groups [default = 1]") + sEol; out << " -z, --audio-bufsize=[size]" + sEot + QObject::tr("Size of each audio buffer") + sEol; out << " -c, --audio-bufcount=[count]" + sEot + QObject::tr("Number of audio buffers") + sEol; out << " -r, --sample-rate=[rate]" + sEot + QObject::tr("Set the sample rate") + sEol; out << " -R, --reverb=[flag]" + sEot + QObject::tr("Turn the reverb on or off [1|0|yes|no|on|off, default = on]") + sEol; out << " -C, --chorus=[flag]" + sEot + QObject::tr("Turn the chorus on or off [1|0|yes|no|on|off, default = on]") + sEol; out << " -g, --gain=[gain]" + sEot + QObject::tr("Set the master gain [0 < gain < 10, default = 0.2]") + sEol; out << " -o, --option [name=value]" + sEot + QObject::tr("Define a setting name=value") + sEol; out << " -s, --server" + sEot + QObject::tr("Create and start server [default = no]") + sEol; out << " -i, --no-shell" + sEot + QObject::tr("Don't read commands from the shell [ignored]") + sEol; out << " -d, --dump" + sEot + QObject::tr("Dump midi router events") + sEol; out << " -V, --verbose" + sEot + QObject::tr("Print out verbose messages about midi events") + sEol; out << " -h, --help" + sEot + QObject::tr("Show help about command line options") + sEol; out << " -v, --version" + sEot + QObject::tr("Show version information") + sEol; } // Parse command line arguments into fluidsynth settings. bool qsynthOptions::parse_args ( const QStringList& args ) { QTextStream out(stderr); const QString sEol = "\n\n"; const int argc = args.count(); int iSoundFontOverride = 0; for (int i = 1; i < argc; ++i) { QString sVal; QString sArg = args.at(i); const int iEqual = sArg.indexOf('='); if (iEqual >= 0) { sVal = sArg.right(sArg.length() - iEqual - 1); sArg = sArg.left(iEqual); } else if (i < argc - 1) { sVal = args.at(i + 1); if (sVal[0] == '-') sVal.clear(); } if (sArg == "-n" || sArg == "--no-midi-in") { m_pDefaultSetup->bMidiIn = false; } else if (sArg == "-m" || sArg == "--midi-driver") { if (sVal.isEmpty()) { out << QObject::tr("Option -m requires an argument (midi-driver).") + sEol; return false; } m_pDefaultSetup->sMidiDriver = sVal; if (iEqual < 0) ++i; } else if (sArg == "-K" || sArg == "--midi-channels") { if (sVal.isEmpty()) { out << QObject::tr("Option -K requires an argument (midi-channels).") + sEol; return false; } m_pDefaultSetup->iMidiChannels = sVal.toInt(); if (iEqual < 0) ++i; } else if (sArg == "-a" || sArg == "--audio-driver") { if (sVal.isEmpty()) { out << QObject::tr("Option -a requires an argument (audio-driver).") + sEol; return false; } m_pDefaultSetup->sAudioDriver = sVal; if (iEqual < 0) ++i; } else if (sArg == "-j" || sArg == "--connect-jack-outputs") { m_pDefaultSetup->bJackAutoConnect = true; } else if (sArg == "-L" || sArg == "--audio-channels") { if (sVal.isEmpty()) { out << QObject::tr("Option -L requires an argument (audio-channels).") + sEol; return false; } m_pDefaultSetup->iAudioChannels = sVal.toInt(); if (iEqual < 0) ++i; } else if (sArg == "-G" || sArg == "--audio-groups") { if (sVal.isEmpty()) { out << QObject::tr("Option -G requires an argument (audio-groups).") + sEol; return false; } m_pDefaultSetup->iAudioGroups = sVal.toInt(); if (iEqual < 0) i++; } else if (sArg == "-z" || sArg == "--audio-bufsize") { if (sVal.isEmpty()) { out << QObject::tr("Option -z requires an argument (audio-bufsize).") + sEol; return false; } m_pDefaultSetup->iAudioBufSize = sVal.toInt(); if (iEqual < 0) ++i; } else if (sArg == "-c" || sArg == "--audio-bufcount") { if (sVal.isEmpty()) { out << QObject::tr("Option -c requires an argument (audio-bufcount).") + sEol; return false; } m_pDefaultSetup->iAudioBufCount = sVal.toInt(); if (iEqual < 0) ++i; } else if (sArg == "-r" || sArg == "--sample-rate") { if (sVal.isEmpty()) { out << QObject::tr("Option -r requires an argument (sample-rate).") + sEol; return false; } m_pDefaultSetup->fSampleRate = sVal.toFloat(); if (iEqual < 0) ++i; } else if (sArg == "-R" || sArg == "--reverb") { if (sVal.isEmpty()) { m_pDefaultSetup->bReverbActive = true; } else { m_pDefaultSetup->bReverbActive = !(sVal == "0" || sVal == "no" || sVal == "off"); if (iEqual < 0) ++i; } } else if (sArg == "-C" || sArg == "--chorus") { if (sVal.isEmpty()) { m_pDefaultSetup->bChorusActive = true; } else { m_pDefaultSetup->bChorusActive = !(sVal == "0" || sVal == "no" || sVal == "off"); if (iEqual < 0) ++i; } } else if (sArg == "-g" || sArg == "--gain") { if (sVal.isEmpty()) { out << QObject::tr("Option -g requires an argument (gain).") + sEol; return false; } m_pDefaultSetup->fGain = sVal.toFloat(); if (iEqual < 0) ++i; } else if (sArg == "-o" || sArg == "--option") { if (++i >= argc) { out << QObject::tr("Option -o requires an argument.") + sEol; return false; } m_pDefaultSetup->options.append(args.at(i)); } else if (sArg == "-s" || sArg == "--server") { m_pDefaultSetup->bServer = true; } else if (sArg == "-i" || sArg == "--no-shell") { // Just ignore this one... } else if (sArg == "-d" || sArg == "--dump") { m_pDefaultSetup->bMidiDump = true; } else if (sArg == "-V" || sArg == "--verbose") { m_pDefaultSetup->bVerbose = true; } else if (sArg == "-h" || sArg == "--help") { print_usage(args.at(0)); return false; } else if (sArg == "-v" || sArg == "--version") { out << QString("Qt: %1\n") .arg(qVersion()); out << QString("FluidSynth: %1\n") .arg(::fluid_version_str()); out << QString("%1: %2\n") .arg(QSYNTH_TITLE) .arg(CONFIG_BUILD_VERSION); return false; } else { const QByteArray tmp = args.at(i).toUtf8(); const char *name = tmp.constData(); if (::fluid_is_soundfont(name)) { if (++iSoundFontOverride == 1) { m_pDefaultSetup->soundfonts.clear(); m_pDefaultSetup->bankoffsets.clear(); } m_pDefaultSetup->soundfonts.append(name); m_pDefaultSetup->bankoffsets.append(QString()); } else if (::fluid_is_midifile(name)) { m_pDefaultSetup->midifiles.append(name); } else { out << QObject::tr("Unknown option '%1'.").arg(name) + sEol; print_usage(args.at(0)); return false; } } } // Alright with argument parsing. return true; } //--------------------------------------------------------------------------- // Engine entry management methods. void qsynthOptions::newEngine ( qsynthEngine *pEngine ) { if (pEngine == nullptr) return; if (pEngine->isDefault()) return; const QString& sName = pEngine->name(); if (!engines.contains(sName)) engines.append(sName); } bool qsynthOptions::renameEngine ( qsynthEngine *pEngine ) { if (pEngine == nullptr) return false; qsynthSetup *pSetup = pEngine->setup(); if (pSetup == nullptr) return false; const QString sOldName = pEngine->name(); const QString sNewName = pSetup->sDisplayName; if (sOldName == sNewName) return false; pEngine->setName(sNewName); if (!pEngine->isDefault()) { engines = engines.replaceInStrings(sOldName, sNewName); m_settings.remove("/Engine/" + sOldName); } return true; } void qsynthOptions::deleteEngine ( qsynthEngine *pEngine ) { if (pEngine == nullptr) return; if (pEngine->isDefault()) return; const QString& sName = pEngine->name(); int iEngine = engines.indexOf(sName); if (iEngine >= 0) engines.removeAt(iEngine); m_settings.remove("/Engine/" + sName); } //--------------------------------------------------------------------------- // Setup registry methods. // Load instance m_settings. void qsynthOptions::loadSetup ( qsynthSetup *pSetup, const QString& sName ) { if (pSetup == nullptr) return; // Begin at key group? if (!sName.isEmpty()) m_settings.beginGroup("/Engine/" + sName); // Shall we have a default display name. QString sDisplayName = sName; if (sDisplayName.isEmpty()) sDisplayName = QSYNTH_TITLE "1"; // Load previous/default fluidsynth m_settings... m_settings.beginGroup("/Settings"); pSetup->sDisplayName = m_settings.value("/DisplayName", sDisplayName).toString(); pSetup->bMidiIn = m_settings.value("/MidiIn", true).toBool(); #if defined(__APPLE__) pSetup->sMidiDriver = m_settings.value("/MidiDriver", "coremidi").toString(); pSetup->sAudioDriver = m_settings.value("/AudioDriver", "coreaudio").toString(); #elif defined(__WIN32__) || defined(_WIN32) || defined(WIN32) pSetup->sMidiDriver = m_settings.value("/MidiDriver", "winmidi").toString(); pSetup->sAudioDriver = m_settings.value("/AudioDriver", "dsound").toString(); #elif defined(__OpenBSD__) pSetup->sMidiDriver = m_settings.value("/MidiDriver", "sndio").toString(); pSetup->sAudioDriver = m_settings.value("/AudioDriver", "sndio").toString(); #else pSetup->sMidiDriver = m_settings.value("/MidiDriver", "alsa_seq").toString(); pSetup->sAudioDriver = m_settings.value("/AudioDriver", "jack").toString(); #endif #if defined(__WIN32__) || defined(_WIN32) || defined(WIN32) pSetup->iAudioBufSize = m_settings.value("/AudioBufSize", 512).toInt(); pSetup->iAudioBufCount = m_settings.value("/AudioBufCount", 8).toInt(); #else pSetup->iAudioBufSize = m_settings.value("/AudioBufSize", 64).toInt(); pSetup->iAudioBufCount = m_settings.value("/AudioBufCount", 2).toInt(); #endif pSetup->sMidiName = m_settings.value("/AlsaName", "pid").toString(); pSetup->sJackName = m_settings.value("/JackName", "qsynth").toString(); pSetup->bJackAutoConnect = m_settings.value("/JackAutoConnect", true).toBool(); pSetup->bJackMulti = m_settings.value("/JackMulti", false).toBool(); #if defined(__OpenBSD__) pSetup->sMidiDevice = m_settings.value("/MidiDevice", "midithru/0").toString(); #else pSetup->sMidiDevice = m_settings.value("/MidiDevice").toString(); #endif pSetup->iMidiChannels = m_settings.value("/MidiChannels", 16).toInt(); pSetup->sMidiBankSelect = m_settings.value("/MidiBankSelect", "gm").toString(); pSetup->sAudioDevice = m_settings.value("/AudioDevice").toString(); pSetup->iAudioChannels = m_settings.value("/AudioChannels", 1).toInt(); pSetup->iAudioGroups = m_settings.value("/AudioGroups", 1).toInt(); pSetup->sSampleFormat = m_settings.value("/SampleFormat", "16bits").toString(); pSetup->fSampleRate = m_settings.value("/SampleRate", 44100.0).toDouble(); pSetup->iPolyphony = m_settings.value("/Polyphony", 256).toInt(); pSetup->bReverbActive = m_settings.value("/ReverbActive", true).toBool(); pSetup->fReverbRoom = m_settings.value("/ReverbRoom", QSYNTH_REVERB_DEFAULT_ROOMSIZE).toDouble(); pSetup->fReverbDamp = m_settings.value("/ReverbDamp", QSYNTH_REVERB_DEFAULT_DAMP).toDouble(); pSetup->fReverbWidth = m_settings.value("/ReverbWidth", QSYNTH_REVERB_DEFAULT_WIDTH).toDouble(); pSetup->fReverbLevel = m_settings.value("/ReverbLevel", QSYNTH_REVERB_DEFAULT_LEVEL).toDouble(); pSetup->bChorusActive = m_settings.value("/ChorusActive", true).toBool(); pSetup->iChorusNr = m_settings.value("/ChorusNr", QSYNTH_CHORUS_DEFAULT_N).toInt(); pSetup->fChorusLevel = m_settings.value("/ChorusLevel", QSYNTH_CHORUS_DEFAULT_LEVEL).toDouble(); pSetup->fChorusSpeed = m_settings.value("/ChorusSpeed", QSYNTH_CHORUS_DEFAULT_SPEED).toDouble(); pSetup->fChorusDepth = m_settings.value("/ChorusDepth", QSYNTH_CHORUS_DEFAULT_DEPTH).toDouble(); pSetup->iChorusType = m_settings.value("/ChorusType", QSYNTH_CHORUS_DEFAULT_TYPE).toInt(); pSetup->bLadspaActive = m_settings.value("/LadspaActive", false).toBool(); pSetup->fGain = m_settings.value("/Gain", QSYNTH_MASTER_DEFAULT_GAIN).toDouble(); pSetup->bServer = m_settings.value("/Server", false).toBool(); pSetup->bMidiDump = m_settings.value("/MidiDump", false).toBool(); pSetup->bVerbose = m_settings.value("/Verbose", false).toBool(); m_settings.endGroup(); // Load soundfont list... m_settings.beginGroup("/SoundFonts"); const QString sSoundFontPrefix = "/SoundFont%1"; const QString sBankOffsetPrefix = "/BankOffset%1"; int i = 0; for (;;) { ++i; QString sSoundFont = m_settings.value(sSoundFontPrefix.arg(i)).toString(); QString sBankOffset = m_settings.value(sBankOffsetPrefix.arg(i)).toString(); if (sSoundFont.isEmpty()) break; pSetup->soundfonts.append(sSoundFont); pSetup->bankoffsets.append(sBankOffset); } m_settings.endGroup(); // Load channel presets list. m_settings.beginGroup("/Presets"); pSetup->sDefPreset = m_settings.value("/DefPreset", pSetup->sDefPresetName).toString(); const QString sPresetPrefix = "/Preset%1"; int iPreset = 0; for (;;) { QString sItem = m_settings.value(sPresetPrefix.arg(++iPreset)).toString(); if (sItem.isEmpty()) break; pSetup->presets.append(sItem); } m_settings.endGroup(); // Done with the key group? if (!sName.isEmpty()) m_settings.endGroup(); } // Save instance m_settings. void qsynthOptions::saveSetup ( qsynthSetup *pSetup, const QString& sName ) { if (pSetup == nullptr) return; // Begin at key group? if (!sName.isEmpty()) m_settings.beginGroup("/Engine/" + sName); // Save presets list... m_settings.beginGroup("/Presets"); m_settings.setValue("/DefPreset", pSetup->sDefPreset); // Save last preset list. const QString sPresetPrefix = "/Preset%1"; int iPreset = 0; QStringListIterator iter(pSetup->presets); while (iter.hasNext()) m_settings.setValue(sPresetPrefix.arg(++iPreset), iter.next()); // Cleanup old entries, if any... while (!m_settings.value(sPresetPrefix.arg(++iPreset)).toString().isEmpty()) m_settings.remove(sPresetPrefix.arg(iPreset)); m_settings.endGroup(); // Save last soundfont list. m_settings.beginGroup("/SoundFonts"); const QString sSoundFontPrefix = "/SoundFont%1"; const QString sBankOffsetPrefix = "/BankOffset%1"; int i = 0; QStringListIterator sfiter(pSetup->soundfonts); while (sfiter.hasNext()) { m_settings.setValue(sSoundFontPrefix.arg(++i), sfiter.next()); m_settings.setValue(sBankOffsetPrefix.arg(i), pSetup->bankoffsets[i - 1]); } // Cleanup old entries, if any... for (;;) { if (m_settings.value(sSoundFontPrefix.arg(++i)).toString().isEmpty()) break; m_settings.remove(sSoundFontPrefix.arg(i)); m_settings.remove(sBankOffsetPrefix.arg(i)); } m_settings.endGroup(); // Save last fluidsynth m_settings. m_settings.beginGroup("/Settings"); m_settings.setValue("/DisplayName", pSetup->sDisplayName); m_settings.setValue("/MidiIn", pSetup->bMidiIn); m_settings.setValue("/MidiDriver", pSetup->sMidiDriver); m_settings.setValue("/MidiDevice", pSetup->sMidiDevice); m_settings.setValue("/MidiChannels", pSetup->iMidiChannels); m_settings.setValue("/AlsaName", pSetup->sMidiName); m_settings.setValue("/MidiBankSelect", pSetup->sMidiBankSelect); m_settings.setValue("/AudioDriver", pSetup->sAudioDriver); m_settings.setValue("/AudioDevice", pSetup->sAudioDevice); m_settings.setValue("/JackName", pSetup->sJackName); m_settings.setValue("/JackAutoConnect", pSetup->bJackAutoConnect); m_settings.setValue("/JackMulti", pSetup->bJackMulti); m_settings.setValue("/AudioChannels", pSetup->iAudioChannels); m_settings.setValue("/AudioGroups", pSetup->iAudioGroups); m_settings.setValue("/AudioBufSize", pSetup->iAudioBufSize); m_settings.setValue("/AudioBufCount", pSetup->iAudioBufCount); m_settings.setValue("/SampleFormat", pSetup->sSampleFormat); m_settings.setValue("/SampleRate", pSetup->fSampleRate); m_settings.setValue("/Polyphony", pSetup->iPolyphony); m_settings.setValue("/ReverbActive", pSetup->bReverbActive); m_settings.setValue("/ReverbRoom", pSetup->fReverbRoom); m_settings.setValue("/ReverbDamp", pSetup->fReverbDamp); m_settings.setValue("/ReverbWidth", pSetup->fReverbWidth); m_settings.setValue("/ReverbLevel", pSetup->fReverbLevel); m_settings.setValue("/ChorusActive", pSetup->bChorusActive); m_settings.setValue("/ChorusNr", pSetup->iChorusNr); m_settings.setValue("/ChorusLevel", pSetup->fChorusLevel); m_settings.setValue("/ChorusSpeed", pSetup->fChorusSpeed); m_settings.setValue("/ChorusDepth", pSetup->fChorusDepth); m_settings.setValue("/ChorusType", pSetup->iChorusType); m_settings.setValue("/LadspaActive", pSetup->bLadspaActive); m_settings.setValue("/Gain", pSetup->fGain); m_settings.setValue("/Server", pSetup->bServer); m_settings.setValue("/MidiDump", pSetup->bMidiDump); m_settings.setValue("/Verbose", pSetup->bVerbose); m_settings.endGroup(); // Done with the key group? if (!sName.isEmpty()) m_settings.endGroup(); } //--------------------------------------------------------------------------- // Preset management methods. bool qsynthOptions::loadPreset ( qsynthEngine *pEngine, const QString& sPreset ) { if (pEngine == nullptr || pEngine->pSynth == nullptr) return false; qsynthSetup *pSetup = pEngine->setup(); if (pSetup == nullptr) return false; QString sSuffix; if (sPreset != pSetup->sDefPresetName && !sPreset.isEmpty()) { sSuffix = '/' + sPreset; // Check if on list. if (!pSetup->presets.contains(sPreset)) return false; } // Begin at key group? if (!pEngine->isDefault()) m_settings.beginGroup("/Engine/" + pEngine->name()); // Load as current presets. #ifdef CONFIG_FLUID_UNSET_PROGRAM int iChannelsSet = 0; #endif const QString sPrefix = "/Chan%1"; m_settings.beginGroup("/Preset" + sSuffix); int iChannels = ::fluid_synth_count_midi_channels(pEngine->pSynth); for (int iChan = 0; iChan < iChannels; iChan++) { QString sEntry = m_settings.value(sPrefix.arg(iChan + 1)).toString(); if (!sEntry.isEmpty() && iChan == sEntry.section(':', 0, 0).toInt()) { ::fluid_synth_bank_select(pEngine->pSynth, iChan, sEntry.section(':', 1, 1).toInt()); ::fluid_synth_program_change(pEngine->pSynth, iChan, sEntry.section(':', 2, 2).toInt()); #ifdef CONFIG_FLUID_UNSET_PROGRAM ++iChannelsSet; #endif } #ifdef CONFIG_FLUID_UNSET_PROGRAM else ::fluid_synth_unset_program(pEngine->pSynth, iChan); #endif } m_settings.endGroup(); // Done with the key group? if (!pEngine->isDefault()) m_settings.endGroup(); #ifdef CONFIG_FLUID_UNSET_PROGRAM // If there's none channels set (eg. empty/blank preset) // then fallback to old default fill up all the channels // according to available soundfont stack. if (iChannelsSet < 1) { int iProg = 0; for (int iChan = 0; iChan < iChannels; iChan++) { ::fluid_synth_bank_select(pEngine->pSynth, iChan, 0); ::fluid_synth_program_change(pEngine->pSynth, iChan, iProg); ++iProg; } } #endif // Recommended to post-stabilize things around. ::fluid_synth_program_reset(pEngine->pSynth); return true; } bool qsynthOptions::savePreset ( qsynthEngine *pEngine, const QString& sPreset ) { if (pEngine == nullptr || pEngine->pSynth == nullptr) return false; qsynthSetup *pSetup = pEngine->setup(); if (pSetup == nullptr) return false; QString sSuffix; if (sPreset != pSetup->sDefPresetName && !sPreset.isEmpty()) { sSuffix = '/' + sPreset; // Append to list if not already. if (!pSetup->presets.contains(sPreset)) pSetup->presets.prepend(sPreset); } // Begin at key group? if (!pEngine->isDefault()) m_settings.beginGroup("/Engine/" + pEngine->name()); // Unload current presets. const QString sPrefix = "/Chan%1"; m_settings.beginGroup("/Preset" + sSuffix); int iChannels = ::fluid_synth_count_midi_channels(pEngine->pSynth); int iChan = 0; for ( ; iChan < iChannels; iChan++) { #ifdef CONFIG_FLUID_CHANNEL_INFO fluid_synth_channel_info_t info; ::memset(&info, 0, sizeof(info)); ::fluid_synth_get_channel_info(pEngine->pSynth, iChan, &info); if (info.assigned) { #ifdef CONFIG_FLUID_BANK_OFFSET info.bank += ::fluid_synth_get_bank_offset(pEngine->pSynth, info.sfont_id); #endif QString sEntry = QString::number(iChan); sEntry += ':'; sEntry += QString::number(info.bank); sEntry += ':'; sEntry += QString::number(info.program); m_settings.setValue(sPrefix.arg(iChan + 1), sEntry); } #else fluid_preset_t *pPreset = ::fluid_synth_get_channel_preset(pEngine->pSynth, iChan); if (pPreset) { #ifdef CONFIG_FLUID_PRESET_GET_BANKNUM int iBank = ::fluid_preset_get_banknum(pPreset); #else int iBank = pPreset->get_banknum(pPreset); #endif #ifdef CONFIG_FLUID_BANK_OFFSET int iSFID = 0; #ifdef CONFIG_FLUID_PRESET_GET_SFONT fluid_sfont_t *pSoundFont = ::fluid_preset_get_sfont(pPreset); #else fluid_sfont_t *pSoundFont = pPreset->sfont; #endif if (pSoundFont) { #ifdef CONFIG_FLUID_SFONT_GET_ID iSFID = ::fluid_sfont_get_id(pSoundFont); #else iSFID = pSoundFont->id; #endif } iBank += ::fluid_synth_get_bank_offset(pEngine->pSynth, iSFID); #endif #ifdef CONFIG_FLUID_PRESET_GET_NUM const int iProg = ::fluid_preset_get_num(pPreset); #else const int iProg = pPreset->get_num(pPreset); #endif QString sEntry = QString::number(iChan); sEntry += ':'; sEntry += QString::number(iBank); sEntry += ':'; sEntry += QString::number(iProg); m_settings.setValue(sPrefix.arg(iChan + 1), sEntry); } #endif else m_settings.remove(sPrefix.arg(iChan + 1)); } // Cleanup old entries, if any... while (!m_settings.value(sPrefix.arg(++iChan)).toString().isEmpty()) m_settings.remove(sPrefix.arg(iChan)); m_settings.endGroup(); // Done with the key group? if (!pEngine->isDefault()) m_settings.endGroup(); return true; } bool qsynthOptions::deletePreset ( qsynthEngine *pEngine, const QString& sPreset ) { if (pEngine == nullptr) return false; qsynthSetup *pSetup = pEngine->setup(); if (pSetup == nullptr) return false; QString sPrefix; if (!pEngine->isDefault()) sPrefix = "/Engine/" + pEngine->name(); QString sSuffix; if (sPreset != pSetup->sDefPresetName && !sPreset.isEmpty()) { sSuffix = "/" + sPreset; int iPreset = pSetup->presets.indexOf(sPreset); if (iPreset < 0) return false; pSetup->presets.removeAt(iPreset); m_settings.remove(sPrefix + "/Preset" + sSuffix); } return true; } //--------------------------------------------------------------------------- // Combo box history persistence helper implementation. void qsynthOptions::loadComboBoxHistory ( QComboBox *pComboBox, int iLimit ) { const bool bBlockSignals = pComboBox->blockSignals(true); // Load combobox list from configuration settings file... m_settings.beginGroup("/History/" + pComboBox->objectName()); if (m_settings.childKeys().count() > 0) { pComboBox->setUpdatesEnabled(false); pComboBox->setDuplicatesEnabled(false); pComboBox->clear(); for (int i = 0; i < iLimit; ++i) { const QString& sText = m_settings.value( "/Item" + QString::number(i + 1)).toString(); if (sText.isEmpty()) break; pComboBox->addItem(sText); } pComboBox->setUpdatesEnabled(true); } m_settings.endGroup(); pComboBox->blockSignals(bBlockSignals); } void qsynthOptions::saveComboBoxHistory ( QComboBox *pComboBox, int iLimit ) { const bool bBlockSignals = pComboBox->blockSignals(true); // Add current text as latest item... const QString sCurrentText = pComboBox->currentText(); int iCount = pComboBox->count(); for (int i = 0; i < iCount; i++) { const QString& sText = pComboBox->itemText(i); if (sText == sCurrentText) { pComboBox->removeItem(i); --iCount; break; } } while (iCount >= iLimit) pComboBox->removeItem(--iCount); pComboBox->insertItem(0, sCurrentText); pComboBox->setCurrentIndex(0); ++iCount; // Save combobox list to configuration settings file... m_settings.beginGroup("/History/" + pComboBox->objectName()); for (int i = 0; i < iCount; ++i) { const QString& sText = pComboBox->itemText(i); if (sText.isEmpty()) break; m_settings.setValue("/Item" + QString::number(i + 1), sText); } m_settings.endGroup(); pComboBox->blockSignals(bBlockSignals); } //--------------------------------------------------------------------------- // Widget geometry persistence helper methods. void qsynthOptions::loadWidgetGeometry ( QWidget *pWidget, bool bVisible ) { // Try to restore old form window positioning. if (pWidget) { // if (bVisible) pWidget->show(); -- force initial exposure? m_settings.beginGroup("/Geometry/" + pWidget->objectName()); #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) const QByteArray& geometry = m_settings.value("/geometry").toByteArray(); if (geometry.isEmpty()) { QWidget *pParent = pWidget->parentWidget(); if (pParent) pParent = pParent->window(); if (pParent == nullptr) pParent = QApplication::desktop(); if (pParent) { QRect wrect(pWidget->geometry()); wrect.moveCenter(pParent->geometry().center()); pWidget->move(wrect.topLeft()); } } else { pWidget->restoreGeometry(geometry); } #else//--LOAD_OLD_GEOMETRY QPoint wpos; QSize wsize; wpos.setX(m_settings.value("/x", -1).toInt()); wpos.setY(m_settings.value("/y", -1).toInt()); wsize.setWidth(m_settings.value("/width", -1).toInt()); wsize.setHeight(m_settings.value("/height", -1).toInt()); if (wpos.x() > 0 && wpos.y() > 0) pWidget->move(wpos); if (wsize.width() > 0 && wsize.height() > 0) pWidget->resize(wsize); #endif // else // pWidget->adjustSize(); if (!bVisible) bVisible = m_settings.value("/visible", false).toBool(); if (bVisible && !bStartMinimized) pWidget->show(); else pWidget->hide(); m_settings.endGroup(); } } void qsynthOptions::saveWidgetGeometry ( QWidget *pWidget, bool bVisible ) { // Try to save form window position... // (due to X11 window managers ideossincrasies, we better // only save the form geometry while its up and visible) if (pWidget) { m_settings.beginGroup("/Geometry/" + pWidget->objectName()); #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) m_settings.setValue("/geometry", pWidget->saveGeometry()); #else//--SAVE_OLD_GEOMETRY const QPoint& wpos = pWidget->pos(); const QSize& wsize = pWidget->size(); m_settings.setValue("/x", wpos.x()); m_settings.setValue("/y", wpos.y()); m_settings.setValue("/width", wsize.width()); m_settings.setValue("/height", wsize.height()); #endif if (!bVisible) bVisible = pWidget->isVisible(); m_settings.setValue("/visible", bVisible && !bStartMinimized); m_settings.endGroup(); } } // end of qsynthOptions.cpp qsynth-0.6.1/src/PaxHeaders.5367/qsynthAbout.h0000644000000000000000000000013213577702221016014 xustar0030 mtime=1577026705.842992838 30 atime=1577026705.842992838 30 ctime=1577026705.842992838 qsynth-0.6.1/src/qsynthAbout.h0000644000175000001440000000256713577702221016653 0ustar00rncbcusers00000000000000// qsynthAbout.h // /**************************************************************************** Copyright (C) 2003-2019, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. *****************************************************************************/ #ifndef __qsynthAbout_h #define __qsynthAbout_h #include "config.h" #define QSYNTH_TITLE PACKAGE_NAME #define QSYNTH_SUBTITLE "A fluidsynth Qt GUI Interface" #define QSYNTH_WEBSITE "https://qsynth.sourceforge.io" #define QSYNTH_COPYRIGHT "Copyright (C) 2003-2019, rncbc aka Rui Nuno Capela. All rights reserved." #define QSYNTH_DOMAIN "rncbc.org" #endif // __qsynthAbout_h // end of qsynthAbout.h qsynth-0.6.1/src/PaxHeaders.5367/src.pro0000644000000000000000000000013213577702221014633 xustar0030 mtime=1577026705.847992838 30 atime=1577026705.847992838 30 ctime=1577026705.847992838 qsynth-0.6.1/src/src.pro0000644000175000001440000000433313577702221015463 0ustar00rncbcusers00000000000000# qsynth.pro # TARGET = qsynth TEMPLATE = app INCLUDEPATH += . include(src.pri) #DEFINES += DEBUG HEADERS += config.h \ qsynth.h \ qsynthAbout.h \ qsynthEngine.h \ qsynthChannels.h \ qsynthKnob.h \ qsynthMeter.h \ qsynthSetup.h \ qsynthOptions.h \ qsynthSystemTray.h \ qsynthTabBar.h \ qsynthAboutForm.h \ qsynthChannelsForm.h \ qsynthMainForm.h \ qsynthMessagesForm.h \ qsynthOptionsForm.h \ qsynthPaletteForm.h \ qsynthPresetForm.h \ qsynthSetupForm.h \ qsynthDialClassicStyle.h \ qsynthDialPeppinoStyle.h \ qsynthDialVokiStyle.h \ qsynthDialSkulptureStyle.h SOURCES += \ qsynth.cpp \ qsynthEngine.cpp \ qsynthChannels.cpp \ qsynthKnob.cpp \ qsynthMeter.cpp \ qsynthSetup.cpp \ qsynthOptions.cpp \ qsynthSystemTray.cpp \ qsynthTabBar.cpp \ qsynthAboutForm.cpp \ qsynthChannelsForm.cpp \ qsynthMainForm.cpp \ qsynthMessagesForm.cpp \ qsynthOptionsForm.cpp \ qsynthPaletteForm.cpp \ qsynthPresetForm.cpp \ qsynthSetupForm.cpp \ qsynthDialClassicStyle.cpp \ qsynthDialPeppinoStyle.cpp \ qsynthDialVokiStyle.cpp \ qsynthDialSkulptureStyle.cpp FORMS += \ qsynthAboutForm.ui \ qsynthChannelsForm.ui \ qsynthMainForm.ui \ qsynthMessagesForm.ui \ qsynthOptionsForm.ui \ qsynthPaletteForm.ui \ qsynthPresetForm.ui \ qsynthSetupForm.ui RESOURCES += \ qsynth.qrc TRANSLATIONS += \ translations/qsynth_cs.ts \ translations/qsynth_de.ts \ translations/qsynth_es.ts \ translations/qsynth_fr.ts \ translations/qsynth_ru.ts \ translations/qsynth_sr.ts unix { # variables OBJECTS_DIR = .obj MOC_DIR = .moc UI_DIR = .ui isEmpty(PREFIX) { PREFIX = /usr/local } isEmpty(BINDIR) { BINDIR = $${PREFIX}/bin } isEmpty(DATADIR) { DATADIR = $${PREFIX}/share } #DEFINES += DATADIR=\"$${DATADIR}\" # make install INSTALLS += target desktop icon appdata target.path = $${BINDIR} desktop.path = $${DATADIR}/applications desktop.files += $${TARGET}.desktop icon.path = $${DATADIR}/icons/hicolor/32x32/apps icon.files += images/$${TARGET}.png appdata.path = $${DATADIR}/metainfo appdata.files += appdata/$${TARGET}.appdata.xml } QT += widgets win32 { contains(CONFIG, debug) { CONFIG += console } RC_FILE = win32/qsynth.rc DEFINES += _USE_MATH_DEFINES } qsynth-0.6.1/src/PaxHeaders.5367/qsynthDialPeppinoStyle.h0000644000000000000000000000013213577702221020167 xustar0030 mtime=1577026705.843992838 30 atime=1577026705.843992838 30 ctime=1577026705.843992838 qsynth-0.6.1/src/qsynthDialPeppinoStyle.h0000644000175000001440000000311013577702221021007 0ustar00rncbcusers00000000000000/*************************************************************************** This style is based on a widget designed by Giuseppe Cigala, adapted as a Qt style for QSynth by Pedro Lopez-Cabanillas This file, Copyright (C) 2019 rncbc aka Rui Nuno Capela , Copyright (C) 2008 Giuseppe Cigala Copyright (C) 2008 Pedro Lopez-Cabanillas . 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. 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. 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. *****************************************************************************/ #ifndef PEPPINOSTYLE_H_ #define PEPPINOSTYLE_H_ #include class qsynthDialPeppinoStyle : public QCommonStyle { public: qsynthDialPeppinoStyle() {}; virtual ~qsynthDialPeppinoStyle() {}; virtual void drawComplexControl(ComplexControl cc, const QStyleOptionComplex *opt, QPainter *p, const QWidget *widget = 0) const; }; #endif /*PEPPINOSTYLE_H_*/ qsynth-0.6.1/src/PaxHeaders.5367/qsynthOptionsForm.ui0000644000000000000000000000013213577702221017407 xustar0030 mtime=1577026705.846992838 30 atime=1577026705.846992838 30 ctime=1577026705.846992838 qsynth-0.6.1/src/qsynthOptionsForm.ui0000644000175000001440000006756513577702221020257 0ustar00rncbcusers00000000000000 rncbc aka Rui Nuno Capela qsynth - A fluidsynth Qt GUI Interface. Copyright (C) 2003-2019, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. qsynthOptionsForm 0 0 555 389 Options :/images/options1.png true 0 General 75 true Messages true 180 0 180 32767 50 false Sample messages text font display true QFrame::StyledPanel QFrame::Sunken Qt::AlignCenter false 50 false Select font for the messages text display &Font... false Qt::Horizontal QSizePolicy::Expanding 20 8 50 false Whether to keep a maximum number of lines in the messages window &Messages limit: 50 false The maximum number of message lines to keep in view true 3 100 250 500 1000 2500 5000 75 true Logging true 0 0 50 false Messages log file true 22 22 24 24 50 false Qt::TabFocus Browse for the messages log file location ... 50 false Whether to activate a messages logging to file. Messages &log file: 75 true Other true 50 false Whether to ask for confirmation on application exit &Confirm application close 50 false Whether to keep all child windows on top of the main window &Keep child windows always on top 50 false Whether to capture standard output (stdout/stderr) into messages window Capture standard &output 50 false Whether to monitor and show engine output peak level meters Output &peak level meters Qt::Horizontal 20 8 50 false Whether to enable the system tray icon &Enable system tray icon 50 false Whether to show system tray message on main window close Sho&w system tray message on close 50 false Whether to start minimized to system tray Start minimi&zed to system tray Qt::Vertical QSizePolicy::Expanding 8 20 Display 75 true Knobs true 50 false Kno&b graphic style: KnobStyleComboBox 50 false Graphic style for knobs Classic Vokimon Peppino Skulpture Legacy Qt::Horizontal QSizePolicy::Expanding 20 8 50 false Mouse motion be&havior: Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter KnobMouseMotionComboBox 50 false Mouse motion behavior for knobs 1 Legacy Radial Linear 75 true Custom true 50 false &Color palette theme: Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter CustomColorThemeComboBox 50 false Custom color palette theme false (default) Wonton Soup KXStudio 22 22 24 24 50 false Qt::TabFocus Manage custom color palette themes ... Qt::Horizontal 20 8 50 false &Widget style theme: CustomStyleThemeComboBox 50 false Custom widget style theme false (default) 75 true Defaults true Qt::Horizontal QSizePolicy::Expanding 20 8 50 false &Base font size: Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter BaseFontSizeComboBox 50 false Base application font size (pt.) true (default) 6 7 8 9 10 11 12 Qt::Vertical QSizePolicy::Expanding 8 20 Qt::Horizontal QDialogButtonBox::Cancel|QDialogButtonBox::Ok OptionsTabWidget KnobStyleComboBox KnobMouseMotionComboBox CustomColorThemeComboBox CustomColorThemeToolButton CustomStyleThemeComboBox BaseFontSizeComboBox DialogButtonBox qsynth-0.6.1/src/PaxHeaders.5367/qsynthAboutForm.h0000644000000000000000000000013213577702221016640 xustar0030 mtime=1577026705.842992838 30 atime=1577026705.842992838 30 ctime=1577026705.842992838 qsynth-0.6.1/src/qsynthAboutForm.h0000644000175000001440000000277713577702221017502 0ustar00rncbcusers00000000000000// qsynthAboutForm.h // /**************************************************************************** Copyright (C) 2003-2019, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. *****************************************************************************/ #ifndef __qsynthAboutForm_h #define __qsynthAboutForm_h #include "ui_qsynthAboutForm.h" //---------------------------------------------------------------------------- // qsynthAboutForm -- UI wrapper form. class qsynthAboutForm : public QDialog { Q_OBJECT public: // Constructor. qsynthAboutForm(QWidget *pParent = 0, Qt::WindowFlags wflags = 0); // Destructor. ~qsynthAboutForm(); public slots: void aboutQt(); private: // The Qt-designer UI struct... Ui::qsynthAboutForm m_ui; }; #endif // __qsynthAboutForm_h // end of qsynthAboutForm.h qsynth-0.6.1/src/PaxHeaders.5367/qsynthKnob.cpp0000644000000000000000000000013213577702221016166 xustar0030 mtime=1577026705.844992838 30 atime=1577026705.844992838 30 ctime=1577026705.844992838 qsynth-0.6.1/src/qsynthKnob.cpp0000644000175000001440000001035713577702221017021 0ustar00rncbcusers00000000000000// qsynthKnob.cpp // /**************************************************************************** Copyright (C) 2005-2013, rncbc aka Rui Nuno Capela. All rights reserved. This widget is based on a design by Thorsten Wilms, implemented by Chris Cannam in Rosegarden, adapted for QSynth by Pedro Lopez-Cabanillas 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. 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. 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. *****************************************************************************/ #include "qsynthAbout.h" #include "qsynthKnob.h" #include #include #include //------------------------------------------------------------------------- // qsynthKnob - Instance knob widget class. // // Constructor. qsynthKnob::qsynthKnob ( QWidget *pParent ) : QDial(pParent), m_iDefaultValue(-1), m_dialMode(DefaultMode), m_bMousePressed(false), m_fLastDragValue(0.0f) { } // Destructor. qsynthKnob::~qsynthKnob (void) { } void qsynthKnob::setDefaultValue ( int iDefaultValue ) { m_iDefaultValue = iDefaultValue; } void qsynthKnob::setDialMode ( qsynthKnob::DialMode dialMode ) { m_dialMode = dialMode; } // Mouse angle determination. float qsynthKnob::mouseAngle ( const QPoint& pos ) { float dx = pos.x() - (width() / 2); float dy = (height() / 2) - pos.y(); return 180.0f * atan2f(dx, dy) / float(M_PI); } // Alternate mouse behavior event handlers. void qsynthKnob::mousePressEvent ( QMouseEvent *pMouseEvent ) { if (pMouseEvent->button() == Qt::MidButton) { // Reset to default value... if (m_iDefaultValue < minimum() || m_iDefaultValue > maximum()) m_iDefaultValue = (maximum() + minimum()) / 2; setValue(m_iDefaultValue); } else if (m_dialMode == DefaultMode) { QDial::mousePressEvent(pMouseEvent); } else if (pMouseEvent->button() == Qt::LeftButton) { m_bMousePressed = true; m_posMouse = pMouseEvent->pos(); m_fLastDragValue = float(value()); emit sliderPressed(); } } void qsynthKnob::mouseMoveEvent ( QMouseEvent *pMouseEvent ) { if (m_dialMode == DefaultMode) { QDial::mouseMoveEvent(pMouseEvent); return; } if (!m_bMousePressed) return; const QPoint& pos = pMouseEvent->pos(); int xdelta = pos.x() - m_posMouse.x(); int ydelta = pos.y() - m_posMouse.y(); float fAngleDelta = mouseAngle(pos) - mouseAngle(m_posMouse); int iNewValue = value(); switch (m_dialMode) { case LinearMode: iNewValue = int(m_fLastDragValue) + xdelta - ydelta; break; case AngularMode: default: // Forget about the drag origin to be robust on full rotations if (fAngleDelta > +180.0f) fAngleDelta -= 360.0f; else if (fAngleDelta < -180.0f) fAngleDelta += 360.0f; m_fLastDragValue += float(maximum() - minimum()) * fAngleDelta / 270.0f; if (m_fLastDragValue > float(maximum())) m_fLastDragValue = float(maximum()); else if (m_fLastDragValue < float(minimum())) m_fLastDragValue = float(minimum()); m_posMouse = pos; iNewValue = int(m_fLastDragValue + 0.5f); break; } setValue(iNewValue); update(); emit sliderMoved(value()); } void qsynthKnob::mouseReleaseEvent ( QMouseEvent *pMouseEvent ) { if (m_dialMode == DefaultMode && pMouseEvent->button() != Qt::MidButton) { QDial::mouseReleaseEvent(pMouseEvent); } else if (m_bMousePressed) { m_bMousePressed = false; } } void qsynthKnob::wheelEvent ( QWheelEvent *pWheelEvent ) { if (m_dialMode == DefaultMode) { QDial::wheelEvent(pWheelEvent); } else { int iValue = value(); if (pWheelEvent->delta() > 0) iValue += pageStep(); else iValue -= pageStep(); if (iValue > maximum()) iValue = maximum(); else if (iValue < minimum()) iValue = minimum(); setValue(iValue); } } // end of qsynthKnob.cpp qsynth-0.6.1/src/PaxHeaders.5367/qsynthMessagesForm.cpp0000644000000000000000000000013213577702221017670 xustar0030 mtime=1577026705.845992838 30 atime=1577026705.845992838 30 ctime=1577026705.845992838 qsynth-0.6.1/src/qsynthMessagesForm.cpp0000644000175000001440000001202613577702221020516 0ustar00rncbcusers00000000000000// qsynthMessagesForm.cpp // /**************************************************************************** Copyright (C) 2003-2019, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. *****************************************************************************/ #include "qsynthAbout.h" #include "qsynthMessagesForm.h" #include "qsynthMainForm.h" #include #include #include #include #include #include #include // The maximum number of message lines. #define QSYNTH_MESSAGES_MAXLINES 1000 //---------------------------------------------------------------------------- // qsynthMessagesForm -- UI wrapper form. // Constructor. qsynthMessagesForm::qsynthMessagesForm ( QWidget *pParent, Qt::WindowFlags wflags ) : QWidget(pParent, wflags) { // Setup UI struct... m_ui.setupUi(this); // m_ui.MessagesTextView->setTextFormat(Qt::LogText); // Initialize default message limit. m_iMessagesLines = 0; setMessagesLimit(QSYNTH_MESSAGES_MAXLINES); m_pMessagesLog = nullptr; } // Destructor. qsynthMessagesForm::~qsynthMessagesForm (void) { setLogging(false); } // Notify our parent that we're emerging. void qsynthMessagesForm::showEvent ( QShowEvent *pShowEvent ) { qsynthMainForm *pMainForm = qsynthMainForm::getInstance(); if (pMainForm) pMainForm->stabilizeFormEx(); QWidget::showEvent(pShowEvent); } // Notify our parent that we're closing. void qsynthMessagesForm::hideEvent ( QHideEvent *pHideEvent ) { QWidget::hideEvent(pHideEvent); qsynthMainForm *pMainForm = qsynthMainForm::getInstance(); if (pMainForm) pMainForm->stabilizeFormEx(); } // Messages view font accessors. QFont qsynthMessagesForm::messagesFont (void) const { return m_ui.MessagesTextView->font(); } void qsynthMessagesForm::setMessagesFont ( const QFont & font ) { m_ui.MessagesTextView->setFont(font); } // Messages line limit accessors. int qsynthMessagesForm::messagesLimit (void) const { return m_iMessagesLimit; } void qsynthMessagesForm::setMessagesLimit ( int iMessagesLimit ) { m_iMessagesLimit = iMessagesLimit; m_iMessagesHigh = iMessagesLimit + (iMessagesLimit / 3); // m_ui.MessagesTextView->setMaxLogLines(iMessagesLimit); } // Messages logging stuff. bool qsynthMessagesForm::isLogging (void) const { return (m_pMessagesLog != nullptr); } void qsynthMessagesForm::setLogging ( bool bEnabled, const QString& sFilename ) { if (m_pMessagesLog) { appendMessages(tr("Logging stopped --- %1 ---") .arg(QDateTime::currentDateTime().toString())); m_pMessagesLog->close(); delete m_pMessagesLog; m_pMessagesLog = nullptr; } if (bEnabled) { m_pMessagesLog = new QFile(sFilename); if (m_pMessagesLog->open(QIODevice::Text | QIODevice::Append)) { appendMessages(tr("Logging started --- %1 ---") .arg(QDateTime::currentDateTime().toString())); } else { delete m_pMessagesLog; m_pMessagesLog = nullptr; } } } // Messages log output method. void qsynthMessagesForm::appendMessagesLog ( const QString& s ) { if (m_pMessagesLog) { QTextStream(m_pMessagesLog) << s << endl; m_pMessagesLog->flush(); } } // Messages widget output method. void qsynthMessagesForm::appendMessagesLine ( const QString& s ) { // Check for message line limit... if (m_iMessagesLines > m_iMessagesHigh) { m_ui.MessagesTextView->setUpdatesEnabled(false); QTextCursor textCursor(m_ui.MessagesTextView->document()->begin()); while (m_iMessagesLines > m_iMessagesLimit) { // Move cursor extending selection // from start to next line-block... textCursor.movePosition( QTextCursor::NextBlock, QTextCursor::KeepAnchor); m_iMessagesLines--; } // Remove the excessive line-blocks... textCursor.removeSelectedText(); m_ui.MessagesTextView->setUpdatesEnabled(true); } m_ui.MessagesTextView->append(s); m_iMessagesLines++; } // Messages widget output method. void qsynthMessagesForm::appendMessages( const QString& s ) { appendMessagesColor(s, "#999999"); } void qsynthMessagesForm::appendMessagesColor( const QString& s, const QString& c ) { QString sText = QTime::currentTime().toString("hh:mm:ss.zzz") + ' ' + s; appendMessagesLine("" + sText + ""); appendMessagesLog(sText); } void qsynthMessagesForm::appendMessagesText( const QString& s ) { appendMessagesLine(s); appendMessagesLog(s); } // end of qsynthMessagesForm.cpp qsynth-0.6.1/src/PaxHeaders.5367/qsynthSystemTray.cpp0000644000000000000000000000013213577702221017421 xustar0030 mtime=1577026705.847992838 30 atime=1577026705.847992838 30 ctime=1577026705.847992838 qsynth-0.6.1/src/qsynthSystemTray.cpp0000644000175000001440000000677413577702221020264 0ustar00rncbcusers00000000000000// qsynthSystemTray.cpp // /**************************************************************************** Copyright (C) 2003-2019, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. *****************************************************************************/ #include "qsynthAbout.h" #include "qsynthSystemTray.h" #include #include #if QT_VERSION < QT_VERSION_CHECK(4, 5, 0) namespace Qt { const WindowFlags WindowCloseButtonHint = WindowFlags(0x08000000); } #endif //---------------------------------------------------------------------------- // qsynthSystemTray -- Custom system tray widget. // Constructor. qsynthSystemTray::qsynthSystemTray ( QWidget *pParent ) : QSystemTrayIcon(pParent) { // Set things inherited... if (pParent) { m_icon = pParent->windowIcon(); setBackground(Qt::transparent); // also updates pixmap. QSystemTrayIcon::setIcon(m_icon); QSystemTrayIcon::setToolTip(pParent->windowTitle()); } QObject::connect(this, SIGNAL(activated(QSystemTrayIcon::ActivationReason)), SLOT(activated(QSystemTrayIcon::ActivationReason))); QSystemTrayIcon::show(); } // Redirect to hide. void qsynthSystemTray::close (void) { QSystemTrayIcon::hide(); } // Handle systeam tray activity. void qsynthSystemTray::activated ( QSystemTrayIcon::ActivationReason reason ) { switch (reason) { case QSystemTrayIcon::Trigger: emit clicked(); // Fall trhu... case QSystemTrayIcon::MiddleClick: case QSystemTrayIcon::DoubleClick: case QSystemTrayIcon::Unknown: default: break; } } // Default destructor. qsynthSystemTray::~qsynthSystemTray (void) { } // System tray icon/pixmaps update method. void qsynthSystemTray::updatePixmap (void) { // Renitialize icon as fit... m_pixmap = m_icon.pixmap(32, 32); // Merge with the overlay pixmap... if (!m_pixmapOverlay.mask().isNull()) { const int y = m_pixmap.height() - m_pixmapOverlay.height(); QBitmap mask = m_pixmap.mask(); QPainter(&mask).drawPixmap(0, y, m_pixmapOverlay.mask()); m_pixmap.setMask(mask); QPainter(&m_pixmap).drawPixmap(0, y, m_pixmapOverlay); } if (m_background != Qt::transparent) { QPixmap pixmap(m_pixmap); m_pixmap.fill(m_background); QPainter(&m_pixmap).drawPixmap(0, 0, pixmap); } // Setup system tray icon directly... QSystemTrayIcon::setIcon(QIcon(m_pixmap)); } // Background mask methods. void qsynthSystemTray::setBackground ( const QColor& background ) { // Set background color, now. m_background = background; updatePixmap(); } const QColor& qsynthSystemTray::background (void) const { return m_background; } // Set system tray icon overlay. void qsynthSystemTray::setPixmapOverlay ( const QPixmap& pmOverlay ) { m_pixmapOverlay = pmOverlay; updatePixmap(); } const QPixmap& qsynthSystemTray::pixmapOverlay (void) const { return m_pixmapOverlay; } // end of qsynthSystemTray.cpp qsynth-0.6.1/src/PaxHeaders.5367/qsynthPresetForm.h0000644000000000000000000000013213577702221017030 xustar0030 mtime=1577026705.846992838 30 atime=1577026705.846992838 30 ctime=1577026705.846992838 qsynth-0.6.1/src/qsynthPresetForm.h0000644000175000001440000000413613577702221017661 0ustar00rncbcusers00000000000000// qsynthPresetForm.h // /**************************************************************************** Copyright (C) 2003-2019, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. *****************************************************************************/ #ifndef __qsynthPresetForm_h #define __qsynthPresetForm_h #include "ui_qsynthPresetForm.h" #include // Forward declarations. class qsynthOptions; //---------------------------------------------------------------------------- // qsynthPresetForm -- UI wrapper form. class qsynthPresetForm : public QDialog { Q_OBJECT public: // Constructor. qsynthPresetForm(QWidget *pParent = 0, Qt::WindowFlags wflags = 0); // Destructor. ~qsynthPresetForm(); void setup(qsynthOptions *pOptions, fluid_synth_t *pSynth, int iChan); public slots: void stabilizeForm(); void bankChanged(); void progChanged(); void previewChanged(); protected slots: void accept(); void reject(); protected: void setBankProg(int iBank, int iProg); QTreeWidgetItem *findBankItem(int iBank); QTreeWidgetItem *findProgItem(int iProg); bool validateForm(); private: // The Qt-designer UI struct... Ui::qsynthPresetForm m_ui; // Instance variables. qsynthOptions *m_pOptions; fluid_synth_t *m_pSynth; int m_iChan; int m_iBank; int m_iProg; int m_iDirtySetup; int m_iDirtyCount; }; #endif // __qsynthPresetForm_h // end of qsynthPresetForm.h qsynth-0.6.1/src/PaxHeaders.5367/qsynthSetup.h0000644000000000000000000000013213577702221016042 xustar0030 mtime=1577026705.846992838 30 atime=1577026705.846992838 30 ctime=1577026705.846992838 qsynth-0.6.1/src/qsynthSetup.h0000644000175000001440000000525213577702221016673 0ustar00rncbcusers00000000000000// qsynthSetup.h // /**************************************************************************** Copyright (C) 2003-2019, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. *****************************************************************************/ #ifndef __qsynthSetup_h #define __qsynthSetup_h #include #include #include //------------------------------------------------------------------------- // qsynthSetup - Prototype settings class. // class qsynthSetup { public: // Constructor. qsynthSetup(); // Default destructor. ~qsynthSetup(); // Settings cache realization. void realize(); // Fluidsynth settings accessor. fluid_settings_t *fluid_settings(); // Setup display name. QString sDisplayName; // Settings variables. bool bMidiIn; QString sMidiDriver; QString sMidiDevice; QString sMidiBankSelect; int iMidiChannels; QString sMidiName; QString sAudioDriver; QString sAudioDevice; QString sJackName; bool bJackAutoConnect; bool bJackMulti; int iAudioChannels; int iAudioGroups; int iAudioBufSize; int iAudioBufCount; QString sSampleFormat; float fSampleRate; int iPolyphony; bool bReverbActive; double fReverbRoom; double fReverbDamp; double fReverbWidth; double fReverbLevel; bool bChorusActive; int iChorusNr; double fChorusLevel; double fChorusSpeed; double fChorusDepth; int iChorusType; bool bLadspaActive; float fGain; bool bServer; bool bMidiDump; bool bVerbose; // Optional options. QStringList options; // Optional file lists. QStringList soundfonts; QStringList bankoffsets; QStringList midifiles; // Current (translated) preset name. QString sDefPresetName; // Current (default) preset name. QString sDefPreset; // Available presets list. QStringList presets; private: // Fluidsynth settings member variable. fluid_settings_t *m_pFluidSettings; }; #endif // __qsynthSetup_h // end of qsynthSetup.h qsynth-0.6.1/src/PaxHeaders.5367/qsynthEngine.h0000644000000000000000000000013213577702221016147 xustar0030 mtime=1577026705.844992838 30 atime=1577026705.844992838 30 ctime=1577026705.844992838 qsynth-0.6.1/src/qsynthEngine.h0000644000175000001440000000411513577702221016775 0ustar00rncbcusers00000000000000// qsynthEngine.h // /**************************************************************************** Copyright (C) 2003-2019, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. *****************************************************************************/ #ifndef __qsynthEngine_h #define __qsynthEngine_h #include "qsynthOptions.h" //------------------------------------------------------------------------- // qsynthEngine - Meta-fluidsynth engine structure class. // class qsynthEngine { public: // Constructor. qsynthEngine(qsynthOptions *pOptions, const QString& sName = QString()); // Default destructor. ~qsynthEngine(); // Engine predicate. bool isDefault() const; // Engine setup accessor. qsynthSetup *setup(); // Engine name accessors. const QString& name() const; void setName(const QString& sName); // Engine member public variables. fluid_synth_t *pSynth; fluid_audio_driver_t *pAudioDriver; fluid_midi_router_t *pMidiRouter; fluid_midi_driver_t *pMidiDriver; fluid_player_t *pPlayer; fluid_server_t *pServer; // Dirty MIDI event trackers. int iMidiEvent; int iMidiState; // Current peak level meters (pseudo-stereo). bool bMeterEnabled; float fMeterValue[2]; private: // Engine member variables. bool m_bDefault; qsynthSetup *m_pSetup; QString m_sName; }; #endif // __qsynthEngine_h // end of qsynthEngine.h qsynth-0.6.1/src/PaxHeaders.5367/translations0000644000000000000000000000013213577702221015766 xustar0030 mtime=1577026705.850992838 30 atime=1577026705.847992838 30 ctime=1577026705.850992838 qsynth-0.6.1/src/translations/0000755000175000001440000000000013577702221016670 5ustar00rncbcusers00000000000000qsynth-0.6.1/src/translations/PaxHeaders.5367/qsynth_es.ts0000644000000000000000000000013213577702221020430 xustar0030 mtime=1577026705.849992838 30 atime=1577026705.849992838 30 ctime=1577026705.849992838 qsynth-0.6.1/src/translations/qsynth_es.ts0000644000175000001440000025151113577702221021262 0ustar00rncbcusers00000000000000 QObject Usage: %1 [options] [soundfonts] [midifiles] Utilización: %1 [opciones] [soundfonts] [archivos MIDI] Options Opciones Don't create a midi driver to read MIDI input events [default = yes] No crear un controlador de entrada MIDI [por omisión = sí] The name of the midi driver to use [oss,alsa,alsa_seq,...] El nombre del controlador MIDI que se va a utilizar [oss,alsa,alsa_seq,...] The number of midi channels [default = 16] El número de canales MIDI [por omisión = 16] The audio driver [alsa,jack,oss,dsound,...] El controlador de audio [alsa,jack,oss,dsound,...] Attempt to connect the jack outputs to the physical ports Intentar la conexión de las salidas de jack a puertos físicos The number of stereo audio channels [default = 1] El número de canales estereofónicos de audio [por omisión = 1] The number of audio groups [default = 1] El número de grupos de audio [por omisión = 1] Size of each audio buffer Tamaño de cada memoria intermedia de audio Number of audio buffers Número de memorias intermedias de audio Set the sample rate Establecer la frecuencia de muestreo Turn the reverb on or off [1|0|yes|no|on|off, default = on] Habilitar o deshabilitar la reverberación [1|0|yes|no|on|off, por omisión = on] Turn the chorus on or off [1|0|yes|no|on|off, default = on] Habilitar o deshabilitar el efecto "coro" [1|0|yes|no|on|off, por omisión = on] Set the master gain [0 < gain < 10, default = 0.2] Establecer la ganancia de la salida principal [0 < ganancia < 10, por omisión = 0.2] Define a setting name=value Definir un ajuste nombre=valor Create and start server [default = no] Crear e iniciar el servidor [por omisión = no] Don't read commands from the shell [ignored] No leer mandatos desde el intérprete [ignorado] Dump midi router events Volcar eventos MIDI de encaminamiento Print out verbose messages about midi events Imprimir mensajes detallados sobre eventos MIDI Show help about command line options Mostrar ayuda sobre opciones de línea de mandatos Show version information Mostrar información de la versión Option -m requires an argument (midi-driver). La opción -m requiere un argumento (controlador MIDI). Option -K requires an argument (midi-channels). La opción -K requiere un argumento (canales MIDI). Option -a requires an argument (audio-driver). La opción -a requiere un argumento (controlador de audio). Option -L requires an argument (audio-channels). La opción -L requiere un argumento (canales de audio). Option -G requires an argument (audio-groups). La opción -G requiere un argumento (grupos de audio). Option -z requires an argument (audio-bufsize). La opción -z requiere un argumento (tamaño de memoria intermedia de audio). Option -c requires an argument (audio-bufcount). La opción -c requiere un argumento (número de memorias intermedias de audio). Option -r requires an argument (sample-rate). La opción -r requiere un argumento (frecuencia de muestreo). Option -g requires an argument (gain). La opción -g requiere un argumento (ganancia). Option -o requires an argument. La opción -o requiere un argumento. Unknown option '%1'. Opción desconocida '%1'. (default) (por omisión) qsynthAboutForm Version Versión Debugging option enabled. Opción de depuración habilitada. System tray disabled. Bandeja del sistema deshabilitada. Server option disabled. Opción de servidor deshabilitada. System reset option disabled. Opción de reajuste del sistema deshabilitada. Bank offset option disabled. Opción de desplazamiento de bancos deshabilitada. Using: FluidSynth %1 Usando: FluidSynth %1 Website Sitio web This program is free software; you can redistribute it and/or modify it Este programa es software libre; puede redistribuirlo y/o modificarlo under the terms of the GNU General Public License version 2 or later. bajo los términos de la Licencia Pública General GNU versión 2 o posterior. About Acerca de &Close &Cerrar About Qt Acerca de Qt qsynthChannelsForm Channels Canales Edit Editar Unset Deponer Refresh Refrescar Warning Aviso Delete preset: Borrar preajustes: Are you sure? ¿Está seguro? Preset &Name: &Nombre de los preajustes: Settings preset name Nombre de los preajustes (default) (por omisión) Save settings as current preset name Guardar ajustes con el nombre de preajustes actual &Save &Guardar Delete current settings preset Borrar el conjunto de ajustes actual &Delete &Borrar Channels view Vista de canales In Entrada Chan Canal Bank Banco Prog Prog Name Nombre SFID SFID Soundfont Soundfont qsynthMainForm Information Información Warning Aviso is about to terminate. está a punto de terminar. Are you sure? ¿Está seguro? The program will keep running in the system tray. To terminate the program, please choose "Quit" in the context menu of the system tray icon. El programa va a continuar en ejecución en la bandeja del sistema Para terminar el programa, por favor elija "Terminar" en el menú contextual del icono de la bandeja del sistema. Don't show this message again No mostrar de nuevo este mensaje Loading soundfont: "%1" Cargando soundfont: "%1" Failed to load the soundfont: "%1". Ha fallado la carga del soundfont "%1". Playing MIDI file: "%1" Reproduciendo archivo MIDI: "%1" Failed to play MIDI file: "%1". Ha fallado la reproducción del archivo MIDI: "%1". Error Error &Hide &Ocultar Mi&nimize Mi&nimizar S&how &Mostrar Rest&ore Re&staurar &New engine... &Nuevo motor... &Delete &Borrar Re&start Re&iniciar &Start &Arrancar &Reset &Reajustar &Panic &Pánico &Channels &Canales Set&up... C&onfiguración... Engines Motores &Messages M&ensajes &Options... O&pciones... &Quit &Terminar Don't ask this again No preguntar esto de nuevo Delete fluidsynth engine: Borrar motor fluidsynth: Some settings will be only effective next time you start this program. Algunos ajustes serán efectivos únicamente la próxima vez que se ejecute este programa. Creating synthesizer engine Creación del motor del sintetizador Failed to create the synthesizer. Cannot continue without it. Ha fallado la creación del sintetizador No es posible continuar. Loading soundfont: "%1" (bank offset %2) Cargando el soundfont "%1" (desplazamiento de banco %2) Failed to set bank offset (%1) for soundfont: "%2". Ha fallado el desplazamiento de banco (%1) para el soundfont "%2". Creating audio driver (%1) Creación del controlador de audio (%1) Failed to create the audio driver (%1). Cannot continue without it. Ha fallado la creación del controlador de audio (%1) No es posible continuar. Creating MIDI router (%1) Creación del encaminador MIDI (%1) Failed to create the MIDI input router (%1). No MIDI input will be available. Ha fallado la creación del encaminador MIDI (%1) No estará disponible la entrada MIDI. Creating MIDI driver (%1) Creación del controlador MIDI (%1) Failed to create the MIDI driver (%1). No MIDI input will be available. Ha fallado la creación del controlador MIDI (%1). No estará disponible la entrada MIDI. Creating MIDI player Creación del reproductor MIDI Failed to create the MIDI player. Continuing without a player. Ha fallado la creación del reproductor MIDI. Continuando sin un reproductor. Creating server Creación del servidor Failed to create the server. Continuing without it. Ha fallado la creación del servidor. Continuando sin él. Server mode disabled. Continuing without it. Modo servidor deshabilitado. Continuando sin él. Synthesizer engine started. Motor de sintetizador iniciado. Destroying server Destrucción del servidor Stopping MIDI player Deteniendo reproductor MIDI Waiting for MIDI player to terminate Esperando que el reproductor MIDI termine Destroying MIDI player Destrucción del reproducción MIDI Destroying MIDI driver Destrucción del controlador MIDI Destroying MIDI router Destrucción del encaminador MIDI Destroying audio driver Destrucción del controlador de audio Unloading soundfont: "%1" (SFID=%2) Descargando el soundfont "%1" (SFID=%2) Failed to unload the soundfont: "%1". Ha fallado la descarga del soundfont: "%1". Destroying synthesizer engine Destruyendo el motor del sintetizador Synthesizer engine terminated. Motor del sintetizador terminado. New settings will be effective after restarting all fluidsynth engines. Los nuevos ajustes serán efectivas después de reiniciar todos los motores de Fluidsynth. Please note that this operation may cause temporary MIDI and Audio disruption. Por favor, tenga en cuenta que esta operacón puede causar trastornos temporales en MIDI y audio. Do you want to restart all engines now? ¿Quiere reiniciar todos los motores ahora? New settings will be effective after restarting the fluidsynth engine: Los nuevos ajustes serán efectivos después de reiniciar el motor de Fluidsynth: Do you want to restart the engine now? ¿Quiere reiniciar el motor ahora? Add a new engine Añadir un nuevo motor Engine selector (right-click for menu) Selector de motor (clic con el botón derecho del ratón para menú) Delete current engine Borrar el motor actual Show/hide the channels view window Mostrar/ocultar la ventana de vista de canales Complete engine restart Reinicio completo del motor Program reset (all channels) Reajustar el programa (todos los canales) Show instance settings and configuration dialog Mostrar ajustes de la instancia y diálogo de configuración Master Salida principal &Gain &Ganancia Master Gain Ganancia de la salida principal System reset Reajuste del sistema Reverb Reverberación Reverb effect activation Activación del efecto de reverberación Ac&tive Ac&tivar Reverb Level Nivel de reverberación &Level &Nivel Reverb Width Amplitud de reverberación &Width &Amplitud Reverb Damp Factor Factor de humedad de reverberación D&amp &Humedad Reverb Room Size Tamaño de sala de reverberación R&oom &Sala Chorus Coro Chorus Modulation Type Tipo de modulación de coro Sine Seno Triangle Triángulo T&ype: T&ipo: Chorus effect activation Activación del efecto de coro Act&ive Act&ivar Number of Chorus Stages Número de etapas de coro &N &N Chorus Level Nivel de coro Le&vel Ni&vel Chorus Speed (Hz) Velocidad de coro (Hz) Chorus Speed Hz Velocidad de coro Hz Spee&d Veloci&dad Chorus Depth (ms) Intensidad de coro (ms) Dept&h &Intensidad Output peak level Nivel de pico de salida Quit this application Terminar esta aplcación Show general options dialog Mostrar diálogo de opciones generales Show/hide the messages log window Mostrar/ocultar la ventana de registro de mensajes Show information about this application Mostrar información sobre esta aplicación A&bout... A&cerca de... qsynthMessagesForm Logging stopped --- %1 --- Registro parado --- %1 --- Logging started --- %1 --- Registro iniciado --- %1 --- Messages Mensajes Messages output log Registro de salida de mensajes qsynthOptionsForm Information Información Some settings may be only effective next time you start this application. Algunas opciones pueden tener efecto solamente después de la próxima vez que inicie esta aplicación. Warning Aviso Some options have been changed. Algunas opciones han cambiado. Do you want to apply the changes? ¿Quiere aplicar los cambios? Messages Log Registro de mensajes Log files Archivos de registro Display Visualización Messages Mensajes General General Sample messages text font display Texto de muestra para visualización de tipografía de mensajes Select font for the messages text display Seleccionar tipografía para la visualización de texto de mensajes &Font... &Tipografía... Whether to keep a maximum number of lines in the messages window Determina si se ha de conservar un máximo número de líneas en la ventana de mensajes &Messages limit: Límite de &mensajes: The maximum number of message lines to keep in view El máximo número de líneas de mensajes que se conservan en la vista 100 100 250 250 500 500 1000 1000 2500 2500 5000 5000 Logging Registro Messages log file Archivo de registro de mensajes Browse for the messages log file location Explorar la ubicación del archivo de registro de mensajes ... ... Whether to activate a messages logging to file. Determina si se ha de activar el registro de mensajes en un archivo. Custom Personalización &Color palette theme: Paleta de &colores del tema: Custom color palette theme Paleta de colores personalizada Wonton Soup DO NOT TRANSLATE KXStudio DO NOT TRANSLATE Manage custom color palette themes Gestionar los temas personalizados de paleta de color &Widget style theme: Tema de estilo de &widgets: Custom widget style theme Tema de estilo de widgets personalizado Other Otros Whether to ask for confirmation on application exit Determina si se ha de solicitar confirmación para terminar la aplicación &Confirm application close &Confirmar el cierre de la aplicación Whether to keep all child windows on top of the main window Determina si se han de mantener todas las ventanas hijas por encima de la ventana principal &Keep child windows always on top &Mantener las ventanas hijas siempre encima Whether to capture standard output (stdout/stderr) into messages window Determina si se ha de capturar la salida estándar (stdout/stderr) en la ventana de mensajes Capture standard &output Capturar la salida &estándard Whether to monitor and show engine output peak level meters Determina si se han de monitorizar y mostrar los medidores de picos de salida del motor Output &peak level meters Medidores de &picos de nivel de salida Whether to enable the system tray icon Determina si se habilita el icono en la bandeja del sistema &Enable system tray icon &Habilitar el icono en la bandeja del sistema Whether to start minimized to system tray Determina si se inicia minimizado en la bandeja del sistema Start minimi&zed to system tray Iniciar minimi&zado en la bandeja del sistema Knobs Botones giratorios Graphic style for knobs Estilo gráfico para los botones rotatorios Classic Clásico Vokimon Vokimon Peppino Peppino Legacy Heredado Radial Radial Linear Lineal Mouse motion behavior for knobs Comportamiento del movimiento del ratón para los botones rotatorios Options Opciones Whether to show system tray message on main window close Mostrar o no un mensaje en la bandeja del sistema al cerrar la ventana principal Sho&w system tray message on close Mostra&r mensaje en la bandeja del sistema al cerrar Defaults Por omisión &Base font size: Tamaño &base de fuentes: Base application font size (pt.) Tamaño base de fuentes de la aplicación (pt.) (default) (por omisión) 8 8 9 9 10 10 11 11 12 12 Messages &log file: Archivo de &registro de mensajes: Kno&b graphic style: Estilo gráfico de &botones rotatorios: Mouse motion be&havior: Comportamiento del &movimiento del ratón: 6 6 7 7 Skulpture Skulpture qsynthPaletteForm Color Themes Temas de colores Name Nombre Current color palette name Nombre actual de la paleta de colores Save current color palette name Guardar el nombre actual de la paleta de colores Save Guardar Delete current color palette name Borrar nombre actual de la paleta de colores Delete Borrar Palette Paleta Current color palette Paleta de colores actual Generate: Generar: Base color to generate palette Color base para generar la paleta Reset all current palette colors Restablecer todos los colores de la paleta actual Reset Restablecer Import a custom color theme (palette) from file Importar un tema personalizado de colores (paleta) desde un archivo Import... Importar... Export a custom color theme (palette) to file Exportar un tema personalizado de colores (paleta) a un archivo Export... Exportar... Show Details Mostrar detalles Import File - %1 Importar archivo - %1 Palette files (*.%1) Archivos de paletas (*.%1) All files (*.*) Todos los archivos (*.*) Warning - %1 Aviso - %1 Could not import from file: %1 Sorry. No se ha podido importar desde archivo: %1. Lo siento. Export File - %1 Exportar archivo - %1 Some settings have been changed. Do you want to discard the changes? Algunas opciones han cambiado. ¿Desea descartar los cambios? Some settings have been changed: "%1". Do you want to save the changes? Algunas opciones han cambiado: "%1". ¿Desea guardar los cambios? qsynthPaletteForm::PaletteModel Color Role Rol de color Active Activo Inactive Inactivo Disabled Deshabilitado qsynthPresetForm Channel %1 Canal %1 Channel Preset Preajuste de canal Preset Preajuste Bank selector Selector de canales Bank Banco Program selector Selector de programa Prog Prog Name Nombre SFID SFID Soundfont Soundfont Whether to preview the current selection Determina si se previsualizará la selección actual Preview Previsualización qsynthSetupForm Setup Configuración Warning Aviso Some settings have been changed. Algunos ajustes han cambiado. Do you want to apply the changes? ¿Quiere aplicar los cambios? Open... Abrir... Edit Editar Remove Borrar Move Up Mover hacia arriba Move Down Moves hacia abajo Soundfont files Archivos de soundfonts Soundfont file already on list Archivo de soundfont ya está en la lista Add anyway? ¿Añadir de todas formas? Error Error Failed to add soundfont file Ha fallado la adición del arhivo de soundfont Please, check for a valid soundfont file. Por favor, verifique se trata de un soundfont válido. Engine &Name: &Nombre del motor: Engine display name Nombre visible de motor &MIDI &MIDI MIDI device name nombre de dispositivo MIDI MIDI &Device: &Dispositivo MIDI: &MIDI Driver: Controlador &MIDI: Input MIDI driver Controlador de entrada MIDI MIDI Client Name ID (ALSA/CoreMidi): ID de cliente MIDI (ALSA/CoreMidi): ALSA Sequencer client name identification Identificador de cliente del secuenciador de ALSA pid pid qsynth qsynth Whether to show MIDI router events on messages window Determina si se mostrarán eventos del encaminador MIDI en la ventana de mensajes &Dump MIDI router events &Volcar eventos de encaminador MIDI Print out verbose messages about MIDI events Imprimir mensajes detallados sobre eventos MIDI &Verbose MIDI event messages Mensajes &detallados de eventos MIDI Number of MIDI channels Número de canales MIDI MIDI &Channels: &Canales MIDI: Enable MIDI input Habilitar entrada MIDI Enable MIDI &Input Habilitar &Entrada MIDI gm gm gs gs mma mma xs xs MIDI &Bank Select mode: Modo de selección de &Banco MIDI: MIDI Bank Select mode Modo de selección de Banco MIDI &Audio &Audio Sample &Format: &Formato de muestra: Output audio driver Controlador de salida de audio Sample format Formato de muestra Period size in bytes (audio buffer size) Tamaño del periodo en bytes (tamaño de la memoria intermedia de audio) 64 64 128 128 256 256 512 512 1024 1024 2048 2048 4096 4096 8192 8192 Buffer Cou&nt: &Número de memorias intermedias: Sample rate in samples per second (Hz) Frecuencia de muestreo en muestras por segundo (Hz) 22050 22050 44100 44100 48000 48000 88200 88200 96000 96000 Sample &Rate: F&recuencia de muestreo: Period count (number of audio buffers) Número de periodos (número de memorias intermedias de audio) 2 2 4 4 8 8 16 16 32 32 Buffer &Size: &Tamaño de la memoria intermedia: &Audio Driver: Controlador de &Audio: Audio &Device: &Dispositivo de Audio: Audio &Channels: &Canales de Audio: Number of audio groups Número de grupos de audio Number of enabled polyphonic voices Número de voces polifónicas habilitadas Number of stereo audio channels Número de canales estereofónicos de audio &Polyphony: &Polifonía: Audio &Groups: &Grupos de Audio: JACK Client Name &ID: &Identificador de Cliente de JACK: JACK client name identification Identificación del nombre de cliente de JACK fluidsynth fluidsynth Attempt to connect the JACK outputs to the physical ports Intentar la conexión de las salidas de JACK a los puertos físicos Auto Connect &JACK Outputs Conexión automática de salidas de &JACK Create multiple JACK output ports for channels, groups and effects Creación de múltiples puertos de salida de JACK para canales, grupos y efectos &Multiple JACK Outputs &Múltiples salidas de JACK &Soundfonts &Soundfonts Soundfont stack Pila de soundfont SFID SFID Name Nombre Offset Desplazamiento Open soundfont file for loading Abrir archivo de soundfont para carga &Open... &Abrir... Edit selected soundfont bank offset Editar desplazamiento del banco de soundfont &Edit &Edición Remove selected soundfont from stack Borrar el soundfont seleccionado de la pila &Remove &Borrar Move up selected soundfont towards the top of stack Mover hacia arriba el soundfont seleccionado hacia la cima de la pila &Up A&rriba Move down selected soundfont towards the bottom of stack Mover hacia abajo el soundfont seleccionado hacia la base de la pila &Down A&bajo S&ettings A&justes Type Tipo Realtime Tiempo real Current Actual Default Por omisión Min Min Max Max Options Opciones qsynth-0.6.1/src/translations/PaxHeaders.5367/qsynth_sr.ts0000644000000000000000000000013213577702221020445 xustar0030 mtime=1577026705.850992838 30 atime=1577026705.850992838 30 ctime=1577026705.850992838 qsynth-0.6.1/src/translations/qsynth_sr.ts0000644000175000001440000026475613577702221021316 0ustar00rncbcusers00000000000000 QObject Usage: %1 [options] [soundfonts] [midifiles] Употреба: %1 [опције] [звукотеке] [миди_датотеке] Options Параметри Don't create a midi driver to read MIDI input events [default = yes] Не стварај миди посредника за читање улазних миди-догађаја [подразумевано = yes] The name of the midi driver to use [oss,alsa,alsa_seq,...] Назив миди посредника који ће се користити [oss,alsa,alsa_seq,...] The number of midi channels [default = 16] Број миди-канала [подразумевано = 16] The audio driver [alsa,jack,oss,dsound,...] Звучни посредник [alsa,jack,oss,dsound,...] Attempt to connect the jack outputs to the physical ports Покушавај да повежеш излазе Џек посредника на физичке портове The number of stereo audio channels [default = 1] Број звучних стерео канала [подразумевано = 1] The number of audio groups [default = 1] Број звучних група [подразумевано = 1] Size of each audio buffer Величина сваког звучног бафера Number of audio buffers Број звучних бафера Set the sample rate Постави учестаност узорковања Turn the reverb on or off [1|0|yes|no|on|off, default = on] Укљ./Искљ. јека еф. [1|0|yes|no|on|off, подразумевано = on] Turn the chorus on or off [1|0|yes|no|on|off, default = on] Укљ./Искљ. хорус еф. [1|0|yes|no|on|off, подразумевано = on] Set the master gain [0 < gain < 10, default = 0.2] Постави Мастер-појачање [0 < gain < 10, подразумевано = 0.2] Define a setting name=value Одреди назив поставке=вредност Create and start server [default = no] Створи и покрени сервер [подразумевано = no] Don't read commands from the shell [ignored] Не читај команде из наредбене линије [занемарено] Dump midi router events Избаци догађаје миди-рутера Print out verbose messages about midi events Штампај опширније поруке о миди-догађајима Show help about command line options Прикажи помоћ о опцијама линије наредбе Show version information Прикажи податке о издању програма Option -m requires an argument (midi-driver). Опција „-m“ захтева аргумент (миди посредник). Option -K requires an argument (midi-channels). Опција „-K“ захтева аргумент (миди-канали). Option -a requires an argument (audio-driver). Опција „-a“ захтева аргумент (звучни посредник). Option -L requires an argument (audio-channels). Опција „-L“ захтева аргумент (звучни канали). Option -G requires an argument (audio-groups). Опција „-G“ захтева аргумент (звучне групе). Option -z requires an argument (audio-bufsize). Опција „-z“ захтева аргумент (вел. зв. бафера). Option -c requires an argument (audio-bufcount). Опција „-c“ захтева аргумент (број зв. бафера). Option -r requires an argument (sample-rate). Опција „-r“ захтева аргумент (учестаност узорковања). Option -g requires an argument (gain). Опција „-g“ захтева аргумент (појачање). Option -o requires an argument. Опција „-o“ захтева аргумент. Unknown option '%1'. Непозната опција „%1“. (default) (подразумевано) qsynthAboutForm About О програму &Close &Затвори About Qt О КуТ Version Издање Debugging option enabled. Омогућено праћење грешака. System tray disabled. Онемогућена икона у обавештајној зони. Server option disabled. Онемогућена серверска опција. System reset option disabled. Онемогућена опција поновног покретања система. Bank offset option disabled. Онемогућена опција офсет банке. Using: FluidSynth %1 Употребљавам: Флуид-синт %1 Website Интернет страница This program is free software; you can redistribute it and/or modify it Овај програм је слободан софтвер; можете га прослеђивати и/или мењати under the terms of the GNU General Public License version 2 or later. под условима ГНУ Опште Јавне Лиценце верзије 2 или (по вашем избору) било које касније верзије. qsynthChannelsForm Preset &Name: &Назив поставке: Settings preset name Подешавања назива поставке (default) (подразумевано) Save settings as current preset name Сачувај подешавања као текући назив поставке &Save &Сачувај Delete current settings preset Уклони текуће подешавање поставке &Delete &Уклони Channels view Преглед канала In Ул. Chan Канал Bank Банка Prog Програм Name Назив SFID З-ИБ Soundfont Звукотека Channels Канали Edit Уреди Unset Ослободи Refresh Освежи Warning Упозорење Delete preset: Уклањање поставке: Are you sure? Да ли сте сигурни? qsynthMainForm Master Мастер &Gain По&јачање Master Gain Главни појачавач Complete engine restart Наново покрени све Re&start Ре&старт Reverb Јека Reverb effect activation Покретање ефекта јеке Ac&tive О&могући Reverb Level Количина ефекта јеке &Level Ко&личина Reverb Width Ширина ефекта јеке &Width &Ширина Reverb Damp Factor Фактор пригушивања ефекта јеке D&amp При&гушено Reverb Room Size Величина собе за ефекат јеке R&oom С&оба Chorus Хорус Chorus Modulation Type Врста модулације за хорус ефекат Sine синусна Triangle троугласта T&ype: Врс&та: Chorus effect activation Покретање хорус ефекта Act&ive Омогућ&и Number of Chorus Stages Број етапа хорус ефекта &N &Број Chorus Level Количина хорус ефекта Le&vel Коли&чина Chorus Speed (Hz) Брзина хоруса (Hz) Chorus Speed Hz Брзина хоруса у херцима Spee&d Брзин&а Chorus Depth (ms) Дубина хоруса у милисекундама Dept&h &Дубина Output peak level Ниво вршних вредности на излазу Quit this application Напуштање програма &Quit И&злаз Show general options dialog Прикажи прозорче са општим опцијама &Options... &Опције… Show/hide the messages log window Приказује/Скрива прозорче за преглед дневника са порукама &Messages Порук&е Show information about this application Прикажи податке о овом програму A&bout... О про&граму… System reset Ресет система &Panic &Узбуна Program reset (all channels) Ресет програма (на свим каналима) &Reset &Ресет Show instance settings and configuration dialog Приказује прозорче поставки и подешавања Set&up... &Поставке… Show/hide the channels view window Приказује/Скрива прозорче за преглед канала &Channels &Канали Add a new engine Додај нови покретач Engine selector (right-click for menu) Избор покретача (десни клик за мени) Delete current engine Уклони текући покретач Information Подаци The program will keep running in the system tray. To terminate the program, please choose "Quit" in the context menu of the system tray icon. Програм ће остати покренут у обавештајној зони. За затварање програма, одаберите „Излаз“ из контекстног менија на икони у обавештајној зони. Don't show this message again Не приказуј ово поново Warning Упозорење is about to terminate. ће завршити са радом. Are you sure? Да ли сте сигурни? Don't ask this again Не питај ме ово поново Loading soundfont: "%1" Учитавање звукотеке: „%1“ Failed to load the soundfont: "%1". Није успело учитавање звукотеке: „%1“. Playing MIDI file: "%1" Свирам миди датотеку: „%1“ Failed to play MIDI file: "%1". Нисам успео да одсвирам миди датотеку: „%1“. Error Грешка &Hide &Сакриј Mi&nimize У&мањи S&how При&кажи Rest&ore Вра&ти &New engine... &Нови покретач… &Delete &Уклони &Start &Старт Engines Покретачи Delete fluidsynth engine: Уклони флуид-синт покретач: Some settings will be only effective next time you start this program. Нека од подешавања ће се применити само по поновном покретању програма. Creating synthesizer engine Створи покретач синтисајзера Failed to create the synthesizer. Cannot continue without it. Нисам успео да створим синтисајзер. Не могу да радим без њега. Loading soundfont: "%1" (bank offset %2) Учитавање звукотеке: „%1“ (офсет банке %2) Failed to set bank offset (%1) for soundfont: "%2". Нисам успео да поставим офсет банке (%1) за звукотеку: „%2“. Creating audio driver (%1) Стварање звучног посредника (%1) Failed to create the audio driver (%1). Cannot continue without it. Није успело стварање зв. посредника (%1). Не могу да радим без њега. Creating MIDI router (%1) Стварање миди-рутера (%1) Failed to create the MIDI input router (%1). No MIDI input will be available. Нисам успео да створим улазни миди рутер (%1). Миди-улази неће бити доступни. Creating MIDI driver (%1) Стварање миди посредника (%1) Failed to create the MIDI driver (%1). No MIDI input will be available. Нисам успео да створим миди посредника (%1). Миди-улази неће бити доступни. Creating MIDI player Стварање миди-свирача Failed to create the MIDI player. Continuing without a player. Нисам успео да створим миди-свирача. Настављам без њега. Creating server Стварање сервера Failed to create the server. Continuing without it. Нисам успео да створим сервер. Не могу да радим без њега. Server mode disabled. Continuing without it. Онемогућено је серверски режим. Настављам без њега. Synthesizer engine started. Покретач синтисајзера је у употреби. Destroying server Уништавање сервера Stopping MIDI player Заустављање миди-свирача Waiting for MIDI player to terminate Чекам да се заустави миди-свирач Destroying MIDI player Уништавање миди-свирача Destroying MIDI driver Уништавање миди-посредника Destroying MIDI router Уништавање миди-рутера Destroying audio driver Уништавање звучног посредника Unloading soundfont: "%1" (SFID=%2) Избацивање звукотеке: „%1“ (З-ИБ=%2) Failed to unload the soundfont: "%1". Није успело избацивање звукотеке: „%1“. Destroying synthesizer engine Уништавање покретача синтисајзера Synthesizer engine terminated. Покретач синтисајзера је заустављен. New settings will be effective after restarting all fluidsynth engines. Нова подешавања ће се применити само по поновном покретању флуид-синт покретача. Please note that this operation may cause temporary MIDI and Audio disruption. Ова радња може довести до привремених миди и звучних поремећаја у раду. Do you want to restart all engines now? Желите ли да поново покренете све покретаче? New settings will be effective after restarting the fluidsynth engine: Нова подешавања ће се применити само по поновном покретању флуид-синт покретача: Do you want to restart the engine now? Желите ли да поново покренете овај покретач? qsynthMessagesForm Messages Поруке Messages output log Дневник порука на излазу Logging stopped --- %1 --- Праћење порука заустављено --- %1 --- Logging started --- %1 --- Праћење порука започето --- %1 --- qsynthOptionsForm Display Приказ Messages Поруке General Опште Sample messages text font display Пример приказа слова текстуалних порука Select font for the messages text display Одабир словолика за приказ текстуалних порука &Font... &Словолик… Whether to keep a maximum number of lines in the messages window Омогућава ограничавање броја линија у прозорчету са порукама које треба задржати &Messages limit: Ограничавање у порук&ма: The maximum number of message lines to keep in view Највећи број линија у прозорчету са порукама које треба задржати 100 100 250 250 500 500 1000 1000 2500 2500 5000 5000 Logging Дневник рада Messages log file Датотека дневника порука Browse for the messages log file location Разгледај за путањом до датотеке дневника порука ... Whether to activate a messages logging to file. Омогућава вођење дневника са порукама у датотеци. Messages &log file: Датотека &дневника порука: Knobs Дугмад Kno&b graphic style: Изглед ду&гмади: Graphic style for knobs Подешавање графичког приказа (изгледа) дугмади Classic подразумевано Vokimon воукимон Peppino пепино Skulpture скулптура Legacy старински Mouse motion be&havior: Управља&ње мишом: Mouse motion behavior for knobs Подешавање управљања дугмадима помоћу миша Radial кружно Linear линијски Custom Прилагођено &Color palette theme: Тема са палетом &боја: Custom color palette theme Прилагођена тема са палетом боја Wonton Soup DO NOT TRANSLATE KXStudio DO NOT TRANSLATE Manage custom color palette themes Управљање прилагођеном темом са палетом боја &Widget style theme: Тема за &додатке: Custom widget style theme Прилагођена тема за додатке Other Остало Whether to ask for confirmation on application exit Да ли да затражим потврду по напуштању програма &Confirm application close Потврда &за напуштање програма Whether to show system tray message on main window close Да ли да прикажем поруку у об. зони по затварању гл. прозора Sho&w system tray message on close Прикажи поруку у обавештајној зони по оконча&њу Defaults Подразумевано Whether to keep all child windows on top of the main window Да ли да издигнем потчињене прозоре у први план Options Параметри &Keep child windows always on top Потчињени прозори су у првом п&лану Whether to capture standard output (stdout/stderr) into messages window Да ли да пратим стандардни излаз („stdout/stderr“) кроз прозорче са порукама Capture standard &output Прати стандардни &излаз Whether to monitor and show engine output peak level meters Да ли да пратим и приказујем ниво излазних вршних вредности сигнала Output &peak level meters &Прати ниво вршних вредности покретача Whether to enable the system tray icon Да ли да омогућим употребу иконе у обавештајној зони &Enable system tray icon Омогући икону у обав&ештајној зони Whether to start minimized to system tray Да ли да сакријем програм при покретању у обавештајну зону Start minimi&zed to system tray По покретању смести у &обавештајну зону &Base font size: Величина &слова: Base application font size (pt.) Основна величина слова у програму (у тачкама-пт.) (default) (подразумевано) 6 6 7 7 8 8 9 9 10 10 11 11 12 12 Information Подаци Some settings may be only effective next time you start this application. Нека од подешавања ће се применити само по поновном покретању програма. Warning Упозорење Some options have been changed. Измењена су нека подешавања. Do you want to apply the changes? Желите ли да примените ове измене? Messages Log Дневник порука Log files Датотеке дневника qsynthPaletteForm Color Themes Тема боја Name Назив Current color palette name Назив текуће палете боја Save current color palette name Сачувај назив текуће палете боја Save Сачувај Delete current color palette name Уклони назив текуће палете боја Delete Уклони Palette Палета Current color palette Текућа палета боја Generate: Стварај: Base color to generate palette Из основне боје створи палету Reset all current palette colors Поништи све текуће палете боја Reset Поништи Import a custom color theme (palette) from file Увези прилагођену тему боја (палету) из датотеке Import... Увези… Export a custom color theme (palette) to file Извези прилагођену тему боја (палету) у датотеку Export... Извези… Show Details Прикажи детаље Import File - %1 Увези датотеку — %1 Palette files (*.%1) Датотеке палета (*.%1) All files (*.*) Све датотеке (*.*) Warning - %1 Упозорење — %1 Could not import from file: %1 Sorry. Не могу да увезем из датотеке: %1 Праштајте. Export File - %1 Извези датотеку — %1 Some settings have been changed. Do you want to discard the changes? Измењена су нека подешавања. Желите ли да одбаците ове измене? Some settings have been changed: "%1". Do you want to save the changes? Измењена су нека подешавања: "%1". Желите ли да сачувате ове измене? qsynthPaletteForm::PaletteModel Color Role Улога боје Active Укључено Inactive Искључено Disabled Онемогућено qsynthPresetForm Channel Preset Поставка канала Preset Поставка Bank selector Изборник банке Bank Банка Program selector Изборник програма Prog Програм Name Назив SFID З-ИБ Soundfont Звукотека Whether to preview the current selection Омогућава преглед текућег избора Preview Преглед Channel %1 Канал %1 qsynthSetupForm Engine &Name: &Назив покретача: Engine display name Приказан назив покретача &MIDI &Миди &MIDI Driver: &Миди посредник: Whether to show MIDI router events on messages window Омогућава преглед догађаја миди-рутирања у прозорчету са порукама &Dump MIDI router events Избаци &догађаје миди-рутера MIDI device name Назив миди-уређаја Enable MIDI input Омогући миди-улаз Enable MIDI &Input Омогућ&и миди-улаз Input MIDI driver Миди посредник на улазу MIDI &Device: Миди-&уређај: Print out verbose messages about MIDI events Штампај опширније поруке о миди-догађајима &Verbose MIDI event messages Опширни&је поруке о миди-догађају MIDI &Channels: Миди-&канали: Number of MIDI channels Број миди-канала MIDI &Bank Select mode: Начин избора миди-&банке: MIDI Bank Select mode Начин избора миди-банке gm ЏМ gs ГС mma ММА xs Икс-С MIDI Client Name ID (ALSA/CoreMidi): ИБ назива миди-клијента (АЛСА/КореМиди): ALSA Sequencer client name identification Идентификација назива АЛСА секвенцер клијента pid ПИБ qsynth Ку-синт &Audio &Звук Sample &Format: О&блик узорка: Output audio driver Звучни посредник на излазу Sample format Облик (формат) узорка Period size in bytes (audio buffer size) Величина периода у бајтима (вел. звучног бафера) 64 64 128 128 256 256 512 512 1024 1024 2048 2048 4096 4096 8192 8192 Buffer Cou&nt: Број&ност бафера: Sample rate in samples per second (Hz) Учестаност узорковања у узорцима у секунди (Hz) 22050 22050 44100 44100 48000 48000 88200 88200 96000 96000 Sample &Rate: Учестаност узо&рковања: Period count (number of audio buffers) Бројност периода (количина, број звучних бафера) 2 2 4 4 8 8 16 16 32 32 Buffer &Size: &Величина бафера: &Audio Driver: &Звучни посредник: Audio &Device: Звучни &уређај: Audio &Channels: Звучни &канали: Number of audio groups Бројност звучних група Number of enabled polyphonic voices Број омогућених вишезвучних (полифоних) гласова Number of stereo audio channels Број звучних стерео канала &Polyphony: Ви&шезвучје: Audio &Groups: Звучне &групе: JACK Client Name &ID: &ИБ назива Џек-клијента: JACK client name identification Идентификација назива Џек-клијента fluidsynth Флуид-синт Attempt to connect the JACK outputs to the physical ports Покушавај да повежеш излазе Џек посредника на физичке портове Auto Connect &JACK Outputs Сам повезу&ј излазе Џек посредника Create multiple JACK output ports for channels, groups and effects Створи вишеструке излазе за канале групе и ефекте у Џек посреднику &Multiple JACK Outputs Виш&еструки излази у Џек посреднику &Soundfonts &Звукотеке Soundfont stack Библиотека звукотека SFID З-ИБ Name Назив Offset Офсет Open soundfont file for loading Отвори звукотеку за учитавање &Open... &Отвори… Edit selected soundfont bank offset Уреди офсет за изабрану банку звукотеке &Edit Ур&еди Remove selected soundfont from stack Уклони изабрану звукотеку из бибиотеке &Remove &Уклони Move up selected soundfont towards the top of stack Премести звукотеку ка врху &Up &Горе Move down selected soundfont towards the bottom of stack Премести звукотеку ка дну &Down &Доле S&ettings Под&ешавања Type Врста Realtime У стварном времену Current Тренутно Default Подразумевано Min Мин. Max Макс. Options Параметри Setup Поставке Warning Упозорење Some settings have been changed. Измењена су нека подешавања. Do you want to apply the changes? Желите ли да примените ове измене? Open... Отвори… Edit Уреди Remove Уклони Move Up Подигни Move Down Спусти Soundfont files Звукотеке Soundfont file already on list Звукотека је већ на списку Add anyway? Да ли да је додам упркос томе? Error Грешка Failed to add soundfont file Нисам успео да додам звукотеку Please, check for a valid soundfont file. Потражите ваљану звукотеку. qsynth-0.6.1/src/translations/PaxHeaders.5367/qsynth_ru.ts0000644000000000000000000000013213577702221020447 xustar0030 mtime=1577026705.850992838 30 atime=1577026705.850992838 30 ctime=1577026705.850992838 qsynth-0.6.1/src/translations/qsynth_ru.ts0000644000175000001440000026250113577702221021302 0ustar00rncbcusers00000000000000 QObject Options Параметры Don't create a midi driver to read MIDI input events [default = yes] Не создавать драйвер MIDI для чтения входящих событий MIDI [по умолчанию = yes] The name of the midi driver to use [oss,alsa,alsa_seq,...] Имя используемого драйвера MIDI [oss,alsa,alsa_seq,...] The number of midi channels [default = 16] Количество каналов MIDI [по умолчанию = 16] The audio driver [alsa,jack,oss,dsound,...] Звуковой драйвер [alsa,jack,oss,dsound,...] Attempt to connect the jack outputs to the physical ports Попытка связать выход JACK с физическими портами The number of stereo audio channels [default = 1] Количество стереофонических звуковых каналов [по умолчанию = 1] The number of audio groups [default = 1] Количиство звуковых групп [по умолчанию = 1] Size of each audio buffer Размер каждого звукового буфера Number of audio buffers Количество звуковых буферов Set the sample rate Установить частоту семплирования Turn the reverb on or off [1|0|yes|no|on|off, default = on] Включить/выключить реверберацию [1|0|yes|no|on|off, по умолчанию = on] Turn the chorus on or off [1|0|yes|no|on|off, default = on] Включить/выключить хорус [1|0|yes|no|on|off, по умолчанию = on] Set the master gain [0 < gain < 10, default = 0.2] Установить главное усиление [0 < усиление < 10, по умолчанию = 0.2] Define a setting name=value Определите имя=значение настройки Create and start server [default = no] Создать и запустить сервер [по умолчанию = no] Don't read commands from the shell [ignored] Не считывать команды из оболочки [проигнорировано] Dump midi router events Глушить события маршрутизатора MIDI Print out verbose messages about midi events Показывать подробную информацию о сообщениях MIDI Show help about command line options Показать справку о параметрах для командной строки Show version information Показать информацию о версии Option -m requires an argument (midi-driver). Ключ -m требует аргумента (midi-driver). Option -K requires an argument (midi-channels). Ключ -K требует аргумента (midi-channels). Option -a requires an argument (audio-driver). Ключ -a требует аргумента (audio-driver). Option -L requires an argument (audio-channels). Ключ -L требует аргумента (audio-channels). Option -G requires an argument (audio-groups). Ключ -G требует аргумента (audio-groups). Option -z requires an argument (audio-bufsize). Ключ -a требует аргумента (audio-bufsize). Option -c requires an argument (audio-bufcount). Ключ -c требует аргумента (audio-bufcount). Option -r requires an argument (sample-rate). Ключ -r требует аргумента (sample-rate). Option -g requires an argument (gain). Ключ -g требует аргумента (gain). Option -o requires an argument. Ключ -o требует аргумента. (default) (по умолчанию) Usage: %1 [options] [soundfonts] [midifiles] Использование: %1 [ключи] [файлы SF2] [файлы MIDI] Unknown option '%1'. неизвестный ключ '%1'. qsynthAboutForm About About Qt О программе &Close &Закрыть Version Версия System tray disabled. Server option disabled. Параметр сервера отключен. Using: FluidSynth %1 Website Веб-сайт This program is free software; you can redistribute it and/or modify it Эта программа является свободной; вы имеете право распространять и/или under the terms of the GNU General Public License version 2 or later. изменять её на условиях лицензии GNU GPL версии 2 или более новой. Debugging option enabled. Параметр отладки включён. System reset option disabled. Параметр перезагрузки системы включён. Bank offset option disabled. Функция смещения банка отключена. qsynthChannelsForm Edit Изменить Refresh Обновить Preset &Name: Имя &предустановки: (default) (по умолчанию) Settings preset name Имя предустановки настроек &Save Со&хранить Save settings as current preset name Сохранить настройки в текущую предустановку &Delete У&далить Delete current settings preset Удалить текущую предустановку In Вх Bank Банк Prog Программа Name Имя SFID SFID Soundfont SF2-файл Channels view Вид каналов Channels Каналы Unset Снять Warning Предупреждение Delete preset: Удалить пресет: Are you sure? Вы уверены? Chan Канал qsynthMainForm Chorus Хор Chorus Level Громкость хора Le&vel Гро&мк. Dept&h Глу&бина T&ype: &Тип: Sine Синусоида Triangle Треугольная Chorus Modulation Type Тип модуляции хора Reverb Реверберация D&amp При&глуш. Reverb Room Size Объём помещения R&oom &Комната &Level &Громк. Ac&tive &Вкл &Quit В&ыйти Quit this application Выйти из программы Set&up... &Настроить... &Messages &Сообщения Show/hide the messages log window Показать/скрыть окно отображения сообщений программы A&bout... О &программе... Show information about this application Показать информацию об этом приложении Master Мастер Master Gain Общее усиление &Gain &Усиление &Reset С&бросить Program reset (all channels) Сброс программ (все каналы) Complete engine restart Полная перезагрузка синтезатора Warning Предупреждение Are you sure? Вы уверены? Error Ошибка Please note that this operation may cause temporary MIDI and Audio disruption. Обратите внимание на то, что выполнение этой операции может привести к временным сбоям в воспроизведении MIDI и аудио. Do you want to restart the engine now? Вы хотите перезагрузить движок синтезатора? Creating synthesizer engine Создается движок синтезатора Creating MIDI player Создается проигрыватель MIDI Creating server Создается сервер Synthesizer engine started. Движок синтезатора запущен Destroying server Выполняется разрушение сервера Stopping MIDI player Останавливается устройство воспроизведения MIDI Waiting for MIDI player to terminate Ожидается выгрузка устройства воспроизведения MIDI Destroying MIDI player Выполняется разрушение проигрывателя MIDI Destroying MIDI driver Выполняется разрушение драйвера MIDI Destroying MIDI router Выполняется разрушение маршрутизатора MIDI Destroying audio driver Выполняется разрушение звукового драйвера Destroying synthesizer engine Разрушается движок синтезатора Synthesizer engine terminated. Движок синтезатора остановлен Information Информация Some settings will be only effective next time you start this program. Некоторые изменения будут учтены только при следующей загрузке программы. Engine selector (right-click for menu) Выбор движка (меню под правой клавишей мыши) Re&start Пере&запустить &Panic &Паника System reset Перезагрузка системы Chorus Speed (Hz) Скорость хора (Гц) Spee&d &Скорость Chorus Speed Hz Скорость хора (Гц) Number of Chorus Stages Число стадий хора &N &N Chorus Depth (ms) Глубина хора (мс) Act&ive Вк&л Chorus effect activation Включение эффект хора &Channels &Каналы Show/hide the channels view window Переключить отображение окна каналов Reverb Damp Factor Фактор затухания реверберации Reverb Width Ширина стереобазы &Width &Ширина Reverb Level Громкость реверберации Reverb effect activation Включение эффекта хора Show instance settings and configuration dialog Показать параметры запущенной копии движка синтезатора и диалог настройки &Options... &Параметры... Show general options dialog Показать главный диалог настройки параметров is about to terminate. собирается завершить работу. Don't ask this again &Start &Запустить Delete fluidsynth engine: Удалить движок fluidsynth: New settings will be effective after restarting the fluidsynth engine: Некоторые изменения будут учтены только после перезагрузки движка fluidsynth: The program will keep running in the system tray. To terminate the program, please choose "Quit" in the context menu of the system tray icon. Программа продолджит работу в области уведомления. Для завершения работы с ней выберите пункт «Выход» в контекстном меню элемента области уведомления. Don't show this message again Loading soundfont: "%1" Загружается файл SF2: "%1" Failed to load the soundfont: "%1". Не удалось загрузить файл SF2: "%1". Playing MIDI file: "%1" Воспроизводится файл MIDI: "%1" Failed to play MIDI file: "%1". Не удалось воспроизвести файл MIDI: "%1". &Hide С&крыть Mi&nimize Св&ернуть S&how &Показать Rest&ore &Восстановить &New engine... &Создать движок... &Delete &Удалить Engines Движки Failed to create the synthesizer. Cannot continue without it. Не удалось создать синтезатор. Продолжение без него невозможно. Loading soundfont: "%1" (bank offset %2) Загружается файл SF2: "%1" (смещение банка %2) Failed to set bank offset (%1) for soundfont: "%2". Не удалось задать смещение банка (%1) для файла "%2". Creating audio driver (%1) Создается звуковой драйвер (%1) Failed to create the audio driver (%1). Cannot continue without it. Не удалось создать звуковой драйвер (%1). Продолжение без него невозможно. Creating MIDI router (%1) Создается маршрутизатор MIDI (%1) Failed to create the MIDI input router (%1). No MIDI input will be available. Не удалось создать входящий маршрутизатор MIDI (%1). Вход MIDI будет недоступен. Creating MIDI driver (%1) Создается драйвер MIDI (%1) Failed to create the MIDI driver (%1). No MIDI input will be available. Не удалось создать драйвер MIDI (%1). Вход MIDI будет недоступен. Failed to create the MIDI player. Continuing without a player. Не удалось создать проигрыватель MIDI. Придется обойтись без проигрывателя. Failed to create the server. Continuing without it. Не удалось создать сервер. Придется обойтись без сервера. Server mode disabled. Continuing without it. Режим сервера выключен. Придется обойтись без сервера. Unloading soundfont: "%1" (SFID=%2) Выгружается файл SF2: "%1" (SFID=%2) Failed to unload the soundfont: "%1". Не удалось выгрузить файл SF2: "%1". New settings will be effective after restarting all fluidsynth engines. Некоторые изменения будут учтены только после перезагрузки всех движков fluidsynth. Do you want to restart all engines now? Вы хотите перезапустить все движки? Add a new engine Добавить новый движок Delete current engine Удалить активный движок Output peak level Индикатор уровня громкости qsynthMessagesForm Messages Сообщения Messages output log Журнал сообщений Qsynth Logging stopped --- %1 --- Журналирование остановлено --- %1 --- Logging started --- %1 --- Журналирование начато --- %1 --- qsynthOptionsForm Display Интерфейс Sample messages text font display Шрифт для отображения сообщения &Font... &Шрифт... Select font for the messages text display Выберите шрифт для отображения сообщений &Messages limit: &Строк сообщений: Whether to keep a maximum number of lines in the messages window Сохранять ли максимально возможное количество строк сообщений 100 100 250 250 500 500 1000 1000 2500 2500 5000 5000 The maximum number of message lines to keep in view Максимальное количество показываемых строк сообщений Other Другое &Confirm application close &Запрашивать подтверждение на выход из программы Whether to ask for confirmation on application exit Запрашивать ли подтверждение на выход из приложения &Keep child windows always on top &Держать подчинённые окна всегда наверху Whether to keep all child windows on top of the main window Держать ли подчинённые окна над основным окном программы Capture standard &output Захватывать стандартный интерфейс &вывода сообщений Whether to capture standard output (stdout/stderr) into messages window Захватывать ли стандартный интерфейс вывода сообщений (stdout/stderr) для окна сообщений Warning Предупреждение Do you want to apply the changes? Вы хотите учесть изменения? Some options have been changed. Некоторые параметры были изменены. Information Информация Some settings may be only effective next time you start this application. Messages Log Журнал сообщений Log files Файлы журналов Messages Сообщения Logging Журналирование Messages log file Файл журнала сообщений Browse for the messages log file location Укажите каталог для хранения файла с журналом сообщений ... ... Whether to activate a messages logging to file. Записывать ли журнал сообщений в файл Messages &log file: &Файл журнала сообщений: Knobs Кнопки Kno&b graphic style: &Стиль оформления кнопок: Graphic style for knobs Стиль оформления кнопок Classic Классический Vokimon Вокимон Peppino Пеппино Skulpture Скульптура Legacy Прежний Mouse motion be&havior: Поведение при вращении &мышью: Mouse motion behavior for knobs Поведение кнопок при вращении их мышью Radial Радиальное Linear Линейное Custom &Color palette theme: Custom color palette theme Wonton Soup DO NOT TRANSLATE KXStudio DO NOT TRANSLATE Manage custom color palette themes &Widget style theme: Custom widget style theme Whether to monitor and show engine output peak level meters Показывать ли индикатор уровня громкости движка Output &peak level meters Включить &индикатор уровня громкости Whether to show system tray message on main window close Sho&w system tray message on close Defaults Whether to enable the system tray icon Включать ли значок в области уведомления Options Параметры &Enable system tray icon &Использовать область уведомления Whether to start minimized to system tray Убирать ли окно в область уведомления Start minimi&zed to system tray &При старте скрывать окно в область уведомления &Base font size: &Кегль шрифта в GUI: Base application font size (pt.) Кегль шрифта в интерфейсе приложения (пункты) (default) (по умолчанию) General 6 6 7 7 8 8 9 9 10 10 11 11 12 12 qsynthPaletteForm Color Themes Name Имя Current color palette name Save current color palette name Save Delete current color palette name Delete Palette Current color palette Generate: Base color to generate palette Reset all current palette colors Reset Import a custom color theme (palette) from file Import... Export a custom color theme (palette) to file Export... Show Details Import File - %1 Palette files (*.%1) All files (*.*) Warning - %1 Could not import from file: %1 Sorry. Export File - %1 Some settings have been changed. Do you want to discard the changes? Some settings have been changed: "%1". Do you want to save the changes? qsynthPaletteForm::PaletteModel Color Role Active Inactive Disabled qsynthPresetForm Preset Предустановка Prog Прогр. Name Имя SFID SFID Soundfont Soundfont Program selector Выбор программы Channel Preset Bank Банк Bank selector Выбор банка Preview Прослушать Whether to preview the current selection Просматривать ли текущее выделение Channel %1 Канал %1 qsynthSetupForm Enable MIDI &Input Разрешить чтение &событий MIDI Enable MIDI input Разрешить чтение событий MIDI &Dump MIDI router events &Глушить события маршрутизатора MIDI Whether to show MIDI router events on messages window Показывать ли события маршрутизатора MIDI в окне сообщений &Verbose MIDI event messages &Подробный вывод сообщений MIDI Print out verbose messages about MIDI events Показывать подробную информацию о сообщениях MIDI &MIDI Driver: &Драйвер MIDI: MIDI &Channels: &Каналов MIDI: Number of MIDI channels Количество каналов MIDI Input MIDI driver Драйвер входа MIDI Auto Connect &JACK Outputs Автоматически соединяться с &выходом JACK Attempt to connect the JACK outputs to the physical ports Попытка связать выход JACK с физическими портами 64 64 128 128 256 256 512 512 1024 1024 2048 2048 4096 4096 8192 8192 Period size in bytes (audio buffer size) Размер периода в байтах (размер звукового буфера) Sample &Format: &Формат выборок: Sample &Rate: &Частота дискретизации: 2 2 4 4 8 8 16 16 32 32 Period count (number of audio buffers) Число периодов (числов звуковых буферов) 22050 22050 44100 44100 48000 48000 88200 88200 96000 96000 Sample rate in samples per second (Hz) Частота дискретизации в выборках на секунду (Гц) Buffer Cou&nt: Число &буферов: Sample format Формат выборок Buffer &Size: &Размер буфера: &Audio Driver: &Звуковой драйвер: Output audio driver Звуковой драйвер выхода Audio &Channels: Звуковых &каналов: &Polyphony: &Полифония: Number of stereo audio channels Количество стереофонических звуковых каналов Audio &Groups: Звуковых &групп: Number of enabled polyphonic voices Количество включённых полифонических голосов MIDI Client Name ID (ALSA/CoreMidi): gm gs mma xs Number of audio groups Количество звуковых групп Name Имя Open soundfont file for loading Открыть для загрузки файл SF2 &Remove &Удалить &Up &Выше &Down &Ниже Type Тип Realtime Реал. время Current Сейчас Default Стандарт. Min Мин Max Макс Options Параметры Warning Предупреждение Some settings have been changed. Некоторые настройки изменились. Do you want to apply the changes? Вы хотите учесть изменения? Remove Удалить Move Up Переместить выше Move Down Переместить ниже Soundfont files Файлы SF2 Error Ошибка Failed to add soundfont file Не удалось добавить файл SF2 Please, check for a valid soundfont file. Проверьте целостность файла SF2 Open... Открыть... Soundfont file already on list Этот файл SF2 уже есть в списке Add anyway? Всё равно добавить? Engine &Name: Название &движка: Engine display name Отображать имя движка pid pid qsynth qsynth ALSA Sequencer client name identification Идентификация клиента секвенсера ALSA &Multiple JACK Outputs &Несколько выходов JACK Create multiple JACK output ports for channels, groups and effects Создать несколько портов выхода JACK для каналов, групп и эффектов JACK Client Name &ID: &ID клиента JACK: fluidsynth fluidsynth JACK client name identification Идентификация клиента JACK Soundfont stack Список файлов SF2 &Open... &Открыть... Remove selected soundfont from stack Удалить файл SF2 из списка Move up selected soundfont towards the top of stack Переместить файл SF2 вверх по списку Move down selected soundfont towards the bottom of stack Переместить файл SF2 вниз по списку Setup Параметры движка Edit Изменить &MIDI &MIDI MIDI device name Название устройства MIDI MIDI &Device: &Устройство MIDI: MIDI &Bank Select mode: MIDI Bank Select mode &Audio &Звук Audio &Device: З&вуковое устройство: &Soundfonts &Файлы SF2 SFID SFID Offset Смещение Edit selected soundfont bank offset Изменить выбранное смещение банка SF2 &Edit &Изменить S&ettings &Сводка qsynth-0.6.1/src/translations/PaxHeaders.5367/qsynth_fr.ts0000644000000000000000000000013213577702221020430 xustar0030 mtime=1577026705.850992838 30 atime=1577026705.849992838 30 ctime=1577026705.850992838 qsynth-0.6.1/src/translations/qsynth_fr.ts0000644000175000001440000025206313577702221021265 0ustar00rncbcusers00000000000000 QObject Usage: %1 [options] [soundfonts] [midifiles] Utilisation : %1 [options] [banque de sons] [fichiersmidi] Options Options Don't create a midi driver to read MIDI input events [default = yes] Ne pas créer un pilote midi pour lire les évènements MIDI d'entrée [défaut = oui] The name of the midi driver to use [oss,alsa,alsa_seq,...] Le nom du pilote midi à utiliser [oss,alsa,alsa_esq,...] The number of midi channels [default = 16] Le nombre de canaux midi [défaut = 16] The audio driver [alsa,jack,oss,dsound,...] Le pilote audio [alsa,jack,oss,dsound,...] Attempt to connect the jack outputs to the physical ports Tentative de connecter les sorties jack aux ports physiques The number of stereo audio channels [default = 1] Le nombre de canaux audio stéréo [défaut = 1] The number of audio groups [default = 1] Le nombre de groupes audio [défaut = 1] Size of each audio buffer Taille de chaque tampon audio Number of audio buffers Nombre de tampons audio Set the sample rate Rêgle la fréquence d'échantillonnage Turn the reverb on or off [1|0|yes|no|on|off, default = on] Met la réverbération sur on ou off [1|0|yes|no|on|off, défaut = on] Turn the chorus on or off [1|0|yes|no|on|off, default = on] Met le chorus sur on ou off [1|0|yes|no|on|yes, défaut = on] Set the master gain [0 < gain < 10, default = 0.2] Rêgle le gain principal [0 < gain < 10, défaut = 0.2] Define a setting name=value Définit un paramètre nom=valeur Create and start server [default = no] Crée et démarre le serveur [défaut = no] Don't read commands from the shell [ignored] Ne pas lire les commandes à partir de la console [ignoré] Dump midi router events Affiche les évènements du routeur MIDI Print out verbose messages about midi events Affiche les messages détaillés concernant les évènements MIDI Show help about command line options Affiche l'aide concernant les options de ligne de commande Show version information Affiche les informations concernant la version Option -m requires an argument (midi-driver). L'option -m requiert un argument (pilote-midi). Option -K requires an argument (midi-channels). L'option -K requiert un argument (canaux-midi). Option -a requires an argument (audio-driver). L'option -a requiert un argument (pilote-audio). Option -L requires an argument (audio-channels). L'option -L requiert un argument (canaux-audio). Option -G requires an argument (audio-groups). L'option -G requiert un argument (groupes-audio). Option -z requires an argument (audio-bufsize). L'option -z requiert un argument (taille-tampon-audio). Option -c requires an argument (audio-bufcount). L'option -c requiert un argument (compte-tampon-audio). Option -r requires an argument (sample-rate). L'option -r requiert un argument (taux-échantillonage). Option -g requires an argument (gain). L'option -g requiert un argument (volume). Option -o requires an argument. L'option -o requiert un argument. Unknown option '%1'. Option '%1' inconnue. (default) (défaut) qsynthAboutForm About À propos &Close &Fermer About Qt À propos de Qt Version Version Debugging option enabled. Option de débogage activée. System tray disabled. Barre d'état desactivée. Server option disabled. Option du serveur désactivée. System reset option disabled. Option de remise à zéro du système désactivée. Bank offset option disabled. Option de décalage de banque désactivée. Using: FluidSynth %1 Utilisation de : FluidSynth %1 Website Site web This program is free software; you can redistribute it and/or modify it Ce programme est un programme libre; vous pouvez le redistribuer et/ou le modifier under the terms of the GNU General Public License version 2 or later. sous les termes de la license publique générale GNU version 2 ou plus récente. qsynthChannelsForm Preset &Name: &Nom du pré-réglage : Settings preset name Définir le nom de pré-réglage (default) (défaut) Save settings as current preset name Sauvegarder les réglages sous le nom courant de pré-réglage &Save &Sauvegarder Delete current settings preset Supprimer les paramètres actuels prédéfinis &Delete &Supprimer Channels view Vue des canaux In Entrée Chan Canal Bank Banque Prog Prog Name Nom SFID SFID Soundfont Banque de son Channels Canaux Edit Éditer Unset Désactiver Refresh Rafraichir Warning Attention Delete preset: Supprimer le pré-réglage : Are you sure? Êtes-vous sûr ? qsynthMainForm Master Général &Gain &Volume Master Gain Volume Général Complete engine restart Redémarrage complet du moteur Re&start R&edémarrage Reverb Réverbération Reverb effect activation Activation de l'effet de réverbération Ac&tive Ac&tiver Reverb Level Niveau de réverbération &Level &Niveau Reverb Width Largeur de réverbération &Width &Largeur Reverb Damp Factor Facteur d'atténuation de la réverbération D&amp &Atténuation Reverb Room Size Dimension de la pièce de réverbération R&oom P&ièce Chorus Chorus Chorus Modulation Type Type de modulation de chorus Sine Sinus Triangle Triangle T&ype: T&ype : Chorus effect activation Activation de l'effet chorus Act&ive Act&iver Number of Chorus Stages Nombre d'Etages de Chorus &N &N Chorus Level Niveau de Chorus Le&vel Ni&veau Chorus Speed (Hz) Vitesse du Chorus (Hz) Chorus Speed Hz Vitesse du Chorus Hz Spee&d Vi&tesse Chorus Depth (ms) Profondeur du Chorus (ms) Dept&h Profon&deur Output peak level Niveau de sortie crête Quit this application Quitter cette application &Quit &Quitter Show general options dialog Afficher la fenêtre de dialogue des options générales &Options... &Options... Show/hide the messages log window Afficher/cacher la fenêtre de log des messages &Messages &Messages Show information about this application Afficher les informations à propos de cette application A&bout... À &propos... System reset Remise à zéro du système &Panic &Panique Program reset (all channels) Remise à zéro du programme (tous les canaux) &Reset &Remise à zéro Show instance settings and configuration dialog Afficher la fenêtre de réglage et de configuration de l'instance Set&up... Config&uration... Show/hide the channels view window Afficher/cacher la fenêtre de vue des canaux &Channels &Canaux Add a new engine Ajouter un nouveau moteur Engine selector (right-click for menu) Sélectionneur de moteur (clic droit pour le menu) Delete current engine Supprimer le moteur courant Information Information The program will keep running in the system tray. To terminate the program, please choose "Quit" in the context menu of the system tray icon. Le programme continuera de s'exécuter dans la barre d'état du système. Pour terminer ce programme, veuillez choisir "Quitter" dans le menu contextuel de l'icône de la barre d'état du système. Don't show this message again Ne pas montrer ce message à nouveau Warning Attention is about to terminate. est sur le point de terminer. Are you sure? Êtes-vous sûr ? Don't ask this again Ne pas le redemander Loading soundfont: "%1" Charge la banque de son : "%1" Failed to load the soundfont: "%1". Échec du chargement de la banque de son : "%1". Playing MIDI file: "%1" Joue le fichier MIDI : "%1" Failed to play MIDI file: "%1". N'a pas pu jouer le fichier MIDI : "%1". Error Erreur &Hide &Cacher Mi&nimize &Minimiser S&how Affic&her Rest&ore Restaurati&on &New engine... &Nouveau moteur... &Delete &Supprimer &Start &Démarrer Engines Moteurs Delete fluidsynth engine: Supprimer le moteur fluidsynth : Some settings will be only effective next time you start this program. Certains réglages ne seront effectif qu'au prochain redémarrage du programme. Creating synthesizer engine Création du moteur de synthèse Failed to create the synthesizer. Cannot continue without it. Échec lors de la création du synthétiseur. Ne peut pas continuer sans. Loading soundfont: "%1" (bank offset %2) Chargement de la banque de son : "%1" (décalage de banque %2) Failed to set bank offset (%1) for soundfont: "%2". Échec d'affectation du décalage de banque (%1) pour la banque de son : "%2". Creating audio driver (%1) Création du pilote audio (%1) Failed to create the audio driver (%1). Cannot continue without it. Échec de création du pilote audio (%1). Ne peut pas continuer sans. Creating MIDI router (%1) Création du routeur MIDI (%1) Failed to create the MIDI input router (%1). No MIDI input will be available. Échec de création du routeur MIDI (%1). Aucune entrée MIDI ne sera disponible. Creating MIDI driver (%1) Création du pilote MIDI (%1) Failed to create the MIDI driver (%1). No MIDI input will be available. Échec de création du pilote MIDI (%1). Aucune entrée MIDI ne sera disponible. Creating MIDI player Création du lecteur MIDI Failed to create the MIDI player. Continuing without a player. Échec de création du lecteur MIDI. Continue sans le lecteur. Creating server Création du serveur Failed to create the server. Continuing without it. Échec de création du serveur. Continue sans. Server mode disabled. Continuing without it. Mode serveur désactivé. Continue sans. Synthesizer engine started. Moteur du synthétiseur démarré. Destroying server Destruction du serveur Stopping MIDI player Arrêt du lecteur MIDI Waiting for MIDI player to terminate Attends que le lecteur MIDI s'arrête Destroying MIDI player Destruction du lecteur MIDI Destroying MIDI driver Destruction du pilote MIDI Destroying MIDI router Destruction du routeur MIDI Destroying audio driver Destruction du pilote audio Unloading soundfont: "%1" (SFID=%2) Chargement de la banque de son : "%1" (SFID=%2) Failed to unload the soundfont: "%1". Échec du chargement de la banque de son : "%1". Destroying synthesizer engine Destruction du moteur du synthétiseur Synthesizer engine terminated. Moteur du synthétiseur arrêté. New settings will be effective after restarting all fluidsynth engines. Les nouveaux réglages ne seront effectifs qu'après le redémarrage de tous les moteurs de fluildsynth. Please note that this operation may cause temporary MIDI and Audio disruption. Veuillez noter que cette opération peut causer une interruption temporaire du MIDI et de l'audio. Do you want to restart all engines now? Voulez-vous redémarrer tous les moteurs maintenant? New settings will be effective after restarting the fluidsynth engine: Les nouveaux réglages ne seront effectifs qu'après le redémarrage du moteur fluidsynth : Do you want to restart the engine now? Voulez-vous redémarrer le moteur maintenant? qsynthMessagesForm Messages Messages Messages output log Sortie des messages de log Logging stopped --- %1 --- Enregistrement arrêté --- %1 --- Logging started --- %1 --- Enregistrement démarré --- %1 --- qsynthOptionsForm Display Affichage Messages Messages General Général Sample messages text font display Messages d'exemple pour l'affichage de la police Select font for the messages text display Sélection de la police pour l'affichage du texte des messages &Font... &Police... Whether to keep a maximum number of lines in the messages window Si on doit conserver un nombre maximum de lignes dans la fenêtre de messages &Messages limit: Limite de &messages : The maximum number of message lines to keep in view Le nombre maximum de lignes de message à conserver 100 100 250 250 500 500 1000 1000 2500 2500 5000 5000 Logging Connection Messages log file Fichier d'enregistrement des messages Browse for the messages log file location Parcourir l'emplacement des messages du fichiers log ... ... Whether to activate a messages logging to file. Doit-on activer l'enregistrement des messages dans un fichier. Messages &log file: F&ichier d'enregistrement des messages : Knobs Boutons Kno&b graphic style: Style graphique des &boutons : Graphic style for knobs Style graphique pour les boutons Classic Classique Vokimon Vokimon Peppino Peppino Skulpture Skulpture Legacy Legacy Mouse motion be&havior: Compor&tement du déplacement de la souris : Mouse motion behavior for knobs Comportement du déplacement de la souris pour les boutons Radial Radiale Linear Linéaire Custom Personnalisé &Color palette theme: Thème de palette de &couleur : Custom color palette theme Theme de palette de couleur personnalisé Wonton Soup DO NOT TRANSLATE KXStudio DO NOT TRANSLATE Manage custom color palette themes Gérer les thèmes de palette de couleur personnalisés &Widget style theme: Thème de style de &widget : Custom widget style theme Thème de style de widget personnalisé : Other Autre Whether to ask for confirmation on application exit Doit-on demander une confirmation lors de la fermeture de l'application &Confirm application close &Confirmer la fermeture de l'application Whether to show system tray message on main window close Si on doit afficher les messages de la barre d'état lors de la fermeture de la fenêtre principale Sho&w system tray message on close Af&ficher les messages de la barre d'état à la fermeture Defaults Défauts Whether to keep all child windows on top of the main window Doit-on conserver toutes les sous-fenêtres au dessus de la fenêtre principale Options Options &Keep child windows always on top Conserver les sous fenêtres &toujours au dessus Whether to capture standard output (stdout/stderr) into messages window Doit-on capturer la sortie standard (stdout/stderr) dans la fenêtre de messages Capture standard &output Capturer la s&ortie standard Whether to monitor and show engine output peak level meters Doit-on suivre et afficher le niveau de crête en sortie du moteur audio Output &peak level meters Afficher le niveau c&rête de la sortie Whether to enable the system tray icon Doit-on activer l'icône de la barre d'état &Enable system tray icon Activ&er l'icône de la barre d'état Whether to start minimized to system tray Doit-on démarrer minimisé dans la barre d'état Start minimi&zed to system tray Démarrer minimi&sé dans la barre d'état &Base font size: Taille de police de &base : Base application font size (pt.) Taille de base de la police de l'application (pt.) (default) (défaut) 6 6 7 7 8 8 9 9 10 10 11 11 12 12 Information Informations Some settings may be only effective next time you start this application. Certains paramètres peuvent n'être effectifs qu'après le prochain démarrage de cette application. Warning Attention Some options have been changed. Des options ont été modifiées. Do you want to apply the changes? Voulez-vous appliquer les changements? Messages Log Journal des messages Log files Fichiers d'enregistrement qsynthPaletteForm Color Themes Thèmes de couleur Name Nom Current color palette name Nom de la palette de couleur actuelle Save current color palette name Sauvegarder le nom de la palette de couleur actuelle Save Sauvegarder Delete current color palette name Effacer le nom de la palette de couleur actuelle Delete Effacer Palette Palette Current color palette Palette de couleur actuelle Generate: Générer : Base color to generate palette Couleur de base pour générer la palette Reset all current palette colors Réinitialiser toutes les couleurs de la palette actuelle Reset Réinitialiser Import a custom color theme (palette) from file Importer un thème (palette) de couleur personnalisé depuis un fichier Import... Importer... Export a custom color theme (palette) to file Exporter un thème (palette) de couleur personnalisé vers un fichier Export... Exporter... Show Details Afficher les détails Import File - %1 Importer le fichier - %1 Palette files (*.%1) Fichiers de palette (*.%1) All files (*.*) Tous les fichiers (*.*) Warning - %1 Attention - %1 Could not import from file: %1 Sorry. Impossible d'importer depuis le fichier : %1 Navré. Export File - %1 Exporter le fichier - %1 Some settings have been changed. Do you want to discard the changes? Certains paramètres ont été modifié. Souhaitez-vous abandonner les modifications ? Some settings have been changed: "%1". Do you want to save the changes? Certains paramètres ont été modifié. "%1". Souhaitez-vous sauvegarder les modifications ? qsynthPaletteForm::PaletteModel Color Role Role de couleur Active Actif Inactive Inactif Disabled Désactivé qsynthPresetForm Channel Preset Présélection de canal Preset Pré-réglage Bank selector Sélection de banque Bank Banque Program selector Sélection de programme Prog Prog Name Nom SFID SFID Soundfont Banque de son Whether to preview the current selection Doit on générer un aperçu de la sélection courante Preview Aperçu Channel %1 Canal %1 qsynthSetupForm Engine &Name: &Nom du moteur : Engine display name Nom d'affichage du moteur &MIDI &MIDI &MIDI Driver: Pilote &MIDI : Whether to show MIDI router events on messages window Si on doit afficher les évènements du routeur MIDI dans la fenêtre de messages &Dump MIDI router events Afficher les évènements du routeur MI&DI MIDI device name Nom du pilote MIDI Enable MIDI input Activer l'entrée MIDI Enable MIDI &Input Activer l'entrée M&IDI Input MIDI driver Pilote d'entrée MIDI MIDI &Device: &Pilote MIDI : Print out verbose messages about MIDI events Afficher des messages détaillés concernant les évènements MIDI &Verbose MIDI event messages Messages détaillés concernant les é&vènements MIDI MIDI &Channels: &Canaux MIDI : Number of MIDI channels Nombre de canaux MIDI MIDI &Bank Select mode: Mode MIDI de sélection de &banque : MIDI Bank Select mode Mode MIDI de sélection de banque gm gm gs gs mma mma xs xs MIDI Client Name ID (ALSA/CoreMidi): Nom ID du client MIDI (ALSA/CoreMidi) : ALSA Sequencer client name identification Nom d'identifiant du client séquenceur ALSA pid pid qsynth qsynth &Audio &Audio Sample &Format: &Format d'échantillon : Output audio driver Pilote de sortie audio Sample format Format d'échantillon Period size in bytes (audio buffer size) Taille de période en bytes (taille du tampon audio) 64 64 128 128 256 256 512 512 1024 1024 2048 2048 4096 4096 8192 8192 Buffer Cou&nt: &Nombre de tampons : Sample rate in samples per second (Hz) Fréquence d'échantillonnage en échantillons par second (Hz) 22050 22050 44100 44100 48000 48000 88200 88200 96000 96000 Sample &Rate: F&réquence d'échantillonnage : Period count (number of audio buffers) Nombre de période (nombre de tampons audio) 2 2 4 4 8 8 16 16 32 32 Buffer &Size: Dimen&sion du tampon : &Audio Driver: Pilote &audio : Audio &Device: &Pilote audio : Audio &Channels: &Canaux audio : Number of audio groups Nombre de groupes audio Number of enabled polyphonic voices Nombre de voix polyphoniques activées Number of stereo audio channels Nombre de canaux audio stéréos &Polyphony: &Polyphonie : Audio &Groups: &Groupes audio : JACK Client Name &ID: Nom d'&identifiant du client JACK : JACK client name identification Nom d'identifiant du client JACK fluidsynth fluidsynth Attempt to connect the JACK outputs to the physical ports Tentative de connection des sorties JACK aux ports physiques Auto Connect &JACK Outputs Connecte automatiquement les sorties &JACK Create multiple JACK output ports for channels, groups and effects Crée de multiples ports de sortie JACK pour les canaux, groupes et effets &Multiple JACK Outputs Sorties JACK &multiples &Soundfonts &Banques de son Soundfont stack Pile de banques de son SFID SFID Name Nom Offset Décalage Open soundfont file for loading Ouvre un fichier de banque de son pour lecture &Open... &Ouvrir... Edit selected soundfont bank offset Édite le décalage de banque de la banque de son sélectionnée &Edit Édit&er Remove selected soundfont from stack Supprime la banque de son sélectionnée de la pile &Remove Supp&rimer Move up selected soundfont towards the top of stack Déplace la banque de son sélectionnée vers le haut de la pile &Up Ha&ut Move down selected soundfont towards the bottom of stack Déplace la banque de son sélectionnée vers le bas de la pile &Down &Bas S&ettings Réglag&es Type Type Realtime Temps réel Current Courant Default Défaut Min Min Max Max Options Options Setup Réglage Warning Attention Some settings have been changed. Des réglages ont été changés. Do you want to apply the changes? Voulez-vous appliquer les changements? Open... Ouvrir... Edit Éditer Remove Supprimer Move Up Déplace vers le Haut Move Down Déplace vers le Bas Soundfont files Fichiers de banque de son Soundfont file already on list Le fichier de banque de son est déjà dans la liste Add anyway? Ajouter quand même? Error Erreur Failed to add soundfont file Impossible d'ajouter le fichier de banque de son Please, check for a valid soundfont file. Veuillez vérifier la validité du fichier de banque de son. qsynth-0.6.1/src/translations/PaxHeaders.5367/qsynth_cs.ts0000644000000000000000000000013213577702221020426 xustar0030 mtime=1577026705.849992838 30 atime=1577026705.847992838 30 ctime=1577026705.849992838 qsynth-0.6.1/src/translations/qsynth_cs.ts0000644000175000001440000025047513577702221021270 0ustar00rncbcusers00000000000000 QObject (default) (výchozí) Usage: %1 [options] [soundfonts] [midifiles] Použití: %1 [volby] [zvuková písma] [soubory MIDI] Options Volby Don't create a midi driver to read MIDI input events [default = yes] Nevytvářet žádný ovladač MIDI kvůli čtení vstupních událostí MIDI [výchozí = yes] The name of the midi driver to use [oss,alsa,alsa_seq,...] Název používaného ovladače MIDI [oss, alsa, alsa_seq,...] The number of midi channels [default = 16] Počet kanálů MIDIe [výchozí = 16] The audio driver [alsa,jack,oss,dsound,...] Zvukový ovladač [alsa, jack, oss, dsound,...] Attempt to connect the jack outputs to the physical ports Pokusit se spojit výstupy JACK s fyzickými přípojkami The number of stereo audio channels [default = 1] Počet stereo zvukových kanálů [výchozí = 1] The number of audio groups [default = 1] Počet zvukových skupin [výchozí = 1] Size of each audio buffer Velikost zvukové vyrovnávací paměti Number of audio buffers Počet zvukových vyrovnávacích pamětí Set the sample rate Nastavit vzorkovací kmitočet Turn the reverb on or off [1|0|yes|no|on|off, default = on] Zapnout nebo vypnout dozvuk [[1|0|yes|no|on|off, výchozí = on] Turn the chorus on or off [1|0|yes|no|on|off, default = on] Zapnout nebo vypnout sbor [[1|0|yes|no|on|off, Voreinstellung = on] Set the master gain [0 < gain < 10, default = 0.2] Nastavit výstupní zesílení [0 < zesílení < 10, výchozí = 0.2] Define a setting name=value Stanovit nastavení název=hodnota Create and start server [default = no] Vytvořit a spustit server [výchozí = ne] Don't read commands from the shell [ignored] Nečíst příkazyze shellu [nebráno na vědomí] Dump midi router events Vytisknout události směrovače MIDI Print out verbose messages about midi events Vytisknout podrobná hlášení o událostech MIDI Show help about command line options Ukázat nápovědu k argumentům příkazového řádku Show version information Ukázat informaci o verzi Option -m requires an argument (midi-driver). Volba -m potřebuje argument (midi-driver). Option -K requires an argument (midi-channels). Volba -K potřebuje argument (midi-channels). Option -a requires an argument (audio-driver). Volba -a potřebuje argument (audio-driver). Option -L requires an argument (audio-channels). Volba -L potřebuje argument (audio-channels). Option -G requires an argument (audio-groups). Volba -G potřebuje argument (audio-groups). Option -z requires an argument (audio-bufsize). Volba -z potřebuje aArgument (audio-bufsize). Option -c requires an argument (audio-bufcount). Volba -c potřebuje argument (audio-bufcount). Option -r requires an argument (sample-rate). Volba -r potřebuje argument (sample-rate). Option -g requires an argument (gain). Volba -g potřebuje argument (gain). Option -o requires an argument. Volba -o potřebuje argument. Unknown option '%1'. Neznámá volba: '%1'. qsynthAboutForm About O programu &Close &Zavřít About Qt O Qt Version Verze Debugging option enabled. Povolena možnost ladění. System tray disabled. Oznamovací oblast panelu zakázána. Server option disabled. Zakázána možnost serveru. System reset option disabled. Zakázána možnost znovunastavení systému. Bank offset option disabled. Zakázána možnost polohy banky. Using: FluidSynth %1 Pomocí: FluidSynth %1 Website Internetová stránka This program is free software; you can redistribute it and/or modify it Tento program je svobodným software; Můžete jej rozšiřovat a/nebo upravovat under the terms of the GNU General Public License version 2 or later. za podmínek GNU General Public License. qsynthChannelsForm Preset &Name: &Název přednastavení: Settings preset name Název přednastavení nastavení (default) (výchozí) Save settings as current preset name Uložit nastavení pod nynějším názvem přednastavení &Save &Uložit Delete current settings preset Smazat nynější přednastavení nastavení &Delete &Smazat Channels view Pohled na kanály In Vstup Chan Kanál Bank Banka Prog Prog Name Název SFID SFID Soundfont Zvukové písmo Channels Kanály Edit Upravit Unset Odložit Refresh Obnovit Warning Varování Delete preset: Smazat přednastavení: Are you sure? Jste si jistý? qsynthMainForm Add a new engine Přidat nový zvukový modul Engine selector (right-click for menu) Vybrat zvukový modul (pravým klepnutím v nabídce) Delete current engine Smazat nynější zvukový modul Show/hide the channels view window Ukázat/Skrýt okno s pohledem na kanály &Channels &Kanály Complete engine restart Zvukový modul spustit úplně znovu Re&start &Spustit znovu Program reset (all channels) Nastavit znovu program (všechny kanály) &Reset &Nastavit znovu Show instance settings and configuration dialog Ukázat dialog nastavení s nynějším nastavením Set&up... &Nastavení... Master Výstup &Gain &Zesílení Master Gain Nastavení zesílení pro výstupní signál System reset Znovunastavit systém &Panic &Panika Reverb Dozvuk Reverb effect activation Spustit efekt dozvuku Ac&tive &Spuštěný Reverb Level Síla dozvuku &Level &Síla Reverb Width Vzdálenost ke zdroji zvuku (poloměr dozvuku) &Width &Vzdálenost Reverb Damp Factor Tlumení dozvuku D&amp &Tlumení Reverb Room Size Velikost prostorui dozvuku R&oom &Prostor Chorus Sbor Chorus Modulation Type Typ obměňování sboru Sine Sinus Triangle Trojúhelník T&ype: &Typ: Chorus effect activation Spuštění efektu sboru Act&ive &Spuštěný Number of Chorus Stages Počet sborových hlasů &N &Hlasy Chorus Level Síla sboru Le&vel &Síla Chorus Speed (Hz) Rychlost obměňování sboru (Hz) Chorus Speed Hz Rychlost obměňování sboru Hz Spee&d &Rychlost Chorus Depth (ms) Hloubka sboru - čas oddělení hlasu (ms) Dept&h &Hloubka - čas oddělení Output peak level Ukazatel výstupní hladiny Quit this application Ukončit tento program &Quit &Ukončit Show general options dialog Ukázat dialog pro všeobecné volby &Options... &Volby... Show/hide the messages log window Ukázat/Skrýt okno se zápisy hlášení &Messages &Hlášení Show information about this application Ukázat informace o tomto programu A&bout... &O... Information Informace The program will keep running in the system tray. To terminate the program, please choose "Quit" in the context menu of the system tray icon. Program poběží dále v oznamovací oblasti panelu. Pro ukončení programu vyberte, prosím, "Ukončit" v související nabídce vyskakující z ikony v oznamovací oblasti panelu. Don't show this message again Toto hlášení neukazovat znovu Warning Varování is about to terminate. má být ukončen. Are you sure? Jste si jistý? Don't ask this again Neptat se znovu Loading soundfont: "%1" Nahrává se zvukové písmo: "%1" Failed to load the soundfont: "%1". Nahrávání zvukového písma se nezdařilo: "%1". Playing MIDI file: "%1" Přehrává se soubor MIDI: "%1" Failed to play MIDI file: "%1". Přehrávání souboru MIDI se nezdařilo: "%1". Error Chyba &Hide &Skrýt Mi&nimize &Zmenšit S&how &Ukázat Rest&ore &Obnovit &New engine... &Nový zvukový modul... &Delete &Smazat &Start &Spustit Engines Zvukové moduly Delete fluidsynth engine: Smazat fluidsynthový zvukový modul: Some settings will be only effective next time you start this program. Některá nastavení začnou působit až po novém spuštění programu. Creating synthesizer engine Vytváří se syntetizátorový zvukový modul Failed to create the synthesizer. Cannot continue without it. Syntetizátorový zvukový modul se nepodařilo vytvořit. Bez něj nelze pokračovat. Loading soundfont: "%1" (bank offset %2) Nahrává se zvukové písmo: "%1" (poloha banky %2) Failed to set bank offset (%1) for soundfont: "%2". Nastavení hodnoty polohy banky (%1) pro zvukové písmo: "%2" se nepodařilo. Creating audio driver (%1) Vytváří se zvukový ovladač (%1) Failed to create the audio driver (%1). Cannot continue without it. Zvukový ovladač (%1) se vytvořit nepodařilo. Bez něj nelze pokračovat. Creating MIDI router (%1) Vytváří se směrovač MIDI (%1) Failed to create the MIDI input router (%1). No MIDI input will be available. Směrovač vstupu MIDI (%1) se vytvořit nepodařilo. Nebude dostupný žádný MIDI vstup. Creating MIDI driver (%1) Vytváří se ovladač MIDI (%1) Failed to create the MIDI driver (%1). No MIDI input will be available. Ovladač MIDI (%1) se vytvořit nepodařilo. Nebude dostupný žádný MIDI vstup. Creating MIDI player Vytváří se přehrávač MIDI Failed to create the MIDI player. Continuing without a player. Přehrávač MIDI se vytvořit nepodařilo. Pokračuje se bez přehrávače. Creating server Vytváří se server Failed to create the server. Continuing without it. Server se vytvořit nepodařilo. Pokračuje se bez něj. Server mode disabled. Continuing without it. Režim serveru zakázán. Pokračuje se bez něj. Synthesizer engine started. Syntetizátorový zvukový modul spuštěn. Destroying server Vypíná se server Stopping MIDI player Zastavuje se přehrávač MIDI Waiting for MIDI player to terminate Čeká se na ukončení přehrávače MIDI Destroying MIDI player Vypíná se přehrávač MIDI Destroying MIDI driver Vypíná se ovladač MIDI Destroying MIDI router Vypíná se směrovač MIDI Destroying audio driver Vypíná se zvukový ovladač Unloading soundfont: "%1" (SFID=%2) Vyjímá se zvukové písmo: "%1" (SFID=%2) Failed to unload the soundfont: "%1". Vyjmutí zvukového písma: "%1" se nezdařilo. Destroying synthesizer engine Vypíná se syntetizátorový zvukový modul Synthesizer engine terminated. Syntetizátorový zvukový modul ukončen. New settings will be effective after restarting all fluidsynth engines. Nová nastavení začnou působit až po novém spuštění všech fluidsynthových zvukových modulů. Please note that this operation may cause temporary MIDI and Audio disruption. Všimněte si, prosím, že toto nové spuštění bude mít za následek dočasné přerušení MIDI a Audia. Do you want to restart all engines now? Chtěl byste nyní spustit všechny zvukové moduly znovu? New settings will be effective after restarting the fluidsynth engine: Nová nastavení začnou působit až po novém spuštění fluidsynthovéhoh zvukového modulu: Do you want to restart the engine now? Chtěl byste nyní spustit zvukový modul znovu? qsynthMessagesForm Messages Hlášení Messages output log Historie zaznamenaných hlášení Logging stopped --- %1 --- Zaznamenávání zastaveno --- %1 --- Logging started --- %1 --- Zaznamenávání spuštěno --- %1 --- qsynthOptionsForm Display Zobrazit Messages Hlášení Options Volby General Obecné Sample messages text font display Písmo pro okno s hlášeními Select font for the messages text display Vybrat písmo pro okno s hlášeními &Font... &Písmo... Whether to keep a maximum number of lines in the messages window Omezit nejvyšší počet ukázaných řádků hlášení &Messages limit: &Nejvyšší počet hlášení: The maximum number of message lines to keep in view Nejvyšší počet ukázaných řádků hlášení 100 100 250 250 500 500 1000 1000 2500 2500 5000 5000 Logging Přihlášení Messages log file Soubor se zápisem hlášení Browse for the messages log file location Hledat umístění souboru se zápisem hlášení ... ... Whether to activate a messages logging to file. Hlášení zapisovat do souboru. Other Další Whether to ask for confirmation on application exit Při ukončení aplikace žádat o potvrzení &Confirm application close &Potvrdit zavření aplikace Whether to keep all child windows on top of the main window Všechna podokna rozmístit nad hlavním oknem &Keep child windows always on top Podokna &rozmístit vždy nad hlavním oknem Whether to capture standard output (stdout/stderr) into messages window Standardní výstup (stdout/stderr) převádět do hlavního okna Capture standard &output Standardní výstup &převést Whether to monitor and show engine output peak level meters Sledovat a ukazovat nástroj výstupní hladiny Output &peak level meters Ukazovat &nástroj výstupní hladiny Whether to enable the system tray icon V oznamovací oblasti panelu ukazovat symbol aplikace &Enable system tray icon S&ymbol aplikace ukazovat v oznamovací oblasti panelu Whether to start minimized to system tray Aplikaci spustit zmenšenou jako symbol v oznamovací oblasti panelu Start minimi&zed to system tray Spustit se &zmenšením do oznamovací oblasti panelu Information Informace Some settings may be only effective next time you start this application. Některá nastavení se projeví až tehdy, když příště spustíte tento program. Warning Varování Some options have been changed. Některá nastavení byla změněna. Do you want to apply the changes? Chtěl byste použít změny? Messages Log Zápis hlášení Log files Soubory se zápisy Knobs Otočný regulátor Graphic style for knobs Obrazový styl točných regulátorů Classic Klasický Vokimon Vokimon Peppino Peppino Legacy Dědictví Mouse motion behavior for knobs Odezva otočného regulátoru na pohyb myši Radial Paprskovitý Linear Přímočarý Whether to show system tray message on main window close Ukázat zprávu v oznamovací oblasti panelu při zavření hlavního okna Sho&w system tray message on close &Ukázat zprávu v oznamovací oblasti panelu při zavření Defaults Výchozí &Base font size: Základní velikost &písma: Base application font size (pt.) Základní velikost písma v aplikaci (v bodech) (default) (výchozí) Custom Vlastní &Color palette theme: &Motiv palety barev: Custom color palette theme Vlastní motiv palety barev Wonton Soup DO NOT TRANSLATE KXStudio DO NOT TRANSLATE Manage custom color palette themes Spravovat vlastní motivy palety barev &Widget style theme: Motiv stylu &prvku: Custom widget style theme Vlastní motiv stylu prvku 8 8 9 9 10 10 11 11 12 12 Messages &log file: Soubor se &zápisem hlášení: Kno&b graphic style: Obrazový styl točných &regulátorů: Mouse motion be&havior: Odezva otočného regulátoru na po&hyb myši: 6 6 7 7 Skulpture Skulpture qsynthPaletteForm Color Themes Barevné motivy Name Název Current color palette name Název nynější palety barev Save current color palette name Uložit název nynější palety barev Save Uložit Delete current color palette name Smazat název nynější palety barev Delete Smazat Palette Paleta Current color palette Nynější paleta barev Generate: Vytvořit: Base color to generate palette Základní barva pro vytvoření palety Reset all current palette colors Nastavit všechny barvy palety barev na výchozí Reset Obnovit výchozí Import a custom color theme (palette) from file Zavést vlastní barevný motiv (paleta) ze souboru Import... Zavést... Export a custom color theme (palette) to file Vyvést vlastní barevný motiv (paleta) do souboru Export... Vyvést... Show Details Ukázat podrobnosti Import File - %1 Zavést soubor - %1 Palette files (*.%1) Soubory s paletami (*.%1) All files (*.*) Všechny soubory (*.*) Warning - %1 Varování - %1 Could not import from file: %1 Sorry. Nepodařilo se zavést ze souboru. %1 Promiňte. Export File - %1 Vyvést soubor - %1 Some settings have been changed. Do you want to discard the changes? Některá nastavení byla změněna. Chcete zahodit změny? Some settings have been changed: "%1". Do you want to save the changes? Některá nastavení byla změněna: "%1" Chcete uložit změny? qsynthPaletteForm::PaletteModel Color Role Barevná role Active Činný Inactive Nečinný Disabled Zakázáno qsynthPresetForm Channel Preset Přednastavení kanálu Preset Přednastavení Bank selector Přepínač banky Bank Banka Program selector Přepínač programu Prog Prog Name Název SFID SFID Soundfont Zvukové písmo Whether to preview the current selection Ukázat náhled nynějšího výběru Preview Náhled Channel %1 Kanál %1 qsynthSetupForm Engine &Name: &Název zvukového modulu: Engine display name Zobrazený název zvukového modulu &MIDI &MIDI MIDI device name Název zařízení MIDI MIDI &Device: &Zařízení MIDI: &MIDI Driver: &Ovladač MIDI: Input MIDI driver Ovladač pro vstup MIDI MIDI Client Name ID (ALSA/CoreMidi): ID názvu klienta MIDI (ALSA/CoreMidi): ALSA Sequencer client name identification ID názvu klienta u ALSA sequenceru pid pid qsynth qsynth Whether to show MIDI router events on messages window Ukázat události směrovače MIDI v okně hlášení &Dump MIDI router events &Vytisknout události směrovače MIDI Print out verbose messages about MIDI events Vytisknout podrobná hlášení o událostech MIDI &Verbose MIDI event messages &Podrobná hlášení o událostech MIDI Number of MIDI channels Počet kanálů MIDI MIDI &Channels: &Kanály MIDI: Enable MIDI input Spustit vstup MIDI Enable MIDI &Input Spustit &vstup MIDI gm gm gs gs mma mma xs xs MIDI &Bank Select mode: Režim výběru &banky MIDI: MIDI Bank Select mode Režim výběru banky MIDI &Audio &Zvuk Sample &Format: Vzorkovací &formát (rozlišení): Output audio driver Ovladač zvuku pro výstup Sample format Vzorkovací formát - Číselný formát zdigitalizovaného zvukového signálu Period size in bytes (audio buffer size) Velikost periody (velikost zvukové vyrovnávací paměti) v bytech 64 64 128 128 256 256 512 512 1024 1024 2048 2048 4096 4096 8192 8192 Buffer Cou&nt: &Množství vyrovnávací paměti: Sample rate in samples per second (Hz) Vzorkovací kmitočet ve vzorcích za sekundu (Hz) 22050 22050 44100 44100 48000 48000 88200 88200 96000 96000 Sample &Rate: Vzorkovací &kmitočet: Period count (number of audio buffers) Počet period (počet zvukových vyrovnávacích pamětí) 2 2 4 4 8 8 16 16 32 32 Buffer &Size: &Velikost vyrovnávací paměti: &Audio Driver: &Zvukový ovladač: Audio &Device: Zvukové &zařízení: Audio &Channels: Zvukové &kanály: Number of audio groups Počet zvukových skupin Number of enabled polyphonic voices Počet povolených vícehlasých hlasů Number of stereo audio channels Počet stereo zvukových kanálů &Polyphony: &Vícehlas: Audio &Groups: Zvukové &skupiny: JACK Client Name &ID: &ID názvu klienta JACK: JACK client name identification Identifikátor názvu klienta JACK fluidsynth fluidsynth Attempt to connect the JACK outputs to the physical ports Pokusit se spojit výstupy JACK s fyzickými přípojkami Auto Connect &JACK Outputs Automaticky spojit výstupy &JACK Create multiple JACK output ports for channels, groups and effects Vytvořit více připojení výstupů JACK pro kanály, skupiny a efekty &Multiple JACK Outputs &Více výstupů JACK &Soundfonts &Zvuková písma Soundfont stack Zásobník zvukových písem SFID SFID Name Název Offset Poloha Open soundfont file for loading Otevřít soubor se zvukovým písmem pro nahrání &Open... &Otevřít... Edit selected soundfont bank offset Upravit hodnotu polohy vybrané banky se zvukovým písmem &Edit &Úpravy Remove selected soundfont from stack Odstranit vybrané zvukové písmo ze zásobníku &Remove &Odstranit Move up selected soundfont towards the top of stack Vybrané zvukové písmo přesunout v zásobníku nahoru &Up &Nahoru Move down selected soundfont towards the bottom of stack Vybrané zvukové písmo přesunout v zásobníku dolů &Down &Dolů S&ettings &Nastavení Type Typ Realtime Prováděný v reálném čase Current Nynější Default Výchozí Min Min Max Max Options Volby Setup Nachystat Warning Varování Some settings have been changed. Některá nastavení byla změněna. Do you want to apply the changes? Chtěl byste použít změny? Open... Otevřít... Edit Upravit Remove Odstranit Move Up Přesunout nahoru Move Down Přesunout dolů Soundfont files Soubory se zvukovými písmy Soundfont file already on list Soubor se zvukovým písmem je již součástí seznamu Add anyway? Přesto přidat? Error Chyba Failed to add soundfont file Nepodařilo se přidat soubor se zvukovým písmem Please, check for a valid soundfont file. Zvolte, prosím, platný soubor se zvukovým písmem. qsynth-0.6.1/src/translations/PaxHeaders.5367/qsynth_de.ts0000644000000000000000000000013213577702221020411 xustar0030 mtime=1577026705.849992838 30 atime=1577026705.849992838 30 ctime=1577026705.849992838 qsynth-0.6.1/src/translations/qsynth_de.ts0000644000175000001440000024636713577702221021260 0ustar00rncbcusers00000000000000 QObject (default) (voreingestellt) Usage: %1 [options] [soundfonts] [midifiles] Benutzung: %1 [Optionen] [Soundfonts] [MIDI-Dateien] Options Optionen Don't create a midi driver to read MIDI input events [default = yes] Keinen MIDI-Treiber erzeugen, um eingehende MIDI-Ereignisse zu lesen [Voreinstellung = yes] The name of the midi driver to use [oss,alsa,alsa_seq,...] Name des zu benutzenden MIDI-Treibers [oss, alsa, alsa_seq,...] The number of midi channels [default = 16] Anzahl der MIDI-Kanäle [Voreinstellung = 16] The audio driver [alsa,jack,oss,dsound,...] Der Audiotreiber [alsa, jack, oss, dsound,...] Attempt to connect the jack outputs to the physical ports Versuch, die JACK-Ausgänge mit den physikalischen Anschlüssen zu verbinden The number of stereo audio channels [default = 1] Anzahl der Stereo-Audiokanäle [Voreinstellung = 1] The number of audio groups [default = 1] Anzahl der Audiogruppen [Voreinstellung = 1] Size of each audio buffer Größe eines Audiopuffers Number of audio buffers Anzahl der Audiopuffer Set the sample rate Abtastrate festlegen Turn the reverb on or off [1|0|yes|no|on|off, default = on] Hall ein- oder ausschalten [[1|0|yes|no|on|off, Voreinstellung = on] Turn the chorus on or off [1|0|yes|no|on|off, default = on] Chor ein- oder ausschalten [[1|0|yes|no|on|off, Voreinstellung = on] Set the master gain [0 < gain < 10, default = 0.2] Ausgangsverstärkung festlegen [0 < gain < 10, Voreinstellung = 0.2] Define a setting name=value Einstellung definieren Name=Wert Create and start server [default = no] Server erzeugen und Starten [Voreinstellung = nein] Don't read commands from the shell [ignored] Lese keine Kommandos von der Shell [ignoriert] Dump midi router events Ereignisse des MIDI-Routers ausgeben Print out verbose messages about midi events Zeige ausführliche Meldungen für MIDI-Ereignisse an Show help about command line options Zeige Hilfe zu Kommandozeilenargumenten an Show version information Zeige Versionsinformation an Option -m requires an argument (midi-driver). Option -m benötigt ein Argument (midi-driver). Option -K requires an argument (midi-channels). Option -K benötigt ein Argument (midi-channels). Option -a requires an argument (audio-driver). Option -a benötigt ein Argument (audio-driver). Option -L requires an argument (audio-channels). Option -L benötigt ein Argument (audio-channels). Option -G requires an argument (audio-groups). Option -G benötigt ein Argument (audio-groups). Option -z requires an argument (audio-bufsize). Option -z benötigt ein Argument (audio-bufsize). Option -c requires an argument (audio-bufcount). Option -c benötigt ein Argument (audio-bufcount). Option -r requires an argument (sample-rate). Option -R benötigt ein Argument (sample-rate). Option -g requires an argument (gain). Option -g benötigt ein Argument (gain). Option -o requires an argument. Option -o benötigt ein Argument. Unknown option '%1'. Unbekannte Option: '%1'. qsynthAboutForm About &Close &Schließen About Qt Über Qt Version Version Debugging option enabled. Debugging-Option aktiviert. System tray disabled. Server option disabled. Server-Option deaktiviert. System reset option disabled. System-Zurücksetzen deaktiviert. Bank offset option disabled. Bank-Position-Option deaktiviert. Using: FluidSynth %1 Website Webseite This program is free software; you can redistribute it and/or modify it Dieses Programm ist freie Software; Sie können es gemäß der under the terms of the GNU General Public License version 2 or later. GNU General Public License weiterverteilen und/oder modifizieren. qsynthChannelsForm Preset &Name: &Benennung: Settings preset name Benennung der Einstellung (default) (voreingestellt) Save settings as current preset name Einstellungen mit aktueller Benennung speichern &Save &Speichern Delete current settings preset Aktuelle Einstellung löschen &Delete &Löschen Channels view Kanalübersicht In Ein Chan Kanal Bank Bank Prog Prog Name Name SFID SFID Soundfont Soundfont Channels Kanäle Edit Bearbeiten Unset Aufheben Refresh Erneuern Warning Warnung Delete preset: Einstellung löschen: Are you sure? Sind Sie sicher? qsynthMainForm Add a new engine Neues Klangmodul hinzufügen Engine selector (right-click for menu) Klangmodul auswählen (Rechtsklick für Menü) Delete current engine Aktuelles Klangmodul löschen Show/hide the channels view window Zeige/verberge Fenster mit Kanalübersicht &Channels &Kanäle... Complete engine restart Klangmodul vollständig neu starten Re&start &Neu starten Program reset (all channels) Programm zurücksetzen (alle Kanäle) &Reset &Zurücksetzen Show instance settings and configuration dialog Konfigurationsdialog mit den aktuellen Einstellungen anzeigen Set&up... Konfi&guration... Master Ausgang &Gain &Verstärkung Master Gain Verstärkereinstellung für Ausgangsignal System reset System zurücksetzen &Panic &Panik Reverb Hall Reverb effect activation Halleffekt aktivieren Ac&tive Ak&tiv Reverb Level Hallintensität &Level I&ntensität Reverb Width Entfernung zur Schallquelle (Hallradius) &Width &Entf. Reverb Damp Factor Halldämpfung D&amp D&ämpfung Reverb Room Size Hallraumgröße R&oom Ra&um Chorus Chor Chorus Modulation Type Typ für Chor-Modulation Sine Sinus Triangle Dreieck T&ype: T&yp: Chorus effect activation Choreffekt aktivieren Act&ive &Aktiv Number of Chorus Stages Anzahl der Chorstimmen &N &Stimmen Chorus Level Chorintensität Le&vel &Intensität Chorus Speed (Hz) Modulationsrate (Hz) Chorus Speed Hz Modulationsrate Hz Spee&d Ra&te Chorus Depth (ms) Stimmtrennzeit (ms) Dept&h Trenn&zeit Output peak level Ausgangspegelanzeige Quit this application Diese Anwendung beenden &Quit &Beenden Show general options dialog Dialog für die allgemeinen Optionen anzeigen &Options... &Optionen... Show/hide the messages log window Meldungsfenster anzeigen/verbergen &Messages &Meldungen... Show information about this application Informationen über diese Anwendung anzeigen A&bout... &Über... Information Information The program will keep running in the system tray. To terminate the program, please choose "Quit" in the context menu of the system tray icon. Programm läuft weiter sichtbar als Symbol im Benachrichtigungsfeld. Zum Beenden des Programms, wählen Sie bitte "Beenden" im Kontextmenü des Symbols im Benachrichtigungsfeld. Don't show this message again Diese Meldung nicht mehr anzeigen Warning Warnung is about to terminate. soll beendet werden. Are you sure? Sind Sie sicher? Don't ask this again Nicht nochmal nachfragen Loading soundfont: "%1" Lade Soundfont: "%1" Failed to load the soundfont: "%1". Fehler beim Laden von Soundfont: "%1". Playing MIDI file: "%1" Spiele MIDI-Datei ab: "%1" Failed to play MIDI file: "%1". Fehler beim Abspielen der MIDI-Datei: "%1". Error Fehler &Hide &Verbergen Mi&nimize &Minimieren S&how &Anzeigen Rest&ore Wieder&herstellen &New engine... &Neues Klangmodul... &Delete &Löschen &Start &Starten Engines Klangmodule Delete fluidsynth engine: Lösche fluidsynth Klangmodul: Some settings will be only effective next time you start this program. Einige Einstellungen werden erst nach einem Neustart des Programms wirksam. Creating synthesizer engine Erzeuge Synthesizer-Klangmodul Failed to create the synthesizer. Cannot continue without it. Fehler beim Erzeugen des Synthesizers. Kann ohne ihn nicht weitermachen. Loading soundfont: "%1" (bank offset %2) Lade Soundfont: "%1" (Bankposition %2) Failed to set bank offset (%1) for soundfont: "%2". Fehler beim Setzen des Bankpositionswertes (%1) für Soundfont: "%2". Creating audio driver (%1) Erzeuge Audiotreiber (%1) Failed to create the audio driver (%1). Cannot continue without it. Fehler beim Erzeugen des Audiotreibers (%1). Kann nicht ohne ihn fortfahren. Creating MIDI router (%1) Erzeuge MIDI-Router (%1) Failed to create the MIDI input router (%1). No MIDI input will be available. Fehler beim Erzeugen des Routers für den MIDI-Eingang (%1). Es wird kein MIDI-Eingang verfügbar sein. Creating MIDI driver (%1) Erzeuge MIDI-Treiber (%1) Failed to create the MIDI driver (%1). No MIDI input will be available. Fehler beim Erzeugen des MIDI-Treibers (%1). MIDI-Eingang wird nicht zur Verfügung stehen. Creating MIDI player Erzeuge MIDI-Spieler Failed to create the MIDI player. Continuing without a player. Fehler beim Erzeugen des MIDI-Spielers MAche ohne Spieler weiter. Creating server Erzeuge Server Failed to create the server. Continuing without it. Fehler beim Erzeugen des Servers. Mache ohne in weiter. Server mode disabled. Continuing without it. Server-Modus deaktiviert. Mache ohne ihn weiter. Synthesizer engine started. Synthesizer-Klangmodul gestartet. Destroying server Fahre Server herunter Stopping MIDI player MIDI-Spieler wird angehalten Waiting for MIDI player to terminate Warte auf Beenden des MIDI-Spielers Destroying MIDI player Beende MIDI-Spieler Destroying MIDI driver Beende MIDI-Treiber Destroying MIDI router Beende MIDI-Router Destroying audio driver Beende Audiotreiber Unloading soundfont: "%1" (SFID=%2) Entlade Soundfont: "%1" (SFID=%2) Failed to unload the soundfont: "%1". Fehler beim Entladen von Soundfont: "%1". Destroying synthesizer engine Beende Synthesizer-Klangmodul Synthesizer engine terminated. Synthesizer-Klangmodul beendet. New settings will be effective after restarting all fluidsynth engines. Die neuen Einstellungen werden erst nach einem Neustart aller fluidsynth-Klangmodule effektiv sein. Please note that this operation may cause temporary MIDI and Audio disruption. Bitte beachten Sie, dass dieser Neustart temporäre MIDI- und Audiounterbrechungen verursacht. Do you want to restart all engines now? Möchten Sie nun alle Klangmodule neu starten? New settings will be effective after restarting the fluidsynth engine: Die neuen Einstellungen werden erst nach einem Neustart dieses fluidsynth-Klangmoduls effektiv sein: Do you want to restart the engine now? Möchten Sie das Klangmodul nun neu starten? qsynthMessagesForm Messages Meldungen Messages output log Historie der aufgezeichneten Meldungen Logging stopped --- %1 --- Aufzeichung angehalten --- %1 --- Logging started --- %1 --- Aufzeichnung gestartet --- %1 --- qsynthOptionsForm Display Anzeige Messages Meldungen General Sample messages text font display Schriftart für das Meldungsfenster Select font for the messages text display Schriftart für Meldungsfenster auswählen &Font... Schri&ftart... Whether to keep a maximum number of lines in the messages window Maximale Anzahl der angezeigten Meldungen limitieren &Messages limit: &Max. Meldungen: The maximum number of message lines to keep in view Maximale Anzahl angezeigter Zeilen 100 100 250 250 500 500 1000 1000 2500 2500 5000 5000 Logging Aufzeichnung Messages log file Protokolldatei Browse for the messages log file location Ablage für Protokolldatei nachschlagen ... ... Whether to activate a messages logging to file. Meldungen in einer Protokolldatei aufzeichen. Custom &Color palette theme: Custom color palette theme Wonton Soup DO NOT TRANSLATE KXStudio DO NOT TRANSLATE Manage custom color palette themes &Widget style theme: Custom widget style theme Other Weiteres Whether to ask for confirmation on application exit Beim Schließen der Anwendung nachfragen &Confirm application close &Schließen der Anwendung bestätigen Whether to keep all child windows on top of the main window Alle Unterfenster oberhalb des Hauptfensters anordnen &Keep child windows always on top Unterfenster immer &oberhalb anordnen Whether to capture standard output (stdout/stderr) into messages window Standardausgabe (stdout/stderr) in das Meldungsfenster umleiten Capture standard &output Standardausgabe &umleiten Whether to monitor and show engine output peak level meters Ausgangspegelinstrument anzeigen Output &peak level meters Ausgangs&pegelinstrument anzeigen Whether to enable the system tray icon Anwendungssymbol im Benachrichtigungsfeld anzeigen &Enable system tray icon S&ymbol im Benachrichtigungsfeld anzeigen Whether to start minimized to system tray Anwendung minimiert als Symbol im Benachrichtigungsfeld starten Start minimi&zed to system tray Minimiert im &Benachrichtigungsfeld starten Information Information Some settings may be only effective next time you start this application. Warning Warnung Some options have been changed. Einige Einstellungen wurden verändert. Do you want to apply the changes? Möchten Sie die Änderungen anwenden? Messages Log Meldungsprotokoll Log files Protokolldateien Knobs Drehregler Graphic style for knobs Graphischer Stil der Drehregler Classic Klassisch Vokimon Vokimon Peppino Peppino Legacy Legacy Mouse motion behavior for knobs Reaktion der Drehregler auf Mausbewegung Radial Radial Linear Linear Whether to show system tray message on main window close Nachrichten des Benachrichtigungsfelds beim Schließen des Hauptfensters anzeigen Sho&w system tray message on close &Nachrichten des Benachrichtigungsfelds beim Beenden anzeigen Defaults Voreinstellungen &Base font size: Schrift&größe: Base application font size (pt.) Standardschriftgröße für die Anwendung (default) (voreingestellt) 8 8 9 9 10 10 11 11 12 12 Messages &log file: Protokoll&datei: Options Optionen Kno&b graphic style: Dreh&reglerstil: Mouse motion be&havior: Reaktion auf Mausbe&wegung: 6 6 7 7 Skulpture Skulpture qsynthPaletteForm Color Themes Name Name Current color palette name Save current color palette name Save Delete current color palette name Delete Palette Current color palette Generate: Base color to generate palette Reset all current palette colors Reset Import a custom color theme (palette) from file Import... Export a custom color theme (palette) to file Export... Show Details Import File - %1 Palette files (*.%1) All files (*.*) Warning - %1 Could not import from file: %1 Sorry. Export File - %1 Some settings have been changed. Do you want to discard the changes? Some settings have been changed: "%1". Do you want to save the changes? qsynthPaletteForm::PaletteModel Color Role Active Inactive Disabled qsynthPresetForm Channel Preset Preset Voreinstellung Bank selector Bank einstellen Bank Bank Program selector Programm einstellen Prog Prog Name Name SFID SFID Soundfont Soundfont Whether to preview the current selection Voransicht für akktuelle Auswahl anzeigen Preview Voransicht Channel %1 Kanal %1 qsynthSetupForm Engine &Name: Klangmodul&benennung: Engine display name Angezeigter Name des Klangmoduls &MIDI &MIDI MIDI device name MIDI-Gerätename MIDI &Device: MIDI-&Gerät: &MIDI Driver: MIDI-&Treiber: Input MIDI driver Treiber für MIDI-Eingang MIDI Client Name ID (ALSA/CoreMidi): MIDI-Client-Name-ID (ALSA/CoreMidi): ALSA Sequencer client name identification Identifikationsname fürs Anmelden beim ALSA-Sequenzer pid pid qsynth qsynth Whether to show MIDI router events on messages window MIDI-Router-Ereignisse im Meldungsfenster anzeigen &Dump MIDI router events MIDI-&Router-Ereignisse ausgeben Print out verbose messages about MIDI events Ausführliche Meldungen über MIDI-Ereignisse ausgeben &Verbose MIDI event messages Aus&führliche Meldungen über MIDI-Ereignisse Number of MIDI channels Anzahl der MIDI-Kanäle MIDI &Channels: MIDI-&Kanäle: Enable MIDI input MIDI-Eingang aktivieren Enable MIDI &Input MI&DI-Eingang aktivieren gm gm gs gs mma mma xs xs MIDI &Bank Select mode: MIDI-&Bank Einstellmodus: MIDI Bank Select mode MIDI-Bank Einstellmodus &Audio &Audio Sample &Format: Au&flösung: Output audio driver Audiotreiber für Ausgabe Sample format Numerisches Format des digitalisierten Audiosignals Period size in bytes (audio buffer size) Größe des Audiopuffers in Byte 64 64 128 128 256 256 512 512 1024 1024 2048 2048 4096 4096 8192 8129 Buffer Cou&nt: Pufferan&zahl: Sample rate in samples per second (Hz) Abtastrate in Hz (Samples pro Sekunde) 22050 22050 44100 44100 48000 48000 88200 88200 96000 96000 Sample &Rate: Abtast&rate: Period count (number of audio buffers) Anzahl der Perioden (Anzahl der Audiopuffer) 2 2 4 4 8 8 16 16 32 32 Buffer &Size: Puffergr&öße: &Audio Driver: Audio&treiber: Audio &Device: Audio&gerät: Audio &Channels: Audio&kanäle: Number of audio groups Anzahl der Audiogruppen Number of enabled polyphonic voices Anzahl der aktiven Polyphoniestimmen Number of stereo audio channels Anzahl der Stereo-Audiokanäle &Polyphony: &Polyphonie: Audio &Groups: A&udiogruppen: JACK Client Name &ID: JACK-Client &Identifikationsname: JACK client name identification Identifikationsname als JACK-Client fluidsynth fluidsynth Attempt to connect the JACK outputs to the physical ports Versuche, die JACK-Ausgänge mit den physikalischen Anschlüssen zuverbinden Auto Connect &JACK Outputs &JACK-Ausgänge automatisch verbinden Create multiple JACK output ports for channels, groups and effects Erzeuge mehrere JACK-Ausgänge für Kanäle, Gruppen und Effekte &Multiple JACK Outputs Me&hrere JACK-Ausgänge &Soundfonts &Soundfonts Soundfont stack Soundfont-Stapel SFID SFID Name Name Offset Position Open soundfont file for loading Soundfont-Datei zum Laden öffnen &Open... &Öffnen... Edit selected soundfont bank offset Positionswert der gewählten Soundfont-Bank bearbeiten &Edit Bea&rbeiten Remove selected soundfont from stack Gewählten Soundfont aus Stapel entfernen &Remove En&tfernen Move up selected soundfont towards the top of stack Gewählten Soundfont im Stapel nach oben bewegen &Up A&uf Move down selected soundfont towards the bottom of stack Gewählten Soundfont im Stapel nach unten bewegen &Down A&b S&ettings &Einstellungen Type Typ Realtime Realtime Current Aktuell Default Voreinstellung Min Min Max Max Options Optionen Setup Konfigurieren Warning Warnung Some settings have been changed. Einige Einstellungen wurden geändert. Do you want to apply the changes? Möchten Sie die Änderungen anwenden? Open... Öffnen... Edit Bearbeiten Remove Entfernen Move Up Auf Move Down Ab Soundfont files Soundfont-Dateien Soundfont file already on list Soundfont-Datei ist bereits Bestandteil der Liste Add anyway? Dennoch hinzufügen? Error Fehler Failed to add soundfont file Fehler beim Hinzufügen der Soundfont-Datei Please, check for a valid soundfont file. Bitte wählen Sie eine gültige Soundfont-Datei. qsynth-0.6.1/src/PaxHeaders.5367/win320000644000000000000000000000013213577702221014207 xustar0030 mtime=1577026705.850992838 30 atime=1577026705.850992838 30 ctime=1577026705.850992838 qsynth-0.6.1/src/win32/0000755000175000001440000000000013577702221015111 5ustar00rncbcusers00000000000000qsynth-0.6.1/src/win32/PaxHeaders.5367/gpl.rtf0000644000000000000000000000013213577702221015563 xustar0030 mtime=1577026705.850992838 30 atime=1577026705.850992838 30 ctime=1577026705.850992838 qsynth-0.6.1/src/win32/gpl.rtf0000644000175000001440000004453313577702221016421 0ustar00rncbcusers00000000000000{\rtf1\ansi\ansicpg1252\deff0{\fonttbl{\f0\fnil\fprq1\fcharset0 Courier New;}{\f1\fswiss\fcharset0 Arial;}} {\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\lang2057\f0\fs16\pard\qc GNU GENERAL PUBLIC LICENSE\par Version 2, June 1991\par \pard\par \pard\li100Copyright (C) 1989, 1991 Free Software Foundation, Inc. 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\par Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.\par \pard\par \pard\qc Preamble\par \pard\par The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too.\par \par When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things.\par \par To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it.\par \par For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.\par \par We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software.\par \par Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations.\par \par Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all.\par \par The precise terms and conditions for copying, distribution and modification follow.\par \par \pard\qc GNU GENERAL PUBLIC LICENSE\par TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\par \pard\par 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you".\par \par Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does.\par \par 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program.\par \par You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.\par \par 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:\par \par \pard\li256a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.\par \par b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.\par \par c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.)\par \pard\par These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.\par \par Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program.\par \par In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.\par \par 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:\par \par \pard\li256a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,\par \par b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,\par \par c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.)\par \pard\par The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.\par \par If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code.\par \par 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.\par \par 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it.\par \par 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License.\par \par 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program.\par \par If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.\par \par It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.\par \par This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.\par \par 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.\par \par 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.\par \par Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.\par \par 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.\par \par \tab\tab\tab NO WARRANTY\par \par 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\par \par 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\par \par \pard\qc END OF TERMS AND CONDITIONS\par \par How to Apply These Terms to Your New Programs\par \pard\par If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.\par \par To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.\par \par \pard\li256\par Copyright (C) \par \pard\par \pard\li256This 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.\par \pard\par \pard\li256This 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.\par \pard\par \pard\li256You 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 St, Fifth Floor, Boston, MA 02110-1301 USA\par \pard\par \par Also add information on how to contact you by electronic and paper mail.\par \par If the program is interactive, make it output a short notice like this when it starts in an interactive mode:\par \par \pard\li256Gnomovision version 69, Copyright (C) year name of author\par Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.\par \pard\par The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program.\par \par You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names:\par \par \pard\li256Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker.\par \pard\par \pard\li256, 1 April 1989\par Ty Coon, President of Vice\par \pard\par This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License.\par \f1\par } qsynth-0.6.1/src/win32/PaxHeaders.5367/qsynth.rc0000644000000000000000000000013213577702221016140 xustar0030 mtime=1577026705.850992838 30 atime=1577026705.850992838 30 ctime=1577026705.850992838 qsynth-0.6.1/src/win32/qsynth.rc0000644000175000001440000000011013577702221016755 0ustar00rncbcusers00000000000000IDI_ICON1 ICON DISCARDABLE "../images/qsynth.ico" qsynth-0.6.1/src/win32/PaxHeaders.5367/setup.nsi0000644000000000000000000000013213577702221016137 xustar0030 mtime=1577026705.850992838 30 atime=1577026705.850992838 30 ctime=1577026705.850992838 qsynth-0.6.1/src/win32/setup.nsi0000644000175000001440000002146313577702221016772 0ustar00rncbcusers00000000000000Name QSynth # Defines !define BINARY_FILES "C:\Projects\build\all" !define REGKEY "SOFTWARE\$(^Name)" !define VERSION 0.4.1 !define COMPANY QSynth !define URL http://qsynth.sourceforge.net/ # MUI defines !define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico" !define MUI_FINISHPAGE_NOAUTOCLOSE !define MUI_STARTMENUPAGE_REGISTRY_ROOT HKLM !define MUI_STARTMENUPAGE_NODISABLE !define MUI_STARTMENUPAGE_REGISTRY_KEY ${REGKEY} !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME StartMenuGroup !define MUI_STARTMENUPAGE_DEFAULTFOLDER QSynth !define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico" !define MUI_UNFINISHPAGE_NOAUTOCLOSE # Included files !include Sections.nsh !include MUI.nsh !include Library.nsh # Variables Var StartMenuGroup Var LibInstall # Installer pages !insertmacro MUI_PAGE_WELCOME !insertmacro MUI_PAGE_LICENSE gpl.rtf !insertmacro MUI_PAGE_DIRECTORY !insertmacro MUI_PAGE_STARTMENU Application $StartMenuGroup !insertmacro MUI_PAGE_INSTFILES !insertmacro MUI_PAGE_FINISH !insertmacro MUI_UNPAGE_CONFIRM !insertmacro MUI_UNPAGE_INSTFILES # Installer languages !insertmacro MUI_LANGUAGE "Czech" !insertmacro MUI_LANGUAGE "English" !insertmacro MUI_LANGUAGE "German" !insertmacro MUI_LANGUAGE "Russian" !insertmacro MUI_LANGUAGE "Spanish" # Installer attributes OutFile qsynth-${VERSION}-setup.exe InstallDir $PROGRAMFILES\QSynth CRCCheck on XPStyle on ShowInstDetails show VIProductVersion 0.3.6.0 VIAddVersionKey ProductName QSynth VIAddVersionKey ProductVersion "${VERSION}" VIAddVersionKey CompanyName "${COMPANY}" VIAddVersionKey CompanyWebsite "${URL}" VIAddVersionKey FileVersion "${VERSION}" VIAddVersionKey FileDescription "" VIAddVersionKey LegalCopyright "" InstallDirRegKey HKLM "${REGKEY}" Path ShowUninstDetails show # Installer sections Section -Main SEC0000 SetOutPath $INSTDIR SetOverwrite on File ${BINARY_FILES}\qsynth.exe File ${BINARY_FILES}\fluidsynth.exe SetOutPath $INSTDIR\share\locale File ${BINARY_FILES}\qsynth_cs.qm File ${BINARY_FILES}\qsynth_de.qm File ${BINARY_FILES}\qsynth_es.qm File ${BINARY_FILES}\qsynth_ru.qm # Installing library libfluidsynth.dll !insertmacro InstallLib DLL NOTSHARED REBOOT_PROTECTED ${BINARY_FILES}\libfluidsynth.dll $INSTDIR\libfluidsynth.dll $INSTDIR # Installing library mingwm10.dll !insertmacro InstallLib DLL NOTSHARED REBOOT_PROTECTED ${BINARY_FILES}\mingwm10.dll $INSTDIR\mingwm10.dll $INSTDIR # Installing library libgcc_s_dw2-1.dll !insertmacro InstallLib DLL NOTSHARED REBOOT_PROTECTED ${BINARY_FILES}\libgcc_s_dw2-1.dll $INSTDIR\libgcc_s_dw2-1.dll $INSTDIR # Installing library libsndfile-1.dll !insertmacro InstallLib DLL NOTSHARED REBOOT_PROTECTED ${BINARY_FILES}\libsndfile-1.dll $INSTDIR\libsndfile-1.dll $INSTDIR # Installing library QtCore4.dll !insertmacro InstallLib DLL NOTSHARED REBOOT_PROTECTED ${BINARY_FILES}\QtCore4.dll $INSTDIR\QtCore4.dll $INSTDIR # Installing library QtGui4.dll !insertmacro InstallLib DLL NOTSHARED REBOOT_PROTECTED ${BINARY_FILES}\QtGui4.dll $INSTDIR\QtGui4.dll $INSTDIR # Installing library libglib.dll !insertmacro InstallLib DLL NOTSHARED REBOOT_PROTECTED ${BINARY_FILES}\libglib-2.0-0.dll $INSTDIR\libglib-2.0-0.dll $INSTDIR # Installing library libgthread.dll !insertmacro InstallLib DLL NOTSHARED REBOOT_PROTECTED ${BINARY_FILES}\libgthread-2.0-0.dll $INSTDIR\libgthread-2.0-0.dll $INSTDIR # Installing library intl.dll !insertmacro InstallLib DLL NOTSHARED REBOOT_PROTECTED ${BINARY_FILES}\intl.dll $INSTDIR\intl.dll $INSTDIR WriteRegStr HKLM "${REGKEY}\Components" Main 1 SectionEnd Section -post SEC0001 WriteRegStr HKLM "${REGKEY}" Path $INSTDIR SetOutPath $INSTDIR WriteUninstaller $INSTDIR\uninstall.exe !insertmacro MUI_STARTMENU_WRITE_BEGIN Application CreateDirectory $SMPROGRAMS\$StartMenuGroup CreateShortcut "$SMPROGRAMS\$StartMenuGroup\Uninstall $(^Name).lnk" $INSTDIR\uninstall.exe CreateShortcut "$SMPROGRAMS\$StartMenuGroup\fluidsynth.lnk" $INSTDIR\fluidsynth.exe CreateShortcut "$SMPROGRAMS\$StartMenuGroup\$(^Name).lnk" $INSTDIR\qsynth.exe !insertmacro MUI_STARTMENU_WRITE_END WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayName "$(^Name)" WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayVersion "${VERSION}" WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" Publisher "${COMPANY}" WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" URLInfoAbout "${URL}" WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayIcon $INSTDIR\uninstall.exe WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" UninstallString $INSTDIR\uninstall.exe WriteRegDWORD HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" NoModify 1 WriteRegDWORD HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" NoRepair 1 SectionEnd # Macro for selecting uninstaller sections !macro SELECT_UNSECTION SECTION_NAME UNSECTION_ID Push $R0 ReadRegStr $R0 HKLM "${REGKEY}\Components" "${SECTION_NAME}" StrCmp $R0 1 0 next${UNSECTION_ID} !insertmacro SelectSection "${UNSECTION_ID}" GoTo done${UNSECTION_ID} next${UNSECTION_ID}: !insertmacro UnselectSection "${UNSECTION_ID}" done${UNSECTION_ID}: Pop $R0 !macroend # Uninstaller sections Section /o -un.Main UNSEC0000 Delete /REBOOTOK $INSTDIR\share\locale\qsynth_ru.qm Delete /REBOOTOK $INSTDIR\share\locale\qsynth_es.qm Delete /REBOOTOK $INSTDIR\share\locale\qsynth_de.qm Delete /REBOOTOK $INSTDIR\share\locale\qsynth_cs.qm Delete /REBOOTOK $INSTDIR\fluidsynth.exe Delete /REBOOTOK $INSTDIR\qsynth.exe # Uninstalling library $INSTDIR\libfluidsynth-1.dll !insertmacro UnInstallLib DLL NOTSHARED REBOOT_PROTECTED $INSTDIR\libfluidsynth.dll # Uninstalling library $INSTDIR\mingwm10.dll !insertmacro UnInstallLib DLL NOTSHARED REBOOT_PROTECTED $INSTDIR\mingwm10.dll # Uninstalling library $INSTDIR\libgcc_s_dw2-1.dll !insertmacro UnInstallLib DLL NOTSHARED REBOOT_PROTECTED $INSTDIR\libgcc_s_dw2-1.dll # Uninstalling library $INSTDIR\libsndfile-1.dll !insertmacro UnInstallLib DLL NOTSHARED REBOOT_PROTECTED $INSTDIR\libsndfile-1.dll # Uninstalling library $INSTDIR\QtCore4.dll !insertmacro UnInstallLib DLL NOTSHARED REBOOT_PROTECTED $INSTDIR\QtCore4.dll # Uninstalling library $INSTDIR\QtGui4.dll !insertmacro UnInstallLib DLL NOTSHARED REBOOT_PROTECTED $INSTDIR\QtGui4.dll # Uninstalling library $INSTDIR\libglib.dll !insertmacro UnInstallLib DLL NOTSHARED REBOOT_PROTECTED $INSTDIR\libglib-2.0-0.dll # Uninstalling library $INSTDIR\libgthread.dll !insertmacro UnInstallLib DLL NOTSHARED REBOOT_PROTECTED $INSTDIR\libgthread-2.0-0.dll # Uninstalling library $INSTDIR\intl.dll !insertmacro UnInstallLib DLL NOTSHARED REBOOT_PROTECTED $INSTDIR\intl.dll DeleteRegValue HKLM "${REGKEY}\Components" Main SectionEnd Section -un.post UNSEC0001 DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\Uninstall $(^Name).lnk" Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\fluidsynth.lnk" Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\$(^Name).lnk" Delete /REBOOTOK $INSTDIR\uninstall.exe DeleteRegValue HKLM "${REGKEY}" StartMenuGroup DeleteRegValue HKLM "${REGKEY}" Path DeleteRegKey /IfEmpty HKLM "${REGKEY}\Components" DeleteRegKey /IfEmpty HKLM "${REGKEY}" RmDir /REBOOTOK $SMPROGRAMS\$StartMenuGroup RmDir /REBOOTOK $INSTDIR SectionEnd # Installer functions Function .onInit Call GetDXVersion Pop $R3 IntCmp $R3 900 +3 0 +3 MessageBox "MB_OK" "Requires DirectX 9.0 or later." Abort InitPluginsDir Push $0 ReadRegStr $0 HKLM "${REGKEY}" Path ClearErrors StrCmp $0 "" +2 StrCpy $LibInstall 1 Pop $0 FunctionEnd # Uninstaller functions Function un.onInit ReadRegStr $INSTDIR HKLM "${REGKEY}" Path !insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuGroup !insertmacro SELECT_UNSECTION Main ${UNSEC0000} FunctionEnd Function GetDXVersion Push $0 Push $1 ReadRegStr $0 HKLM "Software\Microsoft\DirectX" "Version" IfErrors noDirectX StrCpy $1 $0 2 5 ; get the minor version StrCpy $0 $0 2 2 ; get the major version IntOp $0 $0 * 100 ; $0 = major * 100 + minor IntOp $0 $0 + $1 Goto done noDirectX: StrCpy $0 0 done: Pop $1 Exch $0 FunctionEnd qsynth-0.6.1/src/PaxHeaders.5367/qsynthDialSkulptureStyle.cpp0000644000000000000000000000013213577702221021106 xustar0030 mtime=1577026705.843992838 30 atime=1577026705.843992838 30 ctime=1577026705.843992838 qsynth-0.6.1/src/qsynthDialSkulptureStyle.cpp0000644000175000001440000004161413577702221021741 0ustar00rncbcusers00000000000000/****************************************************************************** Skulpture - Classical Three-Dimensional Artwork for Qt 4 Copyright (c) 2019 rncbc aka Rui Nuno Capela Copyright (c) 2007-2009 Christoph Feck 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. 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. 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. *****************************************************************************/ /* This code is borrowed from the Skulpture KDE4 style * http://skulpture.maxiom.de/ */ #include "qsynthDialSkulptureStyle.h" #include #include #include #include static const bool UsePixmapCache = true; static void paintIndicatorCached(QPainter *painter, const QStyleOption *option, void (*paintIndicator)(QPainter *painter, const QStyleOption *option), bool useCache, const QString &pixmapName) { QPixmap pixmap; if (!useCache || !QPixmapCache::find(pixmapName, &pixmap)) { pixmap = QPixmap(option->rect.size()); #if 1 pixmap.fill(Qt::transparent); // pixmap.fill(Qt::red); #else pixmap.fill(option->palette.color(QPalette::Window)); #endif QPainter p(&pixmap); QStyleOption opt = *option; opt.rect = QRect(QPoint(0, 0), option->rect.size()); // p.setCompositionMode(QPainter::CompositionMode_Clear); // p.setCompositionMode(QPainter::CompositionMode_Source); // p.fillRect(opt.rect, Qt::transparent); // p.setCompositionMode(QPainter::CompositionMode_SourceOver); p.setFont(painter->font()); p.setRenderHint(QPainter::Antialiasing, true); paintIndicator(&p, &opt); p.end(); if (useCache) { QPixmapCache::insert(pixmapName, pixmap); // qDebug() << "inserted into cache:" << pixmapName; } } painter->drawPixmap(option->rect, pixmap); } void paintDialBase(QPainter *painter, const QStyleOption *option) { // painter->fillRect(option->rect, Qt::red); // painter->save(); // painter->setRenderHint(QPainter::Antialiasing, true); int d = qMin(option->rect.width(), option->rect.height()); /* if (d > 20 && option->notchTarget > 0) { d += -1; } */ QRectF r((option->rect.width() - d) / 2.0, (option->rect.height() - d) / 2.0, d, d); const qreal angle = option->direction == Qt::LeftToRight ? 135.0 : 45.0; // const qreal angle = 90; painter->setPen(Qt::NoPen); QColor border_color = option->palette.color(QPalette::Window); #if 0 { QRadialGradient depth_gradient(r.center(), d / 2); // depth_gradient.setColorAt(0.0, QColor(0, 0, 0, 255)); depth_gradient.setColorAt(0.5, QColor(0, 0, 0, 255)); depth_gradient.setColorAt(1.0, QColor(0, 0, 0, 0)); painter->setBrush(depth_gradient); painter->drawEllipse(r); } #endif #if 1 if (option->state & QStyle::State_HasFocus && option->state & QStyle::State_KeyboardFocusChange) { painter->setBrush(option->palette.color(QPalette::Highlight).darker(180)); r.adjust(1, 1, -1, -1); painter->drawEllipse(r); painter->setBrush(border_color); r.adjust(1, 1, -1, -1); painter->drawEllipse(r); r.adjust(1, 1, -1, -1); } else { painter->setBrush(border_color); r.adjust(1, 1, -1, -1); painter->drawEllipse(r); r.adjust(1, 1, -1, -1); QConicalGradient border_gradient(r.center(), angle); if (!(option->state & QStyle::State_Enabled)) { border_color = border_color.lighter(120); } border_gradient.setColorAt(0.0, border_color.darker(180)); border_gradient.setColorAt(0.3, border_color.darker(130)); border_gradient.setColorAt(0.5, border_color.darker(170)); border_gradient.setColorAt(0.7, border_color.darker(130)); border_gradient.setColorAt(1.0, border_color.darker(180)); painter->setBrush(border_gradient); // painter->setBrush(Qt::blue); painter->drawEllipse(r); r.adjust(1, 1, -1, -1); } d -= 6; QColor dial_color; if (option->state & QStyle::State_Enabled) { dial_color = option->palette.color(QPalette::Button).lighter(101); if (option->state & QStyle::State_MouseOver) { dial_color = dial_color.lighter(103); } } else { dial_color = option->palette.color(QPalette::Window); } qreal t = option->state & QStyle::State_Enabled ? 2.0 : 1.5; if (1) { // ###: work around Qt 4.3.0 bug? (this works for 4.3.1) QConicalGradient border_gradient(r.center(), angle); border_gradient.setColorAt(0.0, dial_color.lighter(120)); border_gradient.setColorAt(0.2, dial_color); border_gradient.setColorAt(0.5, dial_color.darker(130)); border_gradient.setColorAt(0.8, dial_color); border_gradient.setColorAt(1.0, dial_color.lighter(120)); painter->setPen(QPen(border_gradient, t)); } else { painter->setPen(QPen(Qt::red, t)); } #if 0 QLinearGradient dial_gradient(r.topLeft(), r.bottomLeft()); dial_gradient.setColorAt(0.0, dial_color.darker(105)); dial_gradient.setColorAt(0.5, dial_color.lighter(102)); dial_gradient.setColorAt(1.0, dial_color.lighter(105)); #elif 1 QLinearGradient dial_gradient(option->direction == Qt::LeftToRight ? r.topLeft() : r.topRight(), option->direction == Qt::LeftToRight ? r.bottomRight() : r.bottomLeft()); // QLinearGradient dial_gradient(r.topLeft(), r.bottomLeft()); if (true || option->state & QStyle::State_Enabled) { #if 1 dial_gradient.setColorAt(0.0, dial_color.darker(106)); dial_gradient.setColorAt(1.0, dial_color.lighter(104)); #else dial_gradient.setColorAt(0.0, dial_color.lighter(101)); dial_gradient.setColorAt(0.5, dial_color.darker(103)); dial_gradient.setColorAt(1.0, dial_color.lighter(104)); #endif } else { dial_gradient.setColorAt(0.0, dial_color); dial_gradient.setColorAt(1.0, dial_color); } #elif 0 QConicalGradient dial_gradient(r.center(), angle); dial_gradient.setColorAt(0.0, dial_color.lighter(102)); dial_gradient.setColorAt(0.5, dial_color.darker(103)); dial_gradient.setColorAt(1.0, dial_color.lighter(102)); #else QBrush dial_gradient(dial_color); #endif painter->setBrush(dial_gradient); t = t / 2; painter->drawEllipse(r.adjusted(t, t, -t, -t)); // painter->setPen(Qt::NoPen); // painter->setBrush(dial_color); // painter->drawEllipse(r.adjusted(d / 4, d / 4, - d / 4, - d / 4)); #if 0 QLinearGradient border2_gradient(r.topLeft(), r.bottomRight()); border2_gradient.setColorAt(1.0, dial_color.darker(425)); border2_gradient.setColorAt(0.9, dial_color); border2_gradient.setColorAt(0.0, dial_color.darker(400)); painter->setPen(QPen(border2_gradient, 1.3)); painter->setBrush(Qt::NoBrush); painter->drawEllipse(r.adjusted(0.3, 0.3, -0.3, -0.3)); #endif // painter->restore(); #endif } void paintCachedDialBase(QPainter *painter, const QStyleOptionSlider *option) { bool useCache = UsePixmapCache; QString pixmapName; QRect r = option->rect; int d = qMin(r.width(), r.height()); if (/* option->state & (QStyle::State_HasFocus | QStyle::State_MouseOver) ||*/ d > 128) { useCache = false; } if (useCache) { uint state = uint(option->state) & (QStyle::State_Enabled | QStyle::State_On | QStyle::State_MouseOver | QStyle::State_KeyboardFocusChange | QStyle::State_HasFocus); if (!(state & QStyle::State_Enabled)) { state &= ~(QStyle::State_MouseOver | QStyle::State_HasFocus | QStyle::State_KeyboardFocusChange); } // state &= ~(QStyle::State_HasFocus); #if QT_VERSION < QT_VERSION_CHECK(5, 5, 0) pixmapName.sprintf("scp-qdb-%x-%x-%llx-%x", state, option->direction, option->palette.cacheKey(), d); #else pixmapName = QString::asprintf("scp-qdb-%x-%x-%llx-%x", state, option->direction, option->palette.cacheKey(), d); #endif } paintIndicatorCached(painter, option, paintDialBase, useCache, pixmapName); } void paintIndicatorDial(QPainter *painter, const QStyleOptionSlider *option) { int d = qMin(option->rect.width(), option->rect.height()); QRect rect(option->rect.center() - QPoint((d - 1) / 2, (d - 1) / 2), QSize(d, d)); QStyleOptionSlider opt; opt.QStyleOption::operator=(*option); opt.rect = rect; paintCachedDialBase(painter, &opt); } QColor shaded_color(const QColor &color, int shade) { #if 1 const qreal contrast = 1.0; int r, g, b; color.getRgb(&r, &g, &b); int gray = qGray(r, g, b); gray = qMax(r, qMax(g, b)); gray = (r + b + g + 3 * gray) / 6; if (shade < 0) { qreal k = 220.0 / 255.0 * shade; k *= contrast; int a = 255; if (gray > 0) { a = int(k * 255 / (0 - gray)); if (a < 0) a = 0; if (a > 255) a = 255; } return QColor(0, 0, 0, a); } else { qreal k = (255 - 220.0) / (255.0) * shade; k *= contrast; int a = 255; if (gray < 255) { a = int(k * 255 / (255 - gray)); if (a < 0) a = 0; if (a > 255) a = 255; } return QColor(255, 255, 255, a); } #else if (shade < 0) { return QColor(0, 0, 0, -shade); } else { return QColor(255, 255, 255, shade); } #endif } static void paintGrip(QPainter *painter, const QStyleOption *option) { // painter->fillRect(option->rect, Qt::red); int d = qMin(option->rect.width(), option->rect.height()); // good values are 3 (very small), 4 (small), 5 (good), 7 (large), 9 (huge) // int d = 5; QRectF rect(QRectF(option->rect).center() - QPointF(d / 2.0, d / 2.0), QSizeF(d, d)); const qreal angle = option->direction == Qt::LeftToRight ? 135.0 : 45.0; // const qreal angle = 90; QColor color; qreal opacity = 0.9; painter->save(); painter->setPen(Qt::NoPen); if (option->state & QStyle::State_Enabled) { if (option->state & QStyle::State_Sunken) { color = option->palette.color(QPalette::Highlight).darker(110); } else { color = option->palette.color(QPalette::Button); } } else { color = option->palette.color(QPalette::Button); opacity = 0.5; } QConicalGradient gradient1(rect.center(), angle); gradient1.setColorAt(0.0, shaded_color(color, -110)); gradient1.setColorAt(0.25, shaded_color(color, -30)); gradient1.setColorAt(0.5, shaded_color(color, 180)); gradient1.setColorAt(0.75, shaded_color(color, -30)); gradient1.setColorAt(1.0, shaded_color(color, -110)); painter->setBrush(color); painter->drawEllipse(rect); painter->setBrush(gradient1); #if (QT_VERSION >= QT_VERSION_CHECK(4, 2, 0)) // ### merge opacity into color painter->setOpacity(opacity); #endif painter->drawEllipse(rect); #if (QT_VERSION >= QT_VERSION_CHECK(4, 2, 0)) painter->setOpacity(1.0); if (d > 2) { QConicalGradient gradient2(rect.center(), angle); gradient2.setColorAt(0.0, shaded_color(color, -40)); gradient2.setColorAt(0.25, shaded_color(color, 0)); gradient2.setColorAt(0.5, shaded_color(color, 210)); gradient2.setColorAt(0.75, shaded_color(color, 0)); gradient2.setColorAt(1.0, shaded_color(color, -40)); rect.adjust(1, 1, -1, -1); painter->setBrush(color); painter->drawEllipse(rect); painter->setBrush(gradient2); painter->setOpacity(opacity); painter->drawEllipse(rect); painter->setOpacity(1.0); if (d > 8) { QConicalGradient gradient3(rect.center(), angle); gradient3.setColorAt(0.0, shaded_color(color, -10)); gradient3.setColorAt(0.25, shaded_color(color, 0)); gradient3.setColorAt(0.5, shaded_color(color, 180)); gradient3.setColorAt(0.75, shaded_color(color, 0)); gradient3.setColorAt(1.0, shaded_color(color, -10)); rect.adjust(2, 2, -2, -2); painter->setBrush(color); painter->drawEllipse(rect); painter->setBrush(gradient3); painter->setOpacity(opacity); painter->drawEllipse(rect); painter->setOpacity(1.0); } } #endif painter->restore(); } void paintCachedGrip(QPainter *painter, const QStyleOption *option, QPalette::ColorRole /*bgrole*/) { bool useCache = UsePixmapCache; QString pixmapName; if (/* option->state & (QStyle::State_HasFocus | QStyle::State_MouseOver) ||*/ option->rect.width() * option->rect.height() > 4096) { useCache = false; } if (useCache) { uint state = uint(option->state) & (QStyle::State_Enabled | QStyle::State_On | QStyle::State_MouseOver | QStyle::State_Sunken | QStyle::State_HasFocus); if (!(state & QStyle::State_Enabled)) { state &= ~(QStyle::State_MouseOver | QStyle::State_HasFocus); } state &= ~(QStyle::State_HasFocus); QByteArray colorName = option->palette.color(QPalette::Button).name().toLatin1(); #if QT_VERSION < QT_VERSION_CHECK(5, 5, 0) pixmapName.sprintf("scp-isg-%x-%x-%s-%x-%x", state, option->direction, colorName.constData(), option->rect.width(), option->rect.height()); #else pixmapName = QString::asprintf("scp-isg-%x-%x-%s-%x-%x", state, option->direction, colorName.constData(), option->rect.width(), option->rect.height()); #endif } paintIndicatorCached(painter, option, paintGrip, useCache, pixmapName); } void qsynthDialSkulptureStyle::drawComplexControl( ComplexControl cc, const QStyleOptionComplex *optc, QPainter *painter, const QWidget *widget) const { if (cc != QStyle::CC_Dial) { QCommonStyle::drawComplexControl(cc, optc, painter, widget); return; } const QStyleOptionSlider *option = qstyleoption_cast(optc); if (option == nullptr) return; int d = qMin(option->rect.width() & ~1, option->rect.height() & ~1); QStyleOptionSlider opt = *option; const QAbstractSlider *slider = nullptr; // always highlight knob if pressed (even if mouse is not over knob) if ((option->state & QStyle::State_HasFocus) && (slider = qobject_cast(widget))) { if (slider->isSliderDown()) { opt.state |= QStyle::State_MouseOver; } } // tickmarks opt.palette.setColor(QPalette::Inactive, QPalette::WindowText, QColor(120, 120, 120, 255)); opt.palette.setColor(QPalette::Active, QPalette::WindowText, QColor(120, 120, 120, 255)); opt.state &= ~QStyle::State_HasFocus; opt.rect.setWidth(opt.rect.width() & ~1); opt.rect.setHeight(opt.rect.height() & ~1); //((QCommonStyle *) this)-> QCommonStyle::drawComplexControl(QStyle::CC_Dial, &opt, painter, widget); // focus rectangle if (option->state & QStyle::State_HasFocus) { QStyleOptionFocusRect focus; opt.state |= QStyle::State_HasFocus; focus.QStyleOption::operator=(opt); focus.rect.adjust(-1, -1, 1, 1); drawPrimitive(QStyle::PE_FrameFocusRect, &focus, painter, widget); } opt.palette = option->palette; // dial base if (d <= 256) { paintIndicatorDial(painter, &opt); } else { // large dials are slow to render, do not render them } // dial knob d -= 6; int gripSize = (option->fontMetrics.height() / 4) * 2 - 1; opt.rect.setSize(QSize(gripSize, gripSize)); opt.rect.moveCenter(option->rect.center()); // angle calculation from qcommonstyle.cpp (c) Trolltech 1992-2007, ASA. qreal angle; int sliderPosition = option->upsideDown ? option->sliderPosition : (option->maximum - option->sliderPosition); int range = option->maximum - option->minimum; if (!range) { angle = M_PI / 2; } else if (option->dialWrapping) { angle = M_PI * 1.5 - (sliderPosition - option->minimum) * 2 * M_PI / range; } else { angle = (M_PI * 8 - (sliderPosition - option->minimum) * 10 * M_PI / range) / 6; } qreal rr = d / 2.0 - gripSize - 2; opt.rect.translate(int(0.5 + rr * cos(angle)), int(0.5 - rr * sin(angle))); paintCachedGrip(painter, &opt, option->state & QStyle::State_Enabled ? QPalette::Button : QPalette::Window); } qsynth-0.6.1/src/PaxHeaders.5367/qsynthSetupForm.ui0000644000000000000000000000013213577702221017054 xustar0030 mtime=1577026705.847992838 30 atime=1577026705.847992838 30 ctime=1577026705.847992838 qsynth-0.6.1/src/qsynthSetupForm.ui0000644000175000001440000010347413577702221017712 0ustar00rncbcusers00000000000000 rncbc aka Rui Nuno Capela qsynth - A fluidsynth Qt GUI Interface. Copyright (C) 2003-2019, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. qsynthSetupForm 0 0 540 360 Setup :/images/setup1.png true 4 4 Engine &Name: false DisplayNameLineEdit Engine display name 32 Qt::Horizontal 8 8 0 &MIDI &MIDI Driver: Qt::AlignVCenter false MidiDriverComboBox Whether to show MIDI router events on messages window &Dump MIDI router events 180 0 MIDI device name true Enable MIDI input Enable MIDI &Input Input MIDI driver false MIDI &Device: Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter false MidiDeviceComboBox Print out verbose messages about MIDI events &Verbose MIDI event messages MIDI &Channels: false MidiChannelsSpinBox Number of MIDI channels 1 256 1 MIDI &Bank Select mode: MidiBankSelectComboBox MIDI Bank Select mode true gm gs mma xs Qt::Vertical 8 8 4 QFrame::NoFrame QFrame::Plain MIDI Client Name ID (ALSA/CoreMidi): false MidiNameComboBox ALSA Sequencer client name identification true pid qsynth Qt::Horizontal 8 8 Qt::Horizontal 8 8 Qt::Horizontal 8 8 &Audio Qt::Vertical 8 8 4 Sample &Format: false SampleFormatComboBox Output audio driver false Sample format Period size in bytes (audio buffer size) true 64 128 256 512 1024 2048 4096 8192 Buffer Cou&nt: false AudioBufCountComboBox Sample rate in samples per second (Hz) true 1 22050 44100 48000 88200 96000 QFrame::NoFrame QFrame::Plain Sample &Rate: false SampleRateComboBox Period count (number of audio buffers) true 2 4 8 16 32 64 Buffer &Size: false AudioBufSizeComboBox &Audio Driver: false AudioDriverComboBox 4 Audio &Device: Qt::AlignVCenter false AudioDeviceComboBox Audio &Channels: false AudioChannelsSpinBox Number of audio groups 1 256 Number of enabled polyphonic voices 16 4096 256 Number of stereo audio channels 1 256 180 0 MIDI device name true &Polyphony: false PolyphonySpinBox Qt::Horizontal 8 8 Audio &Groups: false AudioGroupsSpinBox 4 QFrame::NoFrame QFrame::Plain JACK Client Name &ID: false JackNameComboBox JACK client name identification true 1 fluidsynth qsynth Qt::Horizontal 8 8 Attempt to connect the JACK outputs to the physical ports Auto Connect &JACK Outputs Create multiple JACK output ports for channels, groups and effects &Multiple JACK Outputs Qt::Vertical QSizePolicy::Expanding 8 8 &Soundfonts 8 8 Qt::CustomContextMenu Soundfont stack true 4 false true false true SFID Name Offset 4 Open soundfont file for loading &Open... :/images/open1.png Edit selected soundfont bank offset &Edit :/images/edit1.png Remove selected soundfont from stack &Remove :/images/remove1.png Qt::Vertical 8 8 Move up selected soundfont towards the top of stack &Up :/images/up1.png Move down selected soundfont towards the bottom of stack &Down :/images/down1.png S&ettings 0 0 320 0 true QAbstractItemView::NoSelection QAbstractItemView::SelectColumns 4 false true false true Name Type Realtime Current Default Min Max Options Qt::Horizontal QDialogButtonBox::Cancel|QDialogButtonBox::Ok DisplayNameLineEdit SetupTabWidget MidiInCheckBox MidiDriverComboBox MidiDeviceComboBox MidiChannelsSpinBox MidiBankSelectComboBox MidiNameComboBox VerboseCheckBox MidiDumpCheckBox AudioDriverComboBox AudioDeviceComboBox SampleFormatComboBox AudioChannelsSpinBox SampleRateComboBox AudioGroupsSpinBox AudioBufSizeComboBox PolyphonySpinBox AudioBufCountComboBox JackNameComboBox JackAutoConnectCheckBox JackMultiCheckBox SoundFontListView SoundFontOpenPushButton SoundFontEditPushButton SoundFontRemovePushButton SoundFontMoveUpPushButton SoundFontMoveDownPushButton SettingsListView DialogButtonBox qsynth-0.6.1/src/PaxHeaders.5367/qsynthChannels.h0000644000000000000000000000013213577702221016475 xustar0030 mtime=1577026705.842992838 30 atime=1577026705.842992838 30 ctime=1577026705.842992838 qsynth-0.6.1/src/qsynthChannels.h0000644000175000001440000000335213577702221017325 0ustar00rncbcusers00000000000000// qsynthChannels.h // /**************************************************************************** Copyright (C) 2003-2006, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. *****************************************************************************/ #ifndef __qsynthChannels_h #define __qsynthChannels_h #include // Column index helpers. #define QSYNTH_CHANNELS_IN 0 #define QSYNTH_CHANNELS_CHAN 1 #define QSYNTH_CHANNELS_BANK 2 #define QSYNTH_CHANNELS_PROG 3 #define QSYNTH_CHANNELS_NAME 4 #define QSYNTH_CHANNELS_SFID 5 #define QSYNTH_CHANNELS_SFNAME 6 // The channels list view item. class qsynthChannelsItem : public QTreeWidgetItem { public: // Constructor. qsynthChannelsItem(QTreeWidget *pParent); // Default destructor. ~qsynthChannelsItem(); // Special column sorting virtual comparator. // Sort/compare overriden method. bool operator< (const QTreeWidgetItem& other) const; }; typedef qsynthChannelsItem * qsynthChannelsItemPtr; #endif // __qsynthChannels_h // end of qsynthChannels.h qsynth-0.6.1/src/PaxHeaders.5367/qsynthSystemTray.h0000644000000000000000000000013213577702221017066 xustar0030 mtime=1577026705.847992838 30 atime=1577026705.847992838 30 ctime=1577026705.847992838 qsynth-0.6.1/src/qsynthSystemTray.h0000644000175000001440000000411613577702221017715 0ustar00rncbcusers00000000000000// qsynthSystemTray.h // /**************************************************************************** Copyright (C) 2003-2019, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. *****************************************************************************/ #ifndef __qsynthSystemTray_h #define __qsynthSystemTray_h #include #include // Forward decls. class qsynthMainForm; //---------------------------------------------------------------------------- // qsynthSystemTray -- Custom system tray widget. class qsynthSystemTray : public QSystemTrayIcon { Q_OBJECT public: // Constructor. qsynthSystemTray(QWidget *pParent = 0); // Default destructor. ~qsynthSystemTray(); // Background mask methods. void setBackground(const QColor& background); const QColor& background() const; // Set system tray icon overlay. void setPixmapOverlay(const QPixmap& pmOverlay); const QPixmap& pixmapOverlay() const; // System tray icon/pixmaps update method. void updatePixmap(); // Redirect to hide. void close(); signals: // Clicked signal. void clicked(); protected slots: // Handle systeam tray activity. void activated(QSystemTrayIcon::ActivationReason); private: // Instance pixmap and background color. QIcon m_icon; QPixmap m_pixmap; QPixmap m_pixmapOverlay; QColor m_background; }; #endif // __qsynthSystemTray_h // end of qsynthSystemTray.h qsynth-0.6.1/src/PaxHeaders.5367/cmake_config.h.in0000644000000000000000000000013213577702221016505 xustar0030 mtime=1577026705.841992838 30 atime=1577026705.841992838 30 ctime=1577026705.841992838 qsynth-0.6.1/src/cmake_config.h.in0000644000175000001440000001170313577702221017334 0ustar00rncbcusers00000000000000#ifndef CONFIG_H #define CONFIG_H /* Define to the full name of this package. */ #cmakedefine PACKAGE_NAME "@PACKAGE_NAME@" /* Define to the full name and version of this package. */ #cmakedefine PACKAGE_STRING "@PACKAGE_STRING@" /* Define to the version of this package. */ #cmakedefine PACKAGE_VERSION "@PACKAGE_VERSION@" /* Define to the address where bug reports for this package should be sent. */ #cmakedefine PACKAGE_BUGREPORT "@PACKAGE_BUGREPORT@" /* Define to the one symbol short name of this package. */ #cmakedefine PACKAGE_TARNAME "@PACKAGE_TARNAME@" /* Define to the version of this package. */ #cmakedefine CONFIG_VERSION "@CONFIG_VERSION@" /* Define to the build version of this package. */ #cmakedefine CONFIG_BUILD_VERSION "@CONFIG_BUILD_VERSION@" /* Default installation prefix. */ #cmakedefine CONFIG_PREFIX "@CONFIG_PREFIX@" /* Define to target installation dirs. */ #cmakedefine CONFIG_BINDIR "@CONFIG_BINDIR@" #cmakedefine CONFIG_LIBDIR "@CONFIG_LIBDIR@" #cmakedefine CONFIG_DATADIR "@CONFIG_DATADIR@" #cmakedefine CONFIG_MANDIR "@CONFIG_MANDIR@" /* Define if debugging is enabled. */ #cmakedefine CONFIG_DEBUG @CONFIG_DEBUG@ /* Define to 1 if you have the header file. */ #cmakedefine HAVE_SIGNAL_H @HAVE_SIGNAL_H@ /* Define if lroundf is available. */ #cmakedefine CONFIG_ROUND @CONFIG_ROUND@ /* Define if X11 Unique/Single instance is enabled. */ #cmakedefine CONFIG_XUNIQUE @CONFIG_XUNIQUE@ /* Define if gradient eye-candy is enabled. */ #cmakedefine CONFIG_GRADIENT @CONFIG_GRADIENT@ /* Define if debugger stack-trace is enabled. */ #cmakedefine CONFIG_STACKTRACE @CONFIG_STACKTRACE@ /* Define if FluidSynth server support is enabled. */ #cmakedefine CONFIG_FLUID_SERVER @CONFIG_FLUID_SERVER@ /* Define if FluidSynth system reset support is enabled. */ #cmakedefine CONFIG_FLUID_SYSTEM_RESET @CONFIG_FLUID_SYSTEM_RESET@ /* Define if FluidSynth bank offset support is enabled. */ #cmakedefine CONFIG_FLUID_BANK_OFFSET @CONFIG_FLUID_BANK_OFFSET@ /* Define if FluidSynth channel info is enabled. */ #cmakedefine CONFIG_FLUID_CHANNEL_INFO @CONFIG_FLUID_CHANNEL_INFO@ /* Define if FluidSynth MIDI router is enabled. */ #cmakedefine CONFIG_FLUID_MIDI_ROUTER @CONFIG_FLUID_MIDI_ROUTER@ /* Define if FluidSynth unset program support is enabled. */ #cmakedefine CONFIG_FLUID_UNSET_PROGRAM @CONFIG_UNSET_PROGRAM@ /* Define if FluidSynth version string support is enabled. */ #cmakedefine CONFIG_FLUID_VERSION_STR @CONFIG_FLUID_VERSION_STR@ /* Define if fluid_settings_dupstr function is available. */ #cmakedefine CONFIG_FLUID_SETTINGS_DUPSTR @CONFIG_FLUID_SETTINGS_DUPSTR@ /* Define if fluid_preset_get_banknum function is available. */ #cmakedefine CONFIG_FLUID_PRESET_GET_BANKNUM @CONFIG_FLUID_PRESET_GET_BANKNUM@ /* Define if fluid_preset_get_num function is available. */ #cmakedefine CONFIG_FLUID_PRESET_GET_NUM @CONFIG_FLUID_PRESET_GET_NUM@ /* Define if fluid_preset_get_name function is available. */ #cmakedefine CONFIG_FLUID_PRESET_GET_NAME @CONFIG_FLUID_PRESET_GET_NAME@ /* Define if fluid_preset_get_sfont function is available. */ #cmakedefine CONFIG_FLUID_PRESET_GET_SFONT @CONFIG_FLUID_PRESET_GET_SFONT@ /* Define if fluid_sfont_get_id function is available. */ #cmakedefine CONFIG_FLUID_SFONT_GET_ID @CONFIG_FLUID_SFONT_GET_ID@ /* Define if fluid_sfont_get_name function is available. */ #cmakedefine CONFIG_FLUID_SFONT_GET_NAME @CONFIG_FLUID_SFONT_GET_NAME@ /* Define if fluid_sfont_iteration_start function is available. */ #cmakedefine CONFIG_FLUID_SFONT_ITERATION_START @CONFIG_FLUID_SFONT_ITERATION_START@ /* Define if fluid_sfont_iteration_next function is available. */ #cmakedefine CONFIG_FLUID_SFONT_ITERATION_NEXT @CONFIG_FLUID_SFONT_ITERATION_NEXT@ /* Define if fluid_synth_get_chorus_speed function is available. */ #cmakedefine CONFIG_FLUID_SYNTH_GET_CHORUS_SPEED @CONFIG_FLUID_SYNTH_GET_CHORUS_SPEED@ /* Define if fluid_synth_get_chorus_depth function is available. */ #cmakedefine CONFIG_FLUID_SYNTH_GET_CHORUS_DEPTH @CONFIG_FLUID_SYNTH_GET_CHORUS_DEPTH@ /* Define if fluid_settings_getnum_default function is available. */ #cmakedefine CONFIG_FLUID_SETTINGS_GETNUM_DEFAULT @CONFIG_FLUID_SETTINGS_GETNUM_DEFAULT@ /* Define if fluid_settings_getint_default function is available. */ #cmakedefine CONFIG_FLUID_SETTINGS_GETINT_DEFAULT @CONFIG_FLUID_SETTINGS_GETINT_DEFAULT@ /* Define if fluid_settings_getstr_default function is available. */ #cmakedefine CONFIG_FLUID_SETTINGS_GETSTR_DEFAULT @CONFIG_FLUID_SETTINGS_GETSTR_DEFAULT@ /* Define if fluid_settings_foreach function is available. */ #cmakedefine CONFIG_FLUID_SETTINGS_FOREACH @CONFIG_FLUID_SETTINGS_FOREACH@ /* Define if fluid_settings_foreach_option function is available. */ #cmakedefine CONFIG_FLUID_SETTINGS_FOREACH_OPTION @CONFIG_FLUID_SETTINGS_FOREACH_OPTION@ /* Define if new_fluid_server function is available. */ #cmakedefine CONFIG_NEW_FLUID_SERVER @CONFIG_NEW_FLUID_SERVER@ /* Define if system tray is enabled. */ #cmakedefine CONFIG_SYSTEM_TRAY @CONFIG_SYSTEM_TRAY@ #endif /* CONFIG_H */ qsynth-0.6.1/src/PaxHeaders.5367/qsynthDialClassicStyle.cpp0000644000000000000000000000013213577702221020471 xustar0030 mtime=1577026705.843992838 30 atime=1577026705.843992838 30 ctime=1577026705.843992838 qsynth-0.6.1/src/qsynthDialClassicStyle.cpp0000644000175000001440000001365213577702221021325 0ustar00rncbcusers00000000000000/****************************************************************************** Based on an original design by Thorsten Wilms. Implemented as a widget for the Rosegarden MIDI and audio sequencer and notation editor by Chris Cannam. Extracted into a standalone Qt3 widget by Pedro Lopez-Cabanillas and adapted for use in QSynth. Ported to Qt4 by Chris Cannam. Adapted as a QStyle by Pedro Lopez-Cabanillas. This file, copyright 2019 rncbc aka Rui Nuno Capela, copyright 2003-2006 Chris Cannam, copyright 2005,2008 Pedro Lopez-Cabanillas, copyright 2006 Queen Mary, University of London. 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. 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. 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. *****************************************************************************/ #include "qsynthDialClassicStyle.h" #include #include #include #include #define DIAL_MIN (0.25 * M_PI) #define DIAL_MAX (1.75 * M_PI) #define DIAL_RANGE (DIAL_MAX - DIAL_MIN) static void drawTick(QPainter *p, float angle, int size, bool internal) { float hyp = float(size) / 2.0; float x0 = hyp - (hyp - 1) * sin(angle); float y0 = hyp + (hyp - 1) * cos(angle); if (internal) { float len = hyp / 4; float x1 = hyp - (hyp - len) * sin(angle); float y1 = hyp + (hyp - len) * cos(angle); p->drawLine(int(x0), int(y0), int(x1), int(y1)); } else { float len = hyp / 4; float x1 = hyp - (hyp + len) * sin(angle); float y1 = hyp + (hyp + len) * cos(angle); p->drawLine(int(x0), int(y0), int(x1), int(y1)); } } void qsynthDialClassicStyle::drawComplexControl(ComplexControl cc, const QStyleOptionComplex *opt, QPainter *p, const QWidget *widget) const { if (cc != QStyle::CC_Dial) { QCommonStyle::drawComplexControl(cc, opt, p, widget); return; } const QStyleOptionSlider *dial = qstyleoption_cast(opt); if (dial == nullptr) return; float angle = DIAL_MIN + (DIAL_RANGE * (float(dial->sliderValue - dial->minimum) / (float(dial->maximum - dial->minimum)))); int degrees = int(angle * 180.0 / M_PI); int ns = dial->tickInterval; int numTicks = 1 + (dial->maximum + ns - dial->minimum) / ns; int size = dial->rect.width() < dial->rect.height() ? dial->rect.width() : dial->rect.height(); int scale = 1; int width = size * scale; int indent = (int)(width * 0.15 + 1); QPalette pal = opt->palette; QColor knobColor = pal.mid().color(); //pal.background().color(); QColor meterColor = (dial->state & State_Enabled) ? pal.highlight().color() : pal.mid().color(); QPen pen; QColor c; p->save(); p->setRenderHint(QPainter::Antialiasing, true); p->translate(1+(dial->rect.width()-size)/2, 1+(dial->rect.height()-size)/2); // Knob body and face... pen.setColor(knobColor); pen.setWidth(scale * 2); pen.setCapStyle(Qt::FlatCap); p->setPen(pen); QRadialGradient gradient(size/2, size/2, size-indent, size/2-indent, size/2-indent); gradient.setColorAt(0, knobColor.lighter()); gradient.setColorAt(1, knobColor.darker()); p->setBrush(gradient); p->drawEllipse(indent, indent, width-2*indent, width-2*indent); // The bright metering bit... c = meterColor; pen.setColor(c); pen.setWidth(indent); p->setPen(pen); int arcLen = -(degrees - 45) * 16; if (arcLen == 0) arcLen = -16; p->drawArc(indent/2, indent/2, width-indent, width-indent, (180 + 45) * 16, arcLen); p->setBrush(Qt::NoBrush); // Tick notches... if (dial->subControls & QStyle::SC_DialTickmarks) { // std::cerr << "Notches visible" << std::endl; pen.setColor(pal.dark().color()); pen.setWidth(scale); p->setPen(pen); for (int i = 0; i < numTicks; ++i) { int div = numTicks; if (div > 1) --div; drawTick(p, DIAL_MIN + (DIAL_MAX - DIAL_MIN) * i / div, width, true); } } // Shadowing... pen.setWidth(scale); p->setPen(pen); // Knob shadow... int shadowAngle = -720; c = knobColor.darker(); for (int arc = 120; arc < 2880; arc += 240) { pen.setColor(c); p->setPen(pen); p->drawArc(indent, indent, width-2*indent, width-2*indent, shadowAngle + arc, 240); p->drawArc(indent, indent, width-2*indent, width-2*indent, shadowAngle - arc, 240); c = c.lighter(110); } // Scale shadow... shadowAngle = 2160; c = pal.dark().color(); for (int arc = 120; arc < 2880; arc += 240) { pen.setColor(c); p->setPen(pen); p->drawArc(scale/2, scale/2, width-scale, width-scale, shadowAngle + arc, 240); p->drawArc(scale/2, scale/2, width-scale, width-scale, shadowAngle - arc, 240); c = c.lighter(108); } // Undraw the bottom part... pen.setColor(pal.window().color()); pen.setWidth(scale * 4); p->setPen(pen); p->drawArc(scale/2, scale/2, width-scale, width-scale, -45 * 16, -90 * 16); // Pointer notch... float hyp = float(width) / 2.0; float len = hyp - indent; --len; float x0 = hyp; float y0 = hyp; float x = hyp - len * sin(angle); float y = hyp + len * cos(angle); c = pal.dark().color(); pen.setColor((dial->state & State_Enabled) ? c.darker(130) : c); pen.setWidth(scale * 2); p->setPen(pen); p->drawLine(int(x0), int(y0), int(x), int(y)); // done p->restore(); } qsynth-0.6.1/src/PaxHeaders.5367/qsynthDialVokiStyle.h0000644000000000000000000000013213577702221017465 xustar0030 mtime=1577026705.844992838 30 atime=1577026705.844992838 30 ctime=1577026705.844992838 qsynth-0.6.1/src/qsynthDialVokiStyle.h0000644000175000001440000000303413577702221020312 0ustar00rncbcusers00000000000000/****************************************************************************** This style is based on a design by Thorsten Wilms, implemented as a widget by Chris Cannam in Rosegarden, adapted for QSynth by Pedro Lopez-Cabanillas, improved for Qt4 by David Garcia Garzon, adapted as a QStyle by Pedro Lopez-Cabanillas, updated for Qt5 by rncbc aka Rui Nuno Capela. 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. 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. 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. *****************************************************************************/ #ifndef VOKISTYLE_H_ #define VOKISTYLE_H_ #include class qsynthDialVokiStyle : public QCommonStyle { public: qsynthDialVokiStyle() {} virtual ~qsynthDialVokiStyle() {} virtual void drawComplexControl(ComplexControl cc, const QStyleOptionComplex *opt, QPainter *p, const QWidget *widget = 0) const; }; #endif /*VOKISTYLE_H_*/ qsynth-0.6.1/src/PaxHeaders.5367/qsynthMessagesForm.h0000644000000000000000000000013213577702221017335 xustar0030 mtime=1577026705.845992838 30 atime=1577026705.845992838 30 ctime=1577026705.845992838 qsynth-0.6.1/src/qsynthMessagesForm.h0000644000175000001440000000432013577702221020161 0ustar00rncbcusers00000000000000// qsynthMessagesForm.h // /**************************************************************************** Copyright (C) 2003-2019, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. *****************************************************************************/ #ifndef __qsynthMessagesForm_h #define __qsynthMessagesForm_h #include "ui_qsynthMessagesForm.h" // Forward declarations. class QFile; //---------------------------------------------------------------------------- // qsynthMessagesForm -- UI wrapper form. class qsynthMessagesForm : public QWidget { Q_OBJECT public: // Constructor. qsynthMessagesForm(QWidget *pParent = 0, Qt::WindowFlags wflags = 0); // Destructor. ~qsynthMessagesForm(); QFont messagesFont() const; void setMessagesFont(const QFont& font); int messagesLimit() const; void setMessagesLimit(int iLimit); bool isLogging() const; void setLogging(bool bEnabled, const QString& sFilename = QString()); void appendMessages(const QString& s); void appendMessagesColor(const QString& s, const QString& c); void appendMessagesText(const QString& s); protected: void appendMessagesLine(const QString& s); void appendMessagesLog(const QString& s); void showEvent(QShowEvent *); void hideEvent(QHideEvent *); private: // The Qt-designer UI struct... Ui::qsynthMessagesForm m_ui; // Instance variables. int m_iMessagesLines; int m_iMessagesLimit; int m_iMessagesHigh; // Logging stuff. QFile *m_pMessagesLog; }; #endif // __qsynthMessagesForm_h // end of qsynthMessagesForm.h qsynth-0.6.1/src/PaxHeaders.5367/qsynthDialVokiStyle.cpp0000644000000000000000000000013213577702221020020 xustar0030 mtime=1577026705.844992838 30 atime=1577026705.844992838 30 ctime=1577026705.844992838 qsynth-0.6.1/src/qsynthDialVokiStyle.cpp0000644000175000001440000001516613577702221020656 0ustar00rncbcusers00000000000000/****************************************************************************** This style is based on a design by Thorsten Wilms, implemented as a widget by Chris Cannam in Rosegarden, adapted for QSynth by Pedro Lopez-Cabanillas, improved for Qt4 by David Garcia Garzon, adapted as a QStyle by Pedro Lopez-Cabanillas, updated for Qt5 by rncbc aka Rui Nuno Capela. 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. 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. 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. *****************************************************************************/ #include "qsynthDialVokiStyle.h" #include #include #include #include #define DIAL_MIN (0.25 * M_PI) #define DIAL_MAX (1.75 * M_PI) #define DIAL_RANGE (DIAL_MAX - DIAL_MIN) void qsynthDialVokiStyle::drawComplexControl(ComplexControl cc, const QStyleOptionComplex *opt, QPainter *p, const QWidget *widget) const { if (cc != QStyle::CC_Dial) { QCommonStyle::drawComplexControl(cc, opt, p, widget); return; } const QStyleOptionSlider *dial = qstyleoption_cast(opt); if (dial == nullptr) return; double angle = DIAL_MIN // offset + (DIAL_RANGE * (double(dial->sliderValue - dial->minimum) / (double(dial->maximum - dial->minimum)))); int degrees = int(angle * 180.0 / M_PI); int side = dial->rect.width() < dial->rect.height() ? dial->rect.width() : dial->rect.height(); int xcenter = dial->rect.width() / 2; int ycenter = dial->rect.height() / 2; int notchWidth = 1 + side / 400; int pointerWidth = 2 + side / 30; int scaleShadowWidth = 1 + side / 100; int knobBorderWidth = 0; int ns = dial->tickInterval; int numTicks = 1 + (dial->maximum + ns - dial->minimum) / ns; int indent = int(0.15 * side) + 2; int knobWidth = side - 2 * indent; int shineFocus = knobWidth / 4; int shineCenter = knobWidth / 5; int shineExtension = shineCenter * 4; int shadowShift = shineCenter * 2; int meterWidth = side - 2 * scaleShadowWidth; QPalette pal = opt->palette; QColor knobColor = pal.mid().color(); QColor borderColor = knobColor.lighter(); QColor meterColor = (dial->state & State_Enabled) ? pal.highlight().color() : pal.mid().color(); QColor background = pal.window().color(); p->save(); p->setRenderHint(QPainter::Antialiasing, true); // The bright metering bit... QConicalGradient meterShadow(xcenter, ycenter, -90); meterShadow.setColorAt(0, meterColor.darker()); meterShadow.setColorAt(0.5, meterColor); meterShadow.setColorAt(1.0, meterColor.lighter().lighter()); p->setBrush(meterShadow); p->setPen(Qt::transparent); p->drawPie(xcenter - meterWidth / 2, ycenter - meterWidth / 2, meterWidth, meterWidth, (180 + 45) * 16, -(degrees - 45) * 16); // Knob projected shadow QRadialGradient projectionGradient( xcenter + shineCenter, ycenter + shineCenter, shineExtension, xcenter + shadowShift, ycenter + shadowShift); projectionGradient.setColorAt(0, QColor( 0, 0, 0, 100)); projectionGradient.setColorAt(1, QColor(200, 0, 0, 10)); QBrush shadowBrush(projectionGradient); p->setBrush(shadowBrush); p->drawEllipse(xcenter - shadowShift, ycenter - shadowShift, knobWidth, knobWidth); // Knob body and face... QPen pen; pen.setColor(knobColor); pen.setWidth(knobBorderWidth); p->setPen(pen); QRadialGradient gradient( xcenter - shineCenter, ycenter - shineCenter, shineExtension, xcenter - shineFocus, ycenter - shineFocus); gradient.setColorAt(0.2, knobColor.lighter().lighter()); gradient.setColorAt(0.5, knobColor); gradient.setColorAt(1.0, knobColor.darker(150)); QBrush knobBrush(gradient); p->setBrush(knobBrush); p->drawEllipse(xcenter - knobWidth / 2, ycenter - knobWidth / 2, knobWidth, knobWidth); // Tick notches... p->setBrush(Qt::NoBrush); if (dial->subControls & QStyle::SC_DialTickmarks) { pen.setColor(pal.dark().color()); pen.setWidth(notchWidth); p->setPen(pen); double hyp = double(side - scaleShadowWidth) / 2.0; double len = hyp / 4; for (int i = 0; i < numTicks; ++i) { int div = numTicks; if (div > 1) --div; bool internal = (i != 0 && i != numTicks - 1); double angle = DIAL_MIN + (DIAL_MAX - DIAL_MIN) * i / div; double dir = (internal ? -1 : len); double sinAngle = sin(angle); double cosAngle = cos(angle); double x0 = xcenter - (hyp - len) * sinAngle; double y0 = ycenter + (hyp - len) * cosAngle; double x1 = xcenter - (hyp + dir) * sinAngle; double y1 = ycenter + (hyp + dir) * cosAngle; p->drawLine(QLineF(x0, y0, x1, y1)); } } // Shadowing... // Knob shadow... if (knobBorderWidth > 0) { QLinearGradient inShadow(xcenter - side / 4, ycenter - side / 4, xcenter + side / 4, ycenter + side / 4); inShadow.setColorAt(0.0, borderColor.lighter()); inShadow.setColorAt(1.0, borderColor.darker()); p->setPen(QPen(QBrush(inShadow), knobBorderWidth * 7 / 8)); p->drawEllipse(xcenter - side / 2 + indent, ycenter - side / 2 + indent, side - 2 * indent, side - 2 * indent); } // Scale shadow... QLinearGradient outShadow(xcenter - side / 3, ycenter - side / 3, xcenter + side / 3, ycenter + side / 3); outShadow.setColorAt(0.0, background.darker().darker()); outShadow.setColorAt(1.0, background.lighter().lighter()); p->setPen(QPen(QBrush(outShadow), scaleShadowWidth)); p->drawArc(xcenter - side / 2 + scaleShadowWidth / 2, ycenter - side / 2 + scaleShadowWidth / 2, side - scaleShadowWidth, side - scaleShadowWidth, -45 * 16, 270 * 16); // Pointer notch... double hyp = double(side) / 2.0; double len = hyp - indent - 1; double x = xcenter - len * sin(angle); double y = ycenter + len * cos(angle); QColor pointerColor = pal.dark().color(); pen.setColor((dial->state & State_Enabled) ? pointerColor.darker(140) : pointerColor); pen.setWidth(pointerWidth + 2); p->setPen(pen); p->drawLine(QLineF(xcenter, ycenter, x, y)); pen.setColor((dial->state & State_Enabled) ? pointerColor.lighter() : pointerColor.lighter(140)); pen.setWidth(pointerWidth); p->setPen(pen); p->drawLine(QLineF(xcenter - 1, ycenter - 1, x - 1, y - 1)); // done p->restore(); } qsynth-0.6.1/src/PaxHeaders.5367/qsynthDialPeppinoStyle.cpp0000644000000000000000000000013213577702221020522 xustar0030 mtime=1577026705.843992838 30 atime=1577026705.843992838 30 ctime=1577026705.843992838 qsynth-0.6.1/src/qsynthDialPeppinoStyle.cpp0000644000175000001440000001267113577702221021356 0ustar00rncbcusers00000000000000/*************************************************************************** This style is based on a widget designed by Giuseppe Cigala, adapted as a Qt style for QSynth by Pedro Lopez-Cabanillas This file, Copyright (C) 2019 rncbc aka Rui Nuno Capela , Copyright (C) 2008 Giuseppe Cigala , Copyright (C) 2008 Pedro Lopez-Cabanillas . 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. 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. 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. *****************************************************************************/ #include "qsynthDialPeppinoStyle.h" #include #include #include #include inline void paintBorder(QPainter *p) { p->setPen(QPen(Qt::black, 2, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin)); QLinearGradient linGrad1(0, 100, 100, 80); linGrad1.setColorAt(0, Qt::gray); linGrad1.setColorAt(1, Qt::white); linGrad1.setSpread(QGradient::ReflectSpread); p->setBrush(linGrad1); QRectF border(5, 5, 190, 190); p->drawRect(border); // draw screws p->setPen(QPen(Qt::black, 1, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin)); p->drawEllipse(10, 10, 10, 10); p->drawLine(13, 13, 17, 17); p->drawLine(17, 13, 13, 17); p->drawEllipse(180, 10, 10, 10); p->drawLine(183, 13, 187, 17); p->drawLine(187, 13, 183, 17); p->drawEllipse(10, 180, 10, 10); p->drawLine(13, 183, 17, 187); p->drawLine(17, 183, 13, 187); p->drawEllipse(180, 180, 10, 10); p->drawLine(183, 183, 187, 187); p->drawLine(187, 183, 183, 187); QLinearGradient linGrad(20, 150, 210, 160); linGrad.setColorAt(0, Qt::white); linGrad.setColorAt(1, Qt::darkGray); linGrad.setSpread(QGradient::PadSpread); p->setBrush(linGrad); p->setPen(QPen(Qt::black, 1, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin)); QRectF rectangle(15, 15, 170, 170); p->drawPie(rectangle, 225*16, -270*16); } inline int valueAngle(const QStyleOptionSlider *dial) { return -((dial->sliderValue - dial->minimum) * 4320) / (dial->maximum - dial->minimum); } inline void paintArc(QPainter *p, const QStyleOptionSlider *dial) { QPalette pal = dial->palette; QColor arcColor = (dial->state & QStyle::State_Enabled) ? pal.highlight().color() : pal.mid().color(); QLinearGradient linGrad(80, 100, 140, 140); linGrad.setColorAt(0, arcColor.darker(140)); linGrad.setColorAt(1, arcColor.lighter().lighter()); linGrad.setSpread(QGradient::PadSpread); p->setBrush(linGrad); p->setPen(QPen(Qt::black, 1, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin)); QRectF rectangle(15, 15, 170, 170); int spanAngle = valueAngle(dial); int startAngle = 225 * 16; p->drawPie(rectangle, startAngle, spanAngle); } inline void paintDial(QPainter *p) { p->setPen(QPen(Qt::black, 2, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin)); QLinearGradient linGrad1(20, 140, 90, 90); linGrad1.setColorAt(0, Qt::gray); linGrad1.setColorAt(1, Qt::white); linGrad1.setSpread(QGradient::ReflectSpread); p->setBrush(linGrad1); QRectF border1(35, 35, 130, 130); p->drawEllipse(border1); p->setPen(QPen(Qt::black, 1, Qt::DotLine, Qt::RoundCap, Qt::RoundJoin)); QRectF border2(40, 40, 120, 120); p->drawEllipse(border2); } inline void paintDot(QPainter *p, const QStyleOptionSlider *dial) { int startPoint = (225 * 16) + valueAngle(dial); QPalette pal = dial->palette; QPen dotPen((dial->state & QStyle::State_Enabled) ? Qt::red : pal.mid().color(), 7, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin); QRect rectangle1(45, 45, 110, 110); p->setPen(dotPen); p->drawArc(rectangle1, startPoint, 5); if (dial->subControls & QStyle::SC_DialTickmarks) { QRect rectangle2(10, 10, 180, 180); int ns = dial->tickInterval; int dot = 1 + (dial->maximum + ns - dial->minimum) / ns; //int dot = 25; double delta = 4320.0 / dot; p->setPen(QPen(Qt::black, 5, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin)); for (int i = 0; i <= dot; i++) { p->drawArc(rectangle2, int(225*16 - delta*i), 5); } } } void qsynthDialPeppinoStyle::drawComplexControl(ComplexControl cc, const QStyleOptionComplex *opt, QPainter *p, const QWidget *widget) const { if (cc != QStyle::CC_Dial) { QCommonStyle::drawComplexControl(cc, opt, p, widget); return; } const QStyleOptionSlider *dial = qstyleoption_cast(opt); if (dial == nullptr) return; p->save(); int size = dial->rect.width() < dial->rect.height() ? dial->rect.width() : dial->rect.height(); p->setViewport((dial->rect.width()-size)/2, (dial->rect.height()-size)/2, size, size); p->setWindow(0, 0, 200, 200); p->setRenderHint(QPainter::Antialiasing); paintBorder(p); paintArc(p, dial); paintDial(p); paintDot(p, dial); // done p->restore(); } qsynth-0.6.1/src/PaxHeaders.5367/qsynthPaletteForm.ui0000644000000000000000000000013213577702221017352 xustar0030 mtime=1577026705.846992838 30 atime=1577026705.846992838 30 ctime=1577026705.846992838 qsynth-0.6.1/src/qsynthPaletteForm.ui0000644000175000001440000001717713577702221020214 0ustar00rncbcusers00000000000000 rncbc aka Rui Nuno Capela qsynth - A fluidsynth Qt GUI Interface. Copyright (C) 2003-2019, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. qsynthPaletteForm 0 0 534 640 0 0 Color Themes Name 0 0 320 0 Current color palette name true QComboBox::NoInsert Save current color palette name Save :/images/formSave.png Delete current color palette name Delete :/images/formRemove.png Palette 280 360 Current color palette true Generate: 0 0 Qt::StrongFocus Base color to generate palette Reset all current palette colors Reset :/images/itemReset.png Qt::Horizontal 8 20 Import a custom color theme (palette) from file Import... :/images/formOpen.png Export a custom color theme (palette) to file Export... :/images/formSave.png Qt::Horizontal 8 20 Show Details Qt::Horizontal QDialogButtonBox::Cancel|QDialogButtonBox::Ok qsynthPaletteForm::ColorButton nameCombo saveButton deleteButton paletteView generateButton resetButton importButton exportButton detailsCheck dialogButtons qsynth-0.6.1/src/PaxHeaders.5367/qsynthDialClassicStyle.h0000644000000000000000000000013213577702221020136 xustar0030 mtime=1577026705.843992838 30 atime=1577026705.843992838 30 ctime=1577026705.843992838 qsynth-0.6.1/src/qsynthDialClassicStyle.h0000644000175000001440000000343113577702221020764 0ustar00rncbcusers00000000000000/****************************************************************************** Based on an original design by Thorsten Wilms. Implemented as a widget for the Rosegarden MIDI and audio sequencer and notation editor by Chris Cannam. Extracted into a standalone Qt3 widget by Pedro Lopez-Cabanillas and adapted for use in QSynth. Ported to Qt4 by Chris Cannam. Adapted as a QStyle by Pedro Lopez-Cabanillas. This file, copyright 2019 rncbc aka Rui Nuno Capela, copyright 2003-2006 Chris Cannam, copyright 2005,2008 Pedro Lopez-Cabanillas, copyright 2006 Queen Mary, University of London. 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. 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. 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. *****************************************************************************/ #ifndef CLASSICTYLE_H_ #define CLASSICTYLE_H_ #include class qsynthDialClassicStyle : public QCommonStyle { public: qsynthDialClassicStyle() {}; virtual ~qsynthDialClassicStyle() {}; virtual void drawComplexControl(ComplexControl cc, const QStyleOptionComplex *opt, QPainter *p, const QWidget *widget = 0) const; }; #endif /*CLASSICTYLE_H_*/ qsynth-0.6.1/src/PaxHeaders.5367/qsynth.cpp0000644000000000000000000000013213577702221015354 xustar0030 mtime=1577026705.842992838 30 atime=1577026705.842992838 30 ctime=1577026705.842992838 qsynth-0.6.1/src/qsynth.cpp0000644000175000001440000003372613577702221016214 0ustar00rncbcusers00000000000000// qsynth.cpp // /**************************************************************************** Copyright (C) 2003-2019, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. *****************************************************************************/ #include "qsynth.h" #include "qsynthOptions.h" #include "qsynthMainForm.h" #include "qsynthPaletteForm.h" #include #include #include #include #include #include #if QT_VERSION < QT_VERSION_CHECK(4, 5, 0) namespace Qt { const WindowFlags WindowCloseButtonHint = WindowFlags(0x08000000); } #endif #ifndef CONFIG_PREFIX #define CONFIG_PREFIX "/usr/local" #endif #ifndef CONFIG_DATADIR #define CONFIG_DATADIR CONFIG_PREFIX "/share" #endif #ifndef CONFIG_LIBDIR #if defined(__x86_64__) #define CONFIG_LIBDIR CONFIG_PREFIX "/lib64" #else #define CONFIG_LIBDIR CONFIG_PREFIX "/lib" #endif #endif #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) #define CONFIG_PLUGINSDIR CONFIG_LIBDIR "/qt4/plugins" #else #define CONFIG_PLUGINSDIR CONFIG_LIBDIR "/qt5/plugins" #endif //------------------------------------------------------------------------- // Singleton application instance stuff (Qt/X11 only atm.) // #ifdef CONFIG_XUNIQUE #define QSYNTH_XUNIQUE "qsynthApplication" #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) #ifdef CONFIG_X11 #include /* for gethostname() */ #include #include #endif // CONFIG_X11 #else #include #include #include #include #endif #endif // CONFIG_XUNIQUE // Constructor. qsynthApplication::qsynthApplication ( int& argc, char **argv ) : QApplication(argc, argv), m_pQtTranslator(nullptr), m_pMyTranslator(nullptr), m_pWidget(nullptr) { #if QT_VERSION >= QT_VERSION_CHECK(5, 1, 0) QApplication::setApplicationName(QSYNTH_TITLE); QApplication::setApplicationDisplayName(QSYNTH_TITLE); // QSYNTH_TITLE " - " + QObject::tr(QSYNTH_SUBTITLE)); #endif // Load translation support. QLocale loc; if (loc.language() != QLocale::C) { // Try own Qt translation... m_pQtTranslator = new QTranslator(this); QString sLocName = "qt_" + loc.name(); QString sLocPath = QLibraryInfo::location(QLibraryInfo::TranslationsPath); if (m_pQtTranslator->load(sLocName, sLocPath)) { QApplication::installTranslator(m_pQtTranslator); } else { delete m_pQtTranslator; m_pQtTranslator = nullptr; #ifdef CONFIG_DEBUG qWarning("Warning: no translation found for '%s' locale: %s/%s.qm", loc.name().toLocal8Bit().data(), sLocPath.toLocal8Bit().data(), sLocName.toLocal8Bit().data()); #endif } // Try own application translation... m_pMyTranslator = new QTranslator(this); sLocName = "qsynth_" + loc.name(); if (m_pMyTranslator->load(sLocName, sLocPath)) { QApplication::installTranslator(m_pMyTranslator); } else { sLocPath = CONFIG_DATADIR "/qsynth/translations"; if (m_pMyTranslator->load(sLocName, sLocPath)) { QApplication::installTranslator(m_pMyTranslator); } else { delete m_pMyTranslator; m_pMyTranslator = nullptr; #ifdef CONFIG_DEBUG qWarning("Warning: no translation found for '%s' locale: %s/%s.qm", loc.name().toLocal8Bit().data(), sLocPath.toLocal8Bit().data(), sLocName.toLocal8Bit().data()); #endif } } } #ifdef CONFIG_XUNIQUE #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) #ifdef CONFIG_X11 m_pDisplay = nullptr; m_aUnique = 0; m_wOwner = 0; #endif // CONFIG_X11 #else m_pMemory = nullptr; m_pServer = nullptr; #endif #endif // CONFIG_XUNIQUE } // Destructor. qsynthApplication::~qsynthApplication (void) { #ifdef CONFIG_XUNIQUE #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) if (m_pServer) { m_pServer->close(); delete m_pServer; m_pServer = nullptr; } if (m_pMemory) { delete m_pMemory; m_pMemory = nullptr; } #endif #endif // CONFIG_XUNIQUE if (m_pMyTranslator) delete m_pMyTranslator; if (m_pQtTranslator) delete m_pQtTranslator; } // Main application widget accessors. void qsynthApplication::setMainWidget ( QWidget *pWidget ) { m_pWidget = pWidget; #ifdef CONFIG_XUNIQUE #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) #ifdef CONFIG_X11 m_wOwner = m_pWidget->winId(); if (m_pDisplay && m_wOwner) { XGrabServer(m_pDisplay); XSetSelectionOwner(m_pDisplay, m_aUnique, m_wOwner, CurrentTime); XUngrabServer(m_pDisplay); } #endif // CONFIG_X11 #endif #endif // CONFIG_XUNIQUE } // Check if another instance is running, // and raise its proper main widget... bool qsynthApplication::setup (void) { #ifdef CONFIG_XUNIQUE #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) #ifdef CONFIG_X11 m_pDisplay = QX11Info::display(); if (m_pDisplay) { QString sUnique = QSYNTH_XUNIQUE; char szHostName[255]; if (::gethostname(szHostName, sizeof(szHostName)) == 0) { sUnique += '@'; sUnique += szHostName; } m_aUnique = XInternAtom(m_pDisplay, sUnique.toUtf8().constData(), false); XGrabServer(m_pDisplay); m_wOwner = XGetSelectionOwner(m_pDisplay, m_aUnique); XUngrabServer(m_pDisplay); if (m_wOwner != None) { // First, notify any freedesktop.org WM // that we're about to show the main widget... Screen *pScreen = XDefaultScreenOfDisplay(m_pDisplay); int iScreen = XScreenNumberOfScreen(pScreen); XEvent ev; memset(&ev, 0, sizeof(ev)); ev.xclient.type = ClientMessage; ev.xclient.display = m_pDisplay; ev.xclient.window = m_wOwner; ev.xclient.message_type = XInternAtom(m_pDisplay, "_NET_ACTIVE_WINDOW", false); ev.xclient.format = 32; ev.xclient.data.l[0] = 0; // Source indication. ev.xclient.data.l[1] = 0; // Timestamp. ev.xclient.data.l[2] = 0; // Requestor's currently active window (none) ev.xclient.data.l[3] = 0; ev.xclient.data.l[4] = 0; XSelectInput(m_pDisplay, m_wOwner, StructureNotifyMask); XSendEvent(m_pDisplay, RootWindow(m_pDisplay, iScreen), false, (SubstructureNotifyMask | SubstructureRedirectMask), &ev); XSync(m_pDisplay, false); XRaiseWindow(m_pDisplay, m_wOwner); // And then, let it get caught on destination // by QApplication::native/x11EventFilter... const QByteArray value = QSYNTH_XUNIQUE; XChangeProperty( m_pDisplay, m_wOwner, m_aUnique, m_aUnique, 8, PropModeReplace, (unsigned char *) value.data(), value.length()); // Done. return true; } } #endif // CONFIG_X11 return false; #else m_sUnique = QCoreApplication::applicationName(); m_sUnique += '@'; m_sUnique += QHostInfo::localHostName(); #ifdef Q_OS_UNIX m_pMemory = new QSharedMemory(m_sUnique); m_pMemory->attach(); delete m_pMemory; #endif m_pMemory = new QSharedMemory(m_sUnique); bool bServer = false; const qint64 pid = QCoreApplication::applicationPid(); struct Data { qint64 pid; }; if (m_pMemory->create(sizeof(Data))) { m_pMemory->lock(); Data *pData = static_cast (m_pMemory->data()); if (pData) { pData->pid = pid; bServer = true; } m_pMemory->unlock(); } else if (m_pMemory->attach()) { m_pMemory->lock(); // maybe not necessary? Data *pData = static_cast (m_pMemory->data()); if (pData) bServer = (pData->pid == pid); m_pMemory->unlock(); } if (bServer) { QLocalServer::removeServer(m_sUnique); m_pServer = new QLocalServer(); m_pServer->setSocketOptions(QLocalServer::UserAccessOption); m_pServer->listen(m_sUnique); QObject::connect(m_pServer, SIGNAL(newConnection()), SLOT(newConnectionSlot())); } else { QLocalSocket socket; socket.connectToServer(m_sUnique); if (socket.state() == QLocalSocket::ConnectingState) socket.waitForConnected(200); if (socket.state() == QLocalSocket::ConnectedState) { socket.write(QCoreApplication::arguments().join(' ').toUtf8()); socket.flush(); socket.waitForBytesWritten(200); } } return !bServer; #endif #else return false; #endif // !CONFIG_XUNIQUE } #ifdef CONFIG_XUNIQUE #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) #ifdef CONFIG_X11 void qsynthApplication::x11PropertyNotify ( Window w ) { if (m_pDisplay && m_pWidget && m_wOwner == w) { // Always check whether our property-flag is still around... Atom aType; int iFormat = 0; unsigned long iItems = 0; unsigned long iAfter = 0; unsigned char *pData = 0; if (XGetWindowProperty( m_pDisplay, m_wOwner, m_aUnique, 0, 1024, false, m_aUnique, &aType, &iFormat, &iItems, &iAfter, &pData) == Success && aType == m_aUnique && iItems > 0 && iAfter == 0) { // Avoid repeating it-self... XDeleteProperty(m_pDisplay, m_wOwner, m_aUnique); // Just make it always shows up fine... m_pWidget->show(); m_pWidget->raise(); m_pWidget->activateWindow(); // FIXME: Do our best speciality, although it should be // done iif configuration says so, we'll do it anyway! qsynthMainForm *pMainForm = qsynthMainForm::getInstance(); if (pMainForm) pMainForm->startAllEngines(); } // Free any left-overs... if (iItems > 0 && pData) XFree(pData); } } bool qsynthApplication::x11EventFilter ( XEvent *pEv ) { if (pEv->type == PropertyNotify && pEv->xproperty.state == PropertyNewValue) x11PropertyNotify(pEv->xproperty.window); return QApplication::x11EventFilter(pEv); } #endif // CONFIG_X11 #else // Local server conection slot. void qsynthApplication::newConnectionSlot (void) { QLocalSocket *pSocket = m_pServer->nextPendingConnection(); QObject::connect(pSocket, SIGNAL(readyRead()), SLOT(readyReadSlot())); } // Local server data-ready slot. void qsynthApplication::readyReadSlot (void) { QLocalSocket *pSocket = qobject_cast (sender()); if (pSocket) { const qint64 nread = pSocket->bytesAvailable(); if (nread > 0) { const QByteArray data = pSocket->read(nread); // Just make it always shows up fine... m_pWidget->hide(); m_pWidget->show(); m_pWidget->raise(); m_pWidget->activateWindow(); // FIXME: Do our best speciality, although it should be // done iif configuration says so, we'll do it anyway! qsynthMainForm *pMainForm = qsynthMainForm::getInstance(); if (pMainForm) pMainForm->startAllEngines(); } } } #endif #endif // CONFIG_XUNIQUE //------------------------------------------------------------------------- // stacktrace - Signal crash handler. // #ifdef CONFIG_STACKTRACE #if defined(__GNUC__) && defined(Q_OS_LINUX) #include #include #include #include #include void stacktrace ( int signo ) { pid_t pid; int rc; int status = 0; char cmd[80]; // Reinstall default handler; prevent race conditions... ::signal(signo, SIG_DFL); static const char *shell = "/bin/sh"; static const char *format = "gdb -q --batch --pid=%d" " --eval-command='thread apply all bt'"; snprintf(cmd, sizeof(cmd), format, (int) getpid()); pid = fork(); // Fork failure! if (pid < 0) return; // Fork child... if (pid == 0) { execl(shell, shell, "-c", cmd, nullptr); _exit(1); return; } // Parent here: wait for child to terminate... do { rc = waitpid(pid, &status, 0); } while ((rc < 0) && (errno == EINTR)); // Dispatch any logging, if any... QApplication::processEvents(QEventLoop::AllEvents, 3000); // Make sure everyone terminates... kill(pid, SIGTERM); _exit(1); } #endif #endif //------------------------------------------------------------------------- // main - The main program trunk. // int main ( int argc, char **argv ) { Q_INIT_RESOURCE(qsynth); #ifdef CONFIG_STACKTRACE #if defined(__GNUC__) && defined(Q_OS_LINUX) ::signal(SIGILL, stacktrace); ::signal(SIGFPE, stacktrace); ::signal(SIGSEGV, stacktrace); ::signal(SIGABRT, stacktrace); ::signal(SIGBUS, stacktrace); #endif #endif #if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0) QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); #endif qsynthApplication app(argc, argv); // Construct default settings; override with command line arguments. qsynthOptions options; if (!options.parse_args(app.arguments())) { app.quit(); return 1; } // Have another instance running? if (app.setup()) { app.quit(); return 2; } // Special custom styles... if (QDir(CONFIG_PLUGINSDIR).exists()) app.addLibraryPath(CONFIG_PLUGINSDIR); if (!options.sCustomStyleTheme.isEmpty()) app.setStyle(QStyleFactory::create(options.sCustomStyleTheme)); // Custom color theme (eg. "KXStudio")... QPalette pal(app.palette()); if (qsynthPaletteForm::namedPalette( &options.settings(), options.sCustomColorTheme, pal)) app.setPalette(pal); // Set default base font... if (options.iBaseFontSize > 0) app.setFont(QFont(app.font().family(), options.iBaseFontSize)); // What style do we create these forms? Qt::WindowFlags wflags = Qt::Window | Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowMinMaxButtonsHint | Qt::WindowCloseButtonHint; if (options.bKeepOnTop) wflags |= Qt::Tool; // Construct the main form, and show it to the world. qsynthMainForm w(nullptr, wflags); w.setup(&options); // If we have a systray icon, we'll skip this. if (!options.bSystemTray) { w.show(); // w.adjustSize(); } // Settle this one as application main widget... app.setMainWidget(&w); // Settle session manager shutdown (eg. logoff)... QObject::connect( &app, SIGNAL(commitDataRequest(QSessionManager&)), &w, SLOT(commitData(QSessionManager&)), Qt::DirectConnection); // Register the quit signal/slot. app.setQuitOnLastWindowClosed(false); return app.exec(); } // end of qsynth.cpp qsynth-0.6.1/src/PaxHeaders.5367/qsynthChannelsForm.ui0000644000000000000000000000013213577702221017507 xustar0030 mtime=1577026705.843992838 30 atime=1577026705.843992838 30 ctime=1577026705.843992838 qsynth-0.6.1/src/qsynthChannelsForm.ui0000644000175000001440000001366313577702221020345 0ustar00rncbcusers00000000000000 rncbc aka Rui Nuno Capela qsynth - A fluidsynth Qt GUI Interface. Copyright (C) 2003-2019, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. qsynthChannelsForm 0 0 520 320 Channels :/images/channels1.png 4 4 4 4 Preset &Name: false PresetComboBox 7 0 0 0 Settings preset name true (default) Save settings as current preset name &Save :/images/save1.png false Delete current settings preset &Delete :/images/remove1.png false 7 7 0 0 320 0 Qt::CustomContextMenu Channels view true 4 false true false true true In Chan Bank Prog Name SFID Soundfont PresetComboBox PresetSavePushButton PresetDeletePushButton ChannelsListView qsynth-0.6.1/src/PaxHeaders.5367/qsynthPresetForm.cpp0000644000000000000000000000013213577702221017363 xustar0030 mtime=1577026705.846992838 30 atime=1577026705.846992838 30 ctime=1577026705.846992838 qsynth-0.6.1/src/qsynthPresetForm.cpp0000644000175000001440000003233613577702221020217 0ustar00rncbcusers00000000000000// qsynthPresetForm.cpp // /**************************************************************************** Copyright (C) 2003-2019, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. *****************************************************************************/ #include "qsynthAbout.h" #include "qsynthPresetForm.h" #include "qsynthOptions.h" #include #include #include // Custom list-view item (as for numerical sort purposes...) class qsynthPresetItem : public QTreeWidgetItem { public: // Constructor. qsynthPresetItem(QTreeWidget *pListView, QTreeWidgetItem *pItemAfter) : QTreeWidgetItem(pListView, pItemAfter) {} // Sort/compare overriden method. bool operator< (const QTreeWidgetItem& other) const { int iColumn = QTreeWidgetItem::treeWidget()->sortColumn(); const QString& s1 = text(iColumn); const QString& s2 = other.text(iColumn); if (iColumn == 0 || iColumn == 2) { return (s1.toInt() < s2.toInt()); } else { return (s1 < s2); } } }; //---------------------------------------------------------------------------- // qsynthPresetForm -- UI wrapper form. // Constructor. qsynthPresetForm::qsynthPresetForm ( QWidget *pParent, Qt::WindowFlags wflags ) : QDialog(pParent, wflags) { // Setup UI struct... m_ui.setupUi(this); m_pSynth = nullptr; m_iChan = 0; m_iBank = 0; m_iProg = 0; // To avoid setup jitterness and preview side effects. m_iDirtySetup = 0; m_iDirtyCount = 0; // Some default sorting, initially. //m_ui.BankListView->setSorting(0); //m_ui.ProgListView->setSorting(0); // Soundfonts list view... QHeaderView *pHeader = m_ui.ProgListView->header(); pHeader->setDefaultAlignment(Qt::AlignLeft); // pHeader->setDefaultSectionSize(200); #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) // pHeader->setSectionResizeMode(QHeaderView::Custom); pHeader->setSectionsMovable(false); #else // pHeader->setResizeMode(QHeaderView::Custom); pHeader->setMovable(false); #endif pHeader->setStretchLastSection(true); m_ui.ProgListView->resizeColumnToContents(0); // Prog. pHeader->resizeSection(1, 200); // Name. m_ui.ProgListView->resizeColumnToContents(2); // SFID. m_ui.ProgListView->resizeColumnToContents(3); // Soundfont. // Initial sort order... m_ui.BankListView->sortItems(0, Qt::AscendingOrder); m_ui.ProgListView->sortItems(0, Qt::AscendingOrder); // UI connections... QObject::connect(m_ui.BankListView, SIGNAL(currentItemChanged(QTreeWidgetItem*,QTreeWidgetItem*)), SLOT(bankChanged())); QObject::connect(m_ui.ProgListView, SIGNAL(currentItemChanged(QTreeWidgetItem*,QTreeWidgetItem*)), SLOT(progChanged())); QObject::connect(m_ui.PreviewCheckBox, SIGNAL(toggled(bool)), SLOT(previewChanged())); // QObject::connect(m_ui.ProgListView, // SIGNAL(itemActivated(QTreeWidgetItem*,int)), // SLOT(accept())); QObject::connect(m_ui.ProgListView, SIGNAL(itemDoubleClicked(QTreeWidgetItem*,int)), SLOT(accept())); QObject::connect(m_ui.DialogButtonBox, SIGNAL(accepted()), SLOT(accept())); QObject::connect(m_ui.DialogButtonBox, SIGNAL(rejected()), SLOT(reject())); } // Destructor. qsynthPresetForm::~qsynthPresetForm (void) { } // Dialog setup loader. void qsynthPresetForm::setup ( qsynthOptions *pOptions, fluid_synth_t *pSynth, int iChan ) { // Set our internal stuff... m_pOptions = pOptions; m_pSynth = pSynth; m_iChan = iChan; // We'll goinfg to changes the whole thing... m_iDirtySetup++; // Set the proper caption... setWindowTitle(tr("Channel %1").arg(m_iChan + 1)); // Load bank list from actual synth stack... m_ui.BankListView->setUpdatesEnabled(false); m_ui.BankListView->setSortingEnabled(false); m_ui.BankListView->clear(); QTreeWidgetItem *pBankItem = nullptr; // For all soundfonts (in reversed stack order) fill the available banks... int cSoundFonts = ::fluid_synth_sfcount(m_pSynth); for (int i = 0; i < cSoundFonts; ++i) { fluid_sfont_t *pSoundFont = ::fluid_synth_get_sfont(m_pSynth, i); if (pSoundFont) { #ifdef CONFIG_FLUID_BANK_OFFSET #ifdef CONFIG_FLUID_SFONT_GET_ID const int iSFID = ::fluid_sfont_get_id(pSoundFont); #else const int iSFID = pSoundFont->id; #endif const int iBankOffset = ::fluid_synth_get_bank_offset(m_pSynth, iSFID); #endif #ifdef CONFIG_FLUID_SFONT_ITERATION_START ::fluid_sfont_iteration_start(pSoundFont); #else pSoundFont->iteration_start(pSoundFont); #endif fluid_preset_t *pPreset; #ifdef CONFIG_FLUID_SFONT_ITERATION_NEXT while ((pPreset = ::fluid_sfont_iteration_next(pSoundFont)) != nullptr) { #else fluid_preset_t preset; pPreset = &preset; while (pSoundFont->iteration_next(pSoundFont, pPreset)) { #endif #ifdef CONFIG_FLUID_PRESET_GET_BANKNUM int iBank = ::fluid_preset_get_banknum(pPreset); #else int iBank = pPreset->get_banknum(pPreset); #endif #ifdef CONFIG_FLUID_BANK_OFFSET iBank += iBankOffset; #endif if (!findBankItem(iBank)) { pBankItem = new qsynthPresetItem(m_ui.BankListView, pBankItem); if (pBankItem) pBankItem->setText(0, QString::number(iBank)); } } } } m_ui.BankListView->setSortingEnabled(true); m_ui.BankListView->setUpdatesEnabled(true); // Set the selected bank. m_iBank = 0; #ifdef CONFIG_FLUID_CHANNEL_INFO fluid_synth_channel_info_t info; ::memset(&info, 0, sizeof(info)); ::fluid_synth_get_channel_info(m_pSynth, iChan, &info); if (info.assigned) { m_iBank = info.bank; #ifdef CONFIG_FLUID_BANK_OFFSET m_iBank += ::fluid_synth_get_bank_offset(m_pSynth, info.sfont_id); #endif } #else fluid_preset_t *pPreset = ::fluid_synth_get_channel_preset(m_pSynth, m_iChan); if (pPreset) { #ifdef CONFIG_FLUID_PRESET_GET_BANKNUM m_iBank = ::fluid_preset_get_banknum(pPreset); #else m_iBank = pPreset->get_banknum(pPreset); #endif #ifdef CONFIG_FLUID_BANK_OFFSET int iSFID = 0; #ifdef CONFIG_FLUID_PRESET_GET_SFONT fluid_sfont_t *pSoundFont = ::fluid_preset_get_sfont(pPreset); #else fluid_sfont_t *pSoundFont = pPreset->sfont; #endif if (pSoundFont) { #ifdef CONFIG_FLUID_SFONT_GET_ID iSFID = ::fluid_sfont_get_id(pSoundFont); #else iSFID = pSoundFont->id; #endif } m_iBank += ::fluid_synth_get_bank_offset(m_pSynth, iSFID); #endif } #endif pBankItem = findBankItem(m_iBank); m_ui.BankListView->setCurrentItem(pBankItem); // m_ui.BankListView->ensureItemVisible(pBankItem); bankChanged(); // Set the selected program. #ifdef CONFIG_FLUID_CHANNEL_INFO if (info.assigned) m_iProg = info.program; #else if (pPreset) #if CONFIG_FLUID_PRESET_GET_NUM m_iProg = ::fluid_preset_get_num(pPreset); #else m_iProg = pPreset->get_num(pPreset); #endif #endif QTreeWidgetItem *pProgItem = findProgItem(m_iProg); m_ui.ProgListView->setCurrentItem(pProgItem); // m_ui.ProgListView->ensureItemVisible(pProgItem); // And the preview state... m_ui.PreviewCheckBox->setChecked(m_pOptions->bPresetPreview); // Done with setup... m_iDirtySetup--; } // Stabilize current state form. void qsynthPresetForm::stabilizeForm() { m_ui.DialogButtonBox->button( QDialogButtonBox::Ok)->setEnabled(validateForm()); } // Validate form fields. bool qsynthPresetForm::validateForm() { bool bValid = true; bValid = bValid && (m_ui.BankListView->currentItem() != nullptr); bValid = bValid && (m_ui.ProgListView->currentItem() != nullptr); return bValid; } // Realize a bank-program selection preset. void qsynthPresetForm::setBankProg ( int iBank, int iProg ) { if (m_pSynth == nullptr) return; // just select the synth's program preset... ::fluid_synth_bank_select(m_pSynth, m_iChan, iBank); ::fluid_synth_program_change(m_pSynth, m_iChan, iProg); // Maybe this is needed to stabilize things around. ::fluid_synth_program_reset(m_pSynth); } // Validate form fields and accept it valid. void qsynthPresetForm::accept() { if (validateForm()) { // Unload from current selected dialog items. int iBank = (m_ui.BankListView->currentItem())->text(0).toInt(); int iProg = (m_ui.ProgListView->currentItem())->text(0).toInt(); // And set it right away... setBankProg(iBank, iProg); // Do remember preview state... if (m_pOptions) m_pOptions->bPresetPreview = m_ui.PreviewCheckBox->isChecked(); // We got it. QDialog::accept(); } } // Reject settings (Cancel button slot). void qsynthPresetForm::reject (void) { // Reset selection to initial selection, if applicable... if (m_iDirtyCount > 0) setBankProg(m_iBank, m_iProg); // Done (hopefully nothing). QDialog::reject(); } // Find the bank item of given bank number id. QTreeWidgetItem *qsynthPresetForm::findBankItem ( int iBank ) { QList banks = m_ui.BankListView->findItems( QString::number(iBank), Qt::MatchExactly, 0); QListIterator iter(banks); if (iter.hasNext()) return iter.next(); else return nullptr; } // Find the program item of given program number id. QTreeWidgetItem *qsynthPresetForm::findProgItem ( int iProg ) { QList progs = m_ui.ProgListView->findItems( QString::number(iProg), Qt::MatchExactly, 0); QListIterator iter(progs); if (iter.hasNext()) return iter.next(); else return nullptr; } // Bank change slot. void qsynthPresetForm::bankChanged (void) { if (m_pSynth == nullptr) return; QTreeWidgetItem *pBankItem = m_ui.BankListView->currentItem(); if (pBankItem == nullptr) return; int iBankSelected = pBankItem->text(0).toInt(); // Clear up the program listview. m_ui.ProgListView->setUpdatesEnabled(false); m_ui.ProgListView->setSortingEnabled(false); m_ui.ProgListView->clear(); // fluid_preset_t preset; QTreeWidgetItem *pProgItem = nullptr; // For all soundfonts (in reversed stack order) fill the available programs... int cSoundFonts = ::fluid_synth_sfcount(m_pSynth); for (int i = 0; i < cSoundFonts; ++i) { fluid_sfont_t *pSoundFont = ::fluid_synth_get_sfont(m_pSynth, i); if (pSoundFont) { #ifdef CONFIG_FLUID_SFONT_GET_ID const int iSFID = ::fluid_sfont_get_id(pSoundFont); #else const int iSFID = pSoundFont->id; #endif #ifdef CONFIG_FLUID_SFONT_GET_NAME const QString sSFName = ::fluid_sfont_get_name(pSoundFont); #else const QString sSFName = pSoundFont->get_name(pSoundFont); #endif #ifdef CONFIG_FLUID_BANK_OFFSET const int iBankOffset = ::fluid_synth_get_bank_offset(m_pSynth, iSFID); #endif #ifdef CONFIG_FLUID_SFONT_ITERATION_START ::fluid_sfont_iteration_start(pSoundFont); #else pSoundFont->iteration_start(pSoundFont); #endif fluid_preset_t *pPreset; #ifdef CONFIG_FLUID_SFONT_ITERATION_NEXT while ((pPreset = ::fluid_sfont_iteration_next(pSoundFont)) != nullptr) { #else fluid_preset_t preset; pPreset = &preset; while (pSoundFont->iteration_next(pSoundFont, pPreset)) { #endif #ifdef CONFIG_FLUID_PRESET_GET_BANKNUM int iBank = ::fluid_preset_get_banknum(pPreset); #else int iBank = pPreset->get_banknum(pPreset); #endif #ifdef CONFIG_FLUID_BANK_OFFSET iBank += iBankOffset; #endif #ifdef CONFIG_FLUID_PRESET_GET_NUM const int iProg = ::fluid_preset_get_num(pPreset); #else const int iProg = pPreset->get_num(pPreset); #endif if (iBank == iBankSelected && !findProgItem(iProg)) { pProgItem = new qsynthPresetItem(m_ui.ProgListView, pProgItem); if (pProgItem) { #ifdef CONFIG_FLUID_PRESET_GET_NAME const QString sName = ::fluid_preset_get_name(pPreset); #else const QString sName = pPreset->get_name(pPreset); #endif pProgItem->setText(0, QString::number(iProg)); pProgItem->setText(1, sName); pProgItem->setText(2, QString::number(iSFID)); pProgItem->setText(3, QFileInfo(sSFName).baseName()); } } } } } m_ui.ProgListView->setSortingEnabled(true); m_ui.ProgListView->setUpdatesEnabled(true); // Stabilize the form. stabilizeForm(); } // Program change slot. void qsynthPresetForm::progChanged (void) { if (m_pSynth == nullptr) return; // Which preview state... if (m_ui.PreviewCheckBox->isChecked() && validateForm()) { // Set current selection. int iBank = (m_ui.BankListView->currentItem())->text(0).toInt(); int iProg = (m_ui.ProgListView->currentItem())->text(0).toInt(); // And set it right away... setBankProg(iBank, iProg); // Now we're dirty nuff. m_iDirtyCount++; } // Have we done anything dirty before? else if (m_iDirtyCount > 0) { // Restore initial preset... setBankProg(m_iBank, m_iProg); // And we're clean again. m_iDirtyCount = 0; } // Stabilize the form. stabilizeForm(); } // Preview change slot. void qsynthPresetForm::previewChanged (void) { // Just like a program change, if not on setup... if (m_iDirtySetup == 0) progChanged(); } // end of qsynthPresetForm.cpp qsynth-0.6.1/src/PaxHeaders.5367/qsynthChannelsForm.cpp0000644000000000000000000000013213577702221017654 xustar0030 mtime=1577026705.843992838 30 atime=1577026705.843992838 30 ctime=1577026705.843992838 qsynth-0.6.1/src/qsynthChannelsForm.cpp0000644000175000001440000003454513577702221020514 0ustar00rncbcusers00000000000000// qsynthChannelsForm.cpp // /**************************************************************************** Copyright (C) 2003-2019, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. *****************************************************************************/ #include "qsynthAbout.h" #include "qsynthChannelsForm.h" #include "qsynthChannels.h" #include "qsynthEngine.h" #include "qsynthMainForm.h" #include "qsynthPresetForm.h" #include #include #include #include #include #include #include #include //---------------------------------------------------------------------------- // qsynthChannelsForm -- UI wrapper form. // Constructor. qsynthChannelsForm::qsynthChannelsForm ( QWidget *pParent, Qt::WindowFlags wflags ) : QWidget(pParent, wflags) { // Setup UI struct... m_ui.setupUi(this); m_iChannels = 0; m_ppChannels = nullptr; // No setup synth references initially (the caller will set them). m_pOptions = nullptr; m_pEngine = nullptr; m_pSynth = nullptr; // Initialize dirty control state. m_iDirtySetup = 0; m_iDirtyCount = 0; // Our activity leds (same of main form :). m_pXpmLedOn = new QPixmap(":/images/ledon1.png"); m_pXpmLedOff = new QPixmap(":/images/ledoff1.png"); // Set validators... m_ui.PresetComboBox->setValidator( new QRegExpValidator(QRegExp("[\\w-]+"), m_ui.PresetComboBox)); // Soundfonts list view... QHeaderView *pHeader = m_ui.ChannelsListView->header(); pHeader->setDefaultAlignment(Qt::AlignLeft); // pHeader->setDefaultSectionSize(320); #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) // pHeader->setSectionResizeMode(QHeaderView::Custom); pHeader->setSectionsMovable(false); #else // pHeader->setResizeMode(QHeaderView::Custom); pHeader->setMovable(false); #endif pHeader->setStretchLastSection(true); pHeader->resizeSection(0, 24); // In. m_ui.ChannelsListView->resizeColumnToContents(1); // Ch. m_ui.ChannelsListView->resizeColumnToContents(2); // Bank. m_ui.ChannelsListView->resizeColumnToContents(3); // Prog. pHeader->resizeSection(4, 320); // Name. m_ui.ChannelsListView->resizeColumnToContents(5); // SFID. m_ui.ChannelsListView->resizeColumnToContents(6); // Soundfont. // Initial sort order... m_ui.ChannelsListView->sortItems(1, Qt::AscendingOrder); // UI connections... QObject::connect(m_ui.PresetComboBox, SIGNAL(editTextChanged(const QString&)), SLOT(changePreset(const QString&))); QObject::connect(m_ui.PresetSavePushButton, SIGNAL(clicked()), SLOT(savePreset())); QObject::connect(m_ui.PresetDeletePushButton, SIGNAL(clicked()), SLOT(deletePreset())); QObject::connect(m_ui.ChannelsListView, SIGNAL(customContextMenuRequested(const QPoint&)), SLOT(contextMenuRequested(const QPoint&))); // QObject::connect(m_ui.ChannelsListView, // SIGNAL(itemActivated(QTreeWidgetItem*,int)), // SLOT(itemActivated(QTreeWidgetItem*,int))); QObject::connect(m_ui.ChannelsListView, SIGNAL(itemDoubleClicked(QTreeWidgetItem*,int)), SLOT(itemActivated(QTreeWidgetItem*,int))); } // Destructor. qsynthChannelsForm::~qsynthChannelsForm (void) { // Nullify references. setup(nullptr, nullptr, false); // Delete pixmaps. delete m_pXpmLedOn; delete m_pXpmLedOff; } // Notify our parent that we're emerging. void qsynthChannelsForm::showEvent ( QShowEvent *pShowEvent ) { qsynthMainForm *pMainForm = qsynthMainForm::getInstance(); if (pMainForm) pMainForm->stabilizeFormEx(); QWidget::showEvent(pShowEvent); } // Notify our parent that we're closing. void qsynthChannelsForm::hideEvent ( QHideEvent *pHideEvent ) { QWidget::hideEvent(pHideEvent); qsynthMainForm *pMainForm = qsynthMainForm::getInstance(); if (pMainForm) pMainForm->stabilizeFormEx(); } // Populate (setup) synth settings descriptors. void qsynthChannelsForm::setup ( qsynthOptions *pOptions, qsynthEngine *pEngine, bool bPreset ) { // Set the proper descriptors. m_pOptions = pOptions; m_pEngine = pEngine; m_pSynth = pEngine ? pEngine->pSynth : nullptr; // Update caption. QString sTitle; if (pEngine) sTitle += pEngine->name(); setWindowTitle(sTitle); // Free up current channel list view. if (m_ppChannels) { delete [] m_ppChannels; m_ppChannels = nullptr; m_iChannels = 0; } // Allocate a new channel list view... m_ui.ChannelsListView->clear(); if (m_pSynth && m_ppChannels == nullptr) { m_iChannels = ::fluid_synth_count_midi_channels(m_pSynth); if (m_iChannels > 0) m_ppChannels = new qsynthChannelsItemPtr [m_iChannels]; if (m_ppChannels) { for (int iChan = 0; iChan < m_iChannels; iChan++) { qsynthChannelsItem *pItem = new qsynthChannelsItem( m_ui.ChannelsListView); if (pItem) { pItem->setIcon(QSYNTH_CHANNELS_IN, *m_pXpmLedOff); pItem->setText(QSYNTH_CHANNELS_CHAN, QString::number(iChan + 1)); } m_ppChannels[iChan] = pItem; } } // Load preset list... m_iDirtySetup++; resetPresets(); m_ui.PresetComboBox->setEditText((m_pEngine->setup())->sDefPreset); m_iDirtySetup--; // Load default preset and update/refresh the whole thing... resetAllChannels(bPreset); } } // Channel item update. void qsynthChannelsForm::updateChannel ( int iChan ) { if (m_pSynth == nullptr || m_ppChannels == nullptr) return; if (iChan < 0 || iChan >= m_iChannels) return; qsynthChannelsItem *pItem = m_ppChannels[iChan]; const QString n = "-"; #ifdef CONFIG_FLUID_CHANNEL_INFO fluid_synth_channel_info_t info; ::memset(&info, 0, sizeof(info)); ::fluid_synth_get_channel_info(m_pSynth, iChan, &info); if (info.assigned) { #ifdef CONFIG_FLUID_BANK_OFFSET info.bank += ::fluid_synth_get_bank_offset(m_pSynth, info.sfont_id); #endif pItem->setText(QSYNTH_CHANNELS_BANK, QString::number(info.bank)); pItem->setText(QSYNTH_CHANNELS_PROG, QString::number(info.program)); pItem->setText(QSYNTH_CHANNELS_NAME, info.name); pItem->setText(QSYNTH_CHANNELS_SFID, QString::number(info.sfont_id)); fluid_sfont_t *sfont = ::fluid_synth_get_sfont_by_id(m_pSynth, info.sfont_id); pItem->setText(QSYNTH_CHANNELS_SFNAME, sfont ? QFileInfo(sfont->get_name(sfont)).baseName() : n); // Make this a dirty-operation. m_iDirtyCount++; } #else fluid_preset_t *pPreset = ::fluid_synth_get_channel_preset(m_pSynth, iChan); if (pPreset) { #ifdef CONFIG_FLUID_PRESET_GET_BANKNUM int iBank = ::fluid_preset_get_banknum(pPreset); #else int iBank = pPreset->get_banknum(pPreset); #endif #ifdef CONFIG_FLUID_BANK_OFFSET int iSFID = 0; QString sSFName; #ifdef CONFIG_FLUID_PRESET_GET_SFONT fluid_sfont_t *pSoundFont = ::fluid_preset_get_sfont(pPreset); #else fluid_sfont_t *pSoundFont = pPreset->sfont; #endif if (pSoundFont) { #ifdef CONFIG_FLUID_SFONT_GET_ID iSFID = ::fluid_sfont_get_id(pSoundFont); #else iSFID = pSoundFont->id; #endif #ifdef CONFIG_FLUID_SFONT_GET_NAME sSFName = ::fluid_sfont_get_name(pSoundFont); #else sSFName = pSoundFont->get_name(pSoundFont); #endif } iBank += ::fluid_synth_get_bank_offset(m_pSynth, iSFID); #endif #ifdef CONFIG_FLUID_PRESET_GET_NUM const int iProg = ::fluid_preset_get_num(pPreset); #else const int iProg = pPreset->get_num(pPreset); #endif #ifdef CONFIG_FLUID_PRESET_GET_NAME const QString sName = ::fluid_preset_get_name(pPreset); #else const QString sName = pPreset->get_name(pPreset); #endif pItem->setText(QSYNTH_CHANNELS_BANK, QString::number(iBank)); pItem->setText(QSYNTH_CHANNELS_PROG, QString::number(iProg)); pItem->setText(QSYNTH_CHANNELS_NAME, sName); pItem->setText(QSYNTH_CHANNELS_SFID, QString::number(iSFID)); pItem->setText(QSYNTH_CHANNELS_SFNAME, QFileInfo(sSFName).baseName()); // Make this a dirty-operation. m_iDirtyCount++; } #endif else { pItem->setText(QSYNTH_CHANNELS_BANK, n); pItem->setText(QSYNTH_CHANNELS_PROG, n); pItem->setText(QSYNTH_CHANNELS_NAME, n); pItem->setText(QSYNTH_CHANNELS_SFID, n); pItem->setText(QSYNTH_CHANNELS_SFNAME, n); } } // All channels update. void qsynthChannelsForm::updateAllChannels (void) { for (int iChan = 0; iChan < m_iChannels; iChan++) updateChannel(iChan); m_ui.ChannelsListView->update(); stabilizeForm(); } // All channels reset update. void qsynthChannelsForm::resetAllChannels ( bool bPreset ) { if (m_pEngine == nullptr) return; qsynthSetup *pSetup = m_pEngine->setup(); if (pSetup == nullptr) return; if (bPreset) changePreset(pSetup->sDefPreset); else updateAllChannels(); } // Update channel activity status LED. void qsynthChannelsForm::setChannelOn ( int iChan, bool bOn ) { if (m_ppChannels == nullptr) return; if (iChan < 0 || iChan >= m_iChannels) return; m_ppChannels[iChan]->setIcon(QSYNTH_CHANNELS_IN, (bOn ? *m_pXpmLedOn : *m_pXpmLedOff)); } // Channel view context menu handler. void qsynthChannelsForm::contextMenuRequested ( const QPoint& pos ) { QTreeWidgetItem *pItem = m_ui.ChannelsListView->itemAt(pos); // Build the channel context menu... QMenu menu(this); QAction *pAction; bool bEnabled = (m_pSynth && pItem); pAction = menu.addAction( QIcon(":/images/edit1.png"), tr("Edit") + "...", this, SLOT(editSelectedChannel())); pAction->setEnabled(bEnabled); #ifdef CONFIG_FLUID_UNSET_PROGRAM pAction = menu.addAction( QIcon(":/images/remove1.png"), tr("Unset"), this, SLOT(unsetSelectedChannel())); #endif menu.addSeparator(); pAction = menu.addAction( tr("Refresh"), this, SLOT(updateAllChannels())); pAction->setEnabled(bEnabled); menu.exec((m_ui.ChannelsListView->viewport())->mapToGlobal(pos)); } // Edit detail dialog. void qsynthChannelsForm::editSelectedChannel (void) { itemActivated(m_ui.ChannelsListView->currentItem(), 0); } // Unset program slot. void qsynthChannelsForm::unsetSelectedChannel (void) { QTreeWidgetItem *pItem = m_ui.ChannelsListView->currentItem(); if (pItem == nullptr) return; if (m_ppChannels == nullptr) return; if (m_pOptions == nullptr || m_pEngine == nullptr || m_pSynth == nullptr) return; int iChan = (pItem->text(QSYNTH_CHANNELS_CHAN).toInt() - 1); if (iChan < 0 || iChan >= m_iChannels) return; #ifdef CONFIG_FLUID_UNSET_PROGRAM ::fluid_synth_unset_program(m_pSynth, iChan); // Make this a dirty-operation. m_iDirtyCount++; #endif updateChannel(iChan); stabilizeForm(); } // Show detail dialog. void qsynthChannelsForm::itemActivated ( QTreeWidgetItem *pItem, int ) { if (pItem == nullptr) return; if (m_ppChannels == nullptr) return; if (m_pOptions == nullptr || m_pEngine == nullptr || m_pSynth == nullptr) return; int iChan = (pItem->text(QSYNTH_CHANNELS_CHAN).toInt() - 1); if (iChan < 0 || iChan >= m_iChannels) return; qsynthPresetForm *pPresetForm = new qsynthPresetForm(this); if (pPresetForm) { // The the proper context. pPresetForm->setup(m_pOptions, m_pSynth, iChan); // Show the channel preset dialog... if (pPresetForm->exec()) updateChannel(iChan); // Done. delete pPresetForm; } stabilizeForm(); } // Channels preset naming slots. void qsynthChannelsForm::changePreset ( const QString& sPreset ) { if (m_pOptions == nullptr || m_pEngine == nullptr || m_pSynth == nullptr) return; if (m_iDirtySetup > 0) return; // Force this is pseudo-dirty procedure... m_iDirtyCount++; // Load presets and update/refresh the whole thing. if (m_pOptions->loadPreset(m_pEngine, sPreset)) { updateAllChannels(); // Very special, make this the new default preset. (m_pEngine->setup())->sDefPreset = sPreset; // This is clean now, for sure. m_iDirtyCount = 0; } stabilizeForm(); } void qsynthChannelsForm::savePreset (void) { if (m_pOptions == nullptr || m_pEngine == nullptr || m_pSynth == nullptr) return; QString sPreset = m_ui.PresetComboBox->currentText(); if (sPreset.isEmpty()) return; // Unload presets (from synth). if (m_pOptions->savePreset(m_pEngine, sPreset)) { m_iDirtySetup++; resetPresets(); m_ui.PresetComboBox->setEditText(sPreset); m_iDirtySetup--; // Again special, force this the default preset. (m_pEngine->setup())->sDefPreset = sPreset; // Not dirty anymore, by definition. m_iDirtyCount = 0; } stabilizeForm(); } void qsynthChannelsForm::deletePreset (void) { if (m_pOptions == nullptr || m_pEngine == nullptr || m_pSynth == nullptr) return; QString sPreset = m_ui.PresetComboBox->currentText(); if (sPreset.isEmpty()) return; // Try to prompt user if he/she really wants this... if (QMessageBox::warning(this, tr("Warning"), tr("Delete preset:") + "\n\n" + sPreset + "\n\n" + tr("Are you sure?"), QMessageBox::Ok | QMessageBox::Cancel) == QMessageBox::Cancel) return; // Remove current preset item... m_iDirtySetup++; int iItem = m_ui.PresetComboBox->currentIndex(); m_pOptions->deletePreset(m_pEngine, sPreset); resetPresets(); m_ui.PresetComboBox->setCurrentIndex(iItem); m_iDirtySetup--; // Load a new preset... changePreset(m_ui.PresetComboBox->currentText()); } void qsynthChannelsForm::resetPresets (void) { if (m_pEngine == nullptr) return; qsynthSetup *pSetup = m_pEngine->setup(); if (pSetup == nullptr) return; m_ui.PresetComboBox->clear(); m_ui.PresetComboBox->addItems(pSetup->presets); m_ui.PresetComboBox->addItem(pSetup->sDefPresetName); } // Stabilize current form state. void qsynthChannelsForm::stabilizeForm (void) { if (m_pEngine == nullptr) return; qsynthSetup *pSetup = m_pEngine->setup(); if (pSetup == nullptr) return; QString sPreset = m_ui.PresetComboBox->currentText(); if (m_pSynth && !sPreset.isEmpty()) { bool bPreset = pSetup->presets.contains(sPreset); m_ui.PresetSavePushButton->setEnabled(m_iDirtyCount > 0 || (!bPreset && sPreset != pSetup->sDefPresetName)); m_ui.PresetDeletePushButton->setEnabled(bPreset); } else { m_ui.PresetSavePushButton->setEnabled(false); m_ui.PresetDeletePushButton->setEnabled(false); } } // end of qsynthChannelsForm.cpp qsynth-0.6.1/src/PaxHeaders.5367/qsynthKnob.h0000644000000000000000000000013213577702221015633 xustar0030 mtime=1577026705.844992838 30 atime=1577026705.844992838 30 ctime=1577026705.844992838 qsynth-0.6.1/src/qsynthKnob.h0000644000175000001440000000536613577702221016472 0ustar00rncbcusers00000000000000// qsynthKnob.h // /**************************************************************************** Copyright (C) 2005-2013, rncbc aka Rui Nuno Capela. All rights reserved. This widget is based on a design by Thorsten Wilms, implemented by Chris Cannam in Rosegarden, adapted for QSynth by Pedro Lopez-Cabanillas 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. 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. 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. *****************************************************************************/ #ifndef __qsynthKnob_h #define __qsynthKnob_h #include //------------------------------------------------------------------------- // qsynthKnob - A better QDial for everybody class qsynthKnob : public QDial { Q_OBJECT Q_PROPERTY(int defaultValue READ getDefaultValue WRITE setDefaultValue) Q_PROPERTY(DialMode dialMode READ getDialMode WRITE setDialMode) Q_ENUMS(DialMode) public: // Constructor. qsynthKnob(QWidget *pParent = 0); // Destructor. ~qsynthKnob(); int getDefaultValue() const { return m_iDefaultValue; } // Knob dial mode behavior: // DefaultMode - default (old) QDial behavior. // AngularMode - angularly relative to widget center. // LinearMode - proportionally to distance in one ortogonal axis. enum DialMode { DefaultMode, AngularMode, LinearMode }; DialMode getDialMode() const { return m_dialMode; } public slots: // Set default (mid) value. void setDefaultValue(int iDefaultValue); // Set knob dial mode behavior. void setDialMode(DialMode dialMode); protected: // Mouse angle determination. float mouseAngle(const QPoint& pos); // Alternate mouse behavior event handlers. virtual void mousePressEvent(QMouseEvent *pMouseEvent); virtual void mouseMoveEvent(QMouseEvent *pMouseEvent); virtual void mouseReleaseEvent(QMouseEvent *pMouseEvent); virtual void wheelEvent(QWheelEvent *pWheelEvent); private: // Default (mid) value. int m_iDefaultValue; // Knob dial mode behavior. DialMode m_dialMode; // Alternate mouse behavior tracking. bool m_bMousePressed; QPoint m_posMouse; // Just for more precission on the movement float m_fLastDragValue; }; #endif // __qsynthKnob_h // end of qsynthKnob.h qsynth-0.6.1/src/PaxHeaders.5367/qsynthOptionsForm.cpp0000644000000000000000000000013213577702221017554 xustar0030 mtime=1577026705.846992838 30 atime=1577026705.846992838 30 ctime=1577026705.846992838 qsynth-0.6.1/src/qsynthOptionsForm.cpp0000644000175000001440000003426013577702221020406 0ustar00rncbcusers00000000000000// qsynthOptionsForm.cpp // /**************************************************************************** Copyright (C) 2003-2019, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. *****************************************************************************/ #include "qsynthAbout.h" #include "qsynthOptionsForm.h" #include "qsynthPaletteForm.h" #include "qsynthOptions.h" #include #include #include #include #include #ifdef CONFIG_SYSTEM_TRAY #include #endif // Default (empty/blank) name. static const char *g_pszDefName = QT_TRANSLATE_NOOP("qsynthOptionsForm", "(default)"); //---------------------------------------------------------------------------- // qsynthOptionsForm -- UI wrapper form. // Constructor. qsynthOptionsForm::qsynthOptionsForm ( QWidget *pParent, Qt::WindowFlags wflags ) : QDialog(pParent, wflags) { // Setup UI struct... m_ui.setupUi(this); // No options descriptor initially (the caller will set it). m_pOptions = nullptr; // Initialize dirty control state. m_iDirtySetup = 0; m_iDirtyCount = 0; // Set dialog validators... m_ui.MessagesLimitLinesComboBox->setValidator(new QIntValidator(m_ui.MessagesLimitLinesComboBox)); // Try to restore old window positioning. adjustSize(); // UI connections... QObject::connect(m_ui.MessagesFontPushButton, SIGNAL(clicked()), SLOT(chooseMessagesFont())); QObject::connect(m_ui.MessagesLogCheckBox, SIGNAL(stateChanged(int)), SLOT(optionsChanged())); QObject::connect(m_ui.MessagesLogPathComboBox, SIGNAL(editTextChanged(const QString&)), SLOT(optionsChanged())); QObject::connect(m_ui.MessagesLogPathToolButton, SIGNAL(clicked()), SLOT(browseMessagesLogPath())); QObject::connect(m_ui.QueryCloseCheckBox, SIGNAL(stateChanged(int)), SLOT(optionsChanged())); QObject::connect(m_ui.KeepOnTopCheckBox, SIGNAL(stateChanged(int)), SLOT(optionsChanged())); QObject::connect(m_ui.StdoutCaptureCheckBox, SIGNAL(stateChanged(int)), SLOT(optionsChanged())); QObject::connect(m_ui.OutputMetersCheckBox, SIGNAL(stateChanged(int)), SLOT(optionsChanged())); #ifdef CONFIG_SYSTEM_TRAY QObject::connect(m_ui.SystemTrayCheckBox, SIGNAL(stateChanged(int)), SLOT(optionsChanged())); QObject::connect(m_ui.SystemTrayQueryCloseCheckBox, SIGNAL(stateChanged(int)), SLOT(optionsChanged())); QObject::connect(m_ui.StartMinimizedCheckBox, SIGNAL(stateChanged(int)), SLOT(optionsChanged())); #endif QObject::connect(m_ui.CustomColorThemeComboBox, SIGNAL(activated(int)), SLOT(optionsChanged())); QObject::connect(m_ui.CustomColorThemeToolButton, SIGNAL(clicked()), SLOT(editCustomColorThemes())); QObject::connect(m_ui.CustomStyleThemeComboBox, SIGNAL(activated(int)), SLOT(optionsChanged())); QObject::connect(m_ui.BaseFontSizeComboBox, SIGNAL(editTextChanged(const QString&)), SLOT(optionsChanged())); QObject::connect(m_ui.MessagesLimitCheckBox, SIGNAL(stateChanged(int)), SLOT(optionsChanged())); QObject::connect(m_ui.MessagesLimitLinesComboBox, SIGNAL(activated(int)), SLOT(optionsChanged())); QObject::connect(m_ui.KnobStyleComboBox, SIGNAL(activated(int)), SLOT(optionsChanged())); QObject::connect(m_ui.KnobMouseMotionComboBox, SIGNAL(activated(int)), SLOT(optionsChanged())); QObject::connect(m_ui.DialogButtonBox, SIGNAL(accepted()), SLOT(accept())); QObject::connect(m_ui.DialogButtonBox, SIGNAL(rejected()), SLOT(reject())); } // Destructor. qsynthOptionsForm::~qsynthOptionsForm (void) { } // Populate (setup) dialog controls from options descriptors. void qsynthOptionsForm::setup ( qsynthOptions *pOptions ) { // Set reference descriptor. m_pOptions = pOptions; // Start clean. m_iDirtyCount = 0; // Avoid nested changes. m_iDirtySetup++; // Load combo box history... m_pOptions->loadComboBoxHistory(m_ui.MessagesLogPathComboBox); // Load Display options... QFont font; // Messages font. if (m_pOptions->sMessagesFont.isEmpty() || !font.fromString(m_pOptions->sMessagesFont)) font = QFont("Monospace", 8); QPalette pal(m_ui.MessagesFontTextLabel->palette()); pal.setColor(QPalette::Background, pal.base().color()); m_ui.MessagesFontTextLabel->setPalette(pal); m_ui.MessagesFontTextLabel->setFont(font); m_ui.MessagesFontTextLabel->setText( font.family() + ' ' + QString::number(font.pointSize())); // Messages limit option. m_ui.MessagesLimitCheckBox->setChecked(m_pOptions->bMessagesLimit); m_ui.MessagesLimitLinesComboBox->setEditText( QString::number(m_pOptions->iMessagesLimitLines)); // Logging options m_ui.MessagesLogCheckBox->setChecked(m_pOptions->bMessagesLog); m_ui.MessagesLogPathComboBox->setEditText(m_pOptions->sMessagesLogPath); // Other options finally. m_ui.QueryCloseCheckBox->setChecked(m_pOptions->bQueryClose); m_ui.KeepOnTopCheckBox->setChecked(m_pOptions->bKeepOnTop); m_ui.StdoutCaptureCheckBox->setChecked(m_pOptions->bStdoutCapture); m_ui.OutputMetersCheckBox->setChecked(m_pOptions->bOutputMeters); #ifdef CONFIG_SYSTEM_TRAY m_ui.SystemTrayCheckBox->setChecked(m_pOptions->bSystemTray); m_ui.SystemTrayQueryCloseCheckBox->setChecked(m_pOptions->bSystemTrayQueryClose); m_ui.StartMinimizedCheckBox->setChecked(m_pOptions->bStartMinimized); #endif if (m_pOptions->iBaseFontSize > 0) { m_ui.BaseFontSizeComboBox->setEditText( QString::number(m_pOptions->iBaseFontSize)); } else { m_ui.BaseFontSizeComboBox->setCurrentIndex(0); } // Knobs m_ui.KnobStyleComboBox->setCurrentIndex(m_pOptions->iKnobStyle); m_ui.KnobMouseMotionComboBox->setCurrentIndex(m_pOptions->iKnobMotion); #if defined(__WIN32__) || defined(_WIN32) || defined(WIN32) m_ui.StdoutCaptureCheckBox->setChecked(false); m_ui.StdoutCaptureCheckBox->setEnabled(false); #endif #ifdef CONFIG_SYSTEM_TRAY const bool bSystemTray = QSystemTrayIcon::isSystemTrayAvailable(); #else const bool bSystemTray = false; #endif if (!bSystemTray) { m_ui.SystemTrayCheckBox->setChecked(false); m_ui.SystemTrayCheckBox->setEnabled(false); m_ui.SystemTrayQueryCloseCheckBox->setChecked(false); m_ui.SystemTrayQueryCloseCheckBox->setEnabled(false); m_ui.StartMinimizedCheckBox->setChecked(false); m_ui.StartMinimizedCheckBox->setEnabled(false); } // Custom display options... resetCustomColorThemes(m_pOptions->sCustomColorTheme); resetCustomStyleThemes(m_pOptions->sCustomStyleTheme); // Done. m_iDirtySetup--; stabilizeForm(); } // Accept options (OK button slot). void qsynthOptionsForm::accept (void) { // Save options... if (m_iDirtyCount > 0) { m_pOptions->sMessagesFont = m_ui.MessagesFontTextLabel->font().toString(); m_pOptions->bMessagesLimit = m_ui.MessagesLimitCheckBox->isChecked(); m_pOptions->iMessagesLimitLines = m_ui.MessagesLimitLinesComboBox->currentText().toInt(); m_pOptions->bMessagesLog = m_ui.MessagesLogCheckBox->isChecked(); m_pOptions->sMessagesLogPath = m_ui.MessagesLogPathComboBox->currentText(); m_pOptions->bQueryClose = m_ui.QueryCloseCheckBox->isChecked(); m_pOptions->bKeepOnTop = m_ui.KeepOnTopCheckBox->isChecked(); m_pOptions->bStdoutCapture = m_ui.StdoutCaptureCheckBox->isChecked(); m_pOptions->bOutputMeters = m_ui.OutputMetersCheckBox->isChecked(); #ifdef CONFIG_SYSTEM_TRAY m_pOptions->bSystemTray = m_ui.SystemTrayCheckBox->isChecked(); m_pOptions->bSystemTrayQueryClose = m_ui.SystemTrayQueryCloseCheckBox->isChecked(); m_pOptions->bStartMinimized = m_ui.StartMinimizedCheckBox->isChecked(); #endif m_pOptions->iBaseFontSize = m_ui.BaseFontSizeComboBox->currentText().toInt(); // Knobs m_pOptions->iKnobStyle = m_ui.KnobStyleComboBox->currentIndex(); m_pOptions->iKnobMotion = m_ui.KnobMouseMotionComboBox->currentIndex(); // Custom color/style theme options... const QString sOldCustomStyleTheme = m_pOptions->sCustomStyleTheme; if (m_ui.CustomStyleThemeComboBox->currentIndex() > 0) m_pOptions->sCustomStyleTheme = m_ui.CustomStyleThemeComboBox->currentText(); else m_pOptions->sCustomStyleTheme.clear(); const QString sOldCustomColorTheme = m_pOptions->sCustomColorTheme; if (m_ui.CustomColorThemeComboBox->currentIndex() > 0) m_pOptions->sCustomColorTheme = m_ui.CustomColorThemeComboBox->currentText(); else m_pOptions->sCustomColorTheme.clear(); // Check whether restart is needed or whether // custom options maybe set up immediately... int iNeedRestart = 0; if (m_pOptions->sCustomStyleTheme != sOldCustomStyleTheme) { if (m_pOptions->sCustomStyleTheme.isEmpty()) { ++iNeedRestart; } else { QApplication::setStyle( QStyleFactory::create(m_pOptions->sCustomStyleTheme)); } } if (m_pOptions->sCustomColorTheme != sOldCustomColorTheme) { if (m_pOptions->sCustomColorTheme.isEmpty()) { ++iNeedRestart; } else { QPalette pal; if (qsynthPaletteForm::namedPalette( &m_pOptions->settings(), m_pOptions->sCustomColorTheme, pal)) QApplication::setPalette(pal); } } // Show restart message if needed... if (iNeedRestart > 0) { QMessageBox::information(this, tr("Information"), tr("Some settings may be only effective\n" "next time you start this application.")); } // Reset dirty flag. m_iDirtyCount = 0; } // Save combobox history... m_pOptions->saveComboBoxHistory(m_ui.MessagesLogPathComboBox); // Save/commit to disk. m_pOptions->saveOptions(); // Just go with dialog acceptance. QDialog::accept(); } // Reject options (Cancel button slot). void qsynthOptionsForm::reject (void) { bool bReject = true; // Check if there's any pending changes... if (m_iDirtyCount > 0) { switch (QMessageBox::warning(this, tr("Warning"), tr("Some options have been changed.") + "\n\n" + tr("Do you want to apply the changes?"), QMessageBox::Apply | QMessageBox::Discard | QMessageBox::Cancel)) { case QMessageBox::Apply: accept(); return; case QMessageBox::Discard: break; default: // Cancel. bReject = false; } } if (bReject) QDialog::reject(); } // Dirty up options. void qsynthOptionsForm::optionsChanged() { if (m_iDirtySetup > 0) return; m_iDirtyCount++; stabilizeForm(); } // Custom color palette theme manager. void qsynthOptionsForm::editCustomColorThemes (void) { qsynthPaletteForm form(this); form.setSettings(&m_pOptions->settings()); QString sCustomColorTheme; int iDirtyCustomColorTheme = 0; const int iCustomColorTheme = m_ui.CustomColorThemeComboBox->currentIndex(); if (iCustomColorTheme > 0) { sCustomColorTheme = m_ui.CustomColorThemeComboBox->itemText( iCustomColorTheme); form.setPaletteName(sCustomColorTheme); } if (form.exec() == QDialog::Accepted) { sCustomColorTheme = form.paletteName(); ++iDirtyCustomColorTheme; } if (iDirtyCustomColorTheme > 0 || form.isDirty()) { resetCustomColorThemes(sCustomColorTheme); optionsChanged(); } } // Custom color palette themes settler. void qsynthOptionsForm::resetCustomColorThemes ( const QString& sCustomColorTheme ) { m_ui.CustomColorThemeComboBox->clear(); m_ui.CustomColorThemeComboBox->addItem( tr(g_pszDefName)); m_ui.CustomColorThemeComboBox->addItems( qsynthPaletteForm::namedPaletteList(&m_pOptions->settings())); int iCustomColorTheme = 0; if (!sCustomColorTheme.isEmpty()) { iCustomColorTheme = m_ui.CustomColorThemeComboBox->findText( sCustomColorTheme); if (iCustomColorTheme < 0) iCustomColorTheme = 0; } m_ui.CustomColorThemeComboBox->setCurrentIndex(iCustomColorTheme); } // Custom widget style themes settler. void qsynthOptionsForm::resetCustomStyleThemes ( const QString& sCustomStyleTheme ) { m_ui.CustomStyleThemeComboBox->clear(); m_ui.CustomStyleThemeComboBox->addItem( tr(g_pszDefName)); m_ui.CustomStyleThemeComboBox->addItems(QStyleFactory::keys()); int iCustomStyleTheme = 0; if (!sCustomStyleTheme.isEmpty()) { iCustomStyleTheme = m_ui.CustomStyleThemeComboBox->findText( sCustomStyleTheme); if (iCustomStyleTheme < 0) iCustomStyleTheme = 0; } m_ui.CustomStyleThemeComboBox->setCurrentIndex(iCustomStyleTheme); } // Stabilize current form state. void qsynthOptionsForm::stabilizeForm() { bool bValid = (m_iDirtyCount > 0); m_ui.MessagesLimitLinesComboBox->setEnabled( m_ui.MessagesLimitCheckBox->isChecked()); bool bEnabled = m_ui.MessagesLogCheckBox->isChecked(); m_ui.MessagesLogPathComboBox->setEnabled(bEnabled); m_ui.MessagesLogPathToolButton->setEnabled(bEnabled); if (bEnabled && bValid) { const QString& sPath = m_ui.MessagesLogPathComboBox->currentText(); bValid = !sPath.isEmpty(); } #ifdef CONFIG_SYSTEM_TRAY bEnabled = m_ui.SystemTrayCheckBox->isChecked(); m_ui.SystemTrayQueryCloseCheckBox->setEnabled(bEnabled); m_ui.StartMinimizedCheckBox->setEnabled(bEnabled); #endif m_ui.DialogButtonBox->button(QDialogButtonBox::Ok)->setEnabled(bValid); } // Messages log path browse slot. void qsynthOptionsForm::browseMessagesLogPath() { QString sFileName = QFileDialog::getSaveFileName( this, // Parent. tr("Messages Log"), // Caption. m_ui.MessagesLogPathComboBox->currentText(), // Start here. tr("Log files") + " (*.log)" // Filter (log files) ); if (!sFileName.isEmpty()) { m_ui.MessagesLogPathComboBox->setEditText(sFileName); m_ui.MessagesLogPathComboBox->setFocus(); optionsChanged(); } } // The messages font selection dialog. void qsynthOptionsForm::chooseMessagesFont() { bool bOk = false; QFont font = QFontDialog::getFont(&bOk, m_ui.MessagesFontTextLabel->font(), this); if (bOk) { m_ui.MessagesFontTextLabel->setFont(font); m_ui.MessagesFontTextLabel->setText( font.family() + ' ' + QString::number(font.pointSize())); optionsChanged(); } } // end of qsynthOptionsForm.cpp qsynth-0.6.1/src/PaxHeaders.5367/qsynthMeter.cpp0000644000000000000000000000013213577702221016351 xustar0030 mtime=1577026705.845992838 30 atime=1577026705.845992838 30 ctime=1577026705.845992838 qsynth-0.6.1/src/qsynthMeter.cpp0000644000175000001440000002622413577702221017204 0ustar00rncbcusers00000000000000// qsynthMeter.cpp // /**************************************************************************** Copyright (C) 2004-2019, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. *****************************************************************************/ #include "qsynthAbout.h" #include "qsynthMeter.h" #include #include #include #include #include #if QT_VERSION < QT_VERSION_CHECK(5, 11, 0) #define horizontalAdvance width #endif // Meter level limits (in dB). #define QSYNTH_METER_MAXDB (+3.0f) #define QSYNTH_METER_MINDB (-70.0f) // The decay rates (magic goes here :). // - value decay rate (faster) #define QSYNTH_METER_DECAY_RATE1 (1.0f - 3E-2f) // - peak decay rate (slower) #define QSYNTH_METER_DECAY_RATE2 (1.0f - 3E-6f) // Number of cycles the peak stays on hold before fall-off. #define QSYNTH_METER_PEAK_FALLOFF 16 //---------------------------------------------------------------------------- // qsynthMeterScale -- Meter bridge scale widget. // Constructor. qsynthMeterScale::qsynthMeterScale( qsynthMeter *pMeter ) : QWidget(pMeter), m_pMeter(pMeter) { m_iLastY = 0; QWidget::setMinimumWidth(16); // QWidget::setBackgroundRole(QPalette::Mid); const QFont& font = QWidget::font(); QWidget::setFont(QFont(font.family(), font.pointSize() - 4)); } // Draw IEC scale line and label; assumes labels drawed from top to bottom. void qsynthMeterScale::drawLineLabel ( QPainter *p, int y, const QString& sLabel ) { const int iCurrY = QWidget::height() - y; const int iWidth = QWidget::width() - 2; const QFontMetrics& fm = p->fontMetrics(); const int iMidHeight = (fm.height() >> 1); if (iCurrY < iMidHeight || iCurrY > m_iLastY + iMidHeight) { if (fm.horizontalAdvance(sLabel) < iWidth - 5) { p->drawLine(0, iCurrY, 2, iCurrY); if (m_pMeter->portCount() > 1) p->drawLine(iWidth - 3, iCurrY, iWidth - 1, iCurrY); } p->drawText(0, iCurrY - iMidHeight, iWidth - 2, fm.height(), Qt::AlignHCenter | Qt::AlignVCenter, sLabel); m_iLastY = iCurrY + 1; } } // Paint event handler. void qsynthMeterScale::paintEvent ( QPaintEvent * ) { QPainter p(this); m_iLastY = 0; const QPalette& pal = QWidget::palette(); const bool bDark = (pal.base().color().value() < 0x7f); const QColor& color = pal.midlight().color(); p.setPen(bDark ? color.lighter() : color.darker()); drawLineLabel(&p, m_pMeter->iec_level(qsynthMeter::Color0dB), "0"); drawLineLabel(&p, m_pMeter->iec_level(qsynthMeter::Color3dB), "3"); drawLineLabel(&p, m_pMeter->iec_level(qsynthMeter::Color6dB), "6"); drawLineLabel(&p, m_pMeter->iec_level(qsynthMeter::Color10dB), "10"); for (float dB = -20.0f; dB > QSYNTH_METER_MINDB; dB -= 10.0f) drawLineLabel(&p, m_pMeter->iec_scale(dB), QString::number(-int(dB))); } //---------------------------------------------------------------------------- // qsynthMeterValue -- Meter bridge value widget. // Constructor. qsynthMeterValue::qsynthMeterValue ( qsynthMeter *pMeter ) : QFrame(pMeter), m_pMeter(pMeter) { m_fValue = 0.0f; m_iValue = 0; m_fValueDecay = QSYNTH_METER_DECAY_RATE1; m_iPeak = 0; m_fPeakDecay = QSYNTH_METER_DECAY_RATE2; m_iPeakHold = 0; m_iPeakColor = qsynthMeter::Color6dB; QWidget::setMinimumWidth(12); QFrame::setBackgroundRole(QPalette::NoRole); QFrame::setFrameShape(QFrame::StyledPanel); QFrame::setFrameShadow(QFrame::Sunken); } // Frame value one-way accessors. void qsynthMeterValue::setValue ( float fValue ) { if (m_fValue < fValue) m_fValue = fValue; refresh(); } // Reset peak holder. void qsynthMeterValue::peakReset (void) { m_iPeak = 0; } // Value refreshment. void qsynthMeterValue::refresh (void) { if (m_fValue < 0.001f && m_iPeak < 1) return; float dB = QSYNTH_METER_MINDB; if (m_fValue > 0.0f) { dB = 20.0f * ::log10f(m_fValue); m_fValue = 0.0f; } if (dB < QSYNTH_METER_MINDB) dB = QSYNTH_METER_MINDB; else if (dB > QSYNTH_METER_MAXDB) dB = QSYNTH_METER_MAXDB; int iValue = m_pMeter->iec_scale(dB); if (iValue < m_iValue) { iValue = int(m_fValueDecay * float(m_iValue)); m_fValueDecay *= m_fValueDecay; } else { m_fValueDecay = QSYNTH_METER_DECAY_RATE1; } int iPeak = m_iPeak; if (iPeak < iValue) { iPeak = iValue; m_iPeakHold = 0; m_fPeakDecay = QSYNTH_METER_DECAY_RATE2; m_iPeakColor = qsynthMeter::Color10dB; for (; m_iPeakColor > qsynthMeter::ColorOver && iPeak >= m_pMeter->iec_level(m_iPeakColor); --m_iPeakColor) /* empty body loop */; } else if (++m_iPeakHold > m_pMeter->peakFalloff()) { iPeak = int(m_fPeakDecay * float(iPeak)); if (iPeak < iValue) { iPeak = iValue; } else { m_fPeakDecay *= m_fPeakDecay; } } if (iValue == m_iValue && iPeak == m_iPeak) return; m_iValue = iValue; m_iPeak = iPeak; update(); } // Paint event handler. void qsynthMeterValue::paintEvent ( QPaintEvent * ) { QPainter painter(this); const int w = QWidget::width(); const int h = QWidget::height(); int y; if (isEnabled()) { painter.fillRect(0, 0, w, h, m_pMeter->color(qsynthMeter::ColorBack)); y = m_pMeter->iec_level(qsynthMeter::Color0dB); painter.setPen(m_pMeter->color(qsynthMeter::ColorFore)); painter.drawLine(0, h - y, w, h - y); } else { painter.fillRect(0, 0, w, h, QWidget::palette().dark().color()); } #ifdef CONFIG_GRADIENT painter.drawPixmap(0, h - m_iValue, m_pMeter->pixmap(), 0, h - m_iValue, w, m_iValue); #else y = m_iValue; int y_over = 0; int y_curr = 0; for (int i = qsynthMeter::Color10dB; i > qsynthMeter::ColorOver && y >= y_over; --i) { y_curr = m_pMeter->iec_level(i); if (y < y_curr) { painter.fillRect(0, h - y, w, y - y_over, m_pMeter->color(i)); } else { painter.fillRect(0, h - y_curr, w, y_curr - y_over, m_pMeter->color(i)); } y_over = y_curr; } if (y > y_over) { painter.fillRect(0, h - y, w, y - y_over, m_pMeter->color(qsynthMeter::ColorOver)); } #endif painter.setPen(m_pMeter->color(m_iPeakColor)); painter.drawLine(0, h - m_iPeak, w, h - m_iPeak); } // Resize event handler. void qsynthMeterValue::resizeEvent ( QResizeEvent *pResizeEvent ) { m_iPeak = 0; QWidget::resizeEvent(pResizeEvent); // QWidget::repaint(true); } //---------------------------------------------------------------------------- // qsynthMeter -- Meter bridge slot widget. // Constructor. qsynthMeter::qsynthMeter ( QWidget *pParent ) : QWidget(pParent) { m_iPortCount = 2; // FIXME: Default port count. m_iScaleCount = m_iPortCount; m_ppValues = nullptr; m_ppScales = nullptr; m_fScale = 0.0f; #ifdef CONFIG_GRADIENT m_pPixmap = new QPixmap(); #endif m_iPeakFalloff = QSYNTH_METER_PEAK_FALLOFF; for (int i = 0; i < LevelCount; i++) m_levels[i] = 0; m_colors[ColorOver] = QColor(240, 0, 20); m_colors[Color0dB] = QColor(240,160, 20); m_colors[Color3dB] = QColor(220,220, 20); m_colors[Color6dB] = QColor(160,220, 20); m_colors[Color10dB] = QColor( 40,160, 40); m_colors[ColorBack] = QColor( 20, 40, 20); m_colors[ColorFore] = QColor( 80, 80, 80); m_pHBoxLayout = new QHBoxLayout(); m_pHBoxLayout->setMargin(0); m_pHBoxLayout->setSpacing(0); QWidget::setLayout(m_pHBoxLayout); QWidget::setBackgroundRole(QPalette::NoRole); if (m_iPortCount > 0) { if (m_iPortCount > 1) m_iScaleCount--; m_ppValues = new qsynthMeterValue *[m_iPortCount]; m_ppScales = new qsynthMeterScale *[m_iScaleCount]; for (int iPort = 0; iPort < m_iPortCount; iPort++) { m_ppValues[iPort] = new qsynthMeterValue(this); m_pHBoxLayout->addWidget(m_ppValues[iPort]); if (iPort < m_iScaleCount) { m_ppScales[iPort] = new qsynthMeterScale(this); m_pHBoxLayout->addWidget(m_ppScales[iPort]); } } int iStripCount = 2 * m_iPortCount; if (m_iPortCount > 1) --iStripCount; QWidget::setMinimumSize(12 * iStripCount, 120); QWidget::setMaximumWidth(16 * iStripCount); } else { QWidget::setMinimumSize(2, 120); QWidget::setMaximumWidth(4); } QWidget::setSizePolicy( QSizePolicy(QSizePolicy::Minimum, QSizePolicy::Expanding)); } // Default destructor. qsynthMeter::~qsynthMeter (void) { #ifdef CONFIG_GRADIENT delete m_pPixmap; #endif for (int iPort = 0; iPort < m_iPortCount; iPort++) { delete m_ppValues[iPort]; if (iPort < m_iScaleCount) delete m_ppScales[iPort]; } delete [] m_ppScales; delete [] m_ppValues; delete m_pHBoxLayout; } // Child widget accessors. int qsynthMeter::iec_scale ( float dB ) const { float fDef = 1.0; if (dB < -70.0) fDef = 0.0; else if (dB < -60.0) fDef = (dB + 70.0) * 0.0025; else if (dB < -50.0) fDef = (dB + 60.0) * 0.005 + 0.025; else if (dB < -40.0) fDef = (dB + 50.0) * 0.0075 + 0.075; else if (dB < -30.0) fDef = (dB + 40.0) * 0.015 + 0.15; else if (dB < -20.0) fDef = (dB + 30.0) * 0.02 + 0.3; else /* if (dB < 0.0) */ fDef = (dB + 20.0) * 0.025 + 0.5; return (int) (fDef * m_fScale); } int qsynthMeter::iec_level ( int iIndex ) const { return m_levels[iIndex]; } int qsynthMeter::portCount (void) const { return m_iPortCount; } // Peak falloff mode setting. void qsynthMeter::setPeakFalloff ( int iPeakFalloff ) { m_iPeakFalloff = iPeakFalloff; } int qsynthMeter::peakFalloff (void) const { return m_iPeakFalloff; } // Reset peak holder. void qsynthMeter::peakReset (void) { for (int iPort = 0; iPort < m_iPortCount; iPort++) m_ppValues[iPort]->peakReset(); } #ifdef CONFIG_GRADIENT // Gradient pixmap accessor. const QPixmap& qsynthMeter::pixmap (void) const { return *m_pPixmap; } void qsynthMeter::updatePixmap (void) { const int w = QWidget::width(); const int h = QWidget::height(); QLinearGradient grad(0, 0, 0, h); grad.setColorAt(0.2f, color(ColorOver)); grad.setColorAt(0.3f, color(Color0dB)); grad.setColorAt(0.4f, color(Color3dB)); grad.setColorAt(0.6f, color(Color6dB)); grad.setColorAt(0.8f, color(Color10dB)); *m_pPixmap = QPixmap(w, h); QPainter(m_pPixmap).fillRect(0, 0, w, h, grad); } #endif // Slot refreshment. void qsynthMeter::refresh (void) { for (int iPort = 0; iPort < m_iPortCount; iPort++) m_ppValues[iPort]->refresh(); } // Resize event handler. void qsynthMeter::resizeEvent ( QResizeEvent * ) { m_fScale = 0.85f * float(QWidget::height()); m_levels[Color0dB] = iec_scale( 0.0f); m_levels[Color3dB] = iec_scale( -3.0f); m_levels[Color6dB] = iec_scale( -6.0f); m_levels[Color10dB] = iec_scale(-10.0f); #ifdef CONFIG_GRADIENT updatePixmap(); #endif } // Meter value proxy. void qsynthMeter::setValue ( int iPort, float fValue ) { m_ppValues[iPort]->setValue(fValue); } // Common resource accessor. const QColor& qsynthMeter::color ( int iIndex ) const { return m_colors[iIndex]; } // end of qsynthMeter.cpp qsynth-0.6.1/src/PaxHeaders.5367/qsynthOptionsForm.h0000644000000000000000000000013213577702221017221 xustar0030 mtime=1577026705.846992838 30 atime=1577026705.846992838 30 ctime=1577026705.846992838 qsynth-0.6.1/src/qsynthOptionsForm.h0000644000175000001440000000403513577702221020050 0ustar00rncbcusers00000000000000// qsynthOptionsForm.h // /**************************************************************************** Copyright (C) 2003-2019, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. *****************************************************************************/ #ifndef __qsynthOptionsForm_h #define __qsynthOptionsForm_h #include "ui_qsynthOptionsForm.h" // Forward declarations. class qsynthOptions; //---------------------------------------------------------------------------- // qsynthOptionsForm -- UI wrapper form. class qsynthOptionsForm : public QDialog { Q_OBJECT public: // Constructor. qsynthOptionsForm(QWidget *pParent = 0, Qt::WindowFlags wflags = 0); // Destructor. ~qsynthOptionsForm(); void setup(qsynthOptions *pOptions); protected slots: void optionsChanged(); void chooseMessagesFont(); void browseMessagesLogPath(); void editCustomColorThemes(); void accept(); void reject(); protected: // Custom color/style themes settlers. void resetCustomColorThemes(const QString& sCustomColorTheme); void resetCustomStyleThemes(const QString& sCustomStyleTheme); void stabilizeForm(); private: // The Qt-designer UI struct... Ui::qsynthOptionsForm m_ui; // Instance variables. qsynthOptions *m_pOptions; int m_iDirtySetup; int m_iDirtyCount; }; #endif // __qsynthOptionsForm_h // end of qsynthOptionsForm.h qsynth-0.6.1/src/PaxHeaders.5367/qsynthMainForm.cpp0000644000000000000000000000013213577702221017005 xustar0030 mtime=1577026705.844992838 30 atime=1577026705.844992838 30 ctime=1577026705.844992838 qsynth-0.6.1/src/qsynthMainForm.cpp0000644000175000001440000023210413577702221017634 0ustar00rncbcusers00000000000000// qsynthMainForm.cpp // /**************************************************************************** Copyright (C) 2003-2019, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. *****************************************************************************/ #include "qsynthAbout.h" #include "qsynthMainForm.h" #include "qsynthEngine.h" #include "qsynthTabBar.h" #ifdef CONFIG_SYSTEM_TRAY #include "qsynthSystemTray.h" #endif #include "qsynthAboutForm.h" #include "qsynthSetupForm.h" #include "qsynthOptionsForm.h" #include "qsynthMessagesForm.h" #include "qsynthChannelsForm.h" #include "qsynthDialClassicStyle.h" #include "qsynthDialVokiStyle.h" #include "qsynthDialPeppinoStyle.h" #include "qsynthDialSkulptureStyle.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) #include #endif #if QT_VERSION < QT_VERSION_CHECK(4, 5, 0) namespace Qt { const WindowFlags WindowCloseButtonHint = WindowFlags(0x08000000); } #endif // Timer constant stuff. #define QSYNTH_TIMER_MSECS 100 #define QSYNTH_DELAY_MSECS 300 // Scale factors. #define QSYNTH_MASTER_GAIN_SCALE 100.0f #define QSYNTH_REVERB_ROOM_SCALE 100.0f #define QSYNTH_REVERB_DAMP_SCALE 100.0f #define QSYNTH_REVERB_WIDTH_SCALE 1.0f #define QSYNTH_REVERB_LEVEL_SCALE 100.0f #define QSYNTH_CHORUS_NR_SCALE 1.0f #define QSYNTH_CHORUS_LEVEL_SCALE 100.0f #define QSYNTH_CHORUS_SPEED_SCALE 100.0f #define QSYNTH_CHORUS_DEPTH_SCALE 10.0f #if defined(__WIN32__) || defined(_WIN32) || defined(WIN32) #undef HAVE_SIGNAL_H #else #include #include // Notification pipe descriptors #define QSYNTH_FDNIL -1 #define QSYNTH_FDREAD 0 #define QSYNTH_FDWRITE 1 static int g_fdStdout[2] = { QSYNTH_FDNIL, QSYNTH_FDNIL }; #endif //------------------------------------------------------------------------- // UNIX Signal handling support stuff. #ifdef HAVE_SIGNAL_H #include #include #include // File descriptor for SIGTERM notifier. static int g_fdSigterm[2] = { QSYNTH_FDNIL, QSYNTH_FDNIL }; // Unix SIGTERM signal handler. static void qsynth_sigterm_handler ( int /* signo */ ) { char c = 1; (::write(g_fdSigterm[0], &c, sizeof(c)) > 0); } #endif // HAVE_SIGNAL_H // Needed for lroundf() #ifdef CONFIG_ROUND #include #else static inline long lroundf ( float x ) { if (x >= 0.0f) return long(x + 0.5f); else return long(x - 0.5f); } #endif // The current selected engine. static qsynthEngine *g_pCurrentEngine = nullptr; #ifdef CONFIG_FLUID_SERVER #ifndef CONFIG_NEW_FLUID_SERVER // Hold last shell/server port in use. static int g_iLastShellPort = 0; // Needed for server mode. static fluid_cmd_handler_t *qsynth_newclient ( void *data, char * ) { qsynthEngine *pEngine = (qsynthEngine *) data; if (pEngine) return ::new_fluid_cmd_handler(pEngine->pSynth); else return nullptr; } #endif #endif //------------------------------------------------------------------------- // Audio driver processing stub. int qsynth_process ( void *pvData, int len, int nfx, float **fx, int nout, float **out ) { qsynthEngine *pEngine = (qsynthEngine *) pvData; // Call the synthesizer process function to fill // the output buffers with its audio output. #if FLUIDSYNTH_VERSION_MAJOR >= 2 nfx = nout; fx = out; #endif if (::fluid_synth_process(pEngine->pSynth, len, nfx, fx, nout, out) != 0) return -1; // Now find the peak level for this buffer run... if (pEngine == g_pCurrentEngine) { for (int i = 0; i < nout; ++i) { const float *out_i = out[i]; for (int j = 0; j < len; ++j) { const float fValue = out_i[j]; if (pEngine->fMeterValue[i & 1] < fValue) pEngine->fMeterValue[i & 1] = fValue; } } } // Surely a success :) return 0; } //------------------------------------------------------------------------- // Midi router stubs to have some midi activity feedback. #define QSYNTH_MIDI_NOTE_OFF 0x80 #define QSYNTH_MIDI_NOTE_ON 0x90 #define QSYNTH_MIDI_CONTROL_CHANGE 0xb0 #define QSYNTH_MIDI_PROGRAM_CHANGE 0xc0 #define QSYNTH_MIDI_CC_BANK_SELECT_MSB 0x00 #define QSYNTH_MIDI_CC_BANK_SELECT_LSB 0x20 #define QSYNTH_MIDI_CC_ALL_SOUND_OFF 0x78 struct qsynth_midi_channel { int iEvent; // Event occurrence accumulator. int iState; // Activity state tracker. int iChange; // Change activity accumulator. }; static int g_iMidiChannels = 0; static qsynth_midi_channel *g_pMidiChannels = nullptr; static void qsynth_midi_event ( qsynthEngine *pEngine, fluid_midi_event_t *pMidiEvent ) { pEngine->iMidiEvent++; if (g_pMidiChannels && pEngine == g_pCurrentEngine) { const int iChan = ::fluid_midi_event_get_channel(pMidiEvent); #ifdef CONFIG_DEBUG const int iType = ::fluid_midi_event_get_type(pMidiEvent); const int iKey = ::fluid_midi_event_get_control(pMidiEvent); const int iVal = ::fluid_midi_event_get_value(pMidiEvent); fprintf(stderr, "Type=%03d (0x%02x) Chan=%02d Key=%03d (0x%02x) Val=%03d (0x%02x).\n", iType, iType, iChan, iKey, iKey, iVal, iVal); #endif if (iChan >= 0 && iChan < g_iMidiChannels) { switch (::fluid_midi_event_get_type(pMidiEvent)) { case QSYNTH_MIDI_CONTROL_CHANGE: { // Avoid bank selects or global control changes... const int iCC = ::fluid_midi_event_get_control(pMidiEvent); if (iCC == QSYNTH_MIDI_CC_BANK_SELECT_MSB || iCC == QSYNTH_MIDI_CC_BANK_SELECT_LSB || iCC >= QSYNTH_MIDI_CC_ALL_SOUND_OFF) break; } // Fall thru... case QSYNTH_MIDI_PROGRAM_CHANGE: g_pMidiChannels[iChan].iChange++; // Fall thru... case QSYNTH_MIDI_NOTE_ON: case QSYNTH_MIDI_NOTE_OFF: g_pMidiChannels[iChan].iEvent++; break; } } } } static int qsynth_dump_postrouter ( void *pvData, fluid_midi_event_t *pMidiEvent ) { qsynthEngine *pEngine = (qsynthEngine *) pvData; qsynth_midi_event(pEngine, pMidiEvent); return ::fluid_midi_dump_postrouter(pEngine->pSynth, pMidiEvent); } static int qsynth_handle_midi_event ( void *pvData, fluid_midi_event_t *pMidiEvent ) { qsynthEngine *pEngine = (qsynthEngine *) pvData; qsynth_midi_event(pEngine, pMidiEvent); return ::fluid_synth_handle_midi_event(pEngine->pSynth, pMidiEvent); } //------------------------------------------------------------------------- // Scaling & Clipping helpers. static int qsynth_set_range_value ( QDial *pDial, float fScale, float fValue ) { int iValue = int(::lroundf(fScale * fValue)); if (iValue < pDial->minimum()) iValue = pDial->minimum(); else if (iValue > pDial->maximum()) iValue = pDial->maximum(); pDial->setValue(iValue); return iValue; } static float qsynth_get_range_value ( QSpinBox *pSpinBox, float fScale ) { float fValue = float(pSpinBox->value()) / fScale; const float fMinimum = float(pSpinBox->minimum()) / fScale; const float fMaximum = float(pSpinBox->maximum()) / fScale; if (fValue < fMinimum) fValue = fMinimum; else if (fValue > fMaximum) fValue = fMaximum; return fValue; } #ifdef QSYNTH_CUSTOM_LOADER //------------------------------------------------------------------------- // (EXPERIMENTAL) Soundfont loader: feature to avoid loading // duplicate soundfonts for multiple engines. static struct qsynthEngineNode { qsynthEngine *pEngine; qsynthEngineNode *pPrev; qsynthEngineNode *pNext; } *g_pEngineList = nullptr; static int qsynth_sfont_free ( fluid_sfont_t *pSoundFont ) { #ifdef CONFIG_DEBUG fprintf(stderr, "qsynth_sfont_free(%p)\n", pSoundFont); #endif if (pSoundFont) ::free(pSoundFont); return 0; } static int qsynth_sfloader_free ( fluid_sfloader_t * pLoader ) { #ifdef CONFIG_DEBUG fprintf(stderr, "qsynth_sfloader_free(%p)\n", pLoader); #endif if (pLoader) ::free(pLoader); return 0; } static fluid_sfont_t *qsynth_sfloader_load ( fluid_sfloader_t *pLoader, const char *pszFilename ) { #ifdef CONFIG_DEBUG fprintf(stderr, "qsynth_sfloader_load(%p, \"%s\")\n", pLoader, pszFilename); #endif if (pLoader == nullptr) return nullptr; // Look thru all the synths' sfonts for the requested one... qsynthEngineNode *pNode = g_pEngineList; while (pNode) { fluid_synth_t *pSynth = (pNode->pEngine)->pSynth; const int iSoundFonts = ::fluid_synth_sfcount(pSynth); for (int i = 0; i < iSoundFonts; ++i) { fluid_sfont_t *pSoundFont = ::fluid_synth_get_sfont(pSynth, i); // Somehow get the name of this sfont... char *pszName = pSoundFont->get_name(pSoundFont); // Create a dup sfont node with our 'free' routine, // when we have a match if (::strcmp(pszName, pszFilename) == 0) { fluid_sfont_t *pNewSoundFont = (fluid_sfont_t *) ::malloc(sizeof(fluid_sfont_t)); ::memcpy(pNewSoundFont, pSoundFont, sizeof(fluid_sfont_t)); pNewSoundFont->free = qsynth_sfont_free; return pNewSoundFont; } } pNode = pNode->pNext; } // fluidsynth will call next (or default) loader... return nullptr; } #endif // QSYNTH_CUSTOM_LOADER //---------------------------------------------------------------------------- // qsynthMainForm -- UI wrapper form. // Kind of singleton reference. qsynthMainForm *qsynthMainForm::g_pMainForm = nullptr; // Constructor. qsynthMainForm::qsynthMainForm ( QWidget *pParent, Qt::WindowFlags wflags ) : QWidget(pParent, wflags), m_menu(this) { // Setup UI struct... m_ui.setupUi(this); // Pseudo-singleton reference setup. g_pMainForm = this; m_pOptions = nullptr; m_iTimerDelay = 0; m_iCurrentTab = -1; m_pStdoutNotifier = nullptr; m_iGainChanged = 0; m_iReverbChanged = 0; m_iChorusChanged = 0; m_iGainUpdated = 0; m_iReverbUpdated = 0; m_iChorusUpdated = 0; // All forms are to be created later on setup. m_pMessagesForm = nullptr; m_pChannelsForm = nullptr; #ifdef CONFIG_SYSTEM_TRAY // The eventual system tray widget. m_pSystemTray = nullptr; m_iSystemTrayState = 0; m_bQuitClose = false; #endif // We're not quitting so early :) m_bQuitForce = false; // Whether we've Qt::Tool flag (from bKeepOnTop), // this is actually the main last application window... QWidget::setAttribute(Qt::WA_QuitOnClose); #ifdef HAVE_SIGNAL_H // Set to ignore any fatal "Broken pipe" signals. ::signal(SIGPIPE, SIG_IGN); // Initialize file descriptors for SIGTERM socket notifier. ::socketpair(AF_UNIX, SOCK_STREAM, 0, g_fdSigterm); m_pSigtermNotifier = new QSocketNotifier(g_fdSigterm[1], QSocketNotifier::Read, this); QObject::connect(m_pSigtermNotifier, SIGNAL(activated(int)), SLOT(sigtermNotifySlot(int))); // Install SIGTERM signal handler. struct sigaction sigterm; sigterm.sa_handler = qsynth_sigterm_handler; sigemptyset(&sigterm.sa_mask); sigterm.sa_flags = 0; sigterm.sa_flags |= SA_RESTART; ::sigaction(SIGTERM, &sigterm, nullptr); ::sigaction(SIGQUIT, &sigterm, nullptr); // Ignore SIGHUP/SIGINT signals. ::signal(SIGHUP, SIG_IGN); ::signal(SIGINT, SIG_IGN); // Also ignore SIGUSR1 (LADISH Level 1). ::signal(SIGUSR1, SIG_IGN); #else // HAVE_SIGNAL_H m_pSigtermNotifier = nullptr; #endif // !HAVE_SIGNAL_H m_ui.GainSpinBox->setAccelerated(true); m_ui.ReverbRoomSpinBox->setAccelerated(true); m_ui.ReverbDampSpinBox->setAccelerated(true); m_ui.ReverbWidthSpinBox->setAccelerated(true); m_ui.ReverbLevelSpinBox->setAccelerated(true); m_ui.ChorusNrSpinBox->setAccelerated(true); m_ui.ChorusLevelSpinBox->setAccelerated(true); m_ui.ChorusSpeedSpinBox->setAccelerated(true); m_ui.ChorusDepthSpinBox->setAccelerated(true); // UI connections... QObject::connect(m_ui.SetupPushButton, SIGNAL(clicked()), SLOT(showSetupForm())); QObject::connect(m_ui.GainDial, SIGNAL(valueChanged(int)), m_ui.GainSpinBox, SLOT(setValue(int))); QObject::connect(m_ui.ReverbActiveCheckBox, SIGNAL(toggled(bool)), SLOT(reverbActivate(bool))); QObject::connect(m_ui.ReverbRoomDial, SIGNAL(valueChanged(int)), m_ui.ReverbRoomSpinBox, SLOT(setValue(int))); QObject::connect(m_ui.ReverbDampDial, SIGNAL(valueChanged(int)), m_ui.ReverbDampSpinBox, SLOT(setValue(int))); QObject::connect(m_ui.ReverbWidthDial, SIGNAL(valueChanged(int)), m_ui.ReverbWidthSpinBox, SLOT(setValue(int))); QObject::connect(m_ui.ReverbLevelDial, SIGNAL(valueChanged(int)), m_ui.ReverbLevelSpinBox, SLOT(setValue(int))); QObject::connect(m_ui.ChorusActiveCheckBox, SIGNAL(toggled(bool)), SLOT(chorusActivate(bool))); QObject::connect(m_ui.ChorusNrDial, SIGNAL(valueChanged(int)), m_ui.ChorusNrSpinBox, SLOT(setValue(int))); QObject::connect(m_ui.ChorusLevelDial, SIGNAL(valueChanged(int)), m_ui.ChorusLevelSpinBox, SLOT(setValue(int))); QObject::connect(m_ui.ChorusSpeedDial, SIGNAL(valueChanged(int)), m_ui.ChorusSpeedSpinBox, SLOT(setValue(int))); QObject::connect(m_ui.ChorusDepthDial, SIGNAL(valueChanged(int)), m_ui.ChorusDepthSpinBox, SLOT(setValue(int))); QObject::connect(m_ui.ChorusTypeComboBox, SIGNAL(activated(int)), SLOT(chorusChanged(int))); QObject::connect(m_ui.GainSpinBox, SIGNAL(valueChanged(int)), SLOT(gainChanged(int))); QObject::connect(m_ui.ReverbRoomSpinBox, SIGNAL(valueChanged(int)), SLOT(reverbChanged(int))); QObject::connect(m_ui.ReverbDampSpinBox, SIGNAL(valueChanged(int)), SLOT(reverbChanged(int))); QObject::connect(m_ui.ReverbWidthSpinBox, SIGNAL(valueChanged(int)), SLOT(reverbChanged(int))); QObject::connect(m_ui.ReverbLevelSpinBox, SIGNAL(valueChanged(int)), SLOT(reverbChanged(int))); QObject::connect(m_ui.ChorusNrSpinBox, SIGNAL(valueChanged(int)), SLOT(chorusChanged(int))); QObject::connect(m_ui.ChorusLevelSpinBox, SIGNAL(valueChanged(int)), SLOT(chorusChanged(int))); QObject::connect(m_ui.ChorusSpeedSpinBox, SIGNAL(valueChanged(int)), SLOT(chorusChanged(int))); QObject::connect(m_ui.ChorusDepthSpinBox, SIGNAL(valueChanged(int)), SLOT(chorusChanged(int))); QObject::connect(m_ui.ProgramResetPushButton, SIGNAL(clicked()), SLOT(programReset())); QObject::connect(m_ui.SystemResetPushButton, SIGNAL(clicked()), SLOT(systemReset())); QObject::connect(m_ui.RestartPushButton, SIGNAL(clicked()), SLOT(promptRestart())); QObject::connect(m_ui.ChannelsPushButton, SIGNAL(clicked()), SLOT(toggleChannelsForm())); QObject::connect(m_ui.QuitPushButton, SIGNAL(clicked()), SLOT(quitMainForm())); QObject::connect(m_ui.OptionsPushButton, SIGNAL(clicked()), SLOT(showOptionsForm())); QObject::connect(m_ui.MessagesPushButton, SIGNAL(clicked()), SLOT(toggleMessagesForm())); QObject::connect(m_ui.AboutPushButton, SIGNAL(clicked()), SLOT(showAboutForm())); QObject::connect(m_ui.NewEngineToolButton, SIGNAL(clicked()), SLOT(newEngine())); QObject::connect(m_ui.DeleteEngineToolButton, SIGNAL(clicked()), SLOT(deleteEngine())); m_pKnobStyle = nullptr; } // Destructor. qsynthMainForm::~qsynthMainForm (void) { #ifdef HAVE_SIGNAL_H if (m_pSigtermNotifier) delete m_pSigtermNotifier; #endif // Stop the press! const int iTabCount = m_ui.TabBar->count(); for (int iTab = 0; iTab < iTabCount; ++iTab) { qsynthEngine *pEngine = m_ui.TabBar->engine(iTab); if (pEngine) stopEngine(pEngine); } // No more options descriptor. m_pOptions = nullptr; // Finally drop any popup widgets around... if (m_pMessagesForm) delete m_pMessagesForm; if (m_pChannelsForm) delete m_pChannelsForm; #ifdef CONFIG_SYSTEM_TRAY // Quit off system tray widget. if (m_pSystemTray) delete m_pSystemTray; #endif // Pseudo-singleton reference shut-down. g_pMainForm = nullptr; if (m_pKnobStyle) delete m_pKnobStyle; } // Kind of singleton reference. qsynthMainForm *qsynthMainForm::getInstance (void) { return g_pMainForm; } // Make and set a proper setup step. void qsynthMainForm::setup ( qsynthOptions *pOptions ) { // Finally, fix settings descriptor // and stabilize the form. m_pOptions = pOptions; // What style do we create these forms? QWidget *pParent = nullptr; Qt::WindowFlags wflags = Qt::Window | Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowMinMaxButtonsHint | Qt::WindowCloseButtonHint; if (m_pOptions->bKeepOnTop) { pParent = this; wflags |= Qt::Tool; } // All forms are to be created right now. m_pMessagesForm = new qsynthMessagesForm(pParent, wflags); m_pChannelsForm = new qsynthChannelsForm(pParent, wflags); // Setup appropriately... m_pMessagesForm->setLogging(m_pOptions->bMessagesLog, m_pOptions->sMessagesLogPath); // Get the default setup and dummy instace tab. m_ui.TabBar->addEngine(new qsynthEngine(m_pOptions)); // And all additional custom ones... QStringListIterator iter(m_pOptions->engines); while (iter.hasNext()) m_ui.TabBar->addEngine(new qsynthEngine(m_pOptions, iter.next())); // Try to restore old window positioning. m_pOptions->loadWidgetGeometry(this, true); // And for the whole widget gallore... m_pOptions->loadWidgetGeometry(m_pMessagesForm); m_pOptions->loadWidgetGeometry(m_pChannelsForm); // Set defaults... updateMessagesFont(); updateMessagesLimit(); updateOutputMeters(); #ifdef CONFIG_SYSTEM_TRAY updateSystemTray(); #endif // Knobs updateKnobs(); #if !defined(__WIN32__) && !defined(_WIN32) && !defined(WIN32) // Check if we can redirect our own stdout/stderr... if (m_pOptions->bStdoutCapture && ::pipe(g_fdStdout) == 0) { ::dup2(g_fdStdout[QSYNTH_FDWRITE], STDOUT_FILENO); ::dup2(g_fdStdout[QSYNTH_FDWRITE], STDERR_FILENO); stdoutBlock(g_fdStdout[QSYNTH_FDWRITE], false); m_pStdoutNotifier = new QSocketNotifier( g_fdStdout[QSYNTH_FDREAD], QSocketNotifier::Read, this); QObject::connect(m_pStdoutNotifier, SIGNAL(activated(int)), SLOT(stdoutNotifySlot(int))); } #endif // We'll accept drops from now on... setAcceptDrops(true); // Initial selection... tabSelect(0); // Final startup stabilization... stabilizeForm(); // TabBar management. QObject::connect(m_ui.TabBar, SIGNAL(currentChanged(int)), SLOT(tabSelect(int))); QObject::connect(m_ui.TabBar, SIGNAL(contextMenuRequested(int, const QPoint &)), SLOT(tabContextMenu(int, const QPoint &))); // Register the initial timer slot. QTimer::singleShot(QSYNTH_TIMER_MSECS, this, SLOT(timerSlot())); } // Window close event handlers. bool qsynthMainForm::queryClose (void) { bool bQueryClose = true; // Now's the time? if (m_pOptions) { #ifdef CONFIG_SYSTEM_TRAY // If we're not quitting explicitly and there's an // active system tray icon, then just hide ourselves. if (!m_bQuitClose && !m_bQuitForce && isVisible() && m_pOptions->bSystemTray && m_pSystemTray) { m_pOptions->saveWidgetGeometry(this, true); if (m_pOptions->bSystemTrayQueryClose) { const QString& sTitle = tr("Information"); const QString& sText = tr("The program will keep running in the system tray.\n\n" "To terminate the program, please choose \"Quit\"\n" "in the context menu of the system tray icon."); #if 0//QSYNTH_SYSTEM_TRAY_QUERY_CLSOE if (QSystemTrayIcon::supportsMessages()) { m_pSystemTray->showMessage( sTitle, sText, QSystemTrayIcon::Information); } else QMessageBox::information(this, sTitle, sText); #else QMessageBox mbox(this); mbox.setIcon(QMessageBox::Information); mbox.setWindowTitle(sTitle); mbox.setText(sText); mbox.setStandardButtons(QMessageBox::Ok); QCheckBox cbox(tr("Don't show this message again")); cbox.setChecked(false); cbox.blockSignals(true); mbox.addButton(&cbox, QMessageBox::ActionRole); mbox.exec(); if (cbox.isChecked()) m_pOptions->bSystemTrayQueryClose = false; #endif } hide(); updateContextMenu(); bQueryClose = false; } #endif // Dow we quit right away? if (bQueryClose && !m_bQuitForce && m_pOptions->bQueryClose) { const int iTabCount = m_ui.TabBar->count(); for (int iTab = 0; iTab < iTabCount; ++iTab) { qsynthEngine *pEngine = m_ui.TabBar->engine(iTab); if (pEngine && pEngine->pSynth) { show(); raise(); activateWindow(); updateContextMenu(); const QString& sTitle = tr("Warning"); const QString& sText = QSYNTH_TITLE " " + tr("is about to terminate.") + "\n\n" + tr("Are you sure?"); #if 0//QSYNTH_QUERY_CLOSE bQueryClose = (QMessageBox::warning(this, sTitle, sText, QMessageBox::Ok | QMessageBox::Cancel) == QMessageBox::Ok); #else QMessageBox mbox(this); mbox.setIcon(QMessageBox::Warning); mbox.setWindowTitle(sTitle); mbox.setText(sText); mbox.setStandardButtons(QMessageBox::Ok | QMessageBox::Cancel); QCheckBox cbox(tr("Don't ask this again")); cbox.setChecked(false); cbox.blockSignals(true); mbox.addButton(&cbox, QMessageBox::ActionRole); bQueryClose = (mbox.exec() == QMessageBox::Ok); if (bQueryClose && cbox.isChecked()) m_pOptions->bQueryClose = false; #endif break; } } } // Some windows default fonts is here on demeand too. if (bQueryClose && m_pMessagesForm) m_pOptions->sMessagesFont = m_pMessagesForm->messagesFont().toString(); // Try to save current positioning. if (bQueryClose) { m_pOptions->saveWidgetGeometry(m_pChannelsForm); m_pOptions->saveWidgetGeometry(m_pMessagesForm); m_pOptions->saveWidgetGeometry(this, true); // Close popup widgets. if (m_pMessagesForm) m_pMessagesForm->close(); if (m_pChannelsForm) m_pChannelsForm->close(); #if 0//CONFIG_SYSTEM_TRAY_0 // And the system tray icon too. if (m_pSystemTray) m_pSystemTray->close(); #endif } } // Whether we're really quitting. #ifdef CONFIG_SYSTEM_TRAY m_bQuitClose = bQueryClose; #endif m_bQuitForce = bQueryClose; return bQueryClose; } void qsynthMainForm::closeEvent ( QCloseEvent *pCloseEvent ) { // Let's be sure about that... if (queryClose()) { pCloseEvent->accept(); QApplication::quit(); } else { pCloseEvent->ignore(); } } // Add dropped files to playlist or soundfont stack. void qsynthMainForm::playLoadFiles ( qsynthEngine *pEngine, const QStringList& files, bool bSetup ) { if (pEngine == nullptr) return; if (pEngine->pSynth == nullptr) return; qsynthSetup *pSetup = pEngine->setup(); if (pSetup == nullptr) return; // Add each list item to Soundfont stack or MIDI player playlist... const QString sPrefix = pEngine->name() + ": "; const QString sElipsis = "..."; int iSoundFonts = 0; int iMidiFiles = 0; QStringListIterator iter(files); while (iter.hasNext()) { const QString& sFilename = iter.next(); // Is it a soundfont file... if (::fluid_is_soundfont(sFilename.toLocal8Bit().data())) { if (bSetup || !pSetup->soundfonts.contains(sFilename)) { appendMessagesColor(sPrefix + tr("Loading soundfont: \"%1\"") .arg(sFilename) + sElipsis, "#999933"); if (::fluid_synth_sfload( pEngine->pSynth, sFilename.toLocal8Bit().data(), 1) >= 0) { iSoundFonts++; if (!bSetup) { pSetup->soundfonts.append(sFilename); pSetup->bankoffsets.append("0"); } } else { appendMessagesError(sPrefix + tr("Failed to load the soundfont: \"%1\".") .arg(sFilename)); } } } else // Or is it a bare midifile? if (::fluid_is_midifile(sFilename.toLocal8Bit().data()) && pEngine->pPlayer) { appendMessagesColor(sPrefix + tr("Playing MIDI file: \"%1\"") .arg(sFilename) + sElipsis, "#99cc66"); if (::fluid_player_add( pEngine->pPlayer, sFilename.toLocal8Bit().data()) >= 0) { iMidiFiles++; } else { appendMessagesError(sPrefix + tr("Failed to play MIDI file: \"%1\".") .arg(sFilename)); } } } // Reset all presets, if applicable... if (!bSetup && iSoundFonts > 0) { resetEngine(pEngine); resetChannelsForm(pEngine, false); } // Start playing, if any... if (pEngine->pPlayer && iMidiFiles > 0) ::fluid_player_play(pEngine->pPlayer); } void qsynthMainForm::dragEnterEvent ( QDragEnterEvent* pDragEnterEvent ) { bool bAccept = false; if (pDragEnterEvent->source() == nullptr) { const QMimeData *pMimeData = pDragEnterEvent->mimeData(); if (pMimeData && pMimeData->hasUrls()) { QListIterator iter(pMimeData->urls()); while (iter.hasNext()) { const QString& sFilename = iter.next().toLocalFile(); if (!sFilename.isEmpty()) { const QByteArray aFilename = sFilename.toLocal8Bit(); const char *pszFilename = aFilename.constData(); if (::fluid_is_midifile(pszFilename) || ::fluid_is_soundfont(pszFilename)) bAccept = true; } } } } if (bAccept) pDragEnterEvent->accept(); else pDragEnterEvent->ignore(); } void qsynthMainForm::dropEvent ( QDropEvent* pDropEvent ) { if (pDropEvent->source()) return; const QMimeData *pMimeData = pDropEvent->mimeData(); if (pMimeData && pMimeData->hasUrls()) { QStringList files; QListIterator iter(pMimeData->urls()); while (iter.hasNext()) { const QString& sFilename = iter.next().toLocalFile(); if (!sFilename.isEmpty()) files.append(sFilename); } playLoadFiles(currentEngine(), files, false); } } // SIGTERM signal handler... void qsynthMainForm::sigtermNotifySlot ( int /* fd */ ) { #ifdef HAVE_SIGNAL_H char c; if (::read(g_fdSigterm[1], &c, sizeof(c)) > 0) quitMainForm(); #endif } // Set stdout/stderr blocking mode. bool qsynthMainForm::stdoutBlock ( int fd, bool bBlock ) const { #if !defined(__WIN32__) && !defined(_WIN32) && !defined(WIN32) const int iFlags = ::fcntl(fd, F_GETFL, 0); const bool bNonBlock = bool(iFlags & O_NONBLOCK); if (bBlock && bNonBlock) bBlock = (::fcntl(fd, F_SETFL, iFlags & ~O_NONBLOCK) == 0); else if (!bBlock && !bNonBlock) bBlock = (::fcntl(fd, F_SETFL, iFlags | O_NONBLOCK) != 0); #endif return bBlock; } // Own stdout/stderr socket notifier slot. void qsynthMainForm::stdoutNotifySlot ( int fd ) { #if !defined(__WIN32__) && !defined(_WIN32) && !defined(WIN32) // Set non-blocking reads, if not already... const bool bBlock = stdoutBlock(fd, false); // Read as much as is available... QString sTemp; char achBuffer[1024]; const int cchBuffer = sizeof(achBuffer) - 1; int cchRead = ::read(fd, achBuffer, cchBuffer); while (cchRead > 0) { achBuffer[cchRead] = (char) 0; sTemp.append(achBuffer); cchRead = (bBlock ? 0 : ::read(fd, achBuffer, cchBuffer)); } // Needs to be non-empty... if (!sTemp.isEmpty()) appendStdoutBuffer(sTemp); #endif } // Stdout buffer handler -- now splitted by complete new-lines... void qsynthMainForm::appendStdoutBuffer ( const QString& sText ) { m_sStdoutBuffer.append(sText); const int iLength = m_sStdoutBuffer.lastIndexOf('\n'); if (iLength > 0) { const QString& sTemp = m_sStdoutBuffer.left(iLength); m_sStdoutBuffer.remove(0, iLength + 1); QStringList list = sTemp.split('\n'); QStringListIterator iter(list); while (iter.hasNext()) appendMessagesText(iter.next()); } } // Stdout flusher -- show up any unfinished line... void qsynthMainForm::flushStdoutBuffer (void) { if (!m_sStdoutBuffer.isEmpty()) { appendMessagesText(m_sStdoutBuffer); m_sStdoutBuffer.truncate(0); } } // Messages output methods. void qsynthMainForm::appendMessages( const QString& sText ) { if (m_pMessagesForm) m_pMessagesForm->appendMessages(sText); } void qsynthMainForm::appendMessagesColor( const QString& sText, const QString& sColor ) { if (m_pMessagesForm) m_pMessagesForm->appendMessagesColor(sText, sColor); } void qsynthMainForm::appendMessagesText( const QString& sText ) { if (m_pMessagesForm) m_pMessagesForm->appendMessagesText(sText); } void qsynthMainForm::appendMessagesError( const QString& sText ) { if (m_pMessagesForm) m_pMessagesForm->show(); appendMessagesColor(sText.simplified(), "#ff0000"); const QString& sTitle = tr("Error"); #ifdef CONFIG_SYSTEM_TRAY if (m_pOptions->bSystemTray && m_pSystemTray && QSystemTrayIcon::supportsMessages()) { m_pSystemTray->showMessage(sTitle, sText, QSystemTrayIcon::Critical); } else #endif QMessageBox::critical(this, sTitle, sText, QMessageBox::Cancel); } // Force update of the messages font. void qsynthMainForm::updateMessagesFont (void) { if (m_pOptions == nullptr) return; if (m_pMessagesForm && !m_pOptions->sMessagesFont.isEmpty()) { QFont font; if (font.fromString(m_pOptions->sMessagesFont)) m_pMessagesForm->setMessagesFont(font); } } // Update messages window line limit. void qsynthMainForm::updateMessagesLimit (void) { if (m_pOptions == nullptr) return; if (m_pMessagesForm) { if (m_pOptions->bMessagesLimit) m_pMessagesForm->setMessagesLimit(m_pOptions->iMessagesLimitLines); else m_pMessagesForm->setMessagesLimit(-1); } } // Force update of the output meters visibility. void qsynthMainForm::updateOutputMeters (void) { if (m_pOptions == nullptr) return; if (m_pOptions->bOutputMeters) m_ui.OutputGroupBox->show(); else m_ui.OutputGroupBox->hide(); // adjustSize(); } #ifdef CONFIG_SYSTEM_TRAY // System tray master switcher. void qsynthMainForm::updateSystemTray (void) { if (m_pOptions == nullptr) return; if (!QSystemTrayIcon::isSystemTrayAvailable()) return; if (!m_pOptions->bSystemTray && m_pSystemTray) { // Strange enough, this would close the application too. // m_pSystemTray->close(); delete m_pSystemTray; m_pSystemTray = nullptr; } if (m_pOptions->bSystemTray && m_pSystemTray == nullptr) { m_pSystemTray = new qsynthSystemTray(this); m_pSystemTray->setContextMenu(&m_menu); m_pSystemTray->show(); QObject::connect(m_pSystemTray, SIGNAL(clicked()), SLOT(toggleMainForm())); } else { // Make sure the main widget is visible. show(); raise(); activateWindow(); } updateContextMenu(); } #endif // Common context menu request slot. void qsynthMainForm::updateContextMenu (void) { if (m_pOptions == nullptr) return; m_menu.clear(); QAction *pAction; QString sHideMinimize = tr("Mi&nimize"); QString sShowRestore = tr("Rest&ore"); #ifdef CONFIG_SYSTEM_TRAY if (m_pOptions->bSystemTray && m_pSystemTray) { sHideMinimize = tr("&Hide"); sShowRestore = tr("S&how"); } #endif pAction = m_menu.addAction(isVisible() ? sHideMinimize : sShowRestore, this, SLOT(toggleMainForm())); m_menu.addSeparator(); pAction = m_menu.addAction(QIcon(":/images/add1.png"), tr("&New engine..."), this, SLOT(newEngine())); pAction = m_menu.addAction(QIcon(":/images/remove1.png"), tr("&Delete"), this, SLOT(deleteEngine())); pAction->setEnabled(g_pCurrentEngine && !g_pCurrentEngine->isDefault()); m_menu.addSeparator(); const bool bEnabled = (g_pCurrentEngine && g_pCurrentEngine->pSynth); pAction = m_menu.addAction(QIcon(":/images/restart1.png"), bEnabled ? tr("Re&start") : tr("&Start"), this, SLOT(promptRestart())); pAction = m_menu.addAction(QIcon(":/images/reset1.png"), tr("&Reset"), this, SLOT(programReset())); pAction->setEnabled(bEnabled); pAction = m_menu.addAction(QIcon(":/images/panic1.png"), tr("&Panic"), this, SLOT(systemReset())); pAction->setEnabled(bEnabled); m_menu.addSeparator(); pAction = m_menu.addAction(QIcon(":/images/channels1.png"), tr("&Channels"), this, SLOT(toggleChannelsForm())); pAction->setCheckable(true); pAction->setChecked(m_pChannelsForm && m_pChannelsForm->isVisible()); pAction->setEnabled(bEnabled); pAction = m_menu.addAction(QIcon(":/images/setup1.png"), tr("Set&up..."), this, SLOT(showSetupForm())); m_menu.addSeparator(); // Construct the actual engines menu, // overriding the last one, if any... // Add presets menu to the main context menu... QMenu *pEnginesMenu = m_menu.addMenu(tr("Engines")); const int iTabCount = m_ui.TabBar->count(); for (int iTab = 0; iTab < iTabCount; ++iTab) { qsynthEngine *pEngine = m_ui.TabBar->engine(iTab); if (pEngine) { pAction = pEnginesMenu->addAction(pEngine->name()); pAction->setCheckable(true); pAction->setChecked(pEngine == g_pCurrentEngine); pAction->setData(iTab); } } QObject::connect(pEnginesMenu, SIGNAL(triggered(QAction*)), SLOT(activateEnginesMenu(QAction*))); m_menu.addSeparator(); pAction = m_menu.addAction(QIcon(":/images/messages1.png"), tr("&Messages"), this, SLOT(toggleMessagesForm())); pAction->setCheckable(true); pAction->setChecked(m_pMessagesForm && m_pMessagesForm->isVisible()); pAction = m_menu.addAction(QIcon(":/images/options1.png"), tr("&Options..."), this, SLOT(showOptionsForm())); // pAction = menu.AddAction(QIcon(":/images/about1.png"), // tr("A&bout..."), this, SLOT(showAboutForm())); m_menu.addSeparator(); pAction = m_menu.addAction(QIcon(":/images/quit1.png"), tr("&Quit"), this, SLOT(quitMainForm())); } // Stabilize current form toggle buttons that may be astray. void qsynthMainForm::stabilizeForm (void) { qsynthEngine *pEngine = currentEngine(); const bool bEnabled = (pEngine && pEngine->pSynth); m_ui.GainGroupBox->setEnabled(bEnabled); m_ui.ReverbGroupBox->setEnabled(bEnabled); m_ui.ChorusGroupBox->setEnabled(bEnabled); m_ui.OutputGroupBox->setEnabled(bEnabled && pEngine->bMeterEnabled); m_ui.ProgramResetPushButton->setEnabled(bEnabled); m_ui.SystemResetPushButton->setEnabled(bEnabled); m_ui.ChannelsPushButton->setEnabled(bEnabled); if (bEnabled) { const bool bReverbActive = m_ui.ReverbActiveCheckBox->isChecked(); m_ui.ReverbRoomTextLabel->setEnabled(bReverbActive); m_ui.ReverbDampTextLabel->setEnabled(bReverbActive); m_ui.ReverbWidthTextLabel->setEnabled(bReverbActive); m_ui.ReverbLevelTextLabel->setEnabled(bReverbActive); m_ui.ReverbRoomDial->setEnabled(bReverbActive); m_ui.ReverbDampDial->setEnabled(bReverbActive); m_ui.ReverbWidthDial->setEnabled(bReverbActive); m_ui.ReverbLevelDial->setEnabled(bReverbActive); m_ui.ReverbRoomSpinBox->setEnabled(bReverbActive); m_ui.ReverbDampSpinBox->setEnabled(bReverbActive); m_ui.ReverbWidthSpinBox->setEnabled(bReverbActive); m_ui.ReverbLevelSpinBox->setEnabled(bReverbActive); const bool bChorusActive = m_ui.ChorusActiveCheckBox->isChecked(); m_ui.ChorusNrTextLabel->setEnabled(bChorusActive); m_ui.ChorusLevelTextLabel->setEnabled(bChorusActive); m_ui.ChorusSpeedTextLabel->setEnabled(bChorusActive); m_ui.ChorusDepthTextLabel->setEnabled(bChorusActive); m_ui.ChorusTypeTextLabel->setEnabled(bChorusActive); m_ui.ChorusNrDial->setEnabled(bChorusActive); m_ui.ChorusLevelDial->setEnabled(bChorusActive); m_ui.ChorusSpeedDial->setEnabled(bChorusActive); m_ui.ChorusDepthDial->setEnabled(bChorusActive); m_ui.ChorusNrSpinBox->setEnabled(bChorusActive); m_ui.ChorusLevelSpinBox->setEnabled(bChorusActive); m_ui.ChorusSpeedSpinBox->setEnabled(bChorusActive); m_ui.ChorusDepthSpinBox->setEnabled(bChorusActive); m_ui.ChorusTypeComboBox->setEnabled(bChorusActive); m_ui.RestartPushButton->setText(tr("Re&start")); } else { m_ui.RestartPushButton->setText(tr("&Start")); } m_ui.RestartPushButton->setEnabled(true); m_ui.DeleteEngineToolButton->setEnabled(pEngine && !pEngine->isDefault()); m_ui.MessagesPushButton->setChecked( m_pMessagesForm && m_pMessagesForm->isVisible()); m_ui.ChannelsPushButton->setChecked( m_pChannelsForm && m_pChannelsForm->isVisible()); } void qsynthMainForm::stabilizeFormEx (void) { updateContextMenu(); stabilizeForm(); } // Program reset command slot (all channels). void qsynthMainForm::programReset (void) { m_ui.ProgramResetPushButton->setEnabled(false); resetGain(); resetReverb(); resetChorus(); resetEngine(currentEngine()); if (m_pChannelsForm) m_pChannelsForm->resetAllChannels(true); stabilizeForm(); } // System reset command slot. void qsynthMainForm::systemReset (void) { m_ui.SystemResetPushButton->setEnabled(false); qsynthEngine *pEngine = currentEngine(); if (pEngine && pEngine->pSynth) { #ifdef CONFIG_FLUID_SYSTEM_RESET appendMessagesColor(pEngine->name() + ": fluid_synth_system_reset()", "#993366"); ::fluid_synth_system_reset(pEngine->pSynth); #else appendMessagesColor(pEngine->name() + ": fluid_synth_program_reset()", "#996666"); ::fluid_synth_program_reset(pEngine->pSynth); #endif if (m_pChannelsForm) m_pChannelsForm->resetAllChannels(true); } stabilizeForm(); } // Complete engine restart. void qsynthMainForm::promptRestart (void) { restartEngine(currentEngine()); } // Prompt and create a new engine instance. void qsynthMainForm::newEngine (void) { qsynthEngine *pEngine; QString sName; // Simple hack for finding a unused engine name... const QString sPrefix = QSYNTH_TITLE; const int iTabCount = m_ui.TabBar->count(); int iSuffix = iTabCount + 1; // One is always there, so try after... bool bRetry = true; while (bRetry) { sName = sPrefix + QString::number(iSuffix++); bRetry = false; for (int iTab = 0; iTab < iTabCount && !bRetry; ++iTab) { pEngine = m_ui.TabBar->engine(iTab); if (pEngine && pEngine->name() == sName) bRetry = true; } } // Probably a good idea to prompt for the setup dialog. pEngine = new qsynthEngine(m_pOptions, sName); if (setupEngineTab(pEngine, -1)) { // Success, add a new tab... const int iTab = m_ui.TabBar->addEngine(pEngine); // And try to be persistent... m_pOptions->newEngine(pEngine); // Update bar... m_ui.TabBar->setCurrentIndex(iTab); m_ui.TabBar->update(); } else { // As this will not be mangaed by a qsynthTab instance, // we better free it up right now... delete pEngine; } // Refresh context-menu... updateContextMenu(); } // Delete the current engine instance. void qsynthMainForm::deleteEngine (void) { // Check if we're doing everything all right. qsynthEngine *pEngine = m_ui.TabBar->engine(m_iCurrentTab); if (pEngine) deleteEngineTab(pEngine, m_iCurrentTab); } // Delete and engine instance. bool qsynthMainForm::deleteEngineTab ( qsynthEngine *pEngine, int iTab ) { if (pEngine == nullptr || iTab < 0) return false; // Try to prompt user if he/she really wants this... const bool bResult = (QMessageBox::warning(this, tr("Warning"), tr("Delete fluidsynth engine:") + "\n\n" + pEngine->name() + "\n\n" + tr("Are you sure?"), QMessageBox::Ok | QMessageBox::Cancel) == QMessageBox::Ok); if (bResult) { // First we try to stop the angine. stopEngine(pEngine); // Better nullify the current reference, if applicable. if (g_pCurrentEngine == pEngine) g_pCurrentEngine = nullptr; if (m_iCurrentTab == iTab) m_iCurrentTab = -1; // Nows time to remove those crappy entries... m_pOptions->deleteEngine(pEngine); // Then, we delete the instance (note that the engine object // is owned by the tab instance, so it will be delete here). m_ui.TabBar->removeEngine(iTab); m_ui.TabBar->update(); tabSelect(m_ui.TabBar->currentIndex()); } return bResult; } // Edit settings of a given engine instance. bool qsynthMainForm::setupEngineTab ( qsynthEngine *pEngine, int iTab ) { if (pEngine == nullptr || pEngine->setup() == nullptr) return false; qsynthSetupForm setupForm(this); // Load the current instance settings. setupForm.setup(m_pOptions, pEngine, iTab < 0); // Show the instance setup dialog, then ask for a engine restart? if (!setupForm.exec()) return false; // Have we changed names? Ugly uh? m_pOptions->renameEngine(pEngine); if (iTab >= 0) { // Update main caption, if we're on current engine tab... if (iTab == m_ui.TabBar->currentIndex()) { setWindowTitle(pEngine->name()); } // Finally update tab text... m_ui.TabBar->setTabText(iTab, pEngine->name()); } // Now we may restart this. restartEngine(pEngine); // Done. return true; } // Main form visibility requester slot. void qsynthMainForm::toggleMainForm (void) { if (m_pOptions == nullptr) return; m_pOptions->saveWidgetGeometry(this, true); if (isVisible()) { #ifdef CONFIG_SYSTEM_TRAY if (m_pOptions->bSystemTray && m_pSystemTray) { // Hide away from sight, if not active... if (isActiveWindow()) { hide(); } else { raise(); activateWindow(); } } else #endif // Minimize (iconify) normally. showMinimized(); } else { show(); raise(); activateWindow(); } updateContextMenu(); } // Message log form requester slot. void qsynthMainForm::toggleMessagesForm (void) { if (m_pOptions == nullptr) return; if (m_pMessagesForm) { m_pOptions->saveWidgetGeometry(m_pMessagesForm); if (m_pMessagesForm->isVisible()) { m_pMessagesForm->hide(); } else { m_pMessagesForm->show(); m_pMessagesForm->raise(); m_pMessagesForm->activateWindow(); } } updateContextMenu(); } // Channels view form requester slot. void qsynthMainForm::toggleChannelsForm (void) { if (m_pOptions == nullptr) return; if (m_pChannelsForm) { m_pOptions->saveWidgetGeometry(m_pChannelsForm); if (m_pChannelsForm->isVisible()) { m_pChannelsForm->hide(); } else { m_pChannelsForm->show(); m_pChannelsForm->raise(); m_pChannelsForm->activateWindow(); } } updateContextMenu(); } // Instance dialog requester slot. void qsynthMainForm::showSetupForm (void) { const int iTab = m_ui.TabBar->currentIndex(); if (iTab >= 0) setupEngineTab(m_ui.TabBar->engine(iTab), iTab); } // Setup dialog requester slot. void qsynthMainForm::showOptionsForm (void) { if (m_pOptions == nullptr) return; qsynthOptionsForm *pOptionsForm = new qsynthOptionsForm(this); if (pOptionsForm) { // Check out some initial nullities(tm)... if (m_pOptions->sMessagesFont.isEmpty() && m_pMessagesForm) m_pOptions->sMessagesFont = m_pMessagesForm->messagesFont().toString(); // To track down deferred or immediate changes. const bool bOldMessagesLog = m_pOptions->bMessagesLog; const QString sOldMessagesLogPath = m_pOptions->sMessagesLogPath; const QString sOldMessagesFont = m_pOptions->sMessagesFont; #ifdef CONFIG_SYSTEM_TRAY const bool bOldSystemTray = m_pOptions->bSystemTray; #endif const bool bOldOutputMeters = m_pOptions->bOutputMeters; const bool bOldStdoutCapture = m_pOptions->bStdoutCapture; const bool bOldKeepOnTop = m_pOptions->bKeepOnTop; const int iOldBaseFontSize = m_pOptions->iBaseFontSize; const int bOldMessagesLimit = m_pOptions->bMessagesLimit; const int iOldMessagesLimitLines = m_pOptions->iMessagesLimitLines; const int iOldKnobStyle = m_pOptions->iKnobStyle; const int iOldKnobMotion = m_pOptions->iKnobMotion; // Load the current setup settings. pOptionsForm->setup(m_pOptions); // Show the setup dialog... if (pOptionsForm->exec()) { // Warn if something will be only effective on next run. if (( bOldStdoutCapture && !m_pOptions->bStdoutCapture) || (!bOldStdoutCapture && m_pOptions->bStdoutCapture) || ( bOldKeepOnTop && !m_pOptions->bKeepOnTop) || (!bOldKeepOnTop && m_pOptions->bKeepOnTop) || (iOldBaseFontSize != m_pOptions->iBaseFontSize)) { const QString& sTitle = tr("Information"); const QString& sText = tr("Some settings will be only effective\n" "next time you start this program."); #ifdef CONFIG_SYSTEM_TRAY if (m_pOptions->bSystemTray && m_pSystemTray && QSystemTrayIcon::supportsMessages()) { m_pSystemTray->showMessage( sTitle, sText, QSystemTrayIcon::Information); } else #endif QMessageBox::information(this, sTitle, sText); } // Check wheather something immediate has changed. if (( bOldMessagesLog && !m_pOptions->bMessagesLog) || (!bOldMessagesLog && m_pOptions->bMessagesLog) || (sOldMessagesLogPath != m_pOptions->sMessagesLogPath)) m_pMessagesForm->setLogging( m_pOptions->bMessagesLog, m_pOptions->sMessagesLogPath); if (sOldMessagesFont != m_pOptions->sMessagesFont) updateMessagesFont(); if (( bOldMessagesLimit && !m_pOptions->bMessagesLimit) || (!bOldMessagesLimit && m_pOptions->bMessagesLimit) || (iOldMessagesLimitLines != m_pOptions->iMessagesLimitLines)) updateMessagesLimit(); #ifdef CONFIG_SYSTEM_TRAY if (( bOldSystemTray && !m_pOptions->bSystemTray) || (!bOldSystemTray && m_pOptions->bSystemTray)) updateSystemTray(); #endif if ((iOldKnobStyle != m_pOptions->iKnobStyle) || (iOldKnobMotion != m_pOptions->iKnobMotion)) updateKnobs(); // There's some option(s) that need a global restart... if (( bOldOutputMeters && !m_pOptions->bOutputMeters) || (!bOldOutputMeters && m_pOptions->bOutputMeters)) { updateOutputMeters(); restartAllEngines(); } } // Done. delete pOptionsForm; } } // About dialog requester slot. void qsynthMainForm::showAboutForm (void) { qsynthAboutForm *pAboutForm = new qsynthAboutForm(this); if (pAboutForm) { pAboutForm->exec(); delete pAboutForm; } } // Tab selection slot. void qsynthMainForm::tabSelect ( int iTab ) { if (iTab == m_iCurrentTab) return; // Try to save old tab settings... if (m_iCurrentTab >= 0) { qsynthEngine *pEngine = m_ui.TabBar->engine(m_iCurrentTab); if (pEngine) savePanelSettings(pEngine); } // Make it official. m_iCurrentTab = iTab; // And set new ones, while refreshing views... if (m_iCurrentTab >= 0) { qsynthEngine *pEngine = m_ui.TabBar->engine(m_iCurrentTab); if (pEngine) { // Set current engine reference hack. g_pCurrentEngine = pEngine; // And do the change. setWindowTitle(pEngine->name()); loadPanelSettings(pEngine, false); resetChannelsForm(pEngine, false); } } // Update context-menu for sure... updateContextMenu(); // Finally, stabilize main form. stabilizeForm(); } // Common context request slot. void qsynthMainForm::tabContextMenu ( int iTab, const QPoint& pos ) { qsynthEngine *pEngine = m_ui.TabBar->engine(iTab); m_ui.TabBar->setCurrentIndex(iTab); QMenu menu(this); QAction *pAction; pAction = menu.addAction(QIcon(":/images/add1.png"), tr("&New engine..."), this, SLOT(newEngine())); pAction = menu.addAction(QIcon(":/images/remove1.png"), tr("&Delete"), this, SLOT(deleteEngine())); pAction->setEnabled(pEngine && !pEngine->isDefault()); menu.addSeparator(); pAction = menu.addAction(QIcon(":/images/setup1.png"), tr("Set&up..."), this, SLOT(showSetupForm())); pAction->setEnabled(pEngine != nullptr); menu.exec(pos); } // Timer callback funtion. void qsynthMainForm::timerSlot (void) { // Is it the first shot on synth start after a one slot delay? if (m_iTimerDelay < QSYNTH_DELAY_MSECS) { m_iTimerDelay += QSYNTH_TIMER_MSECS; if (m_iTimerDelay >= QSYNTH_DELAY_MSECS) { // Start the press! const int iTabCount = m_ui.TabBar->count(); for (int iTab = 0; iTab < iTabCount; ++iTab) startEngine(m_ui.TabBar->engine(iTab)); } } // Some global MIDI activity? int iTabUpdate = 0; const int iTabCount = m_ui.TabBar->count(); for (int iTab = 0; iTab < iTabCount; ++iTab) { qsynthEngine *pEngine = m_ui.TabBar->engine(iTab); if (pEngine->iMidiEvent > 0) { pEngine->iMidiEvent = 0; if (pEngine->iMidiState == 0) { pEngine->iMidiState++; m_ui.TabBar->setOn(iTab, true); iTabUpdate++; #ifdef CONFIG_SYSTEM_TRAY // Change the system tray icon background color! if (m_pSystemTray && m_iSystemTrayState == 0) { m_iSystemTrayState++; m_pSystemTray->setBackground(Qt::green); } #endif } } else if (pEngine->iMidiEvent == 0 && pEngine->iMidiState > 0) { if (--(pEngine->iMidiState) == 0) { m_ui.TabBar->setOn(iTab, false); iTabUpdate++; } #ifdef CONFIG_SYSTEM_TRAY // Reset the system tray icon background! if (m_pSystemTray && m_iSystemTrayState > 0) { if (--m_iSystemTrayState == 0) m_pSystemTray->setBackground(Qt::transparent); } #endif } } // Have we an update? if (iTabUpdate > 0) m_ui.TabBar->update(); // MIDI Channel activity breakout... if (m_pChannelsForm) { for (int iChan = 0; iChan < g_iMidiChannels; ++iChan) { if (g_pMidiChannels[iChan].iEvent > 0) { g_pMidiChannels[iChan].iEvent = 0; // Activity tracking... if (g_pMidiChannels[iChan].iState == 0) { m_pChannelsForm->setChannelOn(iChan, true); g_pMidiChannels[iChan].iState++; } // Control and/or program change... if (g_pMidiChannels[iChan].iChange > 0) { g_pMidiChannels[iChan].iChange = 0; m_pChannelsForm->updateChannel(iChan); } } // Activity fallback... else if (g_pMidiChannels[iChan].iEvent == 0 && g_pMidiChannels[iChan].iState > 0) { if (--(g_pMidiChannels[iChan].iState) == 0) m_pChannelsForm->setChannelOn(iChan, false); } } } // Gain changes? if (m_iGainChanged > 0) updateGain(); // Reverb changes? if (m_iReverbChanged > 0) updateReverb(); // Chorus changes? if (m_iChorusChanged > 0) updateChorus(); // Meter update. if (g_pCurrentEngine && g_pCurrentEngine->bMeterEnabled) { m_ui.OutputMeter->setValue(0, g_pCurrentEngine->fMeterValue[0]); m_ui.OutputMeter->setValue(1, g_pCurrentEngine->fMeterValue[1]); // m_ui.OutputMeter->refresh(); g_pCurrentEngine->fMeterValue[0] = 0.0f; g_pCurrentEngine->fMeterValue[1] = 0.0f; } // Register for the next timer slot. QTimer::singleShot(QSYNTH_TIMER_MSECS, this, SLOT(timerSlot())); } // Return the current selected engine. qsynthEngine *qsynthMainForm::currentEngine (void) const { return g_pCurrentEngine; } // Start the fluidsynth clone, based on given settings. bool qsynthMainForm::startEngine ( qsynthEngine *pEngine ) { if (pEngine == nullptr) return false; if (pEngine->pSynth) return true; qsynthSetup *pSetup = pEngine->setup(); if (pSetup == nullptr) return false; // Start realizing settings... pSetup->realize(); const QString sPrefix = pEngine->name() + ": "; const QString sElipsis = "..."; // Create the synthesizer. appendMessages(sPrefix + tr("Creating synthesizer engine") + sElipsis); pEngine->pSynth = ::new_fluid_synth(pSetup->fluid_settings()); if (pEngine->pSynth == nullptr) { appendMessagesError(sPrefix + tr("Failed to create the synthesizer.\n\nCannot continue without it.")); return false; } #ifdef QSYNTH_CUSTOM_LOADER // Add special loader to mirror fonts in use by another engine... fluid_sfloader_t *pLoader = (fluid_sfloader_t *) ::malloc(sizeof(fluid_sfloader_t)); pLoader->data = (void *) pEngine; pLoader->load = qsynth_sfloader_load; pLoader->free = qsynth_sfloader_free; ::fluid_synth_add_sfloader(pEngine->pSynth, pLoader); // Push on to engine list. qsynthEngineNode *pNode = new qsynthEngineNode; pNode->pEngine = pEngine; pNode->pNext = g_pEngineList; pNode->pPrev = nullptr; if (g_pEngineList) g_pEngineList->pPrev = pNode; g_pEngineList = pNode; #endif // Load soundfonts... int i = 0; QStringListIterator iter(pSetup->soundfonts); while (iter.hasNext()) { const QString& sFilename = iter.next(); // Is it a soundfont file... if (::fluid_is_soundfont(sFilename.toLocal8Bit().data())) { const int iBankOffset = pSetup->bankoffsets[i].toInt(); appendMessagesColor(sPrefix + tr("Loading soundfont: \"%1\" (bank offset %2)") .arg(sFilename).arg(iBankOffset) + sElipsis, "#999933"); const int iSFID = ::fluid_synth_sfload( pEngine->pSynth, sFilename.toLocal8Bit().data(), 1); if (iSFID < 0) appendMessagesError(sPrefix + tr("Failed to load the soundfont: \"%1\".") .arg(sFilename)); #ifdef CONFIG_FLUID_BANK_OFFSET else if (::fluid_synth_set_bank_offset( pEngine->pSynth, iSFID, iBankOffset) < 0) { appendMessagesError(sPrefix + tr("Failed to set bank offset (%1) for soundfont: \"%2\".") .arg(iBankOffset).arg(sFilename)); } #endif } ++i; } // Start the synthesis thread... appendMessages(sPrefix + tr("Creating audio driver (%1)") .arg(pSetup->sAudioDriver) + sElipsis); pEngine->pAudioDriver = nullptr; pEngine->bMeterEnabled = false; if (m_pOptions->bOutputMeters) { pEngine->pAudioDriver = ::new_fluid_audio_driver2( pSetup->fluid_settings(), qsynth_process, pEngine); pEngine->bMeterEnabled = (pEngine->pAudioDriver != nullptr); } if (pEngine->pAudioDriver == nullptr) pEngine->pAudioDriver = ::new_fluid_audio_driver( pSetup->fluid_settings(), pEngine->pSynth); if (pEngine->pAudioDriver == nullptr) { appendMessagesError(sPrefix + tr("Failed to create the audio driver (%1).\n\n" "Cannot continue without it.") .arg(pSetup->sAudioDriver)); stopEngine(pEngine); return false; } // Start the midi router and link it to the synth... if (pSetup->bMidiIn) { // In dump mode, text output is generated for events going into // and out of the router. The example dump functions are put into // the chain before and after the router.. appendMessages(sPrefix + tr("Creating MIDI router (%1)") .arg(pSetup->sMidiDriver) + sElipsis); pEngine->pMidiRouter = ::new_fluid_midi_router( pSetup->fluid_settings(), pSetup->bMidiDump ? qsynth_dump_postrouter : qsynth_handle_midi_event, (void *) pEngine); if (pEngine->pMidiRouter == nullptr) { appendMessagesError(sPrefix + tr("Failed to create the MIDI input router (%1).\n\n" "No MIDI input will be available.") .arg(pSetup->sMidiDriver)); } else { #ifdef CONFIG_FLUID_MIDI_ROUTER ::fluid_synth_set_midi_router(pEngine->pSynth, pEngine->pMidiRouter); #endif appendMessages(sPrefix + tr("Creating MIDI driver (%1)") .arg(pSetup->sMidiDriver) + sElipsis); pEngine->pMidiDriver = ::new_fluid_midi_driver( pSetup->fluid_settings(), pSetup->bMidiDump ? ::fluid_midi_dump_prerouter : ::fluid_midi_router_handle_midi_event, static_cast (pEngine->pMidiRouter)); if (pEngine->pMidiDriver == nullptr) appendMessagesError(sPrefix + tr("Failed to create the MIDI driver (%1).\n\n" "No MIDI input will be available.") .arg(pSetup->sMidiDriver)); } } // Create the MIDI player. appendMessages(sPrefix + tr("Creating MIDI player") + sElipsis); pEngine->pPlayer = ::new_fluid_player(pEngine->pSynth); if (pEngine->pPlayer == nullptr) { appendMessagesError(sPrefix + tr("Failed to create the MIDI player.\n\n" "Continuing without a player.")); } else { // Play the midi files, if any. playLoadFiles(pEngine, pSetup->midifiles, false); } // Run the server, if requested. if (pSetup->bServer) { #ifdef CONFIG_FLUID_SERVER appendMessages(sPrefix + tr("Creating server") + sElipsis); #ifdef CONFIG_NEW_FLUID_SERVER // Create the server now... pEngine->pServer = ::new_fluid_server( pSetup->fluid_settings(), pEngine->pSynth, pEngine->pMidiRouter); #else // Server port must be different for each engine... char szShellPort[] = "shell.port"; if (g_iLastShellPort > 0) { g_iLastShellPort++; } else { g_iLastShellPort = 0; ::fluid_settings_getint( pSetup->fluid_settings(), szShellPort, &g_iLastShellPort); if (g_iLastShellPort == 0) { #ifdef CONFIG_FLUID_SETTINGS_GETINT_DEFAULT g_iLastShellPort = 0; ::fluid_settings_getint_default( pSetup->fluid_settings(), szShellPort, &g_iLastShellPort); #else g_iLastShellPort = ::fluid_settings_getint_default( pSetup->fluid_settings(), szShellPort); #endif } } // Set the (new) server port for this engne... ::fluid_settings_setint( pSetup->fluid_settings(), szShellPort, g_iLastShellPort); // Create the server now... pEngine->pServer = ::new_fluid_server( pSetup->fluid_settings(), qsynth_newclient, pEngine); #endif if (pEngine->pServer == nullptr) appendMessagesError(sPrefix + tr("Failed to create the server.\n\n" "Continuing without it.")); #else appendMessagesError(sPrefix + tr("Server mode disabled.\n\n" "Continuing without it.")); #endif } // Make an initial program reset. m_pOptions->loadPreset(pEngine, pSetup->sDefPreset); // Show up our efforts, if we're currently selected :) if (pEngine == currentEngine()) { loadPanelSettings(pEngine, true); resetChannelsForm(pEngine, true); stabilizeForm(); } else { setEngineReverbOn(pEngine, pSetup->bReverbActive); setEngineChorusOn(pEngine, pSetup->bChorusActive); setEngineGain(pEngine, pSetup->fGain); setEngineReverb(pEngine, pSetup->fReverbRoom, pSetup->fReverbDamp, pSetup->fReverbWidth, pSetup->fReverbLevel); setEngineChorus(pEngine, pSetup->iChorusNr, pSetup->fChorusLevel, pSetup->fChorusSpeed, pSetup->fChorusDepth, pSetup->iChorusType); } // All is right. appendMessages(sPrefix + tr("Synthesizer engine started.")); return true; } // Stop the fluidsynth clone. void qsynthMainForm::stopEngine ( qsynthEngine *pEngine ) { if (pEngine == nullptr) return; if (pEngine->pSynth == nullptr) return; qsynthSetup *pSetup = pEngine->setup(); if (pSetup == nullptr) return; // Only if there's a legal audio driver... if (pEngine->pAudioDriver) { // Before all else save current engine panel settings... if (pEngine == currentEngine()) savePanelSettings(pEngine); // Make those settings persist over... m_pOptions->saveSetup(pSetup, pEngine->isDefault() ? QString() : pEngine->name()); } // Flush anything that maybe pending... flushStdoutBuffer(); const QString sPrefix = pEngine->name() + ": "; const QString sElipsis = "..."; #ifdef CONFIG_FLUID_SERVER // Destroy server. if (pEngine->pServer) { // Server join is not necessary, causes seg fault when multiple engines. // appendMessages(sPrefix + tr("Waiting for server to terminate") + sElipsis); // ::fluid_server_join(pEngine->pServer); appendMessages(sPrefix + tr("Destroying server") + sElipsis); ::delete_fluid_server(pEngine->pServer); pEngine->pServer = nullptr; } #endif // Destroy player. if (pEngine->pPlayer) { appendMessages(sPrefix + tr("Stopping MIDI player") + sElipsis); ::fluid_player_stop(pEngine->pPlayer); appendMessages(sPrefix + tr("Waiting for MIDI player to terminate") + sElipsis); ::fluid_player_join(pEngine->pPlayer); appendMessages(sPrefix + tr("Destroying MIDI player") + sElipsis); ::delete_fluid_player(pEngine->pPlayer); pEngine->pPlayer = nullptr; } // Destroy MIDI router. if (pEngine->pMidiRouter) { if (pEngine->pMidiDriver) { appendMessages(sPrefix + tr("Destroying MIDI driver") + sElipsis); ::delete_fluid_midi_driver(pEngine->pMidiDriver); pEngine->pMidiDriver = nullptr; } appendMessages(sPrefix + tr("Destroying MIDI router") + sElipsis); ::delete_fluid_midi_router(pEngine->pMidiRouter); pEngine->pMidiRouter = nullptr; } // Destroy audio driver. if (pEngine->pAudioDriver) { appendMessages(sPrefix + tr("Destroying audio driver") + sElipsis); ::delete_fluid_audio_driver(pEngine->pAudioDriver); pEngine->pAudioDriver = nullptr; pEngine->bMeterEnabled = false; } // Unload soundfonts from actual synth stack... const int iSoundFonts = ::fluid_synth_sfcount(pEngine->pSynth); for (int i = 0; i < iSoundFonts; ++i) { fluid_sfont_t *pSoundFont = ::fluid_synth_get_sfont(pEngine->pSynth, i); if (pSoundFont) { #ifdef CONFIG_FLUID_SFONT_GET_ID const int iSFID = ::fluid_sfont_get_id(pSoundFont); #else const int iSFID = pSoundFont->id; #endif #ifdef CONFIG_FLUID_SFONT_GET_NAME const QString sSFName = ::fluid_sfont_get_name(pSoundFont); #else const QString sSFName = pSoundFont->get_name(pSoundFont); #endif appendMessagesColor(sPrefix + tr("Unloading soundfont: \"%1\" (SFID=%2)") .arg(sSFName).arg(iSFID) + sElipsis, "#999933"); if (::fluid_synth_sfunload(pEngine->pSynth, iSFID, 0) < 0) appendMessagesError(sPrefix + tr("Failed to unload the soundfont: \"%1\".") .arg(sSFName)); } } // And finally, destroy the synthesizer engine. if (pEngine->pSynth) { appendMessages(sPrefix + tr("Destroying synthesizer engine") + sElipsis); ::delete_fluid_synth(pEngine->pSynth); pEngine->pSynth = nullptr; // We're done. appendMessages(sPrefix + tr("Synthesizer engine terminated.")); } #ifdef QSYNTH_CUSTOM_LOADER // Remove engine from custom loader list, if any... qsynthEngineNode *pNode = g_pEngineList; while (pNode) { if (pNode->pEngine == pEngine ) { if (pNode->pPrev) (pNode->pPrev)->pNext = pNode->pNext; else g_pEngineList = pNode->pNext; if (pNode->pNext) (pNode->pNext)->pPrev = pNode->pPrev; delete pNode; break; } pNode = pNode->pNext; } #endif // Show up our efforts, if we're currently selected :p if (pEngine == currentEngine()) { resetChannelsForm(pEngine, true); stabilizeForm(); } // Wait a litle bit before continue... QTime t; t.start(); while (t.elapsed() < QSYNTH_DELAY_MSECS) QApplication::processEvents(QEventLoop::ExcludeUserInputEvents); } // Start all synth engines (schedule). void qsynthMainForm::startAllEngines (void) { m_iTimerDelay = 0; } // Restart all synth engines. void qsynthMainForm::restartAllEngines (void) { // Always prompt user... const bool bRestart = (QMessageBox::warning(this, tr("Warning"), tr("New settings will be effective after\n" "restarting all fluidsynth engines.") + "\n\n" + tr("Please note that this operation may cause\n" "temporary MIDI and Audio disruption.") + "\n\n" + tr("Do you want to restart all engines now?"), QMessageBox::Yes | QMessageBox::No) == QMessageBox::Yes); // Just restart every engine out there... if (bRestart) { // Restarting means stopping an engine... const int iTabCount = m_ui.TabBar->count(); for (int iTab = 0; iTab < iTabCount; ++iTab) stopEngine(m_ui.TabBar->engine(iTab)); // Must make this one grayed out for a while... m_ui.RestartPushButton->setEnabled(false); // And making room for immediate restart... startAllEngines(); } } // Start the fluidsynth clone, based on given settings. void qsynthMainForm::restartEngine ( qsynthEngine *pEngine ) { bool bRestart = true; // If currently running, prompt user... if (pEngine && pEngine->pSynth) { bRestart = (QMessageBox::warning(this, tr("Warning"), tr("New settings will be effective after\n" "restarting the fluidsynth engine:") + "\n\n" + pEngine->name() + "\n\n" + tr("Please note that this operation may cause\n" "temporary MIDI and Audio disruption.") + "\n\n" + tr("Do you want to restart the engine now?"), QMessageBox::Yes | QMessageBox::No) == QMessageBox::Yes); } // If allowed, just restart the engine... if (bRestart) { // Must make current one grayed out for a while... if (pEngine == currentEngine()) m_ui.RestartPushButton->setEnabled(false); // Restarting means stopping the engine... stopEngine(pEngine); // And making room for immediate restart... startAllEngines(); } } // Engine reset (all channels program reset). void qsynthMainForm::resetEngine ( qsynthEngine *pEngine ) { if (pEngine && pEngine->pSynth) { appendMessagesColor(pEngine->name() + ": fluid_synth_program_reset()", "#996666"); ::fluid_synth_program_reset(pEngine->pSynth); } } // Engine gain settings. void qsynthMainForm::setEngineGain ( qsynthEngine *pEngine, float fGain ) { appendMessagesColor(pEngine->name() + ": fluid_synth_set_gain(" + QString::number(fGain) + ")", "#6699cc"); ::fluid_synth_set_gain(pEngine->pSynth, fGain); } // Engine reverb settings. void qsynthMainForm::setEngineReverbOn ( qsynthEngine *pEngine, bool bActive ) { appendMessagesColor(pEngine->name() + ": fluid_synth_set_reverb_on(" + QString::number((int) bActive) + ")", "#99cc33"); ::fluid_synth_set_reverb_on(pEngine->pSynth, (int) bActive); } void qsynthMainForm::setEngineReverb ( qsynthEngine *pEngine, double fRoom, double fDamp, double fWidth, double fLevel ) { appendMessagesColor(pEngine->name() + ": fluid_synth_set_reverb(" + QString::number(fRoom) + "," + QString::number(fDamp) + "," + QString::number(fWidth) + "," + QString::number(fLevel) + ")", "#99cc66"); ::fluid_synth_set_reverb(pEngine->pSynth, fRoom, fDamp, fWidth, fLevel); } // Engine chorus settings. void qsynthMainForm::setEngineChorusOn ( qsynthEngine *pEngine, bool bActive ) { appendMessagesColor(pEngine->name() + ": fluid_synth_set_chorus_on(" + QString::number((int) bActive) + ")", "#cc9933"); ::fluid_synth_set_chorus_on(pEngine->pSynth, (int) bActive); } void qsynthMainForm::setEngineChorus ( qsynthEngine *pEngine, int iNr, double fLevel, double fSpeed, double fDepth, int iType ) { appendMessagesColor(pEngine->name() + ": fluid_synth_set_chorus(" + QString::number(iNr) + "," + QString::number(fLevel) + "," + QString::number(fSpeed) + "," + QString::number(fDepth) + "," + QString::number(iType) + ")", "#cc9966"); ::fluid_synth_set_chorus(pEngine->pSynth, iNr, fLevel, fSpeed, fDepth, iType); } // Front panel state load routine. void qsynthMainForm::loadPanelSettings ( qsynthEngine *pEngine, bool bUpdate ) { if (pEngine == nullptr) return; // if (pEngine->pSynth == nullptr || pEngine->pAudioDriver == nullptr) // return; qsynthSetup *pSetup = pEngine->setup(); if (pSetup == nullptr) return; // Reset change flags. m_iGainChanged = 0; m_iReverbChanged = 0; m_iChorusChanged = 0; // Avoid update races: set update counters > 0 ... m_iGainUpdated = 1; m_iReverbUpdated = 1; m_iChorusUpdated = 1; m_ui.GainDial->setDefaultValue(qsynth_set_range_value( m_ui.GainDial, QSYNTH_MASTER_GAIN_SCALE, pSetup->fGain)); m_ui.ReverbActiveCheckBox->setChecked(pSetup->bReverbActive); m_ui.ReverbRoomDial->setDefaultValue(qsynth_set_range_value( m_ui.ReverbRoomDial, QSYNTH_REVERB_ROOM_SCALE, pSetup->fReverbRoom)); m_ui.ReverbDampDial->setDefaultValue(qsynth_set_range_value( m_ui.ReverbDampDial, QSYNTH_REVERB_DAMP_SCALE, pSetup->fReverbDamp)); m_ui.ReverbWidthDial->setDefaultValue(qsynth_set_range_value( m_ui.ReverbWidthDial, QSYNTH_REVERB_WIDTH_SCALE, pSetup->fReverbWidth)); m_ui.ReverbLevelDial->setDefaultValue(qsynth_set_range_value( m_ui.ReverbLevelDial, QSYNTH_REVERB_LEVEL_SCALE, pSetup->fReverbLevel)); m_ui.ChorusActiveCheckBox->setChecked(pSetup->bChorusActive); m_ui.ChorusNrDial->setDefaultValue(pSetup->iChorusNr); m_ui.ChorusNrDial->setValue(pSetup->iChorusNr); m_ui.ChorusLevelDial->setDefaultValue(qsynth_set_range_value( m_ui.ChorusLevelDial, QSYNTH_CHORUS_LEVEL_SCALE, pSetup->fChorusLevel)); m_ui.ChorusSpeedDial->setDefaultValue(qsynth_set_range_value( m_ui.ChorusSpeedDial, QSYNTH_CHORUS_SPEED_SCALE, pSetup->fChorusSpeed)); m_ui.ChorusDepthDial->setDefaultValue(qsynth_set_range_value( m_ui.ChorusDepthDial, QSYNTH_CHORUS_DEPTH_SCALE, pSetup->fChorusDepth)); m_ui.ChorusTypeComboBox->setCurrentIndex(pSetup->iChorusType); // Make them dirty. if (bUpdate) { setEngineReverbOn(pEngine, pSetup->bReverbActive); setEngineChorusOn(pEngine, pSetup->bChorusActive); ++m_iGainChanged; ++m_iReverbChanged; ++m_iChorusChanged; } // Let them get updated, possibly on next tick. m_iGainUpdated = 0; m_iReverbUpdated = 0; m_iChorusUpdated = 0; } // Front panel state save routine. void qsynthMainForm::savePanelSettings ( qsynthEngine *pEngine ) { if (pEngine == nullptr) return; if (pEngine->pSynth == nullptr || pEngine->pAudioDriver == nullptr) return; qsynthSetup *pSetup = pEngine->setup(); if (pSetup == nullptr) return; pSetup->fGain = qsynth_get_range_value( m_ui.GainSpinBox, QSYNTH_MASTER_GAIN_SCALE); pSetup->bReverbActive = m_ui.ReverbActiveCheckBox->isChecked(); pSetup->fReverbRoom = qsynth_get_range_value( m_ui.ReverbRoomSpinBox, QSYNTH_REVERB_ROOM_SCALE); pSetup->fReverbDamp = qsynth_get_range_value( m_ui.ReverbDampSpinBox, QSYNTH_REVERB_DAMP_SCALE); pSetup->fReverbWidth = qsynth_get_range_value( m_ui.ReverbWidthSpinBox, QSYNTH_REVERB_WIDTH_SCALE); pSetup->fReverbLevel = qsynth_get_range_value( m_ui.ReverbLevelSpinBox, QSYNTH_REVERB_LEVEL_SCALE); pSetup->bChorusActive = m_ui.ChorusActiveCheckBox->isChecked(); pSetup->iChorusNr = m_ui.ChorusNrSpinBox->value(); pSetup->fChorusLevel = qsynth_get_range_value( m_ui.ChorusLevelSpinBox, QSYNTH_CHORUS_LEVEL_SCALE); pSetup->fChorusSpeed = qsynth_get_range_value( m_ui.ChorusSpeedSpinBox, QSYNTH_CHORUS_SPEED_SCALE); pSetup->fChorusDepth = qsynth_get_range_value( m_ui.ChorusDepthSpinBox, QSYNTH_CHORUS_DEPTH_SCALE); pSetup->iChorusType = m_ui.ChorusTypeComboBox->currentIndex(); } // Complete refresh of the floating channels form. void qsynthMainForm::resetChannelsForm ( qsynthEngine *pEngine, bool bPreset ) { if (m_pChannelsForm == nullptr) return; // Setup the channels view window. m_pChannelsForm->setup(m_pOptions, pEngine, bPreset); // Reset the channel event state flaggers. if (g_pMidiChannels) delete [] g_pMidiChannels; g_pMidiChannels = nullptr; g_iMidiChannels = 0; // Prepare the new channel event state flaggers. if (pEngine && pEngine->pSynth) g_iMidiChannels = ::fluid_synth_count_midi_channels(pEngine->pSynth); if (g_iMidiChannels > 0) g_pMidiChannels = new qsynth_midi_channel [g_iMidiChannels]; if (g_pMidiChannels) { for (int iChan = 0; iChan < g_iMidiChannels; ++iChan) { g_pMidiChannels[iChan].iEvent = 0; g_pMidiChannels[iChan].iState = 0; g_pMidiChannels[iChan].iChange = 0; } } } // Increment reverb change flag. void qsynthMainForm::reverbActivate ( bool bActive ) { if (m_iReverbUpdated > 0) return; qsynthEngine *pEngine = currentEngine(); if (pEngine == nullptr) return; if (pEngine->pSynth == nullptr) return; setEngineReverbOn(pEngine, bActive); if (bActive) refreshReverb(); stabilizeForm(); } // Increment chorus change flag. void qsynthMainForm::chorusActivate ( bool bActive ) { if (m_iChorusUpdated > 0) return; qsynthEngine *pEngine = currentEngine(); if (pEngine == nullptr) return; if (pEngine->pSynth == nullptr) return; setEngineChorusOn(pEngine, bActive); if (bActive) refreshChorus(); stabilizeForm(); } // Increment gain change flag. void qsynthMainForm::gainChanged (int) { if (m_iGainUpdated == 0) m_iGainChanged++; } // Increment reverb change flag. void qsynthMainForm::reverbChanged (int) { if (m_iReverbUpdated == 0) m_iReverbChanged++; } // Increment chorus change flag. void qsynthMainForm::chorusChanged (int) { if (m_iChorusUpdated == 0) m_iChorusChanged++; } // Reset gain state. void qsynthMainForm::resetGain (void) { if (m_iGainUpdated > 0) return; qsynthEngine *pEngine = currentEngine(); if (pEngine == nullptr) return; if (pEngine->pSynth == nullptr) return; m_iGainUpdated++; const float fGain = QSYNTH_MASTER_DEFAULT_GAIN; setEngineGain(pEngine, fGain); refreshGain(); m_iGainUpdated--; m_iGainChanged = 0; } // Reset reverb state. void qsynthMainForm::resetReverb (void) { if (m_iReverbUpdated > 0) return; qsynthEngine *pEngine = currentEngine(); if (pEngine == nullptr) return; if (pEngine->pSynth == nullptr) return; m_iReverbUpdated++; const double fReverbRoom = QSYNTH_REVERB_DEFAULT_ROOMSIZE; const double fReverbDamp = QSYNTH_REVERB_DEFAULT_DAMP; const double fReverbWidth = QSYNTH_REVERB_DEFAULT_WIDTH; const double fReverbLevel = QSYNTH_REVERB_DEFAULT_LEVEL; setEngineReverb(pEngine, fReverbRoom, fReverbDamp, fReverbWidth, fReverbLevel); refreshReverb(); m_iReverbUpdated--; m_iReverbChanged = 0; } // Reset chorus state. void qsynthMainForm::resetChorus (void) { if (m_iChorusUpdated > 0) return; qsynthEngine *pEngine = currentEngine(); if (pEngine == nullptr) return; if (pEngine->pSynth == nullptr) return; m_iChorusUpdated++; const int iChorusNr = QSYNTH_CHORUS_DEFAULT_N; const double fChorusLevel = QSYNTH_CHORUS_DEFAULT_LEVEL; const double fChorusSpeed = QSYNTH_CHORUS_DEFAULT_SPEED; const double fChorusDepth = QSYNTH_CHORUS_DEFAULT_DEPTH; const int iChorusType = QSYNTH_CHORUS_DEFAULT_TYPE; setEngineChorus(pEngine, iChorusNr, fChorusLevel, fChorusSpeed, fChorusDepth, iChorusType); refreshChorus(); m_iChorusUpdated--; m_iChorusChanged = 0; } // Update gain state. void qsynthMainForm::updateGain (void) { if (m_iGainUpdated > 0) return; qsynthEngine *pEngine = currentEngine(); if (pEngine == nullptr) return; if (pEngine->pSynth == nullptr) return; m_iGainUpdated++; const float fGain = qsynth_get_range_value( m_ui.GainSpinBox, QSYNTH_MASTER_GAIN_SCALE); setEngineGain(pEngine, fGain); refreshGain(); m_iGainUpdated--; m_iGainChanged = 0; } // Update reverb state. void qsynthMainForm::updateReverb (void) { if (m_iReverbUpdated > 0) return; qsynthEngine *pEngine = currentEngine(); if (pEngine == nullptr) return; if (pEngine->pSynth == nullptr) return; m_iReverbUpdated++; const double fReverbRoom = qsynth_get_range_value( m_ui.ReverbRoomSpinBox, QSYNTH_REVERB_ROOM_SCALE); const double fReverbDamp = qsynth_get_range_value( m_ui.ReverbDampSpinBox, QSYNTH_REVERB_DAMP_SCALE); const double fReverbWidth = qsynth_get_range_value( m_ui.ReverbWidthSpinBox, QSYNTH_REVERB_WIDTH_SCALE); const double fReverbLevel = qsynth_get_range_value( m_ui.ReverbLevelSpinBox, QSYNTH_REVERB_LEVEL_SCALE); setEngineReverb(pEngine, fReverbRoom, fReverbDamp, fReverbWidth, fReverbLevel); refreshReverb(); m_iReverbUpdated--; m_iReverbChanged = 0; } // Update chorus state. void qsynthMainForm::updateChorus (void) { if (m_iChorusUpdated > 0) return; qsynthEngine *pEngine = currentEngine(); if (pEngine == nullptr) return; if (pEngine->pSynth == nullptr) return; m_iChorusUpdated++; const int iChorusNr = m_ui.ChorusNrSpinBox->value(); const double fChorusLevel = qsynth_get_range_value( m_ui.ChorusLevelSpinBox, QSYNTH_CHORUS_LEVEL_SCALE); const double fChorusSpeed = qsynth_get_range_value( m_ui.ChorusSpeedSpinBox, QSYNTH_CHORUS_SPEED_SCALE); const double fChorusDepth = qsynth_get_range_value( m_ui.ChorusDepthSpinBox, QSYNTH_CHORUS_DEPTH_SCALE); const int iChorusType = m_ui.ChorusTypeComboBox->currentIndex(); setEngineChorus(pEngine, iChorusNr, fChorusLevel, fChorusSpeed, fChorusDepth, iChorusType); refreshChorus(); m_iChorusUpdated--; m_iChorusChanged = 0; } // Refresh gain panel controls. void qsynthMainForm::refreshGain (void) { qsynthEngine *pEngine = currentEngine(); if (pEngine == nullptr) return; if (pEngine->pSynth == nullptr) return; float fGain = ::fluid_synth_get_gain(pEngine->pSynth); qsynth_set_range_value( m_ui.GainDial, QSYNTH_MASTER_GAIN_SCALE, fGain); } // Refresh reverb panel controls. void qsynthMainForm::refreshReverb (void) { qsynthEngine *pEngine = currentEngine(); if (pEngine == nullptr) return; if (pEngine->pSynth == nullptr) return; const double fReverbRoom = ::fluid_synth_get_reverb_roomsize(pEngine->pSynth); const double fReverbDamp = ::fluid_synth_get_reverb_damp(pEngine->pSynth); const double fReverbWidth = ::fluid_synth_get_reverb_width(pEngine->pSynth); const double fReverbLevel = ::fluid_synth_get_reverb_level(pEngine->pSynth); qsynth_set_range_value( m_ui.ReverbRoomDial, QSYNTH_REVERB_ROOM_SCALE, fReverbRoom); qsynth_set_range_value( m_ui.ReverbDampDial, QSYNTH_REVERB_DAMP_SCALE, fReverbDamp); qsynth_set_range_value( m_ui.ReverbWidthDial, QSYNTH_REVERB_WIDTH_SCALE, fReverbWidth); qsynth_set_range_value( m_ui.ReverbLevelDial, QSYNTH_REVERB_LEVEL_SCALE, fReverbLevel); } // Refresh chorus panel controls. void qsynthMainForm::refreshChorus (void) { qsynthEngine *pEngine = currentEngine(); if (pEngine == nullptr) return; if (pEngine->pSynth == nullptr) return; const int iChorusNr = ::fluid_synth_get_chorus_nr(pEngine->pSynth); const double fChorusLevel = ::fluid_synth_get_chorus_level(pEngine->pSynth); #ifdef CONFIG_FLUID_SYNTH_GET_CHORUS_SPEED const double fChorusSpeed = ::fluid_synth_get_chorus_speed(pEngine->pSynth); #else const double fChorusSpeed = ::fluid_synth_get_chorus_speed_Hz(pEngine->pSynth); #endif #ifdef CONFIG_FLUID_SYNTH_GET_CHORUS_DEPTH const double fChorusDepth = ::fluid_synth_get_chorus_depth(pEngine->pSynth); #else const double fChorusDepth = ::fluid_synth_get_chorus_depth_ms(pEngine->pSynth); #endif const int iChorusType = ::fluid_synth_get_chorus_type(pEngine->pSynth); m_ui.ChorusNrDial->setValue(iChorusNr); qsynth_set_range_value( m_ui.ChorusLevelDial, QSYNTH_CHORUS_LEVEL_SCALE, fChorusLevel); qsynth_set_range_value( m_ui.ChorusSpeedDial, QSYNTH_CHORUS_SPEED_SCALE, fChorusSpeed); qsynth_set_range_value( m_ui.ChorusDepthDial, QSYNTH_CHORUS_DEPTH_SCALE, fChorusDepth); m_ui.ChorusTypeComboBox->setCurrentIndex(iChorusType); } // Select the current default preset name from context menu. void qsynthMainForm::activateEnginesMenu ( QAction *pAction ) { const int iTab = pAction->data().toInt(); if (iTab < 0) return; m_ui.TabBar->setCurrentIndex(iTab); } // Close main form slot. void qsynthMainForm::quitMainForm (void) { #ifdef CONFIG_SYSTEM_TRAY // Flag that we're quitting explicitly. m_bQuitClose = true; #endif // And then, do the closing dance. close(); } // Context menu event handler. void qsynthMainForm::contextMenuEvent ( QContextMenuEvent *pEvent ) { m_menu.exec(pEvent->globalPos()); } void qsynthMainForm::updateKnobs (void) { if (m_pOptions == nullptr) return; if (m_pKnobStyle) delete m_pKnobStyle; const KnobStyle style = KnobStyle(m_pOptions->iKnobStyle); switch (style) { case Classic: m_pKnobStyle = new qsynthDialClassicStyle(); break; case Vokimon: m_pKnobStyle = new qsynthDialVokiStyle(); break; case Peppino: m_pKnobStyle = new qsynthDialPeppinoStyle(); break; case Skulpture: m_pKnobStyle = new qsynthDialSkulptureStyle(); break; default: m_pKnobStyle = nullptr; break; } const qsynthKnob::DialMode mode = qsynthKnob::DialMode(m_pOptions->iKnobMotion); QList allKnobs = findChildren(); foreach(qsynthKnob* knob, allKnobs) { knob->setStyle(m_pKnobStyle); knob->setDialMode(mode); } } void qsynthMainForm::commitData ( QSessionManager& sm ) { sm.release(); #ifdef CONFIG_SYSTEM_TRAY m_bQuitClose = true; #endif m_bQuitForce = true; } // end of qsynthMainForm.cpp qsynth-0.6.1/src/PaxHeaders.5367/qsynthSetupForm.cpp0000644000000000000000000000013213577702221017221 xustar0030 mtime=1577026705.847992838 30 atime=1577026705.846992838 30 ctime=1577026705.847992838 qsynth-0.6.1/src/qsynthSetupForm.cpp0000644000175000001440000007727013577702221020063 0ustar00rncbcusers00000000000000// qsynthSetupForm.cpp // /**************************************************************************** Copyright (C) 2003-2019, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. *****************************************************************************/ #include "qsynthAbout.h" #include "qsynthSetupForm.h" #include "qsynthEngine.h" #include #include #include #include #include #include #include #include // Our local parameter data struct. struct qsynth_settings_data { qsynthSetup *pSetup; QTreeWidget *pListView; QTreeWidgetItem *pListItem; QStringList options; }; static void qsynth_settings_foreach_option ( #ifdef CONFIG_FLUID_SETTINGS_FOREACH_OPTION void *pvData, const char *, const char *pszOption ) #else void *pvData, char *, char *pszOption ) #endif { qsynth_settings_data *pData = (qsynth_settings_data *) pvData; pData->options.append(pszOption); } static void qsynth_settings_foreach ( #ifdef CONFIG_FLUID_SETTINGS_FOREACH void *pvData, const char *pszName, int iType ) #else void *pvData, char *pszName, int iType ) #endif { qsynth_settings_data *pData = (qsynth_settings_data *) pvData; fluid_settings_t *pFluidSettings = (pData->pSetup)->fluid_settings(); // Add the new list item. int iCol = 0; pData->pListItem = new QTreeWidgetItem(pData->pListView, pData->pListItem); (pData->pListItem)->setText(iCol++, pszName); // Check for type... QString qsType = "?"; switch (iType) { case FLUID_NUM_TYPE: qsType = "num"; break; case FLUID_INT_TYPE: qsType = "int"; break; case FLUID_STR_TYPE: qsType = "str"; break; case FLUID_SET_TYPE: qsType = "set"; break; } (pData->pListItem)->setText(iCol++, qsType); /* // Check for hints... int iHints = ::fluid_settings_get_hints(pFluidSettings, pszName); QString sHints = ""; if (iHints & FLUID_HINT_BOUNDED_BELOW) sHints += " BOUNDED_BELOW "; if (iHints & FLUID_HINT_BOUNDED_ABOVE) sHints += " BOUNDED_ABOVE "; if (iHints & FLUID_HINT_TOGGLED) sHints += " TOGGLED "; if (iHints & FLUID_HINT_SAMPLE_RATE) sHints += " SAMPLE_RATE "; if (iHints & FLUID_HINT_LOGARITHMIC) sHints += " LOGARITHMIC "; if (iHints & FLUID_HINT_LOGARITHMIC) sHints += " INTEGER "; if (iHints & FLUID_HINT_FILENAME) sHints += " FILENAME "; if (iHints & FLUID_HINT_OPTIONLIST) sHints += " OPTIONLIST "; */ bool bRealtime = (bool) ::fluid_settings_is_realtime(pFluidSettings, pszName); (pData->pListItem)->setText(iCol++, (bRealtime ? "yes" : "no")); switch (iType) { case FLUID_NUM_TYPE: { #ifdef CONFIG_FLUID_SETTINGS_GETNUM_DEFAULT double fDefault = 0.0f; ::fluid_settings_getnum_default(pFluidSettings, pszName, &fDefault); #else const double fDefault = ::fluid_settings_getnum_default(pFluidSettings, pszName); #endif double fCurrent = 0.0; double fRangeMin = 0.0; double fRangeMax = 0.0; ::fluid_settings_getnum(pFluidSettings, pszName, &fCurrent); ::fluid_settings_getnum_range(pFluidSettings, pszName, &fRangeMin, &fRangeMax); (pData->pListItem)->setText(iCol++, QString::number(fCurrent)); (pData->pListItem)->setText(iCol++, QString::number(fDefault)); (pData->pListItem)->setText(iCol++, QString::number(fRangeMin)); (pData->pListItem)->setText(iCol++, QString::number(fRangeMax)); break; } case FLUID_INT_TYPE: { #ifdef CONFIG_FLUID_SETTINGS_GETINT_DEFAULT int iDefault = 0; ::fluid_settings_getint_default(pFluidSettings, pszName, &iDefault); #else const int iDefault = ::fluid_settings_getint_default(pFluidSettings, pszName); #endif int iCurrent = 0; int iRangeMin = 0; int iRangeMax = 0; ::fluid_settings_getint(pFluidSettings, pszName, &iCurrent); ::fluid_settings_getint_range(pFluidSettings, pszName, &iRangeMin, &iRangeMax); if (iRangeMin + iRangeMax < 2) { iRangeMin = 0; iRangeMax = 1; } (pData->pListItem)->setText(iCol++, QString::number(iCurrent)); (pData->pListItem)->setText(iCol++, QString::number(iDefault)); (pData->pListItem)->setText(iCol++, QString::number(iRangeMin)); (pData->pListItem)->setText(iCol++, QString::number(iRangeMax)); break; } case FLUID_STR_TYPE: { #ifdef CONFIG_FLUID_SETTINGS_GETSTR_DEFAULT char *pszDefault = nullptr; ::fluid_settings_getstr_default(pFluidSettings, pszName, &pszDefault); #else const char *pszDefault = ::fluid_settings_getstr_default(pFluidSettings, pszName); #endif char *pszCurrent = nullptr; #ifdef CONFIG_FLUID_SETTINGS_DUPSTR ::fluid_settings_dupstr(pFluidSettings, pszName, &pszCurrent); #else ::fluid_settings_getstr(pFluidSettings, pszName, &pszCurrent); #endif (pData->pListItem)->setText(iCol++, pszCurrent); (pData->pListItem)->setText(iCol++, pszDefault); (pData->pListItem)->setText(iCol++, QString()); (pData->pListItem)->setText(iCol++, QString()); #ifdef CONFIG_FLUID_SETTINGS_DUPSTR ::free(pszCurrent); #endif break; }} // Check for options. pData->options.clear(); ::fluid_settings_foreach_option(pFluidSettings, pszName, pvData, qsynth_settings_foreach_option); (pData->pListItem)->setText(iCol++, pData->options.join(" ")); } //---------------------------------------------------------------------------- // qsynthSetupForm -- UI wrapper form. // Constructor. qsynthSetupForm::qsynthSetupForm ( QWidget *pParent, Qt::WindowFlags wflags ) : QDialog(pParent, wflags) { // Setup UI struct... m_ui.setupUi(this); // No settings descriptor initially (the caller will set it). m_pSetup = nullptr; m_pOptions = nullptr; // Initialize dirty control state. m_iDirtySetup = 0; m_iDirtyCount = 0; // Check for pixmaps. m_pXpmSoundFont = new QPixmap(":/images/sfont1.png"); // Set dialog validators... QRegExp rx("[\\w-]+"); m_ui.DisplayNameLineEdit->setValidator(new QRegExpValidator(rx, m_ui.DisplayNameLineEdit)); m_ui.SampleRateComboBox->setValidator(new QIntValidator(m_ui.SampleRateComboBox)); m_ui.AudioBufSizeComboBox->setValidator(new QIntValidator(m_ui.AudioBufSizeComboBox)); m_ui.AudioBufCountComboBox->setValidator(new QIntValidator(m_ui.AudioBufCountComboBox)); m_ui.JackNameComboBox->setValidator(new QRegExpValidator(rx, m_ui.JackNameComboBox)); m_ui.MidiNameComboBox->setValidator(new QRegExpValidator(rx, m_ui.MidiNameComboBox)); // No sorting on soundfont stack list. //m_ui.SoundFontListView->setSorting(-1); // Soundfonts list view... QHeaderView *pHeader = m_ui.SoundFontListView->header(); pHeader->setDefaultAlignment(Qt::AlignLeft); // pHeader->setDefaultSectionSize(300); #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) // pHeader->setSectionResizeMode(QHeaderView::Custom); pHeader->setSectionsMovable(false); #else // pHeader->setResizeMode(QHeaderView::Custom); pHeader->setMovable(false); #endif pHeader->setStretchLastSection(true); m_ui.SoundFontListView->resizeColumnToContents(0); // SFID. pHeader->resizeSection(1, 300); // Name. m_ui.SoundFontListView->resizeColumnToContents(2); // Offset. // Settings list view... pHeader = m_ui.SettingsListView->header(); pHeader->setDefaultAlignment(Qt::AlignLeft); // pHeader->setDefaultSectionSize(160); #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) // pHeader->setSectionResizeMode(QHeaderView::Custom); pHeader->setSectionsMovable(false); #else // pHeader->setResizeMode(QHeaderView::Custom); pHeader->setMovable(false); #endif pHeader->setStretchLastSection(true); pHeader->resizeSection(0, 160); // Name. m_ui.SettingsListView->resizeColumnToContents(1); // Type. m_ui.SettingsListView->resizeColumnToContents(2); // Realtime. // m_ui.SettingsListView->resizeColumnToContents(3); // Current. // m_ui.SettingsListView->resizeColumnToContents(4); // Default. m_ui.SettingsListView->resizeColumnToContents(5); // Min. m_ui.SettingsListView->resizeColumnToContents(6); // Max. m_ui.SettingsListView->resizeColumnToContents(7); // Options. // Try to restore old window positioning. adjustSize(); // UI connections... QObject::connect(m_ui.DisplayNameLineEdit, SIGNAL(textChanged(const QString&)), SLOT(nameChanged(const QString&))); QObject::connect(m_ui.MidiInCheckBox, SIGNAL(stateChanged(int)), SLOT(settingsChanged())); QObject::connect(m_ui.MidiDriverComboBox, SIGNAL(activated(const QString&)), SLOT(midiDriverChanged(const QString&))); QObject::connect(m_ui.MidiDeviceComboBox, SIGNAL(editTextChanged(const QString&)), SLOT(settingsChanged())); QObject::connect(m_ui.MidiChannelsSpinBox, SIGNAL(valueChanged(int)), SLOT(settingsChanged())); QObject::connect(m_ui.VerboseCheckBox, SIGNAL(stateChanged(int)), SLOT(settingsChanged())); QObject::connect(m_ui.MidiDumpCheckBox, SIGNAL(stateChanged(int)), SLOT(settingsChanged())); QObject::connect(m_ui.MidiNameComboBox, SIGNAL(editTextChanged(const QString&)), SLOT(settingsChanged())); QObject::connect(m_ui.MidiBankSelectComboBox, SIGNAL(activated(const QString&)), SLOT(settingsChanged())); QObject::connect(m_ui.AudioDriverComboBox, SIGNAL(activated(const QString&)), SLOT(audioDriverChanged(const QString&))); QObject::connect(m_ui.AudioDeviceComboBox, SIGNAL(editTextChanged(const QString&)), SLOT(settingsChanged())); QObject::connect(m_ui.SampleFormatComboBox, SIGNAL(activated(int)), SLOT(settingsChanged())); QObject::connect(m_ui.SampleRateComboBox, SIGNAL(editTextChanged(const QString&)), SLOT(settingsChanged())); QObject::connect(m_ui.AudioBufSizeComboBox, SIGNAL(editTextChanged(const QString&)), SLOT(settingsChanged())); QObject::connect(m_ui.AudioBufCountComboBox, SIGNAL(editTextChanged(const QString&)), SLOT(settingsChanged())); QObject::connect(m_ui.AudioChannelsSpinBox, SIGNAL(valueChanged(int)), SLOT(settingsChanged())); QObject::connect(m_ui.AudioGroupsSpinBox, SIGNAL(valueChanged(int)), SLOT(settingsChanged())); QObject::connect(m_ui.PolyphonySpinBox, SIGNAL(valueChanged(int)), SLOT(settingsChanged())); QObject::connect(m_ui.JackAutoConnectCheckBox, SIGNAL(stateChanged(int)), SLOT(settingsChanged())); QObject::connect(m_ui.JackMultiCheckBox, SIGNAL(stateChanged(int)), SLOT(settingsChanged())); QObject::connect(m_ui.JackNameComboBox, SIGNAL(editTextChanged(const QString&)), SLOT(settingsChanged())); QObject::connect(m_ui.SoundFontListView, SIGNAL(customContextMenuRequested(const QPoint&)), SLOT(contextMenuRequested(const QPoint&))); QObject::connect(m_ui.SoundFontListView, SIGNAL(currentItemChanged(QTreeWidgetItem*,QTreeWidgetItem*)), SLOT(stabilizeForm())); QObject::connect(m_ui.SoundFontOpenPushButton, SIGNAL(clicked()), SLOT(openSoundFont())); QObject::connect(m_ui.SoundFontRemovePushButton, SIGNAL(clicked()), SLOT(removeSoundFont())); QObject::connect(m_ui.SoundFontEditPushButton, SIGNAL(clicked()), SLOT(editSoundFont())); QObject::connect(m_ui.SoundFontMoveUpPushButton, SIGNAL(clicked()), SLOT(moveUpSoundFont())); QObject::connect(m_ui.SoundFontMoveDownPushButton, SIGNAL(clicked()), SLOT(moveDownSoundFont())); QObject::connect(m_ui.SoundFontListView->itemDelegate(), SIGNAL(commitData(QWidget*)), SLOT(itemRenamed())); QObject::connect(m_ui.DialogButtonBox, SIGNAL(accepted()), SLOT(accept())); QObject::connect(m_ui.DialogButtonBox, SIGNAL(rejected()), SLOT(reject())); } // Destructor. qsynthSetupForm::~qsynthSetupForm (void) { // Delete pixmaps. delete m_pXpmSoundFont; } // A combo-box text item setter helper. void qsynthSetupForm::setComboBoxCurrentText ( QComboBox *pComboBox, const QString& sText ) const { if (pComboBox->isEditable()) { pComboBox->setEditText(sText); } else { int iIndex = pComboBox->findText(sText); if (iIndex < 0) { iIndex = 0; if (!sText.isEmpty()) pComboBox->insertItem(0, sText); } pComboBox->setCurrentIndex(iIndex); } } // Populate (setup) dialog controls from settings descriptors. void qsynthSetupForm::setup ( qsynthOptions *pOptions, qsynthEngine *pEngine, bool bNew ) { // Check this first. if (pOptions == nullptr || pEngine == nullptr) return; // Set reference descriptors. m_pOptions = pOptions; m_pSetup = pEngine->setup(); // Update caption. setWindowTitle(pEngine->name() + " - " + tr("Setup")); // Start clean? m_iDirtyCount = 0; if (bNew) { m_pSetup->realize(); ++m_iDirtyCount; } // Avoid nested changes. ++m_iDirtySetup; // Display name. m_ui.DisplayNameLineEdit->setText(m_pSetup->sDisplayName); // Load Setttings view... qsynth_settings_data data; // Set data context. data.pSetup = m_pSetup; data.pListView = m_ui.SettingsListView; data.pListItem = nullptr; // And start filling it in... ::fluid_settings_foreach(m_pSetup->fluid_settings(), &data, qsynth_settings_foreach); // Midi Driver combobox options; // check if intended MIDI driver is available. data.options.clear(); char midi_driver[] = "midi.driver"; ::fluid_settings_foreach_option(m_pSetup->fluid_settings(), midi_driver, &data, qsynth_settings_foreach_option); m_ui.MidiDriverComboBox->clear(); if (!data.options.contains(m_pSetup->sMidiDriver)) data.options.append(m_pSetup->sMidiDriver); m_ui.MidiDriverComboBox->addItems(data.options); // Audio Driver combobox options. // check if intended Audio driver is available. data.options.clear(); char audio_driver[] = "audio.driver"; ::fluid_settings_foreach_option(m_pSetup->fluid_settings(), audio_driver, &data, qsynth_settings_foreach_option); m_ui.AudioDriverComboBox->clear(); if (!data.options.contains(m_pSetup->sAudioDriver)) data.options.append(m_pSetup->sAudioDriver); m_ui.AudioDriverComboBox->addItems(data.options); // Sample Format combobox options. data.options.clear(); char audio_sample_fmt[] = "audio.sample-format"; ::fluid_settings_foreach_option(m_pSetup->fluid_settings(), audio_sample_fmt, &data, qsynth_settings_foreach_option); m_ui.SampleFormatComboBox->clear(); m_ui.SampleFormatComboBox->addItems(data.options); // Midi bank select combobox options data.options.clear(); char midi_bank_select[] = "synth.midi-bank-select"; ::fluid_settings_foreach_option(m_pSetup->fluid_settings(), midi_bank_select, &data, qsynth_settings_foreach_option); m_ui.MidiBankSelectComboBox->clear(); m_ui.MidiBankSelectComboBox->addItems(data.options); // Midi settings... m_ui.MidiInCheckBox->setChecked(m_pSetup->bMidiIn); setComboBoxCurrentText(m_ui.MidiDriverComboBox, m_pSetup->sMidiDriver); updateMidiDevices(m_pSetup->sMidiDriver); setComboBoxCurrentText(m_ui.MidiDeviceComboBox, m_pSetup->sMidiDevice); setComboBoxCurrentText(m_ui.MidiBankSelectComboBox, m_pSetup->sMidiBankSelect); m_ui.MidiChannelsSpinBox->setValue(m_pSetup->iMidiChannels); m_ui.MidiDumpCheckBox->setChecked(m_pSetup->bMidiDump); m_ui.VerboseCheckBox->setChecked(m_pSetup->bVerbose); // ALSA client identifier. m_ui.MidiNameComboBox->addItem(m_pSetup->sDisplayName); setComboBoxCurrentText(m_ui.MidiNameComboBox, bNew ? m_pSetup->sDisplayName : m_pSetup->sMidiName); // Audio settings... setComboBoxCurrentText(m_ui.AudioDriverComboBox, m_pSetup->sAudioDriver); updateAudioDevices(m_pSetup->sAudioDriver); setComboBoxCurrentText(m_ui.AudioDeviceComboBox, m_pSetup->sAudioDevice); setComboBoxCurrentText(m_ui.SampleFormatComboBox, m_pSetup->sSampleFormat); setComboBoxCurrentText(m_ui.SampleRateComboBox, QString::number(m_pSetup->fSampleRate)); setComboBoxCurrentText(m_ui.AudioBufSizeComboBox, QString::number(m_pSetup->iAudioBufSize)); setComboBoxCurrentText(m_ui.AudioBufCountComboBox, QString::number(m_pSetup->iAudioBufCount)); m_ui.AudioChannelsSpinBox->setValue(m_pSetup->iAudioChannels); m_ui.AudioGroupsSpinBox->setValue(m_pSetup->iAudioGroups); m_ui.PolyphonySpinBox->setValue(m_pSetup->iPolyphony); m_ui.JackMultiCheckBox->setChecked(m_pSetup->bJackMulti); m_ui.JackAutoConnectCheckBox->setChecked(m_pSetup->bJackAutoConnect); // JACK client name... QString sJackName; if (!m_pSetup->sDisplayName.contains(QSYNTH_TITLE)) sJackName += QSYNTH_TITLE "_"; sJackName += m_pSetup->sDisplayName; m_ui.JackNameComboBox->addItem(sJackName); setComboBoxCurrentText(m_ui.JackNameComboBox, bNew ? sJackName : m_pSetup->sJackName); // Load the soundfonts view. m_ui.SoundFontListView->clear(); m_ui.SoundFontListView->setUpdatesEnabled(false); QTreeWidgetItem *pItem = nullptr; if (pEngine->pSynth) { // Load soundfont view from actual synth stack... int cSoundFonts = ::fluid_synth_sfcount(pEngine->pSynth); for (int i = cSoundFonts - 1; i >= 0; i--) { fluid_sfont_t *pSoundFont = ::fluid_synth_get_sfont(pEngine->pSynth, i); if (pSoundFont) { pItem = new QTreeWidgetItem(m_ui.SoundFontListView, pItem); if (pItem) { #ifdef CONFIG_FLUID_SFONT_GET_ID const int iSFID = ::fluid_sfont_get_id(pSoundFont); #else const int iSFID = pSoundFont->id; #endif #ifdef CONFIG_FLUID_SFONT_GET_NAME const QString sSFName = ::fluid_sfont_get_name(pSoundFont); #else const QString sSFName = pSoundFont->get_name(pSoundFont); #endif pItem->setIcon(0, *m_pXpmSoundFont); pItem->setText(0, QString::number(iSFID)); pItem->setText(1, sSFName); #ifdef CONFIG_FLUID_BANK_OFFSET pItem->setText(2, QString::number( ::fluid_synth_get_bank_offset(pEngine->pSynth, iSFID))); pItem->setFlags(pItem->flags() | Qt::ItemIsEditable); #endif } } } } else { // Load soundfont view from configuration setup list... int i = 0; QStringListIterator iter(m_pSetup->soundfonts); while (iter.hasNext()) { pItem = new QTreeWidgetItem(m_ui.SoundFontListView, pItem); if (pItem) { pItem->setIcon(0, *m_pXpmSoundFont); pItem->setText(0, QString::number(i)); pItem->setText(1, iter.next()); #ifdef CONFIG_FLUID_BANK_OFFSET pItem->setText(2, m_pSetup->bankoffsets[i]); pItem->setFlags(pItem->flags() | Qt::ItemIsEditable); #endif } ++i; } } m_ui.SoundFontListView->setUpdatesEnabled(true); m_ui.SoundFontListView->update(); // Done. m_iDirtySetup--; stabilizeForm(); } // Accept settings (OK button slot). void qsynthSetupForm::accept (void) { if (m_iDirtyCount > 0) { // Save the soundfont view. m_pSetup->soundfonts.clear(); m_pSetup->bankoffsets.clear(); const int iItemCount = m_ui.SoundFontListView->topLevelItemCount(); for (int i = 0; i < iItemCount; ++i) { QTreeWidgetItem *pItem = m_ui.SoundFontListView->topLevelItem(i); m_pSetup->soundfonts.append(pItem->text(1)); m_pSetup->bankoffsets.append(pItem->text(2)); } // Will we have a setup renaming? m_pSetup->sDisplayName = m_ui.DisplayNameLineEdit->text(); // Midi settings... m_pSetup->bMidiIn = m_ui.MidiInCheckBox->isChecked(); m_pSetup->sMidiDriver = m_ui.MidiDriverComboBox->currentText(); m_pSetup->sMidiDevice = m_ui.MidiDeviceComboBox->currentText(); m_pSetup->iMidiChannels = m_ui.MidiChannelsSpinBox->value(); m_pSetup->sMidiBankSelect = m_ui.MidiBankSelectComboBox->currentText(); m_pSetup->bMidiDump = m_ui.MidiDumpCheckBox->isChecked(); m_pSetup->bVerbose = m_ui.VerboseCheckBox->isChecked(); m_pSetup->sMidiName = m_ui.MidiNameComboBox->currentText(); // Audio settings... m_pSetup->sAudioDriver = m_ui.AudioDriverComboBox->currentText(); m_pSetup->sAudioDevice = m_ui.AudioDeviceComboBox->currentText(); m_pSetup->sSampleFormat = m_ui.SampleFormatComboBox->currentText(); m_pSetup->fSampleRate = m_ui.SampleRateComboBox->currentText().toDouble(); m_pSetup->iAudioBufSize = m_ui.AudioBufSizeComboBox->currentText().toInt(); m_pSetup->iAudioBufCount = m_ui.AudioBufCountComboBox->currentText().toInt(); m_pSetup->iAudioChannels = m_ui.AudioChannelsSpinBox->value(); m_pSetup->iAudioGroups = m_ui.AudioGroupsSpinBox->value(); m_pSetup->iPolyphony = m_ui.PolyphonySpinBox->value(); m_pSetup->bJackMulti = m_ui.JackMultiCheckBox->isChecked(); m_pSetup->bJackAutoConnect = m_ui.JackAutoConnectCheckBox->isChecked(); m_pSetup->sJackName = m_ui.JackNameComboBox->currentText(); // Reset dirty flag. m_iDirtyCount = 0; } // Just go with dialog acceptance. QDialog::accept(); } // Reject settings (Cancel button slot). void qsynthSetupForm::reject (void) { bool bReject = true; // Check if there's any pending changes... if (m_iDirtyCount > 0) { switch (QMessageBox::warning(this, tr("Warning"), tr("Some settings have been changed.") + "\n\n" + tr("Do you want to apply the changes?"), QMessageBox::Apply | QMessageBox::Discard | QMessageBox::Cancel)) { case QMessageBox::Apply: accept(); return; case QMessageBox::Discard: break; default: // Cancel. bReject = false; } } if (bReject) QDialog::reject(); } // Dirty up engine display name. void qsynthSetupForm::nameChanged ( const QString& ) { if (m_iDirtySetup > 0) return; int iItem; const QString& sDisplayName = m_ui.DisplayNameLineEdit->text(); iItem = m_ui.MidiNameComboBox->findText(sDisplayName); if (iItem >= 0) { m_ui.MidiNameComboBox->removeItem(iItem); m_ui.MidiNameComboBox->insertItem(0, sDisplayName); } iItem = m_ui.JackNameComboBox->findText(sDisplayName); if (iItem >= 0) { m_ui.JackNameComboBox->removeItem(iItem); m_ui.JackNameComboBox->insertItem(0, sDisplayName); } settingsChanged(); } // Fill MIDI device options. void qsynthSetupForm::updateMidiDevices ( const QString& sMidiDriver ) { qsynth_settings_data data; data.pSetup = m_pSetup; data.pListView = nullptr; data.pListItem = nullptr; // MIDI Device combobox options; QString sOldText = m_ui.MidiDeviceComboBox->currentText(); m_ui.MidiDeviceComboBox->clear(); QString sName = "midi." + sMidiDriver + ".device"; data.options.clear(); ::fluid_settings_foreach_option(m_pSetup->fluid_settings(), sName.toLocal8Bit().data(), &data, qsynth_settings_foreach_option); m_ui.MidiDeviceComboBox->addItems(data.options); } void qsynthSetupForm::midiDriverChanged ( const QString& sMidiDriver ) { if (m_iDirtySetup > 0) return; QString sMidiDevice = m_ui.MidiDeviceComboBox->currentText(); updateMidiDevices(sMidiDriver); setComboBoxCurrentText(m_ui.MidiDeviceComboBox, sMidiDevice); settingsChanged(); } // Fill audio device options. void qsynthSetupForm::updateAudioDevices ( const QString& sAudioDriver ) { qsynth_settings_data data; data.pSetup = m_pSetup; data.pListView = nullptr; data.pListItem = nullptr; // Audio Device combobox options; QString sOldText = m_ui.AudioDeviceComboBox->currentText(); m_ui.AudioDeviceComboBox->clear(); QString sName = "audio." + sAudioDriver + ".device"; data.options.clear(); ::fluid_settings_foreach_option(m_pSetup->fluid_settings(), sName.toLocal8Bit().data(), &data, qsynth_settings_foreach_option); m_ui.AudioDeviceComboBox->addItems(data.options); } void qsynthSetupForm::audioDriverChanged ( const QString& sAudioDriver ) { if (m_iDirtySetup > 0) return; const QString& sAudioDevice = m_ui.AudioDeviceComboBox->currentText(); updateAudioDevices(sAudioDriver); setComboBoxCurrentText(m_ui.AudioDeviceComboBox, sAudioDevice); settingsChanged(); } // Dirty up settings. void qsynthSetupForm::settingsChanged (void) { if (m_iDirtySetup > 0) return; m_iDirtyCount++; stabilizeForm(); } // Stabilize current form state. void qsynthSetupForm::stabilizeForm (void) { bool bEnabled = m_ui.MidiInCheckBox->isChecked(); const bool bAlsaEnabled = (m_ui.MidiDriverComboBox->currentText() == "alsa_seq"); const bool bCoreMidiEnabled = (m_ui.MidiDriverComboBox->currentText() == "coremidi"); m_ui.MidiDriverTextLabel->setEnabled(bEnabled); m_ui.MidiDriverComboBox->setEnabled(bEnabled); m_ui.MidiDeviceTextLabel->setEnabled(bEnabled && !bAlsaEnabled); m_ui.MidiDeviceComboBox->setEnabled(bEnabled && !bAlsaEnabled); m_ui.MidiChannelsTextLabel->setEnabled(bEnabled); m_ui.MidiChannelsSpinBox->setEnabled(bEnabled); m_ui.MidiDumpCheckBox->setEnabled(bEnabled); m_ui.VerboseCheckBox->setEnabled(bEnabled); m_ui.MidiBankSelectLabel->setEnabled(bEnabled); m_ui.MidiBankSelectComboBox->setEnabled(bEnabled); m_ui.MidiNameTextLabel->setEnabled(bEnabled && (bAlsaEnabled | bCoreMidiEnabled)); m_ui.MidiNameComboBox->setEnabled(bEnabled && (bAlsaEnabled | bCoreMidiEnabled)); const bool bJackEnabled = (m_ui.AudioDriverComboBox->currentText() == "jack"); m_ui.AudioDeviceTextLabel->setEnabled(!bJackEnabled); m_ui.AudioDeviceComboBox->setEnabled(!bJackEnabled); m_ui.JackMultiCheckBox->setEnabled(bJackEnabled); m_ui.JackAutoConnectCheckBox->setEnabled(bJackEnabled); m_ui.JackNameTextLabel->setEnabled(bJackEnabled); m_ui.JackNameComboBox->setEnabled(bJackEnabled); m_ui.SoundFontOpenPushButton->setEnabled(true); QTreeWidgetItem *pSelectedItem = m_ui.SoundFontListView->currentItem(); if (pSelectedItem) { const int iItem = m_ui.SoundFontListView->indexOfTopLevelItem(pSelectedItem); const int iItemCount = m_ui.SoundFontListView->topLevelItemCount(); m_ui.SoundFontEditPushButton->setEnabled( pSelectedItem->flags() & Qt::ItemIsEditable); m_ui.SoundFontRemovePushButton->setEnabled(true); m_ui.SoundFontMoveUpPushButton->setEnabled(iItem > 0); m_ui.SoundFontMoveDownPushButton->setEnabled(iItem < iItemCount - 1); } else { m_ui.SoundFontRemovePushButton->setEnabled(false); m_ui.SoundFontEditPushButton->setEnabled(false); m_ui.SoundFontMoveUpPushButton->setEnabled(false); m_ui.SoundFontMoveDownPushButton->setEnabled(false); } bEnabled = (m_iDirtyCount > 0); if (bEnabled && m_pSetup) { const QString& sDisplayName = m_ui.DisplayNameLineEdit->text(); if (sDisplayName != m_pSetup->sDisplayName) { bEnabled = (!m_pOptions->engines.contains(sDisplayName)); if (bEnabled) bEnabled = (sDisplayName != (m_pOptions->defaultSetup())->sDisplayName); } } m_ui.DialogButtonBox->button(QDialogButtonBox::Ok)->setEnabled(bEnabled); } // Soundfont view context menu handler. void qsynthSetupForm::contextMenuRequested ( const QPoint& pos ) { int iItem = 0; int iItemCount = 0; QTreeWidgetItem *pItem = m_ui.SoundFontListView->itemAt(pos); if (pItem == nullptr) pItem = m_ui.SoundFontListView->currentItem(); if (pItem) { iItem = m_ui.SoundFontListView->indexOfTopLevelItem(pItem); iItemCount = m_ui.SoundFontListView->topLevelItemCount(); } // Build the soundfont context menu... QMenu menu(this); QAction *pAction; pAction = menu.addAction( QIcon(":/images/open1.png"), tr("Open..."), this, SLOT(openSoundFont())); menu.addSeparator(); bool bEnabled = (pItem != nullptr); pAction = menu.addAction( QIcon(":/images/edit1.png"), tr("Edit"), this, SLOT(editSoundFont())); pAction->setEnabled( (bEnabled && (pItem->flags() & Qt::ItemIsEditable))); pAction = menu.addAction( QIcon(":/images/remove1.png"), tr("Remove"), this, SLOT(removeSoundFont())); pAction->setEnabled(bEnabled); menu.addSeparator(); pAction = menu.addAction( QIcon(":/images/up1.png"), tr("Move Up"), this, SLOT(moveUpSoundFont())); pAction->setEnabled(bEnabled && iItem > 0); pAction = menu.addAction( QIcon(":/images/down1.png"), tr("Move Down"), this, SLOT(moveDownSoundFont())); pAction->setEnabled(bEnabled && iItem < iItemCount - 1); menu.exec((m_ui.SoundFontListView->viewport())->mapToGlobal(pos)); } // Refresh the soundfont view ids. void qsynthSetupForm::refreshSoundFonts (void) { m_ui.SoundFontListView->setUpdatesEnabled(false); const int iItemCount = m_ui.SoundFontListView->topLevelItemCount(); for (int i = 0; i < iItemCount; ++i) { QTreeWidgetItem *pItem = m_ui.SoundFontListView->topLevelItem(i); pItem->setText(0, QString::number(i + 1)); } m_ui.SoundFontListView->setUpdatesEnabled(true); m_ui.SoundFontListView->update(); } // Browse for a soundfont file on the filesystem. void qsynthSetupForm::openSoundFont (void) { QStringList soundfonts = QFileDialog::getOpenFileNames(this, tr("Soundfont files"), m_pOptions->sSoundFontDir, tr("Soundfont files") + " (*.sf2 *.SF2 *.sf3 *.SF3)"); QTreeWidgetItem *pItem = nullptr; // For avery selected soundfont to load... QStringListIterator iter(soundfonts); while (iter.hasNext()) { const QString& sSoundFont = iter.next(); // Is it a soundfont file... if (::fluid_is_soundfont(sSoundFont.toLocal8Bit().data())) { // Check if not already there... if (!m_ui.SoundFontListView->findItems( sSoundFont, Qt::MatchExactly, 1).isEmpty() && QMessageBox::warning(this, tr("Warning"), tr("Soundfont file already on list") + ":\n\n" + "\"" + sSoundFont + "\"\n\n" + tr("Add anyway?"), QMessageBox::Ok | QMessageBox::Cancel) == QMessageBox::Cancel) { continue; } // Start inserting in the current selected or last item... if (pItem == nullptr) { pItem = m_ui.SoundFontListView->currentItem(); if (pItem) pItem->setSelected(false); } // New item on the block :-) pItem = new QTreeWidgetItem(m_ui.SoundFontListView, pItem); if (pItem) { pItem->setIcon(0, *m_pXpmSoundFont); pItem->setText(1, sSoundFont); #ifdef CONFIG_FLUID_BANK_OFFSET pItem->setText(2, "0"); pItem->setFlags(pItem->flags() | Qt::ItemIsEditable); #endif pItem->setSelected(true); m_ui.SoundFontListView->setCurrentItem(pItem); m_pOptions->sSoundFontDir = QFileInfo(sSoundFont).dir().absolutePath(); ++m_iDirtyCount; } } else { QMessageBox::critical(this, tr("Error"), tr("Failed to add soundfont file") + ":\n\n" + "\"" + sSoundFont + "\"\n\n" + tr("Please, check for a valid soundfont file."), QMessageBox::Cancel); } } refreshSoundFonts(); stabilizeForm(); } // Edit current selected soundfont. void qsynthSetupForm::editSoundFont (void) { QTreeWidgetItem *pItem = m_ui.SoundFontListView->currentItem(); if (pItem) m_ui.SoundFontListView->editItem(pItem, 2); stabilizeForm(); } // Remove current selected soundfont. void qsynthSetupForm::removeSoundFont (void) { QTreeWidgetItem *pItem = m_ui.SoundFontListView->currentItem(); if (pItem) { ++m_iDirtyCount; delete pItem; } refreshSoundFonts(); stabilizeForm(); } // Move current selected soundfont one position up. void qsynthSetupForm::moveUpSoundFont (void) { QTreeWidgetItem *pItem = m_ui.SoundFontListView->currentItem(); if (pItem) { int iItem = m_ui.SoundFontListView->indexOfTopLevelItem(pItem); if (iItem > 0) { pItem->setSelected(false); pItem = m_ui.SoundFontListView->takeTopLevelItem(iItem); m_ui.SoundFontListView->insertTopLevelItem(iItem - 1, pItem); pItem->setSelected(true); m_ui.SoundFontListView->setCurrentItem(pItem); ++m_iDirtyCount; } } refreshSoundFonts(); stabilizeForm(); } // Move current selected soundfont one position down. void qsynthSetupForm::moveDownSoundFont (void) { QTreeWidgetItem *pItem = m_ui.SoundFontListView->currentItem(); if (pItem) { const int iItemCount = m_ui.SoundFontListView->topLevelItemCount(); int iItem = m_ui.SoundFontListView->indexOfTopLevelItem(pItem); if (iItem < iItemCount - 1) { pItem->setSelected(false); pItem = m_ui.SoundFontListView->takeTopLevelItem(iItem); m_ui.SoundFontListView->insertTopLevelItem(iItem + 1, pItem); pItem->setSelected(true); m_ui.SoundFontListView->setCurrentItem(pItem); m_iDirtyCount++; } } refreshSoundFonts(); stabilizeForm(); } // Check soundfont bank offset edit. void qsynthSetupForm::itemRenamed (void) { QTreeWidgetItem *pItem = m_ui.SoundFontListView->currentItem(); if (pItem) { const int iBankOffset = pItem->text(2).toInt(); if (iBankOffset < 0 || iBankOffset > 16384) pItem->setText(2, QString::number(0)); m_iDirtyCount++; } stabilizeForm(); } // end of qsynthSetupForm.cpp qsynth-0.6.1/src/PaxHeaders.5367/qsynthPaletteForm.cpp0000644000000000000000000000013213577702221017517 xustar0030 mtime=1577026705.846992838 30 atime=1577026705.846992838 30 ctime=1577026705.846992838 qsynth-0.6.1/src/qsynthPaletteForm.cpp0000644000175000001440000011637013577702221020354 0ustar00rncbcusers00000000000000// qsynthPaletteForm.cpp // /**************************************************************************** Copyright (C) 2003-2019, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. *****************************************************************************/ #include "qsynthAbout.h" #include "qsynthPaletteForm.h" #include "ui_qsynthPaletteForm.h" #include #include #include #include #include #include #include #include #include #include #include // Local static consts. static const char *ColorThemesGroup = "/ColorThemes/"; static const char *PaletteEditorGroup = "/PaletteEditor/"; static const char *DefaultDirKey = "DefaultDir"; static const char *ShowDetailsKey = "ShowDetails"; static const char *DefaultSuffix = "conf"; static struct { const char *key; QPalette::ColorRole value; } g_colorRoles[] = { { "Window", QPalette::Window }, { "WindowText", QPalette::WindowText }, { "Button", QPalette::Button }, { "ButtonText", QPalette::ButtonText }, { "Light", QPalette::Light }, { "Midlight", QPalette::Midlight }, { "Dark", QPalette::Dark }, { "Mid", QPalette::Mid }, { "Text", QPalette::Text }, { "BrightText", QPalette::BrightText }, { "Base", QPalette::Base }, { "AlternateBase", QPalette::AlternateBase }, { "Shadow", QPalette::Shadow }, { "Highlight", QPalette::Highlight }, { "HighlightedText", QPalette::HighlightedText }, { "Link", QPalette::Link }, { "LinkVisited", QPalette::LinkVisited }, { "ToolTipBase", QPalette::ToolTipBase }, { "ToolTipText", QPalette::ToolTipText }, { "NoRole", QPalette::NoRole }, { nullptr, QPalette::NoRole } }; //------------------------------------------------------------------------- // qsynthPaletteForm qsynthPaletteForm::qsynthPaletteForm ( QWidget *parent, const QPalette& pal ) : QDialog(parent), p_ui(new Ui::qsynthPaletteForm), m_ui(*p_ui) { m_ui.setupUi(this); m_settings = nullptr; m_owner = false; m_modelUpdated = false; m_paletteUpdated = false; m_dirtyCount = 0; m_dirtyTotal = 0; updateGenerateButton(); m_paletteModel = new PaletteModel(this); m_ui.paletteView->setModel(m_paletteModel); ColorDelegate *delegate = new ColorDelegate(this); m_ui.paletteView->setItemDelegate(delegate); m_ui.paletteView->setEditTriggers(QAbstractItemView::AllEditTriggers); // m_ui.paletteView->setAlternatingRowColors(true); m_ui.paletteView->setSelectionBehavior(QAbstractItemView::SelectRows); m_ui.paletteView->setDragEnabled(true); m_ui.paletteView->setDropIndicatorShown(true); m_ui.paletteView->setRootIsDecorated(false); m_ui.paletteView->setColumnHidden(2, true); m_ui.paletteView->setColumnHidden(3, true); QObject::connect(m_ui.nameCombo, SIGNAL(activated(const QString&)), SLOT(nameComboActivated(const QString&))); QObject::connect(m_ui.nameCombo, SIGNAL(editTextChanged(const QString&)), SLOT(nameComboChanged(const QString&))); QObject::connect(m_ui.saveButton, SIGNAL(clicked()), SLOT(saveButtonClicked())); QObject::connect(m_ui.deleteButton, SIGNAL(clicked()), SLOT(deleteButtonClicked())); QObject::connect(m_ui.generateButton, SIGNAL(changed()), SLOT(generateButtonChanged())); QObject::connect(m_ui.resetButton, SIGNAL(clicked()), SLOT(resetButtonClicked())); QObject::connect(m_ui.detailsCheck, SIGNAL(clicked()), SLOT(detailsCheckClicked())); QObject::connect(m_ui.importButton, SIGNAL(clicked()), SLOT(importButtonClicked())); QObject::connect(m_ui.exportButton, SIGNAL(clicked()), SLOT(exportButtonClicked())); QObject::connect(m_paletteModel, SIGNAL(paletteChanged(const QPalette&)), SLOT(paletteChanged(const QPalette&))); QObject::connect(m_ui.dialogButtons, SIGNAL(accepted()), SLOT(accept())); QObject::connect(m_ui.dialogButtons, SIGNAL(rejected()), SLOT(reject())); setPalette(pal, pal); QDialog::adjustSize(); } qsynthPaletteForm::~qsynthPaletteForm (void) { setSettings(nullptr); } void qsynthPaletteForm::setPalette ( const QPalette& pal ) { m_palette = pal; const uint mask = pal.resolve(); for (int i = 0; g_colorRoles[i].key; ++i) { if ((mask & (1 << i)) == 0) { const QPalette::ColorRole cr = QPalette::ColorRole(i); m_palette.setBrush(QPalette::Active, cr, m_parentPalette.brush(QPalette::Active, cr)); m_palette.setBrush(QPalette::Inactive, cr, m_parentPalette.brush(QPalette::Inactive, cr)); m_palette.setBrush(QPalette::Disabled, cr, m_parentPalette.brush(QPalette::Disabled, cr)); } } m_palette.resolve(mask); updateGenerateButton(); m_paletteUpdated = true; if (!m_modelUpdated) m_paletteModel->setPalette(m_palette, m_parentPalette); m_paletteUpdated = false; } void qsynthPaletteForm::setPalette ( const QPalette& pal, const QPalette& parentPal ) { m_parentPalette = parentPal; setPalette(pal); } const QPalette& qsynthPaletteForm::palette (void) const { return m_palette; } void qsynthPaletteForm::setSettings ( QSettings *settings, bool owner ) { if (m_settings && m_owner) delete m_settings; m_settings = settings; m_owner = owner; m_ui.detailsCheck->setChecked(isShowDetails()); updateNamedPaletteList(); updateDialogButtons(); } QSettings *qsynthPaletteForm::settings (void) const { return m_settings; } void qsynthPaletteForm::nameComboActivated ( const QString& name ) { setPaletteName(name); } void qsynthPaletteForm::nameComboChanged ( const QString& name ) { if (m_dirtyCount > 0 || m_ui.nameCombo->findText(name) < 0) updateDialogButtons(); else setPaletteName(name); } void qsynthPaletteForm::saveButtonClicked (void) { const QString& name = m_ui.nameCombo->currentText(); if (!name.isEmpty()) { saveNamedPalette(name, m_palette); setPalette(m_palette, m_palette); updateNamedPaletteList(); resetButtonClicked(); } } void qsynthPaletteForm::deleteButtonClicked (void) { const QString& name = m_ui.nameCombo->currentText(); if (m_ui.nameCombo->findText(name) >= 0) { deleteNamedPalette(name); updateNamedPaletteList(); updateDialogButtons(); } } void qsynthPaletteForm::generateButtonChanged (void) { const QColor& color = m_ui.generateButton->brush().color(); const QPalette& pal = QPalette(color); setPalette(pal); ++m_dirtyCount; updateDialogButtons(); } void qsynthPaletteForm::resetButtonClicked (void) { const bool blocked = blockSignals(true); for (int i = 0; g_colorRoles[i].key; ++i) { const QPalette::ColorRole cr = g_colorRoles[i].value; const QModelIndex& index = m_paletteModel->index(cr, 0); m_paletteModel->setData(index, false, Qt::EditRole); } m_dirtyCount = 0; updateDialogButtons(); blockSignals(blocked); } void qsynthPaletteForm::detailsCheckClicked (void) { const int cw = (m_ui.paletteView->viewport()->width() >> 2); QHeaderView *header = m_ui.paletteView->header(); header->resizeSection(0, cw); if (m_ui.detailsCheck->isChecked()) { m_ui.paletteView->setColumnHidden(2, false); m_ui.paletteView->setColumnHidden(3, false); header->resizeSection(1, cw); header->resizeSection(2, cw); header->resizeSection(3, cw); m_paletteModel->setGenerate(false); } else { m_ui.paletteView->setColumnHidden(2, true); m_ui.paletteView->setColumnHidden(3, true); header->resizeSection(1, cw * 3); m_paletteModel->setGenerate(true); } } void qsynthPaletteForm::importButtonClicked (void) { const QString& title = tr("Import File - %1").arg(QDialog::windowTitle()); QStringList filters; filters.append(tr("Palette files (*.%1)").arg(DefaultSuffix)); filters.append(tr("All files (*.*)")); const QString& filename = QFileDialog::getOpenFileName(this, title, defaultDir(), filters.join(";;")); if (filename.isEmpty()) return; int imported = 0; QSettings settings(filename, QSettings::IniFormat); settings.beginGroup(ColorThemesGroup); QStringListIterator name_iter(settings.childGroups()); while (name_iter.hasNext()) { const QString& name = name_iter.next(); if (!name.isEmpty()) { QPalette pal; int result = 0; uint mask = pal.resolve(); settings.beginGroup(name + '/'); QStringListIterator iter(settings.childKeys()); while (iter.hasNext()) { const QString& key = iter.next(); const QPalette::ColorRole cr = qsynthPaletteForm::colorRole(key); const QStringList& clist = settings.value(key).toStringList(); if (clist.count() == 3) { pal.setColor(QPalette::Active, cr, QColor(clist.at(0))); pal.setColor(QPalette::Inactive, cr, QColor(clist.at(1))); pal.setColor(QPalette::Disabled, cr, QColor(clist.at(2))); mask &= ~(1 << int(cr)); ++result; } } pal.resolve(mask); settings.endGroup(); if (result > 0) { saveNamedPalette(name, pal); setPaletteName(name); ++imported; } } } settings.endGroup(); if (imported > 0) { updateNamedPaletteList(); resetButtonClicked(); setDefaultDir(QFileInfo(filename).absolutePath()); } else { QMessageBox::warning(this, tr("Warning - %1").arg(QDialog::windowTitle()), tr("Could not import from file:\n\n" "%1\n\nSorry.").arg(filename)); } } void qsynthPaletteForm::exportButtonClicked (void) { const QString& title = tr("Export File - %1").arg(QDialog::windowTitle()); QStringList filters; filters.append(tr("Palette files (*.%1)").arg(DefaultSuffix)); filters.append(tr("All files (*.*)")); QString dirname = defaultDir(); if (!dirname.isEmpty()) dirname.append(QDir::separator()); dirname.append(paletteName() + '.' + DefaultSuffix); const QString& filename = QFileDialog::getSaveFileName(this, title, dirname, filters.join(";;")); if (filename.isEmpty()) return; const QPalette& pal = m_palette; QSettings settings(filename, QSettings::IniFormat); settings.beginGroup(ColorThemesGroup); settings.beginGroup(QFileInfo(filename).baseName() + '/'); for (int i = 0; g_colorRoles[i].key; ++i) { const QString& key = QString::fromLatin1(g_colorRoles[i].key); const QPalette::ColorRole cr = g_colorRoles[i].value; QStringList clist; clist.append(pal.color(QPalette::Active, cr).name()); clist.append(pal.color(QPalette::Inactive, cr).name()); clist.append(pal.color(QPalette::Disabled, cr).name()); settings.setValue(key, clist); } settings.endGroup(); settings.endGroup(); setDefaultDir(QFileInfo(filename).absolutePath()); } void qsynthPaletteForm::paletteChanged ( const QPalette& pal ) { m_modelUpdated = true; if (!m_paletteUpdated) setPalette(pal); m_modelUpdated = false; ++m_dirtyCount; updateDialogButtons(); } void qsynthPaletteForm::setPaletteName ( const QString& name ) { const bool blocked = m_ui.nameCombo->blockSignals(true); m_ui.nameCombo->setEditText(name); QPalette pal; if (namedPalette(m_settings, name, pal, true)) setPalette(pal, pal); m_dirtyCount = 0; updateDialogButtons(); m_ui.nameCombo->blockSignals(blocked); } QString qsynthPaletteForm::paletteName (void) const { return m_ui.nameCombo->currentText(); } void qsynthPaletteForm::updateNamedPaletteList (void) { const bool blocked = m_ui.nameCombo->blockSignals(true); const QString old_name = m_ui.nameCombo->currentText(); m_ui.nameCombo->clear(); m_ui.nameCombo->insertItems(0, namedPaletteList()); // m_ui.nameCombo->model()->sort(0); const int i = m_ui.nameCombo->findText(old_name); if (i >= 0) m_ui.nameCombo->setCurrentIndex(i); else m_ui.nameCombo->setEditText(old_name); m_ui.nameCombo->blockSignals(blocked); } void qsynthPaletteForm::updateGenerateButton (void) { m_ui.generateButton->setBrush( m_palette.brush(QPalette::Active, QPalette::Button)); } void qsynthPaletteForm::updateDialogButtons (void) { const QString& name = m_ui.nameCombo->currentText(); const int i = m_ui.nameCombo->findText(name); m_ui.saveButton->setEnabled(!name.isEmpty() && (m_dirtyCount > 0 || i < 0)); m_ui.deleteButton->setEnabled(i >= 0); m_ui.resetButton->setEnabled(m_dirtyCount > 0); m_ui.exportButton->setEnabled(!name.isEmpty() || i >= 0); m_ui.dialogButtons->button(QDialogButtonBox::Ok)->setEnabled(i >= 0); if (name == "Wonton Soup" || name == "KXStudio") { m_ui.saveButton->setEnabled(false); m_ui.deleteButton->setEnabled(false); m_ui.exportButton->setEnabled(false); } } bool qsynthPaletteForm::namedPalette ( const QString& name, QPalette& pal ) { return namedPalette(m_settings, name, pal); } bool qsynthPaletteForm::namedPalette ( QSettings *settings, const QString& name, QPalette& pal, bool fixup ) { int result = 0; uint mask = pal.resolve(); // Custom color themes... if (name == "Wonton Soup") { pal.setColor(QPalette::Active, QPalette::Window, QColor(73, 78, 88)); pal.setColor(QPalette::Inactive, QPalette::Window, QColor(73, 78, 88)); pal.setColor(QPalette::Disabled, QPalette::Window, QColor(64, 68, 77)); pal.setColor(QPalette::Active, QPalette::WindowText, QColor(182, 193, 208)); pal.setColor(QPalette::Inactive, QPalette::WindowText, QColor(182, 193, 208)); pal.setColor(QPalette::Disabled, QPalette::WindowText, QColor(97, 104, 114)); pal.setColor(QPalette::Active, QPalette::Base, QColor(60, 64, 72)); pal.setColor(QPalette::Inactive, QPalette::Base, QColor(60, 64, 72)); pal.setColor(QPalette::Disabled, QPalette::Base, QColor(52, 56, 63)); pal.setColor(QPalette::Active, QPalette::AlternateBase, QColor(67, 71, 80)); pal.setColor(QPalette::Inactive, QPalette::AlternateBase, QColor(67, 71, 80)); pal.setColor(QPalette::Disabled, QPalette::AlternateBase, QColor(59, 62, 70)); pal.setColor(QPalette::Active, QPalette::ToolTipBase, QColor(182, 193, 208)); pal.setColor(QPalette::Inactive, QPalette::ToolTipBase, QColor(182, 193, 208)); pal.setColor(QPalette::Disabled, QPalette::ToolTipBase, QColor(182, 193, 208)); pal.setColor(QPalette::Active, QPalette::ToolTipText, QColor(42, 44, 48)); pal.setColor(QPalette::Inactive, QPalette::ToolTipText, QColor(42, 44, 48)); pal.setColor(QPalette::Disabled, QPalette::ToolTipText, QColor(42, 44, 48)); pal.setColor(QPalette::Active, QPalette::Text, QColor(210, 222, 240)); pal.setColor(QPalette::Inactive, QPalette::Text, QColor(210, 222, 240)); pal.setColor(QPalette::Disabled, QPalette::Text, QColor(99, 105, 115)); pal.setColor(QPalette::Active, QPalette::Button, QColor(82, 88, 99)); pal.setColor(QPalette::Inactive, QPalette::Button, QColor(82, 88, 99)); pal.setColor(QPalette::Disabled, QPalette::Button, QColor(72, 77, 87)); pal.setColor(QPalette::Active, QPalette::ButtonText, QColor(210, 222, 240)); pal.setColor(QPalette::Inactive, QPalette::ButtonText, QColor(210, 222, 240)); pal.setColor(QPalette::Disabled, QPalette::ButtonText, QColor(111, 118, 130)); pal.setColor(QPalette::Active, QPalette::BrightText, QColor(255, 255, 255)); pal.setColor(QPalette::Inactive, QPalette::BrightText, QColor(255, 255, 255)); pal.setColor(QPalette::Disabled, QPalette::BrightText, QColor(255, 255, 255)); pal.setColor(QPalette::Active, QPalette::Light, QColor(95, 101, 114)); pal.setColor(QPalette::Inactive, QPalette::Light, QColor(95, 101, 114)); pal.setColor(QPalette::Disabled, QPalette::Light, QColor(86, 92, 104)); pal.setColor(QPalette::Active, QPalette::Midlight, QColor(84, 90, 101)); pal.setColor(QPalette::Inactive, QPalette::Midlight, QColor(84, 90, 101)); pal.setColor(QPalette::Disabled, QPalette::Midlight, QColor(75, 81, 91)); pal.setColor(QPalette::Active, QPalette::Dark, QColor(40, 43, 49)); pal.setColor(QPalette::Inactive, QPalette::Dark, QColor(40, 43, 49)); pal.setColor(QPalette::Disabled, QPalette::Dark, QColor(35, 38, 43)); pal.setColor(QPalette::Active, QPalette::Mid, QColor(63, 68, 76)); pal.setColor(QPalette::Inactive, QPalette::Mid, QColor(63, 68, 76)); pal.setColor(QPalette::Disabled, QPalette::Mid, QColor(56, 59, 67)); pal.setColor(QPalette::Active, QPalette::Shadow, QColor(29, 31, 35)); pal.setColor(QPalette::Inactive, QPalette::Shadow, QColor(29, 31, 35)); pal.setColor(QPalette::Disabled, QPalette::Shadow, QColor(25, 27, 30)); pal.setColor(QPalette::Active, QPalette::Highlight, QColor(120, 136, 156)); pal.setColor(QPalette::Inactive, QPalette::Highlight, QColor(81, 90, 103)); pal.setColor(QPalette::Disabled, QPalette::Highlight, QColor(64, 68, 77)); pal.setColor(QPalette::Active, QPalette::HighlightedText, QColor(209, 225, 244)); pal.setColor(QPalette::Inactive, QPalette::HighlightedText, QColor(182, 193, 208)); pal.setColor(QPalette::Disabled, QPalette::HighlightedText, QColor(97, 104, 114)); pal.setColor(QPalette::Active, QPalette::Link, QColor(156, 212, 255)); pal.setColor(QPalette::Inactive, QPalette::Link, QColor(156, 212, 255)); pal.setColor(QPalette::Disabled, QPalette::Link, QColor(82, 102, 119)); pal.setColor(QPalette::Active, QPalette::LinkVisited, QColor(64, 128, 255)); pal.setColor(QPalette::Inactive, QPalette::LinkVisited, QColor(64, 128, 255)); pal.setColor(QPalette::Disabled, QPalette::LinkVisited, QColor(54, 76, 119)); mask = 0; ++result; } else if (name == "KXStudio") { pal.setColor(QPalette::Active, QPalette::Window, QColor(17, 17, 17)); pal.setColor(QPalette::Inactive, QPalette::Window, QColor(17, 17, 17)); pal.setColor(QPalette::Disabled, QPalette::Window, QColor(14, 14, 14)); pal.setColor(QPalette::Active, QPalette::WindowText, QColor(240, 240, 240)); pal.setColor(QPalette::Inactive, QPalette::WindowText, QColor(240, 240, 240)); pal.setColor(QPalette::Disabled, QPalette::WindowText, QColor(83, 83, 83)); pal.setColor(QPalette::Active, QPalette::Base, QColor(7, 7, 7)); pal.setColor(QPalette::Inactive, QPalette::Base, QColor(7, 7, 7)); pal.setColor(QPalette::Disabled, QPalette::Base, QColor(6, 6, 6)); pal.setColor(QPalette::Active, QPalette::AlternateBase, QColor(14, 14, 14)); pal.setColor(QPalette::Inactive, QPalette::AlternateBase, QColor(14, 14, 14)); pal.setColor(QPalette::Disabled, QPalette::AlternateBase, QColor(12, 12, 12)); pal.setColor(QPalette::Active, QPalette::ToolTipBase, QColor(4, 4, 4)); pal.setColor(QPalette::Inactive, QPalette::ToolTipBase, QColor(4, 4, 4)); pal.setColor(QPalette::Disabled, QPalette::ToolTipBase, QColor(4, 4, 4)); pal.setColor(QPalette::Active, QPalette::ToolTipText, QColor(230, 230, 230)); pal.setColor(QPalette::Inactive, QPalette::ToolTipText, QColor(230, 230, 230)); pal.setColor(QPalette::Disabled, QPalette::ToolTipText, QColor(230, 230, 230)); pal.setColor(QPalette::Active, QPalette::Text, QColor(230, 230, 230)); pal.setColor(QPalette::Inactive, QPalette::Text, QColor(230, 230, 230)); pal.setColor(QPalette::Disabled, QPalette::Text, QColor(74, 74, 74)); pal.setColor(QPalette::Active, QPalette::Button, QColor(28, 28, 28)); pal.setColor(QPalette::Inactive, QPalette::Button, QColor(28, 28, 28)); pal.setColor(QPalette::Disabled, QPalette::Button, QColor(24, 24, 24)); pal.setColor(QPalette::Active, QPalette::ButtonText, QColor(240, 240, 240)); pal.setColor(QPalette::Inactive, QPalette::ButtonText, QColor(240, 240, 240)); pal.setColor(QPalette::Disabled, QPalette::ButtonText, QColor(90, 90, 90)); pal.setColor(QPalette::Active, QPalette::BrightText, QColor(255, 255, 255)); pal.setColor(QPalette::Inactive, QPalette::BrightText, QColor(255, 255, 255)); pal.setColor(QPalette::Disabled, QPalette::BrightText, QColor(255, 255, 255)); pal.setColor(QPalette::Active, QPalette::Light, QColor(191, 191, 191)); pal.setColor(QPalette::Inactive, QPalette::Light, QColor(191, 191, 191)); pal.setColor(QPalette::Disabled, QPalette::Light, QColor(191, 191, 191)); pal.setColor(QPalette::Active, QPalette::Midlight, QColor(155, 155, 155)); pal.setColor(QPalette::Inactive, QPalette::Midlight, QColor(155, 155, 155)); pal.setColor(QPalette::Disabled, QPalette::Midlight, QColor(155, 155, 155)); pal.setColor(QPalette::Active, QPalette::Dark, QColor(129, 129, 129)); pal.setColor(QPalette::Inactive, QPalette::Dark, QColor(129, 129, 129)); pal.setColor(QPalette::Disabled, QPalette::Dark, QColor(129, 129, 129)); pal.setColor(QPalette::Active, QPalette::Mid, QColor(94, 94, 94)); pal.setColor(QPalette::Inactive, QPalette::Mid, QColor(94, 94, 94)); pal.setColor(QPalette::Disabled, QPalette::Mid, QColor(94, 94, 94)); pal.setColor(QPalette::Active, QPalette::Shadow, QColor(155, 155, 155)); pal.setColor(QPalette::Inactive, QPalette::Shadow, QColor(155, 155, 155)); pal.setColor(QPalette::Disabled, QPalette::Shadow, QColor(155, 155, 155)); pal.setColor(QPalette::Active, QPalette::Highlight, QColor(60, 60, 60)); pal.setColor(QPalette::Inactive, QPalette::Highlight, QColor(34, 34, 34)); pal.setColor(QPalette::Disabled, QPalette::Highlight, QColor(14, 14, 14)); pal.setColor(QPalette::Active, QPalette::HighlightedText, QColor(255, 255, 255)); pal.setColor(QPalette::Inactive, QPalette::HighlightedText, QColor(240, 240, 240)); pal.setColor(QPalette::Disabled, QPalette::HighlightedText, QColor(83, 83, 83)); pal.setColor(QPalette::Active, QPalette::Link, QColor(100, 100, 230)); pal.setColor(QPalette::Inactive, QPalette::Link, QColor(100, 100, 230)); pal.setColor(QPalette::Disabled, QPalette::Link, QColor(34, 34, 74)); pal.setColor(QPalette::Active, QPalette::LinkVisited, QColor(230, 100, 230)); pal.setColor(QPalette::Inactive, QPalette::LinkVisited, QColor(230, 100, 230)); pal.setColor(QPalette::Disabled, QPalette::LinkVisited, QColor(74, 34, 74)); mask = 0; ++result; } else if (settings) { settings->beginGroup(ColorThemesGroup); settings->beginGroup(name + '/'); QStringListIterator iter(settings->childKeys()); while (iter.hasNext()) { const QString& key = iter.next(); const QPalette::ColorRole cr = qsynthPaletteForm::colorRole(key); const QStringList& clist = settings->value(key).toStringList(); if (clist.count() == 3) { pal.setColor(QPalette::Active, cr, QColor(clist.at(0))); pal.setColor(QPalette::Inactive, cr, QColor(clist.at(1))); pal.setColor(QPalette::Disabled, cr, QColor(clist.at(2))); mask &= ~(1 << int(cr)); ++result; } } settings->endGroup(); settings->endGroup(); } // Dark themes grayed/disabled color group fix... if (!fixup && pal.base().color().value() < 0x7f) { const QColor& color = pal.window().color(); const int groups = int(QPalette::Active | QPalette::Inactive) + 1; for (int i = 0; i < groups; ++i) { const QPalette::ColorGroup cg = QPalette::ColorGroup(i); pal.setBrush(cg, QPalette::Light, color.lighter(140)); pal.setBrush(cg, QPalette::Midlight, color.lighter(100)); pal.setBrush(cg, QPalette::Mid, color.lighter(90)); pal.setBrush(cg, QPalette::Dark, color.darker(160)); pal.setBrush(cg, QPalette::Shadow, color.darker(180)); } pal.setColorGroup(QPalette::Disabled, pal.windowText().color().darker(), pal.button(), pal.light(), pal.dark(), pal.mid(), pal.text().color().darker(), pal.text().color().lighter(), pal.base(), pal.window()); #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) pal.setColor(QPalette::Disabled, QPalette::Highlight, pal.mid().color()); pal.setColor(QPalette::Disabled, QPalette::ButtonText, pal.mid().color()); #endif ++result; } pal.resolve(mask); return (result > 0); } void qsynthPaletteForm::saveNamedPalette ( const QString& name, const QPalette& pal ) { if (m_settings && name != "KXStudio" && name != "Wonton Soup") { m_settings->beginGroup(ColorThemesGroup); m_settings->beginGroup(name + '/'); for (int i = 0; g_colorRoles[i].key; ++i) { const QString& key = QString::fromLatin1(g_colorRoles[i].key); const QPalette::ColorRole cr = g_colorRoles[i].value; QStringList clist; clist.append(pal.color(QPalette::Active, cr).name()); clist.append(pal.color(QPalette::Inactive, cr).name()); clist.append(pal.color(QPalette::Disabled, cr).name()); m_settings->setValue(key, clist); } m_settings->endGroup(); m_settings->endGroup(); ++m_dirtyTotal; } } void qsynthPaletteForm::deleteNamedPalette ( const QString& name ) { if (m_settings) { m_settings->beginGroup(ColorThemesGroup); m_settings->remove(name); m_settings->endGroup(); ++m_dirtyTotal; } } QStringList qsynthPaletteForm::namedPaletteList (void) { return namedPaletteList(m_settings); } QStringList qsynthPaletteForm::namedPaletteList ( QSettings *settings ) { QStringList list; list.append("Wonton Soup"); list.append("KXStudio"); if (settings) { settings->beginGroup(ColorThemesGroup); list.append(settings->childGroups()); settings->endGroup(); } return list; } QPalette::ColorRole qsynthPaletteForm::colorRole ( const QString& name ) { static QHash s_colorRoles; if (s_colorRoles.isEmpty()) { for (int i = 0; g_colorRoles[i].key; ++i) { const QString& key = QString::fromLatin1(g_colorRoles[i].key); const QPalette::ColorRole value = g_colorRoles[i].value; s_colorRoles.insert(key, value); } } return s_colorRoles.value(name, QPalette::NoRole); } bool qsynthPaletteForm::isDirty (void) const { return (m_dirtyTotal > 0); } void qsynthPaletteForm::accept (void) { setShowDetails(m_ui.detailsCheck->isChecked()); if (m_dirtyCount > 0) saveButtonClicked(); QDialog::accept(); } void qsynthPaletteForm::reject (void) { if (m_dirtyCount > 0) { const QString& name = paletteName(); if (name.isEmpty()) { if (QMessageBox::warning(this, tr("Warning - %1").arg(QDialog::windowTitle()), tr("Some settings have been changed.\n\n" "Do you want to discard the changes?"), QMessageBox::Discard | QMessageBox::Cancel) == QMessageBox::Cancel) return; } else { switch (QMessageBox::warning(this, tr("Warning - %1").arg(QDialog::windowTitle()), tr("Some settings have been changed:\n\n" "\"%1\".\n\nDo you want to save the changes?") .arg(name), QMessageBox::Save | QMessageBox::Discard | QMessageBox::Cancel)) { case QMessageBox::Save: saveButtonClicked(); // Fall thru... case QMessageBox::Discard: break; default: // Cancel... return; } } } QDialog::reject(); } void qsynthPaletteForm::setDefaultDir ( const QString& dir ) { if (m_settings) { m_settings->beginGroup(PaletteEditorGroup); m_settings->setValue(DefaultDirKey, dir); m_settings->endGroup(); } } QString qsynthPaletteForm::defaultDir (void) const { QString dir; if (m_settings) { m_settings->beginGroup(PaletteEditorGroup); dir = m_settings->value(DefaultDirKey).toString(); m_settings->endGroup(); } return dir; } void qsynthPaletteForm::setShowDetails ( bool on ) { if (m_settings) { m_settings->beginGroup(PaletteEditorGroup); m_settings->setValue(ShowDetailsKey, on); m_settings->endGroup(); } } bool qsynthPaletteForm::isShowDetails (void) const { bool on = false; if (m_settings) { m_settings->beginGroup(PaletteEditorGroup); on = m_settings->value(ShowDetailsKey).toBool(); m_settings->endGroup(); } return on; } void qsynthPaletteForm::showEvent ( QShowEvent *event ) { QDialog::showEvent(event); detailsCheckClicked(); } void qsynthPaletteForm::resizeEvent ( QResizeEvent *event ) { QDialog::resizeEvent(event); detailsCheckClicked(); } //------------------------------------------------------------------------- // qsynthPaletteForm::PaletteModel qsynthPaletteForm::PaletteModel::PaletteModel ( QObject *parent ) : QAbstractTableModel(parent) { for (m_nrows = 0; g_colorRoles[m_nrows].key; ++m_nrows) { const QPalette::ColorRole value = g_colorRoles[m_nrows].value; const QString& key = QString::fromLatin1(g_colorRoles[m_nrows].key); m_roleNames.insert(value, key); } m_generate = true; } int qsynthPaletteForm::PaletteModel::rowCount ( const QModelIndex& ) const { return m_nrows; } int qsynthPaletteForm::PaletteModel::columnCount ( const QModelIndex& ) const { return 4; } QVariant qsynthPaletteForm::PaletteModel::data ( const QModelIndex& index, int role ) const { if (!index.isValid()) return QVariant(); if (index.row() < 0 || index.row() >= m_nrows) return QVariant(); if (index.column() < 0 || index.column() >= 4) return QVariant(); if (index.column() == 0) { if (role == Qt::DisplayRole) return m_roleNames.value(QPalette::ColorRole(index.row())); if (role == Qt::EditRole) { const uint mask = m_palette.resolve(); return bool(mask & (1 << index.row())); } } else if (role == Qt::BackgroundRole) { return m_palette.color( columnToGroup(index.column()), QPalette::ColorRole(index.row())); } return QVariant(); } bool qsynthPaletteForm::PaletteModel::setData ( const QModelIndex& index, const QVariant& value, int role ) { if (!index.isValid()) return false; if (index.column() != 0 && role == Qt::BackgroundRole) { const QColor& color = value.value(); const QPalette::ColorRole cr = QPalette::ColorRole(index.row()); const QPalette::ColorGroup cg = columnToGroup(index.column()); m_palette.setBrush(cg, cr, color); QModelIndex index_begin = PaletteModel::index(cr, 0); QModelIndex index_end = PaletteModel::index(cr, 3); if (m_generate) { m_palette.setBrush(QPalette::Inactive, cr, color); switch (cr) { case QPalette::Foreground: case QPalette::Text: case QPalette::ButtonText: case QPalette::Base: break; case QPalette::Dark: m_palette.setBrush(QPalette::Disabled, QPalette::Foreground, color); m_palette.setBrush(QPalette::Disabled, QPalette::Dark, color); m_palette.setBrush(QPalette::Disabled, QPalette::Text, color); m_palette.setBrush(QPalette::Disabled, QPalette::ButtonText, color); index_begin = PaletteModel::index(0, 0); index_end = PaletteModel::index(m_nrows - 1, 3); break; case QPalette::Background: m_palette.setBrush(QPalette::Disabled, QPalette::Base, color); m_palette.setBrush(QPalette::Disabled, QPalette::Background, color); index_begin = PaletteModel::index(QPalette::Base, 0); break; case QPalette::Highlight: m_palette.setBrush(QPalette::Disabled, QPalette::Highlight, color.darker(120)); break; default: m_palette.setBrush(QPalette::Disabled, cr, color); break; } } emit paletteChanged(m_palette); emit dataChanged(index_begin, index_end); return true; } if (index.column() == 0 && role == Qt::EditRole) { uint mask = m_palette.resolve(); const bool masked = value.value(); const int i = index.row(); if (masked) { mask |= (1 << i); } else { const QPalette::ColorRole cr = QPalette::ColorRole(i); m_palette.setBrush(QPalette::Active, cr, m_parentPalette.brush(QPalette::Active, cr)); m_palette.setBrush(QPalette::Inactive, cr, m_parentPalette.brush(QPalette::Inactive, cr)); m_palette.setBrush(QPalette::Disabled, cr, m_parentPalette.brush(QPalette::Disabled, cr)); mask &= ~(1 << i); } m_palette.resolve(mask); emit paletteChanged(m_palette); const QModelIndex& index_end = PaletteModel::index(i, 3); emit dataChanged(index, index_end); return true; } return false; } Qt::ItemFlags qsynthPaletteForm::PaletteModel::flags ( const QModelIndex& index ) const { if (!index.isValid()) return Qt::ItemIsEnabled; else return Qt::ItemIsEditable | Qt::ItemIsEnabled; } QVariant qsynthPaletteForm::PaletteModel::headerData ( int section, Qt::Orientation orientation, int role ) const { if (orientation == Qt::Horizontal && role == Qt::DisplayRole) { if (section == 0) return tr("Color Role"); else if (section == groupToColumn(QPalette::Active)) return tr("Active"); else if (section == groupToColumn(QPalette::Inactive)) return tr("Inactive"); else if (section == groupToColumn(QPalette::Disabled)) return tr("Disabled"); } return QVariant(); } const QPalette& qsynthPaletteForm::PaletteModel::palette(void) const { return m_palette; } void qsynthPaletteForm::PaletteModel::setPalette ( const QPalette& palette, const QPalette& parentPalette ) { m_palette = palette; m_parentPalette = parentPalette; const QModelIndex& index_begin = index(0, 0); const QModelIndex& index_end = index(m_nrows - 1, 3); emit dataChanged(index_begin, index_end); } QPalette::ColorGroup qsynthPaletteForm::PaletteModel::columnToGroup ( int index ) const { if (index == 1) return QPalette::Active; else if (index == 2) return QPalette::Inactive; return QPalette::Disabled; } int qsynthPaletteForm::PaletteModel::groupToColumn ( QPalette::ColorGroup group ) const { if (group == QPalette::Active) return 1; else if (group == QPalette::Inactive) return 2; return 3; } //------------------------------------------------------------------------- // qsynthPaletteForm::ColorDelegate QWidget *qsynthPaletteForm::ColorDelegate::createEditor ( QWidget *parent, const QStyleOptionViewItem&, const QModelIndex& index ) const { QWidget *editor = nullptr; if (index.column() == 0) { RoleEditor *ed = new RoleEditor(parent); QObject::connect(ed, SIGNAL(changed(QWidget *)), SIGNAL(commitData(QWidget *))); // ed->setFocusPolicy(Qt::NoFocus); // ed->installEventFilter(const_cast(this)); editor = ed; } else { ColorEditor *ed = new ColorEditor(parent); QObject::connect(ed, SIGNAL(changed(QWidget *)), SIGNAL(commitData(QWidget *))); ed->setFocusPolicy(Qt::NoFocus); ed->installEventFilter(const_cast(this)); editor = ed; } return editor; } void qsynthPaletteForm::ColorDelegate::setEditorData ( QWidget *editor, const QModelIndex& index ) const { if (index.column() == 0) { const bool masked = index.model()->data(index, Qt::EditRole).value(); RoleEditor *ed = static_cast(editor); ed->setEdited(masked); const QString& colorName = index.model()->data(index, Qt::DisplayRole).value(); ed->setLabel(colorName); } else { const QColor& color = index.model()->data(index, Qt::BackgroundRole).value(); ColorEditor *ed = static_cast(editor); ed->setColor(color); } } void qsynthPaletteForm::ColorDelegate::setModelData ( QWidget *editor, QAbstractItemModel *model, const QModelIndex& index ) const { if (index.column() == 0) { RoleEditor *ed = static_cast(editor); const bool masked = ed->edited(); model->setData(index, masked, Qt::EditRole); } else { ColorEditor *ed = static_cast(editor); if (ed->changed()) { const QColor& color = ed->color(); model->setData(index, color, Qt::BackgroundRole); } } } void qsynthPaletteForm::ColorDelegate::updateEditorGeometry ( QWidget *editor, const QStyleOptionViewItem& option, const QModelIndex& index ) const { QItemDelegate::updateEditorGeometry(editor, option, index); editor->setGeometry(editor->geometry().adjusted(0, 0, -1, -1)); } void qsynthPaletteForm::ColorDelegate::paint ( QPainter *painter, const QStyleOptionViewItem& option, const QModelIndex& index ) const { QStyleOptionViewItem opt = option; const bool masked = index.model()->data(index, Qt::EditRole).value(); if (index.column() == 0 && masked) opt.font.setBold(true); QItemDelegate::paint(painter, opt, index); // painter->setPen(opt.palette.midlight().color()); painter->setPen(Qt::darkGray); painter->drawLine(opt.rect.right(), opt.rect.y(), opt.rect.right(), opt.rect.bottom()); painter->drawLine(opt.rect.x(), opt.rect.bottom(), opt.rect.right(), opt.rect.bottom()); } QSize qsynthPaletteForm::ColorDelegate::sizeHint ( const QStyleOptionViewItem& option, const QModelIndex &index) const { return QItemDelegate::sizeHint(option, index) + QSize(4, 4); } //------------------------------------------------------------------------- // qsynthPaletteForm::ColorButton qsynthPaletteForm::ColorButton::ColorButton ( QWidget *parent ) : QPushButton(parent), m_brush(Qt::darkGray) { QPushButton::setMinimumWidth(48); QObject::connect(this, SIGNAL(clicked()), SLOT(chooseColor())); } const QBrush& qsynthPaletteForm::ColorButton::brush (void) const { return m_brush; } void qsynthPaletteForm::ColorButton::setBrush ( const QBrush& brush ) { m_brush = brush; update(); } void qsynthPaletteForm::ColorButton::paintEvent ( QPaintEvent *event ) { QPushButton::paintEvent(event); QStyleOptionButton opt; opt.init(this); const QRect& rect = style()->subElementRect(QStyle::SE_PushButtonContents, &opt, this); QPainter paint(this); paint.setBrush(QBrush(m_brush.color())); paint.drawRect(rect.adjusted(+1, +1, -2, -2)); } void qsynthPaletteForm::ColorButton::chooseColor (void) { const QColor color = QColorDialog::getColor(m_brush.color(), this); if (color.isValid()) { m_brush.setColor(color); emit changed(); } } //------------------------------------------------------------------------- // qsynthPaletteForm::ColorEditor qsynthPaletteForm::ColorEditor::ColorEditor ( QWidget *parent ) : QWidget(parent) { QLayout *layout = new QHBoxLayout(this); layout->setMargin(0); m_button = new qsynthPaletteForm::ColorButton(this); layout->addWidget(m_button); QObject::connect(m_button, SIGNAL(changed()), SLOT(colorChanged())); setFocusProxy(m_button); m_changed = false; } void qsynthPaletteForm::ColorEditor::setColor ( const QColor& color ) { m_button->setBrush(color); m_changed = false; } QColor qsynthPaletteForm::ColorEditor::color (void) const { return m_button->brush().color(); } void qsynthPaletteForm::ColorEditor::colorChanged (void) { m_changed = true; emit changed(this); } bool qsynthPaletteForm::ColorEditor::changed (void) const { return m_changed; } //------------------------------------------------------------------------- // qsynthPaletteForm::RoleEditor qsynthPaletteForm::RoleEditor::RoleEditor ( QWidget *parent ) : QWidget(parent) { m_edited = false; QHBoxLayout *layout = new QHBoxLayout(this); layout->setMargin(0); layout->setSpacing(0); m_label = new QLabel(this); layout->addWidget(m_label); m_label->setAutoFillBackground(true); m_label->setIndent(3); // HACK: it should have the same value of textMargin in QItemDelegate setFocusProxy(m_label); m_button = new QToolButton(this); m_button->setToolButtonStyle(Qt::ToolButtonIconOnly); m_button->setIcon(QPixmap(":/images/itemReset.png")); m_button->setIconSize(QSize(8, 8)); m_button->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::MinimumExpanding)); layout->addWidget(m_button); QObject::connect(m_button, SIGNAL(clicked()), SLOT(resetProperty())); } void qsynthPaletteForm::RoleEditor::setLabel ( const QString& label ) { m_label->setText(label); } void qsynthPaletteForm::RoleEditor::setEdited ( bool on ) { QFont font; if (on) font.setBold(on); m_label->setFont(font); m_button->setEnabled(on); m_edited = on; } bool qsynthPaletteForm::RoleEditor::edited (void) const { return m_edited; } void qsynthPaletteForm::RoleEditor::resetProperty (void) { setEdited(false); emit changed(this); } // end of qsynthPaletteForm.cpp qsynth-0.6.1/src/PaxHeaders.5367/qsynthAboutForm.cpp0000644000000000000000000000013213577702221017173 xustar0030 mtime=1577026705.842992838 30 atime=1577026705.842992838 30 ctime=1577026705.842992838 qsynth-0.6.1/src/qsynthAboutForm.cpp0000644000175000001440000000631013577702221020020 0ustar00rncbcusers00000000000000// qsynthAboutForm.cpp // /**************************************************************************** Copyright (C) 2003-2019, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. *****************************************************************************/ #include "qsynthAbout.h" #include "qsynthAboutForm.h" #include #ifdef CONFIG_FLUID_VERSION_STR #include #endif //---------------------------------------------------------------------------- // qsynthAboutForm -- UI wrapper form. // Constructor. qsynthAboutForm::qsynthAboutForm ( QWidget *pParent, Qt::WindowFlags wflags ) : QDialog(pParent, wflags) { // Setup UI struct... m_ui.setupUi(this); QStringList list; #ifdef CONFIG_DEBUG list << tr("Debugging option enabled."); #endif #ifndef CONFIG_SYSTEM_TRAY list << tr("System tray disabled."); #endif #ifndef CONFIG_FLUID_SERVER list << tr("Server option disabled."); #endif #ifndef CONFIG_FLUID_SYSTEM_RESET list << tr("System reset option disabled."); #endif #ifndef CONFIG_FLUID_BANK_OFFSET list << tr("Bank offset option disabled."); #endif // Stuff the about box... QString sText = "


\n"; sText += "" QSYNTH_TITLE " - " + tr(QSYNTH_SUBTITLE) + "
\n"; sText += "
\n"; sText += tr("Version") + ": " CONFIG_BUILD_VERSION "
\n"; // sText += "" + tr("Build") + ": " CONFIG_BUILD_DATE "
\n"; if (!list.isEmpty()) { sText += ""; sText += list.join("
\n"); sText += "
"; } #ifdef CONFIG_FLUID_VERSION_STR sText += "
\n"; sText += tr("Using: FluidSynth %1").arg(::fluid_version_str()); sText += "
\n"; #endif sText += "
\n"; sText += tr("Website") + ": " QSYNTH_WEBSITE "
\n"; sText += "
\n"; sText += ""; sText += QSYNTH_COPYRIGHT "
\n"; sText += "
\n"; sText += tr("This program is free software; you can redistribute it and/or modify it") + "
\n"; sText += tr("under the terms of the GNU General Public License version 2 or later."); sText += "
"; sText += "

\n"; m_ui.AboutTextView->setText(sText); // UI connections... QObject::connect(m_ui.AboutQtButton, SIGNAL(clicked()), SLOT(aboutQt())); QObject::connect(m_ui.ClosePushButton, SIGNAL(clicked()), SLOT(close())); } // Destructor. qsynthAboutForm::~qsynthAboutForm (void) { } // About Qt request. void qsynthAboutForm::aboutQt() { QMessageBox::aboutQt(this); } // end of qsynthAboutForm.cpp qsynth-0.6.1/src/PaxHeaders.5367/qsynthDialSkulptureStyle.h0000644000000000000000000000013213577702221020553 xustar0030 mtime=1577026705.844992838 30 atime=1577026705.844992838 30 ctime=1577026705.844992838 qsynth-0.6.1/src/qsynthDialSkulptureStyle.h0000644000175000001440000000276213577702221021407 0ustar00rncbcusers00000000000000/****************************************************************************** Skulpture - Classical Three-Dimensional Artwork for Qt 4 Copyright (c) 2019 rncbc aka Rui Nuno Capela Copyright (c) 2007-2009 Christoph Feck 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. 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. 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. *****************************************************************************/ #ifndef QSYNTHDIALSKULPTURESTYLE_H_ #define QSYNTHDIALSKULPTURESTYLE_H_ #include class qsynthDialSkulptureStyle : public QCommonStyle { public: qsynthDialSkulptureStyle() {} virtual ~qsynthDialSkulptureStyle() {} virtual void drawComplexControl(ComplexControl cc, const QStyleOptionComplex *opt, QPainter *p, const QWidget *widget = 0) const; }; #endif /* QSYNTHDIALSKULPTURESTYLE_H_ */ qsynth-0.6.1/src/PaxHeaders.5367/qsynthMeter.h0000644000000000000000000000013213577702221016016 xustar0030 mtime=1577026705.845992838 30 atime=1577026705.845992838 30 ctime=1577026705.845992838 qsynth-0.6.1/src/qsynthMeter.h0000644000175000001440000000753413577702221016654 0ustar00rncbcusers00000000000000// qsynthMeter.h // /**************************************************************************** Copyright (C) 2004-2019, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. *****************************************************************************/ #ifndef __qsynthMeter_h #define __qsynthMeter_h #include // Forward declarations. class qsynthMeter; class QHBoxLayout; //---------------------------------------------------------------------------- // qsynthMeterScale -- Meter bridge scale widget. class qsynthMeterScale : public QWidget { Q_OBJECT public: // Constructor. qsynthMeterScale(qsynthMeter *pMeter); protected: // Specific event handlers. void paintEvent(QPaintEvent *); // Draw IEC scale line and label. void drawLineLabel(QPainter *p, int y, const QString& sLabel); private: // Local instance variables. qsynthMeter *m_pMeter; // Running variables. int m_iLastY; }; //---------------------------------------------------------------------------- // qsynthMeterValue -- Meter bridge value widget. class qsynthMeterValue : public QFrame { Q_OBJECT public: // Constructor. qsynthMeterValue(qsynthMeter *pMeter); // Frame value accessors. void setValue(float fValue); // Value refreshment. void refresh(); // Reset peak holder. void peakReset(); protected: // Specific event handlers. void paintEvent(QPaintEvent *); void resizeEvent(QResizeEvent *); private: // Local instance variables. qsynthMeter *m_pMeter; // Running variables. float m_fValue; int m_iValue; float m_fValueDecay; int m_iPeak; float m_fPeakDecay; int m_iPeakHold; int m_iPeakColor; }; //---------------------------------------------------------------------------- // qsynthMeter -- Meter bridge slot widget. class qsynthMeter : public QWidget { Q_OBJECT public: // Constructor. qsynthMeter(QWidget *pParent = 0); // Default destructor. ~qsynthMeter(); // Port count accessor. int portCount() const; // Value proxy. void setValue(int iPort, float fValue); // IEC scale accessors. int iec_scale(float dB) const; int iec_level(int iIndex) const; #ifdef CONFIG_GRADIENT const QPixmap& pixmap() const; void updatePixmap(); #endif // Slot refreshment. void refresh(); // Color/level indexes. enum { ColorOver = 0, Color0dB = 1, Color3dB = 2, Color6dB = 3, Color10dB = 4, LevelCount = 5, ColorBack = 5, ColorFore = 6, ColorCount = 7 }; // Common resource accessors. const QColor& color(int iIndex) const; // Peak falloff mode setting. void setPeakFalloff(int bPeakFalloff); int peakFalloff() const; // Reset peak holder. void peakReset(); protected: // Specific event handlers. virtual void resizeEvent(QResizeEvent *); private: // Local instance variables. QHBoxLayout *m_pHBoxLayout; int m_iPortCount; int m_iScaleCount; qsynthMeterValue **m_ppValues; qsynthMeterScale **m_ppScales; float m_fScale; int m_levels[LevelCount]; QColor m_colors[ColorCount]; #ifdef CONFIG_GRADIENT QPixmap *m_pPixmap; #endif // Peak falloff mode setting (0=no peak falloff). int m_iPeakFalloff; }; #endif // __qsynthMeter_h // end of qsynthMeter.h qsynth-0.6.1/src/PaxHeaders.5367/qsynthTabBar.h0000644000000000000000000000013213577702221016075 xustar0030 mtime=1577026705.847992838 30 atime=1577026705.847992838 30 ctime=1577026705.847992838 qsynth-0.6.1/src/qsynthTabBar.h0000644000175000001440000000356513577702221016733 0ustar00rncbcusers00000000000000// qsynthTabBar.h // /**************************************************************************** Copyright (C) 2003-2019, rncbc aka Rui Nuno Capela. All rights reserved. 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. 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. 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. *****************************************************************************/ #ifndef __qsynthTabBar_h #define __qsynthTabBar_h #include // Forward declarations. class qsynthEngine; //------------------------------------------------------------------------- // qsynthTabBar - Instance tab widget class. // class qsynthTabBar : public QTabBar { Q_OBJECT public: // Constructor. qsynthTabBar(QWidget *pParent); // Destructor. ~qsynthTabBar(); // Engine accessor. qsynthEngine *engine(int iTab) const; // Current engine accessor. qsynthEngine *currentEngine() const; // Engine adder. int addEngine(qsynthEngine *pEngine); // Engine removal. void removeEngine(int iTab); // Engine tab icon accessor. void setOn(int iTab, bool bOn); signals: // Context menu signal. void contextMenuRequested(int iTab, const QPoint& pos); protected: // Context menu event. void contextMenuEvent(QContextMenuEvent *pContextMenuEvent); }; #endif // __qsynthTabBar_h // end of qsynthTabBar.h qsynth-0.6.1/PaxHeaders.5367/TODO0000644000000000000000000000013213577702221013223 xustar0030 mtime=1577026705.840992838 30 atime=1577026705.840992838 30 ctime=1577026705.840992838 qsynth-0.6.1/TODO0000644000175000001440000000026313577702221014051 0ustar00rncbcusers00000000000000Qsynth - A fluidsynth Qt GUI Interface -------------------------------------- TODOs - Make it like a DSSI plugin... - And a LASH client too... - Any feature one can think of ;) qsynth-0.6.1/PaxHeaders.5367/TRANSLATORS0000644000000000000000000000013213577702221014272 xustar0030 mtime=1577026705.840992838 30 atime=1577026705.840992838 30 ctime=1577026705.840992838 qsynth-0.6.1/TRANSLATORS0000644000175000001440000000066413577702221015125 0ustar00rncbcusers00000000000000Czech (cs) Pavel Fric German (de) Guido Scholz Spanish (es) Pedro Lopez-Cabanillas French (fr) Olivier Humbert Yann Collette Lionel Rascle Russian (ru) Alexandre Prokoudine Serbian (sr) Jay Alexander Fleming