qsynth-0.3.8/PaxHeaders.22416/AUTHORS0000644000175000001440000000007107755314263015157 xustar000000000000000027 atime=1388489093.985224 30 ctime=1388489093.985224573 qsynth-0.3.8/AUTHORS0000644000175000001440000000015607755314263014444 0ustar00rncbcusers00000000000000Rui Nuno Capela RichardBown ChrisCannamqsynth-0.3.8/PaxHeaders.22416/ChangeLog0000644000175000001440000000012312260523605015644 xustar000000000000000026 mtime=1388488581.28839 27 atime=1388489096.877224 30 ctime=1388489096.877224618 qsynth-0.3.8/ChangeLog0000644000175000001440000004411112260523605015132 0ustar00rncbcusers00000000000000Qsynth - A fluidsynth Qt GUI Interface -------------------------------------- ChangeLog 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, EXPERIMENTAL). - 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 (EXPERIMENTAL). - 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 (EXPERIMENTAL); 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 (EXPERIMENTAL), 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.3.8/PaxHeaders.22416/CMakeLists.txt0000644000175000001440000000012312260523605016632 xustar000000000000000026 mtime=1388488581.28839 27 atime=1388489097.077224 30 ctime=1388489097.077224622 qsynth-0.3.8/CMakeLists.txt0000644000175000001440000000767212260523605016133 0ustar00rncbcusers00000000000000project(QSYNTH) cmake_minimum_required(VERSION 2.6) set (VERSION "0.3.8") 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_DEBUG) if (CMAKE_BUILD_TYPE MATCHES "debug") set(CONFIG_DEBUG 1) endif (CMAKE_BUILD_TYPE MATCHES "debug") set (CONFIG_PREFIX ${CMAKE_INSTALL_PREFIX}) # gradient eye-candy. option (CONFIG_GRADIENT "Define if gradient eye-candy is enabled." 1) # debugging stack-trace. option (CONFIG_STACKTRACE "Define if debugger stack-trace is enabled." 0) # system-tray icon. option (CONFIG_SYSTEM_TRAY "Define if system tray is enabled." 1) # Check for Qt set (QT_MIN_VERSION "4.4.0") find_package (Qt4 REQUIRED) include (${QT_USE_FILE}) include (CheckIncludeFile) include (CheckIncludeFiles) include (CheckFunctionExists) include (CheckLibraryExists) # Checks for libraries. if (WIN32) check_function_exists ( lroundf CONFIG_ROUND ) else (WIN32) find_library ( MATH_LIBRARY m ) # Check for round math function. if (MATH_LIBRARY) set ( CMAKE_REQUIRED_LIBRARIES ${MATH_LIBRARY} ) check_function_exists ( lroundf CONFIG_ROUND ) else (MATH_LIBRARY) message (FATAL_ERROR "math library not found") endif (MATH_LIBRARY) endif (WIN32) # Check for fluidsynth library. find_library ( FLUIDSYNTH_LIBRARY fluidsynth ) # Checks for header files. check_include_files ("fcntl.h;unistd.h;signal.h" HAVE_SIGNAL_H) # Check for fluidsynth headers. find_path (FLUIDSYNTH_INCLUDEDIR NAMES fluidsynth.h) set (CMAKE_REQUIRED_INCLUDES ${FLUIDSYNTH_INCLUDEDIR}) check_include_file ("fluidsynth.h" HAVE_FLUIDSYNTH_H) if (FLUIDSYNTH_LIBRARY AND HAVE_FLUIDSYNTH_H) set(CMAKE_REQUIRED_LIBRARIES ${FLUIDSYNTH_LIBRARY}) # new_fluid_server function. check_function_exists ( new_fluid_server CONFIG_FLUID_SERVER ) # Check for fluid_synth_system_reset function. check_function_exists ( fluid_synth_system_reset CONFIG_FLUID_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. check_function_exists ( fluid_synth_get_channel_info CONFIG_FLUID_CHANNEL_INFO ) # Check for fluid_synth_unset_program function. check_function_exists ( fluid_synth_unset_program CONFIG_FLUID_UNSET_PROGRAM ) else (FLUIDSYNTH_LIBRARY AND HAVE_FLUIDSYNTH_H) message (FATAL_ERROR "fluidsynth library not found") endif (FLUIDSYNTH_LIBRARY AND HAVE_FLUIDSYNTH_H) add_subdirectory (src) configure_file (qsynth.spec.in qsynth.spec IMMEDIATE @ONLY) # Configuration status macro (SHOW_OPTION text value) if (${value}) message( "${text}: Yes" ) else (${value}) message( "${text}: No" ) endif (${value}) endmacro (SHOW_OPTION) message ( "\n ${PACKAGE_NAME} ${PACKAGE_VERSION}\n" ) message ( " Build target . . . . . . . . . . . . . . . . . . .: ${CMAKE_BUILD_TYPE}" ) show_option ( "\n FluidSynth library support . . . . . . . . . . . ." FLUIDSYNTH_LIBRARY ) show_option ( " FluidSynth server support . . . . . . . . . . . ." CONFIG_FLUID_SERVER ) show_option ( " FluidSynth reset support . . . . . . . . . . . . ." CONFIG_FLUID_RESET ) show_option ( " FluidSynth bank offset support . . . . . . . . . ." CONFIG_FLUID_BANK_OFFSET ) show_option ( " FluidSynth channel info support . . . . . . . . ." CONFIG_FLUID_CHANNEL_INFO ) show_option ( " FluidSynth unset program support . . . . . . . . ." CONFIG_FLUID_UNSET_PROGRAM ) show_option ( "\n System tray icon support . . . . . . . . . . . . ." CONFIG_SYSTEM_TRAY ) 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." ) qsynth-0.3.8/PaxHeaders.22416/configure0000644000175000001440000000013112260524611015773 xustar000000000000000030 mtime=1388489097.675224631 29 atime=1388489097.58622463 30 ctime=1388489097.675224631 qsynth-0.3.8/configure0000755000175000001440000053124712260524611015300 0ustar00rncbcusers00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for Qsynth 0.3.8. # # 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.3.8' PACKAGE_STRING='Qsynth 0.3.8' 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_incpath ac_libs ac_lrelease ac_lupdate ac_uic ac_moc ac_qmake EGREP GREP CXXCPP ac_ct_CXX CXXFLAGS CXX CPP OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC ac_debug ac_prefix 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_qt4 enable_qt5 enable_system_tray 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' # 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.3.8 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.3.8:";; 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-qt4 enable Qt4 build (default=yes) --enable-qt5 enable Qt5 build (default=no) --enable-system-tray enable system tray (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 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.3.8 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.3.8, 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 src/qsynth.desktop" # Set default installation prefix. ac_prefix=$prefix if test "x$ac_prefix" = "xNONE"; then ac_prefix=$ac_default_prefix fi cat >>confdefs.h <<_ACEOF #define CONFIG_PREFIX "$ac_prefix" _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 Qt4/5 availability. # Check whether --enable-qt4 was given. if test "${enable_qt4+set}" = set; then : enableval=$enable_qt4; ac_qt4="$enableval" else ac_qt4="yes" fi # Check whether --enable-qt5 was given. if test "${enable_qt5+set}" = set; then : enableval=$enable_qt5; ac_qt5="$enableval" else ac_qt5="no" fi if test "x$ac_qt4" = "xno"; then ac_qt5="yes" fi if test "x$ac_qt5" = "xyes"; then ac_qt4="no" 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 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_with_paths="/usr /usr/local" ac_qtdirs="qt" if test "x$ac_qt4" = "xyes"; then ac_qtdirs="qt4 $ac_qtdirs" fi if test "x$ac_qt5" = "xyes"; then ac_qtdirs="qt5 $ac_qtdirs" fi # Some a-la-debian alternatives... for X in /usr/lib /usr/lib64 /usr/share; do for Y in $ac_qtdirs; do if test -d $X/$Y/bin; then ac_with_paths="$ac_with_paths $X/$Y" fi done done # Set for alternate Qt installation dir. # Check whether --with-qt was given. if test "${with_qt+set}" = set; then : withval=$with_qt; ac_with_paths="$ac_with_paths $withval" 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 # 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 { $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" if test $ac_cv_c_compiler_gnu = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 $as_echo_n "checking whether $CC needs -traditional... " >&6; } if ${ac_cv_prog_gcc_traditional+:} false; then : $as_echo_n "(cached) " >&6 else ac_pattern="Autoconf.*'x'" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include Autoconf TIOCGETP _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : ac_cv_prog_gcc_traditional=yes else ac_cv_prog_gcc_traditional=no fi rm -f conftest* if test $ac_cv_prog_gcc_traditional = no; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include Autoconf TCGETA _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : ac_cv_prog_gcc_traditional=yes fi rm -f conftest* fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 $as_echo "$ac_cv_prog_gcc_traditional" >&6; } if test $ac_cv_prog_gcc_traditional = yes; then CC="$CC -traditional" fi fi # Checks for languages. 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 # Prepend alternate dependencies paths. ac_path=$PATH for X in $ac_with_paths; do if test -d $X/bin; then ac_path="$X/bin:$ac_path" fi # if test -x $X/qmake; then # ac_path="$X:$ac_path" # fi if test -d $X/include; then for Y in $ac_qtdirs; do if test -d $X/include/$Y; then CFLAGS="-I$X/include/$Y $CFLAGS" CPPFLAGS="-I$X/include/$Y $CPPFLAGS" ac_incpath="$X/include/$Y $ac_incpath" fi done CFLAGS="-I$X/include $CFLAGS" CPPFLAGS="-I$X/include $CPPFLAGS" ac_incpath="$X/include $ac_incpath" fi if test -d $X/lib64; then LIBS="-L$X/lib64 $LIBS" ac_libs="-L$X/lib64 $ac_libs" fi if test -d $X/lib; then LIBS="-L$X/lib $LIBS" ac_libs="-L$X/lib $ac_libs" fi done # Check for proper flags. ac_arch=`uname -m` if test "x$ac_arch" = "xx86_64"; then CFLAGS="-fPIC $CFLAGS" CPPFLAGS="-fPIC $CPPFLAGS" fi # Check for proper Qt version. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt library version >= 4.4" >&5 $as_echo_n "checking for Qt library version >= 4.4... " >&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 < 0x040400 #error Qt library 4.4 or greater required. #endif ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_qtversion="yes" else echo "no; Qt 4.4 or greater is required" exit fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_qtversion" >&5 $as_echo "$ac_cv_qtversion" >&6; } # A common error message: ac_errmsg="not found in current PATH. Maybe Qt development environment isn't available (qt-devel)." # Check for Qt qmake utility. # 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_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 test -z "$ac_cv_path_ac_qmake" && ac_cv_path_ac_qmake="no" ;; 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 if test "x$ac_qmake" = "xno"; then as_fn_error $? "qmake $ac_errmsg" "$LINENO" 5 fi # Check for Qt moc utility. # 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_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 test -z "$ac_cv_path_ac_moc" && ac_cv_path_ac_moc="no" ;; 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 if test "x$ac_moc" = "xno"; then as_fn_error $? "moc $ac_errmsg" "$LINENO" 5 fi # Check for Qt uic utility. # 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_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 test -z "$ac_cv_path_ac_uic" && ac_cv_path_ac_uic="no" ;; 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 if test "x$ac_uic" = "xno"; then as_fn_error $? "uic $ac_errmsg" "$LINENO" 5 fi # Check for Qt lupdate utility. # 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_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 test -z "$ac_cv_path_ac_lupdate" && ac_cv_path_ac_lupdate="no" ;; 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 if test "x$ac_lupdate" = "xno"; then as_fn_error $? "lupdate $ac_errmsg" "$LINENO" 5 fi # Check for Qt lrelease utility. # 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_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 test -z "$ac_cv_path_ac_lrelease" && ac_cv_path_ac_lrelease="no" ;; 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 if test "x$ac_release" = "xno"; then as_fn_error $? "lrelease $ac_errmsg" "$LINENO" 5 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 round 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. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lfluidsynth" >&5 $as_echo_n "checking for main in -lfluidsynth... " >&6; } if ${ac_cv_lib_fluidsynth_main+:} 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. */ int main () { return main (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_fluidsynth_main=yes else ac_cv_lib_fluidsynth_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_fluidsynth_main" >&5 $as_echo "$ac_cv_lib_fluidsynth_main" >&6; } if test "x$ac_cv_lib_fluidsynth_main" = xyes; then : ac_fluidsynth_lib="yes" else ac_fluidsynth_lib="no" fi if test "x$ac_fluidsynth_lib" = "xno"; then as_fn_error $? "fluidsynth library not found." "$LINENO" 5 else ac_libs="$ac_libs -lfluidsynth" fi # Some recent distros (eg. fedora, debian) require this. ac_libs="$ac_libs -lX11" # Checks for header files. { $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 fluidsynth headers. ac_fn_cxx_check_header_mongrel "$LINENO" "fluidsynth.h" "ac_cv_header_fluidsynth_h" "$ac_includes_default" if test "x$ac_cv_header_fluidsynth_h" = xyes; then : ac_fluidsynth_h="yes" else ac_fluidsynth_h="no" fi if test "x$ac_fluidsynth_h" = "xno"; then as_fn_error $? "fluidsynth headers not found." "$LINENO" 5 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. { $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 # 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_reset="yes" else ac_fluid_reset="no" fi if test "x$ac_fluid_reset" = "xyes"; then $as_echo "#define CONFIG_FLUID_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. { $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 # 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 round math function. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round in -lm" >&5 $as_echo_n "checking for round in -lm... " >&6; } if ${ac_cv_lib_m_round+:} 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 round (); int main () { return round (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : ac_cv_lib_m_round=yes else ac_cv_lib_m_round=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_round" >&5 $as_echo "$ac_cv_lib_m_round" >&6; } if test "x$ac_cv_lib_m_round" = 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 # 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.3.8, 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.3.8 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" ;; "src/qsynth.desktop") CONFIG_FILES="$CONFIG_FILES src/qsynth.desktop" ;; *) 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 $PACKAGE_VERSION" echo echo " Build target . . . . . . . . . . . . . . . . . . .: $ac_debug" echo echo " FluidSynth library support . . . . . . . . . . . .: $ac_fluidsynth_lib" echo " FluidSynth server support . . . . . . . . . . . .: $ac_fluid_server" echo " FluidSynth reset support . . . . . . . . . . . . .: $ac_fluid_reset" echo " FluidSynth bank offset support . . . . . . . . . .: $ac_fluid_bank_offset" echo " FluidSynth channel info support . . . . . . . . .: $ac_fluid_channel_info" echo " FluidSynth unset program support . . . . . . . . .: $ac_fluid_unset_program" echo " System tray icon support . . . . . . . . . . . . .: $ac_system_tray" echo 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.3.8/PaxHeaders.22416/configure.ac0000644000175000001440000000012312260523605016360 xustar000000000000000026 mtime=1388488581.28839 27 atime=1388489096.878224 30 ctime=1388489096.878224618 qsynth-0.3.8/configure.ac0000644000175000001440000002230512260523605015647 0ustar00rncbcusers00000000000000# Process this file with autoconf to produce a configure script. AC_INIT(Qsynth, 0.3.8, 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 src/qsynth.desktop) # Set default installation prefix. AC_PREFIX_DEFAULT(/usr/local) ac_prefix=$prefix if test "x$ac_prefix" = "xNONE"; then ac_prefix=$ac_default_prefix fi AC_SUBST(ac_prefix) AC_DEFINE_UNQUOTED(CONFIG_PREFIX, ["$ac_prefix"], [Default installation prefix.]) # Enable debugging argument option. AC_ARG_ENABLE(debug, AC_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 Qt4/5 availability. AC_ARG_ENABLE(qt4, AC_HELP_STRING([--enable-qt4], [enable Qt4 build (default=yes)]), [ac_qt4="$enableval"], [ac_qt4="yes"]) AC_ARG_ENABLE(qt5, AC_HELP_STRING([--enable-qt5], [enable Qt5 build (default=no)]), [ac_qt5="$enableval"], [ac_qt5="no"]) if test "x$ac_qt4" = "xno"; then ac_qt5="yes" fi if test "x$ac_qt5" = "xyes"; then ac_qt4="no" fi # Enable system tray argument option. AC_ARG_ENABLE(system_tray, AC_HELP_STRING([--enable-system-tray], [enable system tray (default=yes)]), [ac_system_tray="$enableval"], [ac_system_tray="yes"]) # Enable gradient eye-candy. AC_ARG_ENABLE(gradient, AC_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, AC_HELP_STRING([--enable-stacktrace], [enable debugger stack-trace (default=no)]), [ac_stacktrace="$enableval"]) # Standard installation base dirs. ac_with_paths="/usr /usr/local" ac_qtdirs="qt" if test "x$ac_qt4" = "xyes"; then ac_qtdirs="qt4 $ac_qtdirs" fi if test "x$ac_qt5" = "xyes"; then ac_qtdirs="qt5 $ac_qtdirs" fi # Some a-la-debian alternatives... for X in /usr/lib /usr/lib64 /usr/share; do for Y in $ac_qtdirs; do if test -d $X/$Y/bin; then ac_with_paths="$ac_with_paths $X/$Y" fi done done # Set for alternate Qt installation dir. AC_ARG_WITH(qt, AC_HELP_STRING([--with-qt=PATH], [use alternate Qt install path]), [ac_with_paths="$ac_with_paths $withval"]) # Set for alternate fluidsynth installation dir. AC_ARG_WITH(fluidsynth, AC_HELP_STRING([--with-fluidsynth=PATH], [use alternate fluidsynth install path]), [ac_with_paths="$ac_with_paths $withval"]) # Checks for programs. AC_PROG_CC AC_PROG_CPP AC_PROG_CXX AC_PROG_CXXCPP AC_PROG_GCC_TRADITIONAL # Checks for languages. AC_LANG_C AC_LANG_CPLUSPLUS # Prepend alternate dependencies paths. ac_path=$PATH for X in $ac_with_paths; do if test -d $X/bin; then ac_path="$X/bin:$ac_path" fi # if test -x $X/qmake; then # ac_path="$X:$ac_path" # fi if test -d $X/include; then for Y in $ac_qtdirs; do if test -d $X/include/$Y; then CFLAGS="-I$X/include/$Y $CFLAGS" CPPFLAGS="-I$X/include/$Y $CPPFLAGS" ac_incpath="$X/include/$Y $ac_incpath" fi done CFLAGS="-I$X/include $CFLAGS" CPPFLAGS="-I$X/include $CPPFLAGS" ac_incpath="$X/include $ac_incpath" fi if test -d $X/lib64; then LIBS="-L$X/lib64 $LIBS" ac_libs="-L$X/lib64 $ac_libs" fi if test -d $X/lib; then LIBS="-L$X/lib $LIBS" ac_libs="-L$X/lib $ac_libs" fi done # Check for proper flags. ac_arch=`uname -m` if test "x$ac_arch" = "xx86_64"; then CFLAGS="-fPIC $CFLAGS" CPPFLAGS="-fPIC $CPPFLAGS" fi # Check for proper Qt version. AC_CACHE_CHECK([for Qt library version >= 4.4], ac_cv_qtversion, [ AC_TRY_LINK([#include "QtCore/qglobal.h"], [ #if QT_VERSION < 0x040400 #error Qt library 4.4 or greater required. #endif ], ac_cv_qtversion="yes", [ echo "no; Qt 4.4 or greater is required" exit ]) ]) # A common error message: ac_errmsg="not found in current PATH. Maybe Qt development environment isn't available (qt-devel)." # Check for Qt qmake utility. AC_PATH_PROG(ac_qmake, qmake, [no], $ac_path) if test "x$ac_qmake" = "xno"; then AC_MSG_ERROR([qmake $ac_errmsg]) fi AC_SUBST(ac_qmake) # Check for Qt moc utility. AC_PATH_PROG(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_PROG(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_PROG(ac_lupdate, lupdate, [no], $ac_path) if test "x$ac_lupdate" = "xno"; then AC_MSG_ERROR([lupdate $ac_errmsg]) fi AC_SUBST(ac_lupdate) # Check for Qt lrelease utility. AC_PATH_PROG(ac_lrelease, lrelease, [no], $ac_path) if test "x$ac_release" = "xno"; then AC_MSG_ERROR([lrelease $ac_errmsg]) 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 round 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 round is available.]) fi # Check for fluidsynth library. AC_CHECK_LIB(fluidsynth, main, [ac_fluidsynth_lib="yes"], [ac_fluidsynth_lib="no"]) if test "x$ac_fluidsynth_lib" = "xno"; then AC_MSG_ERROR([fluidsynth library not found.]) else ac_libs="$ac_libs -lfluidsynth" fi # Some recent distros (eg. fedora, debian) require this. ac_libs="$ac_libs -lX11" AC_SUBST(ac_libs) # 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 fluidsynth headers. AC_CHECK_HEADER(fluidsynth.h, [ac_fluidsynth_h="yes"], [ac_fluidsynth_h="no"]) if test "x$ac_fluidsynth_h" = "xno"; then AC_MSG_ERROR([fluidsynth headers not found.]) fi # 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_incpath) # 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. 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 new_fluid_server is available.]) fi # Check for fluid_synth_system_reset function. AC_CHECK_LIB(fluidsynth, fluid_synth_system_reset, [ac_fluid_reset="yes"], [ac_fluid_reset="no"]) if test "x$ac_fluid_reset" = "xyes"; then AC_DEFINE(CONFIG_FLUID_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. 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 fluid_synth_get_channel_info is available.]) 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 round math function. AC_CHECK_LIB(m, round, [ac_round="yes"], [ac_round="no"]) if test "x$ac_round" = "xyes"; then AC_DEFINE(CONFIG_ROUND, 1, [Define if round is available.]) 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 $PACKAGE_VERSION" echo echo " Build target . . . . . . . . . . . . . . . . . . .: $ac_debug" echo echo " FluidSynth library support . . . . . . . . . . . .: $ac_fluidsynth_lib" echo " FluidSynth server support . . . . . . . . . . . .: $ac_fluid_server" echo " FluidSynth reset support . . . . . . . . . . . . .: $ac_fluid_reset" echo " FluidSynth bank offset support . . . . . . . . . .: $ac_fluid_bank_offset" echo " FluidSynth channel info support . . . . . . . . .: $ac_fluid_channel_info" echo " FluidSynth unset program support . . . . . . . . .: $ac_fluid_unset_program" echo " System tray icon support . . . . . . . . . . . . .: $ac_system_tray" echo 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.3.8/PaxHeaders.22416/COPYING0000644000175000001440000000007110505476115015132 xustar000000000000000027 atime=1388489097.076224 30 ctime=1388489097.076224622 qsynth-0.3.8/COPYING0000644000175000001440000004310310505476115014416 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.3.8/PaxHeaders.22416/INSTALL0000644000175000001440000000012311720473355015131 xustar000000000000000027 mtime=1329755885.690176 27 atime=1388489096.991224 29 ctime=1388489096.99222462 qsynth-0.3.8/INSTALL0000644000175000001440000003634011720473355014424 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.3.8/PaxHeaders.22416/Makefile.in0000644000175000001440000000012312177500651016142 xustar000000000000000027 mtime=1375633833.428202 27 atime=1388489093.850224 29 ctime=1388489093.85022457 qsynth-0.3.8/Makefile.in0000644000175000001440000000533312177500651015433 0ustar00rncbcusers00000000000000prefix = @ac_prefix@ qmake = @ac_qmake@ lupdate = @ac_lupdate@ lrelease = @ac_lrelease@ name = qsynth target = src/$(name) headers = \ src/config.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/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/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/qsynthPresetForm.ui \ src/qsynthSetupForm.ui translations_sources = \ 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_fr.qm \ src/translations/qsynth_ru.qm \ src/translations/qsynth_sr.qm export datarootdir = @datarootdir@ export localedir = @localedir@ 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: $(name).pro @$(lupdate) -verbose $(name).pro translations_lrelease: translations_lupdate $(translations_targets) %.qm: %.ts @$(lrelease) -verbose $< -qm $@ install: $(target) translations_lrelease @$(MAKE) INSTALL_ROOT=$(DESTDIR) -f $(name).mak install @install -d -v -m 0755 $(DESTDIR)$(localedir) @install -v -m 0644 $(translations_targets) $(DESTDIR)$(localedir) uninstall: $(DESTDIR)$(prefix)/bin/$(name) @$(MAKE) INSTALL_ROOT=$(DESTDIR) -f $(name).mak uninstall @rm -vf $(DESTDIR)$(localedir)/$(translations_targets) @for x in $(translations_targets); do \ rm -vf $(DESTDIR)$(localedir)/`basename $$x`; done clean: $(name).mak @$(MAKE) -f $(name).mak clean @rm -f $(target) $(target).mak $(name).mak @rm -rf *.cache *.log *.status $(translations_targets) qsynth-0.3.8/PaxHeaders.22416/Makefile.svn0000644000175000001440000000012311353144152016335 xustar000000000000000027 mtime=1269614698.050918 27 atime=1388489093.850224 29 ctime=1388489093.85022457 qsynth-0.3.8/Makefile.svn0000644000175000001440000000047411353144152015627 0ustar00rncbcusers00000000000000all: configure configure: Makefile.in configure.ac @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/Makefile src/config.* src/*.pri src/*.desktop @rm -rvf *.cache *.log *.status *.spec qsynth-0.3.8/PaxHeaders.22416/qsynth.pro0000644000175000001440000000012411353144152016141 xustar000000000000000027 mtime=1269614698.050918 27 atime=1388489093.985224 30 ctime=1388489093.985224573 qsynth-0.3.8/qsynth.pro0000644000175000001440000000034011353144152015422 0ustar00rncbcusers00000000000000# qsynth.pro # QMAKEVERSION = $$[QMAKE_VERSION] ISQT4 = $$find(QMAKEVERSION, ^[2-9]) isEmpty( ISQT4 ) { error("Use the qmake include with Qt4.4 or greater, on Debian that is qmake-qt4"); } TEMPLATE = subdirs SUBDIRS = src qsynth-0.3.8/PaxHeaders.22416/qsynth.spec.in0000644000175000001440000000012312260523605016701 xustar000000000000000026 mtime=1388488581.28839 27 atime=1388489093.985224 30 ctime=1388489093.985224573 qsynth-0.3.8/qsynth.spec.in0000644000175000001440000000535512260523605016176 0ustar00rncbcusers00000000000000%define name @PACKAGE_TARNAME@ %define version @PACKAGE_VERSION@ %define release 4 %define _prefix @ac_prefix@ 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 BuildRequires: libqt4-devel >= 4.4 BuildRequires: fluidsynth-devel >= 1.0.8 %description Qsynth is a fluidsynth GUI front-end application, written in C++ around the Qt4 toolkit, 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 [ -f Makefile.svn ] && %__make -f Makefile.svn %build %configure %__make %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}/locale %{_bindir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/32x32/apps/%{name}.png %{_datadir}/locale/%{name}_*.qm %changelog * 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.3.8/PaxHeaders.22416/README0000644000175000001440000000012412065407565014764 xustar000000000000000027 mtime=1356205941.875018 27 atime=1388489096.878224 30 ctime=1388489096.878224618 qsynth-0.3.8/README0000644000175000001440000000654212065407565014257 0ustar00rncbcusers00000000000000qsynth - A fluidsynth Qt GUI Interface -------------------------------------- Qsynth is a fluidsynth GUI front-end application written in C++ around the Qt4 toolkit 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: http://qsynth.sourceforge.net License: GNU General Public License (GPL) Requirements ------------ The software requirements for build and runtime are listed as follows: Mandatory: - Qt4 (core, gui), C++ class library and tools for crossplatform development and internationalization http://qt-project.org/ - 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 Subversion (SVN), you'll have to prepare the configure script just before you proceed with the above instructions: make -f Makefile.svn 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 (http://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 (http://www.sourceforge.net/projects/rosegarden) and other ALSA based software sequencers. Inspired by Rui's work on QjackCtl (http://qjackctl.sourceforge.net). 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.3.8/PaxHeaders.22416/README.cmake0000644000175000001440000000012411360117737016037 xustar000000000000000027 mtime=1270915039.321173 27 atime=1388489097.076224 30 ctime=1388489097.076224622 qsynth-0.3.8/README.cmake0000644000175000001440000000645411360117737015334 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 2.6 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 .. -DCONFIG_STACKTRACE=1 -DCMAKE_BUILD_TYPE=debug Available boolean options: * CONFIG_GRADIENT, enabled by default * CONFIG_SYSTEM_TRAY, enabled by default * CONFIG_STACKTRACE, disabled by default Valid values for boolean options are: 1, 0, yes, no, on, off. * There are also several alternative CMake front-ends, if you don't want to use the command line interface: * ncurses based program, for Linux and Unix: ccmake * GUI, Qt4 based program, multiplatform: cmake-gui * GUI, Windows native program: CMakeSetup.exe (deprecated) 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.3.8/PaxHeaders.22416/README-OSX0000644000175000001440000000007011165137056015426 xustar000000000000000027 atime=1388489096.957224 29 ctime=1388489096.95822462 qsynth-0.3.8/README-OSX0000644000175000001440000000111111165137056014704 0ustar00rncbcusers00000000000000Compiling qsynth-0.3.3 on Mac OS 10.5.6 (Leopard) ------------------------------------------------ by: Ebrahim Mayat Requirements: - fluidsynth - XcodeTools.mpkg, X11SDK.pkg, DevSDK.pkg, CoreAudioSDK.pkg, OpenGLSDK.pkg and QuickTimeSDK.pkg - Fink installation - qt4-mac "$ fink install qt4-mac" Configure and make: PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure --with-qt=/sw/lib/qt4-mac "LDFAGS=-lfluidsynth" ; make You now have a clickable application icon. Enjoy. qsynth-0.3.8/PaxHeaders.22416/src0000644000175000001440000000013212260524611014602 xustar000000000000000030 mtime=1388489097.440224627 30 atime=1388489094.090224574 30 ctime=1388489097.440224627 qsynth-0.3.8/src/0000755000175000001440000000000012260524611014144 5ustar00rncbcusers00000000000000qsynth-0.3.8/src/PaxHeaders.22416/src.pro0000644000175000001440000000012412177500651016176 xustar000000000000000027 mtime=1375633833.428202 27 atime=1388489094.366224 30 ctime=1388489094.366224579 qsynth-0.3.8/src/src.pro0000644000175000001440000000416412177500651015467 0ustar00rncbcusers00000000000000# qsynth.pro # TARGET = qsynth TEMPLATE = app DEPENDPATH += . INCLUDEPATH += . include(src.pri) #DEFINES += DEBUG HEADERS += config.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 \ 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 \ qsynthPresetForm.cpp \ qsynthSetupForm.cpp \ qsynthDialClassicStyle.cpp \ qsynthDialPeppinoStyle.cpp \ qsynthDialVokiStyle.cpp \ qsynthDialSkulptureStyle.cpp FORMS += \ qsynthAboutForm.ui \ qsynthChannelsForm.ui \ qsynthMainForm.ui \ qsynthMessagesForm.ui \ qsynthOptionsForm.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 } BINDIR = $$PREFIX/bin DATADIR = $$PREFIX/share LOCALEDIR = $(localedir) DEFINES += DATADIR=\"$$DATADIR\" !isEmpty(LOCALEDIR) { DEFINES += LOCALEDIR=\"$$LOCALEDIR\" } # make install INSTALLS += target desktop icon target.path = $$BINDIR desktop.path = $$DATADIR/applications desktop.files += $${TARGET}.desktop icon.path = $$DATADIR/icons/hicolor/32x32/apps icon.files += images/$${TARGET}.png } win32 { contains(CONFIG, debug) { CONFIG += console } RC_FILE = win32/qsynth.rc } # QT5 support !lessThan(QT_MAJOR_VERSION, 5) { QT += widgets } qsynth-0.3.8/src/PaxHeaders.22416/qsynthSetup.cpp0000644000175000001440000000012412065407565017746 xustar000000000000000027 mtime=1356205941.875018 27 atime=1388489094.366224 30 ctime=1388489094.367224579 qsynth-0.3.8/src/qsynthSetup.cpp0000644000175000001440000001530012065407565017231 0ustar00rncbcusers00000000000000// qsynthSetup.cpp // /**************************************************************************** Copyright (C) 2003-2012, 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 = NULL; sDefPresetName = QObject::tr("(default)"); } // Default Destructor. qsynthSetup::~qsynthSetup (void) { if (m_pFluidSettings) ::delete_fluid_settings(m_pFluidSettings); m_pFluidSettings = NULL; } // 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; char *pszVal; // 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"; pszVal = (char *) (bJackMulti ? "yes" : "no"); ::fluid_settings_setstr(m_pFluidSettings, pszKey, pszVal); 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.0) { pszKey = (char *) "synth.sample-rate"; ::fluid_settings_setnum(m_pFluidSettings, pszKey, 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.0) { // pszKey = (char *) "synth.gain"; // ::fluid_settings_setnum(m_pFluidSettings, pszKey, fGain); // } pszKey = (char *) "synth.reverb.active"; pszVal = (char *) (bReverbActive ? "yes" : "no"); ::fluid_settings_setstr(m_pFluidSettings, pszKey, pszVal); pszKey = (char *) "synth.chorus.active"; pszVal = (char *) (bChorusActive ? "yes" : "no"); ::fluid_settings_setstr(m_pFluidSettings, pszKey, pszVal); pszKey = (char *) "synth.ladspa.active"; pszVal = (char *) (bLadspaActive ? "yes" : "no"); ::fluid_settings_setstr(m_pFluidSettings, pszKey, pszVal); pszKey = (char *) "synth.dump"; pszVal = (char *) (bMidiDump ? "yes" : "no"); ::fluid_settings_setstr(m_pFluidSettings, pszKey, pszVal); pszKey = (char *) "synth.verbose"; pszVal = (char *) (bVerbose ? "yes" : "no"); ::fluid_settings_setstr(m_pFluidSettings, pszKey, pszVal); // 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.3.8/src/PaxHeaders.22416/qsynthPresetForm.ui0000644000175000001440000000012412166505747020572 xustar000000000000000027 mtime=1373277159.612985 27 atime=1388489095.204224 30 ctime=1388489095.204224592 qsynth-0.3.8/src/qsynthPresetForm.ui0000644000175000001440000001345112166505747020062 0ustar00rncbcusers00000000000000 rncbc aka Rui Nuno Capela qsynth - A fluidsynth Qt GUI Interface. Copyright (C) 2003-2013, 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 Qsynth: Channel Preset 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.3.8/src/PaxHeaders.22416/qsynthAboutForm.h0000644000175000001440000000012412166505747020214 xustar000000000000000027 mtime=1373277159.612985 27 atime=1388489094.393224 30 ctime=1388489094.393224579 qsynth-0.3.8/src/qsynthAboutForm.h0000644000175000001440000000277712166505747017515 0ustar00rncbcusers00000000000000// qsynthAboutForm.h // /**************************************************************************** Copyright (C) 2003-2013, 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.3.8/src/PaxHeaders.22416/qsynthEngine.cpp0000644000175000001440000000007110642144367020051 xustar000000000000000027 atime=1388489096.172224 30 ctime=1388489096.172224607 qsynth-0.3.8/src/qsynthEngine.cpp0000644000175000001440000000440210642144367017334 0ustar00rncbcusers00000000000000// qsynthEngine.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 "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 = NULL; pAudioDriver = NULL; pMidiRouter = NULL; pMidiDriver = NULL; pPlayer = NULL; pServer = NULL; 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 = NULL; } } // 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.3.8/src/PaxHeaders.22416/qsynthDialSkulptureStyle.h0000644000175000001440000000012412067407425022121 xustar000000000000000027 mtime=1356730133.630567 27 atime=1388489096.470224 30 ctime=1388489096.470224612 qsynth-0.3.8/src/qsynthDialSkulptureStyle.h0000644000175000001440000000266212067407425021413 0ustar00rncbcusers00000000000000/****************************************************************************** Skulpture - Classical Three-Dimensional Artwork for Qt 4 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.3.8/src/PaxHeaders.22416/qsynthOptionsForm.ui0000644000175000001440000000012411415725226020753 xustar000000000000000027 mtime=1278716566.601886 27 atime=1388489096.241224 30 ctime=1388489096.241224608 qsynth-0.3.8/src/qsynthOptionsForm.ui0000644000175000001440000005453511415725226020253 0ustar00rncbcusers00000000000000 rncbc aka Rui Nuno Capela qsynth - A fluidsynth Qt GUI Interface. Copyright (C) 2003-2010, 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 498 498 Qsynth: Options true Display 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... Alt+F false Qt::Horizontal QSizePolicy::Expanding 8 8 50 false Whether to keep a maximum number of lines in the messages window &Messages limit: Alt+M 50 false The maximum number of message lines to keep in view true 3 100 250 500 1000 2500 5000 75 true Logging true 7 0 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: Alt+L 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 8 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 Other true 50 false Whether to ask for confirmation on application exit &Confirm application close Alt+C Qt::Horizontal 239 20 50 false Whether to keep all child windows on top of the main window &Keep child windows always on top Alt+K 50 false Whether to capture standard output (stdout/stderr) into messages window Capture standard &output Alt+O 50 false Whether to monitor and show engine output peak level meters Output &peak level meters Alt+P 50 false Whether to enable the system tray icon &Enable system tray icon Alt+E 50 false Whether to start minimized to system tray Start minimi&zed to system tray Alt+Z 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 20 8 Qt::Horizontal QDialogButtonBox::Cancel|QDialogButtonBox::Ok OptionsTabWidget MessagesFontPushButton MessagesLimitCheckBox MessagesLimitLinesComboBox MessagesLogCheckBox MessagesLogPathComboBox MessagesLogPathToolButton KnobStyleComboBox KnobMouseMotionComboBox QueryCloseCheckBox KeepOnTopCheckBox StdoutCaptureCheckBox OutputMetersCheckBox SystemTrayCheckBox StartMinimizedCheckBox BaseFontSizeComboBox DialogButtonBox qsynth-0.3.8/src/PaxHeaders.22416/qsynthChannelsForm.h0000644000175000001440000000012412166505747020675 xustar000000000000000027 mtime=1373277159.612985 27 atime=1388489096.471224 30 ctime=1388489096.471224612 qsynth-0.3.8/src/qsynthChannelsForm.h0000644000175000001440000000476212166505747020172 0ustar00rncbcusers00000000000000// qsynthChannelsForm.h // /**************************************************************************** Copyright (C) 2003-2013, 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 closeEvent(QCloseEvent *); 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.3.8/src/PaxHeaders.22416/qsynthEngine.h0000644000175000001440000000007110642144367017516 xustar000000000000000027 atime=1388489094.522224 30 ctime=1388489094.522224581 qsynth-0.3.8/src/qsynthEngine.h0000644000175000001440000000412110642144367016777 0ustar00rncbcusers00000000000000// qsynthEngine.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 __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::null); // 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.3.8/src/PaxHeaders.22416/qsynthDialVokiStyle.cpp0000644000175000001440000000012412067407425021366 xustar000000000000000027 mtime=1356730133.630567 27 atime=1388489096.470224 30 ctime=1388489096.471224612 qsynth-0.3.8/src/qsynthDialVokiStyle.cpp0000644000175000001440000001504212067407425020654 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 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 == NULL) 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.light(); 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.dark()); meterShadow.setColorAt(0.5, meterColor); meterShadow.setColorAt(1.0, meterColor.light().light()); 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.light().light()); gradient.setColorAt(0.5, knobColor); gradient.setColorAt(1.0, knobColor.dark(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.light()); inShadow.setColorAt(1.0, borderColor.dark()); 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.dark().dark()); outShadow.setColorAt(1.0, background.light().light()); 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.dark(140) : pointerColor); pen.setWidth(pointerWidth + 2); p->setPen(pen); p->drawLine(QLineF(xcenter, ycenter, x, y)); pen.setColor((dial->state & State_Enabled) ? pointerColor.light() : pointerColor.light(140)); pen.setWidth(pointerWidth); p->setPen(pen); p->drawLine(QLineF(xcenter - 1, ycenter - 1, x - 1, y - 1)); // done p->restore(); } qsynth-0.3.8/src/PaxHeaders.22416/qsynthSetupForm.ui0000644000175000001440000000012312166505747020427 xustar000000000000000027 mtime=1373277159.612985 27 atime=1388489095.073224 29 ctime=1388489095.07322459 qsynth-0.3.8/src/qsynthSetupForm.ui0000644000175000001440000010517112166505747017721 0ustar00rncbcusers00000000000000 rncbc aka Rui Nuno Capela qsynth - A fluidsynth Qt GUI Interface. Copyright (C) 2003-2013, 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 Qsynth: Setup 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 Alt+D 180 0 MIDI device name true Enable MIDI input Enable MIDI &Input Alt+I 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 Alt+V 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 Alt+J Create multiple JACK output ports for channels, groups and effects &Multiple JACK Outputs Alt+M 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 Alt+O Edit selected soundfont bank offset &Edit :/images/edit1.png Alt+E Remove selected soundfont from stack &Remove :/images/remove1.png Alt+R Qt::Vertical 8 8 Move up selected soundfont towards the top of stack &Up :/images/up1.png Alt+U Move down selected soundfont towards the bottom of stack &Down :/images/down1.png Alt+D 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.3.8/src/PaxHeaders.22416/qsynthMessagesForm.h0000644000175000001440000000012411353144152020673 xustar000000000000000027 mtime=1269614698.050918 27 atime=1388489094.366224 30 ctime=1388489094.366224579 qsynth-0.3.8/src/qsynthMessagesForm.h0000644000175000001440000000436111353144152020163 0ustar00rncbcusers00000000000000// qsynthMessagesForm.h // /**************************************************************************** Copyright (C) 2003-2010, 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 *); void closeEvent(QCloseEvent *); 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.3.8/src/PaxHeaders.22416/qsynthPresetForm.h0000644000175000001440000000012412166505747020404 xustar000000000000000027 mtime=1373277159.612985 27 atime=1388489094.236224 30 ctime=1388489094.236224577 qsynth-0.3.8/src/qsynthPresetForm.h0000644000175000001440000000413612166505747017674 0ustar00rncbcusers00000000000000// qsynthPresetForm.h // /**************************************************************************** Copyright (C) 2003-2013, 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.3.8/src/PaxHeaders.22416/qsynthMessagesForm.ui0000644000175000001440000000012411353144152021061 xustar000000000000000027 mtime=1269614698.050918 27 atime=1388489096.658224 30 ctime=1388489096.658224615 qsynth-0.3.8/src/qsynthMessagesForm.ui0000644000175000001440000000430111353144152020343 0ustar00rncbcusers00000000000000 rncbc aka Rui Nuno Capela qsynth - A fluidsunth Qt GUI Interface. Copyright (C) 2003-2010, 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 0 0 Qsynth: Messages 320 80 Messages output log QTextEdit::NoWrap true false MessagesTextView qsynth-0.3.8/src/PaxHeaders.22416/qsynthDialPeppinoStyle.h0000644000175000001440000000012412067407425021535 xustar000000000000000027 mtime=1356730133.630567 27 atime=1388489094.090224 30 ctime=1388489094.090224574 qsynth-0.3.8/src/qsynthDialPeppinoStyle.h0000644000175000001440000000302712067407425021023 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) 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.3.8/src/PaxHeaders.22416/qsynthPresetForm.cpp0000644000175000001440000000012412067640432020726 xustar000000000000000027 mtime=1356808474.448925 27 atime=1388489095.432224 30 ctime=1388489095.432224595 qsynth-0.3.8/src/qsynthPresetForm.cpp0000644000175000001440000002625112067640432020220 0ustar00rncbcusers00000000000000// qsynthPresetForm.cpp // /**************************************************************************** Copyright (C) 2003-2012, 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 = NULL; 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 >= 0x050000 // 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(QSYNTH_TITLE ": " + 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(); fluid_preset_t preset; QTreeWidgetItem *pBankItem = NULL; // 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 int iBankOffset = ::fluid_synth_get_bank_offset(m_pSynth, pSoundFont->id); #endif pSoundFont->iteration_start(pSoundFont); while (pSoundFont->iteration_next(pSoundFont, &preset)) { int iBank = preset.get_banknum(&preset); #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) { m_iBank = pPreset->get_banknum(pPreset); #ifdef CONFIG_FLUID_BANK_OFFSET m_iBank += ::fluid_synth_get_bank_offset(m_pSynth, (pPreset->sfont)->id); #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) m_iProg = pPreset->get_num(pPreset); #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() != NULL); bValid = bValid && (m_ui.ProgListView->currentItem() != NULL); return bValid; } // Realize a bank-program selection preset. void qsynthPresetForm::setBankProg ( int iBank, int iProg ) { if (m_pSynth == NULL) 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 NULL; } // 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 NULL; } // Bank change slot. void qsynthPresetForm::bankChanged (void) { if (m_pSynth == NULL) return; QTreeWidgetItem *pBankItem = m_ui.BankListView->currentItem(); if (pBankItem == NULL) 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 = NULL; // 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_BANK_OFFSET int iBankOffset = ::fluid_synth_get_bank_offset(m_pSynth, pSoundFont->id); #endif pSoundFont->iteration_start(pSoundFont); while (pSoundFont->iteration_next(pSoundFont, &preset)) { int iBank = preset.get_banknum(&preset); #ifdef CONFIG_FLUID_BANK_OFFSET iBank += iBankOffset; #endif int iProg = preset.get_num(&preset); if (iBank == iBankSelected && !findProgItem(iProg)) { pProgItem = new qsynthPresetItem(m_ui.ProgListView, pProgItem); if (pProgItem) { pProgItem->setText(0, QString::number(iProg)); pProgItem->setText(1, preset.get_name(&preset)); pProgItem->setText(2, QString::number(pSoundFont->id)); pProgItem->setText(3, QFileInfo( pSoundFont->get_name(pSoundFont)).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 == NULL) 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.3.8/src/PaxHeaders.22416/qsynthChannels.cpp0000644000175000001440000000007110642144367020377 xustar000000000000000027 atime=1388489094.090224 30 ctime=1388489094.090224574 qsynth-0.3.8/src/qsynthChannels.cpp0000644000175000001440000000354510642144367017671 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.3.8/src/PaxHeaders.22416/qsynthMainForm.h0000644000175000001440000000012412166505747020026 xustar000000000000000027 mtime=1373277159.612985 27 atime=1388489095.003224 30 ctime=1388489095.003224589 qsynth-0.3.8/src/qsynthMainForm.h0000644000175000001440000001154512166505747017320 0ustar00rncbcusers00000000000000// qsynthMainForm.h // /**************************************************************************** Copyright (C) 2003-2013, 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" // Forward declarations class qsynthOptions; class qsynthMessagesForm; class qsynthChannelsForm; class qsynthSystemTray; class QSocketNotifier; 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& s); void appendMessagesColor(const QString& s, const QString& c); void appendMessagesText(const QString& s); void appendMessagesError(const QString& s); 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 setQuitForce(bool bQuitForce); bool isQuitForce() const; public slots: void stdoutNotifySlot(int); void appendStdoutBuffer(const QString&); void flushStdoutBuffer(); void systemTrayContextMenu(const QPoint&); void stabilizeForm(); 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(); protected: bool queryClose(); void closeEvent(QCloseEvent *pCloseEvent); 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(); void updateSystemTray(); qsynthEngine *currentEngine() const; void setEngineGain(qsynthEngine *pEngine, float fGain); void setEngineReverbOn(qsynthEngine *pEngine, bool bActive); void setEngineReverb(qsynthEngine *pEngine, float fRoom, float fDamp, float fWidth, float fLevel); void setEngineChorusOn(qsynthEngine *pEngine, bool bActive); void setEngineChorus(qsynthEngine *pEngine, int iNr, float fLevel, float fSpeed, float fDepth, int iType); void loadPanelSettings(qsynthEngine *pEngine, bool bUpdate); void savePanelSettings(qsynthEngine *pEngine); void resetChannelsForm(qsynthEngine *pEngine, bool fPreset); 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; 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; qsynthSystemTray *m_pSystemTray; int m_iSystemTrayState; bool m_bQuitForce; // 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.3.8/src/PaxHeaders.22416/qsynthAbout.h0000644000175000001440000000012312074600515017352 xustar000000000000000026 mtime=1358102861.17395 27 atime=1388489096.470224 30 ctime=1388489096.470224612 qsynth-0.3.8/src/qsynthAbout.h0000644000175000001440000000264212074600515016643 0ustar00rncbcusers00000000000000// qsynthAbout.h // /**************************************************************************** Copyright (C) 2003-2013, 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_VERSION PACKAGE_VERSION #define QSYNTH_SUBTITLE "A fluidsynth Qt GUI Interface" #define QSYNTH_WEBSITE "http://qsynth.sourceforge.net" #define QSYNTH_COPYRIGHT "Copyright (C) 2003-2013, rncbc aka Rui Nuno Capela. All rights reserved." #define QSYNTH_DOMAIN "rncbc.org" #endif // __qsynthAbout_h // end of qsynthAbout.h qsynth-0.3.8/src/PaxHeaders.22416/qsynthSetup.h0000644000175000001440000000012412065407565017413 xustar000000000000000027 mtime=1356205941.875018 27 atime=1388489096.172224 30 ctime=1388489096.172224607 qsynth-0.3.8/src/qsynthSetup.h0000644000175000001440000000525212065407565016703 0ustar00rncbcusers00000000000000// qsynthSetup.h // /**************************************************************************** Copyright (C) 2003-2012, 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.3.8/src/PaxHeaders.22416/cmakeconfig.cmake0000644000175000001440000000012411357721504020136 xustar000000000000000027 mtime=1270850372.093683 27 atime=1388489095.911224 30 ctime=1388489095.911224603 qsynth-0.3.8/src/cmakeconfig.cmake0000644000175000001440000000342411357721504017425 0ustar00rncbcusers00000000000000#ifndef CONFIG_H #define CONFIG_H /* Define if debugging is enabled. */ #cmakedefine CONFIG_DEBUG @CONFIG_DEBUG@ /* Define if fluid_synth_set_bank_offset is available. */ #cmakedefine CONFIG_FLUID_BANK_OFFSET @CONFIG_FLUID_BANK_OFFSET@ /* Define if fluid_synth_get_channel_info is available. */ #cmakedefine CONFIG_FLUID_CHANNEL_INFO @CONFIG_FLUID_CHANNEL_INFO@ /* Define if fluid_synth_system_reset is available. */ #cmakedefine CONFIG_FLUID_RESET @CONFIG_FLUID_RESET@ /* Define if new_fluid_server is available. */ #cmakedefine CONFIG_FLUID_SERVER @CONFIG_FLUID_SERVER@ /* Define if fluid_synth_unset_program is available. */ #cmakedefine CONFIG_FLUID_UNSET_PROGRAM @CONFIG_FLUID_UNSET_PROGRAM@ /* Define if gradient eye-candy is enabled. */ #cmakedefine CONFIG_GRADIENT @CONFIG_GRADIENT@ /* Default installation prefix. */ #cmakedefine CONFIG_PREFIX "@CONFIG_PREFIX@" /* Define if round is available. */ #cmakedefine CONFIG_ROUND @CONFIG_ROUND@ /* Define if debugger stack-trace is enabled. */ #cmakedefine CONFIG_STACKTRACE @CONFIG_STACKTRACE@ /* Define if system tray is enabled. */ #cmakedefine CONFIG_SYSTEM_TRAY @CONFIG_SYSTEM_TRAY@ /* Define to 1 if you have the header file. */ #cmakedefine HAVE_SIGNAL_H @HAVE_SIGNAL_H@ /* Define to the address where bug reports for this package should be sent. */ #cmakedefine PACKAGE_BUGREPORT "@PACKAGE_BUGREPORT@" /* 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 one symbol short name of this package. */ #cmakedefine PACKAGE_TARNAME "@PACKAGE_TARNAME@" /* Define to the version of this package. */ #cmakedefine PACKAGE_VERSION "@PACKAGE_VERSION@" #endif /* CONFIG_H */ qsynth-0.3.8/src/PaxHeaders.22416/qsynthChannels.h0000644000175000001440000000007110642542054020037 xustar000000000000000027 atime=1388489096.064224 30 ctime=1388489096.064224606 qsynth-0.3.8/src/qsynthChannels.h0000644000175000001440000000335210642542054017325 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.3.8/src/PaxHeaders.22416/qsynthOptionsForm.h0000644000175000001440000000012411353144152020557 xustar000000000000000027 mtime=1269614698.050918 27 atime=1388489096.658224 30 ctime=1388489096.658224615 qsynth-0.3.8/src/qsynthOptionsForm.h0000644000175000001440000000352611353144152020051 0ustar00rncbcusers00000000000000// qsynthOptionsForm.h // /**************************************************************************** Copyright (C) 2003-2010, 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); public slots: void optionsChanged(); void chooseMessagesFont(); void browseMessagesLogPath(); void stabilizeForm(); protected slots: void accept(); void reject(); 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.3.8/src/PaxHeaders.22416/qsynthMainForm.cpp0000644000175000001440000000012412166505747020361 xustar000000000000000027 mtime=1373277159.612985 27 atime=1388489096.239224 30 ctime=1388489096.240224608 qsynth-0.3.8/src/qsynthMainForm.cpp0000644000175000001440000021203612166505747017651 0ustar00rncbcusers00000000000000// qsynthMainForm.cpp // /**************************************************************************** Copyright (C) 2003-2013, 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" #include "qsynthSystemTray.h" #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 #if QT_VERSION >= 0x050000 #include #endif #if QT_VERSION < 0x040500 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) #undef HAVE_SIGNAL_H #else #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 #ifdef HAVE_SIGNAL_H #include #endif // 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 = NULL; #ifdef CONFIG_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* ) { return ::new_fluid_cmd_handler((fluid_synth_t*) data); } #endif //------------------------------------------------------------------------- // Audio driver processing stub. int qsynth_process ( void *pvData, int len, int nin, float **in, int nout, float **out ) { qsynthEngine *pEngine = (qsynthEngine *) pvData; // Call the synthesizer process function to fill // the output buffers with its audio output. if (::fluid_synth_process(pEngine->pSynth, len, nin, in, 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++) { float *out_i = out[i]; for (int j = 0; j < len; j++) { 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 = NULL; static void qsynth_midi_event ( qsynthEngine *pEngine, fluid_midi_event_t *pMidiEvent ) { pEngine->iMidiEvent++; if (g_pMidiChannels && pEngine == g_pCurrentEngine) { int iChan = ::fluid_midi_event_get_channel(pMidiEvent); #ifdef CONFIG_DEBUG int iType = ::fluid_midi_event_get_type(pMidiEvent); int iKey = ::fluid_midi_event_get_control(pMidiEvent); 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) { int iCC; switch (::fluid_midi_event_get_type(pMidiEvent)) { case QSYNTH_MIDI_CONTROL_CHANGE: // Avoid bank selects or global control changes... 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, again... 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; float fMinimum = float(pSpinBox->minimum()) / fScale; 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 = NULL; 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 == NULL) return NULL; // Look thru all the synths' sfonts for the requested one... qsynthEngineNode *pNode = g_pEngineList; while (pNode) { fluid_synth_t *pSynth = (pNode->pEngine)->pSynth; int cSoundFonts = ::fluid_synth_sfcount(pSynth); for (int i = 0; i < cSoundFonts; 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 NULL; } #endif // QSYNTH_CUSTOM_LOADER //---------------------------------------------------------------------------- // qsynthMainForm -- UI wrapper form. // Kind of singleton reference. qsynthMainForm *qsynthMainForm::g_pMainForm = NULL; // Constructor. qsynthMainForm::qsynthMainForm ( QWidget *pParent, Qt::WindowFlags wflags ) : QWidget(pParent, wflags) { // Setup UI struct... m_ui.setupUi(this); // Pseudo-singleton reference setup. g_pMainForm = this; m_pOptions = NULL; m_iTimerDelay = 0; m_iCurrentTab = -1; m_pStdoutNotifier = NULL; 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 = NULL; m_pChannelsForm = NULL; // The eventual system tray widget. m_pSystemTray = NULL; m_iSystemTrayState = 0; // 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); #endif 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 = NULL; } // Destructor. qsynthMainForm::~qsynthMainForm (void) { // Stop the press! for (int iTab = 0; iTab < m_ui.TabBar->count(); iTab++) { qsynthEngine *pEngine = m_ui.TabBar->engine(iTab); if (pEngine) stopEngine(pEngine); } // No more options descriptor. m_pOptions = NULL; // Finally drop any popup widgets around... if (m_pMessagesForm) delete m_pMessagesForm; if (m_pChannelsForm) delete m_pChannelsForm; // Quit off system tray widget. if (m_pSystemTray) delete m_pSystemTray; // Pseudo-singleton reference shut-down. g_pMainForm = NULL; 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 = NULL; 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(); updateSystemTray(); // Knobs updateKnobs(); #if !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); 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_bQuitForce && isVisible() && m_pOptions->bSystemTray && m_pSystemTray) { m_pOptions->saveWidgetGeometry(this, true); const QString& sTitle = QSYNTH_TITLE ": " + 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 (QSystemTrayIcon::supportsMessages()) { m_pSystemTray->showMessage( sTitle, sText, QSystemTrayIcon::Information); } else QMessageBox::information(this, sTitle, sText); hide(); bQueryClose = false; } #endif // Dow we quit right away? if (bQueryClose && m_pOptions->bQueryClose) { for (int iTab = 0; iTab < m_ui.TabBar->count(); iTab++) { qsynthEngine *pEngine = m_ui.TabBar->engine(iTab); if (pEngine && pEngine->pSynth) { bQueryClose = (QMessageBox::warning(this, QSYNTH_TITLE ": " + tr("Warning"), QSYNTH_TITLE " " + tr("is about to terminate.") + "\n\n" + tr("Are you sure?"), QMessageBox::Ok | QMessageBox::Cancel) == QMessageBox::Ok); 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(); // And the system tray icon too. if (m_pSystemTray) m_pSystemTray->close(); } } #ifdef CONFIG_SYSTEM_TRAY // Whether we're really quitting. m_bQuitForce = bQueryClose; #endif 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 == NULL) return; if (pEngine->pSynth == NULL) return; qsynthSetup *pSetup = pEngine->setup(); if (pSetup == NULL) 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() == NULL) { 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()) { QByteArray tmp = sFilename.toLocal8Bit(); char *pszFilename = tmp.data(); 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); } } // Own stdout/stderr socket notifier slot. void qsynthMainForm::stdoutNotifySlot ( int fd ) { #if !defined(WIN32) char achBuffer[1024]; int cchBuffer = ::read(fd, achBuffer, sizeof(achBuffer) - 1); if (cchBuffer > 0) { achBuffer[cchBuffer] = (char) 0; appendStdoutBuffer(achBuffer); } #endif } // Stdout buffer handler -- now splitted by complete new-lines... void qsynthMainForm::appendStdoutBuffer ( const QString& s ) { m_sStdoutBuffer.append(s); int iLength = m_sStdoutBuffer.lastIndexOf('\n') + 1; if (iLength > 0) { QString sTemp = m_sStdoutBuffer.left(iLength); m_sStdoutBuffer.remove(0, iLength); 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& s ) { if (m_pMessagesForm) m_pMessagesForm->appendMessages(s); } void qsynthMainForm::appendMessagesColor( const QString& s, const QString& c ) { if (m_pMessagesForm) m_pMessagesForm->appendMessagesColor(s, c); } void qsynthMainForm::appendMessagesText( const QString& s ) { if (m_pMessagesForm) m_pMessagesForm->appendMessagesText(s); } void qsynthMainForm::appendMessagesError( const QString& s ) { if (m_pMessagesForm) m_pMessagesForm->show(); appendMessagesColor(s.simplified(), "#ff0000"); const QString& sTitle = QSYNTH_TITLE ": " + tr("Error"); #ifdef CONFIG_SYSTEM_TRAY if (m_pOptions->bSystemTray && m_pSystemTray && QSystemTrayIcon::supportsMessages()) { m_pSystemTray->showMessage(sTitle, s, QSystemTrayIcon::Critical); } else #endif QMessageBox::critical(this, sTitle, s, QMessageBox::Cancel); } // Force update of the messages font. void qsynthMainForm::updateMessagesFont (void) { if (m_pOptions == NULL) 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 == NULL) 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 == NULL) return; if (m_pOptions->bOutputMeters) m_ui.OutputGroupBox->show(); else m_ui.OutputGroupBox->hide(); // adjustSize(); } // System tray master switcher. void qsynthMainForm::updateSystemTray (void) { if (m_pOptions == NULL) return; #ifdef CONFIG_SYSTEM_TRAY if (!m_pOptions->bSystemTray && m_pSystemTray) { // Strange enough, this would close the application too. // m_pSystemTray->close(); delete m_pSystemTray; m_pSystemTray = NULL; } if (m_pOptions->bSystemTray && m_pSystemTray == NULL) { m_pSystemTray = new qsynthSystemTray(this); m_pSystemTray->show(); QObject::connect(m_pSystemTray, SIGNAL(clicked()), SLOT(toggleMainForm())); QObject::connect(m_pSystemTray, SIGNAL(contextMenuRequested(const QPoint &)), SLOT(systemTrayContextMenu(const QPoint &))); } else { // Make sure the main widget is visible. show(); raise(); activateWindow(); } #endif } // System tray context menu request slot. void qsynthMainForm::systemTrayContextMenu ( const QPoint& pos ) { if (m_pOptions == NULL) return; QMenu menu(this); QAction *pAction; QString sHideMinimize = (m_pOptions->bSystemTray && m_pSystemTray ? tr("&Hide") : tr("Mi&nimize")); QString sShowRestore = (m_pOptions->bSystemTray && m_pSystemTray ? tr("S&how") : tr("Rest&ore")); pAction = menu.addAction(isVisible() ? sHideMinimize : sShowRestore, this, SLOT(toggleMainForm())); menu.addSeparator(); qsynthEngine *pEngine = currentEngine(); 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(); bool bEnabled = (pEngine && pEngine->pSynth); pAction = menu.addAction(QIcon(":/images/restart1.png"), bEnabled ? tr("Re&start") : tr("&Start"), this, SLOT(promptRestart())); pAction = menu.addAction(QIcon(":/images/reset1.png"), tr("&Reset"), this, SLOT(programReset())); pAction->setEnabled(bEnabled); pAction = menu.addAction(QIcon(":/images/panic1.png"), tr("&Panic"), this, SLOT(systemReset())); pAction->setEnabled(bEnabled); menu.addSeparator(); pAction = 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 = menu.addAction(QIcon(":/images/setup1.png"), tr("Set&up..."), this, SLOT(showSetupForm())); menu.addSeparator(); // Construct the actual engines menu, // overriding the last one, if any... // Add presets menu to the main context menu... QMenu *pEnginesMenu = menu.addMenu(tr("Engines")); for (int iTab = 0; iTab < m_ui.TabBar->count(); iTab++) { pEngine = m_ui.TabBar->engine(iTab); if (pEngine) { pAction = pEnginesMenu->addAction(pEngine->name()); pAction->setCheckable(true); pAction->setChecked(pEngine == currentEngine()); pAction->setData(iTab); } } QObject::connect(pEnginesMenu, SIGNAL(triggered(QAction*)), SLOT(activateEnginesMenu(QAction*))); menu.addSeparator(); pAction = menu.addAction(QIcon(":/images/messages1.png"), tr("&Messages"), this, SLOT(toggleMessagesForm())); pAction->setCheckable(true); pAction->setChecked(m_pMessagesForm && m_pMessagesForm->isVisible()); pAction = menu.addAction(QIcon(":/images/options1.png"), tr("&Options..."), this, SLOT(showOptionsForm())); // pAction = menu.AddAction(QIcon(":/images/about1.png"), // tr("A&bout..."), this, SLOT(showAboutForm())); menu.addSeparator(); pAction = menu.addAction(QIcon(":/images/quit1.png"), tr("&Quit"), this, SLOT(quitMainForm())); menu.exec(pos); } // Stabilize current form toggle buttons that may be astray. void qsynthMainForm::stabilizeForm (void) { qsynthEngine *pEngine = currentEngine(); 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) { 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); 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()); } // Program reset command slot (all channels). void qsynthMainForm::programReset (void) { m_ui.ProgramResetPushButton->setEnabled(false); 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_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; int iSuffix = m_ui.TabBar->count() + 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 < m_ui.TabBar->count() && !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... 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; } } // 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 == NULL || iTab < 0) return false; // Try to prompt user if he/she really wants this... bool bResult = (QMessageBox::warning(this, QSYNTH_TITLE ": " + 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 = NULL; 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 == NULL || pEngine->setup() == NULL) 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(QSYNTH_TITLE " - " + tr(QSYNTH_SUBTITLE) + " [" + 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 == NULL) return; m_pOptions->saveWidgetGeometry(this, true); if (isVisible()) { if (m_pOptions->bSystemTray && m_pSystemTray) { // Hide away from sight, if not active... if (isActiveWindow()) { hide(); } else { raise(); activateWindow(); } } else { // Minimize (iconify) normally. showMinimized(); } } else { show(); raise(); activateWindow(); } } // Message log form requester slot. void qsynthMainForm::toggleMessagesForm (void) { if (m_pOptions == NULL) 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(); } } } // Channels view form requester slot. void qsynthMainForm::toggleChannelsForm (void) { if (m_pOptions == NULL) 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(); } } } // Instance dialog requester slot. void qsynthMainForm::showSetupForm (void) { 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 == NULL) 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. bool bOldMessagesLog = m_pOptions->bMessagesLog; QString sOldMessagesLogPath = m_pOptions->sMessagesLogPath; QString sMessagesFont = m_pOptions->sMessagesFont; bool bSystemTray = m_pOptions->bSystemTray; bool bOutputMeters = m_pOptions->bOutputMeters; bool bStdoutCapture = m_pOptions->bStdoutCapture; bool bKeepOnTop = m_pOptions->bKeepOnTop; int iOldBaseFontSize = m_pOptions->iBaseFontSize; int bMessagesLimit = m_pOptions->bMessagesLimit; int iMessagesLimitLines = m_pOptions->iMessagesLimitLines; int iKnobStyle = m_pOptions->iKnobStyle; int iKnobMotion = 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 (( bStdoutCapture && !m_pOptions->bStdoutCapture) || (!bStdoutCapture && m_pOptions->bStdoutCapture) || ( bKeepOnTop && !m_pOptions->bKeepOnTop) || (!bKeepOnTop && m_pOptions->bKeepOnTop) || (iOldBaseFontSize != m_pOptions->iBaseFontSize)) { const QString& sTitle = QSYNTH_TITLE ": " + 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 (sMessagesFont != m_pOptions->sMessagesFont) updateMessagesFont(); if (( bMessagesLimit && !m_pOptions->bMessagesLimit) || (!bMessagesLimit && m_pOptions->bMessagesLimit) || (iMessagesLimitLines != m_pOptions->iMessagesLimitLines)) updateMessagesLimit(); if (( bSystemTray && !m_pOptions->bSystemTray) || (!bSystemTray && m_pOptions->bSystemTray)) updateSystemTray(); if (( iKnobStyle != m_pOptions->iKnobStyle) || ( iKnobMotion != m_pOptions->iKnobMotion)) updateKnobs(); // There's some option(s) that need a global restart... if (( bOutputMeters && !m_pOptions->bOutputMeters) || (!bOutputMeters && 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(QSYNTH_TITLE " - " + tr(QSYNTH_SUBTITLE) + " [" + pEngine->name() + "]"); loadPanelSettings(pEngine, false); resetChannelsForm(pEngine, false); } } // 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 != NULL); 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! for (int iTab = 0; iTab < m_ui.TabBar->count(); iTab++) startEngine(m_ui.TabBar->engine(iTab)); } } // Some global MIDI activity? int iTabUpdate = 0; for (int iTab = 0; iTab < m_ui.TabBar->count(); 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++; // Change the system tray icon background color! if (m_pSystemTray && m_iSystemTrayState == 0) { m_iSystemTrayState++; m_pSystemTray->setBackground(Qt::green); } } } else if (pEngine->iMidiEvent == 0 && pEngine->iMidiState > 0) { pEngine->iMidiState--; m_ui.TabBar->setOn(iTab, false); iTabUpdate++; // Reset the system tray icon background! if (m_pSystemTray && m_iSystemTrayState > 0) { m_iSystemTrayState--; m_pSystemTray->setBackground(Qt::transparent); } } } // 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) { m_pChannelsForm->setChannelOn(iChan, false); g_pMidiChannels[iChan].iState--; } } } // 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 == NULL) return false; if (pEngine->pSynth) return true; qsynthSetup *pSetup = pEngine->setup(); if (pSetup == NULL) 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 == NULL) { 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 = NULL; 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())) { int iBankOffset = pSetup->bankoffsets[i].toInt(); appendMessagesColor(sPrefix + tr("Loading soundfont: \"%1\" (bank offset %2)") .arg(sFilename).arg(iBankOffset) + sElipsis, "#999933"); 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 = NULL; pEngine->bMeterEnabled = false; if (m_pOptions->bOutputMeters) { pEngine->pAudioDriver = ::new_fluid_audio_driver2( pSetup->fluid_settings(), qsynth_process, pEngine); pEngine->bMeterEnabled = (pEngine->pAudioDriver != NULL); } if (pEngine->pAudioDriver == NULL) pEngine->pAudioDriver = ::new_fluid_audio_driver( pSetup->fluid_settings(), pEngine->pSynth); if (pEngine->pAudioDriver == NULL) { 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 == NULL) { appendMessagesError(sPrefix + tr("Failed to create the MIDI input router (%1).\n\n" "No MIDI input will be available.") .arg(pSetup->sMidiDriver)); } else { ::fluid_synth_set_midi_router(pEngine->pSynth, pEngine->pMidiRouter); 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 == NULL) 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 == NULL) { 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); // 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) { g_iLastShellPort = ::fluid_settings_getint_default( pSetup->fluid_settings(), szShellPort); } } // 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->pSynth); if (pEngine->pServer == NULL) 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 == NULL) return; if (pEngine->pSynth == NULL) return; qsynthSetup *pSetup = pEngine->setup(); if (pSetup == NULL) 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::null : 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 = NULL; } #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 = NULL; } // Destroy MIDI router. if (pEngine->pMidiRouter) { if (pEngine->pMidiDriver) { appendMessages(sPrefix + tr("Destroying MIDI driver") + sElipsis); ::delete_fluid_midi_driver(pEngine->pMidiDriver); pEngine->pMidiDriver = NULL; } appendMessages(sPrefix + tr("Destroying MIDI router") + sElipsis); ::delete_fluid_midi_router(pEngine->pMidiRouter); pEngine->pMidiRouter = NULL; } // Destroy audio driver. if (pEngine->pAudioDriver) { appendMessages(sPrefix + tr("Destroying audio driver") + sElipsis); ::delete_fluid_audio_driver(pEngine->pAudioDriver); pEngine->pAudioDriver = NULL; pEngine->bMeterEnabled = false; } // Unload soundfonts from actual synth stack... int cSoundFonts = ::fluid_synth_sfcount(pEngine->pSynth); for (int i = 0; i < cSoundFonts; i++) { fluid_sfont_t *pSoundFont = ::fluid_synth_get_sfont(pEngine->pSynth, i); if (pSoundFont) { int iSFID = pSoundFont->id; const QString sName = pSoundFont->get_name(pSoundFont); appendMessagesColor(sPrefix + tr("Unloading soundfont: \"%1\" (SFID=%2)") .arg(sName).arg(iSFID) + sElipsis, "#999933"); if (::fluid_synth_sfunload(pEngine->pSynth, iSFID, 0) < 0) appendMessagesError(sPrefix + tr("Failed to unload the soundfont: \"%1\".") .arg(sName)); } } // And finally, destroy the synthesizer engine. if (pEngine->pSynth) { appendMessages(sPrefix + tr("Destroying synthesizer engine") + sElipsis); ::delete_fluid_synth(pEngine->pSynth); pEngine->pSynth = NULL; // 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... bool bRestart = (QMessageBox::warning(this, QSYNTH_TITLE ": " + 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... for (int iTab = 0; iTab < m_ui.TabBar->count(); 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, QSYNTH_TITLE ": " + 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, float fRoom, float fDamp, float fWidth, float 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, float fLevel, float fSpeed, float 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 == NULL) return; // if (pEngine->pSynth == NULL || pEngine->pAudioDriver == NULL) // return; qsynthSetup *pSetup = pEngine->setup(); if (pSetup == NULL) 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) { 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 == NULL) return; if (pEngine->pSynth == NULL || pEngine->pAudioDriver == NULL) return; qsynthSetup *pSetup = pEngine->setup(); if (pSetup == NULL) 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 == NULL) 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 = NULL; 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 == NULL) return; if (pEngine->pSynth == NULL) 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 == NULL) return; if (pEngine->pSynth == NULL) 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++; } // Update gain state. void qsynthMainForm::updateGain (void) { if (m_iGainUpdated > 0) return; qsynthEngine *pEngine = currentEngine(); if (pEngine == NULL) return; if (pEngine->pSynth == NULL) return; m_iGainUpdated++; 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 == NULL) return; if (pEngine->pSynth == NULL) return; m_iReverbUpdated++; double fReverbRoom = qsynth_get_range_value( m_ui.ReverbRoomSpinBox, QSYNTH_REVERB_ROOM_SCALE); double fReverbDamp = qsynth_get_range_value( m_ui.ReverbDampSpinBox, QSYNTH_REVERB_DAMP_SCALE); double fReverbWidth = qsynth_get_range_value( m_ui.ReverbWidthSpinBox, QSYNTH_REVERB_WIDTH_SCALE); 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 == NULL) return; if (pEngine->pSynth == NULL) return; m_iChorusUpdated++; int iChorusNr = m_ui.ChorusNrSpinBox->value(); double fChorusLevel = qsynth_get_range_value( m_ui.ChorusLevelSpinBox, QSYNTH_CHORUS_LEVEL_SCALE); double fChorusSpeed = qsynth_get_range_value( m_ui.ChorusSpeedSpinBox, QSYNTH_CHORUS_SPEED_SCALE); double fChorusDepth = qsynth_get_range_value( m_ui.ChorusDepthSpinBox, QSYNTH_CHORUS_DEPTH_SCALE); 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 == NULL) return; if (pEngine->pSynth == NULL) 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 == NULL) return; if (pEngine->pSynth == NULL) return; double fReverbRoom = ::fluid_synth_get_reverb_roomsize(pEngine->pSynth); double fReverbDamp = ::fluid_synth_get_reverb_damp(pEngine->pSynth); double fReverbWidth = ::fluid_synth_get_reverb_width(pEngine->pSynth); 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 == NULL) return; if (pEngine->pSynth == NULL) return; int iChorusNr = ::fluid_synth_get_chorus_nr(pEngine->pSynth); double fChorusLevel = ::fluid_synth_get_chorus_level(pEngine->pSynth); double fChorusSpeed = ::fluid_synth_get_chorus_speed_Hz(pEngine->pSynth); double fChorusDepth = ::fluid_synth_get_chorus_depth_ms(pEngine->pSynth); 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 ) { 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_bQuitForce = true; #endif // And then, do the closing dance. close(); } // Context menu event handler. void qsynthMainForm::contextMenuEvent( QContextMenuEvent *pEvent ) { // We'll just show up the usual system tray menu. systemTrayContextMenu(pEvent->globalPos()); } void qsynthMainForm::updateKnobs() { if (m_pOptions == NULL) return; qsynthKnob::DialMode mode = qsynthKnob::DialMode(m_pOptions->iKnobMotion); KnobStyle style = KnobStyle(m_pOptions->iKnobStyle); if (m_pKnobStyle) { delete m_pKnobStyle; } 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 = NULL; break; } QList allKnobs = findChildren(); foreach(qsynthKnob* knob, allKnobs) { knob->setStyle(m_pKnobStyle); knob->setDialMode(mode); } } // Session (desktop) shutdown signal handler. void qsynthMainForm::setQuitForce ( bool bQuitForce ) { m_bQuitForce = bQuitForce; } bool qsynthMainForm::isQuitForce (void) const { return m_bQuitForce; } // end of qsynthMainForm.cpp qsynth-0.3.8/src/PaxHeaders.22416/qsynthSetupForm.cpp0000644000175000001440000000012412166505747020575 xustar000000000000000027 mtime=1373277159.612985 27 atime=1388489095.315224 30 ctime=1388489095.316224594 qsynth-0.3.8/src/qsynthSetupForm.cpp0000644000175000001440000007511512166505747020072 0ustar00rncbcusers00000000000000// qsynthSetupForm.cpp // /**************************************************************************** Copyright (C) 2003-2013, 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 ( void *pvData, char *, char *pszOption ) { qsynth_settings_data *pData = (qsynth_settings_data *) pvData; pData->options.append(pszOption); } static void qsynth_settings_foreach ( void *pvData, char *pszName, int iType ) { 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: { double fDefault = ::fluid_settings_getnum_default(pFluidSettings, pszName); 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: { int iDefault = ::fluid_settings_getint_default(pFluidSettings, pszName); 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: { char *pszDefault = ::fluid_settings_getstr_default(pFluidSettings, pszName); char *pszCurrent = NULL; ::fluid_settings_getstr(pFluidSettings, pszName, &pszCurrent); (pData->pListItem)->setText(iCol++, pszCurrent); (pData->pListItem)->setText(iCol++, pszDefault); (pData->pListItem)->setText(iCol++, QString::null); (pData->pListItem)->setText(iCol++, QString::null); 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 = NULL; m_pOptions = NULL; // 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 >= 0x050000 // 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 >= 0x050000 // 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 == NULL || pEngine == NULL) return; // Set reference descriptors. m_pOptions = pOptions; m_pSetup = pEngine->setup(); // Update caption. setWindowTitle(QSYNTH_TITLE ": " + tr("Setup") + " [" + pEngine->name() + "]"); // 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 = NULL; // 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 = NULL; 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) { pItem->setIcon(0, *m_pXpmSoundFont); pItem->setText(0, QString::number(pSoundFont->id)); pItem->setText(1, pSoundFont->get_name(pSoundFont)); #ifdef CONFIG_FLUID_BANK_OFFSET pItem->setText(2, QString::number(::fluid_synth_get_bank_offset(pEngine->pSynth, pSoundFont->id))); 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(); 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, QSYNTH_TITLE ": " + 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 = NULL; data.pListItem = NULL; // 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 = NULL; data.pListItem = NULL; // 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(); bool bAlsaEnabled = (m_ui.MidiDriverComboBox->currentText() == "alsa_seq"); 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)); 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) { int iItem = m_ui.SoundFontListView->indexOfTopLevelItem(pSelectedItem); 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 == NULL) 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 != NULL); 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); 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, // Parent QSYNTH_TITLE ": " + tr("Soundfont files"), // Caption. m_pOptions->sSoundFontDir, // Start here. tr("Soundfont files") + " (*.sf2 *.SF2)" // Filter (SF2 files) ); QTreeWidgetItem *pItem = NULL; // 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, QSYNTH_TITLE ": " + 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 == NULL) { 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, QSYNTH_TITLE ": " + 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) { int iItem = m_ui.SoundFontListView->indexOfTopLevelItem(pItem); int iItemCount = m_ui.SoundFontListView->topLevelItemCount(); 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) { int iBankOffset = pItem->text(2).toInt(); if (iBankOffset < 0 || iBankOffset > 128) pItem->setText(2, QString::number(0)); m_iDirtyCount++; } stabilizeForm(); } // end of qsynthSetupForm.cpp qsynth-0.3.8/src/PaxHeaders.22416/qsynthOptions.cpp0000644000175000001440000000012412065407565020301 xustar000000000000000027 mtime=1356205941.875018 27 atime=1388489094.236224 30 ctime=1388489094.236224577 qsynth-0.3.8/src/qsynthOptions.cpp0000644000175000001440000007452412065407565017601 0ustar00rncbcusers00000000000000// qsynthOptions.cpp // /**************************************************************************** Copyright (C) 2003-2012, 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 //------------------------------------------------------------------------- // 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::null); loadOptions(); } // Default Destructor. qsynthOptions::~qsynthOptions (void) { saveOptions(); // Delete default setup descriptor. delete m_pDefaultSetup; m_pDefaultSetup = NULL; } // Explicit load method. void qsynthOptions::loadOptions (void) { // 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(); 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 defaults... m_settings.beginGroup("/Defaults"); sSoundFontDir = m_settings.value("/SoundFontDir").toString(); bPresetPreview = m_settings.value("/PresetPreview", false).toBool(); 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", QSYNTH_VERSION); 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 defaults... m_settings.beginGroup("/Defaults"); m_settings.setValue("/SoundFontDir", sSoundFontDir); m_settings.setValue("/PresetPreview", bPresetPreview); m_settings.endGroup(); // Save last 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("/StartMinimized", bStartMinimized); m_settings.setValue("/BaseFontSize", iBaseFontSize); m_settings.setValue("/KnobStyle", iKnobStyle); m_settings.setValue("/KnobMotion", iKnobMotion); m_settings.endGroup(); // Save/commit to disk. m_settings.sync(); } // Default instance setup accessor. qsynthSetup *qsynthOptions::defaultSetup (void) { return m_pDefaultSetup; } //------------------------------------------------------------------------- // 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"; int iSoundFontOverride = 0; int argc = args.count(); for (int i = 1; i < argc; ++i) { QString sVal; QString sArg = args.at(i); 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 (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()) { out << QObject::tr("Option -R requires an argument (reverb).") + sEol; return false; } m_pDefaultSetup->bReverbActive = !(sVal == "0" || sVal == "no" || sVal == "off"); if (iEqual < 0) i++; } else if (sArg == "-C" || sArg == "--chorus") { if (sVal.isEmpty()) { out << QObject::tr("Option -C requires an argument (chorus).") + sEol; return false; } 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... } 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 << QObject::tr("Qt: %1\n").arg(qVersion()); out << QObject::tr(QSYNTH_TITLE ": %1\n").arg(QSYNTH_VERSION); return false; } else { QByteArray tmp = args.at(i).toUtf8(); char *name = tmp.data(); 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::null); } 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 == NULL) return; if (pEngine->isDefault()) return; const QString& sName = pEngine->name(); if (!engines.contains(sName)) engines.append(sName); } bool qsynthOptions::renameEngine ( qsynthEngine *pEngine ) { if (pEngine == NULL) return false; qsynthSetup *pSetup = pEngine->setup(); if (pSetup == NULL) 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 == NULL) 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 == NULL) 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 = QObject::tr(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(WIN32) pSetup->sMidiDriver = m_settings.value("/MidiDriver", "winmidi").toString(); pSetup->sAudioDriver = m_settings.value("/AudioDriver", "dsound").toString(); pSetup->iAudioBufSize = m_settings.value("/AudioBufSize", 512).toInt(); pSetup->iAudioBufCount = m_settings.value("/AudioBufCount", 8).toInt(); #else pSetup->sMidiDriver = m_settings.value("/MidiDriver", "alsa_seq").toString(); pSetup->sAudioDriver = m_settings.value("/AudioDriver", "jack").toString(); 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(); pSetup->sMidiDevice = m_settings.value("/MidiDevice").toString(); 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", FLUID_REVERB_DEFAULT_ROOMSIZE).toDouble(); pSetup->fReverbDamp = m_settings.value("/ReverbDamp", FLUID_REVERB_DEFAULT_DAMP).toDouble(); pSetup->fReverbWidth = m_settings.value("/ReverbWidth", FLUID_REVERB_DEFAULT_WIDTH).toDouble(); pSetup->fReverbLevel = m_settings.value("/ReverbLevel", FLUID_REVERB_DEFAULT_LEVEL).toDouble(); pSetup->bChorusActive = m_settings.value("/ChorusActive", true).toBool(); pSetup->iChorusNr = m_settings.value("/ChorusNr", FLUID_CHORUS_DEFAULT_N).toInt(); pSetup->fChorusLevel = m_settings.value("/ChorusLevel", FLUID_CHORUS_DEFAULT_LEVEL).toDouble(); pSetup->fChorusSpeed = m_settings.value("/ChorusSpeed", FLUID_CHORUS_DEFAULT_SPEED).toDouble(); pSetup->fChorusDepth = m_settings.value("/ChorusDepth", FLUID_CHORUS_DEFAULT_DEPTH).toDouble(); pSetup->iChorusType = m_settings.value("/ChorusType", FLUID_CHORUS_DEFAULT_TYPE).toInt(); pSetup->bLadspaActive = m_settings.value("/LadspaActive", false).toBool(); pSetup->fGain = m_settings.value("/Gain", 1.0).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 == NULL) 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 == NULL || pEngine->pSynth == NULL) return false; qsynthSetup *pSetup = pEngine->setup(); if (pSetup == NULL) 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 == NULL || pEngine->pSynth == NULL) return false; qsynthSetup *pSetup = pEngine->setup(); if (pSetup == NULL) 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) { int iBank = pPreset->get_banknum(pPreset); #ifdef CONFIG_FLUID_BANK_OFFSET iBank += ::fluid_synth_get_bank_offset(pEngine->pSynth, (pPreset->sfont)->id); #endif QString sEntry = QString::number(iChan); sEntry += ':'; sEntry += QString::number(iBank); sEntry += ':'; sEntry += QString::number(pPreset->get_num(pPreset)); 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 == NULL) return false; qsynthSetup *pSetup = pEngine->setup(); if (pSetup == NULL) 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 ) { // 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(); } void qsynthOptions::saveComboBoxHistory ( QComboBox *pComboBox, int iLimit ) { // 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); 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(); } //--------------------------------------------------------------------------- // Widget geometry persistence helper methods. void qsynthOptions::loadWidgetGeometry ( QWidget *pWidget, bool bVisible ) { // Try to restore old form window positioning. if (pWidget) { QPoint wpos; QSize wsize; m_settings.beginGroup("/Geometry/" + pWidget->objectName()); 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 (!bVisible) bVisible = m_settings.value("/visible", false).toBool(); m_settings.endGroup(); if (wpos.x() > 0 && wpos.y() > 0) pWidget->move(wpos); if (wsize.width() > 0 && wsize.height() > 0) pWidget->resize(wsize); else pWidget->adjustSize(); if (bVisible && !bStartMinimized) pWidget->show(); else pWidget->hide(); } } 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()); const QPoint& wpos = pWidget->pos(); const QSize& wsize = pWidget->size(); if (!bVisible) bVisible = pWidget->isVisible(); m_settings.setValue("/x", wpos.x()); m_settings.setValue("/y", wpos.y()); m_settings.setValue("/width", wsize.width()); m_settings.setValue("/height", wsize.height()); m_settings.setValue("/visible", bVisible && !bStartMinimized); m_settings.endGroup(); } } // end of qsynthOptions.cpp qsynth-0.3.8/src/PaxHeaders.22416/qsynthDialClassicStyle.cpp0000644000175000001440000000012412067407425022037 xustar000000000000000027 mtime=1356730133.630567 27 atime=1388489094.236224 30 ctime=1388489094.237224577 qsynth-0.3.8/src/qsynthDialClassicStyle.cpp0000644000175000001440000001356112067407425021331 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 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 == NULL) 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.light()); gradient.setColorAt(1, knobColor.dark()); 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.dark(); 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.light(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.light(108); } // Undraw the bottom part... pen.setColor(pal.background().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.dark(130) : c); pen.setWidth(scale * 2); p->setPen(pen); p->drawLine(int(x0), int(y0), int(x), int(y)); // done p->restore(); } qsynth-0.3.8/src/PaxHeaders.22416/qsynth.cpp0000644000175000001440000000012412166505747016730 xustar000000000000000027 mtime=1373277159.612985 27 atime=1388489095.132224 30 ctime=1388489095.132224591 qsynth-0.3.8/src/qsynth.cpp0000644000175000001440000002562612166505747016227 0ustar00rncbcusers00000000000000// qsynth.cpp // /**************************************************************************** Copyright (C) 2003-2013, 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 "qsynthMainForm.h" #include #include #include #include #if QT_VERSION < 0x040500 namespace Qt { const WindowFlags WindowCloseButtonHint = WindowFlags(0x08000000); } #endif #define CONFIG_QUOTE1(x) #x #define CONFIG_QUOTED(x) CONFIG_QUOTE1(x) #if defined(DATADIR) #define CONFIG_DATADIR CONFIG_QUOTED(DATADIR) #else #define CONFIG_DATADIR CONFIG_PREFIX "/share" #endif #if defined(LOCALEDIR) #define CONFIG_LOCALEDIR CONFIG_QUOTED(LOCALEDIR) #else #define CONFIG_LOCALEDIR CONFIG_DATADIR "/locale" #endif //------------------------------------------------------------------------- // Singleton application instance stuff (Qt/X11 only atm.) // #if defined(Q_WS_X11) #include #include #include #define QSYNTH_XUNIQUE "qsynthApplication" #endif class qsynthApplication : public QApplication { public: // Constructor. qsynthApplication(int& argc, char **argv) : QApplication(argc, argv), m_pQtTranslator(0), m_pMyTranslator(0), m_pWidget(0) { // 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 = 0; #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_LOCALEDIR; if (m_pMyTranslator->load(sLocName, sLocPath)) { QApplication::installTranslator(m_pMyTranslator); } else { delete m_pMyTranslator; m_pMyTranslator = 0; #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 } } } #if defined(Q_WS_X11) // Instance uniqueness initialization... m_pDisplay = QX11Info::display(); m_aUnique = XInternAtom(m_pDisplay, QSYNTH_XUNIQUE, false); XGrabServer(m_pDisplay); m_wOwner = XGetSelectionOwner(m_pDisplay, m_aUnique); XUngrabServer(m_pDisplay); #endif } // Destructor. ~qsynthApplication() { if (m_pMyTranslator) delete m_pMyTranslator; if (m_pQtTranslator) delete m_pQtTranslator; } // Main application widget accessors. void setMainWidget(QWidget *pWidget) { m_pWidget = pWidget; #if defined(Q_WS_X11) XGrabServer(m_pDisplay); m_wOwner = m_pWidget->winId(); XSetSelectionOwner(m_pDisplay, m_aUnique, m_wOwner, CurrentTime); XUngrabServer(m_pDisplay); #endif } QWidget *mainWidget() const { return m_pWidget; } // Check if another instance is running, // and raise its proper main widget... bool setup() { #if defined(Q_WS_X11) 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::x11EventFilter... 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 return false; } #if defined(Q_WS_X11) bool x11EventFilter(XEvent *pEv) { if (m_pWidget && m_wOwner != None && pEv->type == PropertyNotify && pEv->xproperty.window == m_wOwner && pEv->xproperty.state == PropertyNewValue) { // 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); } return QApplication::x11EventFilter(pEv); } #endif // Session shutdown handler. void commitData(QSessionManager& sm) { qsynthMainForm *pMainForm = qsynthMainForm::getInstance(); if (pMainForm) pMainForm->setQuitForce(true); #if QT_VERSION < 0x050000 QApplication::commitData(sm); #endif } private: // Translation support. QTranslator *m_pQtTranslator; QTranslator *m_pMyTranslator; // Instance variables. QWidget *m_pWidget; #if defined(Q_WS_X11) Display *m_pDisplay; Atom m_aUnique; Window m_wOwner; #endif }; //------------------------------------------------------------------------- // 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, NULL); _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 qsynthApplication app(argc, argv); // Construct default settings; override with command line arguments. qsynthOptions settings; if (!settings.parse_args(app.arguments())) { app.quit(); return 1; } // Have another instance running? if (app.setup()) { app.quit(); return 2; } // Dark themes grayed/disabled color group fix... QPalette pal(app.palette()); if (pal.base().color().value() < 0x7f) { #if QT_VERSION >= 0x050000 const QColor& color = pal.window().color(); const int iGroups = int(QPalette::Active | QPalette::Inactive) + 1; for (int i = 0; i < iGroups; ++i) { const QPalette::ColorGroup group = QPalette::ColorGroup(i); pal.setBrush(group, QPalette::Light, color.lighter(150)); pal.setBrush(group, QPalette::Midlight, color.lighter(120)); pal.setBrush(group, QPalette::Dark, color.darker(150)); pal.setBrush(group, QPalette::Mid, color.darker(120)); pal.setBrush(group, QPalette::Shadow, color.darker(200)); } // pal.setColor(QPalette::Disabled, QPalette::ButtonText, pal.mid().color()); #endif 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()); app.setPalette(pal); } // Set default base font... int iBaseFontSize = app.font().pointSize(); if (settings.iBaseFontSize > 0) iBaseFontSize = settings.iBaseFontSize; app.setFont(QFont(app.font().family(), iBaseFontSize)); // What style do we create these forms? Qt::WindowFlags wflags = Qt::Window | Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowMinMaxButtonsHint | Qt::WindowCloseButtonHint; if (settings.bKeepOnTop) wflags |= Qt::Tool; // Construct the main form, and show it to the world. qsynthMainForm w(0, wflags); w.setup(&settings); // If we have a systray icon, we'll skip this. if (!settings.bSystemTray) { w.show(); // w.adjustSize(); } // Settle this one as application main widget... app.setMainWidget(&w); // Register the quit signal/slot. app.setQuitOnLastWindowClosed(false); return app.exec(); } // end of qsynth.cpp qsynth-0.3.8/src/PaxHeaders.22416/qsynthKnob.cpp0000644000175000001440000000012312074600515017524 xustar000000000000000026 mtime=1358102861.17395 27 atime=1388489095.459224 30 ctime=1388489095.459224596 qsynth-0.3.8/src/qsynthKnob.cpp0000644000175000001440000001035712074600515017017 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.3.8/src/PaxHeaders.22416/qsynthMeter.cpp0000644000175000001440000000007011252710310017700 xustar000000000000000027 atime=1388489096.369224 29 ctime=1388489096.37022461 qsynth-0.3.8/src/qsynthMeter.cpp0000644000175000001440000002573311252710310017176 0ustar00rncbcusers00000000000000// qsynthMeter.cpp // /**************************************************************************** Copyright (C) 2004-2009, 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 // 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); QWidget::setFont(QFont(font().family(), 6)); } // Default destructor. qsynthMeterScale::~qsynthMeterScale (void) { } // Draw IEC scale line and label; assumes labels drawed from top to bottom. void qsynthMeterScale::drawLineLabel ( QPainter *p, int y, const QString& sLabel ) { int iCurrY = QWidget::height() - y; int iWidth = QWidget::width() - 2; const QFontMetrics& fm = p->fontMetrics(); int iMidHeight = (fm.height() >> 1); if (iCurrY < iMidHeight || iCurrY > m_iLastY + iMidHeight) { if (fm.width(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; p.setPen(QWidget::palette().mid().color().dark(140)); 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_iPeakHold = 0; m_fPeakDecay = QSYNTH_METER_DECAY_RATE2; m_iPeakColor = qsynthMeter::Color6dB; QWidget::setMinimumWidth(12); QFrame::setBackgroundRole(QPalette::NoRole); QFrame::setFrameShape(QFrame::StyledPanel); QFrame::setFrameShadow(QFrame::Sunken); } // Default destructor. qsynthMeterValue::~qsynthMeterValue (void) { } // 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); int w = QWidget::width(); 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 = NULL; m_ppScales = NULL; 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) { int w = QWidget::width(); 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.3.8/src/PaxHeaders.22416/qsynthAboutForm.cpp0000644000175000001440000000012412166505747020547 xustar000000000000000027 mtime=1373277159.612985 27 atime=1388489096.063224 30 ctime=1388489096.063224605 qsynth-0.3.8/src/qsynthAboutForm.cpp0000644000175000001440000000615212166505747020037 0ustar00rncbcusers00000000000000// qsynthAboutForm.cpp // /**************************************************************************** Copyright (C) 2003-2013, 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 //---------------------------------------------------------------------------- // qsynthAboutForm -- UI wrapper form. // Constructor. qsynthAboutForm::qsynthAboutForm ( QWidget *pParent, Qt::WindowFlags wflags ) : QDialog(pParent, wflags) { // Setup UI struct... m_ui.setupUi(this); // Stuff the about box... QString sText = "


\n"; sText += "" QSYNTH_TITLE " - " + tr(QSYNTH_SUBTITLE) + "
\n"; sText += "
\n"; sText += tr("Version") + ": " QSYNTH_VERSION "
\n"; sText += tr("Build") + ": " __DATE__ " " __TIME__ "
\n"; #ifdef CONFIG_DEBUG sText += ""; sText += tr("Debugging option enabled."); sText += "
\n"; sText += "
"; #endif #ifndef CONFIG_FLUID_SERVER sText += ""; sText += tr("Server option disabled."); sText += "
\n"; sText += "
"; #endif #ifndef CONFIG_FLUID_RESET sText += ""; sText += tr("System reset option disabled."); sText += "
\n"; sText += "
"; #endif #ifndef CONFIG_FLUID_BANK_OFFSET sText += ""; sText += tr("Bank offset option disabled."); sText += "
\n"; sText += "
"; #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.3.8/src/PaxHeaders.22416/qsynthMeter.h0000644000175000001440000000007111252710310017346 xustar000000000000000027 atime=1388489095.204224 30 ctime=1388489095.204224592 qsynth-0.3.8/src/qsynthMeter.h0000644000175000001440000000767011252710310016643 0ustar00rncbcusers00000000000000// qsynthMeter.h // /**************************************************************************** Copyright (C) 2004-2009, 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); // Default destructor. ~qsynthMeterScale(); 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); // Default destructor. ~qsynthMeterValue(); // 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; int m_iPeakHold; float m_fPeakDecay; 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.3.8/src/PaxHeaders.22416/qsynthKnob.h0000644000175000001440000000012312074600515017171 xustar000000000000000026 mtime=1358102861.17395 27 atime=1388489094.366224 30 ctime=1388489094.366224579 qsynth-0.3.8/src/qsynthKnob.h0000644000175000001440000000536612074600515016470 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.3.8/src/PaxHeaders.22416/qsynthDialSkulptureStyle.cpp0000644000175000001440000000012412067407425022454 xustar000000000000000027 mtime=1356730133.630567 27 atime=1388489094.522224 30 ctime=1388489094.522224581 qsynth-0.3.8/src/qsynthDialSkulptureStyle.cpp0000644000175000001440000004067312067407425021752 0ustar00rncbcusers00000000000000/****************************************************************************** Skulpture - Classical Three-Dimensional Artwork for Qt 4 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); pixmapName.sprintf("scp-qdb-%x-%x-%llx-%x", state, option->direction, option->palette.cacheKey(), d); } 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(); pixmapName.sprintf("scp-isg-%x-%x-%s-%x-%x", state, option->direction, colorName.constData(), option->rect.width(), option->rect.height()); } 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 == NULL) return; int d = qMin(option->rect.width() & ~1, option->rect.height() & ~1); QStyleOptionSlider opt = *option; const QAbstractSlider *slider = NULL; // 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.3.8/src/PaxHeaders.22416/qsynthMainForm.ui0000644000175000001440000000012412166505747020214 xustar000000000000000027 mtime=1373277159.612985 27 atime=1388489096.171224 30 ctime=1388489096.172224607 qsynth-0.3.8/src/qsynthMainForm.ui0000644000175000001440000010227212166505747017504 0ustar00rncbcusers00000000000000 rncbc aka Rui Nuno Capela qsynth - A fluidsynth Qt GUI Interface. Copyright (C) 2003-2013, 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 Qsynth - A fluidsynth Qt GUI Interface :/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 Alt+S 75 true Reverb 4 4 0 20 50 false Reverb effect activation Ac&tive Alt+T 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 Alt+I 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 75 true 4 4 Output peak level 8 4 Quit this application &Quit :/images/quit1.png Alt+Q false Show general options dialog &Options... :/images/options1.png Alt+O false Show/hide the messages log window &Messages :/images/messages1.png Alt+M true false Show information about this application A&bout... :/images/about1.png Alt+B false Qt::Vertical QSizePolicy::Expanding 8 8 System reset &Panic :/images/panic1.png Alt+P Program reset (all channels) &Reset :/images/reset1.png Alt+R Show instance settings and configuration dialog Set&up... :/images/setup1.png Alt+U false Show/hide the channels view window &Channels :/images/channels1.png Alt+C true false 4 0 22 22 24 24 Qt::NoFocus Add a new engine :/images/add1.png Ins 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 Del 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.3.8/src/PaxHeaders.22416/qsynthDialClassicStyle.h0000644000175000001440000000012412067407425021504 xustar000000000000000027 mtime=1356730133.630567 27 atime=1388489096.064224 30 ctime=1388489096.064224606 qsynth-0.3.8/src/qsynthDialClassicStyle.h0000644000175000001440000000335412067407425020775 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 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.3.8/src/PaxHeaders.22416/CMakeLists.txt0000644000175000001440000000012412247173416017430 xustar000000000000000027 mtime=1386018574.622011 27 atime=1388489095.316224 30 ctime=1388489095.316224594 qsynth-0.3.8/src/CMakeLists.txt0000644000175000001440000000671112247173416016721 0ustar00rncbcusers00000000000000include_directories ( ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${QT_INCLUDES} ${FLUIDSYNTH_INCLUDEDIR} ) link_directories ( ${CMAKE_CURRENT_BINARY_DIR} ${QT_LIBRARY_DIR} ) configure_file ( cmakeconfig.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h ) set ( ac_prefix ${CMAKE_INSTALL_PREFIX} ) configure_file ( qsynth.desktop.in ${CMAKE_CURRENT_BINARY_DIR}/qsynth.desktop ) set ( HEADERS qsynthKnob.h qsynthMeter.h qsynthSystemTray.h qsynthTabBar.h qsynthAboutForm.h qsynthChannelsForm.h qsynthMainForm.h qsynthMessagesForm.h qsynthOptionsForm.h qsynthPresetForm.h qsynthSetupForm.h ) set ( 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 qsynthPresetForm.cpp qsynthSetupForm.cpp qsynthDialClassicStyle.cpp qsynthDialPeppinoStyle.cpp qsynthDialVokiStyle.cpp qsynthDialSkulptureStyle.cpp ) set ( FORMS qsynthAboutForm.ui qsynthChannelsForm.ui qsynthMainForm.ui qsynthMessagesForm.ui qsynthOptionsForm.ui qsynthPresetForm.ui qsynthSetupForm.ui ) set ( RESOURCES qsynth.qrc ) qt4_wrap_ui ( UI_SOURCES ${FORMS} ) qt4_wrap_cpp ( MOC_SOURCES ${HEADERS} ) qt4_add_resources ( QRC_SOURCES ${RESOURCES} ) if (WIN32) set ( RC_FILE ${CMAKE_CURRENT_SOURCE_DIR}/win32/qsynth.rc ) set ( RES_FILE ${CMAKE_CURRENT_BINARY_DIR}/qsynth.res.obj ) find_program ( WINDRES_EXECUTABLE NAMES windres mingw32-windres i686-mingw32-windres) if (MINGW) exec_program( ${WINDRES_EXECUTABLE} ARGS "-i ${RC_FILE} -o ${RES_FILE} --include-dir=${CMAKE_CURRENT_SOURCE_DIR}/images") list (APPEND SOURCES ${RES_FILE} ) else (MINGW) list (APPEND SOURCES ${RC_FILE} ) endif (MINGW) endif (WIN32) if (APPLE) set ( ICON_FILE ${CMAKE_CURRENT_SOURCE_DIR}/images/qsynth.icns ) list ( APPEND SOURCES ${ICON_FILE} ) set ( MACOSX_BUNDLE_ICON_FILE qsynth.icns ) set_source_files_properties ( ${ICON_FILE} PROPERTIES MACOSX_PACKAGE_LOCATION Resources ) endif (APPLE) add_executable ( qsynth ${UI_SOURCES} ${MOC_SOURCES} ${QRC_SOURCES} ${SOURCES} ) if (WIN32) set_target_properties ( qsynth PROPERTIES WIN32_EXECUTABLE true ) endif (WIN32) if (APPLE) set_target_properties ( qsynth PROPERTIES MACOSX_BUNDLE true ) endif (APPLE) target_link_libraries ( qsynth ${QT_LIBRARIES} ${MATH_LIBRARY} ${FLUIDSYNTH_LIBRARY} ) set ( TRANSLATIONS translations/qsynth_cs.ts translations/qsynth_de.ts translations/qsynth_es.ts translations/qsynth_fr.ts translations/qsynth_ru.ts ) qt4_add_translation ( QM_FILES ${TRANSLATIONS} ) add_custom_target( translations ALL DEPENDS ${QM_FILES} ) if (UNIX AND NOT APPLE) install ( TARGETS qsynth RUNTIME DESTINATION bin ) install ( FILES ${QM_FILES} DESTINATION share/locale ) install ( FILES ${CMAKE_CURRENT_BINARY_DIR}/qsynth.desktop DESTINATION share/applications ) install ( FILES images/qsynth.png DESTINATION share/pixmaps ) endif (UNIX AND NOT APPLE) if (WIN32) install ( TARGETS qsynth RUNTIME DESTINATION . ) install ( FILES ${QM_FILES} DESTINATION share/locale ) endif (WIN32) qsynth-0.3.8/src/PaxHeaders.22416/qsynthSetupForm.h0000644000175000001440000000012412166505747020242 xustar000000000000000027 mtime=1373277159.612985 27 atime=1388489094.090224 30 ctime=1388489094.090224574 qsynth-0.3.8/src/qsynthSetupForm.h0000644000175000001440000000476612166505747017543 0ustar00rncbcusers00000000000000// qsynthSetupForm.h // /**************************************************************************** Copyright (C) 2003-2013, 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 __qsynthSetupForm_h #define __qsynthSetupForm_h #include "ui_qsynthSetupForm.h" // Forward declarations. class qsynthOptions; class qsynthEngine; class qsynthSetup; class QPixmap; //---------------------------------------------------------------------------- // qsynthSetupForm -- UI wrapper form. class qsynthSetupForm : public QDialog { Q_OBJECT public: // Constructor. qsynthSetupForm(QWidget *pParent = 0, Qt::WindowFlags wflags = 0); // Destructor. ~qsynthSetupForm(); void setup(qsynthOptions *pOptions, qsynthEngine *pEngine, bool bNew); public slots: void nameChanged(const QString&); void midiDriverChanged(const QString&); void audioDriverChanged(const QString&); void settingsChanged(); void contextMenuRequested(const QPoint&); void openSoundFont(); void editSoundFont(); void removeSoundFont(); void moveUpSoundFont(); void moveDownSoundFont(); void stabilizeForm(); protected slots: void itemRenamed(); void accept(); void reject(); protected: // A combo-box text item setter helper. void setComboBoxCurrentText( QComboBox *pComboBox, const QString& sText) const; void updateMidiDevices(const QString& sMidiDriver); void updateAudioDevices(const QString& sAudioDriver); void refreshSoundFonts(); private: // The Qt-designer UI struct... Ui::qsynthSetupForm m_ui; // Instance variables. qsynthOptions *m_pOptions; qsynthSetup *m_pSetup; int m_iDirtySetup; int m_iDirtyCount; QString m_sSoundFontDir; QPixmap *m_pXpmSoundFont; }; #endif // __qsynthSetupForm_h // end of qsynthSetupForm.h qsynth-0.3.8/src/PaxHeaders.22416/qsynthSystemTray.cpp0000644000175000001440000000012412166505747020775 xustar000000000000000027 mtime=1373277159.612985 27 atime=1388489096.658224 30 ctime=1388489096.658224615 qsynth-0.3.8/src/qsynthSystemTray.cpp0000644000175000001440000000676112166505747020273 0ustar00rncbcusers00000000000000// qsynthSystemTray.cpp // /**************************************************************************** Copyright (C) 2003-2013, 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 < 0x040500 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(); QSystemTrayIcon::setIcon(m_icon); QSystemTrayIcon::setToolTip(pParent->windowTitle()); } QObject::connect(this, SIGNAL(activated(QSystemTrayIcon::ActivationReason)), SLOT(activated(QSystemTrayIcon::ActivationReason))); setBackground(Qt::transparent); 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::Context: emit contextMenuRequested(QCursor::pos()); break; 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(22, 22); // Merge with the overlay pixmap... if (!m_pixmapOverlay.mask().isNull()) { QBitmap mask = m_pixmap.mask(); QPainter(&mask).drawPixmap(0, 0, m_pixmapOverlay.mask()); m_pixmap.setMask(mask); QPainter(&m_pixmap).drawPixmap(0, 0, 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.3.8/src/PaxHeaders.22416/qsynthDialPeppinoStyle.cpp0000644000175000001440000000012412067407425022070 xustar000000000000000027 mtime=1356730133.630567 27 atime=1388489095.316224 30 ctime=1388489095.316224594 qsynth-0.3.8/src/qsynthDialPeppinoStyle.cpp0000644000175000001440000001255412067407425021363 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) 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.dark(140)); linGrad.setColorAt(1, arcColor.light().light()); 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 == NULL) 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.3.8/src/PaxHeaders.22416/config.h.in0000644000175000001440000000006212260524611016704 xustar000000000000000020 atime=1388489097 30 ctime=1388489097.440224627 qsynth-0.3.8/src/config.h.in0000644000175000001440000000537512260524611016201 0ustar00rncbcusers00000000000000/* src/config.h.in. Generated from configure.ac by autoheader. */ /* Define if debugging is enabled. */ #undef CONFIG_DEBUG /* Define if fluid_synth_set_bank_offset is available. */ #undef CONFIG_FLUID_BANK_OFFSET /* Define if fluid_synth_get_channel_info is available. */ #undef CONFIG_FLUID_CHANNEL_INFO /* Define if fluid_synth_system_reset is available. */ #undef CONFIG_FLUID_RESET /* Define if new_fluid_server is available. */ #undef CONFIG_FLUID_SERVER /* Define if fluid_synth_unset_program is available. */ #undef CONFIG_FLUID_UNSET_PROGRAM /* Define if gradient eye-candy is enabled. */ #undef CONFIG_GRADIENT /* Default installation prefix. */ #undef CONFIG_PREFIX /* Define if round is available. */ #undef CONFIG_ROUND /* Define if debugger stack-trace is enabled. */ #undef CONFIG_STACKTRACE /* Define if system tray is enabled. */ #undef CONFIG_SYSTEM_TRAY /* Define to 1 if you have the 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.3.8/src/PaxHeaders.22416/qsynthOptions.h0000644000175000001440000000012412065407565017746 xustar000000000000000027 mtime=1356205941.875018 27 atime=1388489096.064224 30 ctime=1388489096.064224606 qsynth-0.3.8/src/qsynthOptions.h0000644000175000001440000000626312065407565017241 0ustar00rncbcusers00000000000000// qsynthOptions.h // /**************************************************************************** Copyright (C) 2003-2012, 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; //------------------------------------------------------------------------- // qsynthOptions - Prototype settings class. // // Forward declaration. class qsynthEngine; class qsynthOptions { public: // Constructor. qsynthOptions(); // Default destructor. ~qsynthOptions(); // 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 bStartMinimized; int iBaseFontSize; int iKnobStyle; int iKnobMotion; // 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.3.8/src/PaxHeaders.22416/src.pri.in0000644000175000001440000000012411447470665016607 xustar000000000000000027 mtime=1285452213.337042 27 atime=1388489094.237224 30 ctime=1388489094.237224577 qsynth-0.3.8/src/src.pri.in0000644000175000001440000000015011447470665016067 0ustar00rncbcusers00000000000000# qsynth.pri # PREFIX = @ac_prefix@ CONFIG += @ac_debug@ INCLUDEPATH += @ac_incpath@ LIBS += @ac_libs@ qsynth-0.3.8/src/PaxHeaders.22416/win320000644000175000001440000000013012260524610015541 xustar000000000000000029 mtime=1388489096.36922461 30 atime=1388489096.275224609 29 ctime=1388489096.36922461 qsynth-0.3.8/src/win32/0000755000175000001440000000000012260524610015105 5ustar00rncbcusers00000000000000qsynth-0.3.8/src/win32/PaxHeaders.22416/setup.nsi0000644000175000001440000000012312260523605017476 xustar000000000000000026 mtime=1388488581.28839 27 atime=1388489096.275224 30 ctime=1388489096.276224609 qsynth-0.3.8/src/win32/setup.nsi0000644000175000001440000002146312260523605016771 0ustar00rncbcusers00000000000000Name QSynth # Defines !define BINARY_FILES "C:\Projects\build\all" !define REGKEY "SOFTWARE\$(^Name)" !define VERSION 0.3.8 !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.3.8/src/win32/PaxHeaders.22416/gpl.rtf0000644000175000001440000000012311353144152017120 xustar000000000000000027 mtime=1269614698.050918 27 atime=1388489096.276224 29 ctime=1388489096.36922461 qsynth-0.3.8/src/win32/gpl.rtf0000644000175000001440000004453311353144152016416 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.3.8/src/win32/PaxHeaders.22416/qsynth.rc0000644000175000001440000000012411353144152017476 xustar000000000000000027 mtime=1269614698.050918 27 atime=1388489096.276224 30 ctime=1388489096.276224609 qsynth-0.3.8/src/win32/qsynth.rc0000644000175000001440000000011011353144152016752 0ustar00rncbcusers00000000000000IDI_ICON1 ICON DISCARDABLE "../images/qsynth.ico" qsynth-0.3.8/src/PaxHeaders.22416/qsynthTabBar.cpp0000644000175000001440000000012412166505747020004 xustar000000000000000027 mtime=1373277159.612985 27 atime=1388489095.911224 30 ctime=1388489095.911224603 qsynth-0.3.8/src/qsynthTabBar.cpp0000644000175000001440000000565212166505747017300 0ustar00rncbcusers00000000000000// qsynthTabBar.cpp // /**************************************************************************** Copyright (C) 2003-2013, 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 = NULL; static QIcon *g_pIconLedOff = NULL; //------------------------------------------------------------------------- // 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 = NULL; g_pIconLedOff = NULL; } } // 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.3.8/src/PaxHeaders.22416/qsynth.desktop.in0000644000175000001440000000012312177500651020212 xustar000000000000000027 mtime=1375633833.428202 27 atime=1388489096.369224 29 ctime=1388489096.36922461 qsynth-0.3.8/src/qsynth.desktop.in0000644000175000001440000000065712177500651017507 0ustar00rncbcusers00000000000000[Desktop Entry] Name=@PACKAGE_NAME@ Version=1.0 GenericName=FluidSynth GUI GenericName[sr]=Кју-синт Comment=Qsynth is a FluidSynth Qt GUI Interface Comment[sr]=Програм за управљање програмом Флуид-синт, у графичком окружењу. Exec=@ac_prefix@/bin/qsynth Icon=qsynth Categories=Audio;AudioVideo;Midi;X-Alsa;X-Jack;Qt; Terminal=false Type=Application X-SuSE-translate=true qsynth-0.3.8/src/PaxHeaders.22416/qsynth.qrc0000644000175000001440000000012411353144152016715 xustar000000000000000027 mtime=1269614698.050918 27 atime=1388489095.204224 30 ctime=1388489095.205224592 qsynth-0.3.8/src/qsynth.qrc0000644000175000001440000000167211353144152016207 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/qtlogo.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/qtlogo.png qsynth-0.3.8/src/PaxHeaders.22416/qsynthAboutForm.ui0000644000175000001440000000012412166505747020402 xustar000000000000000027 mtime=1373277159.612985 27 atime=1388489095.433224 30 ctime=1388489095.433224596 qsynth-0.3.8/src/qsynthAboutForm.ui0000644000175000001440000000753012166505747017673 0ustar00rncbcusers00000000000000 rncbc aka Rui Nuno Capela qsynth - A fluidsynth Qt GUI Interface. Copyright (C) 2003-2013, 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 Qsynth true 4 4 Qt::Horizontal 8 8 &Close Alt+C Qt::TabFocus About Qt :/images/qtlogo.png Qt::Vertical 8 8 1 false true true :/images/qsynth.png Qt::AlignCenter false 2 AboutTextView AboutQtButton ClosePushButton qsynth-0.3.8/src/PaxHeaders.22416/qsynthOptionsForm.cpp0000644000175000001440000000012311415725226021117 xustar000000000000000027 mtime=1278716566.601886 27 atime=1388489095.074224 29 ctime=1388489095.07422459 qsynth-0.3.8/src/qsynthOptionsForm.cpp0000644000175000001440000002274211415725226020413 0ustar00rncbcusers00000000000000// qsynthOptionsForm.cpp // /**************************************************************************** Copyright (C) 2003-2010, 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 "qsynthOptions.h" #include #include #include #include //---------------------------------------------------------------------------- // 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 = NULL; // 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())); QObject::connect(m_ui.SystemTrayCheckBox, SIGNAL(stateChanged(int)), SLOT(optionsChanged())); QObject::connect(m_ui.StartMinimizedCheckBox, SIGNAL(stateChanged(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); m_ui.SystemTrayCheckBox->setChecked(m_pOptions->bSystemTray); m_ui.StartMinimizedCheckBox->setChecked(m_pOptions->bStartMinimized); 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) m_ui.StdoutCaptureCheckBox->setChecked(false); m_ui.StdoutCaptureCheckBox->setEnabled(false); #endif #ifndef CONFIG_SYSTEM_TRAY m_ui.SystemTrayCheckBox->setChecked(false); m_ui.SystemTrayCheckBox->setEnabled(false); m_ui.StartMinimizedCheckBox->setChecked(false); m_ui.StartMinimizedCheckBox->setEnabled(false); #endif // 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(); m_pOptions->bSystemTray = m_ui.SystemTrayCheckBox->isChecked(); m_pOptions->bStartMinimized = m_ui.StartMinimizedCheckBox->isChecked(); m_pOptions->iBaseFontSize = m_ui.BaseFontSizeComboBox->currentText().toInt(); // Knobs m_pOptions->iKnobStyle = m_ui.KnobStyleComboBox->currentIndex(); m_pOptions->iKnobMotion = m_ui.KnobMouseMotionComboBox->currentIndex(); // 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, QSYNTH_TITLE ": " + 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(); } // 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(); } m_ui.StartMinimizedCheckBox->setEnabled( m_ui.SystemTrayCheckBox->isChecked()); 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.3.8/src/PaxHeaders.22416/qsynthTabBar.h0000644000175000001440000000012412166505747017451 xustar000000000000000027 mtime=1373277159.612985 27 atime=1388489094.393224 30 ctime=1388489094.393224579 qsynth-0.3.8/src/qsynthTabBar.h0000644000175000001440000000356512166505747016746 0ustar00rncbcusers00000000000000// qsynthTabBar.h // /**************************************************************************** Copyright (C) 2003-2013, 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.3.8/src/PaxHeaders.22416/translations0000644000175000001440000000013212260524607017330 xustar000000000000000030 mtime=1388489095.910224603 30 atime=1388489095.459224596 30 ctime=1388489095.910224603 qsynth-0.3.8/src/translations/0000755000175000001440000000000012260524607016672 5ustar00rncbcusers00000000000000qsynth-0.3.8/src/translations/PaxHeaders.22416/qsynth_de.ts0000644000175000001440000000012412166505747021765 xustar000000000000000027 mtime=1373277159.612985 27 atime=1388489095.771224 30 ctime=1388489095.910224603 qsynth-0.3.8/src/translations/qsynth_de.ts0000644000175000001440000024000712166505747021254 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 -R requires an argument (reverb). Option -R benötigt ein Argument (reverb). Option -C requires an argument (chorus). Option -C benötigt ein Argument (chorus). Option -g requires an argument (gain). Option -g benötigt ein Argument (gain). Option -o requires an argument. Option -o benötigt ein Argument. Qt: %1 Qt: %1 Unknown option '%1'. Unbekannte Option: '%1'. qsynthAboutForm About Qsynth Über Qsynth &Close &Schließen Alt+C Alt+C About Qt Über Qt Version Version Build Build Debugging option enabled. Debugging-Option aktiviert. Server option disabled. Server-Option deaktiviert. System reset option disabled. System-Zurücksetzen deaktiviert. Bank offset option disabled. Bank-Position-Option deaktiviert. 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 Qsynth: Channels Qsynth: Kanäle Preset &Name: &Benennung: Settings preset name Benennung der Einstellung (default) (voreingestellt) Save settings as current preset name Einstellungen mit aktueller Benennung speichern &Save &Speichern Alt+S Alt+S Delete current settings preset Aktuelle Einstellung löschen &Delete &Löschen Alt+D Alt+L 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 Qsynth - A fluidsynth Qt GUI Interface Qsynth - Eine Qt basierte grafische Benutzeroberfläche für fluidsynth Add a new engine Neues Klangmodul hinzufügen Ins Einf Engine selector (right-click for menu) Klangmodul auswählen (Rechtsklick für Menü) Delete current engine Aktuelles Klangmodul löschen Del Entf Show/hide the channels view window Zeige/verberge Fenster mit Kanalübersicht &Channels &Kanäle... Alt+C Alt+K Complete engine restart Klangmodul vollständig neu starten Re&start &Neu starten Alt+S Alt+N Program reset (all channels) Programm zurücksetzen (alle Kanäle) &Reset &Zurücksetzen Alt+R Alt+Z Show instance settings and configuration dialog Konfigurationsdialog mit den aktuellen Einstellungen anzeigen Set&up... Konfi&guration... Alt+U Alt+G Master Ausgang &Gain &Verstärkung Master Gain Verstärkereinstellung für Ausgangsignal System reset System zurücksetzen &Panic &Panik Alt+P Alt+P Reverb Hall Reverb effect activation Halleffekt aktivieren Ac&tive Ak&tiv Alt+T Alt+T 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 Alt+I Alt+A 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 Alt+Q Alt+B Show general options dialog Dialog für die allgemeinen Optionen anzeigen &Options... &Optionen... Alt+O Alt+O Show/hide the messages log window Meldungsfenster anzeigen/verbergen &Messages &Meldungen... Alt+M Alt+M Show information about this application Informationen über diese Anwendung anzeigen A&bout... &Über... Alt+B Alt+B 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. Warning Warnung is about to terminate. soll beendet werden. Are you sure? Sind Sie sicher? 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 Qsynth: Messages Qsynth: Meldungen Messages output log Historie der aufgezeichneten Meldungen Logging stopped --- %1 --- Aufzeichung angehalten --- %1 --- Logging started --- %1 --- Aufzeichnung gestartet --- %1 --- qsynthOptionsForm Qsynth: Options Qsynth: Optionen Display Anzeige Messages Meldungen 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... Alt+F Alt+F Whether to keep a maximum number of lines in the messages window Maximale Anzahl der angezeigten Meldungen limitieren &Messages limit: &Max. Meldungen: Alt+M Alt+M 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. 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 Alt+C Alt+S 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 Alt+K Alt+F Whether to capture standard output (stdout/stderr) into messages window Standardausgabe (stdout/stderr) in das Meldungsfenster umleiten Capture standard &output Standardausgabe &umleiten Alt+O Alt+U Whether to monitor and show engine output peak level meters Ausgangspegelinstrument anzeigen Output &peak level meters Ausgangs&pegelinstrument anzeigen Alt+P Alt+P Whether to enable the system tray icon Anwendungssymbol im Benachrichtigungsfeld anzeigen &Enable system tray icon S&ymbol im Benachrichtigungsfeld anzeigen Alt+E Alt+S Whether to start minimized to system tray Anwendung minimiert als Symbol im Benachrichtigungsfeld starten Start minimi&zed to system tray Minimiert im &Benachrichtigungsfeld starten Alt+Z Alt+B 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 &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: Alt+L Alt+D Kno&b graphic style: Dreh&reglerstil: Mouse motion be&havior: Reaktion auf Mausbe&wegung: 6 6 7 7 Skulpture Skulpture qsynthPresetForm Qsynth: Channel Preset Qsynth: Kanalvoreinstellung 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 Qsynth: Setup Qsynth: Konfiguration 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 Alt+D Alt+R 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 Alt+V Alt+F 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 Alt+I Alt+D 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 Alt+J Alt+J 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 Alt+M Alt+M &Soundfonts &Soundfonts Soundfont stack Soundfont-Stapel SFID SFID Name Name Offset Position Open soundfont file for loading Soundfont-Datei zum Laden öffnen &Open... &Öffnen... Alt+O Alt+Ö Edit selected soundfont bank offset Positionswert der gewählten Soundfont-Bank bearbeiten &Edit Bea&rbeiten Alt+E Alt+R Remove selected soundfont from stack Gewählten Soundfont aus Stapel entfernen &Remove En&tfernen Alt+R Alt+T Move up selected soundfont towards the top of stack Gewählten Soundfont im Stapel nach oben bewegen &Up A&uf Alt+U Alt+U 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.3.8/src/translations/PaxHeaders.22416/qsynth_ru.ts0000644000175000001440000000012412166505747022023 xustar000000000000000027 mtime=1373277159.612985 27 atime=1388489095.576224 30 ctime=1388489095.657224599 qsynth-0.3.8/src/translations/qsynth_ru.ts0000644000175000001440000026212212166505747021314 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 -R requires an argument (reverb). Ключ -R требует аргумента (reverb). Option -C requires an argument (chorus). Ключ -C требует аргумента (chorus). Option -g requires an argument (gain). Ключ -g требует аргумента (gain). Option -o requires an argument. Ключ -o требует аргумента. (default) (по умолчанию) Usage: %1 [options] [soundfonts] [midifiles] Использование: %1 [ключи] [файлы SF2] [файлы MIDI] Option -o failed to set '%1'. Ключу -o не удалось установить '%1'. Qt: %1 Qt: %1 Unknown option '%1'. неизвестный ключ '%1'. qsynthAboutForm About Qt О программе &Close &Закрыть Alt+C Alt+з Version Версия Build Сборка Server option disabled. Параметр сервера отключен. 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. Функция смещения банка отключена. About Qsynth О Qsynth qsynthChannelsForm Edit Изменить Refresh Обновить Preset &Name: Имя &предустановки: (default) (по умолчанию) Settings preset name Имя предустановки настроек &Save Со&хранить Alt+S Alt+S Save settings as current preset name Сохранить настройки в текущую предустановку &Delete У&далить Alt+D Alt+D Delete current settings preset Удалить текущую предустановку In Вх Bank Банк Prog Программа Name Имя SFID SFID Soundfont SF2-файл Channels view Вид каналов Channels Каналы Unset Снять Warning Предупреждение Delete preset: Удалить пресет: Are you sure? Вы уверены? OK ОК Cancel Отменить Qsynth: Channels qsynth: Каналы 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 &Вкл Alt+T Alt+л &Quit В&ыйти Alt+Q Alt+Q Quit this application Выйти из программы Set&up... &Настроить... Alt+U Alt+н &Messages &Сообщения Alt+M Alt+с Show/hide the messages log window Показать/скрыть окно отображения сообщений программы A&bout... О &программе... Alt+B Alt+п Show information about this application Показать информацию об этом приложении Master Мастер Master Gain Общее усиление &Gain &Усиление &Reset С&бросить Alt+R Alt+б Program reset (all channels) Сброс программ (все каналы) Alt+P Alt+P Complete engine restart Полная перезагрузка синтезатора Warning Предупреждение Are you sure? Вы уверены? OK ОК Cancel Отменить Error Ошибка Please note that this operation may cause temporary MIDI and Audio disruption. Обратите внимание на то, что выполнение этой операции может привести к временным сбоям в воспроизведении MIDI и аудио. Do you want to restart the engine now? Вы хотите перезагрузить движок синтезатора? Yes Да No Нет 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 Пере&запустить Alt+S Alt+з &Panic &Паника System reset Перезагрузка системы Chorus Speed (Hz) Скорость хора (Гц) Spee&d &Скорость Chorus Speed Hz Скорость хора (Гц) Number of Chorus Stages Число стадий хора &N &N Chorus Depth (ms) Глубина хора (мс) Act&ive Вк&л Alt+I Alt+л Chorus effect activation Включение эффект хора &Channels &Каналы Alt+C Alt+к Show/hide the channels view window Переключить отображение окна каналов Reverb Damp Factor Фактор затухания реверберации Reverb Width Ширина стереобазы &Width &Ширина Reverb Level Громкость реверберации Reverb effect activation Включение эффекта хора Show instance settings and configuration dialog Показать параметры запущенной копии движка синтезатора и диалог настройки &Options... &Параметры... Alt+O Alt+п Show general options dialog Показать главный диалог настройки параметров is about to terminate. собирается завершить работу. &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 entry. Программа продолджит работу в области уведомления. Для завершения работы с ней выберите пункт «Выйти» в контекстном меню элемента области уведомления. 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. Программа продолджит работу в области уведомления. Для завершения работы с ней выберите пункт «Выход» в контекстном меню элемента области уведомления. 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? Вы хотите перезапустить все движки? Qsynth - A fluidsynth Qt GUI Interface Qsynth — интерфейс к FluidSynth Add a new engine Добавить новый движок Ins Ins Delete current engine Удалить активный движок Del Del Output peak level Индикатор уровня громкости qsynthMessagesForm Messages output log Журнал сообщений Qsynth Logging stopped --- %1 --- Журналирование остановлено --- %1 --- Logging started --- %1 --- Журналирование начато --- %1 --- Qsynth: Messages Qsynth: Сообщения qsynthOptionsForm OK ОК Cancel Отменить Display Интерфейс Sample messages text font display Шрифт для отображения сообщения &Font... &Шрифт... Alt+F ALt+F Select font for the messages text display Выберите шрифт для отображения сообщений &Messages limit: &Строк сообщений: Alt+M Alt+M 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 &Запрашивать подтверждение на выход из программы Alt+C Alt+C Whether to ask for confirmation on application exit Запрашивать ли подтверждение на выход из приложения &Keep child windows always on top &Держать подчинённые окна всегда наверху Alt+K Alt+K Whether to keep all child windows on top of the main window Держать ли подчинённые окна над основным окном программы Capture standard &output Захватывать стандартный интерфейс &вывода сообщений Alt+O Alt+O Whether to capture standard output (stdout/stderr) into messages window Захватывать ли стандартный интерфейс вывода сообщений (stdout/stderr) для окна сообщений Warning Предупреждение Do you want to apply the changes? Вы хотите учесть изменения? Apply Учесть Discard Отказаться Some options have been changed. Некоторые параметры были изменены. Messages Log Журнал сообщений Log files Файлы журналов Qsynth: Options Qsynth: Общие параметры Messages Сообщения Logging Журналирование Messages log file Файл журнала сообщений Browse for the messages log file location Укажите каталог для хранения файла с журналом сообщений ... ... Whether to activate a messages logging to file. Записывать ли журнал сообщений в файл Messages &log file: &Файл журнала сообщений: Alt+L Alt+ф 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 Линейное Whether to monitor and show engine output peak level meters Показывать ли индикатор уровня громкости движка Output &peak level meters Включить &индикатор уровня громкости Alt+P Alt+и Whether to enable the system tray icon Включать ли значок в области уведомления &Enable system tray icon &Использовать область уведомления Alt+E Alt+и Whether to start minimized to system tray Убирать ли окно в область уведомления Start minimi&zed to system tray &При старте скрывать окно в область уведомления Alt+Z Alt+п &Base font size: &Кегль шрифта в GUI: Base application font size (pt.) Кегль шрифта в интерфейсе приложения (пункты) (default) (по умолчанию) 6 6 7 7 8 8 9 9 10 10 11 11 12 12 qsynthPresetForm OK ОК Cancel Отменить Preset Предустановка Prog Прогр. Name Имя SFID SFID Soundfont Soundfont Program selector Выбор программы Bank Банк Bank selector Выбор банка Preview Прослушать Whether to preview the current selection Просматривать ли текущее выделение Channel %1 Канал %1 Qsynth: Channel Preset Qsynth: Предустановка канала qsynthSetupForm Enable MIDI &Input Разрешить чтение &событий MIDI Alt+I Alt+с Enable MIDI input Разрешить чтение событий MIDI &Dump MIDI router events &Глушить события маршрутизатора MIDI Alt+D Alt+г Whether to show MIDI router events on messages window Показывать ли события маршрутизатора MIDI в окне сообщений &Verbose MIDI event messages &Подробный вывод сообщений MIDI Alt+V Alt+п 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 Alt+J ALt+J 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 &Удалить Alt+R Alt+R &Up &Выше Alt+U Alt+U &Down &Ниже Type Тип Realtime Реал. время Current Сейчас Default Стандарт. Min Мин Max Макс Options Параметры OK ОК Cancel Отменить Warning Предупреждение Some settings have been changed. Некоторые настройки изменились. Do you want to apply the changes? Вы хотите учесть изменения? Apply Учесть Discard Отказаться 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 Отображать имя движка &ALSA Sequencer Client ID: ID клиента секвенсера &ALSA: pid pid qsynth qsynth ALSA Sequencer client name identification Идентификация клиента секвенсера ALSA &Multiple JACK Outputs &Несколько выходов JACK Alt+M Alt+M 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... &Открыть... Alt+O Alt+O 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 Изменить Qsynth: Setup Qsynth: Параметры &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 &Изменить Alt+E Alt+и S&ettings &Сводка qsynth-0.3.8/src/translations/PaxHeaders.22416/qsynth_cs.ts0000644000175000001440000000012412166505747022002 xustar000000000000000027 mtime=1373277159.612985 27 atime=1388489095.523224 30 ctime=1388489095.576224598 qsynth-0.3.8/src/translations/qsynth_cs.ts0000644000175000001440000024450412166505747021277 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 -R requires an argument (reverb). Volba -R potřebuje argument (reverb). Option -C requires an argument (chorus). Volba -C potřebuje argument (chorus). Option -g requires an argument (gain). Volba -g potřebuje argument (gain). Option -o requires an argument. Volba -o potřebuje argument. Option -o failed to set '%1'. Fehler beim Setzen der Option -o '%1'. Qt: %1 Qt: %1 Unknown option '%1'. Neznámá volba: '%1'. qsynthAboutForm About Qsynth O Qsynthu &Close &Zavřít Alt+C Alt+C About Qt O Qt Version Verze Build Sestavení Debugging option enabled. Povolena možnost ladění. 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. 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 Qsynth: Channels Qsynth: Kanály 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 Alt+S Alt+S Delete current settings preset Smazat nynější přednastavení nastavení &Delete &Smazat Alt+D Alt+L 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 Qsynth - A fluidsynth Qt GUI Interface Qsynth - Na Qt založené uživatelské rozhraní pro fluidsynth Add a new engine Přidat nový zvukový modul Ins Vložit Engine selector (right-click for menu) Vybrat zvukový modul (pravým klepnutím v nabídce) Delete current engine Smazat nynější zvukový modul Del Odstranit Show/hide the channels view window Ukázat/Skrýt okno s pohledem na kanály &Channels &Kanály Alt+C Alt+C Complete engine restart Zvukový modul spustit úplně znovu Re&start &Spustit znovu Alt+S ALT+S Program reset (all channels) Nastavit znovu program (všechny kanály) &Reset &Nastavit znovu Alt+R Alt+R Show instance settings and configuration dialog Ukázat dialog nastavení s nynějším nastavením Set&up... &Nastavení... Alt+U Alt+U Master Výstup &Gain &Zesílení Master Gain Nastavení zesílení pro výstupní signál System reset Znovunastavit systém &Panic &Panika Alt+P Alt+P Reverb Dozvuk Reverb effect activation Spustit efekt dozvuku Ac&tive &Spuštěný Alt+T Alt+T 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ý Alt+I Alt+I 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 Alt+Q Alt+B Show general options dialog Ukázat dialog pro všeobecné volby &Options... &Volby... Alt+O Alt+O Show/hide the messages log window Ukázat/Skrýt okno se zápisy hlášení &Messages &Hlášení Alt+M Alt+M Show information about this application Ukázat informace o tomto programu A&bout... &O... Alt+B Alt+B 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 entry. Program běží dále viditelný jako symbol v oznamovacím poli. Pro ukončení programu zvolte, prosím, "Ukončit" v nabídce k symbolu v oznamovacím poli. 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. Warning Varování is about to terminate. má být ukončen. Are you sure? Jste si jistý? 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 Qsynth: Messages Qsynth: 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 Qsynth: Options Qsynth: Volby Display Zobrazit Messages Hlášení 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... Alt+F Alt+F 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í: Alt+M Alt+M 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 Alt+C Alt+S 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 Alt+K Alt+F 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 Alt+O Alt+U 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 Alt+P Alt+P 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 Alt+E Alt+S 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 Alt+Z Alt+B OK OK Cancel Zrušit 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ý &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í) 8 8 9 9 10 10 11 11 12 12 Messages &log file: Soubor se &zápisem hlášení: Alt+L Alt+D 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 qsynthPresetForm Qsynth: Channel Preset Qsynth: Přednastavení kanálů OK OK Cancel Zrušit 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 Qsynth: Setup Qsynth: Nachystání 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 &ALSA Sequencer Client ID: &ALSA ID klienta sequenceru: 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 Alt+D Alt+R 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 Alt+V Alt+F 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 Alt+I Alt+D gm gs mma xs MIDI &Bank Select mode: MIDI Bank Select mode &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 ID 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 Alt+J Alt+J 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 Alt+M Alt+M &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... Alt+O Alt+Ö Edit selected soundfont bank offset Upravit hodnotu polohy vybrané banky se zvukovým písmem &Edit &Úpravy Alt+E Alt+R Remove selected soundfont from stack Odstranit vybrané zvukové písmo ze zásobníku &Remove &Odstranit Alt+R Alt+T Move up selected soundfont towards the top of stack Vybrané zvukové písmo přesunout v zásobníku nahoru &Up &Nahoru Alt+U Alt+U 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 OK OK Cancel Zrušit 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.3.8/src/translations/PaxHeaders.22416/qsynth_sr.ts0000644000175000001440000000012412177500651022010 xustar000000000000000027 mtime=1375633833.428202 27 atime=1388489095.459224 30 ctime=1388489095.523224597 qsynth-0.3.8/src/translations/qsynth_sr.ts0000644000175000001440000025525712177500651021314 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 -R requires an argument (reverb). Опција „-R“ захтева аргумент (јека). Option -C requires an argument (chorus). Опција „-C“ захтева аргумент (хорус). Option -g requires an argument (gain). Опција „-g“ захтева аргумент (појачање). Option -o requires an argument. Опција „-o“ захтева аргумент. Qt: %1 КјуТ: %1 Unknown option '%1'. Непозната опција „%1“. (default) (подразумевано) qsynthAboutForm About Qsynth О програму &Close &Затвори Alt+C Alt+C About Qt О КјуТ Version Издање Build Изграђено Debugging option enabled. Омогућено праћење грешака. Server option disabled. Онемогућена серверска опција. System reset option disabled. Онемогућена опција поновног покретања система. Bank offset option disabled. Онемогућена опција „Bank offset“ 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 Qsynth: Channels Кју-синт: Канали Preset &Name: &Назив предподешавања: Settings preset name Поставке назива предподешавања (default) (подразумевано) Save settings as current preset name Сачувај поставке као текући назив предподешавања &Save &Сачувај Alt+S Alt+S Delete current settings preset Уклони текуће поставке предподешавања &Delete &Уклони Alt+D Alt+D Channels view Преглед канала In Ул. Chan Канал Bank Банка Prog Програм Name Назив SFID ЗФ-ИД Soundfont Звучни фонт Channels Канали Edit Уреди Unset Ослободи Refresh Освежи Warning Упозорење Delete preset: Уклањање предподешавања: Are you sure? Да ли сте сигурни? qsynthMainForm Qsynth - A fluidsynth Qt GUI Interface Кју-синт — Програм за управљање програмом Флуид-синт, у графичком окружењу Master Мастер &Gain По&јачање Master Gain Главни појачавач Complete engine restart Наново покрени све Re&start Ре&старт Alt+S Alt+S Reverb Јека Reverb effect activation Покретање ефекта јеке Ac&tive О&могући Alt+T Alt+M 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 Омогућ&и Alt+I Alt+I 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 И&злаз Alt+Q Alt+Z Show general options dialog Прикажи прозорче са општим опцијама &Options... &Опције Alt+O Alt+O Show/hide the messages log window Приказује/Скрива прозорче за преглед дневника са порукама &Messages Порук&е Alt+M Alt+E Show information about this application Прикажи податке о овом програму A&bout... О про&граму Alt+B Alt+G System reset Ресет система &Panic &Узбуна Alt+P Alt+U Program reset (all channels) Ресет програма (на свим каналима) &Reset &Ресет Alt+R Alt+R Show instance settings and configuration dialog Приказује прозорче поставки и подешавања Set&up... &Поставке Alt+U Alt+P Show/hide the channels view window Приказује/Скрива прозорче за преглед канала &Channels &Канали Alt+C Alt+K Add a new engine Додај нови покретач Ins Ins Engine selector (right-click for menu) Избор покретача (десни клик за мени) Delete current engine Уклони текући покретач Del Del 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. Програм ће остати покренут у обавештајној зони. За затварање програма, одаберите „Излаз“ из контекстног менија на икони у обавештајној зони. Warning Упозорење is about to terminate. ће завршити са радом. Are you sure? Да ли сте сигурни? 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 Qsynth: Messages Кју-синт: Поруке Messages output log Дневник порука на излазу Logging stopped --- %1 --- Праћење порука заустављено --- %1 --- Logging started --- %1 --- Праћење порука започето --- %1 --- qsynthOptionsForm Qsynth: Options Кју-синт: Опције Display Приказ Messages Поруке Sample messages text font display Пример приказа фонта текстуалних порука Select font for the messages text display Одабир фонта за приказ текстуалних порука &Font... &Фонт... Alt+F Alt+F Whether to keep a maximum number of lines in the messages window Омогућава ограничавање броја линија у прозорчету са порукама које треба задржати &Messages limit: Ограничавање у порук&ма: Alt+M Alt+M 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: Датотека &дневника порука: Alt+L Alt+D 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 линијски Other Остало Whether to ask for confirmation on application exit Да ли да затражим потврду по напуштању програма &Confirm application close Потврда &за напуштање програма Alt+C Alt+Z Whether to keep all child windows on top of the main window Да ли да издигнем потчињене прозоре у први план &Keep child windows always on top Потчињени прозори су у првом п&лану Alt+K Alt+L Whether to capture standard output (stdout/stderr) into messages window Да ли да пратим стандардни излаз („stdout/stderr“) кроз прозорче са порукама Capture standard &output Прати стандардни &излаз Alt+O Alt+I Whether to monitor and show engine output peak level meters Да ли да пратим и приказујем ниво излазних вршних вредности сигнала Output &peak level meters &Прати ниво вршних вредности покретача Alt+P Alt+P Whether to enable the system tray icon Да ли да омогућим употребу иконе у обавештајној зони &Enable system tray icon Омогући икону у обав&ештајној зони Alt+E Alt+E Whether to start minimized to system tray Да ли да сакријем програм при покретању у обавештајну зону Start minimi&zed to system tray По покретању смести у &обавештајну зону Alt+Z Alt+O &Base font size: Величина &слова: Base application font size (pt.) Основна величина слова фонта у програму (у тачкама-пт.) (default) (подразумевано) 6 6 7 7 8 8 9 9 10 10 11 11 12 12 Warning Упозорење Some options have been changed. Измењена су нека подешавања. Do you want to apply the changes? Желите ли да примените ове измене? Messages Log Дневник порука Log files Датотеке дневника qsynthPresetForm Qsynth: Channel Preset Кју-синт: Предподешавања канала Preset Предподешавање Bank selector Изборник банке Bank Банка Program selector Изборник програма Prog Програм Name Назив SFID ЗФ-ИД Soundfont Звучни фонт Whether to preview the current selection Омогућава преглед текућег избора Preview Преглед Channel %1 Канал %1 qsynthSetupForm Qsynth: Setup Кју-синт: Поставке Engine &Name: &Назив покретача: Engine display name Приказан назив покретача &MIDI &Миди &MIDI Driver: &Миди посредник: Whether to show MIDI router events on messages window Омогућава преглед догађаја миди-рутирања у прозорчету са порукама &Dump MIDI router events Избаци &догађаје миди-рутера Alt+D Alt+D MIDI device name Назив миди-уређаја Enable MIDI input Омогући миди-улаз Enable MIDI &Input Омогућ&и миди-улаз Alt+I Alt+I Input MIDI driver Миди посредник на улазу MIDI &Device: Миди-&уређај: Print out verbose messages about MIDI events Штампај опширније поруке о миди-догађајима &Verbose MIDI event messages Опширни&је поруке о миди-догађају Alt+V Alt+J 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 Сам повезу&ј излазе Џек посредника Alt+J Alt+J Create multiple JACK output ports for channels, groups and effects Створи вишеструке излазе за канале групе и ефекте у Џек посреднику &Multiple JACK Outputs Виш&еструки излази у Џек посреднику Alt+M Alt+E &Soundfonts Звучни &фонтови Soundfont stack Библиотека звучних фонтова SFID ЗФ-ИД Name Назив Offset Офсет Open soundfont file for loading Отвори датотеку звучог фонта за учитавање &Open... &Отвори... Alt+O Alt+O Edit selected soundfont bank offset Уреди офсет за изабрану банку звучног фонта &Edit Ур&еди Alt+E Remove selected soundfont from stack Уклони изабрани звучни фонт из бибиотеке &Remove &Уклони Alt+R Alt+U Move up selected soundfont towards the top of stack Премести звучни фонт ка врху &Up &Горе Alt+U Alt+G 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.3.8/src/translations/PaxHeaders.22416/qsynth_es.ts0000644000175000001440000000012212166505747022002 xustar000000000000000027 mtime=1373277159.612985 27 atime=1388489095.657224 28 ctime=1388489095.6912246 qsynth-0.3.8/src/translations/qsynth_es.ts0000644000175000001440000025134312166505747021300 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 -R requires an argument (reverb). La opción -R requiere un argumento (reverberación). Option -C requires an argument (chorus). La opción -C requiere un argumento (coro). 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. Option -o failed to set '%1'. La opción -o ha fallado al establecer '%1'. Qt: %1 Qt: %1 Unknown option '%1'. Opción desconocida '%1'. (default) (por omisión) qsynthAboutForm Version Versión Build Compilación Debugging option enabled. Opción de depuración habilitada. 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. 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 Qsynth Acerca de Qsynth &Close &Cerrar Alt+C Alt+C 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? OK Aceptar Cancel Cancelar Qsynth: Channels Qsynth: Canales 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 Alt+S Alt+G Delete current settings preset Borrar el conjunto de ajustes actual &Delete &Borrar Alt+D Alt+B Channels view Vista de canales In Entrada Chan Canal Bank Banco Prog Prog Name Nombre SFID SFID Soundfont Soundfont qsynthMainForm Information Información The program will keep running in the system tray. To terminate the program, please choose "Quit" in the context menu of the system tray entry. El programa va a continuar en ejecución en la bandeja del sistema Para terminar el programa, por favor elija "Salir" en el menú contextual o en el menú del icono de la bandeja del sistema. Warning Aviso is about to terminate. está a punto de terminar. Are you sure? ¿Está seguro? OK Aceptar Cancel Cancelar 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. 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 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? Yes Si No No 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? Qsynth - A fluidsynth Qt GUI Interface Qsynth - Un interfaz gráfico basado en Qt para Fluidsynth Add a new engine Añadir un nuevo motor Ins Insert 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 Del Supr Show/hide the channels view window Mostrar/ocultar la ventana de vista de canales Alt+C Alt+C Complete engine restart Reinicio completo del motor Alt+S Alt+S Program reset (all channels) Reajustar el programa (todos los canales) Alt+R Alr+R Show instance settings and configuration dialog Mostrar ajustes de la instancia y diálogo de configuración Alt+U Alt+U Master Salida principal &Gain &Ganancia Master Gain Ganancia de la salida principal System reset Reajuste del sistema Alt+P Alt+P Reverb Reverberación Reverb effect activation Activación del efecto de reverberación Ac&tive Ac&tivar Alt+T Alt+T 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 Alt+I Alt+I 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 Alt+Q Alt+Q Show general options dialog Mostrar diálogo de opciones generales Alt+O Alt+O Show/hide the messages log window Mostrar/ocultar la ventana de registro de mensajes Alt+M Alt+M Show information about this application Mostrar información sobre esta aplicación A&bout... A&cerca de... Alt+B Alt+B qsynthMessagesForm Logging stopped --- %1 --- Registro parado --- %1 --- Logging started --- %1 --- Registro iniciado --- %1 --- Qsynth: Messages Qsynth: mensajes Messages output log Registro de salida de mensajes qsynthOptionsForm Warning Aviso Some options have been changed. Algunas opciones han cambiado. Do you want to apply the changes? ¿Quiere aplicar los cambios? Apply Aplicar Discard Descartar Cancel Cancelar Messages Log Registro de mensajes Log files Archivos de registro Qsynth: Options Qsynth: Opciones Display Visualización Messages Mensajes 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... Alt+F Alt+T 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: Alt+M Alt+m 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. &Messages log file: Archivo de registro de &mensajes: 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 Alt+C Alt+C 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 Alt+K Alt+M 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 Alt+O Alt+e 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 Alt+P Alt+p 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 Alt+E Alt+H 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 Alt+Z Alt+z OK Aceptar 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 Knob graphic style: Estilo gráfico de botones: Mouse motion behavior: Comportamiento del ratón: Mouse motion behavior for knobs Comportamiento del movimiento del ratón para los botones rotatorios &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: Alt+L Alt+L 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 qsynthPresetForm Channel %1 Canal %1 Qsynth: Channel Preset Qsynth: Preajuste de canal OK Aceptar Cancel Cancelar 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? Apply Aplicar Discard Descartar Cancel Cancelar 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? OK Aceptar 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. Qsynth: Setup Qsynth: Configuración 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 &ALSA Sequencer Client ID: ID de cliente del secuenciador &ALSA: 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 Alt+D Alt+V Print out verbose messages about MIDI events Imprimir mensajes detallados sobre eventos MIDI &Verbose MIDI event messages Mensajes &detallados de eventos MIDI Alt+V Alt+d 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 Alt+I Alt+E MIDI bank select mode Modo de selección de banco MIDI gm gm gs gs mma mma xs xs MIDI &Bank Select Selección de &banco MIDI MIDI &Bank Select mode: MIDI Bank Select mode &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 Alt+J Alt+J 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 Alt+M Alt+M &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... Alt+O Alt+A Edit selected soundfont bank offset Editar desplazamiento del banco de soundfont &Edit &Edición Alt+E Alt+E Remove selected soundfont from stack Borrar el soundfont seleccionado de la pila &Remove &Borrar Alt+R Alt+B Move up selected soundfont towards the top of stack Mover hacia arriba el soundfont seleccionado hacia la cima de la pila &Up A&rriba Alt+U Alt+r 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.3.8/src/translations/PaxHeaders.22416/qsynth_fr.ts0000644000175000001440000000012412247173416021776 xustar000000000000000027 mtime=1386018574.622011 27 atime=1388489095.691224 30 ctime=1388489095.771224601 qsynth-0.3.8/src/translations/qsynth_fr.ts0000644000175000001440000024222412247173416021270 0ustar00rncbcusers00000000000000 QObject Usage: %1 [options] [soundfonts] [midifiles] Utilisation: %1 [options] [soundfonts] [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 -R requires an argument (reverb). L'option -R requiert un argument (réverbération). Option -C requires an argument (chorus). L'option -C requiert un argument (chorus). Option -g requires an argument (gain). L'option -g requiert un argument (volume). Option -o requires an argument. L'option -o requiert un argument. Qt: %1 Qt: %1 Unknown option '%1'. Option '%1' inconnue. (default) (défaut) qsynthAboutForm About Qsynth À propos de Qsynth &Close &Fermer Alt+C Alt+F About Qt À propos de Qt Version Version Build Compilé Debugging option enabled. Option de débuggage activé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. 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 Qsynth: Channels Qsynth: Canaux Preset &Name: &Nom de 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 Alt+S Alt+S Delete current settings preset Supprimer les paramètres actuels prédéfinis &Delete &Supprimer Alt+D Alt+S Channels view Vue des canaux In Entrée Chan Canal Bank Banque Prog Prog Name Nom SFID SFID Soundfont Soundfont 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 Qsynth - A fluidsynth Qt GUI Interface Qsynth - Une interface graphique Qt pour fluidsynth 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 Alt+S Alt+E Reverb Réverbération Reverb effect activation Activation de l'effet de réverbération Ac&tive Ac&tiver Alt+T Alt+T 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 Alt+I Alt+I 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 Alt+Q Alt+Q Show general options dialog Afficher la fenêtre de dialogue des options générales &Options... &Options... Alt+O Alt+O Show/hide the messages log window Afficher/cacher la fenêtre de log des messages &Messages &Messages Alt+M Alt+M Show information about this application Afficher les informations à propos de cette application A&bout... À &propos... Alt+B Alt+P System reset Remise à zéro du système &Panic &Panique Alt+P Alt+P Program reset (all channels) Remise à zéro du programme (tous les canaux) &Reset &Remise à zéro Alt+R Alt+R Show instance settings and configuration dialog Afficher la fenêtre de réglage et de configuration de l'instance Set&up... Config&uration... Alt+U Alt+U Show/hide the channels view window Afficher/cacher la fenêtre de vue des canaux &Channels &Canaux Alt+C Alt+C Add a new engine Ajouter un nouveau moteur Ins Entrées Engine selector (right-click for menu) Sélectionneur de moteur (clic droit pour le menu) Delete current engine Supprimer le moteur courant Del Suppr 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. Warning Attention is about to terminate. est sur le point de terminer. Are you sure? Etes-vous sur? Loading soundfont: "%1" Charge la soundfont: "%1" Failed to load the soundfont: "%1". Échec du chargement de la soundfont: "%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 soundfont: "%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 soundfont: "%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 soundfont: "%1" (SFID=%2) Failed to unload the soundfont: "%1". Echec de chargement de la soundfont: "%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 Qsynth: Messages Qsynth: Messages Messages output log Sortie des messages de log Logging stopped --- %1 --- Enregistrement arrêté --- %1 --- Logging started --- %1 --- Enregistrement démarré --- %1 --- qsynthOptionsForm Qsynth: Options Qsynth: Options Display Affichage Messages Messages 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... Alt+F Alt+P Whether to keep a maximum number of lines in the messages window Si on doit conserver un nombre minimum de lignes dans la fenêtre de messages &Messages limit: Limite de &messages: Alt+M Alt+M 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: Alt+L Alt+I 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 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 Alt+C Alt+C 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 &Keep child windows always on top Conserver les sous fenêtres &toujours au dessus Alt+K Alt+T 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 Alt+O Alt+O Whether to monitor and show engine output peak level meters Doit on suivre et afficher le niveau de la sortie crête du moteur audio Output &peak level meters Afficher le niveau c&rête de la sortie Alt+P Alt+R 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 Alt+E Alt+E 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 Alt+Z Alt+S &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 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 qsynthPresetForm Qsynth: Channel Preset Qsynth: Préréglage du 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 Soundfont 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 Qsynth: Setup Qsynth: Réglage 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ènement du routeur MI&DI Alt+D Alt+D MIDI device name Nom du pilote MIDI Enable MIDI input Activer l'entrée MIDI Enable MIDI &Input Activer l'entrée M&IDI Alt+I Alt+I 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 Alt+V Alt+V 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 buffer audio) 64 64 128 128 256 256 512 512 1024 1024 2048 2048 4096 4096 8192 8192 Buffer Cou&nt: &Nombre de buffer: 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 buffers audio) 2 2 4 4 8 8 16 16 32 32 Buffer &Size: Dimen&sion du buffer: &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 Alt+J Alt+J 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 Alt+M Alt+M &Soundfonts &Soundfonts Soundfont stack Pile soundfont SFID SFID Name Nom Offset Décalage Open soundfont file for loading Ouvre un fichier soundfont pour lecture &Open... &Ouvrir... Alt+O Alt+O Edit selected soundfont bank offset Édite le décalage de banque de la soundfont sélectionnée &Edit Édit&er Alt+E Alt+E Remove selected soundfont from stack Supprime la soundfont sélectionnée de la pile &Remove Supp&rimer Alt+R Alt+R Move up selected soundfont towards the top of stack Déplace la soundfont sélectionnée vers le haut de la pile &Up Ha&ut Alt+U Alt+U Move down selected soundfont towards the bottom of stack Déplace la soundfont 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 soundfont Soundfont file already on list Le fichier soundfont est déjà dans la liste Add anyway? Ajouter quand même? Error Erreur Failed to add soundfont file Impossible d'ajouter le fichier soundfont Please, check for a valid soundfont file. Veuillez vérifier la validité du fichier soundfont. qsynth-0.3.8/src/PaxHeaders.22416/images0000644000175000001440000000013212260524607016054 xustar000000000000000030 mtime=1388489095.003224589 30 atime=1388489094.522224581 30 ctime=1388489095.003224589 qsynth-0.3.8/src/images/0000755000175000001440000000000012260524607015416 5ustar00rncbcusers00000000000000qsynth-0.3.8/src/images/PaxHeaders.22416/about1.png0000644000175000001440000000012411353144152020026 xustar000000000000000027 mtime=1269614698.050918 27 atime=1388489095.002224 30 ctime=1388489095.003224589 qsynth-0.3.8/src/images/about1.png0000644000175000001440000000140411353144152017311 0ustar00rncbcusers00000000000000PNG  IHDRaIDATxڍKHTQƿsx3EZ9s)hBeMPj6AM AYQqtG^iXWsQg[YfEP}.# 'E]ӵѰTBU@DZT n/ wzёo0x))ABt2gNezIOvNv=,Z]|ԼxU|p$XlK/+Nwcf1\r/TjWKrcܲ>v.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.3.8/src/images/PaxHeaders.22416/edit1.png0000644000175000001440000000012411353144152017641 xustar000000000000000027 mtime=1269614698.050918 27 atime=1388489094.658224 30 ctime=1388489094.658224583 qsynth-0.3.8/src/images/edit1.png0000644000175000001440000000033511353144152017126 0ustar00rncbcusers00000000000000PNG  IHDRasRGBIDAT8 ȥP&E1yKgV⁴sp'(7V@)%Ia8ڶÿv{fFn%03UT|.@SJvHzPs\_/@:xex+< \y*IENDB`qsynth-0.3.8/src/images/PaxHeaders.22416/accept1.png0000644000175000001440000000012411353144152020153 xustar000000000000000027 mtime=1269614698.050918 27 atime=1388489094.825224 30 ctime=1388489094.825224586 qsynth-0.3.8/src/images/accept1.png0000644000175000001440000000027311353144152017441 0ustar00rncbcusers00000000000000PNG  IHDRasRGBuIDAT8 D#u]Ùt&U04J?{ ;/~BLD0@hd l dp4Mf=gnjHw?x.:cIENDB`qsynth-0.3.8/src/images/PaxHeaders.22416/add1.png0000644000175000001440000000012411353144152017444 xustar000000000000000027 mtime=1269614698.050918 27 atime=1388489094.658224 30 ctime=1388489094.659224583 qsynth-0.3.8/src/images/add1.png0000644000175000001440000000027511353144152016734 0ustar00rncbcusers00000000000000PNG  IHDRasRGBwIDAT8c`hS 8,C:vLx?I7D0@3`& p!¤b/`86'q¤,,@@#FG# THaB+ 0UIENDB`qsynth-0.3.8/src/images/PaxHeaders.22416/save1.png0000644000175000001440000000012411353144152017652 xustar000000000000000027 mtime=1269614698.050918 27 atime=1388489094.825224 30 ctime=1388489094.825224586 qsynth-0.3.8/src/images/save1.png0000644000175000001440000000027711353144152017144 0ustar00rncbcusers00000000000000PNG  IHDRasRGByIDAT8œ 0 F_; 5 - JOJQQ9!y-`fsK>b4JtH"MjU8sxT@)7[tzdo!TzˇΐsӰ0DIENDB`qsynth-0.3.8/src/images/PaxHeaders.22416/remove1.png0000644000175000001440000000012411353144152020211 xustar000000000000000027 mtime=1269614698.050918 27 atime=1388489094.825224 30 ctime=1388489094.825224586 qsynth-0.3.8/src/images/remove1.png0000644000175000001440000000030511353144152017473 0ustar00rncbcusers00000000000000PNG  IHDRasRGBIDAT8˵S \jhA,`$P! B-LH0azOLD 9\JVx] N ,@dS8]x ijػ[i xY>Rh #IENDB`qsynth-0.3.8/src/images/PaxHeaders.22416/panic1.png0000644000175000001440000000012411353144152020006 xustar000000000000000027 mtime=1269614698.050918 27 atime=1388489094.721224 30 ctime=1388489094.721224584 qsynth-0.3.8/src/images/panic1.png0000644000175000001440000000125411353144152017274 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˹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.3.8/src/images/PaxHeaders.22416/quit1.png0000644000175000001440000000012411353144152017676 xustar000000000000000027 mtime=1269614698.050918 27 atime=1388489094.522224 30 ctime=1388489094.658224583 qsynth-0.3.8/src/images/quit1.png0000644000175000001440000000033011353144152017156 0ustar00rncbcusers00000000000000PNG  IHDRasRGBIDAT8RA +|?3gM 3U77u-[@<0X}&+^G-ةTEȟAG[v ,29kw';saE浶Dn7b rs>'`65IENDB`qsynth-0.3.8/src/images/PaxHeaders.22416/open1.png0000644000175000001440000000012411353144152017655 xustar000000000000000027 mtime=1269614698.050918 27 atime=1388489094.922224 30 ctime=1388489094.923224587 qsynth-0.3.8/src/images/open1.png0000644000175000001440000000035411353144152017143 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.3.8/src/images/PaxHeaders.22416/sfont1.png0000644000175000001440000000012411353144152020045 xustar000000000000000027 mtime=1269614698.050918 27 atime=1388489094.721224 30 ctime=1388489094.721224584 qsynth-0.3.8/src/images/sfont1.png0000644000175000001440000000051711353144152017334 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.3.8/src/images/PaxHeaders.22416/channels1.png0000644000175000001440000000012411353144152020507 xustar000000000000000027 mtime=1269614698.050918 27 atime=1388489094.721224 30 ctime=1388489094.721224584 qsynth-0.3.8/src/images/channels1.png0000644000175000001440000000110611353144152017771 0ustar00rncbcusers00000000000000PNG  IHDRa IDATxڥkQI"*UT)vSDRDP DA-"ŕԝ.A)Rb#JҐQ]VC %1Լdf ^XaIDv"Z/ ‹i4[/KB9h~d qDQ4I*G`} 0ZA}XBrRΪ%zwTOx',$^9g cJu Ä7f;RAdz _{m }a:C }au52# 6@YQb TzErb :eI@$'鶅 )Q0`seF1nDeFӀYO{5DI>Hw?'>WR\8 :iDv@k5ic f*|'޼oJU׹Xi>pb"n\W*^\X6Q޸{?J:@M`iL`wQ@9S;m+xEΏIENDB`qsynth-0.3.8/src/images/PaxHeaders.22416/reset1.png0000644000175000001440000000012411353144152020036 xustar000000000000000027 mtime=1269614698.050918 27 atime=1388489094.522224 30 ctime=1388489094.522224581 qsynth-0.3.8/src/images/reset1.png0000644000175000001440000000140711353144152017324 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.3.8/src/images/PaxHeaders.22416/setup1.png0000644000175000001440000000012411353144152020054 xustar000000000000000027 mtime=1269614698.050918 27 atime=1388489094.825224 30 ctime=1388489094.825224586 qsynth-0.3.8/src/images/setup1.png0000644000175000001440000000133611353144152017343 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  8^d1?<  p Gradient Glow                 J -+(#=<:62,%LKIE@:2*Z[ZXTNG?6-gijigb\TLB8uxzxupiaXMB6~~vmcXL?2xmaTG:﮼ÿvi\N@2 ~pbTE6 ʿugXI:+ üxiZK<- ļzj[L=- üxiZK<- ʿugXI:+ ~pbTE6( 큮ÿvi\N@2# xmaTG:,v~~vmcXL?2%puxzxupiaXMB6*gijigb\TLB8-Z[ZXTNG?6-LKIE@:2*J -+(#=<:62,%LKIE@:2*Z[ZXTNG?6-gijigb\TLB8uxzxupiaXMB6~~vmcXL?2xmaTG:﮼ÿvi\N@2 ~pbTE6 ʿugXI:+ üxiZK<- ļzj[L=- üxiZK<- ʿugXI:+ ~pbTE6( 큮ÿvi\N@2# xmaTG:,v~~vmcXL?2%puxzxupiaXMB6*gijigb\TLB8-Z[ZXTNG?6-LKIE@:2*J $#!).,*'#7753/+&!@A@><83.(7IJIGD@;5/("NNMHB<5.& ENNmIB;3++NT\_\TNNmH@8/' NYjyyjYNNMD<3* #TjjTNG>5,# =\yøy\NNI@7.$ N_å_NNJA7.% N\yøy\NNI@7.$ ETjjTNG>5,# 4NYjyyjYNNMD<3*! $NNT\_\TNNmH@8/' aNNmIB;3+# MNNMHB<5.& -GIJIGD@;5/(!)@A@><83.("7753/+&!'*'J Shade     p   !#/#.?.L]<6s{8^Mc.U~%$7 W6D W- W        ް W W W K WWWWWWW AK/W-+FO6W(dG-@S<W!4lO0:TW 4oU1W Vl W N W W        ް W W W KM8Uq8qUq8q 8  q  qq      UU q q J  Drop Shadow     /      []jcm  []jcm  tvprxm~}mqzn}mpxmy{m ~ s r {n x r~|rpzym}pzvkoifkvfefinhefohnqozq}zzq} z u w {    []jcm  []jcm  tvprxm~}mqzn}mpxmy{m ~ s r {n x r~|rpzym}pzvkoifkvfefinhefohnqozq}zzq} z u w {    []jcm  []jcm  tvprxm~}mqzn}mpxmy{m ~ s r {n x r~|rpzym}pzvkoifkvfefinhefohnqozq}zzq} z u w {l (0,  EXKq}(2ƚE Qj%wB  Nq"%wNQ҄2/gaK B҄2 (wg TH 2w% X N %z t" > > N N Q Q H H 5 ߊ5 n n K K %qq% ;χ; B̊B>zհz>/[[/  Background     ! !+ !;qsynth-0.3.8/src/images/PaxHeaders.22416/restart1.png0000644000175000001440000000012411353144152020400 xustar000000000000000027 mtime=1269614698.050918 27 atime=1388489094.658224 30 ctime=1388489094.658224583 qsynth-0.3.8/src/images/restart1.png0000644000175000001440000000144211353144152017665 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.3.8/src/images/PaxHeaders.22416/ledon1.png0000644000175000001440000000012411353144152020015 xustar000000000000000027 mtime=1269614698.050918 27 atime=1388489094.923224 30 ctime=1388489094.923224587 qsynth-0.3.8/src/images/ledon1.png0000644000175000001440000000125011353144152017277 0ustar00rncbcusers00000000000000PNG  IHDRabKGD pHYs  tIME&k;>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.3.8/src/images/PaxHeaders.22416/qtlogo.png0000644000175000001440000000012411353144152020140 xustar000000000000000027 mtime=1269614698.050918 27 atime=1388489094.658224 30 ctime=1388489094.658224583 qsynth-0.3.8/src/images/qtlogo.png0000644000175000001440000000260611353144152017430 0ustar00rncbcusers00000000000000PNG  IHDR szzMIDATXŗklU3nnK}l-EB) jՀAFc!M(DĚDc45~BEBPZP VZnCa {{8`틎j{fni3ѪiͶ=W Ԋ&  K+[<1CP4bW@j#]h痓m+;xdbg tajː=>:<;`/=Mlβ9~'ZwЬI[rbRPpP$r]? H8:rzu *o$f14':j7zfY-@-Cb51Ֆ^e]U7ma<MC=²Pd_#{~18< _}'v"IU;&6Q9 KqYN0{^EFml5BKJ;s0t<q;o+EɱNo~;;7pecr0 ͘Pf/ _C eɏPTky!Pe #poepsSmZ}eX` sEi&ɱ*W-KH@"lf0 Q g0U z ^J~t3PBFSaSMBb)M *E1[9>p(H TYCSTŃc_&6dVIҼ.""P6)S@V$bz(Al},TDHzeIFLF]ˆO-f}'Y]X YNrucS l1qߟe f2 QLk&6-#٢pWx-1R||κ]Y{FSYL J_Rv?wT3t!~;5/\wB nڽ |W=\8@"!pP?^v݊t O SEGgIENDB`qsynth-0.3.8/src/images/PaxHeaders.22416/messages1.png0000644000175000001440000000012411353144152020523 xustar000000000000000027 mtime=1269614698.050918 27 atime=1388489094.923224 30 ctime=1388489094.923224587 qsynth-0.3.8/src/images/messages1.png0000644000175000001440000000047011353144152020010 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.3.8/src/images/PaxHeaders.22416/options1.png0000644000175000001440000000012411353144152020407 xustar000000000000000027 mtime=1269614698.050918 27 atime=1388489094.721224 30 ctime=1388489094.721224584 qsynth-0.3.8/src/images/options1.png0000644000175000001440000000156511353144152017702 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.3.8/src/images/PaxHeaders.22416/qsynth.png0000644000175000001440000000012411353144152020161 xustar000000000000000027 mtime=1269614698.050918 27 atime=1388489094.923224 30 ctime=1388489094.923224587 qsynth-0.3.8/src/images/qsynth.png0000644000175000001440000000271711353144152017454 0ustar00rncbcusers00000000000000PNG  IHDR szzsRGBIDATXýMl\W7_3v\' .خ!ĉBRH(  + JlBBH]ĢABV,X$mUAM̛y^**ql7Iw޹{yi@n`1c_o|S?BgLt X"a̍9*cFt80[6?SyqGðo>&K9i@-W 4t@EvFw9`~*6),v@JwXBh]:4=H xE? ϭ>QF(בV&h8Vj5nكRyJ=m?6AqJqE8.vH{G9;cIpD{1ujYPp-̂ aX&30~~x< 9:_,]|Q"S =zDfݪZ)⵵w;[Yq?䋟9D)>rtyVEV*A "E @{۶~O[)k.]D,T02CB(8Inı-&mmoGbK/\qcͩTǠipFf!55DH H{\5Y07Ծf@مSPR L !60Q Sh?~ᩯK6J遹P(C:\  !PP@QX2i3Ra+$4 $ -0$H Y :J.hB*M*W{V'B VaPhWѠ&Iae\~7&O a)+en)>ʥ/k ܌2xa$?"< Ȍ.Y`TBǏi"6O`-vru6!7[[G4F')S2aLS.oe7u);~?0S|QN2TZ NㅴDeV[o] *u]_vIwAmuWlBnn W:]<^@l=Ov\J kc@C~\J#k>p a6'/|ry2~HRMZqҊk2v \!ڻi\|pnz$L$!N3Z~ȕ67.WƂ2pfyag`1RiMj*?^q⵵Ut'0 IX[\g^w PF&7V .&#hIENDB`qsynth-0.3.8/src/images/PaxHeaders.22416/qsynth.icns0000644000175000001440000000012411463334453020340 xustar000000000000000027 mtime=1288550699.159077 27 atime=1388489094.522224 30 ctime=1388489094.522224581 qsynth-0.3.8/src/images/qsynth.icns0000644000175000001440000000514511463334453017631 0ustar00rncbcusers00000000000000icns eil32UJmGcm ڟ>vqjE~̕|X A ǒC n\ R>~̏쿒BɁ mZ V?~̋ 캈TT Czփ 粆X} ۗGz ՛Go ͘Hkv ȾGfi ԶPef˂ qchnʯFjodzyWkq˻~Jhnz"Ŀ~Gekq},w|Geirzu8Z}zWNejqusNFHTfjnqw {wmieeimw{8_R_hfGcm ih>vbc^jcifE~̕^``X ai_A \jeC fr~}ZY\ ;b~}x]>~̏ j~}edBjr~}ZXZ>t~x]?~̋wã~bcTA|Ҿ~|\Czvֻ~z_aX}ؽ~vt]GzռtpSGo͸}plPHkv|zicQGfiy~p^UVPefevdVDXchnhyiZTGFjojosh\RDYWkqji||{ztkaWRCRJhnz"c^qkg__XRQARGekq},aNT[XVSH=VGeirzu8MZJCBFSNNejqusNFHTfjnqw {wmieeimw{,2@H6MGcm KCD>v:F3RjJ:JDCE~̕:QRL3PX I>Z\RE:A :SefUG:LC EA`ss_HF1M\ +2XmhJHD9>~̏ =PilMKH9LBGMjvhMNKH2MZ,AbwiLQMJD9?~̋KTqaWLPLI7NT-?f`ZNRNJF9CzLOuƲa]aPOKF4NX}HdѴf^YNPKDA>GzAgЮh^YNPLC?-GoAe}ʽ}f^YNPKA<,HkvC_ppa]aPOH=81GfiIWcp}}pc^ZNRMB60>PefEE[_ege_]ZWLOG;2%Jchn>TY[ \XWLPJ?4/+FjoH7]RRU_LJJH?6/&HWkqB5BBCCADC;40%;Jhnz"@0;98=;61/%;Gekq},E+48531)!AGeirzu8GE0&%+?INejqusNFHTfjnqw {wmieeimw{l8mk'GMGoA, )KL҂(ELyB L"2] s2I[u22zsH %DN Ht"H>HN,Q HLߊ5nFK cq%rχ; l̊B@հz>/[[/qsynth-0.3.8/src/images/PaxHeaders.22416/ledoff1.png0000644000175000001440000000012411353144152020153 xustar000000000000000027 mtime=1269614698.050918 27 atime=1388489094.825224 30 ctime=1388489094.825224586 qsynth-0.3.8/src/images/ledoff1.png0000644000175000001440000000123111353144152017434 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۝|fq #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 = NULL; // No setup synth references initially (the caller will set them). m_pOptions = NULL; m_pEngine = NULL; m_pSynth = NULL; // 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 >= 0x050000 // 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(NULL, NULL, 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->stabilizeForm(); 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->stabilizeForm(); } // Just about to notify main-window that we're closing. void qsynthChannelsForm::closeEvent ( QCloseEvent * /*pCloseEvent*/ ) { QWidget::hide(); qsynthMainForm *pMainForm = qsynthMainForm::getInstance(); if (pMainForm) pMainForm->stabilizeForm(); } // 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 : NULL; // Update caption. QString sTitle = QSYNTH_TITLE ": " + tr("Channels"); if (pEngine) sTitle += " [" + pEngine->name() + "]"; setWindowTitle(sTitle); // Free up current channel list view. if (m_ppChannels) { delete [] m_ppChannels; m_ppChannels = NULL; m_iChannels = 0; } // Allocate a new channel list view... m_ui.ChannelsListView->clear(); if (m_pSynth && m_ppChannels == NULL) { 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 == NULL || m_ppChannels == NULL) 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) { int iBank = pPreset->get_banknum(pPreset); #ifdef CONFIG_FLUID_BANK_OFFSET iBank += ::fluid_synth_get_bank_offset(m_pSynth, (pPreset->sfont)->id); #endif pItem->setText(QSYNTH_CHANNELS_BANK, QString::number(iBank)); pItem->setText(QSYNTH_CHANNELS_PROG, QString::number(pPreset->get_num(pPreset))); pItem->setText(QSYNTH_CHANNELS_NAME, pPreset->get_name(pPreset)); pItem->setText(QSYNTH_CHANNELS_SFID, QString::number((pPreset->sfont)->id)); pItem->setText(QSYNTH_CHANNELS_SFNAME, QFileInfo((pPreset->sfont)->get_name(pPreset->sfont)).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 == NULL) return; qsynthSetup *pSetup = m_pEngine->setup(); if (pSetup == NULL) return; if (bPreset) changePreset(pSetup->sDefPreset); else updateAllChannels(); } // Update channel activity status LED. void qsynthChannelsForm::setChannelOn ( int iChan, bool bOn ) { if (m_ppChannels == NULL) 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 == NULL) return; if (m_ppChannels == NULL) return; if (m_pOptions == NULL || m_pEngine == NULL || m_pSynth == NULL) 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 == NULL) return; if (m_ppChannels == NULL) return; if (m_pOptions == NULL || m_pEngine == NULL || m_pSynth == NULL) 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 == NULL || m_pEngine == NULL || m_pSynth == NULL) 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 == NULL || m_pEngine == NULL || m_pSynth == NULL) 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 == NULL || m_pEngine == NULL || m_pSynth == NULL) 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, QSYNTH_TITLE ": " + 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 == NULL) return; qsynthSetup *pSetup = m_pEngine->setup(); if (pSetup == NULL) 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 == NULL) return; qsynthSetup *pSetup = m_pEngine->setup(); if (pSetup == NULL) 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.3.8/src/PaxHeaders.22416/qsynthSystemTray.h0000644000175000001440000000012412166505747020442 xustar000000000000000027 mtime=1373277159.612985 27 atime=1388489095.432224 30 ctime=1388489095.432224595 qsynth-0.3.8/src/qsynthSystemTray.h0000644000175000001440000000416412166505747017733 0ustar00rncbcusers00000000000000// qsynthSystemTray.h // /**************************************************************************** Copyright (C) 2003-2013, 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 //---------------------------------------------------------------------------- // 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(); // Context menu signal. void contextMenuRequested(const QPoint& pos); 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.3.8/src/PaxHeaders.22416/qsynthMessagesForm.cpp0000644000175000001440000000012411353144152021226 xustar000000000000000027 mtime=1269614698.050918 27 atime=1388489095.911224 30 ctime=1388489095.911224603 qsynth-0.3.8/src/qsynthMessagesForm.cpp0000644000175000001440000001240511353144152020514 0ustar00rncbcusers00000000000000// qsynthMessagesForm.cpp // /**************************************************************************** Copyright (C) 2003-2010, 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 = NULL; } // 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->stabilizeForm(); 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->stabilizeForm(); } // Just about to notify main-window that we're closing. void qsynthMessagesForm::closeEvent ( QCloseEvent * /*pCloseEvent*/ ) { QWidget::hide(); qsynthMainForm *pMainForm = qsynthMainForm::getInstance(); if (pMainForm) pMainForm->stabilizeForm(); } // 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 != NULL); } 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 = NULL; } 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 = NULL; } } } // 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.3.8/src/PaxHeaders.22416/qsynthDialVokiStyle.h0000644000175000001440000000012412067407425021033 xustar000000000000000027 mtime=1356730133.630567 27 atime=1388489095.432224 30 ctime=1388489095.432224595 qsynth-0.3.8/src/qsynthDialVokiStyle.h0000644000175000001440000000275512067407425020330 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 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.3.8/src/PaxHeaders.22416/qsynthChannelsForm.ui0000644000175000001440000000012412166505747021063 xustar000000000000000027 mtime=1373277159.612985 27 atime=1388489096.240224 30 ctime=1388489096.240224608 qsynth-0.3.8/src/qsynthChannelsForm.ui0000644000175000001440000001376512166505747020363 0ustar00rncbcusers00000000000000 rncbc aka Rui Nuno Capela qsynth - A fluidsynth Qt GUI Interface. Copyright (C) 2003-2013, 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 Qsynth: Channels 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 Alt+S false Delete current settings preset &Delete :/images/remove1.png Alt+D 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.3.8/PaxHeaders.22416/TODO0000644000175000001440000000007011147226744014572 xustar000000000000000027 atime=1388489096.958224 29 ctime=1388489096.95822462 qsynth-0.3.8/TODO0000644000175000001440000000026311147226744014057 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.3.8/PaxHeaders.22416/TRANSLATORS0000644000175000001440000000012412247173416015640 xustar000000000000000027 mtime=1386018574.622011 27 atime=1388489097.077224 30 ctime=1388489097.077224622 qsynth-0.3.8/TRANSLATORS0000644000175000001440000000062112247173416015123 0ustar00rncbcusers00000000000000Czech (cs) Pavel Fric German (de) Guido Scholz Spanish (es) Pedro Lopez-Cabanillas French (fr) Yann Collette Lionel Rascle Russian (ru) Alexandre Prokoudine Serbian (sr) Jay Alexander Fleming