pax_global_header00006660000000000000000000000064132535365320014521gustar00rootroot0000000000000052 comment=737dbb04c407184fae0e203c1d73be8ad3fd55ba hexter-version_1.1.0/000077500000000000000000000000001325353653200145645ustar00rootroot00000000000000hexter-version_1.1.0/AUTHORS000066400000000000000000000053661325353653200156460ustar00rootroot00000000000000 hexter ====== A Yamaha DX7 modeling software synthesizer for the DSSI Soft Synth Interface hexter is written and maintained by Sean Bolton. It is copyright (c) 2014 under the GNU General Public License, version 2 or later. Bug reports, kudos, and job offers (seriously!) should go directly to Sean at the email address: sean /at/ smbolton /dot/ com hexter includes code taken from the following sources: The sound generation code descends most directly from Juan Linietsky's rx-saturno, copyright (c) 2002 under the GNU General Public License version 2. Major portions of the event handling code are derived from Fluidsynth, copyright (c) 2003 Peter Hanappe and others, under the GNU General Public License version 2. Portions of the DSSI interface and OSC handling code come from Chris Cannam and Steve Harris's public domain DSSI example code. The ALSA MIDI input is based on specimen, copyright (c) 2004 Pete Bessman under the GNU General Public License version 2. The following people have assisted in hexter's development: Jamie Bullock's enthusiasm and help with reverse engineering made the LFO and modulation code happen. Jamie also contributed the NRPN support. Martin Tarenskeen contributed improvements to hexter's DX7 patch loading code. Rui Nuno Capela and Andreas Müller squashed crash-causing bugs. hexter is also very much the result of an ongoing cumulative effort by a large number of DX7 and synthesis enthusiasts, including: - John Chowning, who invented FM synthesis, and told us about it in (among other places) "The Synthesis of Complex Audio Spectra by Means of Frequency Modulation", JAES 21:526-534, 1973. - Yamaha, who made my beloved TX7s and KX88. - Chowning and Dave Bristow published "FM Theory and Applications", which I never obtained, but is cited by many of the other sources I used, such as: - T. Yala Abdullah's website explaining OL-to-TL conversions and modulation indices. - Russell Pinkston, Jeff Harrington, Doug Walter, and Sylvain Marchand, creators of the dx72csnd DX7-to-csound patch converter and orchestra files, upon which much of subsequent emulation efforts has been based. - Godric Wilkie, who supplied pitch envelope timings (http://www.gozen.demon.co.uk/godric/synth/yam.html). - Bo Tomlyn and his "Programming the DX7" article. - Howard Massey and his "Tricks and Traps of the DX7" article. - Members of the Linux Audio Developers list, for much wisdom regarding digital audio and synthesis. Thanks everybody! Ain't open source great? hexter-version_1.1.0/COPYING000066400000000000000000000431031325353653200156200ustar00rootroot00000000000000 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. hexter-version_1.1.0/ChangeLog000066400000000000000000000143561325353653200163470ustar00rootroot0000000000000020180318 smbolton -- version 1.1.0 * Switched to run_synth() instead of run_multiple_synths(), and removed the global polyphony configuration setting. This makes hexter compatible with hosts that don't implement run_multiple_synths(), such as Carla and Renoise. * Removed compiler-specific optimization flags. * Fixed a crash of the widgy editor on ARM targets. Thanks to Andreas Müller. * Converted the README to reStructuredText, complete with screenshots. 20140610 smbolton -- version 1.0.3 * Merged patch by Rui Nuno Capela, which fixed a use-after-free bug in hexter_cleanup() that could crash Qtractor. 20130520 smbolton * At the request of Martin Tarenskeen, changed the representation of breakpoint pitch (and transpose in the retro and stand-alone editors) to match Yamaha's usage (MIDI note 60 = "C3") rather than the previous non-standard standard (60 = "C4"). 20121108 smbolton -- version 1.0.2 * Fixed: starting the GUI on a session with unsaved edits would leave the patch editor insensitive (thanks to William Light for the bug report.) 20121102 smbolton -- version 1.0.1 * Didn't I already fix that missing '-lm' thing everywhere already? 20121029 smbolton -- version 1.0.0 * Merged patched editors. * Merged DX-7 to UTF-8 character set conversion. * Fixed test note code to prevent stuck notes. 20121023 smbolton * Merged debug branch. 20121022 smbolton * hexter development is now hosted on github: https://github.com/smbolton/hexter * More patch loading enhancements from Martin Tarenskeen. 20110628 CVS commit smbolton -- version 0.6.9.0 * MIDI non-registered parameters (NRPNs) can now be used to change any of the operator parameters for a plugin instance's current patch on-the-fly. Thanks to Jamie Bullock for contributing this code. * It is now possible to ./configure hexter to build the GTK+ user interface, the text-mode UI, both, or neither (again, thanks to Jamie). * The GTK+ GUI now requires GTK+ 2.4 or later. * hexter may now be built to use floating-point math in its audio rendering. There is a new '--enable-floating-point' ./configure option, and a simple test harness in the fptest/ directory. * Both the hexter GUI and tx_edit include even more patch loading enhancements from Martin Tarenskeen. * The synthesis code has been simplified, so the once-separate car() and mod() functions are now just a single op(), which means less cache pressure for both code and data. * There should be some other minor speed-ups as well: removed a bunch of slow unsigned to float casts, and fixed some constant expressions that were not being optimized. * Oops. GUI 'sample-rate' method broke 'quit'. * GUI no longer segfaults if started with no arguments. 20090103 version 0.6.2 * Silently ignore 'sample-rate' method. * Fixed GtkSpinButton adjustments to avoid page_size warning with GTK+ >=2.14. * Added Martin Tarenskeen's patch loading enhancements to extra/tx_edit.c. 20070411 version 0.6.1 * hexter now installs as DSSI plugin 'hexter', just like the 0.5.9 and earlier versions, eliminating the trouble the versioned plugin names would cause distribution packagers. The plugin files installed are again: /lib/dssi/hexter/hexter_gtk /lib/dssi/hexter.so /lib/dssi/hexter.la Also, there is now a 'disable LFO/Mod/Perf (0.5.x compatibility)' option in the hexter GUI which disables the version 0.6.x LFO, amplitude and pitch modulation functions, allowing projects made with version 0.5.9 to sound as they were originally created. 20070118 version 0.6.0 * hexter version 0.6.0 installed as DSSI plugin 'hexter6', with the following files: /lib/dssi/hexter6/hexter6_gtk /lib/dssi/hexter6.so /lib/dssi/hexter6.la This allowed hexter 0.5.9 to be installed alongside the 0.6.0 version, but was a headache for distribution packagers, so this was abandoned with version 0.6.1. * Implemented the LFO, amplitude modulation and pitch modulation (many thanks to Jamie Bullock!) * Added TX7-style performance parameters, allowing configuration from the GUI of pitch bend range, portamento time, and sensitivity and assignment of the modulation wheel, foot controller, pressure (both channel and key), and breath controller. * Added DX7 patchbank loading code from Martin Tarenskeen, allowing hexter to load a number of additional patch file formats. * Partially implemented portamento. For now, the curves and times are wrong, but the plumbing is there. 20060108 version 0.5.9 * Added GUI '-test' magic host URL argument for starting GUI without a host. * Improved the 'About' dialog with a new color pixmap. * Fixed the held key tracking. * Use gcc/glibc 'constructor' and 'destructor' attributes instead of the deprecated _init() and _fini() functions (needed for OS X 10.4 'Tiger'). 20051024 CVS commit smbolton * Added support for change operator coarse frequency in real time via MIDI binding (for the Harvey Project). * Minor gcc4 fixes. 20050411 CVS commit smbolton * Initial Mac OS X support (sys-ex patch edit reception is still ALSA-only.) 20050119 CVS commit smbolton ( version bump to 0.5.9 ) * gcc 2.9x '-finline-limit=5000' fix in configure.in * RPM bindir fix in src/Makefile.am 20041229 version 0.5.8 * Added a 'Volume' control, and implemented MIDI CC 7 'Volume' handling. * Compiles with GTK+ 2.x by default, or with GTK+ 1.2 if 2.x is not found. An optional text (readline) based UI can be built instead by supplying configure with the '--with-textui' flag. * Implemented DSSI project directory handling. * Changed activate() to new behavior. * Fixed bug where changes to tuning control would only effect first playing voice. * Made a number of error messages more informational. * Added converted FB-01 patches. 20041101 0.5.7 first public release * Moved Test Note frame to be visible when both Patches and Configuration tabs are selected. * Changed tuning slider to a spinbutton for greater accuracy. * Made a slightly better default patch set. 20041029 0.5.7-alpha -- initial alpha release * "don't put that in your mouth, you don't know where it's been!" hexter-version_1.1.0/INSTALL000066400000000000000000000363401325353653200156230ustar00rootroot00000000000000Installation 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. hexter-version_1.1.0/Makefile.am000066400000000000000000000012431325353653200166200ustar00rootroot00000000000000## Process this file with automake to produce Makefile.in SUBDIRS = src EXTRA_DIST = \ README.rst \ autogen.sh \ doc/hexter-screenshot_main.jpg \ doc/hexter-screenshot_retro.jpg \ doc/hexter-screenshot_widgy.jpg \ extra/tx_edit.c \ extra/default_patches.dx7 \ extra/dx7_roms.dx7 \ extra/fb01_roms_converted_12.dx7 \ extra/fb01_roms_converted_34.dx7 \ extra/fb01_roms_converted_5.dx7 \ extra/tx7_roms.dx7 \ fptest/Makefile \ fptest/harness.c \ fptest/wrapper.h dist_pkgdata_DATA = extra/dx7_roms.dx7 \ extra/fb01_roms_converted_12.dx7 \ extra/fb01_roms_converted_34.dx7 \ extra/fb01_roms_converted_5.dx7 \ extra/tx7_roms.dx7 AUTOMAKE_OPTIONS = foreign hexter-version_1.1.0/README.rst000066400000000000000000000722241325353653200162620ustar00rootroot00000000000000hexter ====== A Yamaha DX7 modeling software synthesizer for the DSSI Soft Synth Interface Introduction ------------ hexter is a software synthesizer that models the sound generation of a Yamaha DX7 synthesizer. It can easily load most DX7 patch bank files, edit those patches via a built-in editor or MIDI sys-ex messages (ALSA systems only), and recreate the sound of the DX7 with greater accuracy than any previous open-source emulation (that the author is aware of....) hexter operates as a plugin for the DSSI Soft Synth Interface. DSSI is a plugin API for software instruments (soft synths) with user interfaces, permitting them to be hosted in-process by audio applications. More information on DSSI can be found on the `DSSI website `_. hexter is written and copyright © 2018 by Sean Bolton, and licensed under the GNU General Public License, version 2 or later. See the enclosed file `COPYING `_ for details. While this software is ‘free’ within the requirements of that license, I (Sean) would appreciate any or all of the following should you find hexter useful: * an email stating where you're from and how you're using hexter, sent to . * copies of or links to music you've created with hexter. * any favorite patches you create for hexter, or any patches that work on a real DX7 but not on hexter. * suggestions for improving hexter. * a star on hexter's `github repository `_. hexter benefited greatly from previous open-source efforts, most notably Juan Linietsky's rx-saturno, and `FluidSynth `_ by Peter Hanappe, et al. See the `AUTHORS `_ file in the hexter distribution for more details. Screenshots ----------- .. figure:: doc/hexter-screenshot_main.jpg :width: 450 :alt: hexter main window :target: doc/hexter-screenshot_main.jpg This screenshot (click the image for `full size `_) shows the GUI main windows for three instances of hexter. Note that sys-ex editing is currently enabled in the channel 1 instance (details below). .. figure:: doc/hexter-screenshot_widgy.jpg :width: 297 :alt: hexter Widgy editor :target: doc/hexter-screenshot_widgy.jpg This shows the patch editor in ‘Widgy’ mode, .. figure:: doc/hexter-screenshot_retro.jpg :width: 340 :alt: hexter Retro editor :target: doc/hexter-screenshot_retro.jpg while this one shows the editor in ‘Retro’ mode. Requirements ------------ hexter requires the following: * `DSSI `_ version 0.4 or greater. * `liblo `_ version 0.12 or greater (0.23 or greater recommended), a library implementing the Open Sound Control protocol. * `pkgconfig `_ with ``PKG_CONFIG_PATH`` set appropriately to pick up DSSI and liblo. * `GTK+ `_ version 2.4 or later. * the `LADSPA `_ v1.x SDK. * the `ALSA `_ headers (DSSI plugins use ALSA structures, but not the actual drivers, so you don't necessarily need the drivers installed.) Users of non-ALSA systems may use `libdssialsacompat `_. * a working DSSI host. hexter has been tested with the jack-dssi-host available in `the DSSI distribution `_, and with `ghostess `_. * automake 1.7 and autoconf 2.57 or better if you wish to recreate the build files. Installation ------------ The generic installation instructions in the enclosed file ``INSTALL`` aren't particularly helpful, so try this instead: 1. Unpack the tar file. 2. Make sure ``PKG_CONFIG_PATH`` is set correctly to locate the ``dssi.pc`` and ``liblo.pc`` pkgconfig files. On many systems, this will be: .. code-block:: shell $ PKG_CONFIG_PATH=/usr/local/lib/pkgconfig $ export PKG_CONFIG_PATH 3. ``cd`` into the package directory and execute ``./configure``. configure will add ``-Wall`` and some basic optimizations to ``CFLAGS`` for you if you don't include any ``-Wall`` or ``-O`` options. If you're using gcc and wish to provide your own optimization flags, you MUST at least use ``-ffast-math`` and a non-zero ``-O`` flag to get decent results. Depending on your hardware, you may wish to add the ``--enable-floating-point`` option to the configure cammand line. See the `Fixed Point vs. Floating Point Rendering`_ section below. (If you're not sure, it is safest to leave it off.) 4. Enable debugging information if you desire: edit the file ``src/hexter.h``, and define ``DSSP_DEBUG`` as explained in the comments. 5. Do ``make``. Hopefully it should build without warnings (or errors.) 6. ``make install`` will install the following: .. code-block:: shell /lib/dssi/hexter/hexter_gtk /lib/dssi/hexter.so /lib/dssi/hexter.la /share/hexter/dx7_roms.dx7 /share/hexter/fb01_roms_converted_12.dx7 /share/hexter/fb01_roms_converted_34.dx7 /share/hexter/fb01_roms_converted_5.dx7 /share/hexter/tx7_roms.dx7 Feedback on your experiences building hexter is appreciated. Operation --------- To run the hexter plugin under the ``jack-dssi-host`` provided in `the DSSI distribution `_, I do the following: #. Start `JACK `_. #. Start ``jack-dssi-host``, supplying the correct plugin path and filename (substitute ```` as appropriate): .. code-block:: shell $ DSSI_PATH=/lib/dssi sudo jack-dssi-host hexter.so ``jack-dssi-host`` should start, and moments later the hexter graphic user interface should appear. #. Use `qjackctl `_ or ``aconnect`` to connect ``jack-dssi-host`` to a MIDI source, such as vkeybd_. .. _vkeybd: https://github.com/tiwai/vkeybd #. Begin playing sounds! If you get no response, try clicking the ‘Send Test Note’ button in the hexter GUI. This sends a note directly via the host to the plugin, so if you hear sound now, look for a problem between the host and your MIDI source. If you still don't hear sound, I'd look for a problem between the host and your output device. If you continue having trouble, you might recompile with ``DSSP_DEBUG`` bit 2 set, which will cause the plugin to continuously output a quiet buzz to help debug your outgoing signal path. hexter starts up with a default set of sound presets, or ‘patches’, that you can select either by selecting the GUI ‘Patches’ tab and clicking on the patch name, or by sending a MIDI program change from your MIDI source with the appropriate program number. Patch Import/Export ------------------- hexter can import DX7 patch bank files in several formats: * The standard 32-voice bulk dump sys-ex format. These are 4104 bytes long, and you can find a million of them by Googling for ‘dx7 patches’. hexter places no restrictions on their filenames. * The standard single-voice (edit buffer) sys-ex format. These are 163 bytes long. * Raw packed patch data. These are 128 bytes per patch, and may contain any number of patches (although hexter can only load up to 128 of them.) Note, though, that if the file is 8192 bytes long and has any of the filename suffixes ``.tx7``, ``.TX7``, ``.snd``, or ``.SND``, the second half of the file will be ignored (Dr. T and Steinberg TX7 formats). * Standard MIDI files containing either a 32-voice bulk dump sys-ex message or a single voice dump sys-ex message. If the file contains more than one qualifying sys-ex message, only the first will be used. * Two concatenated 32-voice bulk dump sys-ex messages (8208 bytes long.) * Steinberg Synthworks format (5216 bytes long). * Transform XSyn format (8192 bytes long). * Voyetra SIDEMAN DX/TX and Patchmaster DX7/TX7 formats (9816 or 5663 bytes long). * Yamaha DX200 editor format (326454 bytes long). You may use the ‘Import Patch Bank...’ option in the ‘File’ menu to import patches. After selecting the filename, you will need to specify the program number (0 to 127) at which to begin importing the patches. Several patch bank files are installed with hexter in ``/share/hexter/``. You may also export patch banks using the ‘File’ menu ‘Export Patch Bank...’ option. You can then select which of the formats to save in, and what range of patches to export. Finally, select the filename to which you want to save, and click ‘Ok’. Synthesizer Configuration ------------------------- On the ‘Configuration’ tab of the hexter GUI, there are a number of controls for configuring hexter: * tuning: sets the tuning of this instance of the plugin, as Hz for A-above-middle-C. * volume: adjusts the output volume for this instance, from -70dB to +20dB relative to a nominal reference level (-18.1dB per voice, which permits approximately 8 voice polyphony within -1.0 to +1.0 float.) * polyphony: Sets the maximum polyphony for this instance of the plugin. If you attempt to play more notes than this setting, already-playing notes will be killed so that newer notes can be played. * monophonic modes: sets poly/mono operation for this instance of the plugin to one of the following: - ‘Off’ - polyphonic operation. - ‘On’ - monophonic operation, where the envelopes are retriggered upon each incoming note on event. - ‘Once’ - monophonic operation, where the envelopes are triggered only on the first note on of a legato phrase -- that is, if you hold one note while playing a second, the envelopes will not be retriggered for the second note. - ‘Both’ - monophonic operation, where the envelopes are retriggered at each note on, and upon note off when other keys are still held. * disable LFO/Mod/Perf (0.5.x compatibility): selecting this check box will disable the LFO, amplitude modulation, pitch modulation, and performance parameter enhancements provided by hexter 0.6.0 and later versions, forcing it to sound just like the 0.5.9 version. This is provided for backward compatibility with existing projects that used hexter 0.5.9. * Sys-Ex Patch Editing: On ALSA systems, hexter has the ability to receive MIDI system exclusive messages from an external patch editor/librarian. Any patch edits received are reflected in hexter's built-in patch editor, and must be saved using the built-in editor's ‘Save Changes into Patch Bank’ button (see below). Sys-ex patch editing is enabled on the ‘Configuration’ tab by depressing the ‘Enable Sys-Ex Editing’ button. The hexter GUI then creates an ALSA MIDI client and displays its client and port number in the status window below the ‘Sys-Ex Receive Channel’ slider. Set the channel appropriately and route your external patch editor to this port using aconnect or similar, and the hexter instance will be ready to receive patch edits. Note that hexter only *receives* MIDI sys-ex messages, and does not send them. Also, it only receives single patch dumps and voice parameter changes, so any ‘get patch data from synth’ or ‘send 32 voices to synth’ functions of your librarian will not work. Performance Parameters ---------------------- The ‘Performance’ tab of the hexter GUI contains controls for the DX7/TX7 Performance Parameters: * pitch bend range: sets the response to MIDI pitch bend messages, in semitones. * portamento time: sets the portamento time. Note that as of version 0.6.1, the portamento code is still unfinished. * mod wheel sensitivity: sets the depth of response to MIDI modulation wheel control change messages (MIDI control change 1). * mod wheel assign: these three check boxes set which destinations the modulation wheel affects: selecting ‘P’ routes the LFO to pitch modulation (vibrato), ‘A’ routes the LFO to amplitude modulation (tremelo or wah), and ‘E’ routes the modulation wheel value itself to amplitude modulation. * foot sensitivity, foot assign, pressure sens., pressure assign, breath sens., and breath assign: these set the sensitivity and routing as described above for the foot controller (MIDI CC 4), for pressure (both channel and key pressure), and for the breath controller (CC 2), respectively. Patch Editing ------------- The current patch may be edited by selecting ‘Edit Patch...’ from the ‘Edit’ menu, which opens the patch editor window. All patch edits accumulate as a temporary ‘overlay’ replacing the current patch, but are not saved into the patch bank until you click the ‘Save Changes into Patch Bank’ button and complete the save process. (Once you've saved edits into the patch bank, remember to save the bank to disk using the ‘Export Patch Bank...’ option of the ‘File’ menu!) Clicking the ‘Discard Changes’ button or selecting another patch from the ‘Patches’ tab will discard any active edits. At any time the top status line of the editor window will tell you which patch is being edited, and whether there are any changes in effect. The editor has two modes of operation, selected by the ‘Editor Mode’ combo box near the bottom left of the editor window. One mode, called ‘Widgy’, uses standard GTK+ widgets for editing patch parameters, and displays graphical representations of envelopes and scaling curves to aid in comprehension of the patch parameters. The other mode, called ‘Retro’ is based on text-based editors of decades past. You may switch between editor modes at any time. While the ‘Retro’ mode provides little in terms of visualization assistance, it can provide the experienced user with more efficient editing. Both the mouse and cursor keys may be used to select the parameter to be edited. Generally, the number keys are used to enter a parameter directly, the ‘-’ key decrements a parameter, the ‘+’ or ‘=’ keys increment the parameter, and the ‘delete’ or ‘backspace’ key will reset the parameter to a default value. Perhaps most convient for users without a separate MIDI keyboard, the space bar can be used to toggle a test note, even while changing patches with other keys! MIDI Controller Mapping ----------------------- In addition to the performance parameter MIDI messages mentioned above, hexter responds to MIDI volume (MIDI control change 39), sustain pedal (MIDI CC 64), and all-sounds-off, all-notes-off, and reset-controllers control messages (CCs 120, 123, and 121, respectively). The operator parameters of the current patch can also be changed via the following MIDI control change (CC) and non-registered parameter (NRPN) messages. Messages marked with ‘*’ in the ‘Operator’ column will cause an immediate effect on playing notes, while the others will only affect subsequently-played notes. ============================== ======== ================================== CC or NRPN Operator Parameter ============================== ======== ================================== CC 16 (General Purpose #1 MSB) 1 * Frequency Coarse CC 17 (General Purpose #2 MSB) 2 * Frequency Coarse CC 18 (General Purpose #3 MSB) 3 * Frequency Coarse CC 19 (General Purpose #4 MSB) 4 * Frequency Coarse CC 80 (General Purpose #5) 5 * Frequency Coarse CC 81 (General Purpose #6) 6 * Frequency Coarse NRPN 0 6 Envelope Generator Rate 1 NRPN 1 6 Envelope Generator Rate 2 NRPN 2 6 Envelope Generator Rate 3 NRPN 3 6 Envelope Generator Rate 4 NRPN 4 6 Envelope Generator Level 1 NRPN 5 6 Envelope Generator Level 2 NRPN 6 6 Envelope Generator Level 3 NRPN 7 6 Envelope Generator Level 4 NRPN 8 6 Keyboard Level Scaling Break Point NRPN 9 6 Keyboard Level Scaling Left Depth NRPN 10 6 Keyboard Level Scaling Right Depth NRPN 11 6 Keyboard Level Scaling Left Curve NRPN 12 6 Keyboard Level Scaling Right Curve NRPN 13 6 Keyboard Rate Scaling NRPN 14 6 Amp Mod Sensitivity NRPN 15 6 Keyboard Velocity Sensitivity NRPN 16 6 Operator Output Level NRPN 17 6 * Oscillator Mode NRPN 18 6 * Oscillator Frequency Coarse NRPN 19 6 * Oscillator Frequency Fine NRPN 20 6 * Oscillator Detune NRPN 21 5 Envelope Generator Rate 1 NRPN 22 5 Envelope Generator Rate 2 NRPN 23 5 Envelope Generator Rate 3 NRPN 24 5 Envelope Generator Rate 4 NRPN 25 5 Envelope Generator Level 1 NRPN 26 5 Envelope Generator Level 2 NRPN 27 5 Envelope Generator Level 3 NRPN 28 5 Envelope Generator Level 4 NRPN 29 5 Keyboard Level Scaling Break Point NRPN 30 5 Keyboard Level Scaling Left Depth NRPN 31 5 Keyboard Level Scaling Right Depth NRPN 32 5 Keyboard Level Scaling Left Curve NRPN 33 5 Keyboard Level Scaling Right Curve NRPN 34 5 Keyboard Rate Scaling NRPN 35 5 Amp Mod Sensitivity NRPN 36 5 Keyboard Velocity Sensitivity NRPN 37 5 Operator Output Level NRPN 38 5 * Oscillator Mode NRPN 39 5 * Oscillator Frequency Coarse NRPN 40 5 * Oscillator Frequency Fine NRPN 41 5 * Oscillator Detune NRPN 42 4 Envelope Generator Rate 1 NRPN 43 4 Envelope Generator Rate 2 NRPN 44 4 Envelope Generator Rate 3 NRPN 45 4 Envelope Generator Rate 4 NRPN 46 4 Envelope Generator Level 1 NRPN 47 4 Envelope Generator Level 2 NRPN 48 4 Envelope Generator Level 3 NRPN 49 4 Envelope Generator Level 4 NRPN 50 4 Keyboard Level Scaling Break Point NRPN 51 4 Keyboard Level Scaling Left Depth NRPN 52 4 Keyboard Level Scaling Right Depth NRPN 53 4 Keyboard Level Scaling Left Curve NRPN 54 4 Keyboard Level Scaling Right Curve NRPN 55 4 Keyboard Rate Scaling NRPN 56 4 Amp Mod Sensitivity NRPN 57 4 Keyboard Velocity Sensitivity NRPN 58 4 Operator Output Level NRPN 59 4 * Oscillator Mode NRPN 60 4 * Oscillator Frequency Coarse NRPN 61 4 * Oscillator Frequency Fine NRPN 62 4 * Oscillator Detune NRPN 63 3 Envelope Generator Rate 1 NRPN 64 3 Envelope Generator Rate 2 NRPN 65 3 Envelope Generator Rate 3 NRPN 66 3 Envelope Generator Rate 4 NRPN 67 3 Envelope Generator Level 1 NRPN 68 3 Envelope Generator Level 2 NRPN 69 3 Envelope Generator Level 3 NRPN 70 3 Envelope Generator Level 4 NRPN 71 3 Keyboard Level Scaling Break Point NRPN 72 3 Keyboard Level Scaling Left Depth NRPN 73 3 Keyboard Level Scaling Right Depth NRPN 74 3 Keyboard Level Scaling Left Curve NRPN 75 3 Keyboard Level Scaling Right Curve NRPN 76 3 Keyboard Rate Scaling NRPN 77 3 Amp Mod Sensitivity NRPN 78 3 Keyboard Velocity Sensitivity NRPN 79 3 Operator Output Level NRPN 80 3 * Oscillator Mode NRPN 81 3 * Oscillator Frequency Coarse NRPN 82 3 * Oscillator Frequency Fine NRPN 83 3 * Oscillator Detune NRPN 84 2 Envelope Generator Rate 1 NRPN 85 2 Envelope Generator Rate 2 NRPN 86 2 Envelope Generator Rate 3 NRPN 87 2 Envelope Generator Rate 4 NRPN 88 2 Envelope Generator Level 1 NRPN 89 2 Envelope Generator Level 2 NRPN 90 2 Envelope Generator Level 3 NRPN 91 2 Envelope Generator Level 4 NRPN 92 2 Keyboard Level Scaling Break Point NRPN 93 2 Keyboard Level Scaling Left Depth NRPN 94 2 Keyboard Level Scaling Right Depth NRPN 95 2 Keyboard Level Scaling Left Curve NRPN 96 2 Keyboard Level Scaling Right Curve NRPN 97 2 Keyboard Rate Scaling NRPN 98 2 Amp Mod Sensitivity NRPN 99 2 Keyboard Velocity Sensitivity NRPN 100 2 Operator Output Level NRPN 101 2 * Oscillator Mode NRPN 102 2 * Oscillator Frequency Coarse NRPN 103 2 * Oscillator Frequency Fine NRPN 104 2 * Oscillator Detune NRPN 105 1 Envelope Generator Rate 1 NRPN 106 1 Envelope Generator Rate 2 NRPN 107 1 Envelope Generator Rate 3 NRPN 108 1 Envelope Generator Rate 4 NRPN 109 1 Envelope Generator Level 1 NRPN 110 1 Envelope Generator Level 2 NRPN 111 1 Envelope Generator Level 3 NRPN 112 1 Envelope Generator Level 4 NRPN 113 1 Keyboard Level Scaling Break Point NRPN 114 1 Keyboard Level Scaling Left Depth NRPN 115 1 Keyboard Level Scaling Right Depth NRPN 116 1 Keyboard Level Scaling Left Curve NRPN 117 1 Keyboard Level Scaling Right Curve NRPN 118 1 Keyboard Rate Scaling NRPN 119 1 Amp Mod Sensitivity NRPN 120 1 Keyboard Velocity Sensitivity NRPN 121 1 Operator Output Level NRPN 122 1 * Oscillator Mode NRPN 123 1 * Oscillator Frequency Coarse NRPN 124 1 * Oscillator Frequency Fine NRPN 125 1 * Oscillator Detune ============================== ======== ================================== Fixed Point vs. Floating Point Rendering ---------------------------------------- hexter can be compiled to do its sound rendering using either fixed-point math or floating-point math. The difference in sound quality should not be audible, so the question of which type of math to use becomes which type of math is faster. On many older processors (e.g. PowerPC G4), the fixed-point math is substantially faster. With newer processors, the speed of each type of math depends on several factors, including the particular processor, the compiler and the compiler options used. It is often surprising which is faster for a given configuration! On fairly normal posix systems (like Linux or OS X), you can compile a small test program, to test which type of math is the fastest on your processor. To do this, unpack the hexter tarball, cd into the ``fptest`` directory, type ``make``, then type ``./fptest``. After 30-60 seconds, you should see a summary of the test results. By default, hexter is built to use fixed-point rendering. If your test results say that floating-point is faster, then you can configure hexter to use floating-point with the ``--enable-floating-point`` configure option. Here are some test results from a few machines. Percentages indicate the speed relative to the faster mode. ===================================== =========== ============== Processor Fixed Point Floating Point ===================================== =========== ============== PowerPC G4 800MHz faster 49.5% PowerPC G4 1.07GHz faster 49.8% Pentium III (Coppermine) 933MHz 95.2% faster Intel Celeron D 2.8GHz (32 bit) faster 87.1% Intel Celeron D 2.8GHz (64 bit) faster 72.8% Intel Core Duo 1.83GHz, OS X 10.4.9 92.9% faster Intel Core 2 Duo 2.4GHz, Linux 3.2 96.1% faster * Intel Core 2 Duo 2.4GHz, OS X 10.4.11 91.4% faster * Intel Core 2 Duo 2.4GHz, OS X 10.6.8 faster 61.5% * Intel Core 2 Duo 2.5GHz, OS X 10.6.7 faster 62.0% Intel Core i7, OS X 10.7 faster 52.0% ===================================== =========== ============== \* These three all come from the same machine! Frequently Asked Questions -------------------------- **Q.** The plugin seems to work fine, but the GUI never appears. Why? **A.** Make sure the hostname of your machine is resolvable (if not, the OSC messages can't be sent between host and GUI). If your machine's hostname is ‘foo.bar.net’, make sure you either have an entry for ‘foo.bar.net’ in ``/etc/hosts``, or that your DNS server can resolve it. Test this with e.g. ``ping foo.bar.net``. To test that the GUI itself works, you can start it by itself (without a DSSI host) by giving it the ``-test`` option, for example: .. code-block:: shell $ /lib/dssi/hexter/hexter_gtk -test **Q.** What happened to the global polyphony limit? **A.** Support for the global polyphony limit was removed from hexter in version 1.1.0. Previous to this, hexter used the DSSI API function ``run_multiple_synths()``, which enabled the global limit, but prevented hexter from working with certain hosts such as `Carla `_ and `Renoise `_. The global polyphony limit is not usually needed on modern machines, and indeed, the run_multiple_synths() API is inherently incompatible with the utilization of multiple CPU cores. If you do need the global limit, perhaps for resource-constrained devices such as older machines and embedded processors, use hexter 1.0.3 instead. Resources --------- The `Wikipedia Yamaha DX7 page `_. `Dave Benson's DX7 page `_, had lots of information as well as links to patch files. `The Synth Zone's collection of Yamaha links `_, which contains quite a few links to patch file collections. hexter-version_1.1.0/TODO000066400000000000000000000011401325353653200152500ustar00rootroot00000000000000hexter To-Do list, in no particular order: ========================================== * Clean up all "!FIX!"es (and "-FIX-"es). * Optionally sort patch list alphabetically (Steve Harris). * optimize so if a voice just being set up still has all the patch data for the current edit buffer, we skip loading it. * Figure out the feedback scaling "fudge factor". The current 0.18 is close, but not right on. * Finish pitch envelope time calculation stuff. * Add a high-pass filter to the output, to block very low frequency output like the DX7 does. * Implement de-clicking of stolen voices. hexter-version_1.1.0/aclocal.m4000066400000000000000000003623611325353653200164370ustar00rootroot00000000000000# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*- ## Copyright 1996, 1997, 1998, 1999, 2000, 2001 ## Free Software Foundation, Inc. ## Originally by Gordon Matzigkeit , 1996 ## ## 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ## ## As a special exception to the GNU General Public License, if you ## distribute this file as part of a program that contains a ## configuration script generated by Autoconf, you may include it under ## the same distribution terms that you use for the rest of that program. # serial 46 AC_PROG_LIBTOOL AC_DEFUN([AC_PROG_LIBTOOL], [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' AC_SUBST(LIBTOOL)dnl # Prevent multiple expansion define([AC_PROG_LIBTOOL], []) ]) AC_DEFUN([AC_LIBTOOL_SETUP], [AC_PREREQ(2.13)dnl AC_REQUIRE([AC_ENABLE_SHARED])dnl AC_REQUIRE([AC_ENABLE_STATIC])dnl AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_LD])dnl AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl AC_REQUIRE([AC_PROG_NM])dnl AC_REQUIRE([LT_AC_PROG_SED])dnl AC_REQUIRE([AC_PROG_LN_S])dnl AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl AC_REQUIRE([AC_OBJEXT])dnl AC_REQUIRE([AC_EXEEXT])dnl dnl _LT_AC_PROG_ECHO_BACKSLASH # Only perform the check for file, if the check method requires it case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then AC_PATH_MAGIC fi ;; esac AC_CHECK_TOOL(RANLIB, ranlib, :) AC_CHECK_TOOL(STRIP, strip, :) ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL], enable_win32_dll=yes, enable_win32_dll=no) AC_ARG_ENABLE(libtool-lock, [ --disable-libtool-lock avoid locking (might break parallel builds)]) test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in *-*-irix6*) # Find out which ABI we are using. echo '[#]line __oline__ "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi rm -rf conftest* ;; *-*-linux*) # Test if the compiler is 64bit echo 'int i;' > conftest.$ac_ext lt_cv_cc_64bit_output=no if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.$ac_objext` in *"ELF 64"*) lt_cv_cc_64bit_output=yes ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, [AC_LANG_SAVE AC_LANG_C AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) AC_LANG_RESTORE]) if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL], [*-*-cygwin* | *-*-mingw* | *-*-pw32*) AC_CHECK_TOOL(DLLTOOL, dlltool, false) AC_CHECK_TOOL(AS, as, false) AC_CHECK_TOOL(OBJDUMP, objdump, false) # recent cygwin and mingw systems supply a stub DllMain which the user # can override, but on older systems we have to supply one AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain, [AC_TRY_LINK([], [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*); DllMain (0, 0, 0);], [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])]) case $host/$CC in *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*) # old mingw systems require "-dll" to link a DLL, while more recent ones # require "-mdll" SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -mdll" AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch, [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])]) CFLAGS="$SAVE_CFLAGS" ;; *-*-cygwin* | *-*-pw32*) # cygwin systems need to pass --dll to the linker, and not link # crt.o which will require a WinMain@16 definition. lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;; esac ;; ]) esac _LT_AC_LTCONFIG_HACK ]) # AC_LIBTOOL_HEADER_ASSERT # ------------------------ AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT], [AC_CACHE_CHECK([whether $CC supports assert without backlinking], [lt_cv_func_assert_works], [case $host in *-*-solaris*) if test "$GCC" = yes && test "$with_gnu_ld" != yes; then case `$CC --version 2>/dev/null` in [[12]].*) lt_cv_func_assert_works=no ;; *) lt_cv_func_assert_works=yes ;; esac fi ;; esac]) if test "x$lt_cv_func_assert_works" = xyes; then AC_CHECK_HEADERS(assert.h) fi ])# AC_LIBTOOL_HEADER_ASSERT # _LT_AC_CHECK_DLFCN # -------------------- AC_DEFUN([_LT_AC_CHECK_DLFCN], [AC_CHECK_HEADERS(dlfcn.h) ])# _LT_AC_CHECK_DLFCN # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE # --------------------------------- AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([AC_PROG_NM]) AC_REQUIRE([AC_OBJEXT]) # Check for command to grab the raw symbol name followed by C symbol from nm. AC_MSG_CHECKING([command to parse $NM output]) AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [dnl # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[[BCDEGRST]]' # Regexp to match symbols that can be accessed directly from C. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' # Transform the above into a raw symbol and a C symbol. symxfrm='\1 \2\3 \3' # Transform an extracted symbol line into a proper C declaration lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" # Define system-specific variables. case $host_os in aix*) symcode='[[BCDT]]' ;; cygwin* | mingw* | pw32*) symcode='[[ABCDGISTW]]' ;; hpux*) # Its linker distinguishes data from code symbols lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" ;; irix* | nonstopux*) symcode='[[BCDEGRST]]' ;; osf*) symcode='[[BCDEGQRST]]' ;; solaris* | sysv5*) symcode='[[BDT]]' ;; sysv4) symcode='[[DFNSTU]]' ;; esac # Handle CRLF in mingw tool chain opt_cr= case $host_os in mingw*) opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # If we're using GNU nm, then use its standard symbol codes. if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then symcode='[[ABCDGISTW]]' fi # Try without a prefix undercore, then with it. for ac_symprfx in "" "_"; do # Write the raw and C identifiers. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext < $nlist) && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if egrep ' nm_test_var$' "$nlist" >/dev/null; then if egrep ' nm_test_func$' "$nlist" >/dev/null; then cat < conftest.$ac_ext #ifdef __cplusplus extern "C" { #endif EOF # Now generate the symbol file. eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' cat <> conftest.$ac_ext #if defined (__STDC__) && __STDC__ # define lt_ptr void * #else # define lt_ptr char * # define const #endif /* The mapping between symbol names and symbols. */ const struct { const char *name; lt_ptr address; } lt_preloaded_symbols[[]] = { EOF sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext cat <<\EOF >> conftest.$ac_ext {0, (lt_ptr) 0} }; #ifdef __cplusplus } #endif EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext save_LIBS="$LIBS" save_CFLAGS="$CFLAGS" LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$no_builtin_flag" if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then pipe_works=yes fi LIBS="$save_LIBS" CFLAGS="$save_CFLAGS" else echo "cannot find nm_test_func in $nlist" >&AC_FD_CC fi else echo "cannot find nm_test_var in $nlist" >&AC_FD_CC fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC fi else echo "$progname: failed program was:" >&AC_FD_CC cat conftest.$ac_ext >&5 fi rm -f conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done ]) global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" if test -z "$lt_cv_sys_global_symbol_pipe"; then global_symbol_to_cdecl= global_symbol_to_c_name_address= else global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address" fi if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; then AC_MSG_RESULT(failed) else AC_MSG_RESULT(ok) fi ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE # _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR # --------------------------------- AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR], [# Find the correct PATH separator. Usually this is `:', but # DJGPP uses `;' like DOS. if test "X${PATH_SEPARATOR+set}" != Xset; then UNAME=${UNAME-`uname 2>/dev/null`} case X$UNAME in *-DOS) lt_cv_sys_path_separator=';' ;; *) lt_cv_sys_path_separator=':' ;; esac PATH_SEPARATOR=$lt_cv_sys_path_separator fi ])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR # _LT_AC_PROG_ECHO_BACKSLASH # -------------------------- # Add some code to the start of the generated configure script which # will find an echo command which doesn't interpret backslashes. AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], [ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], [AC_DIVERT_PUSH(NOTICE)]) _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR # Check that we are running under the correct shell. SHELL=${CONFIG_SHELL-/bin/sh} case X$ECHO in X*--fallback-echo) # Remove one level of quotation (which was required for Make). ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` ;; esac echo=${ECHO-echo} if test "X[$]1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X[$]1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then # Yippee, $echo works! : else # Restart under the correct shell. exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} fi if test "X[$]1" = X--fallback-echo; then # used as fallback echo shift cat </dev/null && echo_test_string="`eval $cmd`" && (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null then break fi done fi if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then : else # The Solaris, AIX, and Digital Unix default echo programs unquote # backslashes. This makes it impossible to quote backslashes using # echo "$something" | sed 's/\\/\\\\/g' # # So, first we look for a working echo in the user's PATH. IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR for dir in $PATH /usr/ucb; do if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$dir/echo" break fi done IFS="$save_ifs" if test "X$echo" = Xecho; then # We didn't find a better echo, so look for alternatives. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # This shell has a builtin print -r that does the trick. echo='print -r' elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && test "X$CONFIG_SHELL" != X/bin/ksh; then # If we have ksh, try running configure again with it. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} export ORIGINAL_CONFIG_SHELL CONFIG_SHELL=/bin/ksh export CONFIG_SHELL exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} else # Try using printf. echo='printf %s\n' if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # Cool, printf works : elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL export CONFIG_SHELL SHELL="$CONFIG_SHELL" export SHELL echo="$CONFIG_SHELL [$]0 --fallback-echo" elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$CONFIG_SHELL [$]0 --fallback-echo" else # maybe with a smaller string... prev=: for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null then break fi prev="$cmd" done if test "$prev" != 'sed 50q "[$]0"'; then echo_test_string=`eval $prev` export echo_test_string exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} else # Oops. We lost completely, so just stick with echo. echo=echo fi fi fi fi fi fi # Copy echo and quote the copy suitably for passing to libtool from # the Makefile, instead of quoting the original, which is used later. ECHO=$echo if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" fi AC_SUBST(ECHO) AC_DIVERT_POP ])# _LT_AC_PROG_ECHO_BACKSLASH # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) # ------------------------------------------------------------------ AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], [if test "$cross_compiling" = yes; then : [$4] else AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } exit (status); }] EOF if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) $1 ;; x$lt_dlneed_uscore) $2 ;; x$lt_unknown|x*) $3 ;; esac else : # compilation failed $3 fi fi rm -fr conftest* ])# _LT_AC_TRY_DLOPEN_SELF # AC_LIBTOOL_DLOPEN_SELF # ------------------- AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; cygwin* | mingw* | pw32*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; *) AC_CHECK_FUNC([shl_load], [lt_cv_dlopen="shl_load"], [AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], [AC_CHECK_FUNC([dlopen], [lt_cv_dlopen="dlopen"], [AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], [AC_CHECK_LIB([svld], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], [AC_CHECK_LIB([dld], [dld_link], [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) ]) ]) ]) ]) ]) ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" AC_CACHE_CHECK([whether a program can dlopen itself], lt_cv_dlopen_self, [dnl _LT_AC_TRY_DLOPEN_SELF( lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) ]) if test "x$lt_cv_dlopen_self" = xyes; then LDFLAGS="$LDFLAGS $link_static_flag" AC_CACHE_CHECK([whether a statically linked program can dlopen itself], lt_cv_dlopen_self_static, [dnl _LT_AC_TRY_DLOPEN_SELF( lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) ]) fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi ])# AC_LIBTOOL_DLOPEN_SELF AC_DEFUN([_LT_AC_LTCONFIG_HACK], [AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='sed -e s/^X//' sed_quote_subst='s/\([[\\"\\`$\\\\]]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Constants: rm="rm -f" # Global variables: default_ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except M$VC, # which needs '.lib'). libext=a ltmain="$ac_aux_dir/ltmain.sh" ofile="$default_ofile" with_gnu_ld="$lt_cv_prog_gnu_ld" need_locks="$enable_libtool_lock" old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$AR" && AR=ar test -z "$AR_FLAGS" && AR_FLAGS=cru test -z "$AS" && AS=as test -z "$CC" && CC=cc test -z "$DLLTOOL" && DLLTOOL=dlltool test -z "$LD" && LD=ld test -z "$LN_S" && LN_S="ln -s" test -z "$MAGIC_CMD" && MAGIC_CMD=file test -z "$NM" && NM=nm test -z "$OBJDUMP" && OBJDUMP=objdump test -z "$RANLIB" && RANLIB=: test -z "$STRIP" && STRIP=: test -z "$ac_objext" && ac_objext=o if test x"$host" != x"$build"; then ac_tool_prefix=${host_alias}- else ac_tool_prefix= fi # Transform linux* to *-*-linux-gnu*, to support old configure scripts. case $host_os in linux-gnu*) ;; linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` esac case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" ;; *) old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" fi # Allow CC to be a program name with arguments. set dummy $CC compiler="[$]2" ## FIXME: this should be a separate macro ## AC_MSG_CHECKING([for objdir]) rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. objdir=_libs fi rmdir .libs 2>/dev/null AC_MSG_RESULT($objdir) ## ## END FIXME ## FIXME: this should be a separate macro ## AC_ARG_WITH(pic, [ --with-pic try to use only PIC/non-PIC objects [default=use both]], pic_mode="$withval", pic_mode=default) test -z "$pic_mode" && pic_mode=default # We assume here that the value for lt_cv_prog_cc_pic will not be cached # in isolation, and that seeing it set (from the cache) indicates that # the associated values are set (in the cache) correctly too. AC_MSG_CHECKING([for $compiler option to produce PIC]) AC_CACHE_VAL(lt_cv_prog_cc_pic, [ lt_cv_prog_cc_pic= lt_cv_prog_cc_shlib= lt_cv_prog_cc_wl= lt_cv_prog_cc_static= lt_cv_prog_cc_no_builtin= lt_cv_prog_cc_can_build_shared=$can_build_shared if test "$GCC" = yes; then lt_cv_prog_cc_wl='-Wl,' lt_cv_prog_cc_static='-static' case $host_os in aix*) # Below there is a dirty hack to force normal static linking with -ldl # The problem is because libdl dynamically linked with both libc and # libC (AIX C++ library), which obviously doesn't included in libraries # list by gcc. This cause undefined symbols with -static flags. # This hack allows C programs to be linked with "-static -ldl", but # not sure about C++ programs. lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_cv_prog_cc_pic='-fno-common' ;; cygwin* | mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_cv_prog_cc_pic='-DDLL_EXPORT' ;; sysv4*MP*) if test -d /usr/nec; then lt_cv_prog_cc_pic=-Kconform_pic fi ;; *) lt_cv_prog_cc_pic='-fPIC' ;; esac else # PORTME Check for PIC flags for the system compiler. case $host_os in aix3* | aix4* | aix5*) lt_cv_prog_cc_wl='-Wl,' # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_cv_prog_cc_static='-Bstatic' else lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' fi ;; hpux9* | hpux10* | hpux11*) # Is there a better lt_cv_prog_cc_static that works with the bundled CC? lt_cv_prog_cc_wl='-Wl,' lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" lt_cv_prog_cc_pic='+Z' ;; irix5* | irix6* | nonstopux*) lt_cv_prog_cc_wl='-Wl,' lt_cv_prog_cc_static='-non_shared' # PIC (with -KPIC) is the default. ;; cygwin* | mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_cv_prog_cc_pic='-DDLL_EXPORT' ;; newsos6) lt_cv_prog_cc_pic='-KPIC' lt_cv_prog_cc_static='-Bstatic' ;; osf3* | osf4* | osf5*) # All OSF/1 code is PIC. lt_cv_prog_cc_wl='-Wl,' lt_cv_prog_cc_static='-non_shared' ;; sco3.2v5*) lt_cv_prog_cc_pic='-Kpic' lt_cv_prog_cc_static='-dn' lt_cv_prog_cc_shlib='-belf' ;; solaris*) lt_cv_prog_cc_pic='-KPIC' lt_cv_prog_cc_static='-Bstatic' lt_cv_prog_cc_wl='-Wl,' ;; sunos4*) lt_cv_prog_cc_pic='-PIC' lt_cv_prog_cc_static='-Bstatic' lt_cv_prog_cc_wl='-Qoption ld ' ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) lt_cv_prog_cc_pic='-KPIC' lt_cv_prog_cc_static='-Bstatic' lt_cv_prog_cc_wl='-Wl,' ;; uts4*) lt_cv_prog_cc_pic='-pic' lt_cv_prog_cc_static='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_cv_prog_cc_pic='-Kconform_pic' lt_cv_prog_cc_static='-Bstatic' fi ;; *) lt_cv_prog_cc_can_build_shared=no ;; esac fi ]) if test -z "$lt_cv_prog_cc_pic"; then AC_MSG_RESULT([none]) else AC_MSG_RESULT([$lt_cv_prog_cc_pic]) # Check to make sure the pic_flag actually works. AC_MSG_CHECKING([if $compiler PIC flag $lt_cv_prog_cc_pic works]) AC_CACHE_VAL(lt_cv_prog_cc_pic_works, [dnl save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" AC_TRY_COMPILE([], [], [dnl case $host_os in hpux9* | hpux10* | hpux11*) # On HP-UX, both CC and GCC only warn that PIC is supported... then # they create non-PIC objects. So, if there were any warnings, we # assume that PIC is not supported. if test -s conftest.err; then lt_cv_prog_cc_pic_works=no else lt_cv_prog_cc_pic_works=yes fi ;; *) lt_cv_prog_cc_pic_works=yes ;; esac ], [dnl lt_cv_prog_cc_pic_works=no ]) CFLAGS="$save_CFLAGS" ]) if test "X$lt_cv_prog_cc_pic_works" = Xno; then lt_cv_prog_cc_pic= lt_cv_prog_cc_can_build_shared=no else lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" fi AC_MSG_RESULT([$lt_cv_prog_cc_pic_works]) fi ## ## END FIXME # Check for any special shared library compilation flags. if test -n "$lt_cv_prog_cc_shlib"; then AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries]) if echo "$old_CC $old_CFLAGS " | egrep -e "[[ ]]$lt_cv_prog_cc_shlib[[ ]]" >/dev/null; then : else AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure]) lt_cv_prog_cc_can_build_shared=no fi fi ## FIXME: this should be a separate macro ## AC_MSG_CHECKING([if $compiler static flag $lt_cv_prog_cc_static works]) AC_CACHE_VAL([lt_cv_prog_cc_static_works], [dnl lt_cv_prog_cc_static_works=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" AC_TRY_LINK([], [], [lt_cv_prog_cc_static_works=yes]) LDFLAGS="$save_LDFLAGS" ]) # Belt *and* braces to stop my trousers falling down: test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= AC_MSG_RESULT([$lt_cv_prog_cc_static_works]) pic_flag="$lt_cv_prog_cc_pic" special_shlib_compile_flags="$lt_cv_prog_cc_shlib" wl="$lt_cv_prog_cc_wl" link_static_flag="$lt_cv_prog_cc_static" no_builtin_flag="$lt_cv_prog_cc_no_builtin" can_build_shared="$lt_cv_prog_cc_can_build_shared" ## ## END FIXME ## FIXME: this should be a separate macro ## # Check to see if options -o and -c are simultaneously supported by compiler AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext]) AC_CACHE_VAL([lt_cv_compiler_c_o], [ $rm -r conftest 2>/dev/null mkdir conftest cd conftest echo "int some_variable = 0;" > conftest.$ac_ext mkdir out # According to Tom Tromey, Ian Lance Taylor reported there are C compilers # that will create temporary files in the current directory regardless of # the output directory. Thus, making CWD read-only will cause this test # to fail, enabling locking or at least warning the user not to do parallel # builds. chmod -w . save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" compiler_c_o=no if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings if test -s out/conftest.err; then lt_cv_compiler_c_o=no else lt_cv_compiler_c_o=yes fi else # Append any errors to the config.log. cat out/conftest.err 1>&AC_FD_CC lt_cv_compiler_c_o=no fi CFLAGS="$save_CFLAGS" chmod u+w . $rm conftest* out/* rmdir out cd .. rmdir conftest $rm -r conftest 2>/dev/null ]) compiler_c_o=$lt_cv_compiler_c_o AC_MSG_RESULT([$compiler_c_o]) if test x"$compiler_c_o" = x"yes"; then # Check to see if we can write to a .lo AC_MSG_CHECKING([if $compiler supports -c -o file.lo]) AC_CACHE_VAL([lt_cv_compiler_o_lo], [ lt_cv_compiler_o_lo=no save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -c -o conftest.lo" save_objext="$ac_objext" ac_objext=lo AC_TRY_COMPILE([], [int some_variable = 0;], [dnl # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then lt_cv_compiler_o_lo=no else lt_cv_compiler_o_lo=yes fi ]) ac_objext="$save_objext" CFLAGS="$save_CFLAGS" ]) compiler_o_lo=$lt_cv_compiler_o_lo AC_MSG_RESULT([$compiler_o_lo]) else compiler_o_lo=no fi ## ## END FIXME ## FIXME: this should be a separate macro ## # Check to see if we can do hard links to lock some files if needed hard_links="nottested" if test "$compiler_c_o" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user AC_MSG_CHECKING([if we can lock with hard links]) hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no AC_MSG_RESULT([$hard_links]) if test "$hard_links" = no; then AC_MSG_WARN([\`$CC' does not support \`-c -o', so \`make -j' may be unsafe]) need_locks=warn fi else need_locks=no fi ## ## END FIXME ## FIXME: this should be a separate macro ## if test "$GCC" = yes; then # Check to see if options -fno-rtti -fno-exceptions are supported by compiler AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions]) echo "int some_variable = 0;" > conftest.$ac_ext save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" compiler_rtti_exceptions=no AC_TRY_COMPILE([], [int some_variable = 0;], [dnl # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then compiler_rtti_exceptions=no else compiler_rtti_exceptions=yes fi ]) CFLAGS="$save_CFLAGS" AC_MSG_RESULT([$compiler_rtti_exceptions]) if test "$compiler_rtti_exceptions" = "yes"; then no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' else no_builtin_flag=' -fno-builtin' fi fi ## ## END FIXME ## FIXME: this should be a separate macro ## # See if the linker supports building shared libraries. AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries]) allow_undefined_flag= no_undefined_flag= need_lib_prefix=unknown need_version=unknown # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments archive_cmds= archive_expsym_cmds= old_archive_from_new_cmds= old_archive_from_expsyms_cmds= export_dynamic_flag_spec= whole_archive_flag_spec= thread_safe_flag_spec= hardcode_into_libs=no hardcode_libdir_flag_spec= hardcode_libdir_separator= hardcode_direct=no hardcode_minus_L=no hardcode_shlibpath_var=unsupported runpath_var= link_all_deplibs=unknown always_export_symbols=no export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms= # exclude_expsyms can be an egrep regular expression of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. exclude_expsyms="_GLOBAL_OFFSET_TABLE_" # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # See if GNU ld supports shared libraries. case $host_os in aix3* | aix4* | aix5*) # On AIX, the GNU linker is very broken # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. ld_shlibs=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. EOF ;; amigaos*) archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can use # them. ld_shlibs=no ;; beos*) if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs=no fi ;; cygwin* | mingw* | pw32*) # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' allow_undefined_flag=unsupported always_export_symbols=yes extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ test -f $output_objdir/impgen.exe || (cd $output_objdir && \ if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ else $CC -o impgen impgen.c ; fi)~ $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' # cygwin and mingw dlls have different entry points and sets of symbols # to exclude. # FIXME: what about values for MSVC? dll_entry=__cygwin_dll_entry@12 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ case $host_os in mingw*) # mingw values dll_entry=_DllMainCRTStartup@12 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ ;; esac # mingw and cygwin differ, and it's simplest to just exclude the union # of the two symbol sets. dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 # recent cygwin and mingw systems supply a stub DllMain which the user # can override, but on older systems we have to supply one (in ltdll.c) if test "x$lt_cv_need_dllmain" = "xyes"; then ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' else ltdll_obj= ltdll_cmds= fi # Extract the symbol export list from an `--export-all' def file, # then regenerate the def file from the symbol export list, so that # the compiled dll only exports the symbol export list. # Be careful not to strip the DATA tag left be newer dlltools. export_symbols_cmds="$ltdll_cmds"' $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is. # If DATA tags from a recent dlltool are present, honour them! archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname-def; else echo EXPORTS > $output_objdir/$soname-def; _lt_hint=1; cat $export_symbols | while read symbol; do set dummy \$symbol; case \[$]# in 2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; 4) echo " \[$]2 \[$]3 \[$]4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;; *) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;; esac; _lt_hint=`expr 1 + \$_lt_hint`; done; fi~ '"$ltdll_cmds"' $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris* | sysv5*) if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then ld_shlibs=no cat <&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. EOF elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; sunos4*) archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct=yes hardcode_shlibpath_var=no ;; linux*) if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac if test $supports_anon_versioning = yes; then archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' else $archive_expsym_cmds="$archive_cmds" fi else ld_shlibs=no fi ;; *) if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac if test "$ld_shlibs" = yes; then runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec='${wl}--export-dynamic' case $host_os in cygwin* | mingw* | pw32*) # dlltool doesn't understand --whole-archive et. al. whole_archive_flag_spec= ;; *) # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec= fi ;; esac fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag=unsupported always_export_symbols=yes archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test "$GCC" = yes && test -z "$link_static_flag"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. hardcode_direct=yes archive_cmds='' hardcode_libdir_separator=':' if test "$GCC" = yes; then case $host_os in aix4.[[012]]|aix4.[[012]].*) collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 hardcode_direct=yes else # We have old collect2 hardcode_direct=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi esac shared_flag='-shared' else # not using gcc if test "$host_cpu" = ia64; then shared_flag='${wl}-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall can do strange things, so it is better to # generate a list of symbols to export. always_export_symbols=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag='-berok' hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag="-z nodefs" archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" else hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. allow_undefined_flag='${wl}-berok' # This is a bit strange, but is similar to how AIX traditionally builds # it's shared libraries. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname' fi fi ;; amigaos*) archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # see comment about different semantics on the GNU ld section ld_shlibs=no ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_from_new_cmds='true' # FIXME: Should let the user specify the lib program. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' fix_srcfile_path='`cygpath -w "$srcfile"`' ;; darwin* | rhapsody*) case "$host_os" in rhapsody* | darwin1.[[012]]) allow_undefined_flag='-undefined suppress' ;; *) # Darwin 1.3 on allow_undefined_flag='-flat_namespace -undefined suppress' ;; esac # FIXME: Relying on posixy $() will cause problems for # cross-compilation, but unfortunately the echo tests do not # yet detect zsh echo's removal of \ escapes. Also zsh mangles # `"' quotes if we put them in here... so don't! archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)' # We need to add '_' to the symbols in $export_symbols first #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' hardcode_direct=yes hardcode_shlibpath_var=no whole_archive_flag_spec='-all_load $convenience' ;; freebsd1*) ld_shlibs=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd*) archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; hpux9* | hpux10* | hpux11*) case $host_os in hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;; *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; esac hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes hardcode_minus_L=yes # Not in the search PATH, but as the default # location of the library. export_dynamic_flag_spec='${wl}-E' ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec='-rpath $libdir' fi hardcode_libdir_separator=: link_all_deplibs=yes ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; newsos6) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: hardcode_shlibpath_var=no ;; openbsd*) hardcode_direct=yes hardcode_shlibpath_var=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' else case "$host_os" in openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-R$libdir' ;; *) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' #Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi hardcode_libdir_separator=: ;; sco3.2v5*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes export_dynamic_flag_spec='${wl}-Bexport' ;; solaris*) # gcc --version < 3.0 without binutils cannot create self contained # shared libraries reliably, requiring libgcc.a to resolve some of # the object symbols generated in some cases. Libraries that use # assert need libgcc.a to resolve __eprintf, for example. Linking # a copy of libgcc.a into every shared library to guarantee resolving # such symbols causes other problems: According to Tim Van Holder # , C++ libraries end up with a separate # (to the application) exception stack for one thing. no_undefined_flag=' -z defs' if test "$GCC" = yes; then case `$CC --version 2>/dev/null` in [[12]].*) cat <&2 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably *** create self contained shared libraries on Solaris systems, without *** introducing a dependency on libgcc.a. Therefore, libtool is disabling *** -no-undefined support, which will at least allow you to build shared *** libraries. However, you may find that when you link such libraries *** into an application without using GCC, you have to manually add *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to *** upgrade to a newer version of GCC. Another option is to rebuild your *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. EOF no_undefined_flag= ;; esac fi # $CC -shared without GNU ld will not create a library from C++ # object files and a static libstdc++, better avoid it by now archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' hardcode_libdir_flag_spec='-R$libdir' hardcode_shlibpath_var=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # Supported since Solaris 2.6 (maybe 2.5.1?) whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; esac link_all_deplibs=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; sysv4) case $host_vendor in sni) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds='$CC -r -o $output$reload_objs' hardcode_direct=no ;; motorola) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var=no ;; sysv4.3*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no export_dynamic_flag_spec='-Bexport' ;; sysv5*) no_undefined_flag=' -z text' # $CC -shared without GNU ld will not create a library from C++ # object files and a static libstdc++, better avoid it by now archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' hardcode_libdir_flag_spec= hardcode_shlibpath_var=no runpath_var='LD_RUN_PATH' ;; uts4*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; dgux*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs=yes fi ;; sysv4.2uw2*) archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=no hardcode_shlibpath_var=no hardcode_runpath_var=yes runpath_var=LD_RUN_PATH ;; sysv5uw7* | unixware7*) no_undefined_flag='${wl}-z ${wl}text' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' fi runpath_var='LD_RUN_PATH' hardcode_shlibpath_var=no ;; *) ld_shlibs=no ;; esac fi AC_MSG_RESULT([$ld_shlibs]) test "$ld_shlibs" = no && can_build_shared=no ## ## END FIXME ## FIXME: this should be a separate macro ## # Check hardcoding attributes. AC_MSG_CHECKING([how to hardcode library paths into programs]) hardcode_action= if test -n "$hardcode_libdir_flag_spec" || \ test -n "$runpath_var"; then # We can hardcode non-existant directories. if test "$hardcode_direct" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$hardcode_shlibpath_var" != no && test "$hardcode_minus_L" != no; then # Linking always hardcodes the temporary library directory. hardcode_action=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action=unsupported fi AC_MSG_RESULT([$hardcode_action]) ## ## END FIXME ## FIXME: this should be a separate macro ## striplib= old_striplib= AC_MSG_CHECKING([whether stripping libraries is possible]) if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ## ## END FIXME reload_cmds='$LD$reload_flag -o $output$reload_objs' test -z "$deplibs_check_method" && deplibs_check_method=unknown ## FIXME: this should be a separate macro ## # PORTME Fill in your ld.so characteristics AC_MSG_CHECKING([dynamic linker characteristics]) library_names_spec= libname_spec='lib$name' soname_spec= postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib" sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib" case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}.so$versuffix $libname.a' shlibpath_var=LIBPATH # AIX has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}.so$major' ;; aix4* | aix5*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[[01]] | aix4.[[01]].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can # not hardcode correct soname into executable. Probably we can # add versioning support to collect2, so additional links can # be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}.so$major' fi shlibpath_var=LIBPATH fi hardcode_into_libs=yes ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' ;; beos*) library_names_spec='${libname}.so' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi4*) version_type=linux need_version=no library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' soname_spec='${libname}${release}.so$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" export_dynamic_flag_spec=-rdynamic # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32*) version_type=windows need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin*) library_names_spec='$libname.dll.a' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll' postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog .libs/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $rm \$dlpath' ;; yes,mingw*) library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"` ;; yes,pw32*) library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' ;; *) library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no # FIXME: Relying on posixy $() will cause problems for # cross-compilation, but unfortunately the echo tests do not # yet detect zsh echo's removal of \ escapes. library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd*) objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; *) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' soname_spec='${libname}${release}.so$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. dynamic_linker="$host_os dld.sl" version_type=sunos need_lib_prefix=no need_version=no shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' soname_spec='${libname}${release}.sl$major' # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) version_type=irix ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}.so$major' library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" ;; # No shared lib support for Linux oldld, aout, or coff. linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) dynamic_linker=no ;; # This must be Linux ELF. linux-gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' soname_spec='${libname}${release}.so$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes case $host_cpu:$lt_cv_cc_64bit_output in powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes) sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64" sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64" ;; esac # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' # Find out which ABI we are using (multilib Linux x86_64 hack). libsuff= case "$host_cpu" in x86_64*) echo '[#]line __oline__ "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.$ac_objext` in *64-bit*) libsuff=64 ;; esac fi rm -rf conftest* ;; *) ;; esac sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' soname_spec='${libname}${release}.so$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; openbsd*) version_type=sunos need_lib_prefix=no need_version=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case "$host_os" in openbsd2.[[89]] | openbsd2.[[89]].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH ;; os2*) libname_spec='$name' need_lib_prefix=no library_names_spec='$libname.dll $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_version=no soname_spec='${libname}${release}.so$major' library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" hardcode_into_libs=yes ;; sco3.2v5*) version_type=osf soname_spec='${libname}${release}.so$major' library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' shlibpath_var=LD_LIBRARY_PATH ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' soname_spec='${libname}${release}.so$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) version_type=linux library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' soname_spec='${libname}${release}.so$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no export_dynamic_flag_spec='${wl}-Blargedynsym' runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; uts4*) version_type=linux library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' soname_spec='${libname}${release}.so$major' shlibpath_var=LD_LIBRARY_PATH ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' soname_spec='${libname}${release}.so$major' shlibpath_var=LD_LIBRARY_PATH ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' soname_spec='$libname.so.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; *) dynamic_linker=no ;; esac AC_MSG_RESULT([$dynamic_linker]) test "$dynamic_linker" = no && can_build_shared=no ## ## END FIXME ## FIXME: this should be a separate macro ## # Report the final consequences. AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) ## ## END FIXME ## FIXME: this should be a separate macro ## AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case "$host_os" in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix4*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) ## ## END FIXME ## FIXME: this should be a separate macro ## AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) ## ## END FIXME if test "$hardcode_action" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi AC_LIBTOOL_DLOPEN_SELF ## FIXME: this should be a separate macro ## if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. AC_MSG_CHECKING([whether -lc should be explicitly linked in]) AC_CACHE_VAL([lt_cv_archive_cmds_need_lc], [$rm conftest* echo 'static int dummy;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_cv_prog_cc_wl compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest save_allow_undefined_flag=$allow_undefined_flag allow_undefined_flag= if AC_TRY_EVAL(archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) then lt_cv_archive_cmds_need_lc=no else lt_cv_archive_cmds_need_lc=yes fi allow_undefined_flag=$save_allow_undefined_flag else cat conftest.err 1>&5 fi]) AC_MSG_RESULT([$lt_cv_archive_cmds_need_lc]) ;; esac fi need_lc=${lt_cv_archive_cmds_need_lc-yes} ## ## END FIXME ## FIXME: this should be a separate macro ## # The second clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then : else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. test -f Makefile && make "$ltmain" fi if test -f "$ltmain"; then trap "$rm \"${ofile}T\"; exit 1" 1 2 15 $rm -f "${ofile}T" echo creating $ofile # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS SED \ AR AR_FLAGS CC LD LN_S NM SHELL \ reload_flag reload_cmds wl \ pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ thread_safe_flag_spec whole_archive_flag_spec libname_spec \ library_names_spec soname_spec \ RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ old_striplib striplib file_magic_cmd export_symbols_cmds \ deplibs_check_method allow_undefined_flag no_undefined_flag \ finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ global_symbol_to_c_name_address \ hardcode_libdir_flag_spec hardcode_libdir_separator \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do case $var in reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ postinstall_cmds | postuninstall_cmds | \ finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done cat <<__EOF__ > "${ofile}T" #! $SHELL # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996-2000 Free Software Foundation, Inc. # Originally by Gordon Matzigkeit , 1996 # # 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # A sed that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="${SED} -e s/^X//" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi # ### BEGIN LIBTOOL CONFIG # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$need_lc # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # The default C compiler. CC=$lt_CC # Is the compiler the GNU C compiler? with_gcc=$GCC # The linker used to build libraries. LD=$lt_LD # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_wl # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_pic_flag pic_mode=$pic_mode # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_compiler_c_o # Can we write directly to a .lo ? compiler_o_lo=$lt_compiler_o_lo # Must we lock files when doing compilation ? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_link_static_flag # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_no_builtin_flag # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds archive_expsym_cmds=$lt_archive_expsym_cmds postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path="$fix_srcfile_path" # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms # Symbols that must always be exported. include_expsyms=$lt_include_expsyms # ### END LIBTOOL CONFIG __EOF__ case $host_os in aix3*) cat <<\EOF >> "${ofile}T" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi EOF ;; esac case $host_os in cygwin* | mingw* | pw32* | os2*) cat <<'EOF' >> "${ofile}T" # This is a source program that is used to create dlls on Windows # Don't remove nor modify the starting and closing comments # /* ltdll.c starts here */ # #define WIN32_LEAN_AND_MEAN # #include # #undef WIN32_LEAN_AND_MEAN # #include # # #ifndef __CYGWIN__ # # ifdef __CYGWIN32__ # # define __CYGWIN__ __CYGWIN32__ # # endif # #endif # # #ifdef __cplusplus # extern "C" { # #endif # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); # #ifdef __cplusplus # } # #endif # # #ifdef __CYGWIN__ # #include # DECLARE_CYGWIN_DLL( DllMain ); # #endif # HINSTANCE __hDllInstance_base; # # BOOL APIENTRY # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) # { # __hDllInstance_base = hInst; # return TRUE; # } # /* ltdll.c ends here */ # This is a source program that is used to create import libraries # on Windows for dlls which lack them. Don't remove nor modify the # starting and closing comments # /* impgen.c starts here */ # /* Copyright (C) 1999-2000 Free Software Foundation, Inc. # # This file is part of GNU libtool. # # 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # */ # # #include /* for printf() */ # #include /* for open(), lseek(), read() */ # #include /* for O_RDONLY, O_BINARY */ # #include /* for strdup() */ # # /* O_BINARY isn't required (or even defined sometimes) under Unix */ # #ifndef O_BINARY # #define O_BINARY 0 # #endif # # static unsigned int # pe_get16 (fd, offset) # int fd; # int offset; # { # unsigned char b[2]; # lseek (fd, offset, SEEK_SET); # read (fd, b, 2); # return b[0] + (b[1]<<8); # } # # static unsigned int # pe_get32 (fd, offset) # int fd; # int offset; # { # unsigned char b[4]; # lseek (fd, offset, SEEK_SET); # read (fd, b, 4); # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); # } # # static unsigned int # pe_as32 (ptr) # void *ptr; # { # unsigned char *b = ptr; # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); # } # # int # main (argc, argv) # int argc; # char *argv[]; # { # int dll; # unsigned long pe_header_offset, opthdr_ofs, num_entries, i; # unsigned long export_rva, export_size, nsections, secptr, expptr; # unsigned long name_rvas, nexp; # unsigned char *expdata, *erva; # char *filename, *dll_name; # # filename = argv[1]; # # dll = open(filename, O_RDONLY|O_BINARY); # if (dll < 1) # return 1; # # dll_name = filename; # # for (i=0; filename[i]; i++) # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') # dll_name = filename + i +1; # # pe_header_offset = pe_get32 (dll, 0x3c); # opthdr_ofs = pe_header_offset + 4 + 20; # num_entries = pe_get32 (dll, opthdr_ofs + 92); # # if (num_entries < 1) /* no exports */ # return 1; # # export_rva = pe_get32 (dll, opthdr_ofs + 96); # export_size = pe_get32 (dll, opthdr_ofs + 100); # nsections = pe_get16 (dll, pe_header_offset + 4 +2); # secptr = (pe_header_offset + 4 + 20 + # pe_get16 (dll, pe_header_offset + 4 + 16)); # # expptr = 0; # for (i = 0; i < nsections; i++) # { # char sname[8]; # unsigned long secptr1 = secptr + 40 * i; # unsigned long vaddr = pe_get32 (dll, secptr1 + 12); # unsigned long vsize = pe_get32 (dll, secptr1 + 16); # unsigned long fptr = pe_get32 (dll, secptr1 + 20); # lseek(dll, secptr1, SEEK_SET); # read(dll, sname, 8); # if (vaddr <= export_rva && vaddr+vsize > export_rva) # { # expptr = fptr + (export_rva - vaddr); # if (export_rva + export_size > vaddr + vsize) # export_size = vsize - (export_rva - vaddr); # break; # } # } # # expdata = (unsigned char*)malloc(export_size); # lseek (dll, expptr, SEEK_SET); # read (dll, expdata, export_size); # erva = expdata - export_rva; # # nexp = pe_as32 (expdata+24); # name_rvas = pe_as32 (expdata+32); # # printf ("EXPORTS\n"); # for (i = 0; i> "${ofile}T" || (rm -f "${ofile}T"; exit 1) mv -f "${ofile}T" "$ofile" || \ (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") chmod +x "$ofile" fi ## ## END FIXME ])# _LT_AC_LTCONFIG_HACK # AC_LIBTOOL_DLOPEN - enable checks for dlopen support AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])]) # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])]) # AC_ENABLE_SHARED - implement the --enable-shared flag # Usage: AC_ENABLE_SHARED[(DEFAULT)] # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to # `yes'. AC_DEFUN([AC_ENABLE_SHARED], [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE(shared, changequote(<<, >>)dnl << --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT], changequote([, ])dnl [p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," for pkg in $enableval; do if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$ac_save_ifs" ;; esac], enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl ]) # AC_DISABLE_SHARED - set the default shared flag to --disable-shared AC_DEFUN([AC_DISABLE_SHARED], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_SHARED(no)]) # AC_ENABLE_STATIC - implement the --enable-static flag # Usage: AC_ENABLE_STATIC[(DEFAULT)] # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to # `yes'. AC_DEFUN([AC_ENABLE_STATIC], [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE(static, changequote(<<, >>)dnl << --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT], changequote([, ])dnl [p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," for pkg in $enableval; do if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$ac_save_ifs" ;; esac], enable_static=AC_ENABLE_STATIC_DEFAULT)dnl ]) # AC_DISABLE_STATIC - set the default static flag to --disable-static AC_DEFUN([AC_DISABLE_STATIC], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_STATIC(no)]) # AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)] # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to # `yes'. AC_DEFUN([AC_ENABLE_FAST_INSTALL], [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE(fast-install, changequote(<<, >>)dnl << --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT], changequote([, ])dnl [p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," for pkg in $enableval; do if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$ac_save_ifs" ;; esac], enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl ]) # AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install AC_DEFUN([AC_DISABLE_FAST_INSTALL], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_FAST_INSTALL(no)]) # AC_LIBTOOL_PICMODE - implement the --with-pic flag # Usage: AC_LIBTOOL_PICMODE[(MODE)] # Where MODE is either `yes' or `no'. If omitted, it defaults to # `both'. AC_DEFUN([AC_LIBTOOL_PICMODE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl pic_mode=ifelse($#,1,$1,default)]) # AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library AC_DEFUN([AC_PATH_TOOL_PREFIX], [AC_MSG_CHECKING([for $1]) AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, [case $MAGIC_CMD in /*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; ?:/*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. ;; *) ac_save_MAGIC_CMD="$MAGIC_CMD" IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" dnl $ac_dummy forces splitting on constant user-supplied paths. dnl POSIX.2 word splitting is done only on the output of word expansions, dnl not every word. This closes a longstanding sh security hole. ac_dummy="ifelse([$2], , $PATH, [$2])" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$1; then lt_cv_path_MAGIC_CMD="$ac_dir/$1" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | egrep "$file_magic_regex" > /dev/null; then : else cat <&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org EOF fi ;; esac fi break fi done IFS="$ac_save_ifs" MAGIC_CMD="$ac_save_MAGIC_CMD" ;; esac]) MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then AC_MSG_RESULT($MAGIC_CMD) else AC_MSG_RESULT(no) fi ]) # AC_PATH_MAGIC - find a file program which can recognise a shared library AC_DEFUN([AC_PATH_MAGIC], [AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH) if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH) else MAGIC_CMD=: fi fi ]) # AC_PROG_LD - find the path to the GNU or non-GNU linker AC_DEFUN([AC_PROG_LD], [AC_ARG_WITH(gnu-ld, [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]], test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by GCC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]]* | [[A-Za-z]]:[[\\/]]*) re_direlt='/[[^/]][[^/]]*/\.\./' # Canonicalize the path of ld ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL(lt_cv_path_LD, [if test -z "$LD"; then IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then test "$with_gnu_ld" != no && break else test "$with_gnu_ld" != yes && break fi fi done IFS="$ac_save_ifs" else lt_cv_path_LD="$LD" # Let the user override the test with a path. fi]) LD="$lt_cv_path_LD" if test -n "$LD"; then AC_MSG_RESULT($LD) else AC_MSG_RESULT(no) fi test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) AC_PROG_LD_GNU ]) # AC_PROG_LD_GNU - AC_DEFUN([AC_PROG_LD_GNU], [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, [# I'd rather use --version here, but apparently some GNU ld's only accept -v. if $LD -v 2>&1 &5; then lt_cv_prog_gnu_ld=yes else lt_cv_prog_gnu_ld=no fi]) with_gnu_ld=$lt_cv_prog_gnu_ld ]) # AC_PROG_LD_RELOAD_FLAG - find reload flag for linker # -- PORTME Some linkers may need a different reload flag. AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], [AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag, [lt_cv_ld_reload_flag='-r']) reload_flag=$lt_cv_ld_reload_flag test -n "$reload_flag" && reload_flag=" $reload_flag" ]) # AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies # -- PORTME fill in with the dynamic library characteristics AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], [AC_CACHE_CHECK([how to recognise dependent libraries], lt_cv_deplibs_check_method, [lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # `unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # which responds to the $file_magic_cmd with a given egrep regex. # If you have `file' or equivalent on your system and you're not sure # whether `pass_all' will *always* work, you probably want this one. case $host_os in aix4* | aix5*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi4*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin* | mingw* | pw32*) lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' lt_cv_file_magic_cmd='/usr/bin/file -L' case "$host_os" in rhapsody* | darwin1.[[012]]) lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` ;; *) # Darwin 1.3 on lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' ;; esac ;; freebsd*) if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; gnu*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20*|hpux11*) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; irix5* | irix6* | nonstopux*) case $host_os in irix5* | nonstopux*) # this will be overridden with pass_all, but let us keep it just in case lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" ;; *) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac # this will be overridden with pass_all, but let us keep it just in case lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1" ;; esac lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` lt_cv_deplibs_check_method=pass_all ;; # This must be Linux ELF. linux-gnu*) case $host_cpu in alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*) lt_cv_deplibs_check_method=pass_all ;; *) # glibc up to 2.1.1 does not perform some relocations on ARM lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; esac lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; openbsd*) lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object' else lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' fi ;; osf3* | osf4* | osf5*) # this will be overridden with pass_all, but let us keep it just in case lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' lt_cv_file_magic_test_file=/shlib/libc.so lt_cv_deplibs_check_method=pass_all ;; sco3.2v5*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all lt_cv_file_magic_test_file=/lib/libc.so ;; sysv5uw[[78]]* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; esac ;; esac ]) file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method ]) # AC_PROG_NM - find the path to a BSD-compatible name lister AC_DEFUN([AC_PROG_NM], [AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl AC_MSG_CHECKING([for BSD-compatible nm]) AC_CACHE_VAL(lt_cv_path_NM, [if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do test -z "$ac_dir" && ac_dir=. tmp_nm=$ac_dir/${ac_tool_prefix}nm if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then lt_cv_path_NM="$tmp_nm -B" break elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then lt_cv_path_NM="$tmp_nm -p" break else lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags fi fi done IFS="$ac_save_ifs" test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm fi]) NM="$lt_cv_path_NM" AC_MSG_RESULT([$NM]) ]) # AC_CHECK_LIBM - check for math library AC_DEFUN([AC_CHECK_LIBM], [AC_REQUIRE([AC_CANONICAL_HOST])dnl LIBM= case $host in *-*-beos* | *-*-cygwin* | *-*-pw32*) # These system don't have libm ;; *-ncr-sysv4.3*) AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") AC_CHECK_LIB(m, main, LIBM="$LIBM -lm") ;; *) AC_CHECK_LIB(m, main, LIBM="-lm") ;; esac ]) # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for # the libltdl convenience library and LTDLINCL to the include flags for # the libltdl header and adds --enable-ltdl-convenience to the # configure arguments. Note that LIBLTDL and LTDLINCL are not # AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not # provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed # with '${top_builddir}/' and LTDLINCL will be prefixed with # '${top_srcdir}/' (note the single quotes!). If your package is not # flat and you're not using automake, define top_builddir and # top_srcdir appropriately in the Makefiles. AC_DEFUN([AC_LIBLTDL_CONVENIENCE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl case $enable_ltdl_convenience in no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; "") enable_ltdl_convenience=yes ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; esac LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) # For backwards non-gettext consistent compatibility... INCLTDL="$LTDLINCL" ]) # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for # the libltdl installable library and LTDLINCL to the include flags for # the libltdl header and adds --enable-ltdl-install to the configure # arguments. Note that LIBLTDL and LTDLINCL are not AC_SUBSTed, nor is # AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed # libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed # with '${top_srcdir}/' (note the single quotes!). If your package is # not flat and you're not using automake, define top_builddir and # top_srcdir appropriately in the Makefiles. # In the future, this macro may have to be called after AC_PROG_LIBTOOL. AC_DEFUN([AC_LIBLTDL_INSTALLABLE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_CHECK_LIB(ltdl, main, [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], [if test x"$enable_ltdl_install" = xno; then AC_MSG_WARN([libltdl not installed, but installation disabled]) else enable_ltdl_install=yes fi ]) if test x"$enable_ltdl_install" = x"yes"; then ac_configure_args="$ac_configure_args --enable-ltdl-install" LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) else ac_configure_args="$ac_configure_args --enable-ltdl-install=no" LIBLTDL="-lltdl" LTDLINCL= fi # For backwards non-gettext consistent compatibility... INCLTDL="$LTDLINCL" ]) # old names AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) # This is just to silence aclocal about the macro not being used ifelse([AC_DISABLE_FAST_INSTALL]) ############################################################ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_SED. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # ############################################################ # LT_AC_PROG_SED # -------------- # Check for a fully-functional sed program, that truncates # as few characters as possible. Prefer GNU sed if found. AC_DEFUN([LT_AC_PROG_SED], [AC_MSG_CHECKING([for a sed that does not truncate output]) AC_CACHE_VAL(lt_cv_path_SED, [# Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_executable_p="test -f" 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_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext" fi done done done # Create a temporary directory, and hook for its removal unless debugging. $debug || { trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 trap '{ (exit 1); exit 1; }' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. : ${TMPDIR=/tmp} { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { tmp=$TMPDIR/sed$$-$RANDOM (umask 077 && mkdir $tmp) } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 { (exit 1); exit 1; } } _max=0 _count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for _sed in $_sed_list /usr/xpg4/bin/sed; do test ! -f ${_sed} && break cat /dev/null > "$tmp/sed.in" _count=0 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in" # Check for GNU sed and select it if it is found. if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then lt_cv_path_SED=${_sed} break fi while true; do cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp" mv "$tmp/sed.tmp" "$tmp/sed.in" cp "$tmp/sed.in" "$tmp/sed.nl" echo >>"$tmp/sed.nl" ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break # 40000 chars as input seems more than enough test $_count -gt 10 && break _count=`expr $_count + 1` if test $_count -gt $_max; then _max=$_count lt_cv_path_SED=$_sed fi done done rm -rf "$tmp" ]) if test "X$SED" != "X"; then lt_cv_path_SED=$SED else SED=$lt_cv_path_SED fi AC_MSG_RESULT([$SED]) ]) hexter-version_1.1.0/autogen.sh000077500000000000000000000013371325353653200165710ustar00rootroot00000000000000#!/bin/sh WANT_AUTOMAKE=1.7 export WANT_AUTOMAKE case `uname -s` in Linux) LIBTOOLIZE=libtoolize ACLOCALARGS='' ;; Darwin) LIBTOOLIZE=glibtoolize ACLOCALARGS='-I /usr/local/share/aclocal' ;; *) echo error: unrecognized OS exit ;; esac echo "=============== running libtoolize --force --copy" && $LIBTOOLIZE --force --copy && echo "=============== running aclocal" && aclocal $ACLOCALARGS && echo "=============== running autoheader" && autoheader && echo "=============== running automake --add-missing --foreign" && automake --add-missing --foreign && echo "=============== running autoconf" && autoconf && echo "=============== done" hexter-version_1.1.0/config.h.ac000066400000000000000000000007541325353653200165720ustar00rootroot00000000000000/* Name of package */ #undef PACKAGE /* 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 version of this package. */ #undef PACKAGE_VERSION /* Version number of package */ #undef VERSION hexter-version_1.1.0/configure.ac000066400000000000000000000071531325353653200170600ustar00rootroot00000000000000dnl Process this file with autoconf to produce a configure script. AC_INIT(hexter, 1.1.0, sean-at-smbolton-dot-com) AC_CONFIG_SRCDIR(src/hexter.c) AM_INIT_AUTOMAKE AM_CONFIG_HEADER(config.h) AC_PROG_CC AC_ENABLE_STATIC(no) AC_ENABLE_SHARED(yes) AC_PROG_LIBTOOL AC_C_BIGENDIAN AC_ARG_WITH(textui, AC_HELP_STRING([--with-textui], [build text-only user interface]), [ if test $withval = "yes"; then with_textui=yes ; else with_textui=no ; fi ], with_textui=no) AC_ARG_WITH(gtk2, AC_HELP_STRING([--with-gtk2], [build GTK+ 2.0 user interface]), [ if test $withval = "yes"; then try_gtk2=yes ; else try_gtk2=no ; fi ], try_gtk2=yes) dnl Check for GTK if test "x${try_gtk2}" = 'xyes'; then AM_PATH_GTK_2_0(2.4.0, with_gtk2=yes, with_gtk2=no) fi if test "x${with_gtk2}" = 'xyes'; then AC_DEFINE(BUILD_GTKUI, 1, Define to 1 if building the GTK user interface) fi dnl Text UI if test "x${with_textui}" = 'xyes'; then dnl Check for readline and (n)curses/termcap AC_CHECK_HEADER([readline/readline.h], , AC_MSG_ERROR([error: no readline.h found])) AC_CHECK_HEADER([readline/history.h], , AC_MSG_ERROR([error: no history.h found])) READLINE_LIBS='' AC_CHECK_LIB(readline, readline, READLINE_LIBS='-lreadline -lcurses',, [-lcurses]) if test "x$READLINE_LIBS" = 'x'; then dnl cache doesn't consider OTHER-LIBRARIES: unset ac_cv_lib_readline_readline AC_CHECK_LIB(readline, readline, READLINE_LIBS='-lreadline -ltermcap',, [-ltermcap]) fi if test "x$READLINE_LIBS" = 'x'; then AC_MSG_ERROR([error: could not link readline libraries]) fi AC_SUBST(READLINE_LIBS) AC_DEFINE(BUILD_TEXTUI, 1, Define to 1 if building the text-only user interface) fi AM_CONDITIONAL(BUILD_TEXTUI, test "x${with_textui}" = 'xyes') AM_CONDITIONAL(BUILD_GTKUI, test "x${with_gtk2}" = 'xyes') dnl floating point AC_ARG_ENABLE(floating-point, AC_HELP_STRING([--enable-floating-point], [enable floating point rendering, instead of fixed point, default=no]), [ if test $enableval = "yes"; then AC_DEFINE(HEXTER_USE_FLOATING_POINT, 1, [Define to 1 to enable floating-point rendering.]) fi ], enable_floating_point=no) dnl Check for LADSPA AC_CHECK_HEADERS(ladspa.h) dnl Require DSSI and liblo PKG_CHECK_MODULES(MODULE, dssi >= 0.4 liblo >= 0.12) dnl OS specific checks case "${host_os}" in darwin*) darwin=yes PKG_CHECK_MODULES(ALSA, libdssialsacompat) AC_DEFINE(MIDI_COREMIDI, 1, [Define for CoreMIDI MIDI support]) ;; freebsd*) darwin=no PKG_CHECK_MODULES(ALSA, libdssialsacompat) ;; *) darwin=no PKG_CHECK_MODULES(ALSA, alsa) AC_DEFINE(MIDI_ALSA, 1, [Define for ALSA MIDI support]) ;; esac AM_CONDITIONAL(DARWIN, test x$darwin = xyes) dnl Use lotsa flags if we have gcc. CFLAGS="$CFLAGS $ALSA_CFLAGS $MODULE_CFLAGS" LDFLAGS="$LDFLAGS $MODULE_LIBS" changequote(,)dnl if test "x$GCC" = "xyes"; then case " $CFLAGS " in *[\ \ ]-Wall[\ \ ]*) ;; *) CFLAGS="$CFLAGS -Wall" ;; esac case " $CFLAGS " in *[\ \ ]-O[1-9][\ \ ]*) ;; *) CFLAGS="$CFLAGS -O2" ;; esac case " $CFLAGS " in *[\ \ ]-ffast-math[\ \ ]*) ;; *) CFLAGS="$CFLAGS -fomit-frame-pointer -funroll-loops -finline-functions -ffast-math" ;; esac fi changequote([,])dnl AC_OUTPUT([ Makefile src/Makefile ]) echo "====== hexter ${PACKAGE_VERSION} configured ======" echo "Floating point render enabled: $enable_floating_point" echo "Building GTK 2.0 user interface: $with_gtk2" echo "Building text-only user interface: $with_textui" hexter-version_1.1.0/doc/000077500000000000000000000000001325353653200153315ustar00rootroot00000000000000hexter-version_1.1.0/doc/hexter-screenshot_main.jpg000066400000000000000000003354771325353653200225340ustar00rootroot00000000000000JFIF``Created with GIMPC  !"$"$C#"g !1"AU23QTVat#567RSWuBdfqrs$8Dew4Gbv%CEc&31!AQa"2BRq#3$r ?hi+Tr\HDhJS@RI9rPZGR (#L(oEU}/Ƽ:?;2v+ҶQ gsOYOgͮ\-\>lW8qX˅?7c,ϛNY<g=6{b!^خ|Gϙ>Yd|v2+?+ 9X̟,݌x {>m;d|t{b|GOBˤskގrR eZx {>mKoڕdza{VLydl^({yV4߭[:9[EBjSqՁcĬ"rïOT#.7Ed|6lS'OِK펄%gj'pz[QHۼF bHX+D-do۞){8:~Cq.!EKSRݒJq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7OVVQh]ͶPn$#'01Q?R%ԧFgIq8G*Li+e*u,׃Ƶ-cMR/P,9Y3yܜ偓j;S$zzI.>B-Tm7Y{Lmˇ远ip i2wfH 3nB+[CO7{X%Ku.r_^5g/}|٩Knn\?ECMˇ远kOϖ^5?;LeSLܸ~ކ9{֟'{,j~2wf-p 7.r?N>Y{d}3嗾M2[sr//zn\?ECZ|٩g/}d_^4ܸ~ކ;LeSϖ^54mˇ远ip i2wf'{,jiۛ9{r//zd}3嗾ON>Y{%7.r_^5g/}|٩Knn\?ECMˇ远kOϖ^5?;LeSLܸ~ކ9{֟'{,j~2wf-p 7.r?N>Y{d}3嗾M2[sr//zn\?ECZ|٩g/}d_^4ܸ~ކ;LeSϖ^54mˇ远ip i2wf'{,jiۛ9{r//zd}3嗾ON>Y{%7.r_^5g/}|٩Knn\?ECMˇ远kOϖ^5?;LeSLܸ~ކ9{֟'{,j~2wf-p 7.r?N>Y{d}3嗾M2[sr//zn\?ECZ|٩g/}d_^4ܸ~ކ;LeSϖ^54mˇ远ip i2wf'{,jiۛ9{r//zd}3嗾ON>Y{%7.r_^5g/}|٩Knn\?ECMˇ远kOϖ^5?;LeSLܸ~ކ9{֟'{,j~2wf-p 7.r?N>Y{d}3嗾M2[sr//zn\?ECZ|٩g/}d_^4ܸ~ކ;LeSϖ^54mˇ远ip i2wf'{,jiۛ9{r//zd}3嗾ON>Y{%7.r_^5g/}|٩Knn\?ECMˇ远kq2ӊd)jV󮥤1V ꭟN>Y{%7.rm5EC̴#; dh~2wfLji!Ҕ((((((((((((((((((((((((((((((((((((((?hexter-version_1.1.0/extra/000077500000000000000000000000001325353653200157075ustar00rootroot00000000000000hexter-version_1.1.0/extra/default_patches.dx7000066400000000000000000000216001325353653200214650ustar00rootroot00000000000000_2c_)sO_2c_, c_2c_;Y_2c_,; c_2#NcK$2;K"6`CcK,Sccccc2222 Elec Pianoc)9,c:?c,c"cc#90c: ;c90cRcbcZcc8bcZcc8cccc2222/0FB:PfVibe Z chGZ*(cV c_2c_[O_2c_ a_0#ZcK;M8bBcWS^cccc2222# FatThinE.P_2c_)sO_2c_c_2c_;Y_2c_;c_2#NcK;:`CcKSc^C_<2222"!8E.PIANO 1 Z46c<:<_N9c_;caD 6cQ; _6cP$$;c_c6ccK;J`6cK;c^C_<2222"!E.PIANO 3 */$c5;BZD+_Z'S; Fa cV0`;aZ2cU$D;G _2cK :V`2c>; c^C_<2222"!E.GRAND 1 ccK 5RQ:$'c0B5]:Q-cNEcQccc/ J=9ccK MWQ0cRU,c^C_<2222#@PIANO 1 ^*c\p:H*c\ LL E(@ +cXGEOA +cX34MB=@7cR`9PWF .cZF(>ccccc1222#A.Piano1.5_HGcca[b@79W _/cZS S_HGcca[b@.9c_/cZ[U_HGcca[b9c_/cZ+Ycccc2222 # $HARPSICH. c0c2c ' =>PU2cZscPU2cZkcPU+2cJ' <NPU2cZ' :ccc2c' :Fcccc2222 VIBES AbM7NN8Wb@R06.8aZ?RR08[b .cP;cb.2cP6.<< b.cP;ccccc2222!A.MALLET AcAUIc$3qU c1N2c qccJUY"%c:ccN%c 0cc?ccR2IcVc cN%c ccccc0222#1CARIBIC 2 c=72cPD;c'''c<cc=72cP<9c'''cDcccccccc8ccccccc8cccc2222#MARIMBA Q7NN)8KcV7`N)8OcIR06.8^_21)c\;ccGR06.8c_+15c\:c^C_<2222"!0XYLOPHONE bWWV ;R(__6c`Y+J_\Q`ccI?,`cV? J` 1c.=cbcZcc8bcZcc8cccc222230FB:PluckGt^J*cW#'0:M^P'*cW2c:NZ#2cWRO^P5*c_7":LZL4c^L<2:NZN1c_:ccccc2222 LOTUS c6Zc8^cPZcccH^cPZccc`^cP6RcccX^2cZcca ^cPZccc(^KPK<2222#@E.ORGAN 1 ^PZccc8`2^PZccc8`^PZccc``[P6RcccX`2^Zcca c^PZccc(cKPK<2222 b &HAMM ORG7 c8cc'cc ;cc*Gcccc;cc*Gcccc;ccc*Gcccc;cc*Gcccc3cc*Gcccc;ccccc2222.cCLIC.ORGDWc*IcB Xc9-BccB X ccBccB cccBcc2 cb*Ic2 X bcBcc2 Xcccc2222/0JOrg Combo?b.bcbLQ3b.acb(04W;bMbcb<>;b3bcb4[cPb.acb2<^3b.acb N:ccccc2222 $0PIPES AYPAccc<8:XDKccc< a&)ccF==;)"GcF56;Gccc=K;cGVVe>a!Gc^Hccccc2222#1E.BASS Fix^87]9Ucc4K? >Z*7Z=] X` OA> ccc)?P_>:c_ $9?c^C_<2222#0 BASS 1 27`aCWc3cJ" <KP'5]9;cI aNs D%*2c)#9PK%?cF0 ;c^C_<2222!( BASS 2 b+cX(<6$;cZ?U5S>Ac$9=c^C_<2222#0 FUNK-BASS1c.!c]W86c. c]W(Oc.,c]WTc!,c\3 P c&c.+c]WhTc!,c\3 Hc8cccc2222&(a-ha TOM b.cZ8RbcZFbcZPb1cZ8cb'cTpTbcc7ccc8ccccc2222#1SKI :L c\\XV8I -c__ R/J 1cbbXLc 3c\\hcB -cccQc8 3bbbccccc2222JUMP /!Qcp^- &QcpQ- QcpF08 -ccapc-QcT<7 -ccaccccc2222 > ) FILTER EG bcc(ccc8Jbcc(ccc8Gbcc(ccc8Jbcc4ccc8cbcc(cccpObcc4ccc8ccccc2222#1--ANALOG--U?c`\63Qc<'-c`69c% $c`\6+Uc"#c\YOc.c]Wc X/!#c\Tc)^C_<2222&!G( ORCHESTRALc*Gc88-8LcLcGcX`'8bcLcGcX`'8ccLcGcX`'8cc*Gc88-8NcLcGcX`'8]T__<2222%8SYN-LEAD 2c*-Gc88-8LcLcGcX`'8bcLcGcX`'8ccLcGcX`'8cc*5Gc88-8NcLcGcX`'8]T__<2222%HSYN-LEAD 4H375@=XUacc1122 '#[FEM. CHOIRHL c\8FLI c\8B1J bb$b8L3 /c\h\Q c\J08 /bb$b8\T__<2222Q( STRINGS 2 c*2;ccc!-`,c17.cZP&RM=#cbZ. ;W58c_\2cccba'L)-caV4c W^0322#  VIOLINS A5@,6FQ@7::5C&6V\T:O `6c\Y:K2+#)^aa,P<:cYC3RZW9V4+^ba:ccccc2222! $ CELLOS BIF<cca ;/UFacA< )6_\; bWWV ;T__c`Y 3D< FcZa A`cccc2222 #2c8Clarinet c@b=cC4. XS5A&=c5+88=6ccZ\K=CFA]Yb)(b^C_<2222 FLUTE 1 2!.a_P":T949b_ :c949b_ :c949b_ :c2K c`$" iY2K ,c_$ccccc2222&( PofL Brass1cDbb['62<RM$)Gcbb'@bM$)Gcbb'8cMLRGcbb'(c>3GR_`pVHLcGcX`'pbT__<2222%8BRASS 1 M8Fc?O072b=>0FB\25=>8O.#2cVV9M%"FU:F77cVV:c^C_<2222#0 BRASS 3 M8Fc?O072b=>0FB\25=>8O.#8cVV9 O%"@U:C9-ccc 8c@+ ccc  T- -ccc'0 cccCc2222%Nasty KCP2 &RD! :P/E!R>*7( ScD< :c5cU4+;c]( $EX;$<Y2c#( ;\ N-bcY crGRAND PRIXcccccccpP%cccccccpccccccccP&cccccccccccccccpP&ccccccc8cccc2222 1TIMEWARP hexter-version_1.1.0/extra/dx7_roms.dx7000066400000000000000000000400001325353653200200670ustar00rootroot000000000000001cDbb['62<RM$)Gcbb'@bM$)Gcbb'8cMLRGcbb'(c>3GR_`pVHLcGcX`'pbT__<2222%8BRASS 1 c' GcbX38Pc' GcbQ'@cc' GcbQ'(cc' GcbQ' cc' GcbP3&pTc' GcbP3&pcT__<2222%8BRASS 2 M8Fc?O072b=>0FB\25=>8O.#2cVV9M%"FU:F77cVV:c^C_<2222#0 BRASS 3 56c\V:556V\V:T`6c\V:M,-6cUR8a8VKG1R\>69S-)cUF: c^C_<2222 STRINGS 1 HL c\8FLI c\8B1J bb$b8L3 /c\h\Q c\J08 /bb$b8\T__<2222Q( STRINGS 2 5@,6c\87:65C&6V\J:T`6c\Y:K24#)c\[3b<:ccG#3R\W69V4+c\Z:c^C_<2222. STRINGS 3 HL c\8RLI 7c\8P8J -bb$b8H6 /c\h`5. =c]ZSP8 -bb$b8cT__<2222?8 ORCHESTRA ccK 5RQ:$'c0B5]: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P.7c:[T__<2222#) STRINGS 6 ^bbN# !D2.<((WW]8OOD>(ccc)WQ:I20!(/cWYP`2OD>(ccc$b/*N8!(/cWYPcT__<2222!# STRINGS 7 56c\V?,56V\V>F`6c\V<BV1)c ;<cb02b68 Ic4-c;c^C_<2222!'STRINGS 8 1cDbb['6RM$)Gcbb'bM$)Gcbb'cMLRGcbb'c>3GR_`pSHLcGcX`'p]T__<2222%8BRASS 4 5 <5bPU6I\25 <5bPU69925 <5bPU6)T2>F6c\TZb25.<5b__6R>F6ca_:c^C_<2222"!G BRASS 5 <=Fcba9SDFc__:cDFc__:aDFc`_:c<FcZP:YDFc__:c^C_<2222"!8BRASS 6 BC162c>>8FB\25=>' 8V$$%3c6';cF%8c6':V;%:c6':cT__<2222#( BRASS 8 N_Fc`K7K9Y0 FcZa39U>_Fc`O0qZ2 FcZa39cC_Fc`O0CZ3 FcZa39c2222%*&c$RECORDER c b>cC48) AVb>bbp= &c=Y +8H68@\W$8c&c=Y +868@\W$^C_<2222*9($HARMONICA1c b>cC48) AVb>bbp= &c=Y +8H68@\cc$8c3c=Y +8c68@\W$c^C_<2222*9<($HRMNCA2 BCcH0ccc@2$($?cF90<H<) VFB Pc05.c^ap c/8=GU=8 c959c^aW<_<0322## @VOICE 2 H05/)@T$?cZU0c ) 0: P \5'c^ap c5.8G.8659c^ac<_<0322##@VOICE 3 ^87`N9H cE`cDa8EcGaR00J.8a_<1&cQ"<cc.#PKC6<R_//c\;c^C_<2222"!($GLOKENSPL U"2c3' =Y _9c2c ' u Sc0U*cZ' +4)PU*cZ' sc1U*cZ' ;1 PU*cZ' ccbK<2222 VIBE 2 Q7NN)8KcV7`N)8OcIR06.8^_21)c\;ccGR06.8c_+15c\:c^C_<2222"!0XYLOPHONE a"cZP:B c!ZPRTa"cZP:C cZP"Qa"cZP:QacZP:K^C_<2222 a^C_<2222"!$BLOCK cO\Gc`CVUC`cAD(c"&c:2b/&%c:ccYc8G cBccc8ccccc2222+$ZxFLEXATONE 8M2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22222I`6SHIMMER 8M2)cBb8@2)c_4a 2)cWODc 2)cWO;c 2)cWOU 2)cWOsccccc2222pEVOLUTION c*7( ScD< :c5cU4+;c]( $EX;$<Y2c#( ;\ N-bcY cxGRAND PRIXcccYcHb?`1ccZbHb?b ccYaEb?]ccUOCb?a -cU'8\- cV'8c]bbb ST.HELENS _RcU ;cc- c_ +<c- c_ ;cU* Uc sSc2c] ;Rc- cc F2222 cp EXPLOSION hexter-version_1.1.0/extra/fb01_roms_converted_12.dx7000066400000000000000000000300001325353653200224670ustar00rootroot000000000000005%;c^<Q<" ;c^*TO4 ;cZ0cE ;cZBcbcZcc8bcZcc8cccc2222!0FB:Brass b< cc/:: 95+ ;c^8G8% AcZ8JEb Hcc8bbcZcc8bcZcc8cccc2222"0 FB:Horn b9 cc8: >9B< AcV8NB4 (c^8SOb Ncc:cbcZcc8bcZcc8cccc2222"0FB:Trumpet[+ ;cMB\ a1 .cZ:<[( (c^BP8 .ccBcbcZcc8bcZcc8cccc2222!0 FB:LoStrigb (c^Rcb (c^RHb (c^JQ5 .cc"cbcZcc8bcZcc8cccc2222"0$FB:StringsR (cQJJb (cQ"TR "c<2GU.cQDcbcZcc8bcZcc8cccc2222"FB:Piano b5cVT:9b+"5cZRc`"cZTL`.cZTcbcZcc8bcZcc8cccc2222"0FB:NewEP R(cZHK b(c^ Nb"(cZREXa.cc<bbcZcc8bcZcc8cccc2222" FB:EGrand b. cc#8?b( cc#PLa cc#8Jb( cc#8cbcZcc8bcZcc8cccc2222!0FB:Jazz Gtb1".c4T>a(.c4VHa.cVTVa .cZT cbcZcc8bcZcc8cccc2222! FB:EBass % ;c#@TL% .cE>YU" (c@FLLB.c^DcbcZcc8bcZcc8cccc2222!0 FB:WodBass[? ccc Ma cccPcL6 cccPTa6 cccPcbcZcc8bcZcc8cccc22221FB:EOrgan1b1Nc#PcbbHccPcbbHcc cbbHccPcbcZcc8bcZcc8cccc2222" FB:EOrgan2R Hcc0 J< ;cc$cX (cc$ c2 (ccTcbcZcc8bcZcc8cccc2222" FB:POrgan1< cc$X? .cc$R < cc,b< 5ccDcbcZcc8bcZcc8cccc2222!FB:POrgan2E4(cI"cIB9(cM:// (cZTG< ;cc:cbcZcc8bcZcc8cccc2222!0$FB:Flute b(6AcM8BL Ac#8\bcZcc8L+ Ac^8aL+ Ac^8cbcZcc8cccc2222"00FB:Piccoloa..NcMVHR Nc^R>[+ c^VKL NccRcbcZcc8bcZcc8cccc2222!0FB:Oboe b< .cV8^ bE (c^8HH? AcZ:R?b Ncc:]bcZcc8bcZcc8cccc2222"0FB:ClarinebB(cMP QX<".ccRcb4cI ; b<".cc cbcZcc8bcZcc8cccc2222"0$FB:Glockenb6 (c4R4)`c@4^b+.c#<4 b("c#<cbcZcc8bcZcc8cccc2222 0FB:Vibes bK%.cI:N bb6.cc<cbKJTc8<Tbb<;cc:cbcZcc8bcZcc8cccc2222"FB:Xylophn_"cZVKbc^VKacVVLb(c^VcbcZcc8bcZcc8cccc2222"0FB:Koto bccT$b.ccLLbccTMb.(ccTcbcZcc8bcZcc8cccc2222! FB:Zither L5c#VMb"5cZTJb5cVV\bTc8RcbcZcc8bcZcc8cccc2222"0FB:Clav bbAcZ<GbT"cZ8cb`"cV>[bW(cZ>cbcZcc8bcZcc8cccc2222"FB:HarpsicbcZPQ9b6c^H\)`6 c^R R)bc^Rc)bcZcc8bcZcc8cccc2222!1 FB:Bells b. "c#:Ub1(c^:Gb(c^8Ab. "c^<cbcZcc8bcZcc8cccc2222 "$FB:Harp HcV8c, HcV8c<%HcV8cL+HcV8cbcZcc8bcZcc8cccc2222"PFB:SmadSyn?b Acc8J?b Acc8A8b 5cc8N?b Acc8cbcZcc8bcZcc8cccc2222"@FB:HarmoniR"cI"J[.(c^<cL"cI: Q)[.(cIT\bcZcc8bcZcc8cccc2222"FB:SteelDrb6?cV8[9bT."cc8?b? c#8CbT."cc8cbcZcc8bcZcc8cccc2222 FB:Timpanib" ;c/"R ?.cZPRb.cZRS/ .cc cbcZcc8bcZcc8cccc2222!AFB:LoStrg22+;cZ:R< AcZ8c? HcZ:cE Ac^8cbcZcc8bcZcc8cccc22220 FB:Horn Lob6 Ac#P>I<" Acc8H[9 AcEP>)5" Ac^8\bcZcc8bcZcc8cccc2222!P$FB:Whistle,"9"c#< [b9"c+<^a"%Nc'8 EH6 .c#:cbcZcc8bcZcc8cccc2222"@ FB:ZingPlpEccP\b+cc"Yb"5cM$R `E;cZPcbcZcc8bcZcc8cccc2222!@FB:Metal b cc#8Ybb ccc8Qbb ccc8Ubb ccc8cbcZcc8bcZcc8cccc2222"PFB:Heavy %+Ac^Pc bNcMV>L Nc^R cb Nc^RcbcZcc8bcZcc8cccc2222"P$FB:FunkSynH?"cMP= IO4HcI HI/bHcc X8b;ccPcbcZcc8bcZcc8cccc2222 !@FB:Voices b1 (c#8 Kb? "c#8 KbZ (c#8 Tb. .c#8cbcZcc8bcZcc8cccc2222" FB:Marimbab4 cc+<Ib1 cc+8Sb% 5c+8Sb% ;c+8cbcZcc8bcZcc8cccc2222"0 FB:EBass 2bN ;c^8c_<6Tc<8cXWE;c<8T)a49AcZ8cbcZcc8bcZcc8cccc2222"FB:SnareDrbb c^8^)bbc^<H 9[]cV ^9bbcE<cIbcZcc8bcZcc8cccc2222"FB:RD CymbbBHcM S9b1HcZ8J)bB((cZ8LIb]65cc8c)bcZcc8bcZcc8cccc2222"P FB:Tom Tomb19cZ<bb"c+< ca"%c'8 GH% c#:cbcZcc8bcZcc8cccc2222 $>FB:Mars to%"c8PHIL"c8Pc),% cI R )< cV cbcZcc8bcZcc8cccc2222#{FB:Storm a" c^8Y)8 cM2ca c^:`)5% cV:c bcZcc8bcZcc8cccc2222$jFB:WindbelH"cVNM H"cV$VH"cV.B H"cV>cbcZcc8bcZcc8cccc2222"FB:UpPianobN"cVL[H5ccVcRE+cc+TU)b5c^"ZbcZcc8bcZcc8cccc2222"FB:SPiano O"cVJJa"cV$Xb<4Hc#PH9O"cV>cbcZcc8bcZcc8cccc2222"FB:Piano2 (cZ 8X(cZ ;X(cZPYO(cZ<cbcZcc8bcZcc8cccc2222 "FB:Piano3 XQccZTRR+cc&YOB<cc<N9U<c^VcbcZcc8bcZcc8cccc2222"FB:Piano4 b"cM:K b(cQJHb.cQRNb"5cV"cbcZcc8bcZcc8cccc2222" FB:Piano5 bN"cZTUR6 cc$WO (c^TUH`(cZ>cbcZcc8bcZcc8cccc2222"0FB:PhGrandXc#$AR "cV:WX c#JML".cV<cbcZcc8bcZcc8cccc2222"FB:Grand Xc#"AR "cV<]X c#JKL"(cV<cbcZcc8bcZcc8cccc2222"FB:DpGrandb(cZH Hb(c^0Rb"(cZR Oba Acc<cbcZcc8bcZcc8cccc2222"0 FB:LPiano1O("cZPP[(c#PR[.c^ TR65c^:cbcZcc8bcZcc8cccc2222! FB:LPiano2a"cMV L9["c.c#>cRcV$ `L.cV<cbcZcc8bcZcc8cccc2222" FB:EGrand2X c#"6 XZcZ"A )R"cV$ZL"(cVTcbcZcc8bcZcc8cccc2222"FB:Honkey1X c#*5 X c#"JR"cVLaL"(cVTcbcZcc8bcZcc8cccc2222"FB:Honkey2` .c#TWb 5c#:cb "c' Db" 5c# _bcZcc8bcZcc8cccc22220 FB:Pfbell b.?(c#:?b (c#"cb"?.c#: ;b?.c#RcbcZcc8bcZcc8cccc2222 0 FB:PfVibe b46acIP+b?;c^8cb6Nc^:Xb?;c^:cbcZcc8bcZcc8cccc2222 0FB:NewEP2 X5cVT+IX+".cZRcR"cZT\R(cZ$cbcZcc8bcZcc8cccc2222"0FB:NewEP3 bccc$Cab;c^Jc_.cV<*IX";cVTcbcZcc8bcZcc8cccc2222! FB:NewEP4 _5cVT?I_+".cZJcR"cZTYR(cZ$cbcZcc8bcZcc8cccc2222" FB:NewEP5 b9ccE88Ib4(cI8@b<Ac<8%b];cc<cbcZcc8bcZcc8cccc2222"0FB:EPiano1b. Hc4THIb.;c@2RbcZcc8U6ccE:cb5cV:cbcZcc8cccc2222 FB:EPiano2R]5c8TH[5cZVRU?5c'TRI[5c^V\bcZcc8bcZcc8cccc2222! FB:EPiano3aB1"cV<Q9bb "cc Dbb (ccPDb%.c^4bbcZcc8bcZcc8cccc2222 0FB:EPiano4R<cc8>>)[cc8>9R.(c8<Rb.cV< cbcZcc8bcZcc8cccc2222!0FB:EPiano5b+ .c#:7b% cc# cb" 5c#8 Pb"G;c# cbcZcc8bcZcc8cccc22220 FB:HighTinb? .c#: VIb< cc# cIb" 5c#: _b"G;c'"cbcZcc8bcZcc8cccc2222 0FB:HardTinb+9.cZ<@)_?(cV:2b1 Tcc8Wb< ;c^:cbcZcc8bcZcc8cccc22220 FB:PercPf b. ;c/8 Nb% ;c#"bb ;cc: Kb% ;c#:bbcZcc8bcZcc8cccc2222 0FB:WoodPf b(c^TW cZ$ZR.""cQT@R(cZ$cbcZcc8bcZcc8cccc2222!0FB:EPStrng%5cZRN5 (cZ$cR.""cQTAR(cZ$cbcZcc8bcZcc8cccc2222"@ FB:EPBrassb%"cZ:9bb (cc:Xb "cV:OX9%Ncc:bbcZcc8bcZcc8cccc2222"FB:Clav2 b  c#BE IUW cZ@ Tb] cVLXXZ5cV<cbcZcc8bcZcc8cccc2222"FB:Clav3 b+"ccI<K b9.cc8E b."(cc8VaE"Tc^:cbcZcc8bcZcc8cccc2222"0FB:Clav4 b]AcVLVb Tc#DHbZAcZ(ab]AcV<cbcZcc8bcZcc8cccc2222"FB:FuzzClvb + c#TE IUW6 cZ@Tb]( cVLXXB65cV:cbcZcc8bcZcc8cccc2222"FB:MuteClvb + c#TEU%6c#@TbH( c#LcX16Hc#:cbcZcc8bcZcc8cccc2222"FB:MuteCl2"%5cZR ^b"c^V R a.cVT LbEcc^RcbcZcc8bcZcc8cccc2222"0FB:SynClv1b5c#VAb5ccPJb5c^P[b6TcQVcbcZcc8bcZcc8cccc2222"0FB:SynClv2bE.cMFRb..cc8O"HcE:cbTcZ4cbcZcc8bcZcc8cccc2222"0FB:SynClv3LHcV8RLHcV8cLHcV8\LHcV8RbcZcc8bcZcc8cccc2222"0FB:SynClv4b< cZFcU".cV,_b4 cZFcU".cV4abcZcc8bcZcc8cccc2222"$FB:Harpsi2bbHcZ<VbT"cZ \b` HcZ>PbW(cZ> cbcZcc8bcZcc8cccc2222" FB:Harpsi3_B cZ, cU"(cVTc<9 cZN cU"(cVD^bcZcc8bcZcc8cccc2222"FB:Harpsi4bQ.cZF\bQ;c^:Nb.c^8Hb (cZ4cbcZcc8bcZcc8cccc2222"FB:Harpsi5bK..c#8Z Ib19"c#<\ab ccc8(?b Ncc8bbcZcc8bcZcc8cccc2222"PFB:Circust[] .c'"MIb( .c'Rcb9 .c'R<b1 "c' cbcZcc8bcZcc8cccc2222!0$FB:Celeste? (c^ Lb+ HccPEb (cc H8b HccPbbcZcc8bcZcc8cccc2222 !PFB:Squeezehexter-version_1.1.0/extra/fb01_roms_converted_34.dx7000066400000000000000000000300001325353653200224730ustar00rootroot00000000000000?+ (cZVG% ;cc<cbcZcc8bcZcc8cccc2222!0$FB:SlowFlt%(HcV P<"HcVPcL(HcMPM<"HcV cbcZcc8bcZcc8cccc2222!0 FB:5th Fltb< .cV8TbE (c^8PH? AcZ:\?b Ncc:bbcZcc8bcZcc8cccc2222"@FB:Oboe2 ?N .cc8<?b cc8 K[b 5cc8 Q ?".c4V0a.c4VTa5c4VcbcZcc8bcZcc8cccc2222 !1 FB:SynBas5b".c8RRb6%Nc#R%9bW"c^RRa.(cZTcbcZcc8bcZcc8cccc2222 "0 FB:SynBas6b6"ccI<Wb9ccc8 Rb1"5cc8LaE"Tc^:cbcZcc8bcZcc8cccc2222"P FB:SynBas7R4%.cQ:K a<((cV:ca<.cV:?a<((cV:cbcZcc8bcZcc8cccc2222" FB:Marimb2[NM5cQ:K aK<(cV:ca4+(c^:C a<(.cV:cbcZcc8bcZcc8cccc2222" FB:Marimb3bK Ac88Qbb?5cc8cbB9(c8<W bb65cc8cbcZcc8bcZcc8cccc2222" FB:Xyloph2X<"ccT=b4".cI ; b64HcMP=b<"cc$cbcZcc8bcZcc8cccc2222! FB:Vibe2 bE 5cZPcbE+5cZPcb9G.c#RcbE 5cZ cbcZcc8bcZcc8cccc2222 @ FB:Vibe3 b64HcMP@X<"ccTcb4".cI ; b<"cc$cbcZcc8bcZcc8cccc2222"0FB:Glockn2_cQ8Q)ac@TcO4 cZTT)XQc^$cbcZcc8bcZcc8cccc2222"0$FB:TubeBe1b9 (c@:P)bb%(ccRcb(c^PYIbb%"cc"cbcZcc8bcZcc8cccc2222"0FB:TubeBe2bcZ8SIb6c^8cI`6 c^"cbc^Rc)bcZcc8bcZcc8cccc2222"0FB:Bells 2+"cc8SI cV:T)b cZ<HIbH"cZ:cbcZcc8bcZcc8cccc2222" FB:TempleGL( "c#8G9L( "c#8D9L9 c#8A9L( .c#8cbcZcc8bcZcc8cccc2222" FB:SteelDrXbMccc8Xb9cccPObXcccPc9HK1Hcc"cbcZcc8bcZcc8cccc2222"`FB:ElectDr_H .cI$_)bW"c40 R)bQ"cZ$ KIb cc>cbcZcc8bcZcc8cccc2222 !1FB:Hand Drbb cc8b9b?(cM8Vb?.(cE8]bb..cc:bbcZcc8bcZcc8cccc2222"@FB:SynTimpb?(c#8c[?Mc/8c)_]cV8cIbB1.c88c9bcZcc8bcZcc8cccc2222! FB:Clock b9?.c8<W)b9?.c88 Q)b9?.c88 Nb9?;c88cbcZcc8bcZcc8cccc2222"0FB:Heifer bb cc c9Hb<;cc8cbW((cM8`)bb95cc8cbcZcc8bcZcc8cccc2222" FB:SnareD2bb cc c )HK<;cZ8c)bW((cM8^Ibb9;cc8cIbcZcc8bcZcc8cccc2222"@ FB:SnareD3hexter-version_1.1.0/extra/fb01_roms_converted_5.dx7000066400000000000000000000140001325353653200224130ustar00rootroot00000000000000b1Nc#Pcb?4HccPc bbHcc cbbHccPcbcZcc8bcZcc8cccc22220 FB:JOrgan1b1Nc#PcbbHccPbbbHcc cbbHccPbbcZcc8bcZcc8cccc2222"0 FB:JOrgan2bTaccV8cbb cccPbbcZcc8bb ccc8bbb ccc bbcZcc8cccc2222"@ FB:COrgan1a? cc#8c _6 cccTcb6 ccc c[6 ccc8\bcZcc8bcZcc8cccc2222!0FB:COrgan2XW%ccIHL)bb ccc(Bbb ccc Cbb cccH[bcZcc8bcZcc8cccc2222!0 FB:EOrgan3b Hcc8Ib Hcc8cbcZcc8b Hcc8cb Hcc8cbcZcc8cccc2222"@ FB:EOrgan4bb ccc8Hbb ccc b bcZcc8bb cccPcbb ccc bbcZcc8cccc2222,0 FB:EOrgan5bbHcc8HbbHcc8cbbHcc8`bbHcc8cbcZcc8bcZcc8cccc2222"@ FB:EOrgan6bb cccP Bbb ccc@bbb ccc8 Sbb ccc bbcZcc8bcZcc8cccc2222"0 FB:EOrgan7bb cccPbbb ccc@bbb ccc8bbb ccc bbcZcc8bcZcc8cccc2222"0 FB:EOrgan8b< NcZPEHb NccBbbb Acc [Bb Acc"bbcZcc8bcZcc8cccc2222"0FB:SmlPipeb< ;c^ O?b 5cc"bbb AccP`Eb HccRZbcZcc8bcZcc8cccc2222"0FB:MidPipeb< ;c^ T8b .cc$bb9 AcZPNEb HccR]bcZcc8bcZcc8cccc2222"0FB:BigPipeR HccPTU HccP`B HccP_U Hcc(cbcZcc8bcZcc8cccc2222"FB:SftPipebb .cc8T bb (cc .bb (cc8N5b Acc8bbcZcc8bcZcc8cccc2222!0FB:Organ bc^< Nb"<.cc8 Ab."(cc8H`EAc^:cbcZcc8bcZcc8cccc2222 "0 FB:Guitar b% .c#:Lb( Ac#RMa ;c#8Hb?";cc:bbcZcc8bcZcc8cccc2222!0 FB:Folk Gtb" ccV>_b ccQ>1b"cZ> Lb(c@<bbcZcc8bcZcc8cccc2222"0 FB:PluckGtUW.cV:VR%%.cE8S"+;cc8@bK5cZ<cbcZcc8bcZcc8cccc2222"0 FB:BriteGtbb ccc8RbNccZ8\bb ccc8Qbbccc:cbcZcc8bcZcc8cccc2222"@ FB:Fuzz Gtb+HcZ:V b.HcM8 9bb cc8VbQ;cc8bbcZcc8bcZcc8cccc2222"0 FB:Zither2b.(cV:RbB4(cZ8Kb<(cZ8@bb".cc<cbcZcc8bcZcc8cccc2222 "0 FB:Lute bZ"cVVFb ccT]bN "cVL\b1+.cI$cbcZcc8bcZcc8cccc2222"0FB:Banjo b1"cM8PX4"cQ<Cb4".cI8Db<"cc<bbcZcc8bcZcc8cccc2222!0FB:SftHarpb64HcM8 MX4"cQ<I b4".cI82b<(cc:bbcZcc8bcZcc8cccc2222 !0FB:Harp2 b.9.cM:VXcM<Rbc^"Kb.c^TcbcZcc8bcZcc8cccc2222 "0$FB:Harp3 b.4HcMTO X4"cQT:b1"cI Nb<"(cc$bbcZcc8bcZcc8cccc2222!0FB:SftKotobE c#P Zb"c#V Rb"c#T Rb"c#TcbcZcc8bcZcc8cccc2222" FB:HitKotoU4% c^>Obc@Tcb c8TSb" c@&cbcZcc8bcZcc8cccc2222!@FB:Sitar1 "(cI"TbcV:ObcER \bcQ:cbcZcc8bcZcc8cccc2222"FB:Sitar2 b. ;c#RcI2N";cVTR<.cMP86;c^PcbcZcc8bcZcc8cccc2222"0$FB:HuffSynBb ccc8Bbb ccc8cbcZcc8b(("cI8cb( cccTcbcZcc8cccc2222!PFB:FantasyO4HcI P 9/bAcc XH?"cMPP8bAccP^bcZcc8bcZcc8cccc2222!@FB:SynvoicX (cEP CI<" (cM" >8 (cVPR5 ;cZ cbcZcc8bcZcc8cccc2222"@ FB:M.Voice)"c#<B% "cVJ[/ c#JM".cV$cbcZcc8bcZcc8cccc2222"0$FB:VSAR bb cc8c)bb cc8=bb cc8OOb cc8cbcZcc8bcZcc8cccc2222pFB:Racing Ecc8_L"c48cI%cc8cL"c<8cIbcZcc8bcZcc8cccc2222{0FB:Water  c#8 #include #include #include #include #include #include "hexter.h" #include "gui_main.h" #include "gui_data.h" #include "dx7_voice.h" #include "dx7_voice_data.h" extern int done; static unsigned char test_note_state = 0; static unsigned char test_note_noteon_key = 60; static unsigned char test_note_noteoff_key; static unsigned char test_note_velocity = 84; static int monophonic_mode = 0; static int polyphony = HEXTER_DEFAULT_POLYPHONY; static char *monophonic_modes[] = { "off", "on", "once", "both", NULL }; /* ==== commands ==== */ void command_status(char *args) { printf("hexter instance id: %s\n", user_friendly_id); printf("UI URL: %s\n", osc_self_url); printf("host URL: %s\n", osc_host_url); printf("test note: key %d, velocity %d, currently %s\n", test_note_noteon_key, test_note_velocity, test_note_state ? "on" : "off"); printf("monophonic mode: %s\n", monophonic_modes[monophonic_mode]); printf("polyphony: %d\n", polyphony); printf("current program: %d\n", current_program); } void command_patches(char *args) { char name[11]; int i, j, n; for (i = 0; i < 32; i++) { for (j = 0; j < 128; j += 32) { n = i + j; dx7_voice_copy_name(name, &patches[n]); printf("%c%3d %s", (n == current_program ? '*': ' '), n, name); if (j < 96) printf(" "); else printf("\n"); } } } void command_program(char *args) { int prog; char *tail; if (!args || !*args) { printf("usage: 'p '\n"); return; } prog = strtol(args, &tail, 10); if (prog == 0 && args == tail) { printf("invalid patch number\n"); return; } current_program = prog; /* set all the patch edit widgets to match */ /* update_voice_widgets_from_patch(&patches[current_program]); */ lo_send(osc_host_address, osc_program_path, "ii", 0, current_program); if (edit_buffer_active && current_program != edit_buffer.program) { gui_data_send_edit_buffer_off(); /* -FIX- update UI display to say "no active edits" */ edit_buffer_active = 0; } } void command_load(char *args) { int position = 0; /* -FIX- need load position support */ char *message; if (gui_data_load(args, position, &message)) { /* successfully loaded at least one patch */ printf("Load Patch File succeeded:\n%s\n", message); gui_data_send_dirty_patch_sections(); } else { /* didn't load anything successfully */ printf("Load Patch File failed:\n%s\n", message); } free(message); } void command_mono(char *args) { if (!args) { usage: printf("bad monophonic mode, try 'on', 'off', 'once', or 'both'\n"); return; } else if (!strcmp(args, "off")) { monophonic_mode = 0; } else if (!strcmp(args, "on")) { monophonic_mode = 1; } else if (!strcmp(args, "once")) { monophonic_mode = 2; } else if (!strcmp(args, "both")) { monophonic_mode = 3; } else { goto usage; } lo_send(osc_host_address, osc_configure_path, "ss", "monophonic", monophonic_modes[monophonic_mode]); } void command_poly(char *args) { int poly; char buffer[4]; if (!args || !*args) { printf("usage: 'poly '\n"); return; } poly = atoi(args); if (poly > 0 && poly < HEXTER_MAX_POLYPHONY) { polyphony = poly; snprintf(buffer, 4, "%d", poly); lo_send(osc_host_address, osc_configure_path, "ss", "polyphony", buffer); } } void command_quit(char *args) { done = 1; } /* ==== command line parsing ==== */ /* A structure which contains information on the commands this program can understand. */ typedef struct { char *name; /* User printable name of the function. */ rl_vcpfunc_t *func; /* Function to call to do the job. */ char *doc; /* Documentation for this function. */ } COMMAND; void command_help(char *); static COMMAND commands[] = { { "status", command_status, "show hexter status" }, { "patches", command_patches, "show patch names" }, { "pc", command_program, "select patch (e.g. 'pc 3')" }, { "load", command_load, "load patch bank (e.g. 'load ')" }, { "mono", command_mono, "set monophonic mode (e.g. 'mono on')" }, { "poly", command_poly, "set polyphony ('poly 8')" }, { "quit", command_quit, "exit hexter_text" }, { "help", command_help, "print this help message" }, { (char *)NULL, (rl_vcpfunc_t *)NULL, (char *)NULL } }; void command_help(char *args) { int i, len, maxlen = 0; printf("hexter_text help - commands available are:\n"); for (i = 0; commands[i].name; i++) { len = strlen(commands[i].name); if (len > maxlen) maxlen = len; } for (i = 0; commands[i].name; i++) { printf(" %s", commands[i].name); for (len = strlen(commands[i].name); len <= maxlen; len++) printf(" "); printf("- %s\n", commands[i].doc); } printf("ctrl-t starts or stops a test note\n"); } /* Strip whitespace from the start and end of STRING. Return a pointer into STRING. */ char * stripwhite (string) char *string; { register char *s, *t; for (s = string; whitespace (*s); s++) ; if (*s == 0) return (s); t = s + strlen (s) - 1; while (t > s && whitespace (*t)) t--; *++t = '\0'; return s; } /* Look up NAME as the name of a command, and return a pointer to that command. Return a NULL pointer if NAME isn't a command name. */ COMMAND * find_command (name) char *name; { register int i; for (i = 0; commands[i].name; i++) if (strcmp (name, commands[i].name) == 0) return (&commands[i]); return ((COMMAND *)NULL); } void readline_callback(char *line) { char *s, *args; int i; COMMAND *command; if (!line || !*line) return; s = stripwhite (line); if (*s) { add_history (s); for (i = 0; s[i] && !whitespace(s[i]); i++); if (line[i]) line[i++] = '\0'; command = find_command(s); if (command) { if (line[i]) { args = stripwhite(s + i); } else { args = NULL; } ((*(command->func)) (args)); } else { printf("unrecognized command '%s'\n", s); command_help(NULL); } } free(line); } /* ==== test note ==== */ int test_note_callback(int a, int b) { unsigned char midi[4]; if (!test_note_state) { /* send note on */ midi[0] = 0; midi[1] = 0x90; midi[2] = test_note_noteon_key; midi[3] = test_note_velocity; lo_send(osc_host_address, osc_midi_path, "m", midi); test_note_noteoff_key = test_note_noteon_key; test_note_state = 1; } else { /* send note off */ midi[0] = 0; midi[1] = 0x80; midi[2] = test_note_noteoff_key; midi[3] = 0x40; lo_send(osc_host_address, osc_midi_path, "m", midi); test_note_state = 0; } return 0; } /* ==== OSC update handlers ==== */ void update_from_program_select(unsigned long bank, unsigned long program) { if (!bank && program < 128) { current_program = program; printf("\ncurrent program changed to %d\n", current_program); if (edit_buffer_active && program != edit_buffer.program) { gui_data_send_edit_buffer_off(); /* -FIX- update UI display to say "no active edits" */ edit_buffer_active = 0; } } } void update_patches(const char *key, const char *value) { int section = key[7] - '0'; TUIDB_MESSAGE(DB_OSC, ": update_patches: received new '%s'\n", key); if (section < 0 || section > 3) return; if (!decode_7in6(value, 32 * sizeof(dx7_patch_t), (uint8_t *)&patches[section * 32])) { TUIDB_MESSAGE(DB_OSC, " update_patches: corrupt data!\n"); return; } patch_section_dirty[section] = 0; /* patch names may have changed, so if the UI is displaying a patch list, * it should be updated now. */ } void update_monophonic(const char *value) { TUIDB_MESSAGE(DB_OSC, ": update_monophonic called with '%s'\n", value); if (!strcmp(value, "off")) { monophonic_mode = 0; } else if (!strcmp(value, "on")) { monophonic_mode = 1; } else if (!strcmp(value, "once")) { monophonic_mode = 2; } else if (!strcmp(value, "both")) { monophonic_mode = 3; } else { return; } /* if the UI is displaying the mono mode, it should be updated now. */ } void update_polyphony(const char *value) { int poly = atoi(value); TUIDB_MESSAGE(DB_OSC, ": update_polyphony called with '%s'\n", value); if (poly > 0 && poly < HEXTER_MAX_POLYPHONY) { polyphony = poly; /* if the UI is displaying the instance polyphony, it should be updated now. */ } } hexter-version_1.1.0/extra/textui_callbacks.h000066400000000000000000000022131325353653200213770ustar00rootroot00000000000000/* hexter DSSI software synthesizer text-mode UI * * Copyright (C) 2004, 2009 Sean Bolton. * * 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. */ void readline_callback(char *line); int test_note_callback(int a, int b); void update_from_program_select(unsigned long bank, unsigned long program); void update_patches(const char *key, const char *value); void update_monophonic(const char *value); void update_polyphony(const char *value); void update_global_polyphony(const char *value); hexter-version_1.1.0/extra/textui_main.c000066400000000000000000000246171325353653200204130ustar00rootroot00000000000000/* hexter DSSI software synthesizer text-mode UI * * Copyright (C) 2004, 2009, 2018 Sean Bolton and others. * * Portions of this file may have come from Chris Cannam and Steve * Harris's public domain DSSI example code. * * 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. */ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include "hexter_types.h" #include "hexter.h" #include "gui_main.h" #include "textui_callbacks.h" /* -FIX- #include "gui_midi.h" */ #include "gui_data.h" #include "dx7_voice_data.h" /* ==== global variables ==== */ char *user_friendly_id; char * osc_host_url; char * osc_self_url; lo_address osc_host_address; char * osc_configure_path; char * osc_control_path; char * osc_exiting_path; char * osc_hide_path; char * osc_midi_path; char * osc_program_path; char * osc_quit_path; char * osc_show_path; char * osc_update_path; dx7_patch_t *patches = NULL; int patch_section_dirty[4]; int current_program = 0; int edit_buffer_active = 0; edit_buffer_t edit_buffer; int edit_receive_channel = 0; int done = 0; int host_requested_quit = 0; /* ==== OSC handling ==== */ static char * osc_build_path(char *base_path, char *method) { char buffer[256]; char *full_path; snprintf(buffer, 256, "%s%s", base_path, method); if (!(full_path = strdup(buffer))) { TUIDB_MESSAGE(DB_OSC, ": out of memory!\n"); exit(1); } return strdup(buffer); } static void osc_error(int num, const char *msg, const char *path) { TUIDB_MESSAGE(DB_OSC, " error: liblo server error %d in path \"%s\": %s\n", num, (path ? path : "(null)"), msg); } int osc_debug_handler(const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data) { int i; TUIDB_MESSAGE(DB_OSC, " warning: unhandled OSC message to <%s>:\n", path); for (i = 0; i < argc; ++i) { printf("arg %d: type '%c': ", i, types[i]); lo_arg_pp((lo_type)types[i], argv[i]); printf("\n"); } return 1; /* try any other handlers */ } int osc_action_handler(const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data) { if (!strcmp(user_data, "show")) { /* TUIDB_MESSAGE(DB_OSC, " osc_action_handler: received 'show' message\n"); */ } else if (!strcmp(user_data, "hide")) { /* TUIDB_MESSAGE(DB_OSC, " osc_action_handler: received 'hide' message\n"); */ } else if (!strcmp(user_data, "quit")) { /* TUIDB_MESSAGE(DB_OSC, " osc_action_handler: received 'quit' message\n"); */ host_requested_quit = 1; done = 1; } else { return osc_debug_handler(path, types, argv, argc, msg, user_data); } return 0; } int osc_configure_handler(const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data) { char *key, *value; if (argc < 2) { TUIDB_MESSAGE(DB_OSC, " error: too few arguments to osc_configure_handler\n"); return 1; } key = &argv[0]->s; value = &argv[1]->s; if (strlen(key) == 8 && !strncmp(key, "patches", 7) && key[7] >= '0' && key[7] <= '3') { update_patches(key, value); } else if (!strcmp(key, "edit_buffer")) { /* -FIX- update_edit_buffer(value); */ } else if (!strcmp(key, "monophonic")) { update_monophonic(value); } else if (!strcmp(key, "polyphony")) { update_polyphony(value); #ifdef DSSI_GLOBAL_CONFIGURE_PREFIX } else if (!strcmp(key, DSSI_GLOBAL_CONFIGURE_PREFIX "polyphony")) { #else } else if (!strcmp(key, "global_polyphony")) { #endif TUIDB_MESSAGE(DB_OSC, " osc_configure_handler: received unsupported global polyphony limit of %s\n", value); #ifdef DSSI_PROJECT_DIRECTORY_KEY } else if (!strcmp(key, DSSI_PROJECT_DIRECTORY_KEY)) { /* -FIX- implement project directory key */ #endif } else { return osc_debug_handler(path, types, argv, argc, msg, user_data); } return 0; } int osc_control_handler(const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data) { int port; float value; if (argc < 2) { TUIDB_MESSAGE(DB_OSC, " error: too few arguments to osc_control_handler\n"); return 1; } port = argv[0]->i; value = argv[1]->f; TUIDB_MESSAGE(DB_OSC, " osc_control_handler: control %d now %f\n", port, value); /* -FIX- update_voice_widget(port, value); */ /* avoid 'not used' compiler warnings: */ (void)port; (void)value; return 0; } int osc_program_handler(const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data) { int bank, program; if (argc < 2) { TUIDB_MESSAGE(DB_OSC, " error: too few arguments to osc_program_handler\n"); return 1; } bank = argv[0]->i; program = argv[1]->i; if (bank || program < 0 || program > 127) { TUIDB_MESSAGE(DB_OSC, ": out-of-range program select (bank %d, program %d)\n", bank, program); return 0; } TUIDB_MESSAGE(DB_OSC, " osc_program_handler: received program change, bank %d, program %d\n", bank, program); update_from_program_select(bank, program); return 0; } /* ==== main ==== */ int main(int argc, char *argv[]) { char *host, *port, *path, *tmp_url, *rl_prompt; lo_server osc_server; int lo_fd, ret; fd_set fds; DSSP_DEBUG_INIT("hexter_text"); #ifdef DSSP_DEBUG TUIDB_MESSAGE(DB_MAIN, " starting (pid %d)...\n", getpid()); #else printf("hexter_text starting (pid %d)...\n", getpid()); #endif /* { int i; fprintf(stderr, "args:\n"); for(i=0; i \n", argv[0]); exit(1); } user_friendly_id = argv[4]; /* set up OSC support */ osc_host_url = argv[1]; host = lo_url_get_hostname(osc_host_url); port = lo_url_get_port(osc_host_url); path = lo_url_get_path(osc_host_url); osc_host_address = lo_address_new(host, port); osc_configure_path = osc_build_path(path, "/configure"); osc_control_path = osc_build_path(path, "/control"); osc_exiting_path = osc_build_path(path, "/exiting"); osc_hide_path = osc_build_path(path, "/hide"); osc_midi_path = osc_build_path(path, "/midi"); osc_program_path = osc_build_path(path, "/program"); osc_quit_path = osc_build_path(path, "/quit"); osc_show_path = osc_build_path(path, "/show"); osc_update_path = osc_build_path(path, "/update"); osc_server = lo_server_new(NULL, osc_error); lo_server_add_method(osc_server, osc_configure_path, "ss", osc_configure_handler, NULL); lo_server_add_method(osc_server, osc_control_path, "if", osc_control_handler, NULL); lo_server_add_method(osc_server, osc_hide_path, "", osc_action_handler, "hide"); lo_server_add_method(osc_server, osc_program_path, "ii", osc_program_handler, NULL); lo_server_add_method(osc_server, osc_quit_path, "", osc_action_handler, "quit"); lo_server_add_method(osc_server, osc_show_path, "", osc_action_handler, "show"); lo_server_add_method(osc_server, NULL, NULL, osc_debug_handler, NULL); tmp_url = lo_server_get_url(osc_server); osc_self_url = osc_build_path(tmp_url, (strlen(path) > 1 ? path + 1 : path)); free(tmp_url); /* get OSC server socket fd for main loop select() */ lo_fd = lo_server_get_socket_fd(osc_server); if (lo_fd < 0) { printf("hexter_text fatal: OSC transport does not support exposing socket fd\n"); exit(1); } /* set up patches */ gui_data_patches_init(); /* set up readline */ rl_prompt = (char *)malloc(strlen(user_friendly_id) + 12); // error handling.... sprintf(rl_prompt, "hexter %s> ", user_friendly_id); rl_callback_handler_install (rl_prompt, readline_callback); rl_add_defun("test-note", test_note_callback, CTRL('t')); /* send our update request */ lo_send(osc_host_address, osc_update_path, "s", osc_self_url); /* main loop */ do { /* set up list of file descriptors to watch */ FD_ZERO(&fds); FD_SET(0, &fds); /* stdin */ FD_SET(lo_fd, &fds); ret = select(lo_fd + 1, &fds, NULL, NULL, NULL); if (ret == -1) { printf("hexter_text fatal: main loop select() error!\n"); done = 1; } else if (ret > 0) { if (FD_ISSET(0, &fds)) { rl_callback_read_char(); } if (FD_ISSET(lo_fd, &fds)) { lo_server_recv_noblock(osc_server, 0); } } } while (!done); /* clean up and exit */ TUIDB_MESSAGE(DB_MAIN, ": yep, we got to the cleanup!\n"); /* shut down sys-ex receive, if enabled */ /* -FIX- if (sysex_enabled) { * sysex_stop(); * } */ /* readline cleanup */ rl_callback_handler_remove(); /* say bye-bye */ if (!host_requested_quit) { lo_send(osc_host_address, osc_exiting_path, ""); } /* clean up patches */ gui_data_patches_free(); /* clean up OSC support */ lo_server_free(osc_server); free(host); free(port); free(path); free(osc_configure_path); free(osc_control_path); free(osc_exiting_path); free(osc_hide_path); free(osc_midi_path); free(osc_program_path); free(osc_quit_path); free(osc_show_path); free(osc_update_path); free(osc_self_url); return 0; } hexter-version_1.1.0/extra/tx7_roms.dx7000066400000000000000000000200001325353653200201050ustar00rootroot00000000000000^*c\p:H*c\ TL H(@ +cXWFMA +cX3_3MB=@7cR`9PWF.cO>ccccc1222#ACC. PIANOc.+c]W6c9Gc.+c]W6c)M c..c]W6IT .!+c\TRcc.,c]W6iT .!.c\TJc^C_<2222&!(HI STRINGS*8Fc? c0 2c==52 BL2c===J) 2c__= Qc 2UD`-F7c_5bccC_<1324"- TRUMPET AcPccc>PS0P6ccc+ c<2ccaHO(P4ccc!8N+/2ccacc C /P4ccc!ccP[KPK<2222#!$&( MALE CHOIR_2c_)sO_2c_c_2c_;Y_2c_;c_2#NcK;K"6`CcKSccccc2222!(ELEC.PNO AcTZcpcc6ZcKcp@c;cZcFFpccP6RcccXc2cZcca @ccPZccc8ccccc2222( E.ORGAN A;b3bcb4[cPb.acb2<^3b.acb N:ccccc2222 $0PIPES Acccccc( 8Pcccccc@ccccccc(c2ccccc ccccccc(p]2cccccpcc(cc222#SYN-RISE AbWWV ;R__6c`Y+J_\c' 8 89'CcD9cZ.,HZa2=cb:c cDZcZc'2Ya2Ccb:ccccc2222#TINE E.PNOc@b=cC4. @T5A&=c5+86=6ccZLEBHK=]Yb)8\^C_<2222 # BC FLUTE M8Fc?O072b=>0FB\25=>8O.#8cVV9 O%"@U:C9(c.&.U7@XRCc\< cBK5cV5?*;cX<0cW%ccccc2222-! E.GUITAR Acc>ccc<c cc&ccc=F;c)Gcc5?;ccGccc=K;cGcVeEc@!GcVHccccc2222#1E.BASS A_HGcca[b@79W _/cZS S_HGcca[b@.9c_/cZ[U_HGcca[b9c_/cZ+Ycccc2222 # HARPSI. Ac0c2c ' =>PU2cZscPU2cZkcPU+2cJ' <NPU2cZ' :ccc2c' :Fcccc2222 VIBES AZ46ccc:cb >bccp4 b@ccc8Fc@ccb$8L_6ccc'5;K@ Accc_^C_<2222"!SAX BC c1c_c* pG_!$c_R'$ XO_/-cadc_5c_]&cDHCc'AcUc)XP -c_<ccc2222 cFM PIANO Abb)<I8c2cP8IAcK);WKcMcH#U$cLcHc)TP[$b!c;cbbK<2322  TIMPANI MWcccccccpP%cccccccpccccccccP&cccccccccccccccpP&ccccccc8cccc2222 1TIMEWARP  Gc 8bE Gc 8cb Gc *KK_!Gc cb Gc RNK_!Gc J_C__<2222#bTUBERISE Ac*2;ccc!-`,c17.cZP&RM=#cbZ. ;W58c_\2cccba'L)-caV4c W^0322#  VIOLINS AcRKcW)8c?)c@U0%8cZCRcU8Nc".cP8cK-$cW*Cc!&cP+c:c^C_<2222!KARIMBA Ac,GccK) 84"9c AccT8 V\cRccK8\.#G[R'8$N9(@cbR00qUSccWccc8c cccc2222)!HARMOSYNTHU?c`\63Qc<'-c`69c% $c`\6+Uc"#c\YOc.c]Wc X/!#c\Tc)^C_<2222&!G( ORCHESTRAL^*c\8:H*c\ Tt H(@ +cXWfM A +cX SMB=@7cR`qPWF.cOv ccccc1222#ACC. PIANOc.+c]W6c9Gc.+c]W6c)M c..c]W6IT .!+c\TRcc.,c]W6iT .!.c\TJc^C_<2222&!(HI STRINGS*8Fc? c0 2c==52 BL2c=== J) 2cc`=Oc 2UUUD`: 2F7cVV:cVC_c4122#PTRUMPET BcH0ccc@B#$?cZU0.+H8) 0CC Pc*59c^a8cESPbEQ`c8>375@=XUacc1122 '#[FEM. CHOIR_2c_)sO_2c_c_2c_;Y_2c_;c_2#NcK;K"6`CcKSccccc2222!(ELEC.PNO BcccZccc>cccZcccH`[9cZcUU@ LcccRcccX c2ccZcca c_ccZcccpccccc2222 E.ORGAN BJGC]^=XQCc`]aTWECc.& .ZPCc^KtcZ ccZCcRCc^_5`cccc2222,1 POWERSYN B8 !c`^6H@8 !c`^68M8 #c`^"(RG)6=c_cpc;.&b__VG)6=c_cc^C_<2222&!  FATSYNTH B[5c ;J 45`*; =[5c;?KBc ;c[b5cK`6KOBc ; XbbK<2222 'USPANISHGTR5@,6FQ@7::5C&6V\T:O `6c\Y:K2+#)^aa,P<:cYC3RZW9V4+^ba:ccccc2222! $ CELLOS Bc17NK)(?cc:R0/99cZPRR09cc.cP;ccL$$cW6, O c -cP; ccccc2222!A.MALLET BcJ-6cc]8UVcc9ccc;caU,6aI0.0J_0/ccZ.(=Ica>/ccZ<Z-$ccb)?>=ccccc2222"!( PIPES Bcccccc( 8Pcccccc@ccccccc(c2ccccc ccccccc(p]2cccccpccccc2222#SYN-RISE BbWWV ;R(__6c`Y+J_\pFB\25=>pO.#8cVVqO%"@UrC9(c.&.U7@XRCc\< cBK5cV5?*;cX<0cW%ccccc2222-! E.GUITAR B^87]9Ucc4K? >Z*7Z=] X` OA> ccc)?P_>:c_ $9?c^C_<2222#0E.BASS B _HGcca[_279\ _/cZ5 [_HGJca^_@.9c_/cZ4S_HG_ca[[9a2_2cZ;Wcccc2222 # HARPSI. Bc0c2c ' =>PU2cZscPU2cZkcPU+2cJ' <NPU2cZ' :ccc2c' :8cccc2222 cVIBES BM8Fc?O072b=>0FB\25=>O1#8cVVq R%"@UrC9* cc cK!cc  cN-%cc'crc22228BELL VOICE Gc 8bE Gc 8cb Gc *KK_!Gc cb Gc RNK_!Gc J_C__<2222#bTUBERISE Bc*2;ccc!-`,c17.cZP&RM=#cbZ. ;W58c_\2cccba'L)-caV4c W^/322#  VIOLINS B^# c3cc7 *Xc<.c]L:ccX^ccD3c:c\cZ2ccJ%B6cRU9ccL61ccP-cc:c^C_<2222" KARIMBA Bc,GccK) 84"9c AccT8 V\cRccK8\.#G[R'8$N9(@cbR00qUSccWccc8c cccc2222)!HARMOSYNTH*8Fc? c0 2c==52 BL2c===J) 2c__=Uc 2UD`-F7c_5bccC_<0424"- TOUCH TMPThexter-version_1.1.0/extra/tx_edit.c000066400000000000000000002272611325353653200175250ustar00rootroot00000000000000/* Yamaha DX7 / TX7 Editor/Librarian * * Copyright (C) 1991, 1995, 1997, 1998, 2004, 2009, 2011, * 2012, 2013 Sean Bolton. * * This is an ncurses-based patch editor for the Yamaha DX7 and * TX7. It is provided as-is, without any documentation, and * is totally unsupported, but may be useful to you if you can't use * JSynthLib or similar. It started out life on my Apple ][+, then * I ported it to my Amiga, then to my MS-DOS machine, then to * Linux, so the code's a mess and nothing I'm proud of. But, it * does the job. * * Compile with: * gcc -o tx_edit tx_edit.c -lcurses -lasound * * 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. * * Revision History: * 20040126 Sean Bolton - made help functions helpful, added ALSA support * 20040205 Sean Bolton - clean up display with noecho, line drawing * 20040207 Sean Bolton - add next/previous voice commands to edit mode * 20090102 Sean Bolton - incorporated Martin Tarenskeen's patch loading * enhancements * 20110215 Sean Bolton - incorporated more patch loading enhancements * from Martin Tarenskeen. * 20121022 Sean Bolton - and yet more from Martin. */ /* Need to do: */ /* need to provide color changing option */ /* bank and single receive */ /* auto buffer sizing? */ /* a search option would be nice */ /* show channel/instrument on display */ #define VERSIONSTRING "0.94s" /* Undefine USE_ALSA_MIDI to just write to /dev/midi */ #define USE_ALSA_MIDI 1 #define DEBUG 1 #include #include #include #include #include #include #include #include #include #ifdef USE_ALSA_MIDI #include #endif #define RETURN_OK 0 #define RETURN_FAIL 255 typedef unsigned char UBYTE; void cprintf(const char *fmt, ...); /* ==== Files ==== */ #define MAXPATH 80 char FNameBuff[MAXPATH]="\0"; /* ==== Buffers ==== */ #define DEFAULTVOICES 8192 #define DX7_VOICE_SIZE_PACKED 128 #define DX7_VOICE_SIZE_UNPACKED 155 #define DX7_DUMP_SIZE_VOICE_SINGLE 155+8 #define DX7_DUMP_SIZE_VOICE_BULK 4096+8 int Voices = DEFAULTVOICES; UBYTE *Buffer = NULL, *VoiceData, *SingleDump, *SingleData, *BulkDump; int BufferLength; /* ==== Console ==== */ #define KEY_METAA (0x200+'a') #define KEY_METAB (0x200+'b') #define KEY_METAC (0x200+'c') #define KEY_METAD (0x200+'d') #define KEY_METAE (0x200+'e') #define KEY_METAG (0x200+'g') #define KEY_METAH (0x200+'h') #define KEY_METAL (0x200+'l') #define KEY_METAM (0x200+'m') #define KEY_METAO (0x200+'o') #define KEY_METAP (0x200+'p') #define KEY_METAQ (0x200+'q') #define KEY_METAR (0x200+'r') #define KEY_METAS (0x200+'s') #define KEY_METAT (0x200+'t') #undef KEY_ENTER #define KEY_ENTER (0x0a) #define KEY_ESC (0x1b) #define KEY_METAEQ (0x200+'=') /* Alt-= */ #define KEY_METAPL (0x200+'+') /* Alt-+ */ #define KEY_METAEX (0x200+'!') /* Alt-! */ #define KEY_METANU (0x200+'#') /* Alt-# */ enum textcolor {COLOR_MSG = 1, COLOR_LABEL, COLOR_DATA, COLOR_BLOCK, COLOR_CURSOR, COLOR_BCURSOR, COLOR_OPON, COLOR_OPOFF}; #if 0 #define kc_Del (0x5300) #define kc_CtrlRight (0x7400) #define kc_CtrlLeft (0x7300) #define kc_CtrlPgUp (0x8400) #define kc_CtrlPgDn (0x7600) #define kc_Home (0x4700) #define kc_End (0x4f00) #define kc_CtrlHome (0x7700) #define kc_CtrlEnd (0x7500) #endif /* ==== Midi ==== */ #ifdef USE_ALSA_MIDI snd_seq_t *MidiHandle = NULL; int MidiClient; int MidiPort = -1; #endif char TXChannel = 0; /* 0-15! */ /* ==== VoiceEdit ==== */ #define VOICEPARMS 146 #define VOICEPARMMAX 145 #ifdef USE_CALCED_CURSOR_MOVES #define VOICEPARMS_X_SPAN 57 #define VOICEPARMS_Y_SPAN 18 #endif int ve_Cursor = 0; int ve_OpSelect = 63; #define vptName 1 #define vpt0_99 2 #define vpt0_7 3 #define vptMode 4 /* R,F */ #define vptFC 5 /* 0-31 */ #define vptFF 6 /* 0-99 */ #define vptDetune 7 /* 0-14, as -7-+7 */ #define vpt0_3 8 #define vptAlg 9 /* 0-31, as 1-32 */ #define vptCurve 10 /* 0-3, scaling curve */ #define vptBkPt 11 /* 0-99, breakpoint */ #define vptTrans 12 /* 0-48, transpose */ #define vptOnOff 13 #define vptWave 14 unsigned char vtypemax[15] = { 0, 0, 99, 7, 1, 31, 99, 14, 3, 31, 3, 99, 48, 1, 5, }; struct _veParm { UBYTE Type; UBYTE Offset; UBYTE X; UBYTE Y; UBYTE Up; /* -FIX- Up and Down are obsolete with calc'ed cursor moves */ UBYTE Down; } veParm[VOICEPARMS] = { /* T, Off, X, Y, U, D */ { 1, 145, 31, 0, 145, 8, }, /* Name */ { 2, 105, 5, 4, 140, 17, }, /* O1 R1 */ { 2, 109, 8, 4, 141, 18, }, { 2, 106, 12, 4, 142, 19, }, { 2, 110, 15, 4, 142, 20, }, { 2, 107, 19, 4, 143, 21, }, { 2, 111, 22, 4, 144, 22, }, { 2, 108, 26, 4, 0, 23, }, { 2, 112, 29, 4, 0, 24, }, { 3, 118, 33, 4, 0, 25, }, /* O1 RS */ { 4, 122, 36, 4, 0, 26, }, { 5, 123, 38, 4, 145, 27, }, { 6, 124, 41, 4, 121, 28, }, { 7, 125, 44, 4, 121, 29, }, { 2, 121, 54, 4, 94, 30, }, { 3, 120, 58, 4, 95, 31, }, { 8, 119, 60, 4, 96, 32, }, /* O1 AMS */ { 2, 84, 5, 5, 1, 33, }, /* O2 R1 */ { 2, 88, 8, 5, 2, 34, }, { 2, 85, 12, 5, 3, 35, }, { 2, 89, 15, 5, 4, 36, }, { 2, 86, 19, 5, 5, 37, }, { 2, 90, 22, 5, 6, 38, }, { 2, 87, 26, 5, 7, 39, }, { 2, 91, 29, 5, 8, 40, }, { 3, 97, 33, 5, 9, 41, }, /* O2 RS */ { 4, 101, 36, 5, 10, 42, }, { 5, 102, 38, 5, 11, 43, }, { 6, 103, 41, 5, 12, 44, }, { 7, 104, 44, 5, 13, 45, }, { 2, 100, 54, 5, 14, 46, }, { 3, 99, 58, 5, 15, 47, }, { 8, 98, 60, 5, 16, 48, }, /* O2 AMS */ { 2, 63, 5, 6, 17, 49, }, /* O3 R1 */ { 2, 67, 8, 6, 18, 50, }, { 2, 64, 12, 6, 19, 51, }, { 2, 68, 15, 6, 20, 52, }, { 2, 65, 19, 6, 21, 53, }, { 2, 69, 22, 6, 22, 54, }, { 2, 66, 26, 6, 23, 55, }, { 2, 70, 29, 6, 24, 56, }, { 3, 76, 33, 6, 25, 57, }, /* O3 RS */ { 4, 80, 36, 6, 26, 58, }, { 5, 81, 38, 6, 27, 59, }, { 6, 82, 41, 6, 28, 60, }, { 7, 83, 44, 6, 29, 61, }, { 2, 79, 54, 6, 30, 62, }, { 3, 78, 58, 6, 31, 63, }, { 8, 77, 60, 6, 32, 64, }, /* O3 AMS */ { 2, 42, 5, 7, 33, 65, }, /* O4 R1 */ { 2, 46, 8, 7, 34, 66, }, { 2, 43, 12, 7, 35, 67, }, { 2, 47, 15, 7, 36, 68, }, { 2, 44, 19, 7, 37, 69, }, { 2, 48, 22, 7, 38, 70, }, { 2, 45, 26, 7, 39, 71, }, { 2, 49, 29, 7, 40, 72, }, { 3, 55, 33, 7, 41, 73, }, /* O4 RS */ { 4, 59, 36, 7, 42, 74, }, { 5, 60, 38, 7, 43, 75, }, { 6, 61, 41, 7, 44, 76, }, { 7, 62, 44, 7, 45, 77, }, { 2, 58, 54, 7, 46, 78, }, { 3, 57, 58, 7, 47, 79, }, { 8, 56, 60, 7, 48, 80, }, /* O4 AMS */ { 2, 21, 5, 8, 49, 81, }, /* O5 R1 */ { 2, 25, 8, 8, 50, 82, }, { 2, 22, 12, 8, 51, 83, }, { 2, 26, 15, 8, 52, 84, }, { 2, 23, 19, 8, 53, 85, }, { 2, 27, 22, 8, 54, 86, }, { 2, 24, 26, 8, 55, 87, }, { 2, 28, 29, 8, 56, 88, }, { 3, 34, 33, 8, 57, 89, }, /* O5 RS */ { 4, 38, 36, 8, 58, 90, }, { 5, 39, 38, 8, 59, 91, }, { 6, 40, 41, 8, 60, 92, }, { 7, 41, 44, 8, 61, 93, }, { 2, 37, 54, 8, 62, 94, }, { 3, 36, 58, 8, 63, 95, }, { 8, 35, 60, 8, 64, 96, }, /* O5 AMS */ { 2, 0, 5, 9, 65, 97, }, /* O6 R1 */ { 2, 4, 8, 9, 66, 98, }, { 2, 1, 12, 9, 67, 99, }, { 2, 5, 15, 9, 68, 100, }, { 2, 2, 19, 9, 69, 101, }, { 2, 6, 22, 9, 70, 102, }, { 2, 3, 26, 9, 71, 103, }, { 2, 7, 29, 9, 72, 104, }, { 3, 13, 33, 9, 73, 106, }, /* O6 RS */ { 4, 17, 36, 9, 74, 106, }, { 5, 18, 38, 9, 75, 106, }, { 6, 19, 41, 9, 76, 105, }, { 7, 20, 44, 9, 77, 105, }, { 2, 16, 54, 9, 78, 105, }, { 3, 15, 58, 9, 79, 105, }, { 8, 14, 60, 9, 80, 105, }, /* O6 AMS */ { 2, 126, 5, 10, 81, 108, }, /* P R1 */ { 2, 130, 8, 10, 82, 109, }, { 2, 127, 12, 10, 83, 110, }, { 2, 131, 15, 10, 84, 110, }, { 2, 128, 19, 10, 85, 111, }, { 2, 132, 22, 10, 86, 112, }, { 2, 129, 26, 10, 87, 112, }, { 2, 133, 29, 10, 88, 106, }, { 9, 134, 48, 11, 94, 107, }, /* Alg */ { 2, 137, 35, 12, 90, 113, }, { 3, 135, 49, 12, 105, 114, }, { 10, 116, 5, 13, 97, 115, }, /* O1 LC */ { 2, 114, 10, 13, 98, 116, }, { 11, 113, 13, 13, 99, 117, }, { 10, 117, 18, 13, 101, 118, }, { 2, 115, 23, 13, 102, 119, }, { 2, 138, 35, 13, 106, 120, }, /* Delay */ { 12, 144, 46, 13, 107, 121, }, { 10, 95, 5, 14, 108, 122, }, /* O2 LC */ { 2, 93, 10, 14, 109, 123, }, { 11, 92, 13, 14, 110, 124, }, { 10, 96, 18, 14, 111, 125, }, { 2, 94, 23, 14, 112, 126, }, { 2, 139, 35, 14, 113, 127, }, /* PMD */ { 13, 136, 47, 14, 114, 14, }, { 10, 74, 5, 15, 115, 128, }, /* O3 LC */ { 2, 72, 10, 15, 116, 129, }, { 11, 71, 13, 15, 117, 130, }, { 10, 75, 18, 15, 118, 131, }, { 2, 73, 23, 15, 119, 132, }, { 2, 140, 35, 15, 120, 133, }, /* AMD */ { 10, 53, 5, 16, 122, 134, }, /* O4 LC */ { 2, 51, 10, 16, 123, 135, }, { 11, 50, 13, 16, 124, 136, }, { 10, 54, 18, 16, 125, 137, }, { 2, 52, 23, 16, 126, 138, }, { 13, 141, 34, 16, 127, 139, }, /* Sync */ { 10, 32, 5, 17, 128, 140, }, /* O5 LC */ { 2, 30, 10, 17, 129, 141, }, { 11, 29, 13, 17, 130, 142, }, { 10, 33, 18, 17, 131, 143, }, { 2, 31, 23, 17, 132, 144, }, { 14, 142, 34, 17, 133, 145, }, /* Wave */ { 10, 11, 5, 18, 134, 1, }, /* O6 LC */ { 2, 9, 10, 18, 135, 2, }, { 11, 8, 13, 18, 136, 3, }, { 10, 12, 18, 18, 137, 5, }, { 2, 10, 23, 18, 138, 6, }, { 3, 143, 36, 18, 139, 10, } /* PMS */ }; unsigned short veFFF[100] = { 1000, 1023, 1047, 1072, 1096, 1122, 1148, 1175, 1202, 1230, 1259, 1288, 1318, 1349, 1380, 1413, 1445, 1479, 1514, 1549, 1585, 1622, 1660, 1698, 1738, 1778, 1820, 1862, 1905, 1950, 1995, 2042, 2089, 2138, 2188, 2239, 2291, 2344, 2399, 2455, 2512, 2570, 2630, 2692, 2754, 2818, 2884, 2951, 3020, 3090, 3162, 3236, 3311, 3388, 3467, 3548, 3631, 3715, 3802, 3890, 3981, 4074, 4169, 4266, 4365, 4467, 4571, 4677, 4786, 4898, 5012, 5129, 5248, 5370, 5495, 5623, 5754, 5888, 6026, 6166, 6310, 6457, 6607, 6761, 6918, 7079, 7244, 7413, 7586, 7762, 7943, 8128, 8318, 8511, 8710, 8913, 9120, 9333, 9550, 9772, }; /* ==== Algorithm ==== */ char *veAlg[32] = { /* 32 algs, max 9 high and 17 wide */ " '`\n" /* 1 */ " 6/\n" " |\n" " 5\n" " |\n" "2 4\n" "| |\n" "1 3\n" "L--/", "\n" /* 2 */ " 6\n" " |\n" " 5\n" "'` |\n" "2/ 4\n" "| |\n" "1 3\n" "L--/", " '`\n" /* 3 */ "3 6/\n" "| |\n" "2 5\n" "| |\n" "1 4\n" "L--/", " '`\n" /* 4 */ "3 6|\n" "| ||\n" "2 5|\n" "| ||\n" "1 4/\n" "L--/", " '`\n" /* 5 */ "2 4 6/\n" "| | |\n" "1 3 5\n" "L--^--/", " '`\n" /* 6 */ "2 4 6|\n" "| | ||\n" "1 3 5/\n" "L--^--/", " '`\n" /* 7 */ " 6/\n" " |\n" "2 4 5\n" "| }--/\n" "1 3\n" "L--/", "\n" /* 8 */ " 6\n" " '` |\n" "2 4/ 5\n" "| }--/\n" "1 3\n" "L--/", "\n" /* 9 */ " 6\n" "'` |\n" "2/ 4 5\n" "| }--/\n" "1 3\n" "L--/", "'`\n" /* 10 */ "3/\n" "|\n" "2 5 6\n" "| }--/\n" "1 4\n" "L--/", "\n" /* 11 */ "3\n" "| '`\n" "2 5 6/\n" "| }--/\n" "1 4\n" "L--/", "'`\n" /* 12 */ "2/ 4 5 6\n" "| L--+--/\n" "1 3\n" "L-----/", " '`\n" /* 13 */ "2 4 5 6/\n" /* 13 */ "| L--+--/\n" "1 3\n" "L-----/", " '`\n" /* 14 */ " 5 6/\n" " }--/\n" "2 4\n" "| |\n" "1 3\n" "L--/", "\n" /* 15 */ " 5 6\n" "'` }--/\n" "2/ 4\n" "| |\n" "1 3\n" "L--/", " '`\n" /* 16 */ " 4 6/\n" " | |\n" "2 3 5\n" "L--+--/\n" " 1", "\n" /* 17 */ " 4 6\n" "'` | |\n" "2/ 3 5\n" "L--+--/\n" " 1", " 6\n" /* 18 */ " |\n" " 5\n" " '` |\n" "2 3/ 4\n" "L--+--/\n" " 1", "3\n" /* 19 */ "| '`\n" "2 6/\n" "| }--`\n" "1 4 5\n" "L--^--/", "'`\n" /* 20 */ "3/ 5 6\n" "}--` }--/\n" "1 2 4\n" "L--^--/", "'`\n" /* 21 */ "3/ 6\n" "}--` }--`\n" "1 2 4 5\n" "L--^--^--/", " '`\n" /* 22 */ "2 6/\n" "| '--+--`\n" "1 3 4 5\n" "L--^--^--/", " '`\n" /* 23 */ " 3 6/\n" " | }--`\n" "1 2 4 5\n" "L--^--^--/", " '`\n" /* 24 */ " 6/\n" " '--+--`\n" "1 2 3 4 5\n" "L--^--^--^--/", " '`\n" /* 25 */ " 6/\n" " }--`\n" "1 2 3 4 5\n" "L--^--^--^--/", " '`\n" /* 26 */ " 3 5 6/\n" " | }--/\n" "1 2 4\n" "L--^--/", " '`\n" /* 27 */ " 3/ 5 6\n" " | }--/\n" "1 2 4\n" "L--^--/", " '`\n" /* 28 */ " 5/\n" " |\n" "2 4\n" "| |\n" "1 3 6\n" "L--^--/", " '`\n" /* 29 */ " 4 6/\n" " | |\n" "1 2 3 5\n" "L--^--^--/", " '`\n" /* 30 */ " 5/\n" " |\n" " 4\n" " |\n" "1 2 3 6\n" "L--^--^--/", " '`\n" " 6/\n" /* 31 */ " |\n" "1 2 3 4 5\n" "L--^--^--^--/", " '`" /* 32 */ "1 2 3 4 5 6/" "L--^--^--^--^--/", }; /* ==== Librarian ==== */ void noop(void){} void (*LibBlockAction)(void) = noop; int Voice_Cursor = 0, /* voice number under curser */ Voice_TOS = 0, /* " at top of screen */ Voice_BMark, /* " where block first marked */ Voice_BStart, /* " of block start */ Voice_BEnd; /* " of block end */ bool blocking = FALSE, blocked = FALSE; /* -FIX- This should be dynamic! */ int LibCols=5, /* columns of names that fit on screen (15 char each) */ LibRows=16, /* rows of names that fit on screen */ LibNames=80; /* names that fit on screen */ /* ==== Control ==== */ int txmode=0, newmode=0; #define MODELIB 1 #define MODEEDIT 2 #define MODEQUIT 3 /* ==== Utility Stuff ==== */ inline int min(int a, int b) { return (a < b ? a : b); } inline int max(int a, int b) { return (a > b ? a : b); } char _NoteText[5]={'x','x','x','x','\0'}; char * NoteText(int note) { _NoteText[0]=(" C D F G A ")[note%12]; _NoteText[1]=("C#D#EF#G#A#B")[note%12]; _NoteText[2]=("--012345678")[note/12]; _NoteText[3]=("21 ")[note/12]; return _NoteText; } UBYTE * voiceAddr(int voice) { /* return voice*DX7_VOICE_SIZE_PACKED+VoiceData; */ return (voice << 7) +VoiceData; } void PrintVName(int voice) /* print name of voice - packed only! */ { UBYTE ca[11]; int i; memcpy(ca, voiceAddr(voice)+118, 10); for (i=0; i<10; i++) { if (ca[i] < 32) ca[i]=183; /* centered dot */ else if (ca[i] >= 128) ca[i]=174; /* (R) symbol = out-of-range */ else { switch (ca[i]) { case 92: ca[i]=165; break; /* yen */ case 126: ca[i]=187; break; /* >> */ case 127: ca[i]=171; break; /* << */ } } } ca[10]=0; cprintf("%s", ca); } /* ==== Init/Term Routines ==== */ UBYTE InitVoice[] = { 0x62, 0x63, 0x63, 0x5A, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x00, 0x62, 0x63, 0x63, 0x5A, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x00, 0x62, 0x63, 0x63, 0x5A, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x00, 0x62, 0x63, 0x63, 0x5A, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x00, 0x62, 0x63, 0x63, 0x5A, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x00, 0x62, 0x63, 0x63, 0x5A, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x63, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x00, 0x08, 0x23, 0x00, 0x00, 0x00, 0x31, 0x18, 0x20, 0x20, 0x20, 0x7F, 0x2D, 0x2D, 0x7E, 0x20, 0x20, 0x20 }; UBYTE InitVoiceUnpacked[155] = { 0x62, 0x63, 0x63, 0x5a, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x07, 0x62, 0x63, 0x63, 0x5a, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x07, 0x62, 0x63, 0x63, 0x5a, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x07, 0x62, 0x63, 0x63, 0x5a, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x07, 0x62, 0x63, 0x63, 0x5a, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x07, 0x62, 0x63, 0x63, 0x5a, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x63, 0x00, 0x01, 0x00, 0x07, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x00, 0x00, 0x01, 0x23, 0x00, 0x00, 0x00, 0x01, 0x00, 0x03, 0x18, 0x20, 0x20, 0x20, 0x7f, 0x2d, 0x2d, 0x7e, 0x20, 0x20, 0x20 }; void EraseVoice(int voice) { memcpy(voiceAddr(voice), InitVoice, DX7_VOICE_SIZE_PACKED); } void ConsoleTerm(void) { endwin(); } bool ConsoleInit(void) { initscr(); cbreak(); keypad(stdscr, TRUE); curs_set(0); start_color(); #if 1 init_pair(COLOR_MSG, COLOR_WHITE, COLOR_YELLOW); /* 0x1c */ init_pair(COLOR_LABEL, COLOR_GREEN, COLOR_BLUE); /* 0x1a */ init_pair(COLOR_DATA, COLOR_WHITE, COLOR_BLUE); /* 0x1f */ init_pair(COLOR_BLOCK, COLOR_WHITE, COLOR_CYAN); /* 0x3f */ init_pair(COLOR_CURSOR, COLOR_BLACK, COLOR_GREEN); /* 0x20 */ init_pair(COLOR_BCURSOR, COLOR_WHITE, COLOR_GREEN); /* 0x2f */ init_pair(COLOR_OPON, COLOR_GREEN, COLOR_BLUE); /* 0x1a */ init_pair(COLOR_OPOFF, COLOR_WHITE, COLOR_YELLOW); /* 0x14 */ #else init_pair(COLOR_MSG, COLOR_WHITE, COLOR_YELLOW); /* 0x1c */ init_pair(COLOR_LABEL, COLOR_WHITE, COLOR_YELLOW); /* 0x1a */ init_pair(COLOR_DATA, COLOR_WHITE, COLOR_BLUE); /* 0x1f */ init_pair(COLOR_BLOCK, COLOR_BLACK, COLOR_YELLOW); /* 0x3f */ init_pair(COLOR_CURSOR, COLOR_WHITE, COLOR_YELLOW); /* 0x20 */ init_pair(COLOR_BCURSOR, COLOR_BLACK, COLOR_YELLOW); /* 0x2f */ init_pair(COLOR_OPON, COLOR_WHITE, COLOR_YELLOW); /* 0x1a */ init_pair(COLOR_OPOFF, COLOR_WHITE, COLOR_YELLOW); /* 0x14 */ #endif bkgdset(COLOR_PAIR(COLOR_DATA)); attrset(COLOR_PAIR(COLOR_DATA)|A_BOLD); noecho(); return TRUE; } void BuffTerm(void) { if (Buffer) { free(Buffer); Buffer = NULL; } } bool BuffInit(void) /* returns TRUE if successful */ { int i; BuffTerm(); /* calculate buffer size from number of voices * DX7_VOICE_SIZE_PACKED plus a bulk dump buffer and a single dump buffer */ BufferLength = Voices * DX7_VOICE_SIZE_PACKED + DX7_DUMP_SIZE_VOICE_BULK + DX7_DUMP_SIZE_VOICE_SINGLE; if (!(Buffer = malloc(BufferLength))) { return FALSE; } VoiceData = Buffer; BulkDump = VoiceData + Voices * DX7_VOICE_SIZE_PACKED; SingleDump = BulkDump + DX7_DUMP_SIZE_VOICE_BULK; /* must be last for alignment */ SingleData = SingleDump + 6; /* Init the buffers */ for (i = 0; i < Voices; EraseVoice(i++)); return TRUE; } bool MidiInit(void) /* returns TRUE if successful */ { #ifdef USE_ALSA_MIDI const char *device = "hw"; /* could also be "default" */ /* if (snd_seq_open(&MidiHandle, device, SND_SEQ_OPEN_DUPLEX, SND_SEQ_NONBLOCK) < 0) { */ if (snd_seq_open(&MidiHandle, device, SND_SEQ_OPEN_OUTPUT, 0) < 0) { fprintf(stderr, "MidiInit: could not open sequencer: %s\n", snd_strerror(errno)); return FALSE; } snd_seq_set_client_name (MidiHandle, "TX/Edit"); MidiClient = snd_seq_client_id(MidiHandle); if ((MidiPort = snd_seq_create_simple_port(MidiHandle, "TX/Edit", SND_SEQ_PORT_CAP_READ | SND_SEQ_PORT_CAP_SUBS_READ, SND_SEQ_PORT_TYPE_MIDI_GENERIC)) < 0) { fprintf(stderr, "MidiInit: error creating port: %s\n", snd_strerror(errno)); return FALSE; } return TRUE; #else /* not USE_ALSA_MIDI */ return TRUE; #endif /* USE_ALSA_MIDI */ } void MidiTerm(void) { #ifdef USE_ALSA_MIDI if (MidiHandle) { snd_seq_drain_output(MidiHandle); /* do we need this? could use snd_seq_drop_output(handle) */ } if (MidiPort >= 0) { snd_seq_delete_simple_port (MidiHandle, MidiPort); MidiPort = -1; } if (MidiHandle) { snd_seq_close(MidiHandle); MidiHandle = NULL; } #endif /* USE_ALSA_MIDI */ } void TXTerm(int retcode) { ConsoleTerm(); BuffTerm(); MidiTerm(); exit(retcode); } void TXInit(void) /* exit()s on failure */ { if (!MidiInit()) { fprintf(stderr, "MidiInit error!\n"); TXTerm(RETURN_FAIL); } if (!BuffInit()) { fprintf(stderr, "Can't allocate memory for Voice Buffer!\n"); TXTerm(RETURN_FAIL); } if (!ConsoleInit()) { fprintf(stderr, "ConsoleInit error!\n"); TXTerm(RETURN_FAIL); } } /* ==== Console Routines ==== */ void cprintf(const char *fmt, ...) { va_list ap; char tbuf[512]; va_start(ap, fmt); (void) vsnprintf(tbuf, 512, fmt, ap); va_end(ap); addstr(tbuf); } int cputch(int c) { return addch(c); } int cgetch(void) { int c = getch(); if(c == 27) { c = getch(); if (isalpha(c)) c = tolower(c); return 0x200 + c; } return c; } void textattr(enum textcolor c) { bkgdset(COLOR_PAIR(c)); attrset(COLOR_PAIR(c)|A_BOLD); } void paktc(void) { textattr(COLOR_MSG); cprintf(" Press Any Key to Continue... "); textattr(COLOR_DATA); cgetch(); cprintf("\r"); clrtoeol(); } void gotomsg(void) { move(LibRows + 4, 2); } /* ==== Midi Routines ==== */ void Unpack(int voice) { UBYTE *a2, *a3; UBYTE d1, d2; a2=SingleData; /* a2 = &unpacked data */ a3=voiceAddr(voice); /* a3 = &packed data */ for (d2=6; d2>0; d2--) { for (d1=11; d1>0; d1--) { *a2++=*a3++; } /* through rd */ *a2++=(*a3)&0x03; /* lc */ *a2++=(*a3++)>>2; /* rc */ *a2++=(*a3)&0x07; /* rs */ *(a2+6)=(*a3++)>>3; /* pd */ *a2++=(*a3)&0x03; /* ams */ *a2++=(*a3++)>>2; /* kvs */ *a2++=*a3++; /* ol */ *a2++=(*a3)&0x01; /* m */ *a2++=(*a3++)>>1; /* fc */ *a2=*a3++; /* ff */ a2+=2; } /* operator done */ for (d2=9; d2>0; d2--) { *a2++=*a3++; } /* through algorithm */ *a2++=(*a3)&0x07; /* feedback */ *a2++=(*a3++)>>3; /* oks */ for (d2=4; d2>0; d2--) { *a2++=*a3++; } /* through lamd */ *a2++=(*a3)&0x01; /* lfo ks */ *a2++=((*a3)>>1)&0x07; /* lfo wave */ *a2++=(*a3++)>>4; /* lfo pms */ for (d2=11; d2>0; d2--) { *a2++=*a3++; } /* through name */ } void _Pack(UBYTE *packed, UBYTE *unpacked) { UBYTE *a2, *a3; UBYTE d1, d2; a3=packed; /* a3 = &packed data */ a2=unpacked; /* a2 = &unpacked data */ for (d2=6; d2>0; d2--) { for (d1=11; d1>0; d1--) { *a3++=*a2++; } /* through rd */ *a3++=((*a2)&0x03)|(((*(a2+1))&0x03)<<2); a2+=2; /* rc+lc */ *a3++=((*a2)&0x07)|(((*(a2+7))&0x0f)<<3); a2++; /* pd+rs */ *a3++=((*a2)&0x03)|(((*(a2+1))&0x07)<<2); a2+=2; /* kvs+ams */ *a3++=*a2++; /* ol */ *a3++=((*a2)&0x01)|(((*(a2+1))&0x1f)<<1); a2+=2; /* fc+m */ *a3++=*a2; a2+=2; /* ff */ } /* operator done */ for (d2=9; d2>0; d2--) { *a3++=*a2++; } /* through algorithm */ *a3++=((*a2)&0x07)|(((*(a2+1))&0x01)<<3); a2+=2; /* oks+fb */ for (d2=4; d2>0; d2--) { *a3++=*a2++; } /* through lamd */ *a3++=((*a2)&0x01)|(((*(a2+1))&0x07)<<1)| (((*(a2+2))&0x07)<<4); a2+=3; /* lpms+lfw+lks */ for (d2=11; d2>0; d2--) { *a3++=*a2++; } /* through name */ #ifdef GAK d2=a3-voiceAddr(voice); cprintf("128 %d\r\n",d2); d2=a2-SingleData; cprintf("155 %d\r\n",d2); getch(); #endif } void Pack(int voice) { _Pack(voiceAddr(voice), SingleData); } void PutMidiMsg(UBYTE *buf, unsigned int size) { #ifdef USE_ALSA_MIDI snd_seq_event_t event; snd_seq_ev_clear(&event); snd_seq_ev_set_source(&event, MidiPort); snd_seq_ev_set_subs(&event); snd_seq_ev_set_direct(&event); // set event type, data, so on: event.type = SND_SEQ_EVENT_SYSEX; snd_seq_ev_set_variable(&event, size, buf); if (snd_seq_event_output(MidiHandle, &event) < 0) { gotomsg(); cprintf("PutMidiMsg: could not write output: %s\n", snd_strerror(errno)); return; } if (snd_seq_drain_output(MidiHandle) < 0) { gotomsg(); cprintf("PutMidiMsg: error draining output: %s\n", snd_strerror(errno)); } #else /* not USE_ALSA_MIDI: */ FILE *fh; if ((fh = fopen("/dev/midi00", "wb"))) { /* should fix this.... */ fwrite(buf, 1, size, fh); fclose(fh); } #endif /* USE_ALSA_MIDI */ } void ChecksumSingle(void) { int sum = 0; int i; for (i = 0; i < DX7_VOICE_SIZE_UNPACKED; sum -= SingleData[i++]); SingleData[DX7_VOICE_SIZE_UNPACKED] = sum & 0x7F; } void PutUnpacked(void) { UBYTE *sd; ChecksumSingle(); sd = SingleDump; sd[0] = 0xF0; sd[1] = 0x43; sd[2] = TXChannel; sd[3] = 0; sd[4] = 0x01; sd[5] = 0x1B; sd[DX7_DUMP_SIZE_VOICE_SINGLE - 1] = 0xF7; PutMidiMsg(sd, DX7_DUMP_SIZE_VOICE_SINGLE); } void PutPacked(int voice) { Unpack(voice); PutUnpacked(); } void PutBank(int voice) { UBYTE *bd = BulkDump, *p1 = voiceAddr(voice), *p2, *pe, chksum = 0; if(voice <= Voices - 32) { bd[0] = 0xF0; bd[1] = 0x43; bd[2] = TXChannel; bd[3] = 9; bd[4] = 0x10; bd[5] = 0x00; for(p2 = bd + 6, pe = p2 + 4096; p2 < pe; chksum -= *p2++ = *p1++); bd[DX7_DUMP_SIZE_VOICE_BULK - 2] = chksum & 0x7f; bd[DX7_DUMP_SIZE_VOICE_BULK - 1] = 0xF7; PutMidiMsg(bd, DX7_DUMP_SIZE_VOICE_BULK); } else { beep(); } } void PutParm(int parm) { UBYTE offset = veParm[parm].Offset; UBYTE bd[7]; bd[0] = 0xF0; bd[1] = 0x43; bd[2] = 0x10 | TXChannel; bd[3] = offset >> 7; bd[4] = offset & 0x7F; bd[5] = SingleData[offset]; bd[6] = 0xF7; PutMidiMsg(bd, 7); } /* ==== Load/Save Routines ==== */ bool FileRequest(char *namebuf, char *title) { echo(); curs_set(1); cprintf(" %s\n\n Enter filename:\n > ",title); refresh(); if (wgetnstr(stdscr, namebuf, 76) == ERR) { namebuf[0] = 0; } noecho(); curs_set(0); cprintf("\n"); return (strlen(namebuf)!=0); } void LoadError(const char *filename, const char *error) { cprintf(" Load - Error reading file '%s':\n", filename); cprintf(" '%s'!\n", error); paktc(); } int Load(char *filename) { FILE *fp; char errbuf[256]; long filelength; unsigned char *raw_patch_data = NULL; size_t filename_length; int count; int patchstart; int midshift; int datastart; int i; int op; /* this needs to 1) open and parse the file, 2a) if it's good, copy as * many patches as will fit into VoiceData beginning at Voice_Cursor, * 2b) if it's not good, print an appropriate error message and return. */ if ((fp = fopen(filename, "rb")) == NULL) { snprintf(errbuf, 256, "could not open file for reading: %s", strerror(errno)); LoadError(filename, errbuf); return 0; } if (fseek(fp, 0, SEEK_END) || (filelength = ftell(fp)) == -1 || fseek(fp, 0, SEEK_SET)) { snprintf(errbuf, 256, "couldn't get length of patch file: %s", strerror(errno)); fclose(fp); LoadError(filename, errbuf); return 0; } if (filelength == 0) { fclose(fp); LoadError(filename, "patch file has zero length"); return 0; } else if (filelength > 2097152) { fclose(fp); LoadError(filename, "patch file is too large"); return 0; } else if (filelength < DX7_VOICE_SIZE_PACKED) { fclose (fp); LoadError(filename, "patch file is too small"); return 0; } if (!(raw_patch_data = (unsigned char *)malloc(filelength))) { fclose(fp); LoadError(filename, "couldn't allocate memory for raw patch file"); return 0; } if (fread(raw_patch_data, 1, filelength, fp) != (size_t)filelength) { snprintf(errbuf, 256, "short read on patch file: %s", strerror(errno)); free(raw_patch_data); fclose(fp); LoadError(filename, errbuf); return 0; } fclose(fp); filename_length = strlen (filename); /* check if the file is a standard MIDI file */ if (raw_patch_data[0] == 0x4d && /* "M" */ raw_patch_data[1] == 0x54 && /* "T" */ raw_patch_data[2] == 0x68 && /* "h" */ raw_patch_data[3] == 0x64) /* "d" */ midshift = 2; else midshift = 0; /* scan SysEx or MIDI file for SysEx header(s) */ count = 0; datastart = 0; for (patchstart = 0; patchstart + midshift + 5 < filelength; patchstart++) { if (raw_patch_data[patchstart] == 0xf0 && raw_patch_data[patchstart + 1 + midshift] == 0x43 && raw_patch_data[patchstart + 2 + midshift] <= 0x0f && raw_patch_data[patchstart + 3 + midshift] == 0x09 && raw_patch_data[patchstart + 5 + midshift] == 0x00 && patchstart + 4103 + midshift < filelength && raw_patch_data[patchstart + 4103 + midshift] == 0xf7) { /* DX7 32 voice dump */ memmove(raw_patch_data + count * DX7_VOICE_SIZE_PACKED, raw_patch_data + patchstart + 6 + midshift, 4096); count += 32; patchstart += 4104; } else if (raw_patch_data[patchstart] == 0xf0 && raw_patch_data[patchstart + midshift + 1] == 0x43 && raw_patch_data[patchstart + midshift + 2] <= 0x0f && raw_patch_data[patchstart + midshift + 4] == 0x01 && raw_patch_data[patchstart + midshift + 5] == 0x1b && patchstart + midshift + 162 < filelength && raw_patch_data[patchstart + midshift + 162] == 0xf7) { /* DX7 single voice (edit buffer) dump */ _Pack ((UBYTE *)errbuf, /* pack to errbuf to avoid a collision */ raw_patch_data + patchstart + midshift + 6); memcpy(raw_patch_data + count * DX7_VOICE_SIZE_PACKED, errbuf, DX7_VOICE_SIZE_PACKED); count += 1; patchstart += DX7_DUMP_SIZE_VOICE_SINGLE; } } /* assume raw DX7/TX7 data if no SysEx header was found. */ /* assume the user knows what she is doing ;-) */ if (count == 0) count = filelength / DX7_VOICE_SIZE_PACKED; /* Dr.T and Steinberg TX7 file needs special treatment */ if ((!strcmp(filename + filename_length - 4, ".TX7") || !strcmp(filename + filename_length -4, ".SND") || !strcmp(filename + filename_length -4, ".tx7") || !strcmp(filename + filename_length - 4, ".snd")) && filelength == 8192) { count = 32; filelength = 4096; } /* Transform XSyn file also needs special treatment */ if ((!strcmp(filename + filename_length - 4, ".BNK") || !strcmp(filename + filename_length - 4, ".bnk")) && filelength == 8192) { for (i=0; i<32; i++) { memmove(raw_patch_data + 128*i, raw_patch_data + 256*i, 128); } count = 32; filelength = 4096; } /* Steinberg Synthworks DX7 SND */ if ((!strcmp (filename + filename_length - 4, ".SND") || !strcmp (filename + filename_length - 4, ".snd")) && filelength == 5216) { count = 32; filelength = 4096; } /* Voyetra SIDEMAN DX/TX * Voyetra Patchmaster DX7/TX7 */ if ((filelength == 9816 || filelength == 5663) && raw_patch_data[0] == 0xdf && raw_patch_data[1] == 0x05 && raw_patch_data[2] == 0x01 && raw_patch_data[3] == 0x00) { count = 32; datastart = 0x60f; } /* Yamaha DX200 editor .DX2 file */ if ((!strcmp (filename + filename_length - 4, ".DX2") || !strcmp (filename + filename_length - 4, ".dx2")) && filelength == 326454) { memmove (raw_patch_data + 16384, raw_patch_data + 34, 128 * 381); for (count = 0; count < 128; count++) { for (op = 0; op < 6; op++) { for (i = 0; i < 8; i++) { raw_patch_data[17 * (5 - op) + i + 128 * count] = raw_patch_data[16384 + 35 * op + 76 + i + 381 * count]; } raw_patch_data[17 * (5 - op) + 8 + 128 * count] = raw_patch_data[16384 + 35 * op + 84 + 381 * count] - 21; raw_patch_data[17 * (5 - op) + 9 + 128 * count] = raw_patch_data[16384 + 35 * op + 87 + 381 * count]; raw_patch_data[17 * (5 - op) + 10 + 128 * count] = raw_patch_data[16384 + 35 * op + 88 + 381 * count]; raw_patch_data[17 * (5 - op) + 11 + 128 * count] = raw_patch_data[16384 + 35 * op + 85 + 381 * count] + raw_patch_data[16384 + 35 * op + 86 + 381 * count] * 4; raw_patch_data[17 * (5 - op) + 12 + 128 * count] = raw_patch_data[16384 + 35 * op + 89 + 381 * count] + raw_patch_data[16384 + 35 * op + 75 + 381 * count] * 8; if (raw_patch_data[16384 + 35 * op + 71 + 381 * count] > 3) raw_patch_data[16384 + 35 * op + 71 + 381 * count] = 3; raw_patch_data[17 * (5 - op) + 13 + 128 * count] = raw_patch_data[16384 + 35 * op + 71 + 381 * count] / 2 + raw_patch_data[16384 + 35 * op + 91 + 381 * count] * 4; raw_patch_data[17 * (5 - op) + 14 + 128 * count] = raw_patch_data[16384 + 35 * op + 90 + 381 * count]; raw_patch_data[17 * (5 - op) + 15 + 128 * count] = raw_patch_data[16384 + 35 * op + 72 + 381 * count] + raw_patch_data[16384 + 35 * op + 73 + 381 * count] * 2; raw_patch_data[17 * (5 - op) + 16 + 128 * count] = raw_patch_data[16384 + 35 * op + 74 + 381 * count]; } for (i = 0; i < 4; i++) { raw_patch_data[102 + i + 128 * count] = raw_patch_data[16384 + 26 + i + 381 * count]; } for (i = 0; i < 4; i++) { raw_patch_data[106 + i + 128 * count] = raw_patch_data[16384 + 32 + i + 381 * count]; } raw_patch_data[110 + 128 * count] = raw_patch_data[16384 + 17 + 381 * count]; raw_patch_data[111 + 128 * count] = raw_patch_data[16384 + 18 + 381 * count] + raw_patch_data[16384 + 38 + 381 * count] * 8; for (i = 0; i < 4; i++) { raw_patch_data[112 + i + 128 * count] = raw_patch_data[16384 + 20 + i + 381 * count]; } raw_patch_data[116 + 128 * count] = raw_patch_data[16384 + 24 + 381 * count] + raw_patch_data[16384 + 19 + 381 * count] * 2 + raw_patch_data[16384 + 25 + 381 * count] * 16; raw_patch_data[117 + 128 * count] = raw_patch_data[16384 + 37 + 381 * count] - 36; for (i = 0; i < 10; i++) { raw_patch_data[118 + i + 128 * count] = raw_patch_data[16384 + i + 381 * count]; } } count = 128; filelength = 16384; datastart = 0; } /* finally, copy patchdata to the right location */ if (count > Voices - Voice_Cursor) { /* if ( voices-in-file > voices-to-end-of-buffer ) */ cprintf(" Load - Patch file '%s' too big for remaining space:\n", filename); cprintf(" %d patches in file, only %d loaded!\n", count, Voices - Voice_Cursor); paktc(); count = Voices - Voice_Cursor; } memcpy(voiceAddr(Voice_Cursor), raw_patch_data + datastart, DX7_VOICE_SIZE_PACKED * count); free (raw_patch_data); cprintf(" File '%s' loaded.\n", filename); return count; } void Save(int vstart, int vend) /* range is inclusive, filename in FNameBuff */ { FILE *fh; long flength; if ((fh = fopen(FNameBuff, "wb")) != 0) { flength = (vend - vstart + 1) * DX7_VOICE_SIZE_PACKED; if (flength != fwrite(voiceAddr(vstart), 1, flength, fh)) { cprintf("Save - Error writing file '%s':\n", FNameBuff); cprintf(" '%s'!\n", strerror(errno)); paktc(); } fclose(fh); } else { cprintf("Save - Error opening file '%s':\n", FNameBuff); cprintf(" '%s'!\n", strerror(errno)); paktc(); } } /* ==== VoiceEdit Stuff ==== */ void ve_ShowAlg(void) { int alg = SingleData[134], x, y; char *s = veAlg[alg]; bool t; textattr(COLOR_LABEL); for (y = 12; y <= 20; y++) { x = 56; move(y, x); for (; x <= 72; x++) { switch (*s) { case '1': t = (!!(ve_OpSelect&32)); goto printop; case '2': t = (!!(ve_OpSelect&16)); goto printop; case '3': t = (!!(ve_OpSelect& 8)); goto printop; case '4': t = (!!(ve_OpSelect& 4)); goto printop; case '5': t = (!!(ve_OpSelect& 2)); goto printop; case '6': t = (!!(ve_OpSelect& 1)); printop: textattr(t ? COLOR_OPON : COLOR_OPOFF); cputch(*s++); textattr(COLOR_LABEL); break; case 0: cputch(' '); break; case '\n': cputch(' '); if (x == 72) s++; break; case '^': cputch(ACS_BTEE); s++; break; case '-': cputch(ACS_HLINE); s++; break; case 'L': cputch(ACS_LLCORNER); s++; break; case '/': cputch(ACS_LRCORNER); s++; break; case '}': cputch(ACS_LTEE); s++; break; case '+': cputch(ACS_PLUS); s++; break; #if 0 case '?': /* -FIX- */ cputch(ACS_RTEE); s++; break; case '?': /* -FIX- */ cputch(ACS_TTEE); s++; break; #endif case '\'': cputch(ACS_ULCORNER); s++; break; case '`': cputch(ACS_URCORNER); s++; break; case '|': cputch(ACS_VLINE); s++; break; default: cputch(*s++); break; } } } textattr(COLOR_DATA); } void ve_FExtend(UBYTE fc, UBYTE ff, UBYTE mode, UBYTE y) { unsigned long f; char ca[10]; textattr(COLOR_LABEL); move(y, 47); if (mode) { /* fixed */ f = veFFF[ff]; switch (fc & 3) { case 1: f *= 10; break; case 2: f *= 100; break; case 3: f *= 1000; break; } } else { f = fc * 10; if (!f) f = 5; f = (100 + ff) * f; } f = sprintf(ca, "%ld", f); switch (f) { case 3: cprintf("0.%.3s", ca); break; case 4: cprintf("%.1s.%.3s", ca, ca + 1); break; case 5: cprintf("%.2s.%.2s", ca, ca + 2); break; case 6: cprintf("%.3s.%.1s", ca, ca + 3); break; case 7: cprintf("%.4s.", ca); break; } textattr(COLOR_DATA); } void ve_printParm(int parm) { unsigned char val = SingleData[veParm[parm].Offset], c; char *t; move(veParm[parm].Y, veParm[parm].X); if (parm == ve_Cursor) textattr(COLOR_CURSOR); switch (veParm[parm].Type) { case vptName: { UBYTE ca[11]; memcpy(ca, SingleData + 145, 10); for (c = 0; c < 10; c++) { if (ca[c] < 32) ca[c]=183; /* centered dot */ else if (ca[c] >= 128) ca[c]=174; /* (R) symbol = out-of-range */ else { switch (ca[c]) { case 92: ca[c]=165; break; /* yen */ case 126: ca[c]=187; break; /* >> */ case 127: ca[c]=171; break; /* << */ } } } ca[10] = 0; cprintf("%s", ca); } break; case vpt0_99: if (val > 99) cprintf("??"); else cprintf("%2.2d", val); break; case vpt0_7: if (val > 7) cputch('?'); else cputch(val+'0'); break; case vptMode: switch (val) { case 0: c = 'R'; break; case 1: c = 'F'; break; default: c = '?'; break; } cputch(c); ve_FExtend(SingleData[veParm[parm+1].Offset], SingleData[veParm[parm+2].Offset], val, veParm[parm].Y); break; case vptFC: if (val > 31) cprintf("??"); else cprintf("%2d", val); ve_FExtend(val, SingleData[veParm[parm+1].Offset], SingleData[veParm[parm-1].Offset], veParm[parm].Y); break; case vptFF: if (val > 99) cprintf("??"); else cprintf("%2d", val); ve_FExtend(SingleData[veParm[parm-1].Offset], val, SingleData[veParm[parm-2].Offset], veParm[parm].Y); break; case vptDetune: /* 0-14, as -7-+7 */ if (val > 14) cprintf("??"); else cprintf("%+2d", val-7); break; case vpt0_3: if (val > 3) cputch('?'); else cputch(val+'0'); break; case vptAlg: /* 0-31, as 1-32 */ if (val > 31) { cprintf("??"); break; } cprintf("%2d", val+1); ve_ShowAlg(); return; case vptCurve: switch (val) { case 0: t = "-Lin"; break; case 1: t = "-Exp"; break; case 2: t = "+Exp"; break; case 3: t = "+Lin"; break; default: t = "????"; } cprintf("%s", t); break; case vptBkPt: if (val > 99) { cprintf("????"); break; } val += 21; goto printnote; case vptTrans: if (val > 48) { cprintf("????"); break; } val += 36; printnote: cprintf("%s", NoteText(val)); break; case vptOnOff: switch (val) { case 0: t = "Off"; break; case 1: t = " On"; break; default: t = "???"; } cprintf("%s", t); break; case vptWave: switch (val) { case 0: t = "TRI"; break; case 1: t = "SW-"; break; case 2: t = "SW+"; break; case 3: t = "SQU"; break; case 4: t = "SIN"; break; case 5: t = "S/H"; break; default: t = "???"; break; } cprintf("%s", t); break; } if (parm == ve_Cursor) textattr(COLOR_DATA); } void ve_SetScreen(void) { textattr(COLOR_DATA); cprintf(" TX/Edit Voice Edit"); textattr(COLOR_LABEL); cprintf(" Name\n" " A\n" " O R V M\n" " P R1 L1 R2 L2 R3 L3 R4 L4 S M FC FF D Freq. OL S S\n"); cprintf(" 1\n" " 2\n" " 3\n" " 4\n" " 5\n" " 6\n" " P\n"); cprintf(" Alg.\n" " Left BkPt Right Speed Fdbk\n"); cprintf(" 1 Delay C3=\n"); cprintf(" 2 PMD OKS\n"); cprintf(" 3 AMD\n"); cprintf(" 4 Sync\n"); cprintf(" 5 Wave\n"); cprintf(" 6 PMS\n"); textattr(COLOR_DATA); } void ve_DoScreen(void) { int i; for (i = 0; i < VOICEPARMS; ve_printParm(i++)); } void ve_Name(int c) { UBYTE i; for(i = 145; i < 154; i++) SingleData[i] = SingleData[i + 1]; SingleData[154] = c; PutUnpacked(); ve_printParm(0); ve_OpSelect = 63; ve_ShowAlg(); } void ve_Inc(int parm) { unsigned char val = SingleData[veParm[parm].Offset], max; max = vtypemax[veParm[parm].Type]; if (!max) return; if (++val > max) val = 0; SingleData[veParm[parm].Offset] = val; PutParm(parm); ve_printParm(parm); } void ve_Dec(int parm) { unsigned char val = SingleData[veParm[parm].Offset], max; max = vtypemax[veParm[parm].Type]; if (!max) return; if (val) val--; else val = max; SingleData[veParm[parm].Offset] = val; PutParm(parm); ve_printParm(parm); } void ve_Zero(void) { UBYTE offset = veParm[ve_Cursor].Offset; if(ve_Cursor == 0) { /* do name */ for(offset = 154; offset > 145; offset--) SingleData[offset] = SingleData[offset - 1]; SingleData[145] = ' '; PutUnpacked(); ve_OpSelect = 63; ve_ShowAlg(); } else { SingleData[offset] = InitVoiceUnpacked[offset]; PutParm(ve_Cursor); } ve_printParm(ve_Cursor); } void ve_CurUp(void) { int oldcursor = ve_Cursor; #ifndef USE_CALCED_CURSOR_MOVES ve_Cursor = veParm[ve_Cursor].Up; ve_printParm(oldcursor); ve_printParm(ve_Cursor); #else /* USE_CALCED_CURSOR_MOVES */ int i, dx, dy, distance, best = -1, bestdistance = 1000; /* try to find the closest parm in the 'up' direction */ for (i = 0; i <= VOICEPARMMAX; i++) { dx = abs(veParm[ve_Cursor].X - veParm[i].X); dy = (veParm[ve_Cursor].Y - 1) - veParm[i].Y; if (dy < 0) dy += VOICEPARMS_Y_SPAN + 2; /* wrap */ dy = dy * 5 / 2; /* prefer something <2.5 spaces away horizontally to 1 space vertically */ distance = dx + dy; if (bestdistance > distance) { bestdistance = distance; best = i; } } if (best >= 0) { ve_Cursor = best; ve_printParm(oldcursor); ve_printParm(ve_Cursor); } #endif /* USE_CALCED_CURSOR_MOVES */ } void ve_CurDown(void) { int oldcursor = ve_Cursor; #ifndef USE_CALCED_CURSOR_MOVES ve_Cursor = veParm[ve_Cursor].Down; ve_printParm(oldcursor); ve_printParm(ve_Cursor); #else /* USE_CALCED_CURSOR_MOVES */ int i, dx, dy, distance, best = -1, bestdistance = 1000; /* try to find the closest parm in the 'down' direction */ for (i = 0; i <= VOICEPARMMAX; i++) { dx = abs(veParm[i].X - veParm[ve_Cursor].X); dy = veParm[i].Y - (veParm[ve_Cursor].Y + 1); if (dy < 0) dy += VOICEPARMS_Y_SPAN + 2; /* wrap */ dy = dy * 5 / 2; /* prefer something <2.5 spaces away horizontally to 1 space vertically */ distance = dx + dy; if (bestdistance > distance) { bestdistance = distance; best = i; } } if (best >= 0) { ve_Cursor = best; ve_printParm(oldcursor); ve_printParm(ve_Cursor); } #endif /* USE_CALCED_CURSOR_MOVES */ } void ve_CurRight(void) { int oldcursor = ve_Cursor; #ifndef USE_CALCED_CURSOR_MOVES if(++ve_Cursor > VOICEPARMMAX) ve_Cursor = 0; ve_printParm(oldcursor); ve_printParm(ve_Cursor); #else /* USE_CALCED_CURSOR_MOVES */ int i, dx, dy, distance, best = -1, bestdistance = 1000; /* try to find the closest parm in the 'right' direction */ for (i = 0; i <= VOICEPARMMAX; i++) { dx = veParm[i].X - (veParm[ve_Cursor].X + 2); if (dx < 0) dx += VOICEPARMS_X_SPAN + 4; /* wrap */ dy = abs(veParm[i].Y - veParm[ve_Cursor].Y); dy = dy * 12; /* prefer something <8 spaces away horizontally to 1 space vertically */ distance = dx + dy; if (bestdistance > distance) { bestdistance = distance; best = i; } } if (best >= 0) { ve_Cursor = best; ve_printParm(oldcursor); ve_printParm(ve_Cursor); } #endif /* USE_CALCED_CURSOR_MOVES */ } void ve_CurLeft(void) { int oldcursor = ve_Cursor; #ifndef USE_CALCED_CURSOR_MOVES if(ve_Cursor) ve_Cursor--; else ve_Cursor = VOICEPARMMAX; ve_printParm(oldcursor); ve_printParm(ve_Cursor); #else /* USE_CALCED_CURSOR_MOVES */ int i, dx, dy, distance, best = -1, bestdistance = 1000; /* try to find the closest parm in the 'left' direction */ for (i = 0; i <= VOICEPARMMAX; i++) { dx = (veParm[ve_Cursor].X - 2) - veParm[i].X; if (dx < 0) dx += VOICEPARMS_X_SPAN + 4; /* wrap */ dy = abs(veParm[i].Y - veParm[ve_Cursor].Y); dy = dy * 12; /* prefer something <8 spaces away horizontally to 1 space vertically */ distance = dx + dy; if (bestdistance > distance) { bestdistance = distance; best = i; } } if (best >= 0) { ve_Cursor = best; ve_printParm(oldcursor); ve_printParm(ve_Cursor); } #endif /* USE_CALCED_CURSOR_MOVES */ } void ve_Erase(void) { memcpy(SingleData, InitVoiceUnpacked, DX7_VOICE_SIZE_UNPACKED); // erase(); // ve_SetScreen(); ve_DoScreen(); refresh(); PutUnpacked(); } void ve_PgUp(void) { if (Voice_Cursor) { Pack(Voice_Cursor); Unpack(--Voice_Cursor); ve_DoScreen(); refresh(); PutUnpacked(); } } void ve_PgDn(void) { if (Voice_Cursor < Voices - 1) { Pack(Voice_Cursor); Unpack(++Voice_Cursor); ve_DoScreen(); refresh(); PutUnpacked(); } } void _ve_SetOps(void) { UBYTE bd[7]; bd[0] = 0xF0; bd[1] = 0x43; bd[2] = 0x10 | TXChannel; bd[3] = 1; bd[4] = 27; bd[5] = ve_OpSelect; bd[6] = 0xF7; PutMidiMsg(bd, 7); } void ve_SetOps(int o) { UBYTE i; ve_OpSelect ^= o; for (i = 1; i < 7; i++) { if (ve_OpSelect & (1 << (6 - i))) textattr(COLOR_OPON); else textattr(COLOR_OPOFF); move(3 + i, 2); cprintf("%c", i + '0'); move(12 + i, 2); cprintf("%c", i + '0'); } /* textattr(COLOR_DATA); not needed with ve_ShowAlg() */ ve_ShowAlg(); _ve_SetOps(); } void ve_Number(int c) { unsigned char val = SingleData[veParm[ve_Cursor].Offset], typ = veParm[ve_Cursor].Type, max = vtypemax[typ]; switch(typ) { case vpt0_99: case vptFF: val=(val * 10 + c - '0') % 100; break; case vptFC: val=(val * 10 + c - '0') % 100; for(; val > 31; val -= 10); break; case vpt0_7: case vpt0_3: val=c - '0'; if(val > max) val = max; break; case vptAlg: val=((val + 1) * 10 + c - '0') % 100; if (!val) val = 1; for(; val > 32; val -= 10); val--; break; default: return; } SingleData[veParm[ve_Cursor].Offset] = val; PutParm(ve_Cursor); ve_printParm(ve_Cursor); } void ve_Help(void) { erase(); cprintf(" TX/Edit v" VERSIONSTRING " Voice Edit Help\n\n"); cprintf(" Up / Down /\n" " Right / Left - Move cursor\n\n"); cprintf(" + - Increment field\n" " - - Decrement field\n" " 0 through 9 - Enter data into field\n" " Backspace - Zero/reset field\n\n"); cprintf(" A through Z - Rotate letters into name (name field only)\n\n" " F1 through F6 - Enable/disable operators 1 through 6\n\n"); cprintf(" Meta-P - Put edit buffer as single voice\n" " Meta-! - Erase edit buffer to init voice\n" " PgUp / PgDn - Move to previous / next voice\n" " Esc / Meta-L - Return to librarian mode\n\n" " h / Meta-H - Display this help screen\n\n"); paktc(); erase(); ve_SetScreen(); ve_DoScreen(); } void ve_CharIn(int c) { if(!ve_Cursor && c>=32 && c<=127) { ve_Name(c); } else { if(c >= 'A' && c <= 'Z') c = tolower(c); switch(c) { case '+': case '=': ve_Inc(ve_Cursor); break; case '-': ve_Dec(ve_Cursor); break; #if 0 case kc_Del: #endif case KEY_BACKSPACE: ve_Zero(); break; case KEY_UP: ve_CurUp(); break; case KEY_DOWN: ve_CurDown(); break; case KEY_RIGHT: ve_CurRight(); break; case KEY_LEFT: ve_CurLeft(); break; case KEY_METAL: case KEY_ESC: newmode=MODELIB; break; case KEY_F(1): ve_SetOps(32); break; case KEY_F(2): ve_SetOps(16); break; case KEY_F(3): ve_SetOps( 8); break; case KEY_F(4): ve_SetOps( 4); break; case KEY_F(5): ve_SetOps( 2); break; case KEY_F(6): ve_SetOps( 1); break; case KEY_PPAGE: ve_PgUp(); break; case KEY_NPAGE: ve_PgDn(); break; case KEY_METAP: PutUnpacked(); break; case KEY_METAEX: ve_Erase(); break; case KEY_METAH: case 'h': ve_Help(); break; default: if(c>='0' && c<='9') { ve_Number(c); } else { gotomsg(); cprintf(" Type for help..."); beep(); #ifdef DEBUG cprintf("keycode=0x%04x", c); #endif } break; } } } /* ==== Librarian Stuff ==== */ void LibPrintVName(int voice) /* print name at correct cursor position */ { if (Voice_TOS <= voice && voice < Voice_TOS + LibNames) { move((voice-Voice_TOS)%LibRows + 2, (voice-Voice_TOS)/LibRows * 15 + 1); if (voice= Voice_TOS) { LibPrintVName(vc); LibPrintVName(++vc); } else { Voice_TOS = max(Voice_TOS - LibRows, 0); LibDoScreen(); } } } void LibCurDown(void) { if (Voice_Cursor < Voices - 1) { int vc; vc = ++Voice_Cursor; CheckBlock(); if (vc < Voice_TOS + LibNames) { LibPrintVName(vc); LibPrintVName(--vc); } else { Voice_TOS += LibRows; LibDoScreen(); } } } void LibCurRight(void) { if (Voice_Cursor < Voices - 1) { int oldvc, newvc; oldvc = Voice_Cursor; Voice_Cursor = newvc = min(oldvc + LibRows, Voices - 1); CheckBlock(); if (newvc < Voice_TOS + LibNames) { if (blocking) { for (; oldvc <= newvc; LibPrintVName(oldvc++)); } else { LibPrintVName(oldvc); LibPrintVName(newvc); } } else { Voice_TOS += LibRows; LibDoScreen(); } } } void LibCurLeft(void) { if (Voice_Cursor) { int oldvc, newvc; oldvc = Voice_Cursor; Voice_Cursor = newvc = max(oldvc - LibRows, 0); CheckBlock(); if (newvc >= Voice_TOS) { if (blocking) { for (; oldvc >= newvc; LibPrintVName(oldvc--)); } else { LibPrintVName(oldvc); LibPrintVName(newvc); } } else { Voice_TOS = max(Voice_TOS - LibRows, 0); LibDoScreen(); } } } void LibCtrlPgUp(void) { if (Voice_Cursor) { int oldvc, newvc; oldvc = Voice_Cursor; Voice_Cursor = newvc = max(Voice_Cursor - 1, 0) & 0xffe0; CheckBlock(); if (newvc >= Voice_TOS) { if (blocking) { for (; oldvc >= newvc; LibPrintVName(oldvc--)); } else { LibPrintVName(oldvc); LibPrintVName(newvc); } } else { Voice_TOS=newvc; LibDoScreen(); } } } void LibCtrlPgDn(void) { if (Voice_Cursor < Voices-1) { int oldvc, newvc; oldvc = Voice_Cursor; Voice_Cursor = newvc = min(((Voice_Cursor + 33) & 0xffe0) - 1, Voices - 1); CheckBlock(); if (newvc < Voice_TOS + LibNames) { if (blocking) { for (; oldvc <= newvc; LibPrintVName(oldvc++)); } else { LibPrintVName(oldvc); LibPrintVName(newvc); } } else { Voice_TOS=max(newvc - LibNames + 1, 0); LibDoScreen(); } } } void LibCurEnd(void) { Voice_Cursor = Voices - 1; Voice_TOS = max(Voices - LibNames, 0); CheckBlock(); LibDoScreen(); } void LibCurHome(void) { Voice_Cursor = 0; Voice_TOS = 0; CheckBlock(); LibDoScreen(); } void LibPgUp(void) { if (Voice_Cursor) { int oldvc, newvc; oldvc = Voice_Cursor; Voice_Cursor = newvc = max(Voice_Cursor - 1, 0) & 0xfff0; CheckBlock(); if (newvc >= Voice_TOS) { if (blocking) { for (; oldvc >= newvc; LibPrintVName(oldvc--)); } else { LibPrintVName(oldvc); LibPrintVName(newvc); } } else { Voice_TOS = newvc; LibDoScreen(); } } } void LibPgDn(void) { if (Voice_Cursor < Voices-1) { int oldvc, newvc; oldvc = Voice_Cursor; Voice_Cursor = newvc = min(((Voice_Cursor + 17) & 0xfff0) - 1, Voices - 1); CheckBlock(); if (newvc < Voice_TOS + LibNames) { if (blocking) { for (; oldvc <= newvc; LibPrintVName(oldvc++)); } else { LibPrintVName(oldvc); LibPrintVName(newvc); } } else { Voice_TOS = max(newvc - LibNames + 1, 0); LibDoScreen(); } } } void LibCtrlRight(void) { Voice_Cursor = min(Voice_Cursor + LibNames, Voices - 1); Voice_TOS = min(Voice_TOS + LibNames, max(Voices - LibNames, 0)); CheckBlock(); LibDoScreen(); } void LibCtrlLeft(void) { if (Voice_Cursor) { Voice_Cursor = max(Voice_Cursor - LibNames, 0); Voice_TOS = max(Voice_TOS - LibNames, 0); CheckBlock(); LibDoScreen(); } } void LBA_Copy(void) { #ifdef DEBUG if (!blocked) { cprintf("LBA_Copy - not Blocked?!"); return; } #endif memmove(voiceAddr(Voice_Cursor), voiceAddr(Voice_BStart), min(Voice_BEnd - Voice_BStart + 1, Voices - Voice_Cursor) * DX7_VOICE_SIZE_PACKED); CancelBlock(); } void LibCopy(void) { SetBlock(); EndBlock(); LibBlockAction = LBA_Copy; gotomsg(); cprintf("Move Cursor to Copy destination and press return..."); } void LibDelete(void) { int i; SetBlock(); if (Voices > Voice_BEnd + 1) memmove(voiceAddr(Voice_BStart), voiceAddr(Voice_BEnd + 1), (Voices - Voice_BEnd - 1) * DX7_VOICE_SIZE_PACKED); for (i = Voices - Voice_BEnd + Voice_BStart - 1; i < Voices; EraseVoice(i++)); CancelBlock(); } void LibErase(void) { int i; SetBlock(); for (i = Voice_BStart; i <= Voice_BEnd; EraseVoice(i++)); CancelBlock(); } void LibLoad(void) { erase(); LibSetScreen(); cprintf("\n\n"); if (FileRequest(FNameBuff, "TX/Edit Load Voices")) { Load(FNameBuff); } erase(); LibSetScreen(); LibDoScreen(); } void LBA_Move(void) /* swap patches, overlapping ranges CF! */ { int i; UBYTE *v1, *v2; #ifdef DEBUG if (!blocked) { cprintf("LBA_Move - not Blocked?!"); return; } #endif for (i = Voice_BStart; (i <= Voice_BEnd) && (Voice_Cursor + i - Voice_BStart < Voices); i++) { v1=voiceAddr(i); v2=voiceAddr(Voice_Cursor + i - Voice_BStart); memmove(SingleData, v1, DX7_VOICE_SIZE_PACKED); memmove(v1, v2, DX7_VOICE_SIZE_PACKED); memmove(v2, SingleData, DX7_VOICE_SIZE_PACKED); } CancelBlock(); } void LibMove(void) { SetBlock(); EndBlock(); LibBlockAction = LBA_Move; gotomsg(); cprintf("Move Cursor to Move destination and press return..."); } void LibSave(void) { if (blocking) { erase(); LibSetScreen(); cprintf("\n\n"); Save(Voice_BStart, Voice_BEnd); erase(); LibSetScreen(); CancelBlock(); } else { gotomsg(); textattr(COLOR_MSG); cprintf(" Save - Must mark block first! - "); paktc(); } } void LibSaveAs(void) { if (blocking) { erase(); LibSetScreen(); cprintf("\n\n"); if (FileRequest(FNameBuff, "TX/Edit Save Voices")) { Save(Voice_BStart, Voice_BEnd); } erase(); LibSetScreen(); CancelBlock(); } else { gotomsg(); textattr(COLOR_MSG); cprintf("Save As - Must mark block first! - "); paktc(); } } UBYTE lstol(UBYTE c) { if (c >= 'A' && c <= 'Z') return c + 32; else return c; } int _LibSortCmp(const UBYTE *v1, const UBYTE *v2) { int i; for (i = 118; i < 128; i++) { if (lstol(v1[i]) != lstol(v2[i])) return lstol(v1[i]) - lstol(v2[i]); } return 0; } void LibSort(void) { SetBlock(); if (Voice_BStart != Voice_BEnd) { qsort(voiceAddr(Voice_BStart), Voice_BEnd - Voice_BStart + 1, DX7_VOICE_SIZE_PACKED, (int (*)())_LibSortCmp); } CancelBlock(); } int _LibSortCmpPatch(const UBYTE *v1, const UBYTE *v2) { int i; #define SORT_BY_ALGORITHM_FIRST #ifdef SORT_BY_ALGORITHM_FIRST if (v1[110] != v2[110]) return v1[110] - v2[110]; #endif for (i = 0; i < 118; i++) { if (v1[i] != v2[i]) return v1[i] - v2[i]; } return 0; } void LibSortPatch(void) { SetBlock(); if (Voice_BStart != Voice_BEnd) { qsort(voiceAddr(Voice_BStart), Voice_BEnd - Voice_BStart + 1, DX7_VOICE_SIZE_PACKED, (int (*)())_LibSortCmpPatch); } /* #define SORT_PATCH_ERASE_DUPLICATES */ #ifdef SORT_PATCH_ERASE_DUPLICATES { int i; for (i = Voice_BEnd - 1; i >= Voice_BStart; i--) { if (memcmp(voiceAddr(i), voiceAddr(i + 1), 118) == 0) EraseVoice(i + 1); } } #endif CancelBlock(); } void LibHelp(void) { erase(); cprintf(" TX/Edit v" VERSIONSTRING " Help\n\n"); cprintf(" a / Meta-A - Save block As\n" " b / Meta-B - Start block\n" " c / Meta-C - Copy\n" " Meta-D - Delete\n" " e / Meta-E - Enter Edit mode\n"); #if 0 " g / Meta-G - Get (voice or 32 voices?)\n" #endif cprintf(" h / Meta-H - Display this help screen\n\n" " m / Meta-M - Move\n" " o / Meta-O - Load\n" " p / Meta-P - Put single voice (use space to step-send)\n"); #if 0 " r / Meta-R - Receive (voice or 32 voices?)\n" #endif cprintf(" Meta-S - Save block\n" " Meta-T - Put bank (32 voices starting at cursor)\n" " Meta-= - Sort block by patch names\n" " Meta-+ - Sort block by patch data\n" " Meta-! - Erase voice\n"); #if 0 " Meta-# - Change MIDI channel\n" #endif cprintf(" Escape - Cancel block\n" " Enter - Perform pending block action\n" " Up / Down /\n" " Right / Left /\n" " PgUp / PgDn - Move cursor\n"); #if 0 /* Ctrl-Right, Ctrl-Left, Ctrl-PgUp, Ctrl-PgDn, End, Ctrl-End, Home, Ctrl-Home could have functions */ #endif paktc(); erase(); LibSetScreen(); LibDoScreen(); } void vl_CharIn(int c) { if(c >= 'A' && c <= 'Z') c = tolower(c); switch (c) { case KEY_METAA: case 'a': LibSaveAs(); break; case KEY_METAB: case 'b': StartBlock(); break; case KEY_METAC: case 'c': LibCopy(); break; case KEY_METAD: LibDelete(); break; case KEY_METAE: case 'e': newmode=MODEEDIT; break; #if 0 case KEY_METAG: case 'g': cprintf("Get!!!!"); break; #endif case KEY_METAH: case 'h': LibHelp(); break; case KEY_METAM: case 'm': LibMove(); break; case KEY_METAO: case 'o': LibLoad(); break; /* Space for Step-Send */ case ' ': LibCurDown(); /* and fall through to: */ case KEY_METAP: case 'p': PutPacked(Voice_Cursor); break; #if 0 case KEY_METAR: case 'r': cprintf("Receive!!!!"); break; #endif case KEY_METAS: LibSave(); break; case KEY_METAT: PutBank(Voice_Cursor); break; case KEY_METAEQ: LibSort(); break; case KEY_METAPL: LibSortPatch(); break; case KEY_METAEX: LibErase(); break; #if 0 case KEY_METANU: case '#': cprintf("Channel!!!!"); break; #endif case KEY_ESC: EscBlock(); break; case KEY_ENTER: LibBlockAction(); break; case KEY_UP: LibCurUp(); break; case KEY_DOWN: LibCurDown(); break; case KEY_RIGHT: LibCurRight(); break; case KEY_LEFT: LibCurLeft(); break; #if 0 case kc_CtrlRight: LibCtrlRight(); break; case kc_CtrlLeft: LibCtrlLeft(); break; #endif case KEY_PPAGE: LibPgUp(); break; case KEY_NPAGE: LibPgDn(); break; #if 0 case kc_CtrlPgUp: LibCtrlPgUp(); break; case kc_CtrlPgDn: LibCtrlPgDn(); break; case kc_End: case kc_CtrlEnd: LibCurEnd(); break; case kc_Home: case kc_CtrlHome: LibCurHome(); break; #endif default: gotomsg(); cprintf(" Type for help..."); beep(); #ifdef DEBUG cprintf("keycode=0x%04x, 0%o", c, c); #endif } } /* ==== Control ==== */ void TXsetmode(void) { /* cleanup from old mode */ switch(txmode) { case MODELIB: blocking = FALSE; blocked = FALSE; LibBlockAction = noop; break; case MODEEDIT: if(ve_OpSelect != 63) { ve_OpSelect = 63; _ve_SetOps(); } Pack(Voice_Cursor); break; } txmode=newmode; /* set up for new mode */ switch(txmode) { case MODELIB: if (Voice_Cursor < Voice_TOS || Voice_Cursor >= Voice_TOS + LibNames) { Voice_TOS = min(Voice_Cursor & 0xfff0, max(Voices - LibNames, 0)); } erase(); LibSetScreen(); LibDoScreen(); refresh(); break; case MODEEDIT: erase(); Unpack(Voice_Cursor); ve_SetScreen(); ve_DoScreen(); refresh(); PutUnpacked(); break; } } int main(int argc, char ** argv) { int c; static struct option long_options[] = { {"help", 0, 0, 'h'}, {"voices", 1, 0, 'v'}, {0, 0, 0, 0} }; while ((c = getopt_long(argc, argv, "hv:", long_options, NULL)) != EOF) { switch (c) { case 'v': Voices = atoi(optarg); if (Voices < 32) Voices = 32; break; case 'h': default: fprintf(stderr, "TX/Edit v" VERSIONSTRING " (c)2004 Sean Bolton\n" "options:\n" "-vnnn --voices=nnn allocate nnn voice slots\n" "-h --help print this message and exit\n"); exit(c == 'h' ? 0 : 1); } } TXInit(); if (optind < argc) { /* load command line arguments */ scrollok(stdscr, TRUE); erase(); LibSetScreen(); cprintf("\n\n"); for (c = optind; c < argc; c++) { Voice_Cursor += Load(argv[c]); } paktc(); Voice_Cursor = 0; scrollok(stdscr, FALSE); } newmode=MODELIB; TXsetmode(); do { refresh(); /* -FIX- */ c = cgetch(); switch (c) { case KEY_METAQ: newmode=MODEQUIT; break; default: switch(txmode) { case MODELIB: vl_CharIn(c); break; case MODEEDIT: ve_CharIn(c); break; } break; } if (txmode != newmode) TXsetmode(); } while (txmode != MODEQUIT); TXTerm(RETURN_OK); /* never returns */ return 0; } hexter-version_1.1.0/fptest/000077500000000000000000000000001325353653200160715ustar00rootroot00000000000000hexter-version_1.1.0/fptest/Makefile000066400000000000000000000023501325353653200175310ustar00rootroot00000000000000CC=gcc CFLAGS=-Wall -O2 -g -fomit-frame-pointer -funroll-loops -finline-functions -ffast-math -I../src OS=$(shell uname) ifeq ($(OS),Darwin) DSSI_CFLAGS=`pkg-config dssi libdssialsacompat --cflags` LDFLAGS=-lm `pkg-config dssi libdssialsacompat --libs` else DSSI_CFLAGS=`pkg-config dssi alsa --cflags` LDFLAGS=-lm -lpthread `pkg-config dssi alsa --libs` endif DEPS = wrapper.h ../src/dx7_voice.h ../src/dx7_voice_data.h ../src/hexter.h \ ../src/hexter_synth.h ../src/hexter_types.h OBJ = dx7_voice_fix.o dx7_voice_data_fix.o \ dx7_voice_render_fix.o dx7_voice_tables_fix.o \ hexter_fix.o hexter_synth_fix.o \ dx7_voice_float.o dx7_voice_data_float.o \ dx7_voice_render_float.o dx7_voice_tables_float.o \ hexter_float.o hexter_synth_float.o \ dx7_voice_patches.o \ harness.o %_fix.o: ../src/%.c $(DEPS) $(CC) $(CFLAGS) $(DSSI_CFLAGS) -c -o $@ $< -include wrapper.h %_float.o: ../src/%.c $(DEPS) $(CC) $(CFLAGS) $(DSSI_CFLAGS) -DHEXTER_USE_FLOATING_POINT -c -o $@ $< -include wrapper.h %.o: ../src/%.c $(DEPS) $(CC) $(CFLAGS) $(DSSI_CFLAGS) -c -o $@ $< fptest: $(OBJ) $(CC) -o $@ $^ $(LDFLAGS) harness.o: harness.c $(DEPS) $(CC) $(CFLAGS) $(DSSI_CFLAGS) -c -o $@ $< .PHONY: clean clean: rm fptest *.o hexter-version_1.1.0/fptest/harness.c000066400000000000000000000135251325353653200177060ustar00rootroot00000000000000/* hexter fixed-point/floating-point speed test harness * * Copyright (C) 2011, 2018 Sean Bolton. * * 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 #include #include #include #include #include #include #include "hexter_types.h" #include "hexter.h" #define VERSION "0.1" #define SAMPLE_RATE 44100 #define FIX 0 #define FLOAT 1 /* in hexter.c: */ const DSSI_Descriptor *dssi_descriptor_fix(unsigned long index); const DSSI_Descriptor *dssi_descriptor_float(unsigned long index); static const DSSI_Descriptor *descriptor[2]; static LADSPA_Handle handle[2]; static float output[HEXTER_NUGGET_SIZE]; static float port[3] = { 0.0f, 440.0f, -12.0f }; static int samples[2], note[2], delay[2]; static snd_seq_event_t event; static snd_seq_event_t *events[1] = { &event }; static unsigned long nevents[2] = { 0, 1 }; static struct rusage before, after; static double usage[2]; void setup_plugin(int index, const DSSI_Descriptor *d) { char *err; /* instantiate */ handle[index] = d->LADSPA_Plugin->instantiate(d->LADSPA_Plugin, SAMPLE_RATE); if (handle[index] == NULL) { printf("instantiate() failed for %d!\n", index); exit(1); } /* connect ports */ d->LADSPA_Plugin->connect_port(handle[index], HEXTER_PORT_OUTPUT, output); d->LADSPA_Plugin->connect_port(handle[index], HEXTER_PORT_TUNING, port + 1); d->LADSPA_Plugin->connect_port(handle[index], HEXTER_PORT_VOLUME, port + 2); /* activate */ d->LADSPA_Plugin->activate(handle[index]); /* configure */ err = d->configure(handle[index], "polyphony", "32"); if (err) { printf("configure(..., \"polyphony\", \"32\") failed for %d\n", index); exit(1); } /* select program */ d->select_program(handle[index], 0, 0); } void run_plugin(int i, int count) { while (samples[i] < count) { int start_note = 0; if (samples[i] >= delay[i]) { start_note = 1; event.data.note.note = note[i]; // printf("starting note %d at %d for index %d\n", note[i], samples[i], i); note[i] += 2; if (note[i] > 100) note[i] = 36; delay[i] += SAMPLE_RATE / 8; } if (start_note) { descriptor[i]->run_multiple_synths(1, &handle[i], HEXTER_NUGGET_SIZE, events, &nevents[1]); } else { descriptor[i]->run_multiple_synths(1, &handle[i], HEXTER_NUGGET_SIZE, events, &nevents[0]); } samples[i] += HEXTER_NUGGET_SIZE; } } int main(int argc, char **argv) { int i, n; printf("hexter fixed-point/floating-point speed test, version " VERSION ".\n"); printf("testing 32 voices for 20 seconds at %d samples/second.\n", SAMPLE_RATE); /* get descriptors */ descriptor[FIX] = dssi_descriptor_fix(0); if (descriptor[FIX] == NULL) { printf("dssi_descriptor_fix() failed!\n"); exit(1); } descriptor[FLOAT] = dssi_descriptor_float(0); if (descriptor[FLOAT] == NULL) { printf("dssi_descriptor_float() failed!\n"); exit(1); } setup_plugin(FIX, descriptor[FIX]); setup_plugin(FLOAT, descriptor[FLOAT]); event.type = SND_SEQ_EVENT_NOTEON; event.data.note.channel = 0; event.data.note.velocity = 80; event.time.tick = 0; for (i = 0; i < 2; i++) { samples[i] = 0; note[i] = 36; delay[i] = 0; usage[i] = 0.0; } printf("priming voices and cache...\n"); for (n = 1; n <= 4; n++) { printf(" %d\n", n); for (i = 0; i < 2; i++) { run_plugin(i, n * SAMPLE_RATE); } } printf("timing run...\n"); for (n = 6; n <= 24; n += 2) { double run[2]; for (i = 0; i < 2; i++) { getrusage(RUSAGE_SELF, &before); run_plugin(i, n * SAMPLE_RATE); getrusage(RUSAGE_SELF, &after); run[i] = ((double)after.ru_utime.tv_sec + (double)after.ru_utime.tv_usec / 1000000.0 + (double)after.ru_stime.tv_sec + (double)after.ru_stime.tv_usec / 1000000.0) - ((double)before.ru_utime.tv_sec + (double)before.ru_utime.tv_usec / 1000000.0 + (double)before.ru_stime.tv_sec + (double)before.ru_stime.tv_usec / 1000000.0); usage[i] += run[i]; } printf(" %d: run: %f fix, %f float, %5.1f%%, total: %f fix, %f float\n", n, run[FIX], run[FLOAT], 100.0 * run[FIX] / run[FLOAT], usage[FIX], usage[FLOAT]); } if (usage[FIX] > usage[FLOAT]) { printf("On this system, with this compilation, it seems that floating point is faster:\n"); printf("Fixed point: %7f seconds -> %.1f%% as fast as floating point\n", usage[FIX], 100.0 * usage[FLOAT] / usage[FIX]); printf("Floating point: %7f seconds -> faster mode\n", usage[FLOAT]); } else { printf("On this system, with this compilation, it seems that fixed point is faster:\n"); printf("Fixed point: %7f seconds -> faster mode\n", usage[FIX]); printf("Floating point: %7f seconds -> %.1f%% as fast as fixed point\n", usage[FLOAT], 100.0 * usage[FIX] / usage[FLOAT]); } return 0; } hexter-version_1.1.0/fptest/wrapper.h000066400000000000000000000201411325353653200177200ustar00rootroot00000000000000/* nm hexter_fix.o | * perl -n -e 'if (/ [CDT] _(.*)$/) { printf "#define %-40s FP_TAG(%s)\n", $1, $1; }' >>wrapper.h */ #ifndef HEXTER_USE_FLOATING_POINT #define FP_TAG(x) x##_fix #else /* HEXTER_USE_FLOATING_POINT */ #define FP_TAG(x) x##_float #endif /* HEXTER_USE_FLOATING_POINT */ /* some things from config.h: */ #define VERSION " fptest" /* in dx7_voice.c: */ #define dx7_eg_init_constants FP_TAG(dx7_eg_init_constants) #define dx7_lfo_reset FP_TAG(dx7_lfo_reset) #define dx7_lfo_set FP_TAG(dx7_lfo_set) #define dx7_lfo_set_speed_x FP_TAG(dx7_lfo_set_speed_x) #define dx7_lfo_update FP_TAG(dx7_lfo_update) #define dx7_op_eg_set_increment FP_TAG(dx7_op_eg_set_increment) #define dx7_op_eg_set_next_phase FP_TAG(dx7_op_eg_set_next_phase) #define dx7_op_eg_set_phase FP_TAG(dx7_op_eg_set_phase) #define dx7_op_envelope_prepare FP_TAG(dx7_op_envelope_prepare) #define dx7_op_recalculate_increment FP_TAG(dx7_op_recalculate_increment) #define dx7_pitch_eg_set_increment FP_TAG(dx7_pitch_eg_set_increment) #define dx7_pitch_eg_set_next_phase FP_TAG(dx7_pitch_eg_set_next_phase) #define dx7_pitch_eg_set_phase FP_TAG(dx7_pitch_eg_set_phase) #define dx7_pitch_envelope_prepare FP_TAG(dx7_pitch_envelope_prepare) #define dx7_portamento_prepare FP_TAG(dx7_portamento_prepare) #define dx7_portamento_set_segment FP_TAG(dx7_portamento_set_segment) #define dx7_voice_calculate_runtime_parameters FP_TAG(dx7_voice_calculate_runtime_parameters) #define dx7_voice_new FP_TAG(dx7_voice_new) #define dx7_voice_note_off FP_TAG(dx7_voice_note_off) #define dx7_voice_note_on FP_TAG(dx7_voice_note_on) #define dx7_voice_recalculate_freq_and_inc FP_TAG(dx7_voice_recalculate_freq_and_inc) #define dx7_voice_recalculate_frequency FP_TAG(dx7_voice_recalculate_frequency) #define dx7_voice_recalculate_volume FP_TAG(dx7_voice_recalculate_volume) #define dx7_voice_release_note FP_TAG(dx7_voice_release_note) #define dx7_voice_set_data FP_TAG(dx7_voice_set_data) #define dx7_voice_set_phase FP_TAG(dx7_voice_set_phase) #define dx7_voice_setup_note FP_TAG(dx7_voice_setup_note) #define dx7_voice_update_mod_depths FP_TAG(dx7_voice_update_mod_depths) /* in dx7_voice_data.c: */ #define base64 FP_TAG(base64) #define decode_7in6 FP_TAG(decode_7in6) #define dssp_error_message FP_TAG(dssp_error_message) #define dx7_bulk_dump_checksum FP_TAG(dx7_bulk_dump_checksum) #define dx7_init_performance FP_TAG(dx7_init_performance) #define dx7_patch_pack FP_TAG(dx7_patch_pack) #define dx7_patch_unpack FP_TAG(dx7_patch_unpack) #define dx7_patchbank_load FP_TAG(dx7_patchbank_load) #define dx7_voice_copy_name FP_TAG(dx7_voice_copy_name) #define dx7_voice_init_voice FP_TAG(dx7_voice_init_voice) #define hexter_data_patches_init FP_TAG(hexter_data_patches_init) #define hexter_data_performance_init FP_TAG(hexter_data_performance_init) /* in dx7_voice_render.c: */ #define dx7_voice_render FP_TAG(dx7_voice_render) /* in dx7_voice_tables.c: */ #define dx7_voice_amd_to_ol_adjustment FP_TAG(dx7_voice_amd_to_ol_adjustment) #define dx7_voice_carrier_count FP_TAG(dx7_voice_carrier_count) #define dx7_voice_carriers FP_TAG(dx7_voice_carriers) #define dx7_voice_eg_ol_to_mod_index FP_TAG(dx7_voice_eg_ol_to_mod_index) #define dx7_voice_eg_ol_to_mod_index_table FP_TAG(dx7_voice_eg_ol_to_mod_index_table) #define dx7_voice_eg_rate_decay_duration FP_TAG(dx7_voice_eg_rate_decay_duration) #define dx7_voice_eg_rate_decay_percent FP_TAG(dx7_voice_eg_rate_decay_percent) #define dx7_voice_eg_rate_rise_duration FP_TAG(dx7_voice_eg_rate_rise_duration) #define dx7_voice_eg_rate_rise_percent FP_TAG(dx7_voice_eg_rate_rise_percent) #define dx7_voice_init_tables FP_TAG(dx7_voice_init_tables) #define dx7_voice_lfo_frequency FP_TAG(dx7_voice_lfo_frequency) #define dx7_voice_mss_to_ol_adjustment FP_TAG(dx7_voice_mss_to_ol_adjustment) #define dx7_voice_pitch_level_to_shift FP_TAG(dx7_voice_pitch_level_to_shift) #define dx7_voice_pms_to_semitones FP_TAG(dx7_voice_pms_to_semitones) #define dx7_voice_sin_table FP_TAG(dx7_voice_sin_table) #define dx7_voice_velocity_ol_adjustment FP_TAG(dx7_voice_velocity_ol_adjustment) /* in hexter.c: */ #define dssi_descriptor FP_TAG(dssi_descriptor) #define dssp_voicelist_mutex_lock FP_TAG(dssp_voicelist_mutex_lock) #define dssp_voicelist_mutex_unlock FP_TAG(dssp_voicelist_mutex_unlock) #define fini FP_TAG(fini) #define hexter_configure FP_TAG(hexter_configure) #define hexter_deactivate FP_TAG(hexter_deactivate) #define hexter_get_midi_controller FP_TAG(hexter_get_midi_controller) #define hexter_get_program FP_TAG(hexter_get_program) #define hexter_select_program FP_TAG(hexter_select_program) #define init FP_TAG(init) #define ladspa_descriptor FP_TAG(ladspa_descriptor) /* in hexter_synth.c: */ #define dx7_voice_off FP_TAG(dx7_voice_off) #define dx7_voice_start_voice FP_TAG(dx7_voice_start_voice) #define hexter_instance_all_notes_off FP_TAG(hexter_instance_all_notes_off) #define hexter_instance_all_voices_off FP_TAG(hexter_instance_all_voices_off) #define hexter_instance_channel_pressure FP_TAG(hexter_instance_channel_pressure) #define hexter_instance_control_change FP_TAG(hexter_instance_control_change) #define hexter_instance_damp_voices FP_TAG(hexter_instance_damp_voices) #define hexter_instance_handle_edit_buffer FP_TAG(hexter_instance_handle_edit_buffer) #define hexter_instance_handle_monophonic FP_TAG(hexter_instance_handle_monophonic) // #define hexter_instance_handle_nrpn FP_TAG(hexter_instance_handle_nrpn) #define hexter_instance_handle_patches FP_TAG(hexter_instance_handle_patches) #define hexter_instance_handle_performance FP_TAG(hexter_instance_handle_performance) #define hexter_instance_handle_polyphony FP_TAG(hexter_instance_handle_polyphony) #define hexter_instance_init_controls FP_TAG(hexter_instance_init_controls) #define hexter_instance_key_pressure FP_TAG(hexter_instance_key_pressure) #define hexter_instance_note_off FP_TAG(hexter_instance_note_off) #define hexter_instance_note_on FP_TAG(hexter_instance_note_on) #define hexter_instance_pitch_bend FP_TAG(hexter_instance_pitch_bend) #define hexter_instance_select_program FP_TAG(hexter_instance_select_program) #define hexter_instance_set_performance_data FP_TAG(hexter_instance_set_performance_data) #define hexter_instance_set_program_descriptor FP_TAG(hexter_instance_set_program_descriptor) // #define hexter_instance_update_fc FP_TAG(hexter_instance_update_fc) // #define hexter_instance_update_op_param FP_TAG(hexter_instance_update_op_param) #define hexter_synth FP_TAG(hexter_synth) #define hexter_synth_all_voices_off FP_TAG(hexter_synth_all_voices_off) #define hexter_synth_handle_global_polyphony FP_TAG(hexter_synth_handle_global_polyphony) #define hexter_synth_render_voices FP_TAG(hexter_synth_render_voices) hexter-version_1.1.0/src/000077500000000000000000000000001325353653200153535ustar00rootroot00000000000000hexter-version_1.1.0/src/Makefile.am000066400000000000000000000027121325353653200174110ustar00rootroot00000000000000## Process this file with automake to produce Makefile.in if BUILD_TEXTUI textui_PROGRAMS = hexter_text endif if BUILD_GTKUI gtkui_PROGRAMS = hexter_gtk endif textuidir = $(libdir)/dssi/hexter gtkuidir = $(libdir)/dssi/hexter plugindir = $(libdir)/dssi plugin_LTLIBRARIES = hexter.la hexter_gtk_SOURCES = \ gui_main.c \ bitmap_about.xpm \ dx7_voice_data.c \ dx7_voice_data.h \ dx7_voice_patches.c \ gui_callbacks.c \ gui_callbacks.h \ gui_data.c \ gui_data.h \ gui_images.c \ gui_images.h \ gui_interface.c \ gui_interface.h \ gui_main.h \ gui_midi.c \ gui_midi.h \ gui_patch_edit.c \ gui_patch_edit.h \ gui_retro_console.c \ gui_retro_console.h \ gui_retro_editor.c \ gui_widgy_alg.c \ gui_widgy_editor.c hexter_gtk_CFLAGS = @GTK_CFLAGS@ $(AM_CFLAGS) @ALSA_CFLAGS@ hexter_gtk_LDADD = @GTK_LIBS@ @ALSA_LIBS@ -lm hexter_text_SOURCES = \ ../extra/textui_main.c \ dx7_voice_data.c \ dx7_voice_data.h \ dx7_voice_patches.c \ gui_data.c \ gui_data.h \ gui_main.h \ ../extra/textui_callbacks.c \ ../extra/textui_callbacks.h hexter_text_CFLAGS = $(AM_CFLAGS) @ALSA_CFLAGS@ hexter_text_LDADD = @READLINE_LIBS@ @ALSA_LIBS@ hexter_la_SOURCES = \ hexter.c \ dx7_voice.c \ dx7_voice.h \ dx7_voice_data.c \ dx7_voice_data.h \ dx7_voice_patches.c \ dx7_voice_render.c \ dx7_voice_tables.c \ hexter_synth.c \ hexter_synth.h \ hexter_types.h \ hexter.h hexter_la_LIBADD = -lm hexter_la_LDFLAGS = -module -avoid-version hexter-version_1.1.0/src/bitmap_about.xpm000066400000000000000000002111251325353653200205510ustar00rootroot00000000000000/* XPM */ static char * bitmap_about_xpm[] = { "396 172 91 1", " c #000200", ". c #030602", "+ c #080A06", "@ c #0F110E", "# c #171916", "$ c #1E1F1D", "% c #232522", "& c #2C2D2B", "* c #313230", "= c #363835", "- c #393A38", "; c #3E3F3D", "> c #414340", ", c #464845", "' c #494B48", ") c #4D4E4C", "! c #50524F", "~ c #545653", "{ c #595B58", "] c #5D5F5C", "^ c #626461", "/ c #686A67", "( c #6D6F6C", "_ c #727471", ": c #7A7C79", "< c #828481", "[ c #888A87", "} c #8C8E8B", "| c #919390", "1 c #989A97", "2 c #A0A29E", "3 c #A5A7A4", "4 c #A9ABA8", "5 c #AEB0AD", "6 c #B4B6B3", "7 c #B8BAB7", "8 c #BDBFBC", "9 c #C9B5FF", "0 c #C3B7FF", "a c #C1C3C0", "b c #D4BBFF", "c c #CEBDFF", "d c #C6C8C5", "e c #D9BDFC", "f c #D4BFFD", "g c #D1C4FF", "h c #D8C3FF", "i c #CDCFCB", "j c #D8C7FD", "k c #DFC6FE", "l c #D5CCFF", "m c #DCCBFF", "n c #DBCEFC", "o c #E2CDFE", "p c #D5D7D4", "q c #D8D3FF", "r c #E5D0FF", "s c #DFD2FF", "t c #DFD6FD", "u c #DAD9FE", "v c #E7D6FF", "w c #DDDFDC", "x c #EED9FD", "y c #E2DDFD", "z c #DDE0FE", "A c #EADEFF", "B c #DFE2FF", "C c #E4E6E3", "D c #F1E1FC", "E c #E6E5FD", "F c #E0E7FD", "G c #EDE5FF", "H c #E2E9FF", "I c #E9EBE8", "J c #E8EDFD", "K c #F6EAFE", "L c #E4F0FF", "M c #EEF0ED", "N c #F2EEFF", "O c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ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ", "ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ"}; hexter-version_1.1.0/src/dx7_voice.c000066400000000000000000001533331325353653200174160ustar00rootroot00000000000000/* hexter DSSI software synthesizer plugin * * Copyright (C) 2004, 2009, 2011, 2012, 2018 Sean Bolton and others. * * Portions of this file may have come from Juan Linietsky's * rx-saturno, copyright (C) 2002 by Juan Linietsky. * Portions of this file may have come from Peter Hanappe's * Fluidsynth, copyright (C) 2003 Peter Hanappe and others. * * 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. */ #ifdef HAVE_CONFIG_H #include #endif #define _DEFAULT_SOURCE 1 #define _ISOC99_SOURCE 1 #include #include #include #include #include "hexter_types.h" #include "hexter_synth.h" #include "dx7_voice.h" #include "dx7_voice_data.h" /* * dx7_voice_new */ dx7_voice_t * dx7_voice_new(void) { dx7_voice_t *voice; voice = (dx7_voice_t *)malloc(sizeof(dx7_voice_t)); if (voice) { voice->status = DX7_VOICE_OFF; } return voice; } /* * dx7_voice_set_phase */ /* static inline */ void dx7_voice_set_phase(hexter_instance_t *instance, dx7_voice_t *voice, int phase) { int i; for (i = 0; i < MAX_DX7_OPERATORS; i++) { dx7_op_eg_set_phase(instance, &voice->op[i].eg, phase); } dx7_pitch_eg_set_phase(instance, &voice->pitch_eg, phase); } /* * dx7_voice_set_release_phase */ static inline void dx7_voice_set_release_phase(hexter_instance_t *instance, dx7_voice_t *voice) { dx7_voice_set_phase(instance, voice, 3); } /* * dx7_voice_note_on */ void dx7_voice_note_on(hexter_instance_t *instance, dx7_voice_t *voice, unsigned char key, unsigned char velocity) { int i; voice->key = key; voice->velocity = velocity; if (!instance->monophonic || !(_ON(voice) || _SUSTAINED(voice))) { /* brand-new voice, or monophonic voice in release phase; set * everything up */ DEBUG_MESSAGE(DB_NOTE, " dx7_voice_note_on in polyphonic/new section: key %d, mono %d, old status %d\n", key, instance->monophonic, voice->status); dx7_voice_setup_note(instance, voice); } else { /* synth is monophonic, and we're modifying a playing voice */ DEBUG_MESSAGE(DB_NOTE, " dx7_voice_note_on in monophonic section: old key %d => new key %d\n", instance->held_keys[0], key); /* retrigger LFO if needed */ dx7_lfo_set(instance, voice); /* set new pitch */ voice->mods_serial = instance->mods_serial - 1; /* -FIX- dx7_portamento_prepare(instance, voice); */ dx7_voice_recalculate_freq_and_inc(instance, voice); /* if in 'on' or 'both' modes, and key has changed, then re-trigger EGs */ if ((instance->monophonic == DSSP_MONO_MODE_ON || instance->monophonic == DSSP_MONO_MODE_BOTH) && (instance->held_keys[0] < 0 || instance->held_keys[0] != key)) { dx7_voice_set_phase(instance, voice, 0); } /* all other variables stay what they are */ } instance->last_key = key; if (instance->monophonic) { /* add new key to the list of held keys */ /* check if new key is already in the list; if so, move it to the * top of the list, otherwise shift the other keys down and add it * to the top of the list. */ // DEBUG_MESSAGE(DB_NOTE, " note-on key list before: %d %d %d %d %d %d %d %d\n", instance->held_keys[0], instance->held_keys[1], instance->held_keys[2], instance->held_keys[3], instance->held_keys[4], instance->held_keys[5], instance->held_keys[6], instance->held_keys[7]); for (i = 0; i < 7; i++) { if (instance->held_keys[i] == key) break; } for (; i > 0; i--) { instance->held_keys[i] = instance->held_keys[i - 1]; } instance->held_keys[0] = key; // DEBUG_MESSAGE(DB_NOTE, " note-on key list after: %d %d %d %d %d %d %d %d\n", instance->held_keys[0], instance->held_keys[1], instance->held_keys[2], instance->held_keys[3], instance->held_keys[4], instance->held_keys[5], instance->held_keys[6], instance->held_keys[7]); } if (!_PLAYING(voice)) { dx7_voice_start_voice(voice); } else if (!_ON(voice)) { /* must be DX7_VOICE_SUSTAINED or DX7_VOICE_RELEASED */ voice->status = DX7_VOICE_ON; } } /* * dx7_voice_note_off */ void dx7_voice_note_off(hexter_instance_t *instance, dx7_voice_t *voice, unsigned char key, unsigned char rvelocity) { DEBUG_MESSAGE(DB_NOTE, " dx7_voice_note_off: called for voice %p, key %d\n", voice, key); /* save release velocity */ voice->rvelocity = rvelocity; if (instance->monophonic) { /* monophonic mode */ if (instance->held_keys[0] >= 0) { /* still some keys held */ if (voice->key != instance->held_keys[0]) { /* most-recently-played key has changed */ voice->key = instance->held_keys[0]; DEBUG_MESSAGE(DB_NOTE, " note-off in monophonic section: changing pitch to %d\n", voice->key); voice->mods_serial = instance->mods_serial - 1; /* -FIX- dx7_portamento_prepare(instance, voice); */ dx7_voice_recalculate_freq_and_inc(instance, voice); /* if mono mode is 'both', re-trigger EGs */ if (instance->monophonic == DSSP_MONO_MODE_BOTH && !_RELEASED(voice)) { dx7_voice_set_phase(instance, voice, 0); } } } else { /* no keys still held */ if (HEXTER_INSTANCE_SUSTAINED(instance)) { /* no more keys in list, but we're sustained */ DEBUG_MESSAGE(DB_NOTE, " note-off in monophonic section: sustained with no held keys\n"); if (!_RELEASED(voice)) voice->status = DX7_VOICE_SUSTAINED; } else { /* not sustained */ /* no more keys in list, so turn off note */ DEBUG_MESSAGE(DB_NOTE, " note-off in monophonic section: turning off voice %p\n", voice); dx7_voice_set_release_phase(instance, voice); voice->status = DX7_VOICE_RELEASED; } } } else { /* polyphonic mode */ if (HEXTER_INSTANCE_SUSTAINED(instance)) { if (!_RELEASED(voice)) voice->status = DX7_VOICE_SUSTAINED; } else { /* not sustained */ dx7_voice_set_release_phase(instance, voice); voice->status = DX7_VOICE_RELEASED; } } } /* * dx7_voice_release_note */ void dx7_voice_release_note(hexter_instance_t *instance, dx7_voice_t *voice) { DEBUG_MESSAGE(DB_NOTE, " dx7_voice_release_note: turning off voice %p\n", voice); if (_ON(voice)) { /* dummy up a release velocity */ voice->rvelocity = 64; } dx7_voice_set_release_phase(instance, voice); voice->status = DX7_VOICE_RELEASED; } /* ===== operator (amplitude) envelope functions ===== */ #ifdef HEXTER_DEBUG_ENGINE #define HEXTER_DEBUG_ENGINE_SLEW_CHECK(inc, msg) \ if (FP_ABS(inc) >= instance->dx7_eg_max_slew) printf(msg "\n"); #else #define HEXTER_DEBUG_ENGINE_SLEW_CHECK(inc, msg) #endif /* * dx7_op_eg_set_increment */ void dx7_op_eg_set_increment(hexter_instance_t *instance, dx7_op_eg_t *eg, int new_rate, int new_level) { int current_level = FP_TO_INT(eg->value); int need_compensation; float duration; eg->target = INT_TO_FP(new_level); if (eg->value <= eg->target) { /* envelope will be rising */ /* DX7 envelopes, when rising from levels <= 31 to levels * >= 32, include a compensation feature to speed the * attack, thereby making it sound more natural. The * behavior of some of the boundary cases is bizarre, and * this has been exploited by some patch programmers (the * "Watergarden" patch found in the original ROM cartridge * is one example). We try to emulate it here: */ if (eg->value <= INT_TO_FP(31)) { if (new_level > 31) { /* rise quickly to 31, then continue normally */ need_compensation = 1; duration = dx7_voice_eg_rate_rise_duration[new_rate] * (dx7_voice_eg_rate_rise_percent[new_level] - dx7_voice_eg_rate_rise_percent[current_level]); } else if (new_level - current_level > 9) { /* these seem to take zero time */ need_compensation = 0; duration = 0.0f; } else { /* these are the exploited delays */ need_compensation = 0; /* -FIX- this doesn't make WATER GDN work? */ duration = dx7_voice_eg_rate_rise_duration[new_rate] * (float)(new_level - current_level) / 100.0f; } } else { need_compensation = 0; duration = dx7_voice_eg_rate_rise_duration[new_rate] * (dx7_voice_eg_rate_rise_percent[new_level] - dx7_voice_eg_rate_rise_percent[current_level]); } } else { need_compensation = 0; duration = dx7_voice_eg_rate_decay_duration[new_rate] * (dx7_voice_eg_rate_decay_percent[current_level] - dx7_voice_eg_rate_decay_percent[new_level]); } duration *= instance->sample_rate; eg->duration = lrintf(duration); if (eg->duration < 1) eg->duration = 1; if (need_compensation) { int32_t precomp_duration = FP_DIVIDE_CEIL(INT_TO_FP(31) - eg->value, instance->dx7_eg_max_slew); if (precomp_duration >= eg->duration) { eg->duration = precomp_duration; eg->increment = (eg->target - eg->value) / (dx7_sample_t)eg->duration; if (eg->increment > instance->dx7_eg_max_slew) { eg->duration = FP_DIVIDE_CEIL(eg->target - eg->value, instance->dx7_eg_max_slew); eg->increment = (eg->target - eg->value) / (dx7_sample_t)eg->duration; } HEXTER_DEBUG_ENGINE_SLEW_CHECK(eg->increment, "slew violation 0"); eg->in_precomp = 0; } else if (precomp_duration < 1) { eg->increment = (eg->target - eg->value) / (dx7_sample_t)eg->duration; if (eg->increment > instance->dx7_eg_max_slew) { eg->duration = FP_DIVIDE_CEIL(eg->target - eg->value, instance->dx7_eg_max_slew); eg->increment = (eg->target - eg->value) / (dx7_sample_t)eg->duration; } HEXTER_DEBUG_ENGINE_SLEW_CHECK(eg->increment, "slew violation 1"); eg->in_precomp = 0; } else { eg->postcomp_duration = eg->duration - precomp_duration; eg->duration = precomp_duration; eg->increment = (INT_TO_FP(31) - eg->value) / (dx7_sample_t)precomp_duration; HEXTER_DEBUG_ENGINE_SLEW_CHECK(eg->increment, "slew violation Pa"); eg->postcomp_increment = (eg->target - INT_TO_FP(31)) / (dx7_sample_t)eg->postcomp_duration; if (eg->postcomp_increment > instance->dx7_eg_max_slew) { eg->postcomp_duration = FP_DIVIDE_CEIL(eg->target - INT_TO_FP(31), instance->dx7_eg_max_slew); eg->postcomp_increment = (eg->target - INT_TO_FP(31)) / (dx7_sample_t)eg->postcomp_duration; } HEXTER_DEBUG_ENGINE_SLEW_CHECK(eg->postcomp_increment, "slew violation Pb"); eg->in_precomp = 1; } } else { eg->increment = (eg->target - eg->value) / (dx7_sample_t)eg->duration; if (FP_ABS(eg->increment) > instance->dx7_eg_max_slew) { eg->duration = FP_DIVIDE_CEIL(FP_ABS(eg->target - eg->value), instance->dx7_eg_max_slew); eg->increment = (eg->target - eg->value) / (dx7_sample_t)eg->duration; } HEXTER_DEBUG_ENGINE_SLEW_CHECK(eg->increment, "slew violation 2"); eg->in_precomp = 0; } #ifdef HEXTER_DEBUG_ENGINE if (eg->duration <= 0 || FP_ABS(eg->increment) >= instance->dx7_eg_max_slew) #ifndef HEXTER_USE_FLOATING_POINT printf("eg error: rate %d, current %f, new %d, duration %d (%f), increment %d, in_precomp %d, postcomp_dur %d, postcomp_inc %d\n", new_rate, FP_TO_DOUBLE(eg->value), new_level, eg->duration, duration, #else /* HEXTER_USE_FLOATING_POINT */ printf("eg error: rate %d, current %f, new %d, duration %d (%f), increment %f, in_precomp %d, postcomp_dur %d, postcomp_inc %f\n", new_rate, eg->value, new_level, eg->duration, duration, #endif /* HEXTER_USE_FLOATING_POINT */ eg->increment, eg->in_precomp, eg->postcomp_duration, eg->postcomp_increment); #endif /* HEXTER_DEBUG_ENGINE */ } /* * dx7_op_eg_set_next_phase * * assumes a DX7_EG_RUNNING envelope */ void dx7_op_eg_set_next_phase(hexter_instance_t *instance, dx7_op_eg_t *eg) { switch (eg->phase) { case 0: case 1: eg->phase++; dx7_op_eg_set_increment(instance, eg, eg->rate[eg->phase], eg->level[eg->phase]); #ifndef HEXTER_USE_FLOATING_POINT if (eg->duration == 1 && eg->increment == 0) dx7_op_eg_set_next_phase(instance, eg); #ifdef HEXTER_DEBUG_ENGINE if (eg->mode == DX7_EG_RUNNING && eg->duration == 1 && eg->increment == 0) printf("eg error: phase %d, current %d (%f), new %d (%f), duration %d, increment %d, in_precomp %d, postcomp_dur %d, postcomp_inc %d\n", eg->phase, eg->value, FP_TO_DOUBLE(eg->value), eg->target, FP_TO_DOUBLE(eg->target), eg->duration, eg->increment, eg->in_precomp, eg->postcomp_duration, eg->postcomp_increment); #endif /* HEXTER_DEBUG_ENGINE */ #else /* HEXTER_USE_FLOATING_POINT */ if (eg->duration == 1 && fabsf(eg->increment) < 1e-10f) dx7_op_eg_set_next_phase(instance, eg); #ifdef HEXTER_DEBUG_ENGINE if (eg->mode == DX7_EG_RUNNING && eg->duration == 1 && eg->increment == 0) printf("eg error: phase %d, current %f, new %f, duration %d, increment %f, in_precomp %d, postcomp_dur %d, postcomp_inc %f\n", eg->phase, eg->value, eg->target, eg->duration, eg->increment, eg->in_precomp, eg->postcomp_duration, eg->postcomp_increment); #endif /* HEXTER_DEBUG_ENGINE */ #endif /* HEXTER_USE_FLOATING_POINT */ break; case 2: eg->mode = DX7_EG_SUSTAINING; eg->increment = INT_TO_FP(0); eg->duration = -1; break; case 3: default: /* shouldn't be anything but 0 to 3 */ eg->mode = DX7_EG_FINISHED; eg->increment = INT_TO_FP(0); eg->duration = -1; break; } } void dx7_op_eg_set_phase(hexter_instance_t *instance, dx7_op_eg_t *eg, int phase) { eg->phase = phase; if (phase == 0) { if (eg->level[0] == eg->level[1] && eg->level[1] == eg->level[2] && eg->level[2] == eg->level[3]) { eg->mode = DX7_EG_CONSTANT; eg->value = INT_TO_FP(eg->level[3]); eg->increment = INT_TO_FP(0); eg->duration = -1; } else { eg->mode = DX7_EG_RUNNING; dx7_op_eg_set_increment(instance, eg, eg->rate[phase], eg->level[phase]); #ifndef HEXTER_USE_FLOATING_POINT if (eg->duration == 1 && eg->increment == 0) dx7_op_eg_set_next_phase(instance, eg); #ifdef HEXTER_DEBUG_ENGINE if (eg->mode == DX7_EG_RUNNING && eg->duration == 1 && eg->increment == 0) printf("eg error: phase %d, current %d (%f), new %d (%f), duration %d, increment %d, in_precomp %d, postcomp_dur %d, postcomp_inc %d\n", eg->phase, eg->value, FP_TO_DOUBLE(eg->value), eg->target, FP_TO_DOUBLE(eg->target), eg->duration, eg->increment, eg->in_precomp, eg->postcomp_duration, eg->postcomp_increment); #endif /* HEXTER_DEBUG_ENGINE */ #else /* HEXTER_USE_FLOATING_POINT */ if (eg->duration == 1 && fabsf(eg->increment) < 1e-10f) dx7_op_eg_set_next_phase(instance, eg); #ifdef HEXTER_DEBUG_ENGINE if (eg->mode == DX7_EG_RUNNING && eg->duration == 1 && eg->increment == 0) printf("eg error: phase %d, current %f, new %f, duration %d, increment %f, in_precomp %d, postcomp_dur %d, postcomp_inc %f\n", eg->phase, eg->value, eg->target, eg->duration, eg->increment, eg->in_precomp, eg->postcomp_duration, eg->postcomp_increment); #endif /* HEXTER_DEBUG_ENGINE */ #endif /* HEXTER_USE_FLOATING_POINT */ } } else { if (eg->mode != DX7_EG_CONSTANT) { eg->mode = DX7_EG_RUNNING; dx7_op_eg_set_increment(instance, eg, eg->rate[phase], eg->level[phase]); #ifndef HEXTER_USE_FLOATING_POINT if (eg->duration == 1 && eg->increment == 0) dx7_op_eg_set_next_phase(instance, eg); #ifdef HEXTER_DEBUG_ENGINE if (eg->mode == DX7_EG_RUNNING && eg->duration == 1 && eg->increment == 0) printf("eg error: phase %d, current %d (%f), new %d (%f), duration %d, increment %d, in_precomp %d, postcomp_dur %d, postcomp_inc %d\n", eg->phase, eg->value, FP_TO_DOUBLE(eg->value), eg->target, FP_TO_DOUBLE(eg->target), eg->duration, eg->increment, eg->in_precomp, eg->postcomp_duration, eg->postcomp_increment); #endif /* HEXTER_DEBUG_ENGINE */ #else /* HEXTER_USE_FLOATING_POINT */ if (eg->duration == 1 && fabsf(eg->increment) < 1e-10f) dx7_op_eg_set_next_phase(instance, eg); #ifdef HEXTER_DEBUG_ENGINE if (eg->mode == DX7_EG_RUNNING && eg->duration == 1 && eg->increment == 0) printf("eg error: phase %d, current %f, new %f, duration %d, increment %f, in_precomp %d, postcomp_dur %d, postcomp_inc %f\n", eg->phase, eg->value, eg->target, eg->duration, eg->increment, eg->in_precomp, eg->postcomp_duration, eg->postcomp_increment); #endif /* HEXTER_DEBUG_ENGINE */ #endif /* HEXTER_USE_FLOATING_POINT */ } } } void dx7_op_envelope_prepare(hexter_instance_t *instance, dx7_op_t *op, int transposed_note, int velocity) { int scaled_output_level, i, rate_bump; float vel_adj; scaled_output_level = op->output_level; /* things that affect breakpoint calculations: transpose, ? */ /* things that don't affect breakpoint calculations: pitch envelope, ? */ if (transposed_note < op->level_scaling_bkpoint + 21 && op->level_scaling_l_depth) { /* On the original DX7/TX7, keyboard level scaling calculations * group the keyboard into groups of three keys. This can be quite * noticeable on patches with extreme scaling depths, so I've tried * to replicate it here (the steps between levels may not occur at * exactly the keys). If you'd prefer smother scaling, define * SMOOTH_KEYBOARD_LEVEL_SCALING. */ #ifndef SMOOTH_KEYBOARD_LEVEL_SCALING i = op->level_scaling_bkpoint - (((transposed_note + 2) / 3) * 3) + 21; #else i = op->level_scaling_bkpoint - transposed_note + 21; #endif switch(op->level_scaling_l_curve) { case 0: /* -LIN */ scaled_output_level -= (int)((float)i / 45.0f * (float)op->level_scaling_l_depth); break; case 1: /* -EXP */ scaled_output_level -= (int)(exp((float)(i - 72) / 13.5f) * (float)op->level_scaling_l_depth); break; case 2: /* +EXP */ scaled_output_level += (int)(exp((float)(i - 72) / 13.5f) * (float)op->level_scaling_l_depth); break; case 3: /* +LIN */ scaled_output_level += (int)((float)i / 45.0f * (float)op->level_scaling_l_depth); break; } if (scaled_output_level < 0) scaled_output_level = 0; if (scaled_output_level > 99) scaled_output_level = 99; } else if (transposed_note > op->level_scaling_bkpoint + 21 && op->level_scaling_r_depth) { #ifndef SMOOTH_KEYBOARD_LEVEL_SCALING i = (((transposed_note + 2) / 3) * 3) - op->level_scaling_bkpoint - 21; #else i = transposed_note - op->level_scaling_bkpoint - 21; #endif switch(op->level_scaling_r_curve) { case 0: /* -LIN */ scaled_output_level -= (int)((float)i / 45.0f * (float)op->level_scaling_r_depth); break; case 1: /* -EXP */ scaled_output_level -= (int)(exp((float)(i - 72) / 13.5f) * (float)op->level_scaling_r_depth); break; case 2: /* +EXP */ scaled_output_level += (int)(exp((float)(i - 72) / 13.5f) * (float)op->level_scaling_r_depth); break; case 3: /* +LIN */ scaled_output_level += (int)((float)i / 45.0f * (float)op->level_scaling_r_depth); break; } if (scaled_output_level < 0) scaled_output_level = 0; if (scaled_output_level > 99) scaled_output_level = 99; } vel_adj = dx7_voice_velocity_ol_adjustment[velocity] * (float)op->velocity_sens; /* DEBUG_MESSAGE(DB_NOTE, " dx7_op_envelope_prepare: s_o_l=%d, vel_adj=%f\n", scaled_output_level, vel_adj); */ /* -FIX- This calculation comes from Pinkston/Harrington; the original "* 6.0" scaling factor * was close to what my TX7 does, but tended to not bump the rate as much, so I changed it * to "* 6.5" which seems a little closer, but it's still not spot-on. */ /* Things which affect this calculation: transpose, ? */ /* rate_bump = lrintf((float)op->rate_scaling * (float)(transposed_note - 21) / (126.0f - 21.0f) * 127.0f / 128.0f * 6.0f - 0.5f); */ rate_bump = lrintf((float)op->rate_scaling * (float)(transposed_note - 21) / (126.0f - 21.0f) * 127.0f / 128.0f * 6.5f - 0.5f); /* -FIX- just a hunch: try it again with "* 6.0f" but also "(120.0f - 21.0f)" instead of "(126.0f - 21.0f)": */ /* rate_bump = lrintf((float)op->rate_scaling * (float)(transposed_note - 21) / (120.0f - 21.0f) * 127.0f / 128.0f * 6.0f - 0.5f); */ for (i=0;i<4;i++) { float level = (float)op->eg.base_level[i]; /* -FIX- is this scaling of eg.base_level values to og.level values correct, i.e. does a softer * velocity shorten the time, since the rate stays the same? */ level = level * (float)scaled_output_level / 99.0f + vel_adj; if (level < 0.0f) level = 0.0f; else if (level > 99.0f) level = 99.0f; op->eg.level[i] = lrintf(level); op->eg.rate[i] = op->eg.base_rate[i] + rate_bump; if (op->eg.rate[i] > 99) op->eg.rate[i] = 99; #ifdef HEXTER_DEBUG_ENGINE /* printf(" rate[%d]=%d, level[%d]=%d (output_level=%d, rate_bump=%d)\n", i, op->eg.rate[i], i, op->eg.level[i], op->output_level, rate_bump); */ #endif } op->eg.value = INT_TO_FP(op->eg.level[3]); dx7_op_eg_set_phase(instance, &op->eg, 0); } void dx7_eg_init_constants(hexter_instance_t *instance) { float duration = dx7_voice_eg_rate_rise_duration[99] * (dx7_voice_eg_rate_rise_percent[99] - dx7_voice_eg_rate_rise_percent[0]); instance->dx7_eg_max_slew = FLOAT_TO_FP(99.0f / (duration * instance->sample_rate)); instance->nugget_rate = instance->sample_rate / (float)HEXTER_NUGGET_SIZE; instance->ramp_duration = lrintf(instance->sample_rate * 0.006f); /* 6ms ramp */ } /* ===== pitch envelope functions ===== */ /* * dx7_pitch_eg_set_increment */ void dx7_pitch_eg_set_increment(hexter_instance_t *instance, dx7_pitch_eg_t *eg, int new_rate, int new_level) { double duration; /* translate 0-99 level to shift in semitones */ eg->target = dx7_voice_pitch_level_to_shift[new_level]; /* -FIX- This is just a quick approximation that I derived from * regression of Godric Wilkie's pitch eg timings. In particular, * it's not accurate for very slow envelopes. */ duration = exp(((double)new_rate - 70.337897) / -25.580953) * fabs((eg->target - eg->value) / 96.0); duration *= (double)instance->nugget_rate; eg->duration = lrint(duration); if (eg->duration > 1) { eg->increment = (eg->target - eg->value) / (dx7_sample_t)eg->duration; } else { eg->duration = 1; eg->increment = eg->target - eg->value; } #ifdef HEXTER_DEBUG_ENGINE if (fabs(eg->increment) < 64.0 && eg->duration != 1) printf("pitch eg: rate = %d, current = %f, target = %f, duration = %f => %d, increment = %f\n", new_rate, eg->value, eg->target, duration, eg->duration, eg->increment); #endif } /* * dx7_pitch_eg_set_next_phase * * assumes a DX7_EG_RUNNING envelope */ void dx7_pitch_eg_set_next_phase(hexter_instance_t *instance, dx7_pitch_eg_t *eg) { switch (eg->phase) { case 0: case 1: eg->phase++; dx7_pitch_eg_set_increment(instance, eg, eg->rate[eg->phase], eg->level[eg->phase]); break; case 2: eg->mode = DX7_EG_SUSTAINING; break; case 3: default: /* shouldn't be anything but 0 to 3 */ eg->mode = DX7_EG_FINISHED; break; } } void dx7_pitch_eg_set_phase(hexter_instance_t *instance, dx7_pitch_eg_t *eg, int phase) { eg->phase = phase; if (phase == 0) { if (eg->level[0] == eg->level[1] && eg->level[1] == eg->level[2] && eg->level[2] == eg->level[3]) { eg->mode = DX7_EG_CONSTANT; eg->value = dx7_voice_pitch_level_to_shift[eg->level[3]]; } else { eg->mode = DX7_EG_RUNNING; dx7_pitch_eg_set_increment(instance, eg, eg->rate[phase], eg->level[phase]); } } else { if (eg->mode != DX7_EG_CONSTANT) { eg->mode = DX7_EG_RUNNING; dx7_pitch_eg_set_increment(instance, eg, eg->rate[phase], eg->level[phase]); } } } void dx7_pitch_envelope_prepare(hexter_instance_t *instance, dx7_voice_t *voice) { voice->pitch_eg.value = dx7_voice_pitch_level_to_shift[voice->pitch_eg.level[3]]; dx7_pitch_eg_set_phase(instance, &voice->pitch_eg, 0); } /* ===== portamento functions ===== */ void dx7_portamento_set_segment(hexter_instance_t *instance, dx7_portamento_t *port) { /* -FIX- implement portamento multi-segment curve */ port->increment = (port->target - port->value) / (double)port->duration; } void dx7_portamento_prepare(hexter_instance_t *instance, dx7_voice_t *voice) { dx7_portamento_t *port = &voice->portamento; if (instance->portamento_time == 0 || instance->last_key == voice->key) { port->segment = 0; port->value = 0.0; } else { /* -FIX- implement portamento time and multi-segment curve */ float t = expf((float)(instance->portamento_time - 99) / 15.0f) * 18.0f; /* not at all related to what a real DX7 does */ port->segment = 1; port->value = (double)(instance->last_key - voice->key); port->duration = lrintf(instance->nugget_rate * t); port->target = 0.0; dx7_portamento_set_segment(instance, port); } } /* ===== frequency related functions ===== */ static inline int limit_note(int note) { while (note < 0) note += 12; while (note > 127) note -= 12; return note; } void dx7_op_recalculate_increment(hexter_instance_t *instance, dx7_op_t *op) { double freq; if (op->osc_mode) { /* fixed frequency */ /* pitch envelope does not affect this */ /* -FIX- convert this to a table lookup for speed? */ freq = instance->fixed_freq_multiplier * exp(M_LN10 * ((double)(op->coarse & 3) + (double)op->fine / 100.0)); /* -FIX- figure out what to do with detune */ } else { freq = op->frequency; freq += ((double)op->detune - 7.0) / 32.0; /* -FIX- is this correct? */ if (op->coarse) { freq = freq * (double)op->coarse; } else { freq = freq / 2.0; } freq *= (1.0 + ((double)op->fine / 100.0)); } op->phase_increment = DOUBLE_TO_FP(freq / (double)instance->sample_rate); #ifdef HEXTER_DEBUG_ENGINE #ifndef HEXTER_USE_FLOATING_POINT /* printf("freq=%10.6f, detune=%d, coarse=%d, fine=%d, phase_increment=%d\n", op->frequency, op->detune, */ #else /* HEXTER_USE_FLOATING_POINT */ /* printf("freq=%10.6f, detune=%d, coarse=%d, fine=%d, phase_increment=%g\n", op->frequency, op->detune, */ #endif /* HEXTER_USE_FLOATING_POINT */ /* op->coarse, op->fine, op->phase_increment); */ #endif /* HEXTER_DEBUG_ENGINE */ } double dx7_voice_recalculate_frequency(hexter_instance_t *instance, dx7_voice_t *voice) { double freq; voice->last_port_tuning = *instance->tuning; instance->fixed_freq_multiplier = *instance->tuning / 440.0; freq = voice->pitch_eg.value + voice->portamento.value + instance->pitch_bend - instance->lfo_value_for_pitch * (voice->pitch_mod_depth_pmd * FP_TO_DOUBLE(voice->lfo_delay_value) + voice->pitch_mod_depth_mods); voice->last_pitch = freq; freq += (double)(limit_note(voice->key + voice->transpose - 24)); /* -FIX- this maybe could be optimized */ /* a lookup table of 8k values would give ~1.5 cent accuracy, * but then would interpolating that be faster than exp()? */ freq = *instance->tuning * exp((freq - 69.0) * M_LN2 / 12.0); return freq; } void dx7_voice_recalculate_freq_and_inc(hexter_instance_t *instance, dx7_voice_t *voice) { double freq = dx7_voice_recalculate_frequency(instance, voice); int i; for (i = 0; i < 6; i++) { voice->op[i].frequency = freq; dx7_op_recalculate_increment(instance, &voice->op[i]); } } /* ===== output volume ===== */ void dx7_voice_recalculate_volume(hexter_instance_t *instance, dx7_voice_t *voice) { float f; int i; voice->last_port_volume = *instance->volume; voice->last_cc_volume = instance->cc_volume; /* This 41 OL volume cc mapping matches my TX7 fairly well, to within * +/-0.8dB for most of the scale. (It even duplicates the "feature" * of not going completely silent at zero....) */ f = (*instance->volume - 20.0f) * 1.328771f + 86.0f; f += (float)instance->cc_volume * 41.0f / 16256.0f; i = lrintf(f - 0.5f); f -= (float)i; voice->volume_target = (FP_TO_FLOAT(dx7_voice_eg_ol_to_mod_index[i]) + f * FP_TO_FLOAT(dx7_voice_eg_ol_to_mod_index[i + 1] - dx7_voice_eg_ol_to_mod_index[i])) / 2.08855f /* scale modulation index to output amplitude */ / dx7_voice_carrier_count[voice->algorithm] /* scale for number of carriers */ * 0.110384f; /* Where did this value come from? It approximates the * -18.1dBFS nominal per-voice output level hexter should * have, but then why didn't I just use 0.125f like in * hexter 0.5.7? */ if (voice->volume_value < 0.0f) { /* initial setup */ voice->volume_value = voice->volume_target; voice->volume_duration = 0; } else { voice->volume_duration = instance->ramp_duration; voice->volume_increment = (voice->volume_target - voice->volume_value) / (float)voice->volume_duration; } } /* ===== LFO functions ===== */ /* dx7_lfo_set_speed * * called by dx7_lfo_reset() and dx7_lfo_set() to set LFO speed and phase */ static inline void dx7_lfo_set_speed(hexter_instance_t *instance) { int32_t period = lrintf(instance->sample_rate / dx7_voice_lfo_frequency[instance->lfo_speed]); switch (instance->lfo_wave) { default: case 0: /* triangle */ instance->lfo_phase = 0; instance->lfo_value = INT_TO_FP(0); instance->lfo_duration0 = period / 2; instance->lfo_duration1 = period - instance->lfo_duration0; instance->lfo_increment0 = INT_TO_FP(1) / (dx7_sample_t)instance->lfo_duration0; instance->lfo_increment1 = -instance->lfo_increment0; instance->lfo_duration = instance->lfo_duration0; instance->lfo_increment = instance->lfo_increment0; break; case 1: /* saw down */ instance->lfo_phase = 0; instance->lfo_value = INT_TO_FP(0); if (period >= (instance->ramp_duration * 4)) { instance->lfo_duration0 = period - instance->ramp_duration; instance->lfo_duration1 = instance->ramp_duration; } else { instance->lfo_duration0 = period * 3 / 4; instance->lfo_duration1 = period - instance->lfo_duration0; } instance->lfo_increment0 = INT_TO_FP(1) / (dx7_sample_t)instance->lfo_duration0; instance->lfo_increment1 = INT_TO_FP(-1) / (dx7_sample_t)instance->lfo_duration1; instance->lfo_duration = instance->lfo_duration0; instance->lfo_increment = instance->lfo_increment0; break; case 2: /* saw up */ instance->lfo_phase = 1; instance->lfo_value = INT_TO_FP(1); if (period >= (instance->ramp_duration * 4)) { instance->lfo_duration0 = instance->ramp_duration; instance->lfo_duration1 = period - instance->ramp_duration; } else { instance->lfo_duration1 = period * 3 / 4; instance->lfo_duration0 = period - instance->lfo_duration1; } instance->lfo_increment0 = INT_TO_FP(1) / (dx7_sample_t)instance->lfo_duration0; instance->lfo_increment1 = INT_TO_FP(-1) / (dx7_sample_t)instance->lfo_duration1; instance->lfo_duration = instance->lfo_duration1; instance->lfo_increment = instance->lfo_increment1; break; case 3: /* square */ instance->lfo_phase = 0; instance->lfo_value = INT_TO_FP(1); if (period >= (instance->ramp_duration * 6)) { instance->lfo_duration0 = (period / 2) - instance->ramp_duration; instance->lfo_duration1 = instance->ramp_duration; } else { instance->lfo_duration0 = period / 3; instance->lfo_duration1 = (period / 2) - instance->lfo_duration0; } instance->lfo_increment1 = INT_TO_FP(1) / (dx7_sample_t)instance->lfo_duration1; instance->lfo_increment0 = -instance->lfo_increment1; instance->lfo_duration = instance->lfo_duration0; instance->lfo_increment = INT_TO_FP(0); break; case 4: /* sine */ #ifndef HEXTER_USE_FLOATING_POINT instance->lfo_value = FP_SIZE / 4; /* phase of pi/2 in cosine table */ #else /* HEXTER_USE_FLOATING_POINT */ instance->lfo_value = 0.25f; /* phase of pi/2 in cosine table */ #endif /* HEXTER_USE_FLOATING_POINT */ instance->lfo_increment = INT_TO_FP(1) / (dx7_sample_t)period; break; case 5: /* sample/hold */ instance->lfo_phase = 0; instance->lfo_value = FP_RAND(); if (period >= (instance->ramp_duration * 4)) { instance->lfo_duration0 = period - instance->ramp_duration; instance->lfo_duration1 = instance->ramp_duration; } else { instance->lfo_duration0 = period * 3 / 4; instance->lfo_duration1 = period - instance->lfo_duration0; } instance->lfo_duration = instance->lfo_duration0; instance->lfo_increment = INT_TO_FP(0); break; } } #ifdef HEXTER_DEBUG_CONTROL /* for debug code in hexter_synth.c */ void dx7_lfo_set_speed_x(hexter_instance_t *instance) { dx7_lfo_set_speed(instance); } #endif /* * dx7_lfo_reset * * called from hexter_activate() to give instance LFO parameters sane values * until they're set by a playing voice */ void dx7_lfo_reset(hexter_instance_t *instance) { instance->lfo_speed = 20; instance->lfo_wave = 1; instance->lfo_delay = 255; /* force setup at first note on */ instance->lfo_value_for_pitch = 0.0; dx7_lfo_set_speed(instance); } void dx7_lfo_set(hexter_instance_t *instance, dx7_voice_t *voice) { int set_speed = 0; instance->lfo_wave = voice->lfo_wave; if (instance->lfo_speed != voice->lfo_speed) { instance->lfo_speed = voice->lfo_speed; set_speed = 1; } if (voice->lfo_key_sync) { set_speed = 1; /* because we need to reset the LFO phase */ } if (set_speed) dx7_lfo_set_speed(instance); if (instance->lfo_delay != voice->lfo_delay) { instance->lfo_delay = voice->lfo_delay; if (voice->lfo_delay > 0) { instance->lfo_delay_value[0] = INT_TO_FP(0); /* -FIX- Jamie's early approximation, replace when he has more data */ instance->lfo_delay_duration[0] = lrintf(instance->sample_rate * (0.00175338f * pow((float)voice->lfo_delay, 3.10454f) + 169.344f - 168.0f) / 1000.0f); instance->lfo_delay_increment[0] = INT_TO_FP(0); instance->lfo_delay_value[1] = INT_TO_FP(0); /* -FIX- Jamie's early approximation, replace when he has more data */ instance->lfo_delay_duration[1] = lrintf(instance->sample_rate * (0.321877f * pow((float)voice->lfo_delay, 2.01163) + 494.201f - 168.0f) / 1000.0f); /* time from note-on until full on */ instance->lfo_delay_duration[1] -= instance->lfo_delay_duration[0]; /* now time from end-of-delay until full */ instance->lfo_delay_increment[1] = INT_TO_FP(1) / (dx7_sample_t)instance->lfo_delay_duration[1]; instance->lfo_delay_value[2] = INT_TO_FP(1); instance->lfo_delay_duration[2] = 0; instance->lfo_delay_increment[2] = INT_TO_FP(0); } else { instance->lfo_delay_value[0] = INT_TO_FP(1); instance->lfo_delay_duration[0] = 0; instance->lfo_delay_increment[0] = INT_TO_FP(0); } /* -FIX- The TX7 resets the lfo delay for all playing notes at each * new note on. We're not doing that yet, and I don't really wanna, * 'cause it's stupid.... */ } } void dx7_lfo_update(hexter_instance_t *instance, unsigned long sample_count) { unsigned long sample; switch (instance->lfo_wave) { default: case 0: /* triangle */ case 1: /* saw down */ case 2: /* saw up */ for (sample = 0; sample < sample_count; sample++) { instance->lfo_buffer[sample] = instance->lfo_value; instance->lfo_value += instance->lfo_increment; if (!(--instance->lfo_duration)) { if (instance->lfo_phase) { instance->lfo_phase = 0; instance->lfo_value = INT_TO_FP(0); instance->lfo_duration = instance->lfo_duration0; instance->lfo_increment = instance->lfo_increment0; } else { instance->lfo_phase = 1; instance->lfo_value = INT_TO_FP(1); instance->lfo_duration = instance->lfo_duration1; instance->lfo_increment = instance->lfo_increment1; } } } instance->lfo_value_for_pitch = FP_TO_DOUBLE(instance->lfo_value) * 2.0 - 1.0; /* -FIX- this is still ramped for saw! */ break; case 3: /* square */ for (sample = 0; sample < sample_count; sample++) { instance->lfo_buffer[sample] = instance->lfo_value; instance->lfo_value += instance->lfo_increment; if (!(--instance->lfo_duration)) { switch (instance->lfo_phase) { default: case 0: instance->lfo_phase = 1; instance->lfo_duration = instance->lfo_duration1; instance->lfo_increment = instance->lfo_increment0; break; case 1: instance->lfo_phase = 2; instance->lfo_value = INT_TO_FP(0); instance->lfo_duration = instance->lfo_duration0; instance->lfo_increment = INT_TO_FP(0); break; case 2: instance->lfo_phase = 3; instance->lfo_duration = instance->lfo_duration1; instance->lfo_increment = instance->lfo_increment1; break; case 3: instance->lfo_phase = 0; instance->lfo_value = INT_TO_FP(1); instance->lfo_duration = instance->lfo_duration0; instance->lfo_increment = INT_TO_FP(0); break; } } } if (instance->lfo_phase == 0 || instance->lfo_phase == 3) instance->lfo_value_for_pitch = 1.0; else instance->lfo_value_for_pitch = -1.0; break; case 4: /* sine */ for (sample = 0; sample < sample_count; sample++) { #ifndef HEXTER_USE_FLOATING_POINT int32_t phase, index, out; #else /* HEXTER_USE_FLOATING_POINT */ int32_t index; float phase, frac, out; #endif /* HEXTER_USE_FLOATING_POINT */ #ifndef HEXTER_USE_FLOATING_POINT phase = instance->lfo_value; index = (phase >> FP_TO_SINE_SHIFT) & SINE_MASK; out = dx7_voice_sin_table[index]; out += (((int64_t)(dx7_voice_sin_table[index + 1] - out) * (int64_t)(phase & FP_TO_SINE_MASK)) >> (FP_SHIFT + FP_TO_SINE_SHIFT)); out = (out + FP_SIZE) >> 1; /* shift to unipolar */ #else /* HEXTER_USE_FLOATING_POINT */ phase = instance->lfo_value * (float)SINE_SIZE; index = lrintf(phase - 0.5f); frac = phase - (float)index; out = dx7_voice_sin_table[index]; out += (dx7_voice_sin_table[index + 1] - out) * frac; out = (out + 1.0f) / 2.0f; /* shift to unipolar */ #endif /* HEXTER_USE_FLOATING_POINT */ instance->lfo_buffer[sample] = out; instance->lfo_value += instance->lfo_increment; #ifdef HEXTER_USE_FLOATING_POINT if (instance->lfo_value > 1.0f) instance->lfo_value -= 1.0f; #endif /* HEXTER_USE_FLOATING_POINT */ } instance->lfo_value_for_pitch = FP_TO_DOUBLE(instance->lfo_buffer[sample - 1]) * 2.0 - 1.0; break; case 5: /* sample/hold */ for (sample = 0; sample < sample_count; sample++) { instance->lfo_buffer[sample] = instance->lfo_value; instance->lfo_value += instance->lfo_increment; if (!(--instance->lfo_duration)) { if (instance->lfo_phase) { instance->lfo_phase = 0; instance->lfo_value = instance->lfo_target; instance->lfo_duration = instance->lfo_duration0; instance->lfo_increment = INT_TO_FP(0); } else { instance->lfo_phase = 1; instance->lfo_duration = instance->lfo_duration1; instance->lfo_target = FP_RAND(); instance->lfo_increment = (instance->lfo_target - instance->lfo_value) / (dx7_sample_t)instance->lfo_duration; } } } instance->lfo_value_for_pitch = FP_TO_DOUBLE(instance->lfo_target) * 2.0 - 1.0; break; } } /* ===== modulation functions ===== */ /* there used to be a dx7_voice_update_pitch_bend() here, but it didn't * have anything to do.... */ void dx7_voice_update_mod_depths(hexter_instance_t *instance, dx7_voice_t* voice) { unsigned char kp = instance->key_pressure[voice->key]; unsigned char cp = instance->channel_pressure; float pressure; float pdepth, adepth, mdepth, edepth; /* add the channel and key pressures together in a way that 'feels' good */ if (kp > cp) { pressure = (float)kp / 127.0f; pressure += (1.0f - pressure) * ((float)cp / 127.0f); } else { pressure = (float)cp / 127.0f; pressure += (1.0f - pressure) * ((float)kp / 127.0f); } /* calculate modulation depths */ pdepth = (float)voice->lfo_pmd / 99.0f; voice->pitch_mod_depth_pmd = (double)dx7_voice_pms_to_semitones[voice->lfo_pms] * (double)pdepth; // -FIX- this could be optimized: // -FIX- this just adds everything together -- maybe it should limit the result, or // combine the various mods like update_pressure() does pdepth = (instance->mod_wheel_assign & 0x01 ? // -FIX- this assumes that mod_wheel_sensitivity, etc. scale linearly => verify (float)instance->mod_wheel_sensitivity / 15.0f * instance->mod_wheel : 0.0f) + (instance->foot_assign & 0x01 ? (float)instance->foot_sensitivity / 15.0f * instance->foot : 0.0f) + (instance->pressure_assign & 0x01 ? (float)instance->pressure_sensitivity / 15.0f * pressure : 0.0f) + (instance->breath_assign & 0x01 ? (float)instance->breath_sensitivity / 15.0f * instance->breath : 0.0f); voice->pitch_mod_depth_mods = (double)dx7_voice_pms_to_semitones[voice->lfo_pms] * (double)pdepth; // -FIX- these are total guesses at how to combine/limit the amp mods: adepth = dx7_voice_amd_to_ol_adjustment[voice->lfo_amd]; // -FIX- this could be optimized: mdepth = (instance->mod_wheel_assign & 0x02 ? dx7_voice_mss_to_ol_adjustment[instance->mod_wheel_sensitivity] * instance->mod_wheel : 0.0f) + (instance->foot_assign & 0x02 ? dx7_voice_mss_to_ol_adjustment[instance->foot_sensitivity] * instance->foot : 0.0f) + (instance->pressure_assign & 0x02 ? dx7_voice_mss_to_ol_adjustment[instance->pressure_sensitivity] * pressure : 0.0f) + (instance->breath_assign & 0x02 ? dx7_voice_mss_to_ol_adjustment[instance->breath_sensitivity] * instance->breath : 0.0f); edepth = // -FIX- this could be optimized: (instance->mod_wheel_assign & 0x04 ? dx7_voice_mss_to_ol_adjustment[instance->mod_wheel_sensitivity] * (1.0f - instance->mod_wheel) : 0.0f) + (instance->foot_assign & 0x04 ? dx7_voice_mss_to_ol_adjustment[instance->foot_sensitivity] * (1.0f - instance->foot) : 0.0f) + (instance->pressure_assign & 0x04 ? dx7_voice_mss_to_ol_adjustment[instance->pressure_sensitivity] * (1.0f - pressure) : 0.0f) + (instance->breath_assign & 0x04 ? dx7_voice_mss_to_ol_adjustment[instance->breath_sensitivity] * (1.0f - instance->breath) : 0.0f); /* full-scale amp mod for adepth and edepth should be 52.75 and * their sum _must_ be limited to less than 128, or bad things will happen! */ if (adepth > 127.5f) adepth = 127.5f; if (adepth + mdepth > 127.5f) mdepth = 127.5f - adepth; if (adepth + mdepth + edepth > 127.5f) edepth = 127.5f - (adepth + mdepth); voice->amp_mod_lfo_amd_target = FLOAT_TO_FP(adepth); if (voice->amp_mod_lfo_amd_value <= INT_TO_FP(-64)) { voice->amp_mod_lfo_amd_value = voice->amp_mod_lfo_amd_target; voice->amp_mod_lfo_amd_increment = INT_TO_FP(0); voice->amp_mod_lfo_amd_duration = 0; } else { voice->amp_mod_lfo_amd_duration = instance->ramp_duration; voice->amp_mod_lfo_amd_increment = (voice->amp_mod_lfo_amd_target - voice->amp_mod_lfo_amd_value) / (dx7_sample_t)voice->amp_mod_lfo_amd_duration; } voice->amp_mod_lfo_mods_target = FLOAT_TO_FP(mdepth); if (voice->amp_mod_lfo_mods_value <= INT_TO_FP(-64)) { voice->amp_mod_lfo_mods_value = voice->amp_mod_lfo_mods_target; voice->amp_mod_lfo_mods_increment = INT_TO_FP(0); voice->amp_mod_lfo_mods_duration = 0; } else { voice->amp_mod_lfo_mods_duration = instance->ramp_duration; voice->amp_mod_lfo_mods_increment = (voice->amp_mod_lfo_mods_target - voice->amp_mod_lfo_mods_value) / (dx7_sample_t)voice->amp_mod_lfo_mods_duration; } voice->amp_mod_env_target = FLOAT_TO_FP(edepth); if (voice->amp_mod_env_value <= INT_TO_FP(-64)) { voice->amp_mod_env_value = voice->amp_mod_env_target; voice->amp_mod_env_increment = INT_TO_FP(0); voice->amp_mod_env_duration = 0; } else { voice->amp_mod_env_duration = instance->ramp_duration; voice->amp_mod_env_increment = (voice->amp_mod_env_target - voice->amp_mod_env_value) / (dx7_sample_t)voice->amp_mod_env_duration; } } /* ===== whole patch related functions ===== */ void dx7_voice_calculate_runtime_parameters(hexter_instance_t *instance, dx7_voice_t* voice) { int i; double freq; dx7_pitch_envelope_prepare(instance, voice); voice->amp_mod_lfo_amd_value = INT_TO_FP(-65); /* force initial setup */ voice->amp_mod_lfo_mods_value = INT_TO_FP(-65); voice->amp_mod_env_value = INT_TO_FP(-65); voice->lfo_delay_segment = 0; voice->lfo_delay_value = instance->lfo_delay_value[0]; voice->lfo_delay_duration = instance->lfo_delay_duration[0]; voice->lfo_delay_increment = instance->lfo_delay_increment[0]; voice->mods_serial = instance->mods_serial - 1; /* force mod depths update */ dx7_portamento_prepare(instance, voice); freq = dx7_voice_recalculate_frequency(instance, voice); voice->volume_value = -1.0f; /* force initial setup */ dx7_voice_recalculate_volume(instance, voice); for (i = 0; i < MAX_DX7_OPERATORS; i++) { voice->op[i].frequency = freq; if (voice->osc_key_sync) { voice->op[i].phase = INT_TO_FP(0); } dx7_op_recalculate_increment(instance, &voice->op[i]); dx7_op_envelope_prepare(instance, &voice->op[i], limit_note(voice->key + voice->transpose - 24), voice->velocity); } } /* * dx7_voice_setup_note */ void dx7_voice_setup_note(hexter_instance_t *instance, dx7_voice_t *voice) { dx7_voice_set_data(instance, voice); hexter_instance_set_performance_data(instance); dx7_lfo_set(instance, voice); dx7_voice_calculate_runtime_parameters(instance, voice); } static inline int limit(int x, int min, int max) { if (x < min) return min; if (x > max) return max; return x; } /* * dx7_voice_set_data */ void dx7_voice_set_data(hexter_instance_t *instance, dx7_voice_t *voice) { uint8_t *edit_buffer = instance->current_patch_buffer; int compat059 = (instance->performance_buffer[0] & 0x01); /* 0.5.9 compatibility */ int i, j; double aux_feedbk; for (i = 0; i < MAX_DX7_OPERATORS; i++) { uint8_t *eb_op = edit_buffer + ((5 - i) * 21); voice->op[i].output_level = limit(eb_op[16], 0, 99); voice->op[i].osc_mode = eb_op[17] & 0x01; voice->op[i].coarse = eb_op[18] & 0x1f; voice->op[i].fine = limit(eb_op[19], 0, 99); voice->op[i].detune = limit(eb_op[20], 0, 14); voice->op[i].level_scaling_bkpoint = limit(eb_op[ 8], 0, 99); voice->op[i].level_scaling_l_depth = limit(eb_op[ 9], 0, 99); voice->op[i].level_scaling_r_depth = limit(eb_op[10], 0, 99); voice->op[i].level_scaling_l_curve = eb_op[11] & 0x03; voice->op[i].level_scaling_r_curve = eb_op[12] & 0x03; voice->op[i].rate_scaling = eb_op[13] & 0x07; voice->op[i].amp_mod_sens = (compat059 ? 0 : eb_op[14] & 0x03); voice->op[i].velocity_sens = eb_op[15] & 0x07; for (j = 0; j < 4; j++) { voice->op[i].eg.base_rate[j] = limit(eb_op[j], 0, 99); voice->op[i].eg.base_level[j] = limit(eb_op[4 + j], 0, 99); } } for (i = 0; i < 4; i++) { voice->pitch_eg.rate[i] = limit(edit_buffer[126 + i], 0, 99); voice->pitch_eg.level[i] = limit(edit_buffer[130 + i], 0, 99); } voice->algorithm = edit_buffer[134] & 0x1f; aux_feedbk = (double)(edit_buffer[135] & 0x07) / (2.0 * M_PI) * 0.18 /* -FIX- feedback_scaling[voice->algorithm] */; /* the "99.0" here is because we're also using this multiplier to scale the * eg level from 0-99 to 0-1 */ voice->feedback_multiplier = DOUBLE_TO_FP(aux_feedbk / 99.0); voice->osc_key_sync = edit_buffer[136] & 0x01; voice->lfo_speed = limit(edit_buffer[137], 0, 99); voice->lfo_delay = limit(edit_buffer[138], 0, 99); voice->lfo_pmd = limit(edit_buffer[139], 0, 99); voice->lfo_amd = limit(edit_buffer[140], 0, 99); voice->lfo_key_sync = edit_buffer[141] & 0x01; voice->lfo_wave = limit(edit_buffer[142], 0, 5); voice->lfo_pms = (compat059 ? 0 : edit_buffer[143] & 0x07); voice->transpose = limit(edit_buffer[144], 0, 48); } hexter-version_1.1.0/src/dx7_voice.h000066400000000000000000000257641325353653200174310ustar00rootroot00000000000000/* hexter DSSI software synthesizer plugin * * Copyright (C) 2004, 2009, 2011 Sean Bolton and others. * * Portions of this file may have come from Peter Hanappe's * Fluidsynth, copyright (C) 2003 Peter Hanappe and others. * Portions of this file may have come from Juan Linietsky's * rx-saturno, copyright (C) 2002 by Juan Linietsky. * * 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 _DX7_VOICE_H #define _DX7_VOICE_H #include #include "hexter_types.h" struct _dx7_patch_t { uint8_t data[128]; /* dx7_patch_t is packed patch data */ }; #ifndef HEXTER_USE_FLOATING_POINT #define FP_SHIFT 24 #define FP_SIZE (1<> FP_SHIFT) #define FP_TO_FLOAT(x) ((float)(x) * (1.0f / (float)FP_SIZE)) #define FP_TO_DOUBLE(x) ((double)(x) * (1.0 / (double)FP_SIZE)) #define INT_TO_FP(x) ((x) << FP_SHIFT) /* beware of using the next two with constants, they probably won't be optimized */ #define FLOAT_TO_FP(x) lrintf((x) * (float)FP_SIZE) #define DOUBLE_TO_FP(x) lrint((x) * (double)FP_SIZE) #define FP_MULTIPLY(a, b) ((int32_t)(((int64_t)(a) * (int64_t)(b)) >> FP_SHIFT)) #define FP_DIVIDE_CEIL(n, d) (((n) + (d) - 1) / (d)) #define FP_ABS(x) (abs(x)) #define FP_RAND() (rand() & FP_MASK) #else /* HEXTER_USE_FLOATING_POINT */ #define FP_TO_INT(x) (lrintf(x)) #define FP_TO_FLOAT(x) (x) #define FP_TO_DOUBLE(x) ((double)(x)) #define INT_TO_FP(x) ((float)(x)) #define FLOAT_TO_FP(x) (x) #define DOUBLE_TO_FP(x) ((float)(x)) #define FP_MULTIPLY(x, y) ((x) * (y)) #define FP_DIVIDE_CEIL(n, d) (lrintf((n) / (d) + 0.5f)); #define FP_ABS(x) (fabsf(x)) #define FP_RAND() ((float)rand() / (float)RAND_MAX) #endif /* ! HEXTER_USE_FLOATING_POINT */ #define SINE_SHIFT 12 #define SINE_SIZE (1<status != DX7_VOICE_OFF) #define _ON(voice) ((voice)->status == DX7_VOICE_ON) #define _SUSTAINED(voice) ((voice)->status == DX7_VOICE_SUSTAINED) #define _RELEASED(voice) ((voice)->status == DX7_VOICE_RELEASED) #define _AVAILABLE(voice) ((voice)->status == DX7_VOICE_OFF) extern dx7_sample_t dx7_voice_sin_table[SINE_SIZE + 1]; extern uint8_t dx7_voice_carriers[32]; extern float dx7_voice_carrier_count[32]; extern dx7_sample_t *dx7_voice_eg_ol_to_mod_index; extern float dx7_voice_velocity_ol_adjustment[128]; extern float dx7_voice_lfo_frequency[128]; extern float dx7_voice_pms_to_semitones[8]; extern float dx7_voice_amd_to_ol_adjustment[100]; extern float dx7_voice_mss_to_ol_adjustment[16]; /* dx7_voice.c */ dx7_voice_t *dx7_voice_new(void); void dx7_voice_note_on(hexter_instance_t *instance, dx7_voice_t *voice, unsigned char key, unsigned char velocity); void dx7_voice_note_off(hexter_instance_t *instance, dx7_voice_t *voice, unsigned char key, unsigned char rvelocity); void dx7_voice_release_note(hexter_instance_t *instance, dx7_voice_t *voice); void dx7_op_eg_set_increment(hexter_instance_t *instance, dx7_op_eg_t *eg, int new_rate, int new_level); void dx7_op_eg_set_next_phase(hexter_instance_t *instance, dx7_op_eg_t *eg); void dx7_op_eg_set_phase(hexter_instance_t *instance, dx7_op_eg_t *eg, int phase); void dx7_op_envelope_prepare(hexter_instance_t *instance, dx7_op_t *op, int transposed_note, int velocity); void dx7_eg_init_constants(hexter_instance_t *instance); void dx7_pitch_eg_set_increment(hexter_instance_t *instance, dx7_pitch_eg_t *eg, int new_rate, int new_level); void dx7_pitch_eg_set_next_phase(hexter_instance_t *instance, dx7_pitch_eg_t *eg); void dx7_pitch_eg_set_phase(hexter_instance_t *instance, dx7_pitch_eg_t *eg, int phase); void dx7_pitch_envelope_prepare(hexter_instance_t *instance, dx7_voice_t *voice); void dx7_portamento_set_segment(hexter_instance_t *instance, dx7_portamento_t *port); void dx7_portamento_prepare(hexter_instance_t *instance, dx7_voice_t *voice); void dx7_op_recalculate_increment(hexter_instance_t *instance, dx7_op_t *op); double dx7_voice_recalculate_frequency(hexter_instance_t *instance, dx7_voice_t *voice); void dx7_voice_recalculate_freq_and_inc(hexter_instance_t *instance, dx7_voice_t *voice); void dx7_voice_recalculate_volume(hexter_instance_t *instance, dx7_voice_t *voice); void dx7_lfo_reset(hexter_instance_t *instance); void dx7_lfo_set(hexter_instance_t *instance, dx7_voice_t *voice); void dx7_lfo_update(hexter_instance_t *instance, unsigned long sample_count); void dx7_voice_update_mod_depths(hexter_instance_t *instance, dx7_voice_t* voice); void dx7_voice_calculate_runtime_parameters(hexter_instance_t *instance, dx7_voice_t *voice); void dx7_voice_setup_note(hexter_instance_t *instance, dx7_voice_t *voice); void dx7_voice_set_data(hexter_instance_t *instance, dx7_voice_t *voice); /* dx7_voice_render.c */ void dx7_voice_render(hexter_instance_t *instance, dx7_voice_t *voice, LADSPA_Data *out, unsigned long sample_count, int do_control_update); /* dx7_voice_tables.c */ void dx7_voice_init_tables(void); #endif /* _DX7_VOICE_H */ hexter-version_1.1.0/src/dx7_voice_data.c000066400000000000000000000412051325353653200204010ustar00rootroot00000000000000/* hexter DSSI software synthesizer plugin and GUI * * Copyright (C) 2004, 2009, 2011 Sean Bolton and others. * * DX7 patchbank loading code by Martin Tarenskeen. * * Portions of this file may have come from Peter Hanappe's * Fluidsynth, copyright (C) 2003 Peter Hanappe and others. * The envelope generator rate tables are based on work by * Russell Pinkston and Jeff Harrington. * * 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 #include #include #include #include "hexter_types.h" #include "dx7_voice.h" #include "dx7_voice_data.h" /* in dx7_voice_patches.c: */ extern int friendly_patch_count; extern dx7_patch_t friendly_patches[]; dx7_patch_t dx7_voice_init_voice = { { 0x62, 0x63, 0x63, 0x5A, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x00, 0x62, 0x63, 0x63, 0x5A, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x00, 0x62, 0x63, 0x63, 0x5A, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x00, 0x62, 0x63, 0x63, 0x5A, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x00, 0x62, 0x63, 0x63, 0x5A, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x00, 0x62, 0x63, 0x63, 0x5A, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x63, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x00, 0x08, 0x23, 0x00, 0x00, 0x00, 0x31, 0x18, 0x20, 0x20, 0x20, 0x7F, 0x2D, 0x2D, 0x7E, 0x20, 0x20, 0x20 } }; uint8_t dx7_init_performance[DX7_PERFORMANCE_SIZE] = { 0, 0, 0, 2, 0, 0, 0, 0, 0, 15, 1, 0, 4, 15, 2, 15, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; float dx7_voice_eg_rate_rise_duration[128] = { /* generated from my f04new */ 39.638000, 37.013000, 34.388000, 31.763000, 27.210500, 22.658000, 20.408000, 18.158000, 15.908000, 14.557000, 13.206000, 12.108333, 11.010667, 9.913000, 8.921000, 7.929000, 7.171333, 6.413667, 5.656000, 5.307000, 4.958000, 4.405667, 3.853333, 3.301000, 2.889000, 2.477000, 2.313000, 2.149000, 1.985000, 1.700500, 1.416000, 1.274333, 1.132667, 0.991000, 0.909000, 0.827000, 0.758000, 0.689000, 0.620000, 0.558000, 0.496000, 0.448667, 0.401333, 0.354000, 0.332000, 0.310000, 0.275667, 0.241333, 0.207000, 0.180950, 0.154900, 0.144567, 0.134233, 0.123900, 0.106200, 0.088500, 0.079667, 0.070833, 0.062000, 0.056800, 0.051600, 0.047300, 0.043000, 0.038700, 0.034800, 0.030900, 0.028000, 0.025100, 0.022200, 0.020815, 0.019430, 0.017237, 0.015043, 0.012850, 0.011230, 0.009610, 0.009077, 0.008543, 0.008010, 0.006960, 0.005910, 0.005357, 0.004803, 0.004250, 0.003960, 0.003670, 0.003310, 0.002950, 0.002590, 0.002420, 0.002250, 0.002000, 0.001749, 0.001499, 0.001443, 0.001387, 0.001242, 0.001096, 0.000951, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815 }; float dx7_voice_eg_rate_decay_duration[128] = { /* generated from my f06new */ 317.487000, 285.764500, 254.042000, 229.857000, 205.672000, 181.487000, 170.154000, 158.821000, 141.150667, 123.480333, 105.810000, 98.382500, 90.955000, 81.804667, 72.654333, 63.504000, 58.217000, 52.930000, 48.512333, 44.094667, 39.677000, 33.089000, 26.501000, 24.283333, 22.065667, 19.848000, 17.881500, 15.915000, 14.389667, 12.864333, 11.339000, 10.641000, 9.943000, 8.833333, 7.723667, 6.614000, 6.149500, 5.685000, 5.112667, 4.540333, 3.968000, 3.639000, 3.310000, 3.033667, 2.757333, 2.481000, 2.069500, 1.658000, 1.518667, 1.379333, 1.240000, 1.116500, 0.993000, 0.898333, 0.803667, 0.709000, 0.665500, 0.622000, 0.552667, 0.483333, 0.414000, 0.384500, 0.355000, 0.319333, 0.283667, 0.248000, 0.228000, 0.208000, 0.190600, 0.173200, 0.155800, 0.129900, 0.104000, 0.095400, 0.086800, 0.078200, 0.070350, 0.062500, 0.056600, 0.050700, 0.044800, 0.042000, 0.039200, 0.034833, 0.030467, 0.026100, 0.024250, 0.022400, 0.020147, 0.017893, 0.015640, 0.014305, 0.012970, 0.011973, 0.010977, 0.009980, 0.008310, 0.006640, 0.006190, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740 }; float dx7_voice_eg_rate_decay_percent[128] = { /* generated from P/H/Op f07 */ 0.000010, 0.025009, 0.050008, 0.075007, 0.100006, 0.125005, 0.150004, 0.175003, 0.200002, 0.225001, 0.250000, 0.260000, 0.270000, 0.280000, 0.290000, 0.300000, 0.310000, 0.320000, 0.330000, 0.340000, 0.350000, 0.358000, 0.366000, 0.374000, 0.382000, 0.390000, 0.398000, 0.406000, 0.414000, 0.422000, 0.430000, 0.439000, 0.448000, 0.457000, 0.466000, 0.475000, 0.484000, 0.493000, 0.502000, 0.511000, 0.520000, 0.527000, 0.534000, 0.541000, 0.548000, 0.555000, 0.562000, 0.569000, 0.576000, 0.583000, 0.590000, 0.601000, 0.612000, 0.623000, 0.634000, 0.645000, 0.656000, 0.667000, 0.678000, 0.689000, 0.700000, 0.707000, 0.714000, 0.721000, 0.728000, 0.735000, 0.742000, 0.749000, 0.756000, 0.763000, 0.770000, 0.777000, 0.784000, 0.791000, 0.798000, 0.805000, 0.812000, 0.819000, 0.826000, 0.833000, 0.840000, 0.848000, 0.856000, 0.864000, 0.872000, 0.880000, 0.888000, 0.896000, 0.904000, 0.912000, 0.920000, 0.928889, 0.937778, 0.946667, 0.955556, 0.964444, 0.973333, 0.982222, 0.991111, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000 }; float dx7_voice_eg_rate_rise_percent[128] = { /* checked, matches P/H/Op f05 */ 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.005007, 0.010005, 0.015003, 0.020000, 0.028000, 0.036000, 0.044000, 0.052000, 0.060000, 0.068000, 0.076000, 0.084000, 0.092000, 0.100000, 0.108000, 0.116000, 0.124000, 0.132000, 0.140000, 0.150000, 0.160000, 0.170000, 0.180000, 0.190000, 0.200000, 0.210000, 0.220000, 0.230000, 0.240000, 0.251000, 0.262000, 0.273000, 0.284000, 0.295000, 0.306000, 0.317000, 0.328000, 0.339000, 0.350000, 0.365000, 0.380000, 0.395000, 0.410000, 0.425000, 0.440000, 0.455000, 0.470000, 0.485000, 0.500000, 0.520000, 0.540000, 0.560000, 0.580000, 0.600000, 0.620000, 0.640000, 0.660000, 0.680000, 0.700000, 0.732000, 0.764000, 0.796000, 0.828000, 0.860000, 0.895000, 0.930000, 0.965000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000 }; /* This table converts pitch envelope level parameters into the * actual pitch shift in semitones. For levels [17,85], this is * just ((level - 50) / 32 * 12), but at the outer edges the shift * is exagerated to 0 = -48 and 99 => 47.624. This is based on * measurements I took from my TX7. */ double dx7_voice_pitch_level_to_shift[128] = { -48.000000, -43.497081, -38.995993, -35.626132, -31.873615, -28.495880, -25.500672, -22.872620, -20.998167, -19.496961, -18.373238, -17.251065, -16.122139, -15.375956, -14.624487, -13.876516, -13.126351, -12.375000, -12.000000, -11.625000, -11.250000, -10.875000, -10.500000, -10.125000, -9.750000, -9.375000, -9.000000, -8.625000, -8.250000, -7.875000, -7.500000, -7.125000, -6.750000, -6.375000, -6.000000, -5.625000, -5.250000, -4.875000, -4.500000, -4.125000, -3.750000, -3.375000, -3.000000, -2.625000, -2.250000, -1.875000, -1.500000, -1.125000, -0.750000, -0.375000, 0.000000, 0.375000, 0.750000, 1.125000, 1.500000, 1.875000, 2.250000, 2.625000, 3.000000, 3.375000, 3.750000, 4.125000, 4.500000, 4.875000, 5.250000, 5.625000, 6.000000, 6.375000, 6.750000, 7.125000, 7.500000, 7.875000, 8.250000, 8.625000, 9.000000, 9.375000, 9.750000, 10.125000, 10.500000, 10.875000, 11.250000, 11.625000, 12.000000, 12.375000, 12.750000, 13.125000, 14.251187, 15.001922, 16.126327, 17.250917, 18.375718, 19.877643, 21.753528, 24.373913, 27.378021, 30.748956, 34.499234, 38.627888, 43.122335, 47.624065, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0 }; char base64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /* * decode_7in6 * * decode a block of base64-ish 7-bit encoded data */ int decode_7in6(const char *string, int expected_length, uint8_t *data) { int in, stated_length, reg, above, below, shift, out; char *p; uint8_t *tmpdata; int string_length = strlen(string); unsigned int sum = 0, stated_sum; if (string_length < 6) return 0; /* too short */ stated_length = strtol(string, &p, 10); in = p - string; if (in == 0 || string[in] != ' ') return 0; /* stated length is bad */ in++; if (stated_length != expected_length) return 0; if (string_length - in < ((expected_length * 7 + 5) / 6)) return 0; /* encoded data too short */ if (!(tmpdata = (uint8_t *)malloc(expected_length))) return 0; /* out of memory */ reg = above = below = out = 0; while (1) { if (above == 7) { tmpdata[out] = reg >> 6; sum += tmpdata[out]; reg &= 0x3f; above = 0; if (++out == expected_length) break; } if (below == 0) { if (!(p = strchr(base64, string[in]))) { return 0; /* illegal character */ } reg |= p - base64; below = 6; in++; } shift = 7 - above; if (below < shift) shift = below; reg <<= shift; above += shift; below -= shift; } if (string[in++] != ' ') { /* encoded data wrong length */ free(tmpdata); return 0; } stated_sum = strtol(string + in, &p, 10); if (sum != stated_sum) { free(tmpdata); return 0; } memcpy(data, tmpdata, expected_length); free(tmpdata); return 1; } /* * dx7_voice_copy_name */ void dx7_voice_copy_name(char *name, dx7_patch_t *patch) { int i; unsigned char c; for (i = 0; i < 10; i++) { c = (unsigned char)patch->data[i + 118]; switch (c) { case 92: c = 'Y'; break; /* yen */ case 126: c = '>'; break; /* >> */ case 127: c = '<'; break; /* << */ default: if (c < 32 || c > 127) c = 32; break; } name[i] = c; } name[10] = 0; } /* * dx7_patch_unpack */ void dx7_patch_unpack(dx7_patch_t *packed_patch, uint8_t number, uint8_t *unpacked_patch) { uint8_t *up = unpacked_patch, *pp = (uint8_t *)(&packed_patch[number]); int i, j; /* ugly because it used to be 68000 assembly... */ for(i = 6; i > 0; i--) { for(j = 11; j > 0; j--) { *up++ = *pp++; } /* through rd */ *up++ = (*pp) & 0x03; /* lc */ *up++ = (*pp++) >> 2; /* rc */ *up++ = (*pp) & 0x07; /* rs */ *(up + 6) = (*pp++) >> 3; /* pd */ *up++ = (*pp) & 0x03; /* ams */ *up++ = (*pp++) >> 2; /* kvs */ *up++ = *pp++; /* ol */ *up++ = (*pp) & 0x01; /* m */ *up++ = (*pp++) >> 1; /* fc */ *up = *pp++; /* ff */ up += 2; } /* operator done */ for(i = 9; i > 0; i--) { *up++ = *pp++; } /* through algorithm */ *up++ = (*pp) & 0x07; /* feedback */ *up++ = (*pp++) >> 3; /* oks */ for(i = 4; i > 0; i--) { *up++ = *pp++; } /* through lamd */ *up++ = (*pp) & 0x01; /* lfo ks */ *up++ = ((*pp) >> 1) & 0x07; /* lfo wave */ *up++ = (*pp++) >> 4; /* lfo pms */ for(i = 11; i > 0; i--) { *up++ = *pp++; } } /* * dx7_patch_pack */ void dx7_patch_pack(uint8_t *unpacked_patch, dx7_patch_t *packed_patch, uint8_t number) { uint8_t *up = unpacked_patch, *pp = (uint8_t *)(&packed_patch[number]); int i, j; /* ugly because it used to be 68000 assembly... */ for (i = 6; i > 0; i--) { for (j = 11; j > 0; j--) { *pp++ = *up++; } /* through rd */ *pp++ = ((*up) & 0x03) | (((*(up + 1)) & 0x03) << 2); up += 2; /* rc+lc */ *pp++ = ((*up) & 0x07) | (((*(up + 7)) & 0x0f) << 3); up++; /* pd+rs */ *pp++ = ((*up) & 0x03) | (((*(up + 1)) & 0x07) << 2); up += 2; /* kvs+ams */ *pp++ = *up++; /* ol */ *pp++ = ((*up) & 0x01) | (((*(up + 1)) & 0x1f) << 1); up += 2; /* fc+m */ *pp++ = *up; up += 2; /* ff */ } /* operator done */ for (i = 9; i > 0; i--) { *pp++ = *up++; } /* through algorithm */ *pp++ = ((*up) & 0x07) | (((*(up + 1)) & 0x01) << 3); up += 2; /* oks+fb */ for (i = 4; i > 0; i--) { *pp++ = *up++; } /* through lamd */ *pp++ = ((*up) & 0x01) | (((*(up + 1)) & 0x07) << 1) | (((*(up + 2)) & 0x07) << 4); up += 3; /* lpms+lfw+lks */ for (i = 11; i > 0; i--) { *pp++ = *up++; } /* through name */ } /* * dssp_error_message */ char * dssp_error_message(const char *fmt, ...) { va_list args; char buffer[256]; va_start(args, fmt); vsnprintf(buffer, 256, fmt, args); va_end(args); return strdup(buffer); } /* * hexter_data_patches_init * * initialize the patch bank, including a default set of good patches to get * the new user started. */ void hexter_data_patches_init(dx7_patch_t *patches) { int i; memcpy(patches, friendly_patches, friendly_patch_count * sizeof(dx7_patch_t)); for (i = friendly_patch_count; i < 128; i++) { memcpy(&patches[i], &dx7_voice_init_voice, sizeof(dx7_patch_t)); } } /* * hexter_data_performance_init * * initialize the global performance parameters. */ void hexter_data_performance_init(uint8_t *performance) { memcpy(performance, &dx7_init_performance, DX7_PERFORMANCE_SIZE); } hexter-version_1.1.0/src/dx7_voice_data.h000066400000000000000000000035611325353653200204110ustar00rootroot00000000000000/* hexter DSSI software synthesizer plugin and GUI * * Copyright (C) 2004, 2009, 2011 Sean Bolton and others. * * 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 _DX7_VOICE_DATA_H #define _DX7_VOICE_DATA_H #include "hexter_types.h" /* dx7_voice_data.c */ extern dx7_patch_t dx7_voice_init_voice; extern uint8_t dx7_init_performance[DX7_PERFORMANCE_SIZE]; extern float dx7_voice_eg_rate_rise_duration[128]; extern float dx7_voice_eg_rate_decay_duration[128]; extern float dx7_voice_eg_rate_rise_percent[128]; extern float dx7_voice_eg_rate_decay_percent[128]; extern double dx7_voice_pitch_level_to_shift[128]; extern char base64[]; char *dssp_error_message(const char *fmt, ...); int decode_7in6(const char *string, int expected_length, uint8_t *data); void dx7_voice_copy_name(char *name, dx7_patch_t *patch); void dx7_patch_unpack(dx7_patch_t *packed_patch, uint8_t number, uint8_t *unpacked_patch); void dx7_patch_pack(uint8_t *unpacked_patch, dx7_patch_t *packed_patch, uint8_t number); void hexter_data_patches_init(dx7_patch_t *patches); void hexter_data_performance_init(uint8_t *performance); #endif /* _DX7_VOICE_DATA_H */ hexter-version_1.1.0/src/dx7_voice_patches.c000066400000000000000000001576741325353653200211410ustar00rootroot00000000000000/* hexter DSSI plugin and GUI */ /* Copyright? Hmm, who knows.... */ #include "hexter_types.h" #include "dx7_voice.h" #define FRIENDLY_PATCH_COUNT 71 int friendly_patch_count = FRIENDLY_PATCH_COUNT; dx7_patch_t friendly_patches[FRIENDLY_PATCH_COUNT] = { {{ 0x5f, 0x1d, 0x14, 0x32, 0x63, 0x5f, 0x00, 0x00, 0x29, 0x00, 0x13, 0x00, 0x73, 0x18, 0x4f, 0x02, 0x00, 0x5f, 0x14, 0x14, 0x32, 0x63, 0x5f, 0x00, 0x00, 0x2c, 0x00, 0x08, 0x00, 0x03, 0x0a, 0x63, 0x02, 0x00, 0x5f, 0x1d, 0x14, 0x32, 0x63, 0x5f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x18, 0x59, 0x02, 0x00, 0x5f, 0x14, 0x14, 0x32, 0x63, 0x5f, 0x00, 0x00, 0x2c, 0x00, 0x08, 0x00, 0x3b, 0x0b, 0x63, 0x02, 0x00, 0x5f, 0x32, 0x23, 0x4e, 0x63, 0x4b, 0x00, 0x00, 0x24, 0x00, 0x32, 0x00, 0x3b, 0x1c, 0x4b, 0x22, 0x36, 0x60, 0x19, 0x19, 0x43, 0x63, 0x4b, 0x00, 0x00, 0x2c, 0x00, 0x08, 0x00, 0x53, 0x1c, 0x63, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x04, 0x0c, 0x09, 0x00, 0x00, 0x00, 0x08, 0x18, 0x45, 0x6c, 0x65, 0x63, 0x20, 0x50, 0x69, 0x61, 0x6e, 0x6f }}, {{ 0x63, 0x29, 0x39, 0x2c, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x08, 0x3f, 0x18, 0x00, 0x63, 0x1a, 0x00, 0x2c, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x22, 0x10, 0x63, 0x02, 0x00, 0x63, 0x23, 0x39, 0x30, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x0c, 0x3b, 0x0e, 0x00, 0x63, 0x1a, 0x39, 0x30, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, 0x10, 0x63, 0x02, 0x00, 0x62, 0x63, 0x00, 0x5a, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x00, 0x62, 0x63, 0x00, 0x5a, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x04, 0x07, 0x2f, 0x00, 0x00, 0x00, 0x30, 0x18, 0x46, 0x42, 0x3a, 0x50, 0x66, 0x56, 0x69, 0x62, 0x65, 0x20 }}, {{ 0x5a, 0x00, 0x16, 0x20, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x68, 0x00, 0x47, 0x04, 0x00, 0x5a, 0x2a, 0x1e, 0x28, 0x63, 0x56, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x0c, 0x63, 0x01, 0x00, 0x5f, 0x1d, 0x14, 0x32, 0x63, 0x5f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x5b, 0x18, 0x4f, 0x04, 0x00, 0x5f, 0x1e, 0x14, 0x32, 0x63, 0x5f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1b, 0x0c, 0x61, 0x04, 0x00, 0x5f, 0x30, 0x23, 0x5a, 0x63, 0x4b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x1d, 0x4d, 0x38, 0x00, 0x62, 0x1e, 0x12, 0x42, 0x63, 0x57, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x53, 0x10, 0x5e, 0x04, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x04, 0x00, 0x23, 0x00, 0x00, 0x00, 0x01, 0x0c, 0x46, 0x61, 0x74, 0x54, 0x68, 0x69, 0x6e, 0x45, 0x2e, 0x50 }}, {{ 0x5f, 0x1d, 0x14, 0x32, 0x63, 0x5f, 0x00, 0x00, 0x29, 0x00, 0x13, 0x00, 0x73, 0x18, 0x4f, 0x02, 0x00, 0x5f, 0x14, 0x14, 0x32, 0x63, 0x5f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x63, 0x02, 0x00, 0x5f, 0x1d, 0x14, 0x32, 0x63, 0x5f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x18, 0x59, 0x02, 0x00, 0x5f, 0x14, 0x14, 0x32, 0x63, 0x5f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x08, 0x63, 0x02, 0x00, 0x5f, 0x32, 0x23, 0x4e, 0x63, 0x4b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x1c, 0x3a, 0x1c, 0x00, 0x60, 0x19, 0x19, 0x43, 0x63, 0x4b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x53, 0x08, 0x63, 0x02, 0x00, 0x5e, 0x43, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x04, 0x06, 0x22, 0x21, 0x00, 0x00, 0x38, 0x18, 0x45, 0x2e, 0x50, 0x49, 0x41, 0x4e, 0x4f, 0x20, 0x31, 0x20 }}, {{ 0x5a, 0x34, 0x19, 0x36, 0x63, 0x3c, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x3a, 0x1c, 0x3c, 0x16, 0x00, 0x5f, 0x4e, 0x14, 0x39, 0x63, 0x5f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x08, 0x63, 0x02, 0x00, 0x61, 0x44, 0x0d, 0x36, 0x63, 0x51, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x10, 0x20, 0x1c, 0x00, 0x5f, 0x1f, 0x14, 0x36, 0x63, 0x50, 0x00, 0x00, 0x24, 0x24, 0x00, 0x00, 0x3b, 0x04, 0x63, 0x02, 0x00, 0x5f, 0x63, 0x00, 0x36, 0x63, 0x63, 0x4b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x08, 0x4a, 0x02, 0x00, 0x60, 0x19, 0x19, 0x36, 0x63, 0x4b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x00, 0x63, 0x02, 0x00, 0x5e, 0x43, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x05, 0x04, 0x22, 0x21, 0x00, 0x00, 0x08, 0x18, 0x45, 0x2e, 0x50, 0x49, 0x41, 0x4e, 0x4f, 0x20, 0x33, 0x20 }}, {{ 0x7f, 0x2a, 0x2f, 0x24, 0x63, 0x35, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x10, 0x42, 0x02, 0x00, 0x5a, 0x44, 0x14, 0x2b, 0x5f, 0x5a, 0x00, 0x00, 0x27, 0x53, 0x00, 0x03, 0x3b, 0x0c, 0x46, 0x02, 0x00, 0x61, 0x1b, 0x0a, 0x19, 0x63, 0x56, 0x30, 0x00, 0x00, 0x00, 0x60, 0x00, 0x3b, 0x00, 0x61, 0x06, 0x00, 0x5a, 0x1b, 0x14, 0x32, 0x63, 0x55, 0x00, 0x00, 0x24, 0x00, 0x44, 0x00, 0x3b, 0x08, 0x47, 0x0a, 0x00, 0x5f, 0x1e, 0x19, 0x32, 0x63, 0x4b, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x3a, 0x08, 0x56, 0x02, 0x00, 0x60, 0x1e, 0x19, 0x32, 0x63, 0x3e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x0c, 0x63, 0x02, 0x00, 0x5e, 0x43, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x10, 0x05, 0x22, 0x21, 0x00, 0x00, 0x08, 0x18, 0x45, 0x2e, 0x47, 0x52, 0x41, 0x4e, 0x44, 0x20, 0x31, 0x20 }}, {{ 0x63, 0x00, 0x19, 0x00, 0x63, 0x4b, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x35, 0x00, 0x52, 0x02, 0x00, 0x51, 0x3a, 0x24, 0x27, 0x63, 0x0e, 0x00, 0x00, 0x30, 0x00, 0x42, 0x00, 0x35, 0x04, 0x5d, 0x02, 0x3a, 0x51, 0x17, 0x16, 0x2d, 0x63, 0x4e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x45, 0x08, 0x63, 0x02, 0x00, 0x51, 0x19, 0x19, 0x0e, 0x63, 0x63, 0x63, 0x00, 0x2f, 0x20, 0x4a, 0x03, 0x3d, 0x00, 0x39, 0x06, 0x00, 0x63, 0x00, 0x19, 0x00, 0x63, 0x4b, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x4d, 0x00, 0x57, 0x02, 0x00, 0x51, 0x19, 0x14, 0x30, 0x63, 0x52, 0x00, 0x00, 0x00, 0x55, 0x00, 0x03, 0x2c, 0x08, 0x63, 0x02, 0x00, 0x5e, 0x43, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x12, 0x0e, 0x23, 0x00, 0x00, 0x00, 0x40, 0x18, 0x50, 0x49, 0x41, 0x4e, 0x4f, 0x20, 0x20, 0x20, 0x31, 0x20 }}, {{ 0x5e, 0x13, 0x00, 0x2a, 0x63, 0x5c, 0x00, 0x00, 0x1a, 0x08, 0x00, 0x03, 0x70, 0x04, 0x3a, 0x10, 0x00, 0x48, 0x10, 0x00, 0x2a, 0x63, 0x5c, 0x00, 0x00, 0x0b, 0x14, 0x4c, 0x00, 0x4c, 0x0c, 0x45, 0x28, 0x00, 0x40, 0x0e, 0x09, 0x2b, 0x63, 0x58, 0x00, 0x00, 0x03, 0x00, 0x47, 0x07, 0x45, 0x04, 0x4f, 0x08, 0x00, 0x41, 0x0f, 0x0b, 0x2b, 0x63, 0x58, 0x00, 0x00, 0x33, 0x00, 0x15, 0x00, 0x34, 0x04, 0x4d, 0x02, 0x00, 0x42, 0x3d, 0x40, 0x37, 0x63, 0x52, 0x00, 0x00, 0x60, 0x14, 0x00, 0x00, 0x39, 0x08, 0x50, 0x03, 0x57, 0x46, 0x14, 0x0b, 0x2e, 0x63, 0x5a, 0x00, 0x00, 0x46, 0x03, 0x28, 0x00, 0x3e, 0x18, 0x63, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x31, 0x32, 0x32, 0x32, 0x0f, 0x08, 0x23, 0x00, 0x00, 0x00, 0x01, 0x18, 0x41, 0x2e, 0x50, 0x69, 0x61, 0x6e, 0x6f, 0x31, 0x2e, 0x35 }}, {{ 0x5f, 0x48, 0x47, 0x63, 0x63, 0x61, 0x5b, 0x62, 0x40, 0x00, 0x37, 0x00, 0x39, 0x00, 0x57, 0x0c, 0x00, 0x5f, 0x1c, 0x1b, 0x2f, 0x63, 0x5a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x53, 0x0c, 0x53, 0x08, 0x00, 0x5f, 0x48, 0x47, 0x63, 0x63, 0x61, 0x5b, 0x62, 0x40, 0x00, 0x2e, 0x00, 0x39, 0x00, 0x63, 0x06, 0x00, 0x5f, 0x1c, 0x1b, 0x2f, 0x63, 0x5a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x5b, 0x08, 0x55, 0x02, 0x00, 0x5f, 0x48, 0x47, 0x63, 0x63, 0x61, 0x5b, 0x62, 0x00, 0x00, 0x00, 0x00, 0x39, 0x00, 0x63, 0x00, 0x00, 0x5f, 0x1c, 0x1b, 0x2f, 0x63, 0x5a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2b, 0x08, 0x59, 0x08, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x04, 0x09, 0x23, 0x00, 0x00, 0x00, 0x20, 0x24, 0x48, 0x41, 0x52, 0x50, 0x53, 0x49, 0x43, 0x48, 0x2e, 0x20 }}, {{ 0x63, 0x30, 0x63, 0x32, 0x63, 0x20, 0x00, 0x00, 0x27, 0x0c, 0x0c, 0x0c, 0x3d, 0x1c, 0x3e, 0x1c, 0x00, 0x50, 0x55, 0x18, 0x32, 0x63, 0x5a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x73, 0x14, 0x63, 0x02, 0x00, 0x50, 0x55, 0x18, 0x32, 0x63, 0x5a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6b, 0x1c, 0x63, 0x02, 0x00, 0x50, 0x55, 0x2b, 0x32, 0x63, 0x4a, 0x00, 0x00, 0x27, 0x0c, 0x0c, 0x0c, 0x3c, 0x10, 0x4e, 0x06, 0x00, 0x50, 0x55, 0x18, 0x32, 0x63, 0x5a, 0x00, 0x00, 0x27, 0x04, 0x0c, 0x0c, 0x3a, 0x14, 0x63, 0x02, 0x00, 0x63, 0x1c, 0x63, 0x32, 0x63, 0x19, 0x00, 0x00, 0x27, 0x0c, 0x0c, 0x0c, 0x3a, 0x1c, 0x46, 0x08, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x16, 0x0d, 0x1a, 0x00, 0x00, 0x00, 0x11, 0x18, 0x56, 0x49, 0x42, 0x45, 0x53, 0x20, 0x20, 0x20, 0x20, 0x41 }}, {{ 0x62, 0x4d, 0x37, 0x00, 0x4e, 0x4e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x10, 0x57, 0x0e, 0x07, 0x62, 0x40, 0x00, 0x08, 0x52, 0x30, 0x00, 0x00, 0x36, 0x00, 0x2e, 0x00, 0x38, 0x08, 0x61, 0x0e, 0x00, 0x5a, 0x3f, 0x00, 0x52, 0x52, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x14, 0x5b, 0x0e, 0x00, 0x62, 0x1d, 0x20, 0x2e, 0x63, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x14, 0x63, 0x02, 0x00, 0x62, 0x1e, 0x2e, 0x32, 0x63, 0x50, 0x00, 0x00, 0x36, 0x00, 0x2e, 0x00, 0x3c, 0x10, 0x3c, 0x0a, 0x00, 0x62, 0x15, 0x19, 0x2e, 0x63, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x10, 0x63, 0x02, 0x01, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x06, 0x0f, 0x15, 0x00, 0x00, 0x00, 0x21, 0x18, 0x41, 0x2e, 0x4d, 0x41, 0x4c, 0x4c, 0x45, 0x54, 0x20, 0x41 }}, {{ 0x63, 0x41, 0x55, 0x49, 0x63, 0x12, 0x00, 0x00, 0x24, 0x33, 0x06, 0x01, 0x71, 0x10, 0x55, 0x06, 0x0b, 0x63, 0x31, 0x4e, 0x32, 0x63, 0x15, 0x0b, 0x00, 0x00, 0x00, 0x14, 0x04, 0x71, 0x08, 0x63, 0x02, 0x00, 0x63, 0x4a, 0x15, 0x55, 0x59, 0x22, 0x00, 0x00, 0x25, 0x63, 0x00, 0x03, 0x3a, 0x14, 0x63, 0x04, 0x1c, 0x63, 0x1e, 0x4e, 0x25, 0x63, 0x15, 0x0b, 0x00, 0x30, 0x63, 0x63, 0x06, 0x3f, 0x10, 0x63, 0x02, 0x00, 0x63, 0x52, 0x32, 0x49, 0x63, 0x56, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x02, 0x10, 0x63, 0x06, 0x0b, 0x63, 0x1e, 0x4e, 0x25, 0x63, 0x15, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x08, 0x63, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x30, 0x32, 0x32, 0x32, 0x04, 0x00, 0x23, 0x00, 0x00, 0x00, 0x31, 0x18, 0x43, 0x41, 0x52, 0x49, 0x42, 0x49, 0x43, 0x20, 0x32, 0x20 }}, {{ 0x63, 0x3d, 0x37, 0x32, 0x63, 0x50, 0x00, 0x00, 0x0f, 0x00, 0x14, 0x04, 0x44, 0x00, 0x3b, 0x08, 0x00, 0x63, 0x27, 0x27, 0x27, 0x63, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x14, 0x04, 0x3c, 0x00, 0x63, 0x00, 0x00, 0x63, 0x3d, 0x37, 0x32, 0x63, 0x50, 0x00, 0x00, 0x0f, 0x00, 0x14, 0x04, 0x3c, 0x00, 0x39, 0x12, 0x00, 0x63, 0x27, 0x27, 0x27, 0x63, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x14, 0x04, 0x44, 0x00, 0x63, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x04, 0x08, 0x23, 0x00, 0x00, 0x00, 0x01, 0x18, 0x4d, 0x41, 0x52, 0x49, 0x4d, 0x42, 0x41, 0x20, 0x20, 0x20 }}, {{ 0x00, 0x51, 0x37, 0x00, 0x4e, 0x4e, 0x00, 0x00, 0x29, 0x00, 0x00, 0x00, 0x38, 0x14, 0x4b, 0x08, 0x00, 0x63, 0x56, 0x37, 0x00, 0x60, 0x4e, 0x00, 0x00, 0x29, 0x00, 0x00, 0x00, 0x38, 0x08, 0x4f, 0x00, 0x00, 0x63, 0x49, 0x00, 0x0e, 0x52, 0x30, 0x00, 0x00, 0x36, 0x00, 0x2e, 0x00, 0x38, 0x08, 0x5e, 0x06, 0x00, 0x5f, 0x32, 0x31, 0x29, 0x63, 0x5c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x18, 0x63, 0x00, 0x00, 0x63, 0x47, 0x00, 0x00, 0x52, 0x30, 0x00, 0x00, 0x36, 0x00, 0x2e, 0x00, 0x38, 0x08, 0x63, 0x06, 0x00, 0x5f, 0x2b, 0x31, 0x35, 0x63, 0x5c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x14, 0x63, 0x00, 0x00, 0x5e, 0x43, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x06, 0x08, 0x22, 0x21, 0x00, 0x00, 0x18, 0x30, 0x58, 0x59, 0x4c, 0x4f, 0x50, 0x48, 0x4f, 0x4e, 0x45, 0x20 }}, {{ 0x62, 0x57, 0x00, 0x00, 0x57, 0x56, 0x00, 0x00, 0x20, 0x00, 0x15, 0x00, 0x3b, 0x08, 0x52, 0x28, 0x00, 0x5f, 0x5f, 0x36, 0x00, 0x63, 0x60, 0x59, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2b, 0x10, 0x4a, 0x08, 0x00, 0x5f, 0x5c, 0x1c, 0x3c, 0x63, 0x5a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x0c, 0x51, 0x06, 0x00, 0x62, 0x57, 0x00, 0x00, 0x57, 0x56, 0x00, 0x00, 0x20, 0x00, 0x15, 0x00, 0x3b, 0x1c, 0x55, 0x0e, 0x32, 0x5f, 0x5f, 0x00, 0x00, 0x63, 0x60, 0x59, 0x00, 0x00, 0x00, 0x00, 0x00, 0x33, 0x14, 0x52, 0x00, 0x00, 0x5f, 0x5c, 0x1c, 0x3c, 0x63, 0x5a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x23, 0x1c, 0x63, 0x04, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x11, 0x0b, 0x1e, 0x00, 0x00, 0x00, 0x28, 0x24, 0x43, 0x4c, 0x41, 0x56, 0x2e, 0x20, 0x20, 0x20, 0x20, 0x42 }}, {{ 0x63, 0x39, 0x63, 0x4b, 0x63, 0x00, 0x00, 0x00, 0x27, 0x35, 0x14, 0x00, 0x38, 0x1b, 0x39, 0x18, 0x00, 0x51, 0x57, 0x16, 0x4b, 0x63, 0x5c, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x3c, 0x1c, 0x63, 0x06, 0x00, 0x51, 0x57, 0x16, 0x4b, 0x63, 0x5c, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x3c, 0x10, 0x59, 0x06, 0x00, 0x4e, 0x57, 0x16, 0x4b, 0x63, 0x5c, 0x00, 0x00, 0x22, 0x09, 0x00, 0x00, 0x3b, 0x1c, 0x63, 0x02, 0x00, 0x5b, 0x19, 0x27, 0x3c, 0x63, 0x56, 0x00, 0x00, 0x00, 0x00, 0x41, 0x00, 0x3a, 0x1c, 0x5d, 0x06, 0x00, 0x4a, 0x55, 0x1b, 0x46, 0x63, 0x5f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x14, 0x63, 0x02, 0x00, 0x4b, 0x50, 0x4b, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x07, 0x07, 0x23, 0x00, 0x01, 0x03, 0x38, 0x18, 0x47, 0x55, 0x49, 0x54, 0x41, 0x52, 0x20, 0x20, 0x31, 0x20 }}, {{ 0x5b, 0x1c, 0x18, 0x35, 0x63, 0x1b, 0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0x3b, 0x08, 0x59, 0x0a, 0x00, 0x34, 0x17, 0x18, 0x35, 0x60, 0x1b, 0x00, 0x00, 0x2a, 0x00, 0x00, 0x04, 0x3b, 0x0c, 0x3d, 0x02, 0x00, 0x5b, 0x1c, 0x18, 0x35, 0x63, 0x1b, 0x00, 0x00, 0x14, 0x00, 0x00, 0x04, 0x3b, 0x08, 0x3f, 0x06, 0x00, 0x4b, 0x1c, 0x18, 0x42, 0x63, 0x1b, 0x00, 0x00, 0x19, 0x00, 0x00, 0x0a, 0x3b, 0x04, 0x55, 0x02, 0x00, 0x5b, 0x1c, 0x18, 0x35, 0x63, 0x1b, 0x00, 0x00, 0x14, 0x00, 0x00, 0x04, 0x4b, 0x04, 0x4b, 0x02, 0x00, 0x4b, 0x1c, 0x18, 0x42, 0x63, 0x1b, 0x00, 0x00, 0x19, 0x00, 0x00, 0x0a, 0x3b, 0x0c, 0x56, 0x02, 0x00, 0x63, 0x62, 0x4b, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x0d, 0x04, 0x27, 0x55, 0x01, 0x00, 0x18, 0x0c, 0x47, 0x55, 0x49, 0x54, 0x41, 0x52, 0x20, 0x20, 0x33, 0x20 }}, {{ 0x5b, 0x1c, 0x18, 0x35, 0x63, 0x1b, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x3b, 0x08, 0x4a, 0x0a, 0x00, 0x34, 0x17, 0x18, 0x35, 0x60, 0x1b, 0x00, 0x00, 0x2a, 0x00, 0x00, 0x04, 0x3b, 0x0c, 0x3d, 0x02, 0x00, 0x5b, 0x1c, 0x18, 0x35, 0x63, 0x1b, 0x00, 0x00, 0x14, 0x00, 0x00, 0x04, 0x3b, 0x08, 0x3f, 0x06, 0x00, 0x4b, 0x1c, 0x18, 0x42, 0x63, 0x1b, 0x00, 0x00, 0x19, 0x00, 0x00, 0x0a, 0x3b, 0x04, 0x63, 0x02, 0x00, 0x5b, 0x62, 0x18, 0x35, 0x63, 0x1b, 0x00, 0x00, 0x14, 0x00, 0x00, 0x04, 0x4b, 0x04, 0x60, 0x36, 0x00, 0x4b, 0x4f, 0x18, 0x42, 0x63, 0x1b, 0x00, 0x00, 0x19, 0x00, 0x00, 0x0a, 0x3b, 0x0c, 0x58, 0x02, 0x00, 0x62, 0x62, 0x4b, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x0d, 0x04, 0x27, 0x55, 0x01, 0x00, 0x18, 0x18, 0x53, 0x50, 0x41, 0x4e, 0x49, 0x53, 0x48, 0x47, 0x54, 0x52 }}, {{ 0x60, 0x46, 0x1a, 0x30, 0x63, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x04, 0x40, 0x00, 0x48, 0x0c, 0x00, 0x63, 0x21, 0x1a, 0x47, 0x63, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x04, 0x38, 0x00, 0x3c, 0x08, 0x00, 0x63, 0x22, 0x1a, 0x47, 0x63, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x04, 0x54, 0x00, 0x25, 0x04, 0x00, 0x53, 0x22, 0x00, 0x26, 0x63, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x04, 0x3c, 0x00, 0x63, 0x02, 0x00, 0x63, 0x22, 0x1a, 0x47, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x3c, 0x00, 0x49, 0x04, 0x00, 0x53, 0x22, 0x00, 0x26, 0x63, 0x00, 0x00, 0x00, 0x27, 0x00, 0x46, 0x00, 0x3c, 0x00, 0x54, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x0d, 0x0f, 0x1b, 0x00, 0x01, 0x00, 0x40, 0x18, 0x4c, 0x55, 0x54, 0x45, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20 }}, {{ 0x60, 0x59, 0x1a, 0x2e, 0x63, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x04, 0x40, 0x10, 0x54, 0x0c, 0x00, 0x63, 0x38, 0x1a, 0x2a, 0x63, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x38, 0x04, 0x38, 0x14, 0x53, 0x0a, 0x00, 0x63, 0x22, 0x1a, 0x27, 0x63, 0x00, 0x00, 0x00, 0x54, 0x0e, 0x63, 0x01, 0x3a, 0x14, 0x52, 0x04, 0x00, 0x53, 0x22, 0x00, 0x2e, 0x63, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x1c, 0x04, 0x61, 0x18, 0x63, 0x02, 0x00, 0x63, 0x3c, 0x1a, 0x47, 0x63, 0x00, 0x00, 0x00, 0x63, 0x56, 0x63, 0x05, 0x3a, 0x18, 0x50, 0x04, 0x00, 0x53, 0x23, 0x00, 0x27, 0x63, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x1c, 0x04, 0x3a, 0x1c, 0x60, 0x02, 0x00, 0x62, 0x62, 0x62, 0x62, 0x32, 0x32, 0x32, 0x32, 0x0d, 0x0f, 0x1b, 0x00, 0x01, 0x00, 0x30, 0x18, 0x48, 0x41, 0x52, 0x50, 0x20, 0x20, 0x20, 0x20, 0x31, 0x20 }}, {{ 0x60, 0x21, 0x00, 0x63, 0x63, 0x4f, 0x00, 0x00, 0x27, 0x0d, 0x20, 0x03, 0x3e, 0x04, 0x51, 0x14, 0x00, 0x60, 0x19, 0x00, 0x63, 0x63, 0x49, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 0x14, 0x2c, 0x02, 0x00, 0x60, 0x17, 0x03, 0x1a, 0x63, 0x56, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 0x0c, 0x4a, 0x02, 0x00, 0x60, 0x18, 0x0d, 0x31, 0x63, 0x2e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3d, 0x14, 0x63, 0x02, 0x00, 0x62, 0x63, 0x00, 0x5a, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x00, 0x62, 0x63, 0x00, 0x5a, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x07, 0x07, 0x33, 0x00, 0x00, 0x00, 0x30, 0x18, 0x46, 0x42, 0x3a, 0x50, 0x6c, 0x75, 0x63, 0x6b, 0x47, 0x74 }}, {{ 0x5e, 0x4a, 0x19, 0x2a, 0x63, 0x57, 0x23, 0x00, 0x27, 0x30, 0x00, 0x00, 0x3a, 0x04, 0x4d, 0x02, 0x00, 0x5e, 0x50, 0x27, 0x2a, 0x63, 0x57, 0x00, 0x00, 0x32, 0x12, 0x63, 0x03, 0x3a, 0x1c, 0x4e, 0x16, 0x00, 0x5a, 0x23, 0x0e, 0x32, 0x63, 0x57, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, 0x10, 0x4f, 0x02, 0x00, 0x5e, 0x50, 0x35, 0x2a, 0x63, 0x5f, 0x37, 0x00, 0x22, 0x12, 0x15, 0x03, 0x3a, 0x18, 0x4c, 0x1a, 0x00, 0x5a, 0x4c, 0x1a, 0x34, 0x63, 0x5e, 0x4c, 0x00, 0x3c, 0x00, 0x32, 0x00, 0x3a, 0x10, 0x4e, 0x04, 0x00, 0x5a, 0x4e, 0x18, 0x31, 0x63, 0x5f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x14, 0x63, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x0a, 0x0e, 0x12, 0x00, 0x00, 0x00, 0x01, 0x18, 0x4c, 0x4f, 0x54, 0x55, 0x53, 0x20, 0x20, 0x20, 0x20, 0x20 }}, {{ 0x63, 0x36, 0x16, 0x5a, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x5e, 0x06, 0x00, 0x63, 0x50, 0x16, 0x5a, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x48, 0x00, 0x5e, 0x02, 0x00, 0x63, 0x50, 0x16, 0x5a, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x00, 0x5e, 0x00, 0x00, 0x63, 0x50, 0x36, 0x52, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x58, 0x00, 0x5e, 0x02, 0x32, 0x63, 0x14, 0x16, 0x5a, 0x63, 0x63, 0x61, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x08, 0x00, 0x5e, 0x02, 0x01, 0x63, 0x50, 0x16, 0x5a, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x5e, 0x00, 0x00, 0x4b, 0x50, 0x4b, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x1f, 0x08, 0x23, 0x00, 0x00, 0x00, 0x40, 0x18, 0x45, 0x2e, 0x4f, 0x52, 0x47, 0x41, 0x4e, 0x20, 0x31, 0x20 }}, {{ 0x5e, 0x50, 0x16, 0x5a, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x60, 0x02, 0x32, 0x5e, 0x50, 0x16, 0x5a, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x60, 0x02, 0x00, 0x5e, 0x50, 0x16, 0x5a, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x00, 0x60, 0x00, 0x00, 0x5b, 0x50, 0x36, 0x52, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x58, 0x00, 0x60, 0x02, 0x32, 0x5e, 0x14, 0x16, 0x5a, 0x63, 0x63, 0x61, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x08, 0x00, 0x63, 0x02, 0x01, 0x5e, 0x50, 0x16, 0x5a, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x63, 0x00, 0x00, 0x4b, 0x50, 0x4b, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x1f, 0x08, 0x09, 0x62, 0x0d, 0x26, 0x18, 0x18, 0x48, 0x41, 0x4d, 0x4d, 0x20, 0x4f, 0x52, 0x47, 0x37, 0x20 }}, {{ 0x63, 0x38, 0x00, 0x63, 0x63, 0x00, 0x00, 0x00, 0x27, 0x63, 0x63, 0x0c, 0x3b, 0x00, 0x63, 0x12, 0x00, 0x63, 0x2a, 0x47, 0x63, 0x63, 0x63, 0x63, 0x00, 0x0f, 0x00, 0x00, 0x04, 0x3b, 0x00, 0x63, 0x00, 0x00, 0x63, 0x2a, 0x47, 0x63, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x04, 0x3b, 0x01, 0x63, 0x02, 0x63, 0x63, 0x2a, 0x47, 0x63, 0x63, 0x63, 0x63, 0x00, 0x0f, 0x00, 0x00, 0x04, 0x3b, 0x00, 0x63, 0x02, 0x01, 0x63, 0x2a, 0x47, 0x63, 0x63, 0x63, 0x63, 0x00, 0x0f, 0x00, 0x00, 0x04, 0x33, 0x00, 0x63, 0x02, 0x00, 0x63, 0x2a, 0x47, 0x63, 0x63, 0x63, 0x63, 0x00, 0x0f, 0x00, 0x00, 0x04, 0x3b, 0x00, 0x63, 0x00, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x1f, 0x08, 0x2e, 0x00, 0x00, 0x63, 0x19, 0x18, 0x43, 0x4c, 0x49, 0x43, 0x2e, 0x4f, 0x52, 0x47, 0x44, 0x57 }}, {{ 0x63, 0x2a, 0x03, 0x49, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x42, 0x0c, 0x58, 0x06, 0x00, 0x63, 0x39, 0x2d, 0x42, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x42, 0x0c, 0x58, 0x0c, 0x00, 0x63, 0x63, 0x03, 0x42, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x42, 0x0c, 0x63, 0x02, 0x00, 0x63, 0x63, 0x03, 0x42, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x32, 0x0c, 0x63, 0x04, 0x00, 0x62, 0x2a, 0x03, 0x49, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x32, 0x0c, 0x58, 0x0c, 0x00, 0x62, 0x63, 0x03, 0x42, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x32, 0x0c, 0x58, 0x08, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x1f, 0x03, 0x2f, 0x00, 0x00, 0x00, 0x30, 0x18, 0x4a, 0x4f, 0x72, 0x67, 0x20, 0x43, 0x6f, 0x6d, 0x62, 0x6f }}, {{ 0x3f, 0x0f, 0x62, 0x2e, 0x62, 0x63, 0x62, 0x00, 0x0f, 0x00, 0x0e, 0x04, 0x4c, 0x14, 0x51, 0x10, 0x00, 0x33, 0x0f, 0x62, 0x2e, 0x61, 0x63, 0x62, 0x00, 0x28, 0x30, 0x06, 0x00, 0x34, 0x00, 0x57, 0x08, 0x00, 0x3b, 0x0f, 0x62, 0x4d, 0x62, 0x63, 0x62, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x14, 0x3e, 0x0e, 0x00, 0x3b, 0x0f, 0x62, 0x33, 0x62, 0x63, 0x62, 0x00, 0x00, 0x00, 0x00, 0x00, 0x34, 0x00, 0x5b, 0x02, 0x00, 0x63, 0x50, 0x62, 0x2e, 0x61, 0x63, 0x62, 0x00, 0x0f, 0x00, 0x32, 0x04, 0x3c, 0x00, 0x5e, 0x00, 0x00, 0x33, 0x0f, 0x62, 0x2e, 0x61, 0x63, 0x62, 0x00, 0x0b, 0x4e, 0x0e, 0x07, 0x3a, 0x00, 0x63, 0x00, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x04, 0x0d, 0x24, 0x00, 0x00, 0x00, 0x30, 0x18, 0x50, 0x49, 0x50, 0x45, 0x53, 0x20, 0x20, 0x20, 0x20, 0x41 }}, {{ 0x59, 0x50, 0x16, 0x41, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x3c, 0x04, 0x38, 0x00, 0x3a, 0x08, 0x01, 0x58, 0x44, 0x16, 0x4b, 0x3c, 0x63, 0x63, 0x00, 0x00, 0x00, 0x32, 0x04, 0x38, 0x00, 0x50, 0x10, 0x01, 0x49, 0x50, 0x16, 0x32, 0x4f, 0x63, 0x63, 0x00, 0x00, 0x00, 0x14, 0x00, 0x30, 0x00, 0x62, 0x04, 0x01, 0x4c, 0x50, 0x16, 0x3f, 0x63, 0x63, 0x63, 0x00, 0x23, 0x0d, 0x0f, 0x00, 0x3c, 0x00, 0x57, 0x02, 0x01, 0x63, 0x63, 0x39, 0x40, 0x39, 0x34, 0x63, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x38, 0x00, 0x63, 0x08, 0x01, 0x4d, 0x50, 0x4a, 0x30, 0x63, 0x61, 0x63, 0x00, 0x23, 0x0d, 0x0a, 0x03, 0x3a, 0x00, 0x63, 0x00, 0x00, 0x5e, 0x03, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x18, 0x03, 0x23, 0x3f, 0x00, 0x00, 0x18, 0x18, 0x50, 0x49, 0x50, 0x45, 0x53, 0x20, 0x20, 0x20, 0x33, 0x20 }}, {{ 0x61, 0x63, 0x3e, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x17, 0x00, 0x0c, 0x00, 0x61, 0x26, 0x29, 0x63, 0x63, 0x46, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3d, 0x1c, 0x3d, 0x12, 0x00, 0x3b, 0x29, 0x22, 0x47, 0x63, 0x46, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x35, 0x1c, 0x36, 0x12, 0x00, 0x3b, 0x00, 0x00, 0x47, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3d, 0x00, 0x4b, 0x00, 0x00, 0x3b, 0x63, 0x16, 0x47, 0x56, 0x56, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x65, 0x14, 0x3e, 0x06, 0x00, 0x61, 0x21, 0x1c, 0x47, 0x63, 0x5e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x48, 0x08, 0x63, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x10, 0x0f, 0x23, 0x00, 0x00, 0x00, 0x31, 0x18, 0x45, 0x2e, 0x42, 0x41, 0x53, 0x53, 0x20, 0x46, 0x69, 0x78 }}, {{ 0x5e, 0x38, 0x18, 0x37, 0x5d, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x39, 0x1c, 0x55, 0x12, 0x00, 0x63, 0x00, 0x00, 0x00, 0x63, 0x00, 0x00, 0x00, 0x34, 0x4b, 0x00, 0x00, 0x3f, 0x0c, 0x3e, 0x00, 0x00, 0x5a, 0x2a, 0x07, 0x37, 0x5a, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3d, 0x14, 0x5d, 0x0a, 0x00, 0x58, 0x60, 0x20, 0x1e, 0x4f, 0x41, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3e, 0x0c, 0x63, 0x00, 0x00, 0x63, 0x14, 0x00, 0x00, 0x63, 0x00, 0x00, 0x00, 0x29, 0x00, 0x00, 0x00, 0x3f, 0x00, 0x50, 0x00, 0x00, 0x5f, 0x3e, 0x11, 0x3a, 0x63, 0x5f, 0x20, 0x00, 0x24, 0x39, 0x0e, 0x03, 0x3f, 0x00, 0x63, 0x00, 0x00, 0x5e, 0x43, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x0f, 0x0f, 0x23, 0x00, 0x00, 0x00, 0x30, 0x0c, 0x42, 0x41, 0x53, 0x53, 0x20, 0x20, 0x20, 0x20, 0x31, 0x20 }}, {{ 0x19, 0x32, 0x18, 0x37, 0x60, 0x61, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x43, 0x1c, 0x57, 0x00, 0x00, 0x63, 0x33, 0x00, 0x00, 0x63, 0x4a, 0x00, 0x00, 0x22, 0x00, 0x20, 0x00, 0x3c, 0x08, 0x4b, 0x02, 0x01, 0x50, 0x27, 0x1c, 0x35, 0x5d, 0x39, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x08, 0x63, 0x00, 0x00, 0x49, 0x19, 0x20, 0x1e, 0x61, 0x4e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x73, 0x0c, 0x44, 0x02, 0x00, 0x1c, 0x25, 0x2a, 0x32, 0x63, 0x00, 0x00, 0x00, 0x29, 0x00, 0x23, 0x00, 0x39, 0x08, 0x50, 0x00, 0x03, 0x4b, 0x25, 0x12, 0x3f, 0x63, 0x46, 0x00, 0x00, 0x30, 0x00, 0x20, 0x00, 0x3b, 0x08, 0x63, 0x00, 0x01, 0x5e, 0x43, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x10, 0x07, 0x1f, 0x21, 0x00, 0x00, 0x28, 0x0c, 0x42, 0x41, 0x53, 0x53, 0x20, 0x20, 0x20, 0x20, 0x32, 0x20 }}, {{ 0x62, 0x2b, 0x63, 0x3c, 0x63, 0x00, 0x00, 0x00, 0x14, 0x00, 0x0e, 0x00, 0x38, 0x04, 0x60, 0x00, 0x00, 0x62, 0x2a, 0x63, 0x3c, 0x63, 0x00, 0x00, 0x00, 0x14, 0x00, 0x28, 0x00, 0x38, 0x00, 0x48, 0x04, 0x00, 0x62, 0x15, 0x63, 0x3c, 0x63, 0x00, 0x00, 0x00, 0x2b, 0x00, 0x00, 0x00, 0x38, 0x00, 0x63, 0x02, 0x00, 0x62, 0x63, 0x63, 0x5a, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x00, 0x62, 0x63, 0x63, 0x5a, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x00, 0x62, 0x63, 0x63, 0x5a, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x0a, 0x0c, 0x06, 0x00, 0x10, 0x1d, 0x18, 0x18, 0x46, 0x55, 0x4e, 0x4b, 0x20, 0x42, 0x41, 0x53, 0x53, 0x20 }}, {{ 0x4e, 0x4b, 0x34, 0x37, 0x63, 0x49, 0x00, 0x00, 0x00, 0x5e, 0x00, 0x03, 0x39, 0x1c, 0x5b, 0x16, 0x00, 0x5e, 0x00, 0x00, 0x00, 0x63, 0x00, 0x00, 0x00, 0x1d, 0x1c, 0x63, 0x00, 0x3f, 0x0c, 0x41, 0x02, 0x00, 0x42, 0x2e, 0x2d, 0x37, 0x63, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 0x14, 0x5d, 0x0e, 0x00, 0x3a, 0x41, 0x0a, 0x1e, 0x63, 0x48, 0x00, 0x00, 0x32, 0x12, 0x00, 0x00, 0x3e, 0x14, 0x58, 0x06, 0x00, 0x28, 0x3c, 0x36, 0x24, 0x3b, 0x63, 0x5a, 0x00, 0x1a, 0x00, 0x00, 0x00, 0x3f, 0x04, 0x55, 0x00, 0x00, 0x35, 0x53, 0x11, 0x3e, 0x41, 0x63, 0x00, 0x00, 0x24, 0x39, 0x0e, 0x03, 0x3d, 0x08, 0x63, 0x00, 0x00, 0x5e, 0x43, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x0f, 0x08, 0x23, 0x00, 0x00, 0x00, 0x30, 0x0c, 0x46, 0x55, 0x4e, 0x4b, 0x2d, 0x42, 0x41, 0x53, 0x53, 0x31 }}, {{ 0x63, 0x2e, 0x00, 0x21, 0x63, 0x5d, 0x57, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x36, 0x08, 0x00, 0x63, 0x2e, 0x00, 0x20, 0x63, 0x5d, 0x57, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x4f, 0x02, 0x00, 0x63, 0x2e, 0x00, 0x2c, 0x63, 0x5d, 0x57, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x54, 0x02, 0x00, 0x63, 0x21, 0x1f, 0x2c, 0x63, 0x5c, 0x00, 0x00, 0x33, 0x00, 0x0a, 0x00, 0x50, 0x0c, 0x63, 0x01, 0x26, 0x63, 0x2e, 0x00, 0x2b, 0x63, 0x5d, 0x57, 0x00, 0x00, 0x00, 0x00, 0x00, 0x68, 0x00, 0x54, 0x04, 0x00, 0x63, 0x21, 0x1f, 0x2c, 0x63, 0x5c, 0x00, 0x00, 0x33, 0x00, 0x0a, 0x08, 0x48, 0x10, 0x63, 0x01, 0x38, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x01, 0x0f, 0x26, 0x14, 0x05, 0x00, 0x28, 0x18, 0x61, 0x2d, 0x68, 0x61, 0x20, 0x54, 0x4f, 0x4d, 0x20, 0x20 }}, {{ 0x62, 0x03, 0x00, 0x2e, 0x63, 0x5a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x04, 0x52, 0x02, 0x00, 0x62, 0x0f, 0x00, 0x11, 0x63, 0x5a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x04, 0x46, 0x02, 0x00, 0x62, 0x08, 0x00, 0x1b, 0x63, 0x5a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x50, 0x02, 0x00, 0x62, 0x11, 0x00, 0x31, 0x63, 0x5a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x08, 0x63, 0x01, 0x00, 0x62, 0x1e, 0x00, 0x27, 0x63, 0x54, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x08, 0x54, 0x02, 0x00, 0x62, 0x63, 0x63, 0x37, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x08, 0x63, 0x01, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x01, 0x07, 0x23, 0x00, 0x00, 0x00, 0x31, 0x18, 0x53, 0x4b, 0x49, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20 }}, {{ 0x3a, 0x4c, 0x0a, 0x1c, 0x63, 0x5c, 0x5c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x58, 0x00, 0x56, 0x02, 0x00, 0x38, 0x49, 0x0a, 0x2d, 0x63, 0x5f, 0x5f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x52, 0x02, 0x00, 0x2f, 0x4a, 0x0a, 0x31, 0x63, 0x62, 0x62, 0x00, 0x00, 0x00, 0x00, 0x00, 0x58, 0x00, 0x4c, 0x02, 0x00, 0x63, 0x0f, 0x0a, 0x33, 0x63, 0x5c, 0x5c, 0x00, 0x1b, 0x14, 0x00, 0x03, 0x68, 0x00, 0x63, 0x02, 0x00, 0x42, 0x0d, 0x07, 0x2d, 0x63, 0x63, 0x63, 0x00, 0x0f, 0x07, 0x00, 0x00, 0x08, 0x00, 0x51, 0x02, 0x00, 0x63, 0x38, 0x0a, 0x33, 0x62, 0x62, 0x62, 0x00, 0x1b, 0x14, 0x00, 0x03, 0x08, 0x00, 0x63, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x01, 0x07, 0x1c, 0x16, 0x00, 0x00, 0x18, 0x18, 0x4a, 0x55, 0x4d, 0x50, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20 }}, {{ 0x2f, 0x15, 0x21, 0x1f, 0x51, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x5e, 0x02, 0x00, 0x2d, 0x18, 0x20, 0x26, 0x51, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x51, 0x02, 0x00, 0x2d, 0x17, 0x20, 0x0b, 0x51, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x46, 0x02, 0x00, 0x30, 0x38, 0x0a, 0x2d, 0x63, 0x63, 0x61, 0x00, 0x19, 0x00, 0x05, 0x00, 0x70, 0x00, 0x63, 0x02, 0x00, 0x2d, 0x17, 0x1f, 0x1a, 0x51, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x54, 0x02, 0x00, 0x3c, 0x37, 0x0a, 0x2d, 0x63, 0x63, 0x61, 0x00, 0x19, 0x00, 0x05, 0x00, 0x00, 0x00, 0x63, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x01, 0x0f, 0x0c, 0x3e, 0x0a, 0x00, 0x29, 0x0c, 0x46, 0x49, 0x4c, 0x54, 0x45, 0x52, 0x20, 0x45, 0x47, 0x20 }}, {{ 0x62, 0x63, 0x63, 0x28, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x4a, 0x02, 0x00, 0x62, 0x63, 0x63, 0x28, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x47, 0x02, 0x00, 0x62, 0x63, 0x63, 0x28, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x03, 0x4a, 0x02, 0x00, 0x62, 0x63, 0x63, 0x34, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x63, 0x01, 0x00, 0x62, 0x63, 0x63, 0x28, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x03, 0x4f, 0x04, 0x00, 0x62, 0x63, 0x63, 0x34, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x63, 0x01, 0x0e, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x01, 0x07, 0x23, 0x00, 0x00, 0x00, 0x31, 0x18, 0x2d, 0x2d, 0x41, 0x4e, 0x41, 0x4c, 0x4f, 0x47, 0x2d, 0x2d }}, {{ 0x55, 0x3f, 0x18, 0x19, 0x63, 0x60, 0x5c, 0x00, 0x36, 0x00, 0x00, 0x00, 0x33, 0x04, 0x51, 0x10, 0x00, 0x63, 0x3c, 0x27, 0x2d, 0x63, 0x60, 0x00, 0x00, 0x36, 0x00, 0x00, 0x00, 0x39, 0x08, 0x63, 0x08, 0x00, 0x25, 0x20, 0x18, 0x24, 0x63, 0x60, 0x5c, 0x00, 0x36, 0x00, 0x00, 0x00, 0x2b, 0x08, 0x55, 0x04, 0x00, 0x63, 0x22, 0x14, 0x23, 0x63, 0x5c, 0x59, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x4f, 0x08, 0x00, 0x63, 0x2e, 0x00, 0x1c, 0x63, 0x5d, 0x57, 0x00, 0x63, 0x00, 0x00, 0x00, 0x09, 0x08, 0x58, 0x04, 0x00, 0x2f, 0x21, 0x14, 0x23, 0x63, 0x5c, 0x54, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x04, 0x63, 0x29, 0x1f, 0x5e, 0x43, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x12, 0x0f, 0x26, 0x21, 0x11, 0x47, 0x28, 0x0c, 0x4f, 0x52, 0x43, 0x48, 0x45, 0x53, 0x54, 0x52, 0x41, 0x4c }}, {{ 0x63, 0x2a, 0x17, 0x47, 0x63, 0x38, 0x38, 0x00, 0x1b, 0x00, 0x2d, 0x07, 0x38, 0x00, 0x4c, 0x04, 0x00, 0x63, 0x4c, 0x63, 0x47, 0x63, 0x58, 0x60, 0x00, 0x27, 0x00, 0x0e, 0x0f, 0x38, 0x00, 0x62, 0x02, 0x00, 0x63, 0x4c, 0x63, 0x47, 0x63, 0x58, 0x60, 0x00, 0x27, 0x00, 0x0e, 0x0f, 0x38, 0x00, 0x63, 0x02, 0x00, 0x63, 0x4c, 0x63, 0x47, 0x63, 0x58, 0x60, 0x00, 0x27, 0x00, 0x0e, 0x0f, 0x38, 0x00, 0x63, 0x02, 0x00, 0x63, 0x2a, 0x17, 0x47, 0x63, 0x38, 0x38, 0x00, 0x1b, 0x00, 0x2d, 0x07, 0x38, 0x00, 0x4e, 0x04, 0x00, 0x63, 0x4c, 0x63, 0x47, 0x63, 0x58, 0x60, 0x00, 0x27, 0x00, 0x0e, 0x0f, 0x38, 0x00, 0x5d, 0x02, 0x00, 0x54, 0x5f, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x15, 0x0f, 0x25, 0x00, 0x00, 0x00, 0x38, 0x18, 0x53, 0x59, 0x4e, 0x2d, 0x4c, 0x45, 0x41, 0x44, 0x20, 0x32 }}, {{ 0x63, 0x2a, 0x2d, 0x47, 0x63, 0x38, 0x38, 0x00, 0x1b, 0x00, 0x2d, 0x07, 0x38, 0x00, 0x4c, 0x02, 0x00, 0x63, 0x4c, 0x63, 0x47, 0x63, 0x58, 0x60, 0x00, 0x27, 0x00, 0x0e, 0x0f, 0x38, 0x00, 0x62, 0x02, 0x00, 0x63, 0x4c, 0x63, 0x47, 0x63, 0x58, 0x60, 0x00, 0x27, 0x00, 0x0e, 0x0f, 0x38, 0x00, 0x63, 0x02, 0x00, 0x63, 0x4c, 0x63, 0x47, 0x63, 0x58, 0x60, 0x00, 0x27, 0x00, 0x0e, 0x0f, 0x38, 0x00, 0x63, 0x02, 0x00, 0x63, 0x2a, 0x35, 0x47, 0x63, 0x38, 0x38, 0x00, 0x1b, 0x00, 0x2d, 0x07, 0x38, 0x00, 0x4e, 0x02, 0x00, 0x63, 0x4c, 0x63, 0x47, 0x63, 0x58, 0x60, 0x00, 0x27, 0x00, 0x0e, 0x0f, 0x38, 0x00, 0x5d, 0x02, 0x00, 0x54, 0x5f, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x15, 0x0f, 0x25, 0x00, 0x00, 0x00, 0x48, 0x18, 0x53, 0x59, 0x4e, 0x2d, 0x4c, 0x45, 0x41, 0x44, 0x20, 0x34 }}, {{ 0x48, 0x3c, 0x63, 0x17, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x04, 0x4c, 0x02, 0x00, 0x20, 0x00, 0x00, 0x1a, 0x63, 0x63, 0x63, 0x00, 0x3f, 0x28, 0x00, 0x00, 0x38, 0x00, 0x50, 0x01, 0x48, 0x38, 0x0e, 0x00, 0x35, 0x63, 0x60, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x0c, 0x63, 0x01, 0x02, 0x63, 0x2e, 0x00, 0x1c, 0x63, 0x5d, 0x57, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x04, 0x38, 0x02, 0x00, 0x63, 0x2e, 0x00, 0x1c, 0x63, 0x5d, 0x57, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x08, 0x57, 0x02, 0x00, 0x2e, 0x21, 0x14, 0x2b, 0x63, 0x5c, 0x54, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x10, 0x63, 0x01, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x0a, 0x0f, 0x23, 0x00, 0x32, 0x00, 0x11, 0x18, 0x43, 0x72, 0x61, 0x7a, 0x79, 0x34, 0x55, 0x20, 0x20, 0x31 }}, {{ 0x5c, 0x00, 0x1d, 0x0a, 0x63, 0x5d, 0x00, 0x00, 0x27, 0x14, 0x07, 0x0f, 0x60, 0x01, 0x43, 0x06, 0x00, 0x49, 0x01, 0x0a, 0x00, 0x63, 0x47, 0x00, 0x00, 0x23, 0x08, 0x0a, 0x00, 0x00, 0x00, 0x4a, 0x02, 0x00, 0x47, 0x0a, 0x0a, 0x2a, 0x63, 0x5c, 0x00, 0x00, 0x31, 0x06, 0x0c, 0x0c, 0x20, 0x00, 0x43, 0x02, 0x01, 0x2e, 0x0b, 0x01, 0x2a, 0x63, 0x5c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x04, 0x61, 0x02, 0x00, 0x40, 0x07, 0x0a, 0x20, 0x63, 0x4e, 0x00, 0x00, 0x29, 0x04, 0x05, 0x0f, 0x70, 0x00, 0x4a, 0x02, 0x01, 0x2e, 0x1b, 0x03, 0x2a, 0x63, 0x5c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x04, 0x61, 0x29, 0x24, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x01, 0x0f, 0x2f, 0x22, 0x06, 0x04, 0x19, 0x18, 0x42, 0x4f, 0x4d, 0x42, 0x41, 0x53, 0x54, 0x20, 0x31, 0x44 }}, {{ 0x63, 0x3f, 0x1e, 0x00, 0x63, 0x5f, 0x00, 0x00, 0x23, 0x00, 0x00, 0x00, 0x74, 0x07, 0x55, 0x10, 0x00, 0x63, 0x27, 0x24, 0x1f, 0x63, 0x5f, 0x00, 0x00, 0x23, 0x00, 0x00, 0x00, 0x71, 0x00, 0x41, 0x10, 0x00, 0x63, 0x3a, 0x35, 0x00, 0x63, 0x58, 0x5c, 0x00, 0x23, 0x00, 0x00, 0x00, 0x71, 0x01, 0x55, 0x02, 0x00, 0x63, 0x63, 0x13, 0x27, 0x63, 0x63, 0x00, 0x00, 0x23, 0x00, 0x00, 0x0c, 0x72, 0x09, 0x63, 0x02, 0x00, 0x63, 0x30, 0x1e, 0x10, 0x63, 0x5c, 0x00, 0x00, 0x16, 0x00, 0x00, 0x01, 0x50, 0x14, 0x63, 0x00, 0x00, 0x5d, 0x0e, 0x0a, 0x2d, 0x63, 0x5b, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x63, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x00, 0x0f, 0x27, 0x00, 0x00, 0x00, 0x20, 0x0c, 0x44, 0x4f, 0x55, 0x42, 0x4c, 0x45, 0x20, 0x20, 0x32, 0x20 }}, {{ 0x5f, 0x30, 0x1c, 0x18, 0x5e, 0x4f, 0x00, 0x00, 0x3c, 0x36, 0x00, 0x01, 0x47, 0x0c, 0x59, 0x06, 0x00, 0x5f, 0x23, 0x17, 0x1c, 0x63, 0x46, 0x00, 0x00, 0x34, 0x00, 0x23, 0x03, 0x5c, 0x10, 0x4f, 0x06, 0x00, 0x4a, 0x63, 0x17, 0x27, 0x51, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1b, 0x14, 0x63, 0x02, 0x00, 0x5f, 0x32, 0x2d, 0x0a, 0x63, 0x63, 0x00, 0x00, 0x3a, 0x00, 0x25, 0x00, 0x0b, 0x00, 0x5b, 0x04, 0x00, 0x5f, 0x2e, 0x20, 0x0c, 0x63, 0x63, 0x00, 0x00, 0x34, 0x08, 0x00, 0x03, 0x2b, 0x0c, 0x4c, 0x04, 0x00, 0x20, 0x5f, 0x1d, 0x25, 0x41, 0x63, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, 0x65, 0x14, 0x63, 0x02, 0x00, 0x5e, 0x43, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x02, 0x0e, 0x22, 0x21, 0x00, 0x00, 0x19, 0x18, 0x44, 0x4f, 0x55, 0x42, 0x4c, 0x45, 0x48, 0x41, 0x52, 0x50 }}, {{ 0x2d, 0x63, 0x29, 0x2b, 0x45, 0x63, 0x00, 0x00, 0x2e, 0x63, 0x00, 0x03, 0x38, 0x08, 0x4b, 0x08, 0x00, 0x2d, 0x63, 0x29, 0x2b, 0x45, 0x63, 0x00, 0x00, 0x2e, 0x5a, 0x00, 0x03, 0x38, 0x04, 0x5e, 0x04, 0x00, 0x63, 0x2d, 0x18, 0x1e, 0x63, 0x63, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x3b, 0x00, 0x4b, 0x02, 0x00, 0x63, 0x2d, 0x18, 0x1e, 0x63, 0x63, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x73, 0x00, 0x53, 0x02, 0x00, 0x63, 0x2d, 0x18, 0x1e, 0x63, 0x63, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x3b, 0x08, 0x55, 0x02, 0x00, 0x63, 0x2d, 0x18, 0x1e, 0x63, 0x63, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x60, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x1f, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x70, 0x24, 0x43, 0x45, 0x4c, 0x45, 0x53, 0x54, 0x41, 0x20, 0x20, 0x20 }}, {{ 0x3a, 0x09, 0x12, 0x16, 0x63, 0x34, 0x39, 0x00, 0x23, 0x00, 0x00, 0x00, 0x01, 0x00, 0x4e, 0x00, 0x00, 0x2a, 0x24, 0x00, 0x1d, 0x63, 0x63, 0x00, 0x00, 0x1f, 0x00, 0x00, 0x00, 0x03, 0x00, 0x63, 0x00, 0x00, 0x63, 0x30, 0x1a, 0x2a, 0x63, 0x51, 0x00, 0x00, 0x27, 0x00, 0x00, 0x00, 0x18, 0x08, 0x4b, 0x12, 0x00, 0x59, 0x20, 0x22, 0x21, 0x63, 0x5c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x51, 0x00, 0x63, 0x04, 0x00, 0x37, 0x1a, 0x24, 0x2a, 0x63, 0x5d, 0x4b, 0x00, 0x2e, 0x00, 0x0f, 0x00, 0x71, 0x04, 0x55, 0x00, 0x00, 0x39, 0x63, 0x63, 0x24, 0x63, 0x63, 0x63, 0x00, 0x31, 0x63, 0x00, 0x00, 0x71, 0x00, 0x63, 0x00, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x05, 0x08, 0x27, 0x16, 0x05, 0x00, 0x31, 0x18, 0x44, 0x4f, 0x55, 0x42, 0x4c, 0x45, 0x20, 0x20, 0x33, 0x20 }}, {{ 0x63, 0x52, 0x4b, 0x00, 0x63, 0x57, 0x00, 0x00, 0x29, 0x1e, 0x00, 0x00, 0x38, 0x04, 0x63, 0x3f, 0x29, 0x63, 0x40, 0x00, 0x08, 0x55, 0x30, 0x00, 0x00, 0x25, 0x00, 0x19, 0x00, 0x38, 0x10, 0x54, 0x06, 0x00, 0x5a, 0x43, 0x15, 0x52, 0x63, 0x55, 0x00, 0x00, 0x12, 0x00, 0x02, 0x04, 0x38, 0x10, 0x4e, 0x0e, 0x00, 0x63, 0x1e, 0x1a, 0x2e, 0x63, 0x50, 0x00, 0x00, 0x22, 0x17, 0x00, 0x03, 0x38, 0x13, 0x52, 0x00, 0x00, 0x4b, 0x2d, 0x24, 0x13, 0x63, 0x57, 0x00, 0x00, 0x00, 0x00, 0x12, 0x03, 0x2a, 0x18, 0x3a, 0x16, 0x02, 0x63, 0x20, 0x0e, 0x26, 0x63, 0x50, 0x00, 0x00, 0x2b, 0x63, 0x00, 0x03, 0x3a, 0x07, 0x63, 0x01, 0x00, 0x5e, 0x43, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x0f, 0x0f, 0x18, 0x00, 0x00, 0x00, 0x03, 0x24, 0x4b, 0x41, 0x52, 0x49, 0x4d, 0x42, 0x41, 0x21, 0x21, 0x21 }}, {{ 0x53, 0x33, 0x0f, 0x4f, 0x63, 0x4b, 0x00, 0x00, 0x2c, 0x01, 0x00, 0x00, 0x39, 0x0c, 0x47, 0x26, 0x00, 0x56, 0x3d, 0x1e, 0x2d, 0x63, 0x50, 0x00, 0x00, 0x20, 0x15, 0x00, 0x03, 0x3f, 0x14, 0x56, 0x0a, 0x00, 0x63, 0x44, 0x20, 0x28, 0x63, 0x58, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x14, 0x60, 0x00, 0x00, 0x4b, 0x39, 0x20, 0x4e, 0x59, 0x48, 0x00, 0x00, 0x32, 0x00, 0x00, 0x00, 0x5d, 0x04, 0x5c, 0x00, 0x32, 0x31, 0x4e, 0x18, 0x27, 0x3b, 0x5c, 0x00, 0x00, 0x1a, 0x00, 0x00, 0x00, 0x3c, 0x08, 0x4f, 0x00, 0x00, 0x62, 0x47, 0x1b, 0x35, 0x41, 0x63, 0x00, 0x00, 0x24, 0x39, 0x04, 0x03, 0x3d, 0x08, 0x63, 0x02, 0x00, 0x63, 0x63, 0x5f, 0x3c, 0x30, 0x32, 0x32, 0x32, 0x0f, 0x08, 0x23, 0x00, 0x00, 0x00, 0x30, 0x0c, 0x47, 0x72, 0x6f, 0x77, 0x6c, 0x65, 0x72, 0x20, 0x20, 0x20 }}, {{ 0x61, 0x14, 0x14, 0x22, 0x63, 0x5a, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x08, 0x42, 0x0a, 0x00, 0x1a, 0x63, 0x14, 0x21, 0x00, 0x5a, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, 0x08, 0x54, 0x04, 0x19, 0x61, 0x14, 0x14, 0x22, 0x63, 0x5a, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x00, 0x43, 0x0c, 0x00, 0x11, 0x63, 0x14, 0x1a, 0x00, 0x5a, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x22, 0x04, 0x51, 0x06, 0x00, 0x61, 0x14, 0x14, 0x22, 0x63, 0x5a, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x04, 0x51, 0x10, 0x00, 0x61, 0x14, 0x14, 0x1a, 0x63, 0x5a, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x00, 0x4b, 0x08, 0x00, 0x5e, 0x43, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x05, 0x0f, 0x3c, 0x45, 0x00, 0x00, 0x3b, 0x18, 0x43, 0x48, 0x49, 0x4d, 0x45, 0x53, 0x20, 0x20, 0x20, 0x20 }}, {{ 0x3c, 0x0a, 0x00, 0x1c, 0x63, 0x50, 0x00, 0x00, 0x2e, 0x32, 0x08, 0x00, 0x72, 0x04, 0x5a, 0x01, 0x40, 0x18, 0x06, 0x00, 0x1e, 0x63, 0x50, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x10, 0x63, 0x04, 0x00, 0x41, 0x0a, 0x00, 0x1c, 0x63, 0x50, 0x00, 0x00, 0x27, 0x22, 0x02, 0x00, 0x3a, 0x04, 0x5a, 0x01, 0x3a, 0x1a, 0x00, 0x00, 0x21, 0x63, 0x5f, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x39, 0x10, 0x63, 0x04, 0x00, 0x3c, 0x0a, 0x00, 0x1c, 0x63, 0x50, 0x00, 0x00, 0x20, 0x38, 0x06, 0x00, 0x02, 0x04, 0x5a, 0x01, 0x4e, 0x18, 0x06, 0x00, 0x1e, 0x63, 0x50, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x69, 0x10, 0x63, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x32, 0x32, 0x32, 0x32, 0x04, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x53, 0x6f, 0x72, 0x74, 0x6f, 0x66, 0x76, 0x6f, 0x63, 0x65 }}, {{ 0x63, 0x48, 0x30, 0x11, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x42, 0x02, 0x00, 0x23, 0x15, 0x24, 0x3f, 0x63, 0x5a, 0x55, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x04, 0x2e, 0x07, 0x2b, 0x48, 0x38, 0x29, 0x0c, 0x30, 0x43, 0x43, 0x09, 0x00, 0x00, 0x00, 0x00, 0x50, 0x04, 0x63, 0x02, 0x02, 0x2a, 0x14, 0x35, 0x39, 0x63, 0x5e, 0x61, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x0f, 0x63, 0x02, 0x00, 0x45, 0x53, 0x50, 0x62, 0x45, 0x51, 0x60, 0x63, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x3e, 0x02, 0x00, 0x33, 0x37, 0x35, 0x40, 0x3d, 0x58, 0x55, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x61, 0x02, 0x00, 0x12, 0x19, 0x63, 0x63, 0x31, 0x31, 0x32, 0x32, 0x00, 0x0c, 0x27, 0x23, 0x5b, 0x02, 0x18, 0x18, 0x46, 0x45, 0x4d, 0x2e, 0x20, 0x43, 0x48, 0x4f, 0x49, 0x52 }}, {{ 0x48, 0x4c, 0x0a, 0x20, 0x63, 0x5c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x46, 0x10, 0x00, 0x4c, 0x49, 0x0a, 0x1c, 0x63, 0x5c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x42, 0x04, 0x00, 0x31, 0x4a, 0x0a, 0x20, 0x62, 0x62, 0x24, 0x00, 0x62, 0x00, 0x00, 0x00, 0x38, 0x00, 0x4c, 0x04, 0x00, 0x33, 0x0f, 0x0a, 0x2f, 0x63, 0x5c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x68, 0x00, 0x5c, 0x04, 0x00, 0x51, 0x0d, 0x07, 0x19, 0x63, 0x5c, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x4a, 0x04, 0x00, 0x30, 0x38, 0x0a, 0x2f, 0x62, 0x62, 0x24, 0x00, 0x62, 0x00, 0x00, 0x00, 0x38, 0x00, 0x5c, 0x04, 0x00, 0x54, 0x5f, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x01, 0x0f, 0x1e, 0x51, 0x08, 0x00, 0x28, 0x0c, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x53, 0x20, 0x32, 0x20 }}, {{ 0x63, 0x2a, 0x32, 0x3b, 0x63, 0x63, 0x63, 0x00, 0x21, 0x00, 0x2d, 0x03, 0x60, 0x00, 0x2c, 0x0f, 0x1f, 0x63, 0x31, 0x37, 0x2e, 0x63, 0x5a, 0x50, 0x00, 0x26, 0x00, 0x16, 0x00, 0x52, 0x08, 0x4d, 0x10, 0x00, 0x3d, 0x1e, 0x00, 0x23, 0x63, 0x62, 0x5a, 0x00, 0x2e, 0x04, 0x0d, 0x03, 0x3b, 0x00, 0x57, 0x04, 0x00, 0x35, 0x12, 0x11, 0x38, 0x63, 0x5f, 0x5c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x32, 0x1c, 0x63, 0x04, 0x00, 0x63, 0x00, 0x00, 0x1e, 0x63, 0x62, 0x61, 0x00, 0x27, 0x01, 0x06, 0x03, 0x01, 0x00, 0x4c, 0x04, 0x00, 0x29, 0x19, 0x16, 0x2d, 0x63, 0x61, 0x56, 0x00, 0x00, 0x00, 0x00, 0x00, 0x34, 0x08, 0x63, 0x01, 0x0a, 0x57, 0x5e, 0x00, 0x00, 0x30, 0x33, 0x32, 0x32, 0x01, 0x07, 0x23, 0x00, 0x0b, 0x00, 0x19, 0x0c, 0x56, 0x49, 0x4f, 0x4c, 0x49, 0x4e, 0x53, 0x20, 0x20, 0x41 }}, {{ 0x35, 0x40, 0x2c, 0x36, 0x46, 0x51, 0x40, 0x00, 0x37, 0x19, 0x00, 0x03, 0x3a, 0x08, 0x3a, 0x18, 0x00, 0x35, 0x43, 0x26, 0x36, 0x56, 0x5c, 0x54, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x08, 0x4f, 0x0a, 0x00, 0x60, 0x13, 0x14, 0x36, 0x63, 0x5c, 0x59, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x08, 0x4b, 0x02, 0x00, 0x32, 0x2b, 0x23, 0x29, 0x5e, 0x61, 0x61, 0x00, 0x2c, 0x50, 0x3c, 0x03, 0x3a, 0x14, 0x63, 0x02, 0x00, 0x59, 0x43, 0x0f, 0x33, 0x52, 0x5a, 0x57, 0x00, 0x00, 0x00, 0x00, 0x00, 0x39, 0x04, 0x56, 0x02, 0x00, 0x34, 0x1e, 0x19, 0x2b, 0x5e, 0x62, 0x61, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x04, 0x63, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x0e, 0x0f, 0x21, 0x0a, 0x24, 0x00, 0x18, 0x0c, 0x43, 0x45, 0x4c, 0x4c, 0x4f, 0x53, 0x20, 0x20, 0x20, 0x42 }}, {{ 0x49, 0x46, 0x3c, 0x00, 0x63, 0x63, 0x61, 0x00, 0x20, 0x00, 0x15, 0x00, 0x3b, 0x00, 0x2f, 0x14, 0x00, 0x55, 0x46, 0x61, 0x00, 0x63, 0x41, 0x3c, 0x00, 0x20, 0x00, 0x00, 0x00, 0x29, 0x00, 0x36, 0x10, 0x00, 0x5f, 0x5c, 0x1c, 0x3c, 0x63, 0x5a, 0x00, 0x00, 0x30, 0x00, 0x3c, 0x00, 0x3e, 0x01, 0x3b, 0x0c, 0x00, 0x62, 0x57, 0x00, 0x00, 0x57, 0x56, 0x00, 0x00, 0x20, 0x00, 0x15, 0x00, 0x3b, 0x08, 0x54, 0x08, 0x00, 0x5f, 0x5f, 0x00, 0x00, 0x63, 0x60, 0x59, 0x00, 0x20, 0x00, 0x00, 0x00, 0x33, 0x06, 0x44, 0x04, 0x00, 0x3c, 0x00, 0x0c, 0x46, 0x63, 0x5a, 0x61, 0x00, 0x20, 0x00, 0x00, 0x00, 0x41, 0x08, 0x60, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x11, 0x0d, 0x23, 0x32, 0x08, 0x63, 0x38, 0x18, 0x43, 0x6c, 0x61, 0x72, 0x69, 0x6e, 0x65, 0x74, 0x20, 0x20 }}, {{ 0x63, 0x40, 0x62, 0x3d, 0x63, 0x43, 0x34, 0x00, 0x2e, 0x00, 0x00, 0x0c, 0x58, 0x08, 0x53, 0x02, 0x35, 0x41, 0x26, 0x00, 0x3d, 0x63, 0x00, 0x00, 0x00, 0x35, 0x00, 0x2b, 0x00, 0x38, 0x00, 0x38, 0x04, 0x00, 0x3d, 0x19, 0x19, 0x3c, 0x63, 0x63, 0x61, 0x00, 0x3c, 0x0a, 0x0a, 0x00, 0x3b, 0x00, 0x00, 0x04, 0x00, 0x35, 0x26, 0x4b, 0x3d, 0x58, 0x2c, 0x18, 0x00, 0x2e, 0x00, 0x00, 0x03, 0x20, 0x01, 0x4c, 0x02, 0x00, 0x63, 0x61, 0x3e, 0x36, 0x63, 0x63, 0x5a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x5c, 0x08, 0x4b, 0x02, 0x00, 0x3d, 0x43, 0x46, 0x41, 0x5d, 0x59, 0x62, 0x00, 0x29, 0x00, 0x00, 0x00, 0x28, 0x08, 0x62, 0x02, 0x00, 0x5e, 0x43, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x0f, 0x05, 0x1e, 0x17, 0x08, 0x0d, 0x10, 0x18, 0x46, 0x4c, 0x55, 0x54, 0x45, 0x20, 0x20, 0x20, 0x31, 0x20 }}, {{ 0x32, 0x21, 0x12, 0x2e, 0x61, 0x5f, 0x50, 0x00, 0x22, 0x02, 0x00, 0x03, 0x3a, 0x04, 0x54, 0x04, 0x00, 0x39, 0x34, 0x00, 0x39, 0x62, 0x5f, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x10, 0x63, 0x04, 0x00, 0x39, 0x34, 0x00, 0x39, 0x62, 0x5f, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x14, 0x63, 0x04, 0x00, 0x39, 0x34, 0x00, 0x39, 0x62, 0x5f, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x10, 0x63, 0x04, 0x00, 0x32, 0x4b, 0x0a, 0x1e, 0x63, 0x60, 0x24, 0x00, 0x22, 0x0b, 0x00, 0x00, 0x69, 0x04, 0x59, 0x04, 0x00, 0x32, 0x4b, 0x0a, 0x2c, 0x63, 0x5f, 0x24, 0x00, 0x1b, 0x03, 0x00, 0x00, 0x12, 0x10, 0x63, 0x04, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x15, 0x0f, 0x26, 0x1a, 0x00, 0x00, 0x28, 0x0c, 0x50, 0x6f, 0x66, 0x4c, 0x20, 0x42, 0x72, 0x61, 0x73, 0x73 }}, {{ 0x31, 0x63, 0x1c, 0x44, 0x62, 0x62, 0x5b, 0x00, 0x27, 0x36, 0x32, 0x05, 0x3c, 0x08, 0x52, 0x02, 0x00, 0x4d, 0x24, 0x29, 0x47, 0x63, 0x62, 0x62, 0x00, 0x27, 0x00, 0x00, 0x0f, 0x40, 0x08, 0x62, 0x02, 0x00, 0x4d, 0x24, 0x29, 0x47, 0x63, 0x62, 0x62, 0x00, 0x27, 0x00, 0x00, 0x0f, 0x38, 0x08, 0x63, 0x02, 0x00, 0x4d, 0x4c, 0x52, 0x47, 0x63, 0x62, 0x62, 0x00, 0x27, 0x00, 0x00, 0x0f, 0x28, 0x08, 0x63, 0x02, 0x00, 0x3e, 0x33, 0x1d, 0x47, 0x52, 0x5f, 0x60, 0x00, 0x1b, 0x00, 0x07, 0x07, 0x70, 0x00, 0x56, 0x00, 0x00, 0x48, 0x4c, 0x63, 0x47, 0x63, 0x58, 0x60, 0x00, 0x27, 0x00, 0x0e, 0x0f, 0x70, 0x00, 0x62, 0x00, 0x00, 0x54, 0x5f, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x15, 0x0f, 0x25, 0x00, 0x05, 0x00, 0x38, 0x18, 0x42, 0x52, 0x41, 0x53, 0x53, 0x20, 0x20, 0x20, 0x31, 0x20 }}, {{ 0x4d, 0x38, 0x14, 0x46, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 0x00, 0x4f, 0x0e, 0x15, 0x30, 0x37, 0x16, 0x32, 0x62, 0x3d, 0x3e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x46, 0x06, 0x06, 0x42, 0x5c, 0x16, 0x32, 0x35, 0x3d, 0x3e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x4f, 0x02, 0x00, 0x2e, 0x23, 0x16, 0x32, 0x63, 0x56, 0x56, 0x00, 0x00, 0x00, 0x00, 0x00, 0x39, 0x04, 0x4d, 0x02, 0x00, 0x25, 0x22, 0x0f, 0x46, 0x55, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x04, 0x46, 0x02, 0x00, 0x37, 0x18, 0x13, 0x37, 0x63, 0x56, 0x56, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x08, 0x63, 0x02, 0x00, 0x5e, 0x43, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x11, 0x0e, 0x23, 0x00, 0x05, 0x00, 0x30, 0x0c, 0x42, 0x52, 0x41, 0x53, 0x53, 0x20, 0x20, 0x20, 0x33, 0x20 }}, {{ 0x4d, 0x38, 0x14, 0x46, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 0x04, 0x4f, 0x0e, 0x15, 0x30, 0x37, 0x16, 0x32, 0x62, 0x3d, 0x3e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x04, 0x46, 0x06, 0x06, 0x42, 0x5c, 0x16, 0x32, 0x35, 0x3d, 0x3e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x04, 0x4f, 0x02, 0x00, 0x2e, 0x23, 0x16, 0x38, 0x63, 0x56, 0x56, 0x00, 0x00, 0x00, 0x00, 0x00, 0x39, 0x0c, 0x4f, 0x02, 0x00, 0x25, 0x22, 0x0f, 0x40, 0x55, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x08, 0x43, 0x02, 0x00, 0x39, 0x18, 0x13, 0x3c, 0x63, 0x56, 0x56, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x08, 0x63, 0x02, 0x00, 0x5e, 0x43, 0x5f, 0x63, 0x35, 0x31, 0x32, 0x32, 0x11, 0x0f, 0x1f, 0x00, 0x00, 0x00, 0x10, 0x0c, 0x48, 0x4f, 0x52, 0x4e, 0x20, 0x53, 0x45, 0x43, 0x2e, 0x41 }}, {{ 0x62, 0x02, 0x1a, 0x1b, 0x62, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x08, 0x3b, 0x04, 0x49, 0x00, 0x38, 0x63, 0x32, 0x1a, 0x13, 0x63, 0x00, 0x00, 0x00, 0x50, 0x00, 0x00, 0x07, 0x38, 0x04, 0x49, 0x00, 0x00, 0x63, 0x1f, 0x11, 0x1e, 0x63, 0x4b, 0x00, 0x00, 0x50, 0x00, 0x00, 0x07, 0x3f, 0x1c, 0x57, 0x00, 0x4b, 0x63, 0x4d, 0x1a, 0x17, 0x63, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x23, 0x00, 0x55, 0x00, 0x24, 0x63, 0x4a, 0x00, 0x00, 0x63, 0x00, 0x00, 0x00, 0x29, 0x00, 0x00, 0x04, 0x51, 0x04, 0x56, 0x00, 0x00, 0x63, 0x24, 0x62, 0x21, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x3b, 0x04, 0x63, 0x00, 0x00, 0x63, 0x62, 0x4b, 0x3c, 0x32, 0x33, 0x32, 0x32, 0x0f, 0x0f, 0x0b, 0x00, 0x10, 0x00, 0x20, 0x18, 0x54, 0x49, 0x4d, 0x50, 0x41, 0x4e, 0x49, 0x20, 0x20, 0x20 }}, {{ 0x38, 0x4d, 0x32, 0x29, 0x63, 0x61, 0x44, 0x00, 0x0f, 0x00, 0x00, 0x04, 0x47, 0x00, 0x0a, 0x04, 0x02, 0x4a, 0x57, 0x32, 0x29, 0x57, 0x1b, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x04, 0x37, 0x00, 0x62, 0x02, 0x04, 0x5a, 0x3a, 0x32, 0x29, 0x60, 0x1b, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x04, 0x56, 0x00, 0x62, 0x02, 0x02, 0x53, 0x14, 0x32, 0x29, 0x63, 0x1b, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x04, 0x3b, 0x00, 0x63, 0x00, 0x00, 0x63, 0x4d, 0x2a, 0x23, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x63, 0x00, 0x00, 0x58, 0x2f, 0x2e, 0x2e, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x00, 0x63, 0x00, 0x00, 0x62, 0x62, 0x62, 0x62, 0x32, 0x32, 0x32, 0x32, 0x0d, 0x0d, 0x2c, 0x1c, 0x0e, 0x50, 0x72, 0x0c, 0x4c, 0x4f, 0x47, 0x20, 0x44, 0x52, 0x55, 0x4d, 0x20, 0x20 }}, {{ 0x17, 0x19, 0x07, 0x0e, 0x56, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x08, 0x24, 0x02, 0x14, 0x12, 0x1e, 0x0f, 0x12, 0x5f, 0x57, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x1c, 0x52, 0x02, 0x28, 0x12, 0x1e, 0x0f, 0x16, 0x5f, 0x57, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x08, 0x54, 0x06, 0x00, 0x12, 0x1e, 0x0f, 0x27, 0x57, 0x57, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x04, 0x4a, 0x00, 0x31, 0x56, 0x1a, 0x14, 0x1e, 0x63, 0x5f, 0x29, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x08, 0x48, 0x00, 0x3c, 0x56, 0x1a, 0x14, 0x1f, 0x63, 0x5f, 0x29, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x04, 0x63, 0x00, 0x00, 0x63, 0x62, 0x4b, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x0f, 0x05, 0x23, 0x59, 0x00, 0x00, 0x47, 0x18, 0x47, 0x4f, 0x4e, 0x47, 0x20, 0x20, 0x20, 0x20, 0x31, 0x20 }}, {{ 0x13, 0x0c, 0x47, 0x1c, 0x63, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x62, 0x00, 0x00, 0x45, 0x0b, 0x47, 0x1c, 0x63, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x63, 0x00, 0x00, 0x62, 0x0c, 0x47, 0x1c, 0x63, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2a, 0x00, 0x4b, 0x04, 0x4b, 0x5f, 0x21, 0x47, 0x19, 0x63, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x00, 0x63, 0x02, 0x00, 0x62, 0x0c, 0x47, 0x1c, 0x63, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, 0x00, 0x4e, 0x04, 0x4b, 0x5f, 0x21, 0x47, 0x19, 0x63, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4a, 0x00, 0x5f, 0x02, 0x00, 0x43, 0x5f, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x04, 0x04, 0x23, 0x00, 0x00, 0x00, 0x62, 0x18, 0x54, 0x55, 0x42, 0x45, 0x52, 0x49, 0x53, 0x45, 0x20, 0x41 }}, {{ 0x63, 0x39, 0x22, 0x63, 0x63, 0x63, 0x63, 0x63, 0x39, 0x63, 0x63, 0x0c, 0x38, 0x00, 0x63, 0x3f, 0x63, 0x61, 0x50, 0x50, 0x63, 0x63, 0x0e, 0x63, 0x63, 0x3a, 0x63, 0x63, 0x0c, 0x3a, 0x00, 0x63, 0x03, 0x63, 0x63, 0x2c, 0x28, 0x2e, 0x63, 0x5c, 0x00, 0x00, 0x39, 0x63, 0x63, 0x0c, 0x3c, 0x00, 0x63, 0x05, 0x1f, 0x5d, 0x63, 0x48, 0x43, 0x63, 0x4d, 0x00, 0x00, 0x1a, 0x00, 0x00, 0x00, 0x25, 0x00, 0x63, 0x03, 0x2a, 0x63, 0x43, 0x4d, 0x2d, 0x63, 0x00, 0x00, 0x00, 0x17, 0x63, 0x0b, 0x03, 0x55, 0x00, 0x5d, 0x00, 0x10, 0x63, 0x2e, 0x39, 0x42, 0x63, 0x5a, 0x00, 0x00, 0x33, 0x00, 0x63, 0x03, 0x3b, 0x00, 0x63, 0x00, 0x5c, 0x63, 0x59, 0x35, 0x00, 0x2e, 0x18, 0x00, 0x38, 0x02, 0x0f, 0x23, 0x00, 0x00, 0x00, 0x31, 0x14, 0x44, 0x49, 0x47, 0x49, 0x20, 0x44, 0x52, 0x55, 0x4d, 0x31 }}, {{ 0x63, 0x2e, 0x36, 0x55, 0x63, 0x60, 0x63, 0x00, 0x39, 0x00, 0x00, 0x00, 0x3a, 0x04, 0x63, 0x05, 0x4b, 0x63, 0x2e, 0x22, 0x5b, 0x63, 0x5f, 0x63, 0x00, 0x0c, 0x63, 0x00, 0x00, 0x73, 0x00, 0x4e, 0x07, 0x31, 0x58, 0x49, 0x35, 0x5d, 0x63, 0x4d, 0x00, 0x00, 0x0c, 0x63, 0x00, 0x00, 0x72, 0x1c, 0x5b, 0x10, 0x03, 0x58, 0x38, 0x3c, 0x5d, 0x63, 0x4d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x53, 0x14, 0x4f, 0x02, 0x1c, 0x58, 0x38, 0x3c, 0x5d, 0x63, 0x4d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x23, 0x18, 0x53, 0x02, 0x62, 0x4e, 0x20, 0x2c, 0x3c, 0x63, 0x55, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2a, 0x00, 0x63, 0x00, 0x07, 0x56, 0x5d, 0x63, 0x63, 0x00, 0x34, 0x00, 0x5d, 0x11, 0x0f, 0x23, 0x00, 0x00, 0x00, 0x31, 0x0c, 0x42, 0x65, 0x61, 0x74, 0x4d, 0x65, 0x48, 0x72, 0x64, 0x72 }}, {{ 0x38, 0x4d, 0x32, 0x29, 0x63, 0x1b, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x04, 0x42, 0x03, 0x62, 0x02, 0x07, 0x38, 0x40, 0x32, 0x29, 0x63, 0x5f, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x04, 0x34, 0x02, 0x61, 0x00, 0x00, 0x0d, 0x1f, 0x32, 0x29, 0x63, 0x57, 0x4f, 0x00, 0x0f, 0x00, 0x00, 0x04, 0x44, 0x01, 0x63, 0x00, 0x01, 0x0d, 0x1f, 0x32, 0x29, 0x63, 0x57, 0x4f, 0x00, 0x0f, 0x00, 0x00, 0x04, 0x3b, 0x00, 0x63, 0x00, 0x00, 0x0d, 0x1f, 0x32, 0x29, 0x63, 0x57, 0x4f, 0x00, 0x0f, 0x00, 0x00, 0x04, 0x04, 0x00, 0x55, 0x00, 0x02, 0x0d, 0x1f, 0x32, 0x29, 0x63, 0x57, 0x4f, 0x00, 0x0f, 0x00, 0x00, 0x04, 0x73, 0x00, 0x63, 0x00, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x70, 0x18, 0x45, 0x56, 0x4f, 0x4c, 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x20 }}, {{ 0x40, 0x23, 0x20, 0x20, 0x63, 0x63, 0x63, 0x00, 0x0a, 0x00, 0x08, 0x03, 0x38, 0x0a, 0x46, 0x0a, 0x00, 0x40, 0x1e, 0x20, 0x14, 0x63, 0x63, 0x63, 0x00, 0x0a, 0x00, 0x08, 0x03, 0x58, 0x0a, 0x5b, 0x02, 0x00, 0x40, 0x2b, 0x00, 0x27, 0x63, 0x63, 0x63, 0x00, 0x27, 0x00, 0x63, 0x07, 0x30, 0x0f, 0x4a, 0x34, 0x00, 0x3e, 0x18, 0x00, 0x2d, 0x63, 0x63, 0x63, 0x00, 0x1b, 0x0c, 0x00, 0x0c, 0x38, 0x08, 0x63, 0x02, 0x00, 0x40, 0x2b, 0x20, 0x14, 0x63, 0x63, 0x63, 0x00, 0x0a, 0x00, 0x08, 0x03, 0x08, 0x0a, 0x54, 0x04, 0x00, 0x2d, 0x18, 0x20, 0x2d, 0x63, 0x63, 0x63, 0x00, 0x27, 0x00, 0x00, 0x0f, 0x30, 0x0c, 0x63, 0x02, 0x00, 0x63, 0x63, 0x43, 0x63, 0x32, 0x32, 0x32, 0x32, 0x08, 0x04, 0x25, 0x00, 0x00, 0x00, 0x08, 0x18, 0x4e, 0x61, 0x73, 0x74, 0x79, 0x20, 0x4b, 0x43, 0x50, 0x32 }}, {{ 0x20, 0x15, 0x26, 0x1e, 0x52, 0x44, 0x00, 0x00, 0x21, 0x0d, 0x12, 0x06, 0x3a, 0x00, 0x50, 0x00, 0x00, 0x2f, 0x14, 0x45, 0x21, 0x52, 0x3e, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x04, 0x12, 0x1c, 0x37, 0x00, 0x00, 0x28, 0x20, 0x53, 0x1e, 0x63, 0x44, 0x00, 0x00, 0x3c, 0x0d, 0x00, 0x06, 0x3a, 0x14, 0x63, 0x00, 0x00, 0x35, 0x1d, 0x19, 0x1e, 0x63, 0x55, 0x34, 0x00, 0x2b, 0x13, 0x04, 0x04, 0x3b, 0x08, 0x63, 0x00, 0x00, 0x5d, 0x28, 0x0d, 0x24, 0x45, 0x58, 0x3b, 0x00, 0x14, 0x24, 0x00, 0x04, 0x3c, 0x00, 0x59, 0x04, 0x00, 0x1d, 0x15, 0x14, 0x32, 0x63, 0x23, 0x1c, 0x00, 0x28, 0x17, 0x00, 0x0a, 0x3b, 0x00, 0x5c, 0x08, 0x00, 0x0c, 0x4e, 0x2d, 0x62, 0x63, 0x59, 0x0b, 0x00, 0x10, 0x0f, 0x63, 0x00, 0x00, 0x00, 0x72, 0x18, 0x47, 0x52, 0x41, 0x4e, 0x44, 0x20, 0x50, 0x52, 0x49, 0x58 }}, {{ 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x50, 0x05, 0x25, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x03, 0x63, 0x00, 0x00, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x50, 0x05, 0x26, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x63, 0x00, 0x00, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x50, 0x05, 0x26, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x03, 0x63, 0x00, 0x00, 0x63, 0x1c, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x04, 0x0b, 0x02, 0x00, 0x0e, 0x00, 0x31, 0x18, 0x54, 0x49, 0x4d, 0x45, 0x57, 0x41, 0x52, 0x50, 0x20, 0x20 }}, }; hexter-version_1.1.0/src/dx7_voice_render.c000066400000000000000000001046531325353653200207560ustar00rootroot00000000000000/* hexter DSSI software synthesizer plugin * * Copyright (C) 2004, 2009, 2011, 2018 Sean Bolton and others. * * Portions of this file may have come from Juan Linietsky's * rx-saturno, copyright (C) 2002 by Juan Linietsky. * Portions of this file may have come from Peter Hanappe's * Fluidsynth, copyright (C) 2003 Peter Hanappe and others. * * 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. */ #ifdef HAVE_CONFIG_H #include #endif #define _DEFAULT_SOURCE 1 #define _ISOC99_SOURCE 1 #include #include #include "hexter_types.h" #include "hexter.h" #include "hexter_synth.h" #include "dx7_voice.h" static inline dx7_sample_t dx7_op_calculate_operator(dx7_sample_t eg_value, dx7_sample_t phase) { int32_t index; dx7_sample_t mod_index, out; #ifdef HEXTER_USE_FLOATING_POINT float frac; #endif /* HEXTER_USE_FLOATING_POINT */ /* use eg_value to look up the modulation index, with interpolation */ #ifndef HEXTER_USE_FLOATING_POINT index = FP_TO_INT(eg_value); mod_index = dx7_voice_eg_ol_to_mod_index[index]; mod_index += FP_MULTIPLY(dx7_voice_eg_ol_to_mod_index[index + 1] - mod_index, eg_value & FP_MASK); #else /* HEXTER_USE_FLOATING_POINT */ index = lrintf(eg_value - 0.5f); frac = eg_value - (float)index; mod_index = dx7_voice_eg_ol_to_mod_index[index]; mod_index += (dx7_voice_eg_ol_to_mod_index[index + 1] - mod_index) * frac; #endif /* HEXTER_USE_FLOATING_POINT */ /* use phase to look up the oscillator output, with interpolation */ #ifndef HEXTER_USE_FLOATING_POINT index = ((uint32_t)phase >> FP_TO_SINE_SHIFT) & SINE_MASK; out = dx7_voice_sin_table[index]; out += (((int64_t)(dx7_voice_sin_table[index + 1] - out) * (int64_t)(phase & FP_TO_SINE_MASK)) >> (FP_SHIFT + FP_TO_SINE_SHIFT)); #else /* HEXTER_USE_FLOATING_POINT */ phase *= (float)SINE_SIZE; index = lrintf(phase - 0.5f); frac = phase - (float)index; index &= SINE_MASK; out = dx7_voice_sin_table[index]; out += (dx7_voice_sin_table[index + 1] - out) * frac; #endif /* HEXTER_USE_FLOATING_POINT */ /* return the product of modulation index and oscillator output */ return FP_MULTIPLY(mod_index, out); } static inline dx7_sample_t dx7_op_calculate_operator_saving_feedback(dx7_voice_t *voice, dx7_sample_t eg_value, dx7_sample_t phase) { int32_t index; dx7_sample_t mod_index, out; #ifndef HEXTER_USE_FLOATING_POINT int64_t out64; #else /* HEXTER_USE_FLOATING_POINT */ float frac; #endif /* HEXTER_USE_FLOATING_POINT */ /* use eg_value to look up the modulation index, with interpolation */ #ifndef HEXTER_USE_FLOATING_POINT index = FP_TO_INT(eg_value); mod_index = dx7_voice_eg_ol_to_mod_index[index]; mod_index += FP_MULTIPLY(dx7_voice_eg_ol_to_mod_index[index + 1] - mod_index, eg_value & FP_MASK); #else /* HEXTER_USE_FLOATING_POINT */ index = lrintf(eg_value - 0.5f); frac = eg_value - (float)index; mod_index = dx7_voice_eg_ol_to_mod_index[index]; mod_index += (dx7_voice_eg_ol_to_mod_index[index + 1] - mod_index) * frac; #endif /* HEXTER_USE_FLOATING_POINT */ /* use phase to look up the oscillator output, with interpolation */ #ifndef HEXTER_USE_FLOATING_POINT index = ((uint32_t)phase >> FP_TO_SINE_SHIFT) & SINE_MASK; out = dx7_voice_sin_table[index]; out64 = out + (((int64_t)(dx7_voice_sin_table[index + 1] - out) * (int64_t)(phase & FP_TO_SINE_MASK)) >> (FP_SHIFT + FP_TO_SINE_SHIFT)); #else /* HEXTER_USE_FLOATING_POINT */ phase *= (float)SINE_SIZE; index = lrintf(phase - 0.5f); frac = phase - (float)index; index &= SINE_MASK; out = dx7_voice_sin_table[index]; out += (dx7_voice_sin_table[index + 1] - out) * frac; #endif /* HEXTER_USE_FLOATING_POINT */ /* save that output, scaled by our eg level, feedback amount, and a * constant, as our feedback modulation index */ #ifndef HEXTER_USE_FLOATING_POINT voice->feedback = (((out64 * (int64_t)eg_value) >> FP_SHIFT) * (int64_t)voice->feedback_multiplier) >> FP_SHIFT; #else /* HEXTER_USE_FLOATING_POINT */ voice->feedback = out * eg_value * voice->feedback_multiplier; #endif /* HEXTER_USE_FLOATING_POINT */ /* return the product of modulation index and oscillator output */ #ifndef HEXTER_USE_FLOATING_POINT return (int32_t)(((int64_t)mod_index * out64) >> FP_SHIFT); #else /* HEXTER_USE_FLOATING_POINT */ return mod_index * out; #endif /* HEXTER_USE_FLOATING_POINT */ } static inline void dx7_op_eg_process(hexter_instance_t *instance, dx7_op_eg_t *eg) { eg->value += eg->increment; if (--eg->duration == 0) { if (eg->mode != DX7_EG_RUNNING) { eg->duration = -1; return; } if (eg->in_precomp) { eg->in_precomp = 0; eg->duration = eg->postcomp_duration; eg->increment = eg->postcomp_increment; } else { dx7_op_eg_set_next_phase(instance, eg); } } } static inline void dx7_op_eg_adjust(dx7_op_eg_t *eg) { /* The constant in this next expression needs to be greater than * 0.000815 * (32/99) * sample_rate to avoid interaction with envelope * precompensation. 60 is safe to 192KHz. */ if (eg->duration > 60) { if (eg->mode != DX7_EG_RUNNING) return; eg->increment = (eg->target - eg->value) / eg->duration; } } static inline void dx7_pitch_eg_process(hexter_instance_t *instance, dx7_pitch_eg_t *eg) { if (eg->mode != DX7_EG_RUNNING) return; eg->value += eg->increment; eg->duration--; if (eg->duration == 1) { eg->increment = eg->target - eg->value; /* correct any rounding error */ } else if (eg->duration == 0) { dx7_pitch_eg_set_next_phase(instance, eg); } } static inline void dx7_portamento_process(hexter_instance_t *instance, dx7_portamento_t *port) { if (port->segment == 0) return; port->value += port->increment; port->duration--; if (port->duration == 1) { port->increment = port->target - port->value; /* correct any rounding error */ } else if (port->duration == 0) { if (--port->segment > 0) dx7_portamento_set_segment(instance, port); else port->value = 0.0; } } static inline int dx7_voice_check_for_dead(dx7_voice_t *voice) { int i, b; for (i = 0, b = 1; i < 6; i++, b <<= 1) { if (!(dx7_voice_carriers[voice->algorithm] & b)) continue; /* not a carrier, so still a candidate for killing; continue to check next op */ if (voice->op[i].eg.mode == DX7_EG_FINISHED) continue; /* carrier, eg finished, so still a candidate */ if ((voice->op[i].eg.mode == DX7_EG_CONSTANT || voice->op[i].eg.mode == DX7_EG_SUSTAINING || (voice->op[i].eg.mode == DX7_EG_RUNNING && voice->op[i].eg.phase == 3)) && (FP_TO_INT(voice->op[i].eg.value) == 0)) continue; /* eg constant at 0 or decayed to effectively 0, still a candidate */ return 0; /* if we got this far, this carrier still has output, so return without killing voice */ } DEBUG_MESSAGE(DB_NOTE, " dx7_voice_check_for_dead: killing voice %p:%d\n", voice, voice->note_id); dx7_voice_off(voice); return 1; } /* Test for bitwise equality of two floating-point numbers (single or double * precision). This little dance is needed on some platforms to avoid * comparisons between e.g. 64-bit double precision with 80-bit extended * precision values. Generally, testing for exact equality in floating point is * a bad idea, but here we're only concerned about whether a parameter changed * from it's previous value, not with the value itself. */ static inline int float_equality(float a, float b) { union { float f; uint32_t l; } ua, ub; ua.f = a; ub.f = b; return ua.l == ub.l; } static inline int double_equality(double a, double b) { union { double d; uint32_t l[2]; } ua, ub; ua.d = a; ub.d = b; return ua.l[0] == ub.l[0] && ua.l[1] == ub.l[1]; } /* * dx7_voice_render * * generate the actual sound data for this voice */ void dx7_voice_render(hexter_instance_t *instance, dx7_voice_t *voice, LADSPA_Data *out, unsigned long sample_count, int do_control_update) { unsigned long sample; static dx7_sample_t ampmod[4] = { 0 }; dx7_sample_t i; dx7_sample_t output; if (!float_equality(voice->last_port_volume, *instance->volume) || voice->last_cc_volume != instance->cc_volume) dx7_voice_recalculate_volume(instance, voice); switch (voice->algorithm) { case 0: /* algorithm 1 */ /* This first algorithm is all written out, so you can see how it looks */ for (sample = 0; sample < sample_count; sample++) { /* calculate amplitude modulation amounts */ i = FP_MULTIPLY(voice->amp_mod_lfo_amd_value, voice->lfo_delay_value); i = voice->amp_mod_env_value + FP_MULTIPLY(i + voice->amp_mod_lfo_mods_value, instance->lfo_buffer[sample]); #ifndef HEXTER_USE_FLOATING_POINT #define AMPMOD2_CONSTANT (7726076 >> (24 - FP_SHIFT)) /* 0.460510 */ #define AMPMOD1_CONSTANT (3993950 >> (24 - FP_SHIFT)) /* 0.238058 */ #else /* HEXTER_USE_FLOATING_POINT */ #define AMPMOD2_CONSTANT (0.460510f) #define AMPMOD1_CONSTANT (0.238058f) #endif /* HEXTER_USE_FLOATING_POINT */ ampmod[3] = i; ampmod[2] = FP_MULTIPLY(i, AMPMOD2_CONSTANT); ampmod[1] = FP_MULTIPLY(i, AMPMOD1_CONSTANT); output = ( dx7_op_calculate_operator(voice->op[OP_3].eg.value - ampmod[voice->op[OP_3].amp_mod_sens], voice->op[OP_3].phase + dx7_op_calculate_operator(voice->op[OP_4].eg.value - ampmod[voice->op[OP_4].amp_mod_sens], voice->op[OP_4].phase + dx7_op_calculate_operator(voice->op[OP_5].eg.value - ampmod[voice->op[OP_5].amp_mod_sens], voice->op[OP_5].phase + /* -FIX- need to determine if amp mod is included in feedback, or after */ dx7_op_calculate_operator_saving_feedback(voice, voice->op[OP_6].eg.value - ampmod[voice->op[OP_6].amp_mod_sens], voice->op[OP_6].phase + voice->feedback)))) + dx7_op_calculate_operator(voice->op[OP_1].eg.value - ampmod[voice->op[OP_1].amp_mod_sens], voice->op[OP_1].phase + dx7_op_calculate_operator(voice->op[OP_2].eg.value - ampmod[voice->op[OP_2].amp_mod_sens], voice->op[OP_2].phase)) ); /* voice->volume_value contains a scaling factor for the number of carriers */ /* mix voice output into output buffer */ out[sample] += FP_TO_FLOAT(output) * voice->volume_value; /* update runtime parameters for next sample */ voice->op[OP_6].phase += voice->op[OP_6].phase_increment; voice->op[OP_5].phase += voice->op[OP_5].phase_increment; voice->op[OP_4].phase += voice->op[OP_4].phase_increment; voice->op[OP_3].phase += voice->op[OP_3].phase_increment; voice->op[OP_2].phase += voice->op[OP_2].phase_increment; voice->op[OP_1].phase += voice->op[OP_1].phase_increment; dx7_op_eg_process(instance, &voice->op[OP_6].eg); dx7_op_eg_process(instance, &voice->op[OP_5].eg); dx7_op_eg_process(instance, &voice->op[OP_4].eg); dx7_op_eg_process(instance, &voice->op[OP_3].eg); dx7_op_eg_process(instance, &voice->op[OP_2].eg); dx7_op_eg_process(instance, &voice->op[OP_1].eg); if (voice->amp_mod_env_duration) { voice->amp_mod_env_value += voice->amp_mod_env_increment; voice->amp_mod_env_duration--; } if (voice->amp_mod_lfo_mods_duration) { voice->amp_mod_lfo_mods_value += voice->amp_mod_lfo_mods_increment; voice->amp_mod_lfo_mods_duration--; } if (voice->amp_mod_lfo_amd_duration) { voice->amp_mod_lfo_amd_value += voice->amp_mod_lfo_amd_increment; voice->amp_mod_lfo_amd_duration--; } if (voice->lfo_delay_duration) { voice->lfo_delay_value += voice->lfo_delay_increment; if (--voice->lfo_delay_duration == 0) { int seg = ++voice->lfo_delay_segment; voice->lfo_delay_duration = instance->lfo_delay_duration[seg]; voice->lfo_delay_value = instance->lfo_delay_value[seg]; voice->lfo_delay_increment = instance->lfo_delay_increment[seg]; } } if (voice->volume_duration) { voice->volume_value += voice->volume_increment; voice->volume_duration--; } } break; /* Now we'll use some macros to make it easier to read */ #define op(_i, _p) dx7_op_calculate_operator(voice->op[_i].eg.value - ampmod[voice->op[_i].amp_mod_sens], voice->op[_i].phase + _p) #define op_sfb(_i, _p) dx7_op_calculate_operator_saving_feedback(voice, voice->op[_i].eg.value - ampmod[voice->op[_i].amp_mod_sens], voice->op[_i].phase + _p) #define RENDER \ for (sample = 0; sample < sample_count; sample++) { \ /* calculate amplitude modulation amounts */ \ i = FP_MULTIPLY(voice->amp_mod_lfo_amd_value, voice->lfo_delay_value); \ i = voice->amp_mod_env_value + \ FP_MULTIPLY(i + voice->amp_mod_lfo_mods_value, instance->lfo_buffer[sample]); \ ampmod[3] = i; \ ampmod[2] = FP_MULTIPLY(i, AMPMOD2_CONSTANT); \ ampmod[1] = FP_MULTIPLY(i, AMPMOD1_CONSTANT); \ ALGORITHM; \ /* voice->volume_value contains a scaling factor for the number of carriers */ \ /* mix voice output into output buffer */ \ out[sample] += FP_TO_FLOAT(output) * voice->volume_value; \ /* update runtime parameters for next sample */ \ voice->op[OP_6].phase += voice->op[OP_6].phase_increment; \ voice->op[OP_5].phase += voice->op[OP_5].phase_increment; \ voice->op[OP_4].phase += voice->op[OP_4].phase_increment; \ voice->op[OP_3].phase += voice->op[OP_3].phase_increment; \ voice->op[OP_2].phase += voice->op[OP_2].phase_increment; \ voice->op[OP_1].phase += voice->op[OP_1].phase_increment; \ dx7_op_eg_process(instance, &voice->op[OP_6].eg); \ dx7_op_eg_process(instance, &voice->op[OP_5].eg); \ dx7_op_eg_process(instance, &voice->op[OP_4].eg); \ dx7_op_eg_process(instance, &voice->op[OP_3].eg); \ dx7_op_eg_process(instance, &voice->op[OP_2].eg); \ dx7_op_eg_process(instance, &voice->op[OP_1].eg); \ if (voice->amp_mod_env_duration) { \ voice->amp_mod_env_value += voice->amp_mod_env_increment; \ voice->amp_mod_env_duration--; \ } \ if (voice->amp_mod_lfo_mods_duration) { \ voice->amp_mod_lfo_mods_value += voice->amp_mod_lfo_mods_increment; \ voice->amp_mod_lfo_mods_duration--; \ } \ if (voice->amp_mod_lfo_amd_duration) { \ voice->amp_mod_lfo_amd_value += voice->amp_mod_lfo_amd_increment; \ voice->amp_mod_lfo_amd_duration--; \ } \ if (voice->lfo_delay_duration) { \ voice->lfo_delay_value += voice->lfo_delay_increment; \ if (--voice->lfo_delay_duration == 0) { \ int seg = ++voice->lfo_delay_segment; \ voice->lfo_delay_duration = instance->lfo_delay_duration[seg]; \ voice->lfo_delay_value = instance->lfo_delay_value[seg]; \ voice->lfo_delay_increment = instance->lfo_delay_increment[seg]; \ } \ } \ if (voice->volume_duration) { \ voice->volume_value += voice->volume_increment; \ voice->volume_duration--; \ } \ } case 1: /* algorithm 2 */ #define ALGORITHM { \ output = ( \ op(OP_3, op(OP_4, op(OP_5, op(OP_6, 0)))) + \ op(OP_1, op_sfb(OP_2, voice->feedback)) \ ); \ } RENDER; break; #undef ALGORITHM case 2: /* algorithm 3 */ #define ALGORITHM { \ output = ( \ op(OP_4, op(OP_5, op_sfb(OP_6, voice->feedback))) + \ op(OP_1, op(OP_2, op(OP_3, 0))) \ ); \ } RENDER; break; #undef ALGORITHM case 3: /* algorithm 4 */ #define ALGORITHM { \ output = ( \ op_sfb(OP_4, op(OP_5, op(OP_6, voice->feedback))) + \ op(OP_1, op(OP_2, op(OP_3, 0))) \ ); \ } RENDER; break; #undef ALGORITHM case 4: /* algorithm 5 */ #define ALGORITHM { \ output = ( \ op(OP_5, op_sfb(OP_6, voice->feedback)) + \ op(OP_3, op(OP_4, 0)) + \ op(OP_1, op(OP_2, 0)) \ ); \ } RENDER; break; #undef ALGORITHM case 5: /* algorithm 6 */ #define ALGORITHM { \ output = ( \ op_sfb(OP_5, op(OP_6, voice->feedback)) + \ op(OP_3, op(OP_4, 0)) + \ op(OP_1, op(OP_2, 0)) \ ); \ } RENDER; break; #undef ALGORITHM case 6: /* algorithm 7 */ #define ALGORITHM { \ output = ( \ op(OP_3, op(OP_5, op_sfb(OP_6, voice->feedback)) + \ op(OP_4, 0)) + \ op(OP_1, op(OP_2, 0)) \ ); \ } RENDER; break; #undef ALGORITHM case 7: /* algorithm 8 */ #define ALGORITHM { \ output = ( \ op(OP_3, op(OP_5, op(OP_6, 0)) + \ op_sfb(OP_4, voice->feedback)) + \ op(OP_1, op(OP_2, 0)) \ ); \ } RENDER; break; #undef ALGORITHM case 8: /* algorithm 9 */ #define ALGORITHM { \ output = ( \ op(OP_3, op(OP_5, op(OP_6, 0)) + \ op(OP_4, 0)) + \ op(OP_1, op_sfb(OP_2, voice->feedback)) \ ); \ } RENDER; break; #undef ALGORITHM case 9: /* algorithm 10 */ #define ALGORITHM { \ output = ( \ op(OP_4, op(OP_6, 0) + \ op(OP_5, 0)) + \ op(OP_1, op(OP_2, op_sfb(OP_3, voice->feedback))) \ ); \ } RENDER; break; #undef ALGORITHM case 10: /* algorithm 11 */ #define ALGORITHM { \ output = ( \ op(OP_4, op_sfb(OP_6, voice->feedback) + \ op(OP_5, 0)) + \ op(OP_1, op(OP_2, op(OP_3, 0))) \ ); \ } RENDER; break; #undef ALGORITHM case 11: /* algorithm 12 */ #define ALGORITHM { \ output = ( \ op(OP_3, op(OP_6, 0) + \ op(OP_5, 0) + \ op(OP_4, 0)) + \ op(OP_1, op_sfb(OP_2, voice->feedback)) \ ); \ } RENDER; break; #undef ALGORITHM case 12: /* algorithm 13 */ #define ALGORITHM { \ output = ( \ op(OP_3, op_sfb(OP_6, voice->feedback) + \ op(OP_5, 0) + \ op(OP_4, 0)) + \ op(OP_1, op(OP_2, 0)) \ ); \ } RENDER; break; #undef ALGORITHM case 13: /* algorithm 14 */ #define ALGORITHM { \ output = ( \ op(OP_3, op(OP_4, op_sfb(OP_6, voice->feedback) + \ op(OP_5, 0))) + \ op(OP_1, op(OP_2, 0)) \ ); \ } RENDER; break; #undef ALGORITHM case 14: /* algorithm 15 */ #define ALGORITHM { \ output = ( \ op(OP_3, op(OP_4, op(OP_6, 0) + \ op(OP_5, 0))) + \ op(OP_1, op_sfb(OP_2, voice->feedback)) \ ); \ } RENDER; break; #undef ALGORITHM case 15: /* algorithm 16 */ #define ALGORITHM { \ output = op(OP_1, op(OP_5, op_sfb(OP_6, voice->feedback)) + \ op(OP_3, op(OP_4, 0)) + \ op(OP_2, 0)); \ } RENDER; break; #undef ALGORITHM case 16: /* algorithm 17 */ #define ALGORITHM { \ output = op(OP_1, op(OP_5, op(OP_6, 0)) + \ op(OP_3, op(OP_4, 0)) + \ op_sfb(OP_2, voice->feedback)); \ } RENDER; break; #undef ALGORITHM case 17: /* algorithm 18 */ #define ALGORITHM { \ output = op(OP_1, op(OP_4, op(OP_5, op(OP_6, 0))) + \ op_sfb(OP_3, voice->feedback) + \ op(OP_2, 0)); \ } RENDER; break; #undef ALGORITHM case 18: /* algorithm 19 */ #define ALGORITHM { \ i = op_sfb(OP_6, voice->feedback); \ output = ( \ op(OP_5, i) + \ op(OP_4, i) + \ op(OP_1, op(OP_2, op(OP_3, 0))) \ ); \ } RENDER; break; #undef ALGORITHM case 19: /* algorithm 20 */ #define ALGORITHM { \ i = op_sfb(OP_3, voice->feedback); \ output = ( \ op(OP_4, op(OP_6, 0) + \ op(OP_5, 0)) + \ op(OP_2, i) + \ op(OP_1, i) \ ); \ } RENDER; break; #undef ALGORITHM case 20: /* algorithm 21 */ #define ALGORITHM { \ i = op(OP_6, 0); \ output = op(OP_5, i) + \ op(OP_4, i); \ i = op_sfb(OP_3, voice->feedback); \ output += op(OP_2, i) + \ op(OP_1, i); \ } RENDER; break; #undef ALGORITHM case 21: /* algorithm 22 */ #define ALGORITHM { \ i = op_sfb(OP_6, voice->feedback); \ output = ( \ op(OP_5, i) + \ op(OP_4, i) + \ op(OP_3, i) + \ op(OP_1, op(OP_2, 0)) \ ); \ } RENDER; break; #undef ALGORITHM case 22: /* algorithm 23 */ #define ALGORITHM { \ i = op_sfb(OP_6, voice->feedback); \ output = ( \ op(OP_5, i) + \ op(OP_4, i) + \ op(OP_2, op(OP_3, 0)) + \ op(OP_1, 0) \ ); \ } RENDER; break; #undef ALGORITHM case 23: /* algorithm 24 */ #define ALGORITHM { \ i = op_sfb(OP_6, voice->feedback); \ output = ( \ op(OP_5, i) + \ op(OP_4, i) + \ op(OP_3, i) + \ op(OP_2, 0) + \ op(OP_1, 0) \ ); \ } RENDER; break; #undef ALGORITHM case 24: /* algorithm 25 */ #define ALGORITHM { \ i = op_sfb(OP_6, voice->feedback); \ output = ( \ op(OP_5, i) + \ op(OP_4, i) + \ op(OP_3, 0) + \ op(OP_2, 0) + \ op(OP_1, 0) \ ); \ } RENDER; break; #undef ALGORITHM case 25: /* algorithm 26 */ #define ALGORITHM { \ output = ( \ op(OP_4, op_sfb(OP_6, voice->feedback) + \ op(OP_5, 0)) + \ op(OP_2, op(OP_3, 0)) + \ op(OP_1, 0) \ ); \ } RENDER; break; #undef ALGORITHM case 26: /* algorithm 27 */ #define ALGORITHM { \ output = ( \ op(OP_4, op(OP_6, 0) + \ op(OP_5, 0)) + \ op(OP_2, op_sfb(OP_3, voice->feedback)) + \ op(OP_1, 0) \ ); \ } RENDER; break; #undef ALGORITHM case 27: /* algorithm 28 */ #define ALGORITHM { \ output = ( \ op(OP_6, 0) + \ op(OP_3, op(OP_4, op_sfb(OP_5, voice->feedback))) + \ op(OP_1, op(OP_2, 0)) \ ); \ } RENDER; break; #undef ALGORITHM case 28: /* algorithm 29 */ #define ALGORITHM { \ output = ( \ op(OP_5, op_sfb(OP_6, voice->feedback)) + \ op(OP_3, op(OP_4, 0)) + \ op(OP_2, 0) + \ op(OP_1, 0) \ ); \ } RENDER; break; #undef ALGORITHM case 29: /* algorithm 30 */ #define ALGORITHM { \ output = ( \ op(OP_6, 0) + \ op(OP_3, op(OP_4, op_sfb(OP_5, voice->feedback))) + \ op(OP_2, 0) + \ op(OP_1, 0) \ ); \ } RENDER; break; #undef ALGORITHM case 30: /* algorithm 31 */ #define ALGORITHM { \ output = ( \ op(OP_5, op_sfb(OP_6, voice->feedback)) + \ op(OP_4, 0) + \ op(OP_3, 0) + \ op(OP_2, 0) + \ op(OP_1, 0) \ ); \ } RENDER; break; #undef ALGORITHM case 31: /* algorithm 32 */ default: /* just in case */ #define ALGORITHM { \ output = ( \ op_sfb(OP_6, voice->feedback) + \ op(OP_5, 0) + \ op(OP_4, 0) + \ op(OP_3, 0) + \ op(OP_2, 0) + \ op(OP_1, 0) \ ); \ } RENDER; break; #undef ALGORITHM #undef op #undef op_sfb } if (do_control_update) { double new_pitch; /* do those things which should be done only once per control- * calculation interval ("nugget"), such as voice check-for-dead, * pitch envelope calculations, etc. */ /* check if we've decayed to nothing, turn off voice if so */ if (dx7_voice_check_for_dead(voice)) return; /* we're dead now, so return */ #ifdef HEXTER_USE_FLOATING_POINT /* wrap oscillator phases */ voice->op[OP_6].phase -= floorf(voice->op[OP_6].phase); voice->op[OP_5].phase -= floorf(voice->op[OP_5].phase); voice->op[OP_4].phase -= floorf(voice->op[OP_4].phase); voice->op[OP_3].phase -= floorf(voice->op[OP_3].phase); voice->op[OP_2].phase -= floorf(voice->op[OP_2].phase); voice->op[OP_1].phase -= floorf(voice->op[OP_1].phase); #endif /* HEXTER_USE_FLOATING_POINT */ /* update pitch envelope and portamento */ dx7_pitch_eg_process(instance, &voice->pitch_eg); dx7_portamento_process(instance, &voice->portamento); /* update phase increments if pitch or tuning changed */ new_pitch = voice->pitch_eg.value + voice->portamento.value + instance->pitch_bend - instance->lfo_value_for_pitch * (voice->pitch_mod_depth_pmd * FP_TO_DOUBLE(voice->lfo_delay_value) + voice->pitch_mod_depth_mods); if (!double_equality(voice->last_pitch, new_pitch) || !float_equality(voice->last_port_tuning, *instance->tuning)) { dx7_voice_recalculate_freq_and_inc(instance, voice); } /* op envelope rounding correction */ dx7_op_eg_adjust(&voice->op[OP_6].eg); dx7_op_eg_adjust(&voice->op[OP_5].eg); dx7_op_eg_adjust(&voice->op[OP_4].eg); dx7_op_eg_adjust(&voice->op[OP_3].eg); dx7_op_eg_adjust(&voice->op[OP_2].eg); dx7_op_eg_adjust(&voice->op[OP_1].eg); /* mods and output volume */ if (!voice->amp_mod_env_duration) voice->amp_mod_env_value = voice->amp_mod_env_target; if (!voice->amp_mod_lfo_mods_duration) voice->amp_mod_lfo_mods_value = voice->amp_mod_lfo_mods_target; if (!voice->amp_mod_lfo_amd_duration) voice->amp_mod_lfo_amd_value = voice->amp_mod_lfo_amd_target; if (!voice->volume_duration) voice->volume_value = voice->volume_target; } } hexter-version_1.1.0/src/dx7_voice_tables.c000066400000000000000000000377261325353653200207570ustar00rootroot00000000000000/* hexter DSSI software synthesizer plugin * * Copyright (C) 2004, 2009, 2011, 2018 Sean Bolton and others. * * Portions of this file may have come from Juan Linietsky's * rx-saturno, copyright (C) 2002 by Juan Linietsky. * Portions of this file may have come from Jeff Harrington's * dx72csound package, for which I've found no copyright * attribution. * Significant reverse-engineering contributions were made by * Jamie Bullock. * Other parts may have been inspired by Chowning/Bristow, * Pinkston, Yala Abdullah's website, Godric Wilkie' website; * see the AUTHORS file for more detail. * * 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. */ #ifdef HAVE_CONFIG_H #include #endif #define _DEFAULT_SOURCE 1 #define _ISOC99_SOURCE 1 #include #include "hexter_types.h" #include "dx7_voice.h" static int dx7_voice_tables_initialized = 0; dx7_sample_t dx7_voice_sin_table[SINE_SIZE + 1]; extern dx7_sample_t dx7_voice_eg_ol_to_mod_index_table[257]; /* forward */ dx7_sample_t *dx7_voice_eg_ol_to_mod_index = &dx7_voice_eg_ol_to_mod_index_table[128]; void dx7_voice_init_tables(void) { int i; double f; if (!dx7_voice_tables_initialized) { for (i = 0; i <= SINE_SIZE; i++) { /* observation of my TX7's output with oscillator sync on suggests * it uses cosine */ f = cos((double)(i) / SINE_SIZE * (2 * M_PI)); /* index / index max * radian cycle */ dx7_voice_sin_table[i] = DOUBLE_TO_FP(f); } #ifndef HEXTER_USE_FLOATING_POINT #if FP_SHIFT != 24 /* Any fixed-point tables below are in s7.24 format. Shift * them to match FP_SHIFT. */ for (i = 0; i <= 256; i++) { dx7_voice_eg_ol_to_mod_index_table[i] >>= (24 - FP_SHIFT); } #endif #endif /* ! HEXTER_USE_FLOATING_POINT */ dx7_voice_tables_initialized = 1; } } /* This table lists which operators of an algorithm are carriers. Bit 0 (LSB) * is set if operator 1 is a carrier, and so on through bit 5 for operator 6. */ uint8_t dx7_voice_carriers[32] = { 0x05, /* algorithm 1, operators 1 and 3 */ 0x05, 0x09, /* algorithm 3, operators 1 and 4 */ 0x09, 0x15, /* algorithm 5, operators 1, 3, and 5 */ 0x15, 0x05, 0x05, 0x05, 0x09, 0x09, 0x05, 0x05, 0x05, 0x05, 0x01, /* algorithm 16, operator 1 */ 0x01, 0x01, 0x19, /* algorithm 19, operators 1, 4, and 5 */ 0x0b, /* algorithm 20, operators 1, 2, and 4 */ 0x1b, /* algorithm 21, operators 1, 2, 4, and 5 */ 0x1d, /* algorithm 22, operators 1, 3, 4, and 5 */ 0x1b, 0x1f, /* algorithm 24, operators 1 through 5 */ 0x1f, 0x0b, 0x0b, 0x25, /* algorithm 28, operators 1, 3, and 6 */ 0x17, /* algorithm 29, operators 1, 2, 3, and 5 */ 0x27, /* algorithm 30, operators 1, 2, 3, and 6 */ 0x1f, 0x2f, /* algorithm 32, all operators */ }; float dx7_voice_carrier_count[32] = { 2.0f, 2.0f, 2.0f, 2.0f, 3.0f, 3.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 1.0f, 1.0f, 1.0f, 3.0f, 3.0f, 4.0f, 4.0f, 4.0f, 5.0f, 5.0f, 3.0f, 3.0f, 3.0f, 4.0f, 4.0f, 5.0f, 6.0f }; /* This table converts an output level of 0 to 99 into a phase * modulation index of 0 to ~2.089 periods. It actually extends * below 0 and beyond 99, since amplitude modulation can produce * 'negative' output levels, and velocities above 100 can produce * output levels above 99, plus it includes a 257th 'guard' point. * Table index 128 corresponds to output level 0, and index 227 to OL 99. * I believe this is based on information from the Chowning/Bristow * book (see the CREDITS file), filtered down to me through the work of * Pinkston, Harrington, and Abdullah as I found it on the Internet. The * code used to calculate it looks something like this: * * // DX7 output level to TL translation table * int tl_table[128] = { * 127, 122, 118, 114, 110, 107, 104, 102, 100, 98, 96, 94, 92, 90, * 88, 86, 85, 84, 82, 81, 79, 78, 77, 76, 75, 74, 73, 72, 71, * 70, 69, 68, 67, 66, 65, 64, 63, 62, 61, 60, 59, 58, 57, 56, 55, * 54, 53, 52, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, * 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, * 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, * 5, 4, 3, 2, 1, 0, -1, -2, -3, -4, -5, -6, -7, -8, -9, -10, -11, * -12, -13, -14, -15, -16, -17, -18, -19, -20, -21, -22, -23, -24, * -25, -26, -27, -28 * }; * * int ol; * double mi; * * for (ol = 0; ol < 128; ol++) { * if (ol < 5) { // smoothly ramp from 0.0 at 0 to the proper value at 5 * mi = pow(2.0, ( (33.0/16.0) - ((double)tl_table[5]/8.0) - 1.0)); * mi = mi * ((double)ol / 5.0); * } else { * mi = pow(2.0, ( (33.0/16.0) - ((double)tl_table[ol]/8.0) - 1.0)); * } * #ifndef HEXTER_USE_FLOATING_POINT * printf(" %6d,", DOUBLE_TO_FP(mi)); * #else * printf(" %g,", mi); * #endif * } */ dx7_sample_t dx7_voice_eg_ol_to_mod_index_table[257] = { #ifndef HEXTER_USE_FLOATING_POINT /* phase modulation index, expressed in s7.24 fixed point */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 659, 1319, 1978, 2638, 3298, 4277, 5086, 6049, 7193, 8554, 10173, 12098, 14387, 17109, 20346, 22188, 24196, 28774, 31378, 37315, 40693, 44376, 48392, 52772, 57548, 62757, 68437, 74631, 81386, 88752, 96785, 105545, 115097, 125514, 136875, 149263, 162772, 177504, 193570, 211090, 230195, 251029, 273750, 298526, 325545, 355009, 387141, 422180, 460390, 502059, 547500, 597053, 651091, 710019, 774282, 844360, 920781, 1004119, 1095000, 1194106, 1302182, 1420039, 1548564, 1688721, 1841563, 2008239, 2190000, 2388212, 2604364, 2840079, 3097128, 3377443, 3683127, 4016479, 4380001, 4776425, 5208729, 5680159, 6194257, 6754886, 7366255, 8032958, 8760003, 9552851, 10417458, 11360318, 12388515, 13509772, 14732510, 16065917, 17520006, 19105702, 20834916, 22720637, 24777031, 27019544, 29465021, 32131834, 35040013, 38211405, 41669833, 45441275, 49554062, 54039088, 58930043, 64263668, 70080027, 76422811, 83339667, 90882551, 99108124, 108078176, 117860087, 128527336, 140160054, 152845623, 166679334, 181765102, 198216249, 216156353, 235720174, 257054673, 280320108, 305691246, 333358668, 363530205, 396432499, 396432499 #else /* HEXTER_USE_FLOATING_POINT */ 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 3.93186e-05f, 7.86372e-05f, 0.000117956f, 0.000157274f, 0.000196593f, 0.00025495f, 0.000303188f, 0.000360553f, 0.000428773f, 0.000509899f, 0.000606376f, 0.000721107f, 0.000857545f, 0.0010198f, 0.00121275f, 0.00132252f, 0.00144221f, 0.00171509f, 0.00187032f, 0.0022242f, 0.0024255f, 0.00264503f, 0.00288443f, 0.00314549f, 0.00343018f, 0.00374064f, 0.00407919f, 0.00444839f, 0.00485101f, 0.00529006f, 0.00576885f, 0.00629098f, 0.00686036f, 0.00748128f, 0.00815839f, 0.00889679f, 0.00970201f, 0.0105801f, 0.0115377f, 0.012582f, 0.0137207f, 0.0149626f, 0.0163168f, 0.0177936f, 0.019404f, 0.0211602f, 0.0230754f, 0.0251639f, 0.0274414f, 0.0299251f, 0.0326336f, 0.0355871f, 0.0388081f, 0.0423205f, 0.0461508f, 0.0503278f, 0.0548829f, 0.0598502f, 0.0652671f, 0.0711743f, 0.0776161f, 0.084641f, 0.0923016f, 0.100656f, 0.109766f, 0.1197f, 0.130534f, 0.142349f, 0.155232f, 0.169282f, 0.184603f, 0.201311f, 0.219532f, 0.239401f, 0.261068f, 0.284697f, 0.310464f, 0.338564f, 0.369207f, 0.402623f, 0.439063f, 0.478802f, 0.522137f, 0.569394f, 0.620929f, 0.677128f, 0.738413f, 0.805245f, 0.878126f, 0.957603f, 1.04427f, 1.13879f, 1.24186f, 1.35426f, 1.47683f, 1.61049f, 1.75625f, 1.91521f, 2.08855f, 2.27758f, 2.48372f, 2.70851f, 2.95365f, 3.22098f, 3.5125f, 3.83041f, 4.1771f, 4.55515f, 4.96743f, 5.41702f, 5.9073f, 6.44196f, 7.02501f, 7.66083f, 8.35419f, 9.11031f, 9.93486f, 10.834f, 11.8146f, 12.8839f, 14.05f, 15.3217f, 16.7084f, 18.2206f, 19.8697f, 21.6681f, 23.6292f, 23.6292f #endif /* HEXTER_USE_FLOATING_POINT */ }; /* This table lists the output level adjustment needed for a certain * velocity, expressed in output level units per unit of velocity * sensitivity. It is based on measurements I took from my TX7. */ float dx7_voice_velocity_ol_adjustment[128] = { -99.0, -10.295511, -9.709229, -9.372207, -9.121093, -8.629703, -8.441805, -8.205647, -7.810857, -7.653259, -7.299901, -7.242308, -6.934396, -6.727051, -6.594723, -6.427755, -6.275133, -6.015212, -5.843023, -5.828787, -5.725659, -5.443202, -5.421110, -5.222133, -5.160615, -5.038265, -4.948225, -4.812105, -4.632120, -4.511531, -4.488645, -4.370043, -4.370610, -4.058591, -4.066902, -3.952988, -3.909686, -3.810096, -3.691883, -3.621306, -3.527286, -3.437519, -3.373512, -3.339195, -3.195983, -3.167622, -3.094788, -2.984045, -2.937463, -2.890713, -2.890660, -2.691874, -2.649229, -2.544696, -2.498147, -2.462573, -2.396637, -2.399795, -2.236338, -2.217625, -2.158336, -2.135569, -1.978521, -1.913965, -1.937082, -1.752275, -1.704013, -1.640514, -1.598791, -1.553859, -1.512187, -1.448088, -1.450443, -1.220567, -1.182340, -1.123139, -1.098469, -1.020642, -0.973039, -0.933279, -0.938035, -0.757380, -0.740860, -0.669721, -0.681526, -0.555390, -0.519321, -0.509318, -0.456936, -0.460622, -0.290578, -0.264393, -0.252716, -0.194141, -0.153566, -0.067842, -0.033402, -0.054947, 0.012860, 0.000000, -0.009715, 0.236054, 0.273956, 0.271968, 0.330177, 0.345427, 0.352333, 0.433861, 0.442952, 0.476411, 0.539632, 0.525355, 0.526115, 0.707022, 0.701551, 0.734875, 0.739149, 0.794320, 0.801578, 0.814225, 0.818939, 0.897102, 0.895082, 0.927998, 0.929797, 0.956112, 0.956789, 0.958121 }; /* This table converts LFO speed to frequency in Hz. It is based on * interpolation of Jamie Bullock's measurements. */ float dx7_voice_lfo_frequency[128] = { 0.062506, 0.124815, 0.311474, 0.435381, 0.619784, 0.744396, 0.930495, 1.116390, 1.284220, 1.496880, 1.567830, 1.738994, 1.910158, 2.081322, 2.252486, 2.423650, 2.580668, 2.737686, 2.894704, 3.051722, 3.208740, 3.366820, 3.524900, 3.682980, 3.841060, 3.999140, 4.159420, 4.319700, 4.479980, 4.640260, 4.800540, 4.953584, 5.106628, 5.259672, 5.412716, 5.565760, 5.724918, 5.884076, 6.043234, 6.202392, 6.361550, 6.520044, 6.678538, 6.837032, 6.995526, 7.154020, 7.300500, 7.446980, 7.593460, 7.739940, 7.886420, 8.020588, 8.154756, 8.288924, 8.423092, 8.557260, 8.712624, 8.867988, 9.023352, 9.178716, 9.334080, 9.669644, 10.005208, 10.340772, 10.676336, 11.011900, 11.963680, 12.915460, 13.867240, 14.819020, 15.770800, 16.640240, 17.509680, 18.379120, 19.248560, 20.118000, 21.040700, 21.963400, 22.886100, 23.808800, 24.731500, 25.759740, 26.787980, 27.816220, 28.844460, 29.872700, 31.228200, 32.583700, 33.939200, 35.294700, 36.650200, 37.812480, 38.974760, 40.137040, 41.299320, 42.461600, 43.639800, 44.818000, 45.996200, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400 }; /* This table converts pitch modulation sensitivity to semitones at full * modulation (assuming a perfectly linear pitch mod depth to pitch * relationship). It is from a simple averaging of Jamie Bullock's * TX-data-1/PMD and TX-data-2/ENV data, and ignores the apparent ~0.1 * semitone positive bias that Jamie observed. [-FIX- smbolton: my * inclination would be to call this bias, if it's reproducible, a * non-desirable 'bug', and _not_ implement it in hexter. And, at * least for my own personal build, I'd change that PMS=7 value to a * full octave, since that's one thing that's always bugged me about * my TX7. Thoughts? ] */ float dx7_voice_pms_to_semitones[8] = { 0.0, 0.450584, 0.900392, 1.474744, 2.587385, 4.232292, 6.982097, /* 11.722111 */ 12.0 }; /* This table converts amplitude modulation depth to output level * reduction at full modulation with an amplitude modulation sensitivity * of 3. It was constructed from regression of a very few data points, * using this code: * perl -e 'for ($i = 0; $i <= 99; $i++) { printf " %f,\n", exp($i * 0.0428993 - 0.285189); }' >x.c * and is probably rather rough in its accuracy. -FIX- */ float dx7_voice_amd_to_ol_adjustment[100] = { 0.0, 0.784829, 0.819230, 0.855139, 0.892622, 0.931748, 0.972589, 1.015221, 1.059721, 1.106171, 1.154658, 1.205270, 1.258100, 1.313246, 1.370809, 1.430896, 1.493616, 1.559085, 1.627424, 1.698759, 1.773220, 1.850945, 1.932077, 2.016765, 2.105166, 2.197441, 2.293761, 2.394303, 2.499252, 2.608801, 2.723152, 2.842515, 2.967111, 3.097167, 3.232925, 3.374633, 3.522552, 3.676956, 3.838127, 4.006362, 4.181972, 4.365280, 4.556622, 4.756352, 4.964836, 5.182458, 5.409620, 5.646738, 5.894251, 6.152612, 6.422298, 6.703805, 6.997652, 7.304378, 7.624549, 7.958754, 8.307609, 8.671754, 9.051861, 9.448629, 9.862789, 10.295103, 10.746365, 11.217408, 11.709099, 12.222341, 12.758080, 13.317302, 13.901036, 14.510357, 15.146387, 15.810295, 16.503304, 17.226690, 17.981783, 18.769975, 19.592715, 20.451518, 21.347965, 22.283705, 23.260462, 24.280032, 25.344294, 26.455204, 27.614809, 28.825243, 30.088734, 31.407606, 32.784289, 34.221315, 35.721330, 37.287095, 38.921492, 40.627529, 42.408347, 44.267222, 46.207578, 48.232984, 50.347169, 52.75 }; /* This table converts modulation source sensitivity (e.g. 'foot * controller sensitivity') into output level reduction at full modulation * with amplitude modulation sensitivity 3. It's basically just the above * table scaled for 0 to 15 instead of 0 to 99. */ float dx7_voice_mss_to_ol_adjustment[16] = { 0.0, 0.997948, 1.324562, 1.758071, 2.333461, 3.097167, 4.110823, 5.456233, 7.241976, 9.612164, 12.758080, 16.933606, 22.475719, 29.831681, 39.595137, 52.75 }; hexter-version_1.1.0/src/gui_callbacks.c000066400000000000000000001004061325353653200203030ustar00rootroot00000000000000/* hexter DSSI software synthesizer GUI * * Copyright (C) 2004, 2009, 2012, 2018 Sean Bolton and others. * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #define _DEFAULT_SOURCE 1 #define _ISOC99_SOURCE 1 #include #include #include #include #include #include #include #include #include "hexter_types.h" #include "hexter.h" #include "dx7_voice.h" #include "dx7_voice_data.h" #include "gui_main.h" #include "gui_callbacks.h" #include "gui_data.h" #include "gui_interface.h" #include "gui_midi.h" #include "gui_patch_edit.h" static int internal_gui_update_only = 0; static unsigned char test_note_noteon_key = 60; static int test_note_noteoff_key = -1; static unsigned char test_note_velocity = 84; static int export_file_type; static int export_file_start; static int export_file_end; static gchar *file_selection_last_filename = NULL; extern char *project_directory; void file_selection_set_path(GtkWidget *file_selection) { if (file_selection_last_filename) { gtk_file_selection_set_filename(GTK_FILE_SELECTION(file_selection), file_selection_last_filename); } else if (project_directory && strlen(project_directory)) { if (project_directory[strlen(project_directory) - 1] != '/') { char buffer[PATH_MAX]; snprintf(buffer, PATH_MAX, "%s/", project_directory); gtk_file_selection_set_filename(GTK_FILE_SELECTION(file_selection), buffer); } else { gtk_file_selection_set_filename(GTK_FILE_SELECTION(file_selection), project_directory); } } } void on_menu_import_activate (GtkMenuItem *menuitem, gpointer user_data) { gtk_widget_hide(import_file_position_window); gtk_widget_hide(export_file_type_window); gtk_widget_hide(export_file_selection); file_selection_set_path(import_file_selection); gtk_widget_show(import_file_selection); } void on_menu_export_activate (GtkMenuItem *menuitem, gpointer user_data) { gtk_widget_hide(import_file_selection); gtk_widget_hide(import_file_position_window); gtk_widget_hide(export_file_selection); gtk_signal_emit_by_name (GTK_OBJECT (export_file_start_spin_adj), "value_changed"); gtk_signal_emit_by_name (GTK_OBJECT (export_file_end_spin_adj), "value_changed"); gtk_widget_show(export_file_type_window); } void on_menu_quit_activate (GtkMenuItem *menuitem, gpointer user_data) { gtk_main_quit(); } void on_menu_edit_activate(GtkMenuItem *menuitem, gpointer user_data) { if (!GTK_WIDGET_MAPPED(editor_window)) gtk_widget_show(editor_window); else gdk_window_raise(editor_window->window); } void on_menu_about_activate (GtkMenuItem *menuitem, gpointer user_data) { char buf[512]; snprintf(buf, 512, "This program licensed under the GNU General Public License v2.\n" "See the enclosed file COPYING for details. NO WARRANTY.\n\n" "hexter version: " VERSION "\n" "hexter URL: %s\n" "host URL: %s\n", osc_self_url, osc_host_url); /* -FIX- include credits for Jamie Bullock and Martin Tarenskeen */ gtk_label_set_text (GTK_LABEL (about_label), buf); gtk_widget_show(about_window); } gint on_delete_event_wrapper( GtkWidget *widget, GdkEvent *event, gpointer data ) { void (*handler)(GtkWidget *, gpointer) = (void (*)(GtkWidget *, gpointer))data; /* call our 'close', 'dismiss' or 'cancel' callback (which must not need the user data) */ (*handler)(widget, NULL); /* tell GTK+ to NOT emit 'destroy' */ return TRUE; } void on_import_file_ok( GtkWidget *widget, gpointer data ) { gtk_widget_hide(import_file_selection); file_selection_last_filename = (gchar *)gtk_file_selection_get_filename( GTK_FILE_SELECTION(import_file_selection)); GUIDB_MESSAGE(DB_GUI, " on_import_file_ok: file '%s' selected\n", file_selection_last_filename); /* update patch name */ gtk_signal_emit_by_name (GTK_OBJECT (import_file_position_spin_adj), "value_changed"); gtk_widget_show(import_file_position_window); } void on_import_file_cancel( GtkWidget *widget, gpointer data ) { GUIDB_MESSAGE(DB_GUI, ": on_import_file_cancel called\n"); gtk_widget_hide(import_file_selection); } /* * on_position_change * * used by the both import file position and edit save position dialogs * data is a pointer to the dialog's patch name label */ void on_position_change(GtkWidget *widget, gpointer data) { char name[21]; int position = lrintf(GTK_ADJUSTMENT(widget)->value); GtkWidget *label = (GtkWidget *)data; patch_edit_copy_name_to_utf8(name, patches[position].data, TRUE); gtk_label_set_text (GTK_LABEL (label), name); } void on_import_file_position_ok( GtkWidget *widget, gpointer data ) { int position = lrintf(GTK_ADJUSTMENT(import_file_position_spin_adj)->value); char *message; gtk_widget_hide(import_file_position_window); GUIDB_MESSAGE(DB_GUI, " on_import_file_position_ok: position %d\n", position); if (gui_data_load(file_selection_last_filename, position, &message)) { /* successfully loaded at least one patch */ rebuild_patches_clist(); if (!edit_buffer_active) { dx7_patch_unpack(patches, edit_buffer.program, edit_buffer.voice); /* set all the patch edit widgets to match */ patch_edit_update_editors(); } display_notice("Load Patch File succeeded:", message); gui_data_send_dirty_patch_sections(); } else { /* didn't load anything successfully */ display_notice("Load Patch File failed:", message); } free(message); } void on_import_file_position_cancel( GtkWidget *widget, gpointer data ) { GUIDB_MESSAGE(DB_GUI, ": on_import_file_position_cancel called\n"); gtk_widget_hide(import_file_position_window); } void on_export_file_type_press( GtkWidget *widget, gpointer data ) { int type = GPOINTER_TO_INT(data); int start, end; GUIDB_MESSAGE(DB_GUI, ": on_export_file_type_press called with %d\n", type); if (type == 0) { /* sys-ex */ start = lrintf(GTK_ADJUSTMENT(export_file_start_spin_adj)->value); end = lrintf(GTK_ADJUSTMENT(export_file_end_spin_adj)->value); (GTK_ADJUSTMENT(export_file_start_spin_adj))->upper = 96.0f; gtk_signal_emit_by_name (GTK_OBJECT (export_file_start_spin_adj), "changed"); if (start > 96) { (GTK_ADJUSTMENT(export_file_start_spin_adj))->value = 96.0f; (GTK_ADJUSTMENT(export_file_end_spin_adj))->value = 127.0f; gtk_signal_emit_by_name (GTK_OBJECT (export_file_start_spin_adj), "value_changed"); gtk_signal_emit_by_name (GTK_OBJECT (export_file_end_spin_adj), "value_changed"); } else if (end != start + 31) { (GTK_ADJUSTMENT(export_file_end_spin_adj))->value = (float)(start + 31); gtk_signal_emit_by_name (GTK_OBJECT (export_file_end_spin_adj), "value_changed"); } gtk_widget_set_sensitive (export_file_end_label, FALSE); gtk_widget_set_sensitive (export_file_end_spin, FALSE); } else { /* raw */ (GTK_ADJUSTMENT(export_file_start_spin_adj))->upper = 127.0f; gtk_signal_emit_by_name (GTK_OBJECT (export_file_start_spin_adj), "changed"); gtk_widget_set_sensitive (export_file_end_label, TRUE); gtk_widget_set_sensitive (export_file_end_spin, TRUE); } } /* * on_export_file_position_change */ void on_export_file_position_change(GtkWidget *widget, gpointer data) { int which = GPOINTER_TO_INT(data); int type = GTK_TOGGLE_BUTTON (export_file_type_sysex)->active ? 0 : 1; int start = lrintf(GTK_ADJUSTMENT(export_file_start_spin_adj)->value); int end = lrintf(GTK_ADJUSTMENT(export_file_end_spin_adj)->value); char name[21]; if (which == 0) { /* start */ if (type == 0) { /* sys-ex */ if (end != start + 31) { (GTK_ADJUSTMENT(export_file_end_spin_adj))->value = (float)(start + 31); gtk_signal_emit_by_name (GTK_OBJECT (export_file_end_spin_adj), "value_changed"); } } else { /* raw */ if (end < start) { (GTK_ADJUSTMENT(export_file_end_spin_adj))->value = (float)start; gtk_signal_emit_by_name (GTK_OBJECT (export_file_end_spin_adj), "value_changed"); } } patch_edit_copy_name_to_utf8(name, patches[start].data, TRUE); gtk_label_set_text (GTK_LABEL (export_file_start_name), name); } else { /* end */ if (type == 1) { /* raw */ if (end < start) { (GTK_ADJUSTMENT(export_file_start_spin_adj))->value = (float)end; gtk_signal_emit_by_name (GTK_OBJECT (export_file_start_spin_adj), "value_changed"); } } patch_edit_copy_name_to_utf8(name, patches[end].data, TRUE); gtk_label_set_text (GTK_LABEL (export_file_end_name), name); } } void on_export_file_type_ok( GtkWidget *widget, gpointer data ) { export_file_type = GTK_TOGGLE_BUTTON (export_file_type_sysex)->active ? 0 : 1; export_file_start = lrintf(GTK_ADJUSTMENT(export_file_start_spin_adj)->value); export_file_end = lrintf(GTK_ADJUSTMENT(export_file_end_spin_adj)->value); GUIDB_MESSAGE(DB_GUI, " on_export_file_type_ok: type %s, start %d, end %d\n", export_file_type == 0 ? "sys-ex" : "raw", export_file_start, export_file_end); gtk_widget_hide(export_file_type_window); file_selection_set_path(export_file_selection); gtk_widget_show(export_file_selection); } void on_export_file_type_cancel( GtkWidget *widget, gpointer data ) { GUIDB_MESSAGE(DB_GUI, ": on_export_file_type_cancel called\n"); gtk_widget_hide(export_file_type_window); } void on_export_file_ok( GtkWidget *widget, gpointer data ) { char *message; gtk_widget_hide(export_file_selection); file_selection_last_filename = (gchar *)gtk_file_selection_get_filename( GTK_FILE_SELECTION(export_file_selection)); GUIDB_MESSAGE(DB_GUI, " on_export_file_ok: file '%s' selected\n", file_selection_last_filename); if (gui_data_save(file_selection_last_filename, export_file_type, export_file_start, export_file_end, &message)) { display_notice("Save Patch File succeeded:", message); } else { /* problem with save */ display_notice("Save Patch File failed:", message); } free(message); } void on_export_file_cancel( GtkWidget *widget, gpointer data ) { GUIDB_MESSAGE(DB_GUI, ": on_export_file_cancel called\n"); gtk_widget_hide(export_file_selection); } void on_about_dismiss( GtkWidget *widget, gpointer data ) { gtk_widget_hide(about_window); } void on_patches_selection(GtkWidget *clist, gint row, gint column, GdkEventButton *event, gpointer data ) { if (internal_gui_update_only) { /* GUIDB_MESSAGE(DB_GUI, " on_patches_selection: skipping further action\n"); */ return; } current_program = row; GUIDB_MESSAGE(DB_GUI, " on_patches_selection: patch %d selected\n", current_program); if (current_program != edit_buffer.program) { if (edit_buffer_active) { gui_data_send_edit_buffer_off(); edit_buffer_active = FALSE; } edit_buffer.program = current_program; dx7_patch_unpack(patches, edit_buffer.program, edit_buffer.voice); /* set all the patch edit widgets to match */ patch_edit_update_editors(); /* also updates status */ } lo_send(osc_host_address, osc_program_path, "ii", 0, current_program); } void on_tuning_change( GtkWidget *widget, gpointer data ) { float value = GTK_ADJUSTMENT(widget)->value; if (internal_gui_update_only) { /* GUIDB_MESSAGE(DB_GUI, " on_tuning_change: skipping further action\n"); */ return; } GUIDB_MESSAGE(DB_GUI, " on_tuning_change: tuning set to %10.6f\n", value); lo_send(osc_host_address, osc_control_path, "if", HEXTER_PORT_TUNING, value); } void on_volume_change( GtkWidget *widget, gpointer data ) { float value = GTK_ADJUSTMENT(widget)->value; if (internal_gui_update_only) { /* GUIDB_MESSAGE(DB_GUI, " on_volume_change: skipping further action\n"); */ return; } GUIDB_MESSAGE(DB_GUI, " on_volume_change: volume set to %10.6f\n", value); lo_send(osc_host_address, osc_control_path, "if", HEXTER_PORT_VOLUME, value); } void on_polyphony_change(GtkWidget *widget, gpointer data) { int polyphony = lrintf(GTK_ADJUSTMENT(widget)->value); char buffer[4]; if (internal_gui_update_only) { /* GUIDB_MESSAGE(DB_GUI, " on_polyphony_change: skipping further action\n"); */ return; } GUIDB_MESSAGE(DB_GUI, " on_polyphony_change: polyphony set to %d\n", polyphony); snprintf(buffer, 4, "%d", polyphony); lo_send(osc_host_address, osc_configure_path, "ss", "polyphony", buffer); } void on_mono_mode_activate(GtkWidget *widget, gpointer data) { char *mode = data; GUIDB_MESSAGE(DB_GUI, " on_mono_mode_activate: monophonic mode '%s' selected\n", mode); lo_send(osc_host_address, osc_configure_path, "ss", "monophonic", mode); } void on_compat059_toggled(GtkWidget *widget, gpointer data) { int state = GTK_TOGGLE_BUTTON (widget)->active; gtk_widget_set_sensitive (performance_frame, !state); if (internal_gui_update_only) { /* GUIDB_MESSAGE(DB_GUI, " on_compat059_toggled: skipping further action\n"); */ return; } GUIDB_MESSAGE(DB_GUI, " on_compat059_toggled: button now %s\n", (state ? "on" : "off")); send_performance(); } #ifdef HEXTER_DEBUG_CONTROL void on_test_changed(GtkObject *adj, gpointer data) { int value = (int)GTK_ADJUSTMENT(adj)->value; unsigned char midi[4]; #if 1 midi[0] = 0; midi[1] = 0xB0; /* control change */ midi[2] = 0x63; /* NRPN MSB */ midi[3] = 0; lo_send(osc_host_address, osc_midi_path, "m", midi); midi[2] = 0x62; /* NRPN LSB */ midi[3] = 40; lo_send(osc_host_address, osc_midi_path, "m", midi); midi[2] = 0x06; /* Data Entry MSB */ midi[3] = (value / 128) & 127; lo_send(osc_host_address, osc_midi_path, "m", midi); midi[2] = 0x26; /* Data Entry LSB */ midi[3] = value & 127; lo_send(osc_host_address, osc_midi_path, "m", midi); #else midi[0] = 0; midi[1] = 0xB0; /* control change */ midi[2] = 0x50; /* GP5 */ midi[3] = (value / 128) & 127; lo_send(osc_host_address, osc_midi_path, "m", midi); #endif } #endif /* HEXTER_DEBUG_CONTROL */ #ifdef MIDI_ALSA void on_sysex_enable_toggled( GtkWidget *widget, gpointer data ) { int state = GTK_TOGGLE_BUTTON (widget)->active; if (internal_gui_update_only) { /* GUIDB_MESSAGE(DB_GUI, " on_sysex_enable_toggled: skipping further action\n"); */ return; } GUIDB_MESSAGE(DB_GUI, " on_sysex_enable_toggled: button now %s\n", (state ? "on" : "off")); if (state) { /* enable */ char *message; char buf[32]; if (sysex_enabled) return; if (sysex_start(on_sysex_receipt, &message)) { gtk_widget_set_sensitive (sysex_channel_label, TRUE); gtk_widget_set_sensitive (sysex_channel_spin, TRUE); snprintf(buf, 32, " Listening on port %d:%d", sysex_seq_client_id, sysex_seq_port_id); gtk_label_set_text (GTK_LABEL (sysex_status_label), buf); } else { display_notice("Error: could not start MIDI client for sys-ex reception.", message); internal_gui_update_only = 1; gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widget), 0); /* causes call to on_sysex_enable_toggled callback */ internal_gui_update_only = 0; } } else { /* disable */ if (!sysex_enabled) return; sysex_stop(); gtk_widget_set_sensitive (sysex_channel_label, FALSE); gtk_widget_set_sensitive (sysex_channel_spin, FALSE); gtk_label_set_text (GTK_LABEL (sysex_status_label), ""); } } void on_sysex_channel_change(GtkWidget *widget, gpointer data) { sysex_receive_channel = lrintf(GTK_ADJUSTMENT(widget)->value) - 1; GUIDB_MESSAGE(DB_GUI, " on_sysex_channel_change: channel now %d\n", sysex_receive_channel + 1); } #endif /* MIDI_ALSA */ void on_edit_save_position_ok(GtkWidget *widget, gpointer data) { int position = lrintf(GTK_ADJUSTMENT(edit_save_position_spin_adj)->value); gtk_widget_hide(edit_save_position_window); GUIDB_MESSAGE(DB_GUI, " on_edit_save_position_ok: position %d\n", position); /* Hmm, while the edit save position dialog is shown, there's nothing * to prevent program changes or patch configures from causing the edit * buffer to be overwritten.... */ edit_buffer.program = position; dx7_patch_pack(edit_buffer.voice, patches, position); gui_data_mark_dirty_patch_sections(position, position); gui_data_send_dirty_patch_sections(); /* We make the saved-to program the new current one, and clear the * edit_buffer overlay if active, because this makes the system's * state more intuitively understandable. */ if (position != current_program) { current_program = position; lo_send(osc_host_address, osc_program_path, "ii", 0, current_program); } if (edit_buffer_active) { edit_buffer_active = FALSE; gui_data_send_edit_buffer_off(); } rebuild_patches_clist(); patch_edit_update_status(); } void on_edit_save_position_cancel(GtkWidget *widget, gpointer data) { GUIDB_MESSAGE(DB_GUI, ": on_edit_save_position_cancel called\n"); gtk_widget_hide(edit_save_position_window); } void send_performance(void) { uint8_t perf_buffer[DX7_PERFORMANCE_SIZE]; uint8_t p; hexter_data_performance_init(perf_buffer); perf_buffer[0] = (GTK_TOGGLE_BUTTON (compat059_button)->active) ? 1 : 0; /* 0.5.9 compatibility */ perf_buffer[3] = lrintf(GTK_ADJUSTMENT(performance_spin_adjustments[PP_PITCH_BEND_RANGE])->value); perf_buffer[5] = lrintf(GTK_ADJUSTMENT(performance_spin_adjustments[PP_PORTAMENTO_TIME])->value); perf_buffer[9] = lrintf(GTK_ADJUSTMENT(performance_spin_adjustments[PP_MOD_WHEEL_SENSITIVITY])->value); perf_buffer[11] = lrintf(GTK_ADJUSTMENT(performance_spin_adjustments[PP_FOOT_SENSITIVITY])->value); perf_buffer[13] = lrintf(GTK_ADJUSTMENT(performance_spin_adjustments[PP_PRESSURE_SENSITIVITY])->value); perf_buffer[15] = lrintf(GTK_ADJUSTMENT(performance_spin_adjustments[PP_BREATH_SENSITIVITY])->value); p = (GTK_TOGGLE_BUTTON(performance_assign_widgets[PP_MOD_WHEEL_ASSIGN][0])->active ? 1 : 0) + (GTK_TOGGLE_BUTTON(performance_assign_widgets[PP_MOD_WHEEL_ASSIGN][1])->active ? 2 : 0) + (GTK_TOGGLE_BUTTON(performance_assign_widgets[PP_MOD_WHEEL_ASSIGN][2])->active ? 4 : 0); perf_buffer[10] = p; p = (GTK_TOGGLE_BUTTON(performance_assign_widgets[PP_FOOT_ASSIGN][0])->active ? 1 : 0) + (GTK_TOGGLE_BUTTON(performance_assign_widgets[PP_FOOT_ASSIGN][1])->active ? 2 : 0) + (GTK_TOGGLE_BUTTON(performance_assign_widgets[PP_FOOT_ASSIGN][2])->active ? 4 : 0); perf_buffer[12] = p; p = (GTK_TOGGLE_BUTTON(performance_assign_widgets[PP_PRESSURE_ASSIGN][0])->active ? 1 : 0) + (GTK_TOGGLE_BUTTON(performance_assign_widgets[PP_PRESSURE_ASSIGN][1])->active ? 2 : 0) + (GTK_TOGGLE_BUTTON(performance_assign_widgets[PP_PRESSURE_ASSIGN][2])->active ? 4 : 0); perf_buffer[14] = p; p = (GTK_TOGGLE_BUTTON(performance_assign_widgets[PP_BREATH_ASSIGN][0])->active ? 1 : 0) + (GTK_TOGGLE_BUTTON(performance_assign_widgets[PP_BREATH_ASSIGN][1])->active ? 2 : 0) + (GTK_TOGGLE_BUTTON(performance_assign_widgets[PP_BREATH_ASSIGN][2])->active ? 4 : 0); perf_buffer[16] = p; gui_data_send_performance_buffer(perf_buffer); } void on_performance_spin_change(GtkWidget *widget, gpointer data) { if (internal_gui_update_only) { GUIDB_MESSAGE(DB_GUI, " on_performance_spin_change: skipping further action\n"); return; } GUIDB_MESSAGE(DB_GUI, " on_performance_spin_change: '%s' set to %ld\n", performance_spin_names[GPOINTER_TO_INT(data)], lrintf(GTK_ADJUSTMENT(widget)->value)); send_performance(); } void on_performance_assign_toggled(GtkWidget *widget, gpointer data) { if (internal_gui_update_only) { GUIDB_MESSAGE(DB_GUI, " on_performance_assign_toggled: skipping further action\n"); return; } GUIDB_MESSAGE(DB_GUI, " on_performance_assign_toggled: '%s' now P%d A%d E%d\n", performance_assign_names[GPOINTER_TO_INT(data)], GTK_TOGGLE_BUTTON (performance_assign_widgets[GPOINTER_TO_INT(data)][0])->active ? 1 : 0, GTK_TOGGLE_BUTTON (performance_assign_widgets[GPOINTER_TO_INT(data)][1])->active ? 1 : 0, GTK_TOGGLE_BUTTON (performance_assign_widgets[GPOINTER_TO_INT(data)][2])->active ? 1 : 0); send_performance(); } void on_test_note_slider_change(GtkWidget *widget, gpointer data) { unsigned char value = lrintf(GTK_ADJUSTMENT(widget)->value); if (GPOINTER_TO_INT(data) == 0) { /* key */ test_note_noteon_key = value; GUIDB_MESSAGE(DB_GUI, " on_test_note_slider_change: new test note key %d\n", test_note_noteon_key); } else { /* velocity */ test_note_velocity = value; GUIDB_MESSAGE(DB_GUI, " on_test_note_slider_change: new test note velocity %d\n", test_note_velocity); } } static void send_midi(unsigned char b0, unsigned char b1, unsigned char b2) { unsigned char midi[4]; midi[0] = 0; midi[1] = b0; midi[2] = b1; midi[3] = b2; lo_send(osc_host_address, osc_midi_path, "m", midi); } void release_test_note(void) { if (test_note_noteoff_key >= 0) { send_midi(0x80, test_note_noteoff_key, 0x40); test_note_noteoff_key = -1; } } void on_test_note_button_press(GtkWidget *widget, gpointer data) { int state = GPOINTER_TO_INT(data); GUIDB_MESSAGE(DB_GUI, " on_test_note_button_press: button %s\n", state ? "pressed" : "released") if (state) { /* button pressed */ if (test_note_noteoff_key < 0) { send_midi(0x90, test_note_noteon_key, test_note_velocity); test_note_noteoff_key = test_note_noteon_key; } } else { /* button released */ release_test_note(); } } void display_notice(char *message1, char *message2) { gtk_label_set_text (GTK_LABEL (notice_label_1), message1); gtk_label_set_text (GTK_LABEL (notice_label_2), message2); gtk_widget_show(notice_window); } void on_notice_dismiss( GtkWidget *widget, gpointer data ) { gtk_widget_hide(notice_window); } void update_voice_widget(int port, float value) { if (port == HEXTER_PORT_TUNING) { if (value < 415.3f) { value = 415.3f; } else if (value > 466.2f) { value = 466.2f; } /* GUIDB_MESSAGE(DB_OSC, " update_voice_widget: change of 'Tuning' to %f\n", value); */ internal_gui_update_only = 1; GTK_ADJUSTMENT(tuning_adj)->value = value; gtk_signal_emit_by_name (GTK_OBJECT (tuning_adj), "value_changed"); /* causes call to on_voice_slider_change callback */ internal_gui_update_only = 0; } else if (port == HEXTER_PORT_VOLUME) { if (value < -70.0f) { value = -70.0f; } else if (value > 20.0f) { value = 20.0f; } /* GUIDB_MESSAGE(DB_OSC, " update_voice_widget: change of 'Volume' to %f\n", value); */ internal_gui_update_only = 1; GTK_ADJUSTMENT(volume_adj)->value = value; gtk_signal_emit_by_name (GTK_OBJECT (volume_adj), "value_changed"); /* causes call to on_voice_slider_change callback */ internal_gui_update_only = 0; } } void update_from_program_select(unsigned long bank, unsigned long program) { if (!bank && program < 128) { current_program = program; patches_clist_set_program(); /* If we receive a program change that doesn't match what's in the * edit buffer, then we clear the edit buffer. Note that the converse * is not done: if we receive an edit_buffer configure whose program * number does not match current_program, we don't change the program. */ if (program != edit_buffer.program) { if (edit_buffer_active) { gui_data_send_edit_buffer_off(); edit_buffer_active = FALSE; } edit_buffer.program = program; dx7_patch_unpack(patches, edit_buffer.program, edit_buffer.voice); /* set all the patch edit widgets to match */ patch_edit_update_editors(); /* also updates status */ } else patch_edit_update_status(); } else { /* out of range */ /* gtk_clist_unselect_all (GTK_CLIST(patches_clist)); */ } } void update_patches(const char *key, const char *value) { int section = key[7] - '0'; GUIDB_MESSAGE(DB_OSC, ": update_patches: received new '%s'\n", key); if (section < 0 || section > 3) return; if (!decode_7in6(value, 32 * sizeof(dx7_patch_t), (uint8_t *)&patches[section * 32])) { GUIDB_MESSAGE(DB_OSC, " update_patches: corrupt data!\n"); return; } patch_section_dirty[section] = 0; rebuild_patches_clist(); if (!edit_buffer_active && (edit_buffer.program / 32) == section) { dx7_patch_unpack(patches, edit_buffer.program, edit_buffer.voice); /* set all the patch edit widgets to match */ patch_edit_update_editors(); } } void update_edit_buffer(const char *value) { GUIDB_MESSAGE(DB_OSC, ": update_edit_buffer called\n"); if (!strcmp(value, "off")) { edit_buffer.program = current_program; dx7_patch_unpack(patches, current_program, edit_buffer.voice); edit_buffer_active = FALSE; patch_edit_update_editors(); } else { if (!decode_7in6(value, sizeof(edit_buffer), (uint8_t *)&edit_buffer)) { GUIDB_MESSAGE(DB_OSC, " update_edit_buffer: corrupt data!\n"); return; } edit_buffer_active = TRUE; patch_edit_update_editors(); } } void update_performance_spin(int parameter, uint8_t value, uint8_t max) { GtkObject *adjustment = performance_spin_adjustments[parameter]; GUIDB_MESSAGE(DB_OSC, ": update_performance_spin called for '%s' with %d\n", performance_spin_names[parameter], value); if (value <= max) { internal_gui_update_only = 1; GTK_ADJUSTMENT(adjustment)->value = (float)value; gtk_signal_emit_by_name (adjustment, "value_changed"); /* causes call to on_performance_spin_change callback */ internal_gui_update_only = 0; } } void update_performance_assign(int parameter, uint8_t bits) { GUIDB_MESSAGE(DB_OSC, ": update_performance_assign called for '%s' with %d\n", performance_assign_names[parameter], bits); if (bits <= 7) { internal_gui_update_only = 1; gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(performance_assign_widgets[parameter][0]), bits & 1 ? 1 : 0); /* causes call to on_performance_assign_toggled callback */ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(performance_assign_widgets[parameter][1]), bits & 2 ? 1 : 0); /* causes call to on_performance_assign_toggled callback */ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(performance_assign_widgets[parameter][2]), bits & 4 ? 1 : 0); /* causes call to on_performance_assign_toggled callback */ internal_gui_update_only = 0; } } void update_performance_widgets(uint8_t *performance) { update_performance_spin(PP_PITCH_BEND_RANGE, performance[3], 12); update_performance_spin(PP_PORTAMENTO_TIME, performance[5], 99); update_performance_spin(PP_MOD_WHEEL_SENSITIVITY, performance[9], 15); update_performance_spin(PP_FOOT_SENSITIVITY, performance[11], 15); update_performance_spin(PP_PRESSURE_SENSITIVITY, performance[13], 15); update_performance_spin(PP_BREATH_SENSITIVITY, performance[15], 15); update_performance_assign(PP_MOD_WHEEL_ASSIGN, performance[10]); update_performance_assign(PP_FOOT_ASSIGN, performance[12]); update_performance_assign(PP_PRESSURE_ASSIGN, performance[14]); update_performance_assign(PP_BREATH_ASSIGN, performance[16]); /* 0.5.9 compatibility */ internal_gui_update_only = 1; gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(compat059_button), performance[0] & 0x01); /* causes call to on_compat059_toggled callback */ internal_gui_update_only = 0; } void update_performance(const char *value) { uint8_t perf_buffer[DX7_PERFORMANCE_SIZE]; if (!decode_7in6(value, DX7_PERFORMANCE_SIZE, perf_buffer)) { GUIDB_MESSAGE(DB_OSC, " update_performance: corrupt data!\n"); return; } update_performance_widgets(perf_buffer); } void update_monophonic(const char *value) { int index; GUIDB_MESSAGE(DB_OSC, ": update_monophonic called with '%s'\n", value); if (!strcmp(value, "off")) { index = 0; } else if (!strcmp(value, "on")) { index = 1; } else if (!strcmp(value, "once")) { index = 2; } else if (!strcmp(value, "both")) { index = 3; } else { return; } gtk_option_menu_set_history(GTK_OPTION_MENU (monophonic_option_menu), index); /* updates optionmenu current selection, * without needing to send it a signal */ } void update_polyphony(const char *value) { int poly = atoi(value); GUIDB_MESSAGE(DB_OSC, ": update_polyphony called with '%s'\n", value); if (poly > 0 && poly < HEXTER_MAX_POLYPHONY) { internal_gui_update_only = 1; GTK_ADJUSTMENT(polyphony_adj)->value = (float)poly; gtk_signal_emit_by_name (GTK_OBJECT (polyphony_adj), "value_changed"); /* causes call to on_voice_slider_change callback */ internal_gui_update_only = 0; } } void patches_clist_set_program(void) { /* set active row */ internal_gui_update_only = 1; gtk_clist_select_row (GTK_CLIST(patches_clist), current_program, 0); internal_gui_update_only = 0; /* scroll window to show active row */ gtk_clist_moveto(GTK_CLIST(patches_clist), current_program, 0, 0, 0); } void rebuild_patches_clist(void) { char number[4], name[21]; char *data[2] = { number, name }; int i; GUIDB_MESSAGE(DB_GUI, ": rebuild_patches_clist called\n"); gtk_clist_freeze(GTK_CLIST(patches_clist)); gtk_clist_clear(GTK_CLIST(patches_clist)); for (i = 0; i < 128; i++) { snprintf(number, 4, "%d", i); patch_edit_copy_name_to_utf8(name, patches[i].data, TRUE); gtk_clist_append(GTK_CLIST(patches_clist), data); } /* kick GTK+ 2.4.x in the pants.... */ gtk_signal_emit_by_name (GTK_OBJECT (patches_clist), "check-resize"); gtk_clist_thaw(GTK_CLIST(patches_clist)); patches_clist_set_program(); } hexter-version_1.1.0/src/gui_callbacks.h000066400000000000000000000076011325353653200203130ustar00rootroot00000000000000/* hexter DSSI software synthesizer GUI * * Copyright (C) 2004, 2009, 2012 Sean Bolton and others. * * 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 _GUI_CALLBACKS_H #define _GUI_CALLBACKS_H #ifdef HAVE_CONFIG_H # include #endif #include #include #include "hexter.h" void on_menu_import_activate(GtkMenuItem *menuitem, gpointer user_data); void on_menu_export_activate(GtkMenuItem *menuitem, gpointer user_data); void on_menu_quit_activate(GtkMenuItem *menuitem, gpointer user_data); void on_menu_edit_activate(GtkMenuItem *menuitem, gpointer user_data); void on_menu_about_activate(GtkMenuItem *menuitem, gpointer user_data); gint on_delete_event_wrapper(GtkWidget *widget, GdkEvent *event, gpointer data); void on_import_file_ok(GtkWidget *widget, gpointer data); void on_import_file_cancel(GtkWidget *widget, gpointer data); void on_position_change(GtkWidget *widget, gpointer data); void on_import_file_position_ok(GtkWidget *widget, gpointer data); void on_import_file_position_cancel(GtkWidget *widget, gpointer data); void on_export_file_type_press(GtkWidget *widget, gpointer data); void on_export_file_position_change(GtkWidget *widget, gpointer data); void on_export_file_type_ok(GtkWidget *widget, gpointer data); void on_export_file_type_cancel(GtkWidget *widget, gpointer data); void on_export_file_ok(GtkWidget *widget, gpointer data); void on_export_file_cancel(GtkWidget *widget, gpointer data); void on_about_dismiss(GtkWidget *widget, gpointer data); void on_patches_selection(GtkWidget *clist, gint row, gint column, GdkEventButton *event, gpointer data); void on_tuning_change(GtkWidget *widget, gpointer data); void on_volume_change(GtkWidget *widget, gpointer data); void on_polyphony_change(GtkWidget *widget, gpointer data); void on_mono_mode_activate(GtkWidget *widget, gpointer data); void on_compat059_toggled(GtkWidget *widget, gpointer data); #ifdef HEXTER_DEBUG_CONTROL void on_test_changed(GtkObject *adj, gpointer data); #endif #ifdef MIDI_ALSA void on_sysex_enable_toggled(GtkWidget *widget, gpointer data); void on_sysex_channel_change(GtkWidget *widget, gpointer data); #endif /* MIDI_ALSA */ void on_edit_save_position_ok(GtkWidget *widget, gpointer data); void on_edit_save_position_cancel(GtkWidget *widget, gpointer data); void send_performance(void); void on_performance_spin_change(GtkWidget *widget, gpointer data); void on_performance_assign_toggled(GtkWidget *widget, gpointer data); void on_test_note_slider_change(GtkWidget *widget, gpointer data); void release_test_note(void); void on_test_note_button_press(GtkWidget *widget, gpointer data); void display_notice(char *message1, char *message2); void on_notice_dismiss(GtkWidget *widget, gpointer data); void update_voice_widget(int port, float value); void update_from_program_select(unsigned long bank, unsigned long program); void update_patches(const char *key, const char *value); void update_edit_buffer(const char *value); void update_performance_widgets(uint8_t *performance); void update_performance(const char *value); void update_monophonic(const char *value); void update_polyphony(const char *value); void patches_clist_set_program(void); void rebuild_patches_clist(void); #endif /* _GUI_CALLBACKS_H */ hexter-version_1.1.0/src/gui_data.c000066400000000000000000000400121325353653200172710ustar00rootroot00000000000000/* hexter DSSI software synthesizer GUI * * Copyright (C) 2004, 2009, 2011, 2012 Sean Bolton and others. * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include "hexter_types.h" #include "hexter.h" #include "dx7_voice.h" #include "gui_main.h" #include "dx7_voice_data.h" /* * dx7_bulk_dump_checksum */ int dx7_bulk_dump_checksum(uint8_t *data, int length) { int sum = 0; int i; for (i = 0; i < length; sum -= data[i++]); return sum & 0x7F; } /* * dx7_patchbank_load */ int dx7_patchbank_load(const char *filename, dx7_patch_t *firstpatch, int maxpatches, char **errmsg) { FILE *fp; long filelength; unsigned char *raw_patch_data = NULL; size_t filename_length; int count; int patchstart; int midshift; int datastart; int i; int op; /* this needs to 1) open and parse the file, 2a) if it's good, copy up * to maxpatches patches beginning at firstpath, and not touch errmsg, * 2b) if it's not good, set errmsg to a malloc'd error message that * the caller must free. */ if ((fp = fopen(filename, "rb")) == NULL) { if (errmsg) *errmsg = dssp_error_message("could not open file '%s' for reading: %s", filename, strerror(errno)); return 0; } if (fseek(fp, 0, SEEK_END) || (filelength = ftell(fp)) == -1 || fseek(fp, 0, SEEK_SET)) { if (errmsg) *errmsg = dssp_error_message("couldn't get length of patch file: %s", strerror(errno)); fclose(fp); return 0; } if (filelength == 0) { if (errmsg) *errmsg = strdup("patch file has zero length"); fclose(fp); return 0; } else if (filelength > 2097152) { if (errmsg) *errmsg = strdup("patch file is too large"); fclose(fp); return 0; } else if (filelength < 128) { if (errmsg) *errmsg = strdup ("patch file is too small"); fclose (fp); return 0; } if (!(raw_patch_data = (unsigned char *)malloc(filelength))) { if (errmsg) *errmsg = strdup("couldn't allocate memory for raw patch file"); fclose(fp); return 0; } if (fread(raw_patch_data, 1, filelength, fp) != (size_t)filelength) { if (errmsg) *errmsg = dssp_error_message("short read on patch file: %s", strerror(errno)); free(raw_patch_data); fclose(fp); return 0; } fclose(fp); filename_length = strlen (filename); /* check if the file is a standard MIDI file */ if (raw_patch_data[0] == 0x4d && /* "M" */ raw_patch_data[1] == 0x54 && /* "T" */ raw_patch_data[2] == 0x68 && /* "h" */ raw_patch_data[3] == 0x64) /* "d" */ midshift = 2; else midshift = 0; /* scan SysEx or MIDI file for SysEx header(s) */ count = 0; datastart = 0; for (patchstart = 0; patchstart + midshift + 5 < filelength; patchstart++) { if (raw_patch_data[patchstart] == 0xf0 && raw_patch_data[patchstart + 1 + midshift] == 0x43 && raw_patch_data[patchstart + 2 + midshift] <= 0x0f && raw_patch_data[patchstart + 3 + midshift] == 0x09 && raw_patch_data[patchstart + 5 + midshift] == 0x00 && patchstart + 4103 + midshift < filelength && raw_patch_data[patchstart + 4103 + midshift] == 0xf7) { /* DX7 32 voice dump */ memmove(raw_patch_data + count * DX7_VOICE_SIZE_PACKED, raw_patch_data + patchstart + 6 + midshift, 4096); count += 32; patchstart += (DX7_DUMP_SIZE_VOICE_BULK - 1); } else if (raw_patch_data[patchstart] == 0xf0 && raw_patch_data[patchstart + midshift + 1] == 0x43 && raw_patch_data[patchstart + midshift + 2] <= 0x0f && raw_patch_data[patchstart + midshift + 4] == 0x01 && raw_patch_data[patchstart + midshift + 5] == 0x1b && patchstart + midshift + 162 < filelength && raw_patch_data[patchstart + midshift + 162] == 0xf7) { /* DX7 single voice (edit buffer) dump */ unsigned char buf[DX7_VOICE_SIZE_PACKED]; /* to avoid overlap in dx7_patch_pack() */ dx7_patch_pack(raw_patch_data + patchstart + midshift + 6, (dx7_patch_t *)buf, 0); memcpy(raw_patch_data + count * DX7_VOICE_SIZE_PACKED, buf, DX7_VOICE_SIZE_PACKED); count += 1; patchstart += (DX7_DUMP_SIZE_VOICE_SINGLE - 1); } } /* assume raw DX7/TX7 data if no SysEx header was found. */ /* assume the user knows what he is doing ;-) */ if (count == 0) count = filelength / DX7_VOICE_SIZE_PACKED; /* Dr.T and Steinberg TX7 file needs special treatment */ if ((!strcmp(filename + filename_length - 4, ".TX7") || !strcmp(filename + filename_length -4, ".SND") || !strcmp(filename + filename_length -4, ".tx7") || !strcmp(filename + filename_length - 4, ".snd")) && filelength == 8192) { count = 32; filelength = 4096; } /* Transform XSyn file also needs special treatment */ if ((!strcmp(filename + filename_length - 4, ".BNK") || !strcmp(filename + filename_length - 4, ".bnk")) && filelength == 8192) { for (i=0; i<32; i++) { memmove(raw_patch_data + 128*i, raw_patch_data + 256*i, 128); } count = 32; filelength = 4096; } /* Steinberg Synthworks DX7 SND */ if ((!strcmp (filename + filename_length - 4, ".SND") || !strcmp (filename + filename_length - 4, ".snd")) && filelength == 5216) { count = 32; filelength = 4096; } /* Voyetra SIDEMAN DX/TX * Voyetra Patchmaster DX7/TX7 */ if ((filelength == 9816 || filelength == 5663) && raw_patch_data[0] == 0xdf && raw_patch_data[1] == 0x05 && raw_patch_data[2] == 0x01 && raw_patch_data[3] == 0x00) { count = 32; datastart = 0x60f; } /* Yamaha DX200 editor .DX2 */ if ((!strcmp (filename + filename_length - 4, ".DX2") || !strcmp (filename + filename_length - 4, ".dx2")) && filelength == 326454) { memmove (raw_patch_data + 16384, raw_patch_data + 34, 128 * 381); for (count = 0; count < 128; count++) { for (op = 0; op < 6; op++) { for (i = 0; i < 8; i++) { raw_patch_data[17 * (5 - op) + i + 128 * count] = raw_patch_data[16384 + 35 * op + 76 + i + 381 * count]; } raw_patch_data[17 * (5 - op) + 8 + 128 * count] = raw_patch_data[16384 + 35 * op + 84 + 381 * count] - 21; raw_patch_data[17 * (5 - op) + 9 + 128 * count] = raw_patch_data[16384 + 35 * op + 87 + 381 * count]; raw_patch_data[17 * (5 - op) + 10 + 128 * count] = raw_patch_data[16384 + 35 * op + 88 + 381 * count]; raw_patch_data[17 * (5 - op) + 11 + 128 * count] = raw_patch_data[16384 + 35 * op + 85 + 381 * count] + raw_patch_data[16384 + 35 * op + 86 + 381 * count] * 4; raw_patch_data[17 * (5 - op) + 12 + 128 * count] = raw_patch_data[16384 + 35 * op + 89 + 381 * count] + raw_patch_data[16384 + 35 * op + 75 + 381 * count] * 8; if (raw_patch_data[16384 + 35 * op + 71 + 381 * count] > 3) raw_patch_data[16384 + 35 * op + 71 + 381 * count] = 3; raw_patch_data[17 * (5 - op) + 13 + 128 * count] = raw_patch_data[16384 + 35 * op + 71 + 381 * count] / 2 + raw_patch_data[16384 + 35 * op + 91 + 381 * count] * 4; raw_patch_data[17 * (5 - op) + 14 + 128 * count] = raw_patch_data[16384 + 35 * op + 90 + 381 * count]; raw_patch_data[17 * (5 - op) + 15 + 128 * count] = raw_patch_data[16384 + 35 * op + 72 + 381 * count] + raw_patch_data[16384 + 35 * op + 73 + 381 * count] * 2; raw_patch_data[17 * (5 - op) + 16 + 128 * count] = raw_patch_data[16384 + 35 * op + 74 + 381 * count]; } for (i = 0; i < 4; i++) { raw_patch_data[102 + i + 128 * count] = raw_patch_data[16384 + 26 + i + 381 * count]; } for (i = 0; i < 4; i++) { raw_patch_data[106 + i + 128 * count] = raw_patch_data[16384 + 32 + i + 381 * count]; } raw_patch_data[110 + 128 * count] = raw_patch_data[16384 + 17 + 381 * count]; raw_patch_data[111 + 128 * count] = raw_patch_data[16384 + 18 + 381 * count] + raw_patch_data[16384 + 38 + 381 * count] * 8; for (i = 0; i < 4; i++) { raw_patch_data[112 + i + 128 * count] = raw_patch_data[16384 + 20 + i + 381 * count]; } raw_patch_data[116 + 128 * count] = raw_patch_data[16384 + 24 + 381 * count] + raw_patch_data[16384 + 19 + 381 * count] * 2 + raw_patch_data[16384 + 25 + 381 * count] * 16; raw_patch_data[117 + 128 * count] = raw_patch_data[16384 + 37 + 381 * count] - 36; for (i = 0; i < 10; i++) { raw_patch_data[118 + i + 128 * count] = raw_patch_data[16384 + i + 381 * count]; } } count = 128; filelength = 16384; datastart = 0; } /* finally, copy patchdata to the right location */ if (count > maxpatches) count = maxpatches; memcpy(firstpatch, raw_patch_data + datastart, 128 * count); free (raw_patch_data); return count; } /* * encode_7in6 * * encode a block of 7-bit data, in base64-ish style */ char * encode_7in6(uint8_t *data, int length) { char *buffer; int in, reg, above, below, shift, out; int outchars = (length * 7 + 5) / 6; unsigned int sum = 0; if (!(buffer = (char *)malloc(25 + outchars))) return NULL; out = snprintf(buffer, 12, "%d ", length); in = reg = above = below = 0; while (outchars) { if (above == 6) { buffer[out] = base64[reg >> 7]; reg &= 0x7f; above = 0; out++; outchars--; } if (below == 0) { if (in < length) { reg |= data[in] & 0x7f; sum += data[in]; } below = 7; in++; } shift = 6 - above; if (below < shift) shift = below; reg <<= shift; above += shift; below -= shift; } snprintf(buffer + out, 12, " %d", sum); return buffer; } void gui_data_patches_init(void) { if (!patches) patches = (dx7_patch_t *)malloc(128 * sizeof(dx7_patch_t)); hexter_data_patches_init(patches); patch_section_dirty[0] = 0; patch_section_dirty[1] = 0; patch_section_dirty[2] = 0; patch_section_dirty[3] = 0; } void gui_data_patches_free(void) { if (patches) free(patches); } void gui_data_mark_dirty_patch_sections(int start_patch, int end_patch) { int i, block; for (i = start_patch; i <= end_patch; ) { block = i >> 5; patch_section_dirty[block] = 1; i = (block + 1) << 5; } } void gui_data_send_dirty_patch_sections(void) { int block; char *p; char key[9]; for (block = 0; block < 4; block++) { if (patch_section_dirty[block]) { if ((p = encode_7in6((uint8_t *)&patches[block << 5], 32 * DX7_VOICE_SIZE_PACKED))) { snprintf(key, 9, "patches%d", block); lo_send(osc_host_address, osc_configure_path, "ss", key, p); free(p); patch_section_dirty[block] = 0; } } } } int gui_data_save(char *filename, int type, int start, int end, char **message) { FILE *fh; char buffer[20]; int i, j; uint8_t *patch; int checksum = 0; GUIDB_MESSAGE(DB_IO, " gui_data_save: attempting to save '%s'\n", filename); if ((fh = fopen(filename, "wb")) == NULL) { if (message) *message = dssp_error_message("could not open file '%s'for writing", filename); return 0; } if (type == 0) { /* sys-ex */ buffer[0] = 0xf0; buffer[1] = 0x43; buffer[2] = 0x00; buffer[3] = 0x09; buffer[4] = 0x10; buffer[5] = 0x00; if (fwrite(buffer, 1, 6, fh) != 6) { fclose(fh); if (message) *message = dssp_error_message("error while writing sys-ex header: %s", strerror(errno)); return 0; } } for (i = start; i <= end; i++) { patch = (uint8_t *)&patches[i]; for (j = 0; j < DX7_VOICE_SIZE_PACKED; checksum -= patch[j++]); if (fwrite(patch, 1, DX7_VOICE_SIZE_PACKED, fh) != DX7_VOICE_SIZE_PACKED) { fclose(fh); if (message) *message = dssp_error_message("error while writing file: %s", strerror(errno)); return 0; } } if (type == 0) { /* sys-ex */ buffer[0] = checksum & 0x7f; buffer[1] = 0xf7; if (fwrite(buffer, 1, 2, fh) != 2) { fclose(fh); if (message) *message = dssp_error_message("error while writing sys-ex footer: %s", strerror(errno)); return 0; } } fclose(fh); if (message) { *message = dssp_error_message("wrote %d patches", end - start + 1); } return 1; } /* * gui_data_load */ int gui_data_load(const char *filename, int position, char **message) { int tmpcount = 0; GUIDB_MESSAGE(DB_IO, " gui_data_load: attempting to load '%s'\n", filename); tmpcount = dx7_patchbank_load(filename, &patches[position], 128 - position, message); if (!tmpcount) { /* no patches loaded (message was set by dx7_patchbank_load()) */ return 0; } gui_data_mark_dirty_patch_sections(position, position + tmpcount - 1); if (message) { *message = dssp_error_message("loaded %d patches", tmpcount); } return tmpcount; } void gui_data_send_edit_buffer(void) { char *p; if ((p = encode_7in6((uint8_t *)&edit_buffer, sizeof(edit_buffer)))) { lo_send(osc_host_address, osc_configure_path, "ss", "edit_buffer", p); free(p); } } void gui_data_send_edit_buffer_off(void) { lo_send(osc_host_address, osc_configure_path, "ss", "edit_buffer", "off"); } void gui_data_send_performance_buffer(uint8_t *performance_buffer) { char *p; if ((p = encode_7in6(performance_buffer, DX7_PERFORMANCE_SIZE))) { lo_send(osc_host_address, osc_configure_path, "ss", "performance", p); free(p); } } hexter-version_1.1.0/src/gui_data.h000066400000000000000000000032201325353653200172760ustar00rootroot00000000000000/* hexter DSSI software synthesizer GUI * * Copyright (C) 2004, 2009, 2011, 2012 Sean Bolton and others. * * 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 _GUI_DATA_H #define _GUI_DATA_H #include "hexter_types.h" int dx7_bulk_dump_checksum(uint8_t *data, int length); int dx7_patchbank_load(const char *filename, dx7_patch_t *firstpatch, int maxpatches, char **errmsg); char *encode_7in6(uint8_t *data, int length); void gui_data_patches_init(void); void gui_data_patches_free(void); void gui_data_mark_dirty_patch_sections(int start_patch, int end_patch); void gui_data_send_dirty_patch_sections(void); int gui_data_save(char *filename, int type, int start, int end, char **message); int gui_data_load(const char *filename, int position, char **message); void gui_data_send_edit_buffer(void); void gui_data_send_edit_buffer_off(void); void gui_data_send_performance_buffer(uint8_t *performance_buffer); #endif /* _GUI_DATA_H */ hexter-version_1.1.0/src/gui_images.c000066400000000000000000000047511325353653200176370ustar00rootroot00000000000000/* hexter DSSI software synthesizer GUI * * Copyright (C) 2004, 2009 Sean Bolton and others. * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include "gui_images.h" #include "bitmap_about.xpm" /* This is a dummy pixmap we use when a pixmap can't be found. */ static char *dummy_pixmap_xpm[] = { /* columns rows colors chars-per-pixel */ "1 1 1 1", " c None", /* pixels */ " " }; /* This is an internally used function to create pixmaps. */ static GtkWidget* create_dummy_pixmap (GtkWidget *widget) { GdkColormap *colormap; GdkPixmap *gdkpixmap; GdkBitmap *mask; GtkWidget *pixmap; colormap = gtk_widget_get_colormap (widget); gdkpixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, colormap, &mask, NULL, dummy_pixmap_xpm); if (gdkpixmap == NULL) g_error ("Couldn't create replacement pixmap."); pixmap = gtk_pixmap_new (gdkpixmap, mask); gdk_pixmap_unref (gdkpixmap); gdk_bitmap_unref (mask); return pixmap; } /* window must be realized before you call this */ GtkWidget * create_pixmap_from_xpm(GtkWidget *window, char *xpm_data[]) { GdkColormap *colormap; GdkBitmap *mask; GdkPixmap *gdkpixmap; GtkWidget *pixmap; colormap = gtk_widget_get_colormap(window); gdkpixmap = gdk_pixmap_colormap_create_from_xpm_d(NULL, colormap, &mask, NULL, xpm_data); if (gdkpixmap == NULL) { g_warning("error creating pixmap"); return create_dummy_pixmap (window); } pixmap = gtk_pixmap_new(gdkpixmap, mask); gdk_pixmap_unref(gdkpixmap); gdk_bitmap_unref(mask); return pixmap; } GtkWidget * create_about_pixmap(GtkWidget *window) { return create_pixmap_from_xpm(window, bitmap_about_xpm); } hexter-version_1.1.0/src/gui_images.h000066400000000000000000000020171325353653200176350ustar00rootroot00000000000000/* hexter DSSI software synthesizer GUI * * Copyright (C) 2004, 2009 Sean Bolton and others. * * 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 _GUI_IMAGES_H #define _GUI_IMAGES_H #ifdef HAVE_CONFIG_H # include #endif #include /* gui_images.c */ GtkWidget *create_about_pixmap(GtkWidget *window); #endif /* _GUI_IMAGES_H */ hexter-version_1.1.0/src/gui_interface.c000066400000000000000000002240711325353653200203310ustar00rootroot00000000000000/* hexter DSSI software synthesizer GUI * * Copyright (C) 2004, 2009, 2012, 2018 Sean Bolton and others. * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include "hexter.h" #include "gui_callbacks.h" #include "gui_interface.h" #include "gui_images.h" #include "gui_patch_edit.h" GtkWidget *main_window; GtkObject *test_note_key_adj; GtkObject *test_note_velocity_adj; GtkObject *tuning_adj; GtkObject *volume_adj; GtkObject *polyphony_adj; GtkWidget *monophonic_option_menu; GtkWidget *compat059_button; #ifdef HEXTER_DEBUG_CONTROL GtkObject *test_adj; #endif GtkWidget *sysex_channel_label; GtkWidget *sysex_channel_spin; GtkWidget *sysex_status_label; GtkWidget *performance_frame; GtkObject *performance_spin_adjustments[6]; GtkWidget *performance_assign_widgets[4][3]; GtkWidget *about_window; GtkWidget *about_label; GtkWidget *import_file_selection; GtkWidget *import_file_position_window; GtkObject *import_file_position_spin_adj; GtkWidget *import_file_position_name_label; GtkWidget *notice_window; GtkWidget *notice_label_1; GtkWidget *notice_label_2; GtkWidget *export_file_type_window; GtkWidget *export_file_type_sysex; GtkObject *export_file_start_spin_adj; GtkWidget *export_file_start_name; GtkWidget *export_file_end_label; GtkWidget *export_file_end_spin; GtkObject *export_file_end_spin_adj; GtkWidget *export_file_end_name; GtkWidget *export_file_selection; GtkWidget *edit_save_position_window; GtkObject *edit_save_position_spin_adj; GtkWidget *edit_save_position_name_label; GtkWidget *patches_clist; const char *performance_spin_names[6] = { "pitch_bend_range", "portamento_time", "mod_wheel_sensitivity", "foot_sensitivity", "pressure_sensitivity", "breath_sensitivity", }; const char *performance_assign_names[4] = { "mod_wheel_assign", "foot_assign", "pressure_assign", "breath_assign" }; void set_window_title(GtkWidget *window, const char *tag, const char *text) { char *title = (char *)malloc(strlen(tag) + strlen(text) + 2); sprintf(title, "%s %s", tag, text); gtk_window_set_title (GTK_WINDOW (window), title); free(title); } void create_performance_spin(GtkWidget *window, const char *text, GtkWidget *table, int row, int parameter, int max, int init) { GtkWidget *label; GtkObject *spin_button_adj; GtkWidget *spin_button; label = gtk_label_new (text); gtk_widget_ref (label); gtk_object_set_data_full (GTK_OBJECT (window), "performance label", label, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label); gtk_table_attach (GTK_TABLE (table), label, 0, 1, row, row + 1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); gtk_misc_set_padding (GTK_MISC (label), 2, 0); spin_button_adj = gtk_adjustment_new (init, 0, max, 1, 10, 0); performance_spin_adjustments[parameter] = spin_button_adj; spin_button = gtk_spin_button_new (GTK_ADJUSTMENT (spin_button_adj), 1, 0); gtk_widget_ref (spin_button); gtk_object_set_data_full (GTK_OBJECT (main_window), "performance spin", spin_button, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (spin_button); gtk_table_attach (GTK_TABLE (table), spin_button, 1, 2, row, row + 1, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_FILL), 0, 0); gtk_spin_button_set_update_policy(GTK_SPIN_BUTTON (spin_button), GTK_UPDATE_IF_VALID); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spin_button), TRUE); gtk_signal_connect (GTK_OBJECT (spin_button_adj), "value_changed", GTK_SIGNAL_FUNC(on_performance_spin_change), GINT_TO_POINTER(parameter)); } void create_performance_assign(GtkWidget *window, const char *text, GtkWidget *table, int row, int parameter, int initbits) { GtkWidget *label; GtkWidget *hbox; GtkWidget *button; label = gtk_label_new (text); gtk_widget_ref (label); gtk_object_set_data_full (GTK_OBJECT (window), "performance label", label, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label); gtk_table_attach (GTK_TABLE (table), label, 0, 1, row, row + 1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); gtk_misc_set_padding (GTK_MISC (label), 2, 0); hbox = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox); gtk_object_set_data_full (GTK_OBJECT (window), "assign hbox", hbox, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox); gtk_table_attach (GTK_TABLE (table), hbox, 1, 2, row, row + 1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_container_set_border_width (GTK_CONTAINER (hbox), 2); label = gtk_label_new ("P"); gtk_widget_ref (label); gtk_object_set_data_full (GTK_OBJECT (window), "assign P label", label, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE, 1); button = gtk_check_button_new(); performance_assign_widgets[parameter][0] = button; gtk_widget_ref (button); gtk_object_set_data_full (GTK_OBJECT (window), "assign P button", button, (GtkDestroyNotify) gtk_widget_unref); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), initbits & 1 ? 1 : 0); gtk_widget_show (button); gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, TRUE, 1); gtk_signal_connect (GTK_OBJECT (button), "toggled", GTK_SIGNAL_FUNC (on_performance_assign_toggled), GINT_TO_POINTER(parameter)); label = gtk_label_new ("A"); gtk_widget_ref (label); gtk_object_set_data_full (GTK_OBJECT (window), "assign A label", label, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE, 1); button = gtk_check_button_new(); performance_assign_widgets[parameter][1] = button; gtk_widget_ref (button); gtk_object_set_data_full (GTK_OBJECT (window), "assign A button", button, (GtkDestroyNotify) gtk_widget_unref); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), initbits & 2 ? 1 : 0); gtk_widget_show (button); gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, TRUE, 1); gtk_signal_connect (GTK_OBJECT (button), "toggled", GTK_SIGNAL_FUNC (on_performance_assign_toggled), GINT_TO_POINTER(parameter)); label = gtk_label_new ("E"); gtk_widget_ref (label); gtk_object_set_data_full (GTK_OBJECT (window), "assign E label", label, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE, 1); button = gtk_check_button_new(); performance_assign_widgets[parameter][2] = button; gtk_widget_ref (button); gtk_object_set_data_full (GTK_OBJECT (window), "assign E button", button, (GtkDestroyNotify) gtk_widget_unref); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), initbits & 4 ? 1 : 0); gtk_widget_show (button); gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, TRUE, 1); gtk_signal_connect (GTK_OBJECT (button), "toggled", GTK_SIGNAL_FUNC (on_performance_assign_toggled), GINT_TO_POINTER(parameter)); } void create_main_window (const char *tag) { GtkWidget *vbox1; GtkWidget *menubar1; GtkWidget *file1; GtkWidget *file1_menu; GtkWidget *menu_import; GtkWidget *menu_export; GtkWidget *separator1; GtkWidget *menu_quit; GtkWidget *edit1; GtkWidget *edit1_menu; GtkWidget *menu_edit; GtkWidget *help1; GtkWidget *help1_menu; GtkWidget *menu_about; GtkWidget *notebook1; GtkWidget *scrolledwindow1; GtkWidget *label45; GtkWidget *label46; GtkWidget *patches_tab_label; GtkWidget *vbox2; GtkWidget *frame12; GtkWidget *table15; GtkWidget *label10; GtkWidget *label10a; GtkWidget *test_note_button; GtkWidget *test_note_key; GtkWidget *test_note_velocity; GtkWidget *frame14; GtkWidget *table16; GtkWidget *tuning; GtkWidget *volume; GtkWidget *mono_mode_off; GtkWidget *mono_mode_on; GtkWidget *mono_mode_once; GtkWidget *mono_mode_both; GtkWidget *optionmenu5_menu; GtkWidget *polyphony; GtkWidget *label43; GtkWidget *label43a; GtkWidget *volume_label; GtkWidget *label44; #ifdef MIDI_ALSA GtkWidget *sysex_enable_button; GtkObject *sysex_channel_spin_adj; GtkWidget *frame15; GtkWidget *frame4; GtkWidget *table3; GtkWidget *label11; #endif /* MIDI_ALSA */ GtkWidget *configuration_tab_label; GtkWidget *performance_table; GtkWidget *performance_tab_label; GtkAccelGroup *accel_group; accel_group = gtk_accel_group_new (); main_window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_object_set_data (GTK_OBJECT (main_window), "main_window", main_window); gtk_window_set_title (GTK_WINDOW (main_window), tag); vbox1 = gtk_vbox_new (FALSE, 0); gtk_widget_ref (vbox1); gtk_object_set_data_full (GTK_OBJECT (main_window), "vbox1", vbox1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox1); gtk_container_add (GTK_CONTAINER (main_window), vbox1); menubar1 = gtk_menu_bar_new (); gtk_widget_ref (menubar1); gtk_object_set_data_full (GTK_OBJECT (main_window), "menubar1", menubar1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (menubar1); gtk_box_pack_start (GTK_BOX (vbox1), menubar1, FALSE, FALSE, 0); file1 = gtk_menu_item_new_with_label ("File"); gtk_widget_ref (file1); gtk_object_set_data_full (GTK_OBJECT (main_window), "file1", file1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (file1); gtk_container_add (GTK_CONTAINER (menubar1), file1); file1_menu = gtk_menu_new (); gtk_widget_ref (file1_menu); gtk_object_set_data_full (GTK_OBJECT (main_window), "file1_menu", file1_menu, (GtkDestroyNotify) gtk_widget_unref); gtk_menu_item_set_submenu (GTK_MENU_ITEM (file1), file1_menu); menu_import = gtk_menu_item_new_with_label ("Import Patch Bank..."); gtk_widget_ref (menu_import); gtk_object_set_data_full (GTK_OBJECT (main_window), "menu_import", menu_import, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (menu_import); gtk_container_add (GTK_CONTAINER (file1_menu), menu_import); gtk_widget_add_accelerator (menu_import, "activate", accel_group, GDK_O, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE); menu_export = gtk_menu_item_new_with_label ("Export Patch Bank..."); gtk_widget_ref (menu_export); gtk_object_set_data_full (GTK_OBJECT (main_window), "menu_export", menu_export, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (menu_export); gtk_container_add (GTK_CONTAINER (file1_menu), menu_export); gtk_widget_add_accelerator (menu_export, "activate", accel_group, GDK_S, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE); separator1 = gtk_menu_item_new (); gtk_widget_ref (separator1); gtk_object_set_data_full (GTK_OBJECT (main_window), "separator1", separator1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (separator1); gtk_container_add (GTK_CONTAINER (file1_menu), separator1); gtk_widget_set_sensitive (separator1, FALSE); menu_quit = gtk_menu_item_new_with_label ("Quit"); gtk_widget_ref (menu_quit); gtk_object_set_data_full (GTK_OBJECT (main_window), "menu_quit", menu_quit, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (menu_quit); gtk_container_add (GTK_CONTAINER (file1_menu), menu_quit); gtk_widget_add_accelerator (menu_quit, "activate", accel_group, GDK_Q, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE); edit1 = gtk_menu_item_new_with_label ("Edit"); gtk_widget_show (edit1); gtk_container_add (GTK_CONTAINER (menubar1), edit1); gtk_menu_item_right_justify (GTK_MENU_ITEM (edit1)); edit1_menu = gtk_menu_new (); gtk_menu_item_set_submenu (GTK_MENU_ITEM (edit1), edit1_menu); menu_edit = gtk_menu_item_new_with_label ("Edit Patch..."); gtk_widget_show (menu_edit); gtk_container_add (GTK_CONTAINER (edit1_menu), menu_edit); gtk_widget_add_accelerator (menu_edit, "activate", accel_group, GDK_E, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE); help1 = gtk_menu_item_new_with_label ("About"); gtk_widget_ref (help1); gtk_object_set_data_full (GTK_OBJECT (main_window), "help1", help1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (help1); gtk_container_add (GTK_CONTAINER (menubar1), help1); gtk_menu_item_right_justify (GTK_MENU_ITEM (help1)); help1_menu = gtk_menu_new (); gtk_widget_ref (help1_menu); gtk_object_set_data_full (GTK_OBJECT (main_window), "help1_menu", help1_menu, (GtkDestroyNotify) gtk_widget_unref); gtk_menu_item_set_submenu (GTK_MENU_ITEM (help1), help1_menu); menu_about = gtk_menu_item_new_with_label ("About hexter"); gtk_widget_ref (menu_about); gtk_object_set_data_full (GTK_OBJECT (main_window), "menu_about", menu_about, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (menu_about); gtk_container_add (GTK_CONTAINER (help1_menu), menu_about); notebook1 = gtk_notebook_new (); gtk_widget_ref (notebook1); gtk_object_set_data_full (GTK_OBJECT (main_window), "notebook1", notebook1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (notebook1); gtk_box_pack_start (GTK_BOX (vbox1), notebook1, TRUE, TRUE, 0); scrolledwindow1 = gtk_scrolled_window_new (NULL, NULL); gtk_widget_ref (scrolledwindow1); gtk_object_set_data_full (GTK_OBJECT (main_window), "scrolledwindow1", scrolledwindow1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (scrolledwindow1); gtk_container_add (GTK_CONTAINER (notebook1), scrolledwindow1); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow1), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); patches_clist = gtk_clist_new (2); gtk_widget_ref (patches_clist); gtk_object_set_data_full (GTK_OBJECT (main_window), "patches_clist", patches_clist, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (patches_clist); gtk_container_add (GTK_CONTAINER (scrolledwindow1), patches_clist); gtk_clist_set_column_width (GTK_CLIST (patches_clist), 0, 50); gtk_clist_set_column_width (GTK_CLIST (patches_clist), 1, 80); gtk_clist_column_titles_show (GTK_CLIST (patches_clist)); label45 = gtk_label_new ("Prog No"); gtk_widget_ref (label45); gtk_object_set_data_full (GTK_OBJECT (main_window), "label45", label45, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label45); gtk_clist_set_column_widget (GTK_CLIST (patches_clist), 0, label45); label46 = gtk_label_new ("Name"); gtk_widget_ref (label46); gtk_object_set_data_full (GTK_OBJECT (main_window), "label46", label46, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label46); gtk_clist_set_column_widget (GTK_CLIST (patches_clist), 1, label46); patches_tab_label = gtk_label_new ("Patches"); gtk_widget_ref (patches_tab_label); gtk_object_set_data_full (GTK_OBJECT (main_window), "patches_tab_label", patches_tab_label, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (patches_tab_label); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 0), patches_tab_label); /* Configuration tab */ vbox2 = gtk_vbox_new (FALSE, 5); gtk_widget_ref (vbox2); gtk_object_set_data_full (GTK_OBJECT (main_window), "vbox2", vbox2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox2); gtk_container_add (GTK_CONTAINER (notebook1), vbox2); gtk_container_set_border_width (GTK_CONTAINER (vbox2), 5); frame14 = gtk_frame_new ("Synthesizer"); gtk_widget_ref (frame14); gtk_object_set_data_full (GTK_OBJECT (main_window), "frame14", frame14, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (frame14); gtk_box_pack_start (GTK_BOX (vbox2), frame14, TRUE, TRUE, 0); table16 = gtk_table_new (2, 5, FALSE); gtk_widget_ref (table16); gtk_object_set_data_full (GTK_OBJECT (main_window), "table16", table16, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (table16); gtk_container_add (GTK_CONTAINER (frame14), table16); gtk_container_set_border_width (GTK_CONTAINER (table16), 2); gtk_table_set_row_spacings (GTK_TABLE (table16), 5); gtk_table_set_col_spacings (GTK_TABLE (table16), 5); label43a = gtk_label_new ("tuning"); gtk_widget_ref (label43a); gtk_object_set_data_full (GTK_OBJECT (main_window), "label43a", label43a, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label43a); gtk_table_attach (GTK_TABLE (table16), label43a, 0, 1, 0, 1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label43a), 0, 0.5); gtk_misc_set_padding (GTK_MISC (label43a), 2, 0); tuning_adj = gtk_adjustment_new (440.0, 415.3, 466.2, 0.1, 1, 0); tuning = gtk_spin_button_new (GTK_ADJUSTMENT (tuning_adj), 1, 1); gtk_widget_ref (tuning); gtk_object_set_data_full (GTK_OBJECT (main_window), "tuning", tuning, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (tuning); gtk_table_attach (GTK_TABLE (table16), tuning, 1, 2, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_FILL), 0, 0); gtk_spin_button_set_update_policy(GTK_SPIN_BUTTON (tuning), GTK_UPDATE_IF_VALID); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (tuning), TRUE); volume_label = gtk_label_new ("volume (dB)"); gtk_widget_ref (volume_label); gtk_object_set_data_full (GTK_OBJECT (main_window), "volume_label", volume_label, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (volume_label); gtk_table_attach (GTK_TABLE (table16), volume_label, 0, 1, 1, 2, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (volume_label), 0, 0.5); gtk_misc_set_padding (GTK_MISC (volume_label), 2, 0); volume_adj = gtk_adjustment_new (0.0, -70.0, 20.0, 0.1, 1, 0); volume = gtk_spin_button_new (GTK_ADJUSTMENT (volume_adj), 1, 1); gtk_widget_ref (volume); gtk_object_set_data_full (GTK_OBJECT (main_window), "volume", volume, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (volume); gtk_table_attach (GTK_TABLE (table16), volume, 1, 2, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_FILL), 0, 0); gtk_spin_button_set_update_policy(GTK_SPIN_BUTTON (volume), GTK_UPDATE_IF_VALID); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (volume), TRUE); monophonic_option_menu = gtk_option_menu_new (); gtk_widget_ref (monophonic_option_menu); gtk_object_set_data_full (GTK_OBJECT (main_window), "monophonic_option_menu", monophonic_option_menu, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (monophonic_option_menu); gtk_table_attach (GTK_TABLE (table16), monophonic_option_menu, 1, 2, 3, 4, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); optionmenu5_menu = gtk_menu_new (); mono_mode_off = gtk_menu_item_new_with_label ("Off"); gtk_widget_show (mono_mode_off); gtk_menu_append (GTK_MENU (optionmenu5_menu), mono_mode_off); mono_mode_on = gtk_menu_item_new_with_label ("On"); gtk_widget_show (mono_mode_on); gtk_menu_append (GTK_MENU (optionmenu5_menu), mono_mode_on); mono_mode_once = gtk_menu_item_new_with_label ("Once"); gtk_widget_show (mono_mode_once); gtk_menu_append (GTK_MENU (optionmenu5_menu), mono_mode_once); mono_mode_both = gtk_menu_item_new_with_label ("Both"); gtk_widget_show (mono_mode_both); gtk_menu_append (GTK_MENU (optionmenu5_menu), mono_mode_both); gtk_option_menu_set_menu (GTK_OPTION_MENU (monophonic_option_menu), optionmenu5_menu); polyphony_adj = gtk_adjustment_new (HEXTER_DEFAULT_POLYPHONY, 1, HEXTER_MAX_POLYPHONY, 1, 10, 0); polyphony = gtk_spin_button_new (GTK_ADJUSTMENT (polyphony_adj), 1, 0); gtk_widget_ref (polyphony); gtk_object_set_data_full (GTK_OBJECT (main_window), "polyphony", polyphony, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (polyphony); gtk_table_attach (GTK_TABLE (table16), polyphony, 1, 2, 2, 3, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); label43 = gtk_label_new ("polyphony"); gtk_widget_ref (label43); gtk_object_set_data_full (GTK_OBJECT (main_window), "label43", label43, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label43); gtk_table_attach (GTK_TABLE (table16), label43, 0, 1, 2, 3, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label43), 0, 0.5); gtk_misc_set_padding (GTK_MISC (label43), 2, 0); label44 = gtk_label_new ("monophonic mode"); gtk_widget_ref (label44); gtk_object_set_data_full (GTK_OBJECT (main_window), "label44", label44, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label44); gtk_table_attach (GTK_TABLE (table16), label44, 0, 1, 3, 4, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label44), 0, 0.5); gtk_misc_set_padding (GTK_MISC (label44), 2, 0); label44 = gtk_label_new ("disable LFO/Mod/Perf\n" "(0.5.x compatibility)"); gtk_widget_show (label44); gtk_table_attach (GTK_TABLE (table16), label44, 0, 1, 4, 5, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label44), 0, 0.5); gtk_misc_set_padding (GTK_MISC (label44), 2, 0); compat059_button = gtk_check_button_new(); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(compat059_button), 0); gtk_widget_show (compat059_button); gtk_table_attach (GTK_TABLE (table16), compat059_button, 1, 2, 4, 5, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); #ifdef HEXTER_DEBUG_CONTROL { GtkWidget *w; test_adj = gtk_adjustment_new(0, 0, 16383, 1, 10, 0); w = gtk_hscale_new(GTK_ADJUSTMENT(test_adj)); gtk_scale_set_value_pos (GTK_SCALE (w), GTK_POS_RIGHT); gtk_scale_set_digits (GTK_SCALE (w), 0); gtk_range_set_update_policy (GTK_RANGE (w), GTK_UPDATE_DELAYED); gtk_widget_show(w); gtk_table_attach (GTK_TABLE(table16), w, 0, 2, 5, 6, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); g_signal_connect(G_OBJECT(test_adj), "value-changed", G_CALLBACK(on_test_changed), NULL); } #endif /* HEXTER_DEBUG_CONTROL */ #ifdef MIDI_ALSA frame15 = gtk_frame_new ("Sys-Ex Patch Editing"); gtk_widget_ref (frame15); gtk_object_set_data_full (GTK_OBJECT (main_window), "frame15", frame15, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (frame15); gtk_box_pack_start (GTK_BOX (vbox2), frame15, TRUE, TRUE, 0); table3 = gtk_table_new (3, 2, FALSE); gtk_widget_ref (table3); gtk_object_set_data_full (GTK_OBJECT (main_window), "table3", table3, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (table3); gtk_container_add (GTK_CONTAINER (frame15), table3); gtk_container_set_border_width (GTK_CONTAINER (table3), 2); gtk_table_set_row_spacings (GTK_TABLE (table3), 5); gtk_table_set_col_spacings (GTK_TABLE (table3), 5); label11 = gtk_label_new ("Enable Sys-Ex Editing"); gtk_widget_ref (label11); gtk_object_set_data_full (GTK_OBJECT (main_window), "label11", label11, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label11); gtk_table_attach (GTK_TABLE (table3), label11, 0, 1, 0, 1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label11), 0, 0.5); sysex_enable_button = gtk_check_button_new_with_label (""); gtk_widget_ref (sysex_enable_button); gtk_object_set_data_full (GTK_OBJECT (main_window), "sysex_enable_button", sysex_enable_button, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (sysex_enable_button); gtk_table_attach (GTK_TABLE (table3), sysex_enable_button, 1, 2, 0, 1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); sysex_channel_label = gtk_label_new ("Sys-Ex Receive Channel"); gtk_widget_ref (sysex_channel_label); gtk_object_set_data_full (GTK_OBJECT (main_window), "sysex_channel_label", sysex_channel_label, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (sysex_channel_label); gtk_table_attach (GTK_TABLE (table3), sysex_channel_label, 0, 1, 1, 2, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (sysex_channel_label), 0, 0.5); gtk_widget_set_sensitive (sysex_channel_label, FALSE); sysex_channel_spin_adj = gtk_adjustment_new (1, 1, 16, 1, 10, 0); sysex_channel_spin = gtk_spin_button_new (GTK_ADJUSTMENT (sysex_channel_spin_adj), 1, 0); gtk_widget_ref (sysex_channel_spin); gtk_object_set_data_full (GTK_OBJECT (main_window), "sysex_channel_spin", sysex_channel_spin, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (sysex_channel_spin); gtk_table_attach (GTK_TABLE (table3), sysex_channel_spin, 1, 2, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_widget_set_sensitive (sysex_channel_spin, FALSE); frame4 = gtk_frame_new (NULL); gtk_widget_ref (frame4); gtk_object_set_data_full (GTK_OBJECT (main_window), "frame4", frame4, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (frame4); gtk_table_attach (GTK_TABLE (table3), frame4, 0, 2, 2, 3, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0); gtk_frame_set_shadow_type (GTK_FRAME (frame4), GTK_SHADOW_IN); sysex_status_label = gtk_label_new (" "); gtk_widget_ref (sysex_status_label); gtk_object_set_data_full (GTK_OBJECT (main_window), "sysex_status_label", sysex_status_label, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (sysex_status_label); gtk_container_add (GTK_CONTAINER (frame4), sysex_status_label); gtk_label_set_line_wrap (GTK_LABEL (sysex_status_label), TRUE); gtk_misc_set_alignment (GTK_MISC (sysex_status_label), 0, 0.5); #endif /* MIDI_ALSA */ configuration_tab_label = gtk_label_new ("Configuration"); gtk_widget_ref (configuration_tab_label); gtk_object_set_data_full (GTK_OBJECT (main_window), "configuration_tab_label", configuration_tab_label, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (configuration_tab_label); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 1), configuration_tab_label); /* Performance tab */ performance_frame = gtk_frame_new ("Global Performance Parameters"); gtk_widget_ref (performance_frame); gtk_object_set_data_full (GTK_OBJECT (main_window), "performance_frame", performance_frame, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (performance_frame); gtk_container_add (GTK_CONTAINER (notebook1), performance_frame); gtk_container_set_border_width (GTK_CONTAINER (performance_frame), 5); performance_table = gtk_table_new (2, 10, FALSE); gtk_widget_ref (performance_table); gtk_object_set_data_full (GTK_OBJECT (main_window), "performance_table", performance_table, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (performance_table); gtk_container_add (GTK_CONTAINER (performance_frame), performance_table); gtk_container_set_border_width (GTK_CONTAINER (performance_table), 2); gtk_table_set_row_spacings (GTK_TABLE (performance_table), 5); gtk_table_set_col_spacings (GTK_TABLE (performance_table), 5); create_performance_spin (main_window, "pitch bend range", performance_table, 0, PP_PITCH_BEND_RANGE, 12, 2); create_performance_spin (main_window, "portamento time", performance_table, 1, PP_PORTAMENTO_TIME, 99, 0); create_performance_spin (main_window, "mod wheel sens.", performance_table, 2, PP_MOD_WHEEL_SENSITIVITY, 15, 15); create_performance_assign(main_window, "mod wheel assign", performance_table, 3, PP_MOD_WHEEL_ASSIGN, 0x01); create_performance_spin (main_window, "foot sensitivity", performance_table, 4, PP_FOOT_SENSITIVITY, 15, 0); create_performance_assign(main_window, "foot assign", performance_table, 5, PP_FOOT_ASSIGN, 0x04); create_performance_spin (main_window, "pressure sens.", performance_table, 6, PP_PRESSURE_SENSITIVITY, 15, 15); create_performance_assign(main_window, "pressure assign", performance_table, 7, PP_PRESSURE_ASSIGN, 0x02); create_performance_spin (main_window, "breath sens.", performance_table, 8, PP_BREATH_SENSITIVITY, 15, 15); create_performance_assign(main_window, "breath assign", performance_table, 9, PP_BREATH_ASSIGN, 0x02); performance_tab_label = gtk_label_new ("Performance"); gtk_widget_ref (performance_tab_label); gtk_object_set_data_full (GTK_OBJECT (main_window), "performance_tab_label", performance_tab_label, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (performance_tab_label); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 2), performance_tab_label); /* Test note widgets */ frame12 = gtk_frame_new ("Test Note"); gtk_widget_ref (frame12); gtk_object_set_data_full (GTK_OBJECT (main_window), "frame12", frame12, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (frame12); gtk_container_set_border_width (GTK_CONTAINER (frame12), 7); gtk_box_pack_start (GTK_BOX (vbox1), frame12, TRUE, TRUE, 0); table15 = gtk_table_new (2, 3, FALSE); gtk_widget_ref (table15); gtk_object_set_data_full (GTK_OBJECT (main_window), "table15", table15, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (table15); gtk_container_add (GTK_CONTAINER (frame12), table15); gtk_container_set_border_width (GTK_CONTAINER (table15), 4); gtk_table_set_row_spacings (GTK_TABLE (table15), 5); gtk_table_set_col_spacings (GTK_TABLE (table15), 5); label10 = gtk_label_new ("key"); gtk_widget_ref (label10); gtk_object_set_data_full (GTK_OBJECT (main_window), "label10", label10, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label10); gtk_table_attach (GTK_TABLE (table15), label10, 0, 1, 0, 1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label10), 0, 0.5); gtk_misc_set_padding (GTK_MISC (label10), 2, 0); label10a = gtk_label_new ("velocity"); gtk_widget_ref (label10a); gtk_object_set_data_full (GTK_OBJECT (main_window), "label10a", label10a, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label10a); gtk_table_attach (GTK_TABLE (table15), label10a, 0, 1, 1, 2, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label10a), 0, 0.5); gtk_misc_set_padding (GTK_MISC (label10a), 2, 0); test_note_button = gtk_button_new_with_label ("Send Test Note"); gtk_widget_ref (test_note_button); gtk_object_set_data_full (GTK_OBJECT (main_window), "test_note_button", test_note_button, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (test_note_button); gtk_table_attach (GTK_TABLE (table15), test_note_button, 0, 2, 2, 3, (GtkAttachOptions) (0), (GtkAttachOptions) (0), 4, 0); gtk_container_set_border_width (GTK_CONTAINER (test_note_button), 2); test_note_key_adj = gtk_adjustment_new (60, 12, 132, 1, 12, 12); test_note_key = gtk_hscale_new (GTK_ADJUSTMENT (test_note_key_adj)); gtk_widget_ref (test_note_key); gtk_object_set_data_full (GTK_OBJECT (main_window), "test_note_key", test_note_key, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (test_note_key); gtk_table_attach (GTK_TABLE (table15), test_note_key, 1, 2, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_FILL), 0, 0); gtk_scale_set_value_pos (GTK_SCALE (test_note_key), GTK_POS_RIGHT); gtk_scale_set_digits (GTK_SCALE (test_note_key), 0); gtk_range_set_update_policy (GTK_RANGE (test_note_key), GTK_UPDATE_DELAYED); test_note_velocity_adj = gtk_adjustment_new (84, 1, 137, 1, 10, 10); test_note_velocity = gtk_hscale_new (GTK_ADJUSTMENT (test_note_velocity_adj)); gtk_widget_ref (test_note_velocity); gtk_object_set_data_full (GTK_OBJECT (main_window), "test_note_velocity", test_note_velocity, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (test_note_velocity); gtk_table_attach (GTK_TABLE (table15), test_note_velocity, 1, 2, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_FILL), 0, 0); gtk_scale_set_value_pos (GTK_SCALE (test_note_velocity), GTK_POS_RIGHT); gtk_scale_set_digits (GTK_SCALE (test_note_velocity), 0); gtk_range_set_update_policy (GTK_RANGE (test_note_velocity), GTK_UPDATE_DELAYED); /* connect main window */ gtk_signal_connect(GTK_OBJECT(main_window), "destroy", GTK_SIGNAL_FUNC(gtk_main_quit), NULL); gtk_signal_connect (GTK_OBJECT (main_window), "delete_event", (GtkSignalFunc)on_delete_event_wrapper, (gpointer)on_menu_quit_activate); /* connect menu items */ gtk_signal_connect (GTK_OBJECT (menu_import), "activate", GTK_SIGNAL_FUNC (on_menu_import_activate), NULL); gtk_signal_connect (GTK_OBJECT (menu_export), "activate", GTK_SIGNAL_FUNC (on_menu_export_activate), NULL); gtk_signal_connect (GTK_OBJECT (menu_quit), "activate", GTK_SIGNAL_FUNC (on_menu_quit_activate), NULL); gtk_signal_connect (GTK_OBJECT (menu_edit), "activate", GTK_SIGNAL_FUNC (on_menu_edit_activate), NULL); gtk_signal_connect (GTK_OBJECT (menu_about), "activate", GTK_SIGNAL_FUNC (on_menu_about_activate), NULL); /* connect patch list */ gtk_signal_connect(GTK_OBJECT(patches_clist), "select_row", GTK_SIGNAL_FUNC(on_patches_selection), NULL); /* connect synth configuration widgets */ gtk_signal_connect (GTK_OBJECT (tuning_adj), "value_changed", GTK_SIGNAL_FUNC(on_tuning_change), NULL); gtk_signal_connect (GTK_OBJECT (volume_adj), "value_changed", GTK_SIGNAL_FUNC(on_volume_change), NULL); gtk_signal_connect (GTK_OBJECT (polyphony_adj), "value_changed", GTK_SIGNAL_FUNC(on_polyphony_change), NULL); gtk_signal_connect (GTK_OBJECT (mono_mode_off), "activate", GTK_SIGNAL_FUNC (on_mono_mode_activate), (gpointer)"off"); gtk_signal_connect (GTK_OBJECT (mono_mode_on), "activate", GTK_SIGNAL_FUNC (on_mono_mode_activate), (gpointer)"on"); gtk_signal_connect (GTK_OBJECT (mono_mode_once), "activate", GTK_SIGNAL_FUNC (on_mono_mode_activate), (gpointer)"once"); gtk_signal_connect (GTK_OBJECT (mono_mode_both), "activate", GTK_SIGNAL_FUNC (on_mono_mode_activate), (gpointer)"both"); gtk_signal_connect (GTK_OBJECT (compat059_button), "toggled", GTK_SIGNAL_FUNC (on_compat059_toggled), NULL); #ifdef MIDI_ALSA /* connect sys-ex widgets */ gtk_signal_connect (GTK_OBJECT (sysex_enable_button), "toggled", GTK_SIGNAL_FUNC (on_sysex_enable_toggled), NULL); gtk_signal_connect (GTK_OBJECT (sysex_channel_spin_adj), "value_changed", GTK_SIGNAL_FUNC (on_sysex_channel_change), NULL); #endif /* MIDI_ALSA */ /* connect test note widgets */ gtk_signal_connect (GTK_OBJECT (test_note_key_adj), "value_changed", GTK_SIGNAL_FUNC(on_test_note_slider_change), (gpointer)0); gtk_signal_connect (GTK_OBJECT (test_note_velocity_adj), "value_changed", GTK_SIGNAL_FUNC(on_test_note_slider_change), (gpointer)1); gtk_signal_connect (GTK_OBJECT (test_note_button), "pressed", GTK_SIGNAL_FUNC (on_test_note_button_press), (gpointer)1); gtk_signal_connect (GTK_OBJECT (test_note_button), "released", GTK_SIGNAL_FUNC (on_test_note_button_press), (gpointer)0); gtk_window_add_accel_group (GTK_WINDOW (main_window), accel_group); } void create_about_window (const char *tag) { GtkWidget *vbox2; GtkWidget *frame1; GtkWidget *about_pixmap; GtkWidget *closeabout; about_window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_object_set_data (GTK_OBJECT (about_window), "about_window", about_window); gtk_window_set_title (GTK_WINDOW (about_window), "About hexter"); gtk_widget_realize(about_window); /* window must be realized for create_about_pixmap() */ vbox2 = gtk_vbox_new (FALSE, 0); gtk_widget_ref (vbox2); gtk_object_set_data_full (GTK_OBJECT (about_window), "vbox2", vbox2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox2); gtk_container_add (GTK_CONTAINER (about_window), vbox2); frame1 = gtk_frame_new (NULL); gtk_widget_ref (frame1); gtk_object_set_data_full (GTK_OBJECT (main_window), "frame1", frame1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (frame1); gtk_box_pack_start (GTK_BOX (vbox2), frame1, FALSE, FALSE, 0); about_pixmap = (GtkWidget *)create_about_pixmap (about_window); gtk_widget_ref (about_pixmap); gtk_object_set_data_full (GTK_OBJECT (about_window), "about_pixmap", about_pixmap, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (about_pixmap); gtk_container_add (GTK_CONTAINER (frame1), about_pixmap); gtk_misc_set_padding (GTK_MISC (about_pixmap), 5, 5); about_label = gtk_label_new ("Some message\ngoes here"); gtk_widget_ref (about_label); gtk_object_set_data_full (GTK_OBJECT (about_window), "about_label", about_label, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (about_label); gtk_box_pack_start (GTK_BOX (vbox2), about_label, FALSE, FALSE, 0); // gtk_label_set_line_wrap (GTK_LABEL (about_label), TRUE); gtk_label_set_justify (GTK_LABEL (about_label), GTK_JUSTIFY_CENTER); gtk_misc_set_padding (GTK_MISC (about_label), 5, 5); closeabout = gtk_button_new_with_label ("Dismiss"); gtk_widget_ref (closeabout); gtk_object_set_data_full (GTK_OBJECT (about_window), "closeabout", closeabout, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (closeabout); gtk_box_pack_start (GTK_BOX (vbox2), closeabout, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (about_window), "destroy", GTK_SIGNAL_FUNC(gtk_main_quit), NULL); gtk_signal_connect (GTK_OBJECT (about_window), "delete_event", GTK_SIGNAL_FUNC (on_delete_event_wrapper), (gpointer)on_about_dismiss); gtk_signal_connect (GTK_OBJECT (closeabout), "clicked", GTK_SIGNAL_FUNC (on_about_dismiss), NULL); } void create_import_file_selection (const char *tag) { char *title; GtkWidget *ok_button; GtkWidget *cancel_button; title = (char *)malloc(strlen(tag) + 21); sprintf(title, "%s - Import Patch Bank", tag); import_file_selection = gtk_file_selection_new (title); free(title); gtk_object_set_data (GTK_OBJECT (import_file_selection), "import_file_selection", import_file_selection); gtk_container_set_border_width (GTK_CONTAINER (import_file_selection), 10); ok_button = GTK_FILE_SELECTION (import_file_selection)->ok_button; gtk_object_set_data (GTK_OBJECT (import_file_selection), "ok_button", ok_button); gtk_widget_show (ok_button); GTK_WIDGET_SET_FLAGS (ok_button, GTK_CAN_DEFAULT); cancel_button = GTK_FILE_SELECTION (import_file_selection)->cancel_button; gtk_object_set_data (GTK_OBJECT (import_file_selection), "cancel_button", cancel_button); gtk_widget_show (cancel_button); GTK_WIDGET_SET_FLAGS (cancel_button, GTK_CAN_DEFAULT); gtk_signal_connect (GTK_OBJECT (import_file_selection), "destroy", GTK_SIGNAL_FUNC(gtk_main_quit), NULL); gtk_signal_connect (GTK_OBJECT (import_file_selection), "delete_event", (GtkSignalFunc)on_delete_event_wrapper, (gpointer)on_import_file_cancel); gtk_signal_connect (GTK_OBJECT (GTK_FILE_SELECTION (import_file_selection)->ok_button), "clicked", (GtkSignalFunc)on_import_file_ok, NULL); gtk_signal_connect (GTK_OBJECT (GTK_FILE_SELECTION (import_file_selection)->cancel_button), "clicked", (GtkSignalFunc)on_import_file_cancel, NULL); } void create_import_file_position_window (const char *tag) { GtkWidget *vbox4; GtkWidget *position_text_label; GtkWidget *hbox2; GtkWidget *label50; GtkWidget *position_spin; GtkWidget *hbox3; GtkWidget *position_cancel; GtkWidget *position_ok; import_file_position_window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_object_set_data (GTK_OBJECT (import_file_position_window), "import_file_position_window", import_file_position_window); set_window_title(import_file_position_window, tag, "Import Position"); vbox4 = gtk_vbox_new (FALSE, 0); gtk_widget_ref (vbox4); gtk_object_set_data_full (GTK_OBJECT (import_file_position_window), "vbox4", vbox4, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox4); gtk_container_add (GTK_CONTAINER (import_file_position_window), vbox4); gtk_container_set_border_width (GTK_CONTAINER (vbox4), 6); position_text_label = gtk_label_new ("Select the Program Number at which you " "wish to begin importing patches (existing " "patches will be overwritten)"); gtk_widget_ref (position_text_label); gtk_object_set_data_full (GTK_OBJECT (import_file_position_window), "position_text_label", position_text_label, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (position_text_label); gtk_box_pack_start (GTK_BOX (vbox4), position_text_label, TRUE, TRUE, 0); gtk_label_set_justify (GTK_LABEL (position_text_label), GTK_JUSTIFY_FILL); gtk_label_set_line_wrap (GTK_LABEL (position_text_label), TRUE); gtk_misc_set_padding (GTK_MISC (position_text_label), 0, 6); hbox2 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox2); gtk_object_set_data_full (GTK_OBJECT (import_file_position_window), "hbox2", hbox2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox2); gtk_box_pack_start (GTK_BOX (vbox4), hbox2, TRUE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (hbox2), 6); label50 = gtk_label_new ("Program Number"); gtk_widget_ref (label50); gtk_object_set_data_full (GTK_OBJECT (import_file_position_window), "label50", label50, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label50); gtk_box_pack_start (GTK_BOX (hbox2), label50, FALSE, TRUE, 2); import_file_position_spin_adj = gtk_adjustment_new (0, 0, 127, 1, 10, 0); position_spin = gtk_spin_button_new (GTK_ADJUSTMENT (import_file_position_spin_adj), 1, 0); gtk_widget_ref (position_spin); gtk_object_set_data_full (GTK_OBJECT (import_file_position_window), "position_spin", position_spin, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (position_spin); gtk_box_pack_start (GTK_BOX (hbox2), position_spin, FALSE, FALSE, 2); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (position_spin), TRUE); import_file_position_name_label = gtk_label_new ("default voice"); gtk_widget_ref (import_file_position_name_label); gtk_object_set_data_full (GTK_OBJECT (import_file_position_window), "import_file_position_name_label", import_file_position_name_label, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (import_file_position_name_label); gtk_box_pack_start (GTK_BOX (hbox2), import_file_position_name_label, FALSE, FALSE, 2); gtk_label_set_justify (GTK_LABEL (import_file_position_name_label), GTK_JUSTIFY_LEFT); hbox3 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox3); gtk_object_set_data_full (GTK_OBJECT (import_file_position_window), "hbox3", hbox3, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox3); gtk_box_pack_start (GTK_BOX (vbox4), hbox3, TRUE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (hbox3), 6); position_cancel = gtk_button_new_with_label ("Cancel"); gtk_widget_ref (position_cancel); gtk_object_set_data_full (GTK_OBJECT (import_file_position_window), "position_cancel", position_cancel, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (position_cancel); gtk_box_pack_start (GTK_BOX (hbox3), position_cancel, TRUE, FALSE, 12); position_ok = gtk_button_new_with_label ("Import"); gtk_widget_ref (position_ok); gtk_object_set_data_full (GTK_OBJECT (import_file_position_window), "position_ok", position_ok, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (position_ok); gtk_box_pack_end (GTK_BOX (hbox3), position_ok, TRUE, FALSE, 12); gtk_signal_connect (GTK_OBJECT (import_file_position_window), "destroy", GTK_SIGNAL_FUNC(gtk_main_quit), NULL); gtk_signal_connect (GTK_OBJECT (import_file_position_window), "delete_event", (GtkSignalFunc)on_delete_event_wrapper, (gpointer)on_import_file_position_cancel); gtk_signal_connect (GTK_OBJECT (import_file_position_spin_adj), "value_changed", GTK_SIGNAL_FUNC(on_position_change), (gpointer)import_file_position_name_label); gtk_signal_connect (GTK_OBJECT (position_ok), "clicked", (GtkSignalFunc)on_import_file_position_ok, NULL); gtk_signal_connect (GTK_OBJECT (position_cancel), "clicked", (GtkSignalFunc)on_import_file_position_cancel, NULL); } void create_notice_window (const char *tag) { GtkWidget *vbox3; GtkWidget *hbox1; GtkWidget *notice_dismiss; notice_window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_object_set_data (GTK_OBJECT (notice_window), "notice_window", notice_window); set_window_title(notice_window, tag, "Notice"); gtk_window_set_position (GTK_WINDOW (notice_window), GTK_WIN_POS_MOUSE); gtk_window_set_modal (GTK_WINDOW (notice_window), TRUE); vbox3 = gtk_vbox_new (FALSE, 0); gtk_widget_ref (vbox3); gtk_object_set_data_full (GTK_OBJECT (notice_window), "vbox3", vbox3, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox3); gtk_container_add (GTK_CONTAINER (notice_window), vbox3); notice_label_1 = gtk_label_new ("Some message\ngoes here"); gtk_widget_ref (notice_label_1); gtk_object_set_data_full (GTK_OBJECT (notice_window), "notice_label_1", notice_label_1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (notice_label_1); gtk_box_pack_start (GTK_BOX (vbox3), notice_label_1, TRUE, TRUE, 0); gtk_label_set_line_wrap (GTK_LABEL (notice_label_1), TRUE); gtk_misc_set_padding (GTK_MISC (notice_label_1), 10, 5); notice_label_2 = gtk_label_new ("more text\ngoes here"); gtk_widget_ref (notice_label_2); gtk_object_set_data_full (GTK_OBJECT (notice_window), "notice_label_2", notice_label_2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (notice_label_2); gtk_box_pack_start (GTK_BOX (vbox3), notice_label_2, FALSE, FALSE, 0); gtk_label_set_line_wrap (GTK_LABEL (notice_label_2), TRUE); gtk_misc_set_padding (GTK_MISC (notice_label_2), 10, 5); hbox1 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox1); gtk_object_set_data_full (GTK_OBJECT (notice_window), "hbox1", hbox1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox1); gtk_box_pack_start (GTK_BOX (vbox3), hbox1, FALSE, FALSE, 0); notice_dismiss = gtk_button_new_with_label ("Dismiss"); gtk_widget_ref (notice_dismiss); gtk_object_set_data_full (GTK_OBJECT (notice_window), "notice_dismiss", notice_dismiss, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (notice_dismiss); gtk_box_pack_start (GTK_BOX (hbox1), notice_dismiss, TRUE, FALSE, 0); gtk_container_set_border_width (GTK_CONTAINER (notice_dismiss), 7); gtk_signal_connect (GTK_OBJECT (notice_window), "destroy", GTK_SIGNAL_FUNC(gtk_main_quit), NULL); gtk_signal_connect (GTK_OBJECT (notice_window), "delete_event", GTK_SIGNAL_FUNC (on_delete_event_wrapper), (gpointer)on_notice_dismiss); gtk_signal_connect (GTK_OBJECT (notice_dismiss), "clicked", GTK_SIGNAL_FUNC (on_notice_dismiss), NULL); } void create_export_file_type_window (const char *tag) { GtkWidget *vbox1; GtkWidget *label1; GtkWidget *table1; GtkWidget *label2; GtkWidget *label3; GSList *save_type_group = NULL; GtkWidget *save_type_raw; GtkWidget *hseparator1; GtkWidget *label4; GtkWidget *table2; GtkWidget *label5; GtkWidget *export_file_start_spin; GtkWidget *hseparator2; GtkWidget *hbox3; GtkWidget *sft_position_cancel; GtkWidget *sft_position_ok; export_file_type_window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_object_set_data (GTK_OBJECT (export_file_type_window), "export_file_type_window", export_file_type_window); set_window_title(export_file_type_window, tag, "Export File Type"); vbox1 = gtk_vbox_new (FALSE, 0); gtk_widget_ref (vbox1); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "vbox1", vbox1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox1); gtk_container_add (GTK_CONTAINER (export_file_type_window), vbox1); gtk_container_set_border_width (GTK_CONTAINER (vbox1), 6); label1 = gtk_label_new ("Select the patch file format you wish to use for this export:"); gtk_widget_ref (label1); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "label1", label1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label1); gtk_box_pack_start (GTK_BOX (vbox1), label1, TRUE, TRUE, 0); gtk_label_set_justify (GTK_LABEL (label1), GTK_JUSTIFY_FILL); gtk_label_set_line_wrap (GTK_LABEL (label1), TRUE); gtk_misc_set_padding (GTK_MISC (label1), 0, 6); table1 = gtk_table_new (2, 2, FALSE); gtk_widget_ref (table1); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "table1", table1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (table1); gtk_box_pack_start (GTK_BOX (vbox1), table1, FALSE, FALSE, 0); label2 = gtk_label_new ("(32 patches, 4104 bytes, any suffix)"); gtk_widget_ref (label2); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "label2", label2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label2); gtk_table_attach (GTK_TABLE (table1), label2, 1, 2, 0, 1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label2), 0, 0.5); gtk_misc_set_padding (GTK_MISC (label2), 5, 0); label3 = gtk_label_new ("(any number of patches, 128 bytes per patch, hexter expects\".dx7\" suffix)"); gtk_widget_ref (label3); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "label3", label3, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label3); gtk_table_attach (GTK_TABLE (table1), label3, 1, 2, 1, 2, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_label_set_line_wrap (GTK_LABEL (label3), TRUE); gtk_misc_set_alignment (GTK_MISC (label3), 0, 0.5); gtk_misc_set_padding (GTK_MISC (label3), 5, 0); export_file_type_sysex = gtk_radio_button_new_with_label (save_type_group, "DX7 sys-ex file"); save_type_group = gtk_radio_button_group (GTK_RADIO_BUTTON (export_file_type_sysex)); gtk_widget_ref (export_file_type_sysex); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "export_file_type_sysex", export_file_type_sysex, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (export_file_type_sysex); gtk_table_attach (GTK_TABLE (table1), export_file_type_sysex, 0, 1, 0, 1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 4, 4); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (export_file_type_sysex), TRUE); save_type_raw = gtk_radio_button_new_with_label (save_type_group, "raw DX7 patch file"); save_type_group = gtk_radio_button_group (GTK_RADIO_BUTTON (save_type_raw)); gtk_widget_ref (save_type_raw); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "save_type_raw", save_type_raw, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (save_type_raw); gtk_table_attach (GTK_TABLE (table1), save_type_raw, 0, 1, 1, 2, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 4, 4); hseparator1 = gtk_hseparator_new (); gtk_widget_ref (hseparator1); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "hseparator1", hseparator1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hseparator1); gtk_box_pack_start (GTK_BOX (vbox1), hseparator1, FALSE, FALSE, 2); label4 = gtk_label_new ("Select the program numbers for the range of patches you wish to export:"); gtk_widget_ref (label4); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "label4", label4, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label4); gtk_box_pack_start (GTK_BOX (vbox1), label4, TRUE, TRUE, 0); gtk_label_set_justify (GTK_LABEL (label4), GTK_JUSTIFY_FILL); gtk_label_set_line_wrap (GTK_LABEL (label4), TRUE); gtk_misc_set_padding (GTK_MISC (label4), 0, 6); table2 = gtk_table_new (2, 3, FALSE); gtk_widget_ref (table2); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "table2", table2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (table2); gtk_box_pack_start (GTK_BOX (vbox1), table2, TRUE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (table2), 4); gtk_table_set_col_spacings (GTK_TABLE (table2), 2); label5 = gtk_label_new ("Start Program Number"); gtk_widget_ref (label5); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "label5", label5, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label5); gtk_table_attach (GTK_TABLE (table2), label5, 0, 1, 0, 1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label5), 0, 0.5); export_file_end_label = gtk_label_new ("End Program (inclusive)"); gtk_widget_ref (export_file_end_label); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "export_file_end_label", export_file_end_label, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (export_file_end_label); gtk_table_attach (GTK_TABLE (table2), export_file_end_label, 0, 1, 1, 2, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (export_file_end_label), 0, 0.5); gtk_widget_set_sensitive (export_file_end_label, FALSE); export_file_start_spin_adj = gtk_adjustment_new (0, 0, 96, 1, 10, 0); export_file_start_spin = gtk_spin_button_new (GTK_ADJUSTMENT (export_file_start_spin_adj), 1, 0); gtk_widget_ref (export_file_start_spin); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "export_file_start_spin", export_file_start_spin, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (export_file_start_spin); gtk_table_attach (GTK_TABLE (table2), export_file_start_spin, 1, 2, 0, 1, (GtkAttachOptions) (0), (GtkAttachOptions) (0), 0, 0); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (export_file_start_spin), TRUE); export_file_end_spin_adj = gtk_adjustment_new (31, 0, 127, 1, 10, 0); export_file_end_spin = gtk_spin_button_new (GTK_ADJUSTMENT (export_file_end_spin_adj), 1, 0); gtk_widget_ref (export_file_end_spin); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "export_file_end_spin", export_file_end_spin, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (export_file_end_spin); gtk_table_attach (GTK_TABLE (table2), export_file_end_spin, 1, 2, 1, 2, (GtkAttachOptions) (0), (GtkAttachOptions) (0), 0, 0); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (export_file_end_spin), TRUE); gtk_widget_set_sensitive (export_file_end_spin, FALSE); export_file_start_name = gtk_label_new ("(unset)"); gtk_widget_ref (export_file_start_name); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "export_file_start_name", export_file_start_name, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (export_file_start_name); gtk_table_attach (GTK_TABLE (table2), export_file_start_name, 2, 3, 0, 1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_label_set_justify (GTK_LABEL (export_file_start_name), GTK_JUSTIFY_LEFT); gtk_misc_set_alignment (GTK_MISC (export_file_start_name), 0, 0.5); export_file_end_name = gtk_label_new ("(unset)"); gtk_widget_ref (export_file_end_name); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "export_file_end_name", export_file_end_name, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (export_file_end_name); gtk_table_attach (GTK_TABLE (table2), export_file_end_name, 2, 3, 1, 2, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (export_file_end_name), 0, 0.5); hseparator2 = gtk_hseparator_new (); gtk_widget_ref (hseparator2); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "hseparator2", hseparator2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hseparator2); gtk_box_pack_start (GTK_BOX (vbox1), hseparator2, FALSE, FALSE, 2); hbox3 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox3); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "hbox3", hbox3, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox3); gtk_box_pack_start (GTK_BOX (vbox1), hbox3, TRUE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (hbox3), 6); sft_position_cancel = gtk_button_new_with_label ("Cancel"); gtk_widget_ref (sft_position_cancel); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "sft_position_cancel", sft_position_cancel, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (sft_position_cancel); gtk_box_pack_start (GTK_BOX (hbox3), sft_position_cancel, TRUE, FALSE, 12); sft_position_ok = gtk_button_new_with_label ("Export"); gtk_widget_ref (sft_position_ok); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "sft_position_ok", sft_position_ok, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (sft_position_ok); gtk_box_pack_end (GTK_BOX (hbox3), sft_position_ok, TRUE, FALSE, 12); gtk_signal_connect (GTK_OBJECT (export_file_type_window), "destroy", GTK_SIGNAL_FUNC(gtk_main_quit), NULL); gtk_signal_connect (GTK_OBJECT (export_file_type_window), "delete_event", GTK_SIGNAL_FUNC (on_delete_event_wrapper), (gpointer)on_export_file_type_cancel); gtk_signal_connect (GTK_OBJECT (export_file_type_sysex), "pressed", GTK_SIGNAL_FUNC (on_export_file_type_press), (gpointer)0); gtk_signal_connect (GTK_OBJECT (save_type_raw), "pressed", GTK_SIGNAL_FUNC (on_export_file_type_press), (gpointer)1); gtk_signal_connect (GTK_OBJECT (export_file_start_spin_adj), "value_changed", GTK_SIGNAL_FUNC(on_export_file_position_change), (gpointer)0); gtk_signal_connect (GTK_OBJECT (export_file_end_spin_adj), "value_changed", GTK_SIGNAL_FUNC(on_export_file_position_change), (gpointer)1); gtk_signal_connect (GTK_OBJECT (sft_position_ok), "clicked", (GtkSignalFunc)on_export_file_type_ok, NULL); gtk_signal_connect (GTK_OBJECT (sft_position_cancel), "clicked", (GtkSignalFunc)on_export_file_type_cancel, NULL); } void create_export_file_selection (const char *tag) { char *title; GtkWidget *ok_button; GtkWidget *cancel_button; title = (char *)malloc(strlen(tag) + 21); sprintf(title, "%s - Export Patch Bank", tag); export_file_selection = gtk_file_selection_new (title); free(title); gtk_object_set_data (GTK_OBJECT (export_file_selection), "export_file_selection", export_file_selection); gtk_container_set_border_width (GTK_CONTAINER (export_file_selection), 10); ok_button = GTK_FILE_SELECTION (export_file_selection)->ok_button; gtk_object_set_data (GTK_OBJECT (export_file_selection), "ok_button", ok_button); gtk_widget_show (ok_button); GTK_WIDGET_SET_FLAGS (ok_button, GTK_CAN_DEFAULT); cancel_button = GTK_FILE_SELECTION (export_file_selection)->cancel_button; gtk_object_set_data (GTK_OBJECT (export_file_selection), "cancel_button", cancel_button); gtk_widget_show (cancel_button); GTK_WIDGET_SET_FLAGS (cancel_button, GTK_CAN_DEFAULT); gtk_signal_connect (GTK_OBJECT (export_file_selection), "destroy", GTK_SIGNAL_FUNC(gtk_main_quit), NULL); gtk_signal_connect (GTK_OBJECT (export_file_selection), "delete_event", (GtkSignalFunc)on_delete_event_wrapper, (gpointer)on_export_file_cancel); gtk_signal_connect (GTK_OBJECT (GTK_FILE_SELECTION (export_file_selection)->ok_button), "clicked", (GtkSignalFunc)on_export_file_ok, NULL); gtk_signal_connect (GTK_OBJECT (GTK_FILE_SELECTION (export_file_selection)->cancel_button), "clicked", (GtkSignalFunc)on_export_file_cancel, NULL); } void create_edit_save_position_window (const char *tag) { GtkWidget *vbox4; GtkWidget *hbox2; GtkWidget *edit_save_position_text_label; GtkWidget *label50; GtkWidget *position_spin; GtkWidget *hbox3; GtkWidget *position_cancel; GtkWidget *position_ok; edit_save_position_window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_object_set_data (GTK_OBJECT (edit_save_position_window), "edit_save_position_window", edit_save_position_window); set_window_title(edit_save_position_window, tag, "Edit Save Position"); vbox4 = gtk_vbox_new (FALSE, 0); gtk_widget_ref (vbox4); gtk_object_set_data_full (GTK_OBJECT (edit_save_position_window), "vbox4", vbox4, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox4); gtk_container_add (GTK_CONTAINER (edit_save_position_window), vbox4); gtk_container_set_border_width (GTK_CONTAINER (vbox4), 6); edit_save_position_text_label = gtk_label_new ("Select the Program Number into which you " "wish to save the edited patch " "(the existing patch will be overwritten):"); gtk_widget_ref (edit_save_position_text_label); gtk_object_set_data_full (GTK_OBJECT (edit_save_position_window), "edit_save_position_text_label", edit_save_position_text_label, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (edit_save_position_text_label); gtk_box_pack_start (GTK_BOX (vbox4), edit_save_position_text_label, TRUE, TRUE, 0); gtk_label_set_justify (GTK_LABEL (edit_save_position_text_label), GTK_JUSTIFY_FILL); gtk_label_set_line_wrap (GTK_LABEL (edit_save_position_text_label), TRUE); gtk_misc_set_padding (GTK_MISC (edit_save_position_text_label), 0, 6); hbox2 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox2); gtk_object_set_data_full (GTK_OBJECT (edit_save_position_window), "hbox2", hbox2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox2); gtk_box_pack_start (GTK_BOX (vbox4), hbox2, TRUE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (hbox2), 6); label50 = gtk_label_new ("Program Number"); gtk_widget_ref (label50); gtk_object_set_data_full (GTK_OBJECT (edit_save_position_window), "label50", label50, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label50); gtk_box_pack_start (GTK_BOX (hbox2), label50, FALSE, TRUE, 2); edit_save_position_spin_adj = gtk_adjustment_new (0, 0, 127, 1, 10, 0); position_spin = gtk_spin_button_new (GTK_ADJUSTMENT (edit_save_position_spin_adj), 1, 0); gtk_widget_ref (position_spin); gtk_object_set_data_full (GTK_OBJECT (edit_save_position_window), "position_spin", position_spin, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (position_spin); gtk_box_pack_start (GTK_BOX (hbox2), position_spin, FALSE, FALSE, 2); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (position_spin), TRUE); edit_save_position_name_label = gtk_label_new ("default voice"); gtk_widget_ref (edit_save_position_name_label); gtk_object_set_data_full (GTK_OBJECT (edit_save_position_window), "edit_save_position_name_label", edit_save_position_name_label, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (edit_save_position_name_label); gtk_box_pack_start (GTK_BOX (hbox2), edit_save_position_name_label, FALSE, FALSE, 2); gtk_label_set_justify (GTK_LABEL (edit_save_position_name_label), GTK_JUSTIFY_LEFT); hbox3 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox3); gtk_object_set_data_full (GTK_OBJECT (edit_save_position_window), "hbox3", hbox3, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox3); gtk_box_pack_start (GTK_BOX (vbox4), hbox3, TRUE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (hbox3), 6); position_cancel = gtk_button_new_with_label ("Cancel"); gtk_widget_ref (position_cancel); gtk_object_set_data_full (GTK_OBJECT (edit_save_position_window), "position_cancel", position_cancel, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (position_cancel); gtk_box_pack_start (GTK_BOX (hbox3), position_cancel, TRUE, FALSE, 12); position_ok = gtk_button_new_with_label ("Save"); gtk_widget_ref (position_ok); gtk_object_set_data_full (GTK_OBJECT (edit_save_position_window), "position_ok", position_ok, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (position_ok); gtk_box_pack_end (GTK_BOX (hbox3), position_ok, TRUE, FALSE, 12); gtk_signal_connect (GTK_OBJECT (edit_save_position_window), "destroy", GTK_SIGNAL_FUNC(gtk_main_quit), NULL); gtk_signal_connect (GTK_OBJECT (edit_save_position_window), "delete_event", (GtkSignalFunc)on_delete_event_wrapper, (gpointer)on_edit_save_position_cancel); gtk_signal_connect (GTK_OBJECT (edit_save_position_spin_adj), "value_changed", GTK_SIGNAL_FUNC(on_position_change), (gpointer)edit_save_position_name_label); gtk_signal_connect (GTK_OBJECT (position_ok), "clicked", (GtkSignalFunc)on_edit_save_position_ok, NULL); gtk_signal_connect (GTK_OBJECT (position_cancel), "clicked", (GtkSignalFunc)on_edit_save_position_cancel, NULL); } void create_windows(const char *instance_tag) { char tag[50]; /* build a nice identifier string for the window titles */ if (strlen(instance_tag) == 0) { strcpy(tag, "hexter v" VERSION); } else if (strstr(instance_tag, "hexter")) { if (strlen(instance_tag) > 49) { snprintf(tag, 50, "...%s", instance_tag + strlen(instance_tag) - 46); /* hope the unique info is at the end */ } else { strcpy(tag, instance_tag); } } else { if (strlen(instance_tag) > 42) { snprintf(tag, 50, "hexter ...%s", instance_tag + strlen(instance_tag) - 39); } else { snprintf(tag, 50, "hexter %s", instance_tag); } } create_main_window(tag); create_editor_window(tag); create_about_window(tag); create_import_file_selection(tag); create_import_file_position_window(tag); create_export_file_type_window(tag); create_export_file_selection(tag); create_edit_save_position_window(tag); create_notice_window(tag); } hexter-version_1.1.0/src/gui_interface.h000066400000000000000000000056041325353653200203350ustar00rootroot00000000000000/* hexter DSSI software synthesizer GUI * * Copyright (C) 2004, 2009, 2012, 2018 Sean Bolton and others. * * 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 _GUI_INTERFACE_H #define _GUI_INTERFACE_H #include extern GtkWidget *main_window; extern GtkObject *test_note_key_adj; extern GtkObject *test_note_velocity_adj; extern GtkObject *tuning_adj; extern GtkObject *volume_adj; extern GtkObject *polyphony_adj; extern GtkWidget *monophonic_option_menu; extern GtkWidget *compat059_button; extern GtkWidget *sysex_channel_label; extern GtkWidget *sysex_channel_spin; extern GtkWidget *sysex_status_label; extern GtkWidget *about_window; extern GtkWidget *about_label; extern GtkWidget *import_file_selection; extern GtkWidget *import_file_position_window; extern GtkObject *import_file_position_spin_adj; extern GtkWidget *import_file_position_name_label; extern GtkWidget *notice_window; extern GtkWidget *notice_label_1; extern GtkWidget *notice_label_2; extern GtkWidget *export_file_type_window; extern GtkWidget *export_file_type_sysex; extern GtkObject *export_file_start_spin_adj; extern GtkWidget *export_file_start_name; extern GtkWidget *export_file_end_label; extern GtkWidget *export_file_end_spin; extern GtkObject *export_file_end_spin_adj; extern GtkWidget *export_file_end_name; extern GtkWidget *export_file_selection; extern GtkWidget *edit_save_position_window; extern GtkObject *edit_save_position_spin_adj; extern GtkWidget *edit_save_position_name_label; extern GtkWidget *patches_clist; #define PP_PITCH_BEND_RANGE 0 #define PP_PORTAMENTO_TIME 1 #define PP_MOD_WHEEL_SENSITIVITY 2 #define PP_FOOT_SENSITIVITY 3 #define PP_PRESSURE_SENSITIVITY 4 #define PP_BREATH_SENSITIVITY 5 #define PP_MOD_WHEEL_ASSIGN 0 #define PP_FOOT_ASSIGN 1 #define PP_PRESSURE_ASSIGN 2 #define PP_BREATH_ASSIGN 3 extern GtkWidget *performance_frame; extern GtkObject *performance_spin_adjustments[6]; extern GtkWidget *performance_assign_widgets[4][3]; extern const char *performance_spin_names[6]; extern const char *performance_assign_names[4]; void set_window_title(GtkWidget *window, const char *tag, const char *text); void create_windows(const char *instance_tag); #endif /* _GUI_INTERFACE_H */ hexter-version_1.1.0/src/gui_main.c000066400000000000000000000311101325353653200173030ustar00rootroot00000000000000/* hexter DSSI software synthesizer GUI * * Copyright (C) 2004, 2009, 2011, 2012, 2018 Sean Bolton and others. * * Portions of this file may have come from Chris Cannam and Steve * Harris's public domain DSSI example code. * * 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. */ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include "hexter_types.h" #include "hexter.h" #include "gui_main.h" #include "gui_callbacks.h" #include "gui_interface.h" #include "gui_midi.h" #include "gui_patch_edit.h" #include "gui_data.h" #include "dx7_voice_data.h" /* ==== global variables ==== */ char *user_friendly_id; char * osc_host_url; char * osc_self_url; lo_address osc_host_address; char * osc_configure_path; char * osc_control_path; char * osc_exiting_path; char * osc_hide_path; char * osc_midi_path; char * osc_program_path; char * osc_quit_path; char * osc_rate_path; char * osc_show_path; char * osc_update_path; dx7_patch_t *patches = NULL; int patch_section_dirty[4]; char * project_directory = NULL; int current_program = 0; /* edit_buffer_active should be TRUE when the plugin has an edit_buffer * overlay, and FALSE when it doesn't. Simple. Then in that corner case where * edit_buffer.program != current_program and edit_buffer_active == TRUE, * the GUI patch editor should be insensitive. */ int edit_buffer_active = 0; edit_buffer_t edit_buffer; int host_requested_quit = 0; int gui_test_mode = 0; gint update_request_timeout_tag; /* ==== OSC handling ==== */ static char * osc_build_path(char *base_path, char *method) { char buffer[256]; char *full_path; snprintf(buffer, 256, "%s%s", base_path, method); if (!(full_path = strdup(buffer))) { GUIDB_MESSAGE(DB_OSC, ": out of memory!\n"); exit(1); } return full_path; } static void osc_error(int num, const char *msg, const char *path) { GUIDB_MESSAGE(DB_OSC, " error: liblo server error %d in path \"%s\": %s\n", num, (path ? path : "(null)"), msg); } int osc_debug_handler(const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data) { int i; GUIDB_MESSAGE(DB_OSC, " warning: unhandled OSC message to <%s>:\n", path); for (i = 0; i < argc; ++i) { fprintf(stderr, "arg %d: type '%c': ", i, types[i]); fflush(stderr); lo_arg_pp((lo_type)types[i], argv[i]); /* -FIX- Ack, mixing stderr and stdout... */ fprintf(stdout, "\n"); fflush(stdout); } return 1; /* try any other handlers */ } int osc_action_handler(const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data) { if (!strcmp(user_data, "show")) { /* GUIDB_MESSAGE(DB_OSC, " osc_action_handler: received 'show' message\n"); */ if (!GTK_WIDGET_MAPPED(main_window)) gtk_widget_show(main_window); else gdk_window_raise(main_window->window); } else if (!strcmp(user_data, "hide")) { /* GUIDB_MESSAGE(DB_OSC, " osc_action_handler: received 'hide' message\n"); */ gtk_widget_hide(main_window); } else if (!strcmp(user_data, "quit")) { /* GUIDB_MESSAGE(DB_OSC, " osc_action_handler: received 'quit' message\n"); */ host_requested_quit = 1; gtk_main_quit(); } else if (!strcmp(user_data, "sample-rate")) { /* GUIDB_MESSAGE(DB_OSC, " osc_action_handler: received 'sample-rate' message, rate = %d\n", argv[0]->i); */ /* ignore it */ } else { return osc_debug_handler(path, types, argv, argc, msg, user_data); } return 0; } int osc_configure_handler(const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data) { char *key, *value; if (argc < 2) { GUIDB_MESSAGE(DB_OSC, " error: too few arguments to osc_configure_handler\n"); return 1; } key = &argv[0]->s; value = &argv[1]->s; if (strlen(key) == 8 && !strncmp(key, "patches", 7) && key[7] >= '0' && key[7] <= '3') { update_patches(key, value); } else if (!strcmp(key, "edit_buffer")) { update_edit_buffer(value); } else if (!strcmp(key, "performance")) { update_performance(value); } else if (!strcmp(key, "monophonic")) { update_monophonic(value); } else if (!strcmp(key, "polyphony")) { update_polyphony(value); #ifdef DSSI_GLOBAL_CONFIGURE_PREFIX } else if (!strcmp(key, DSSI_GLOBAL_CONFIGURE_PREFIX "polyphony")) { #else } else if (!strcmp(key, "global_polyphony")) { #endif GUIDB_MESSAGE(DB_OSC, " osc_configure_handler: received unsupported global polyphony limit of %s\n", value); #ifdef DSSI_PROJECT_DIRECTORY_KEY } else if (!strcmp(key, DSSI_PROJECT_DIRECTORY_KEY)) { if (project_directory) free(project_directory); project_directory = strdup(value); #endif } else { return osc_debug_handler(path, types, argv, argc, msg, user_data); } return 0; } int osc_control_handler(const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data) { int port; float value; if (argc < 2) { GUIDB_MESSAGE(DB_OSC, " error: too few arguments to osc_control_handler\n"); return 1; } port = argv[0]->i; value = argv[1]->f; GUIDB_MESSAGE(DB_OSC, " osc_control_handler: control %d now %f\n", port, value); update_voice_widget(port, value); return 0; } int osc_program_handler(const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data) { int bank, program; if (argc < 2) { GUIDB_MESSAGE(DB_OSC, " error: too few arguments to osc_program_handler\n"); return 1; } bank = argv[0]->i; program = argv[1]->i; if (bank || program < 0 || program > 127) { GUIDB_MESSAGE(DB_OSC, ": out-of-range program select (bank %d, program %d)\n", bank, program); return 0; } GUIDB_MESSAGE(DB_OSC, " osc_program_handler: received program change, bank %d, program %d\n", bank, program); update_from_program_select(bank, program); return 0; } void osc_data_on_socket_callback(gpointer data, gint source, GdkInputCondition condition) { lo_server server = (lo_server)data; lo_server_recv_noblock(server, 0); } gint update_request_timeout_callback(gpointer data) { if (!gui_test_mode) { /* send our update request */ lo_send(osc_host_address, osc_update_path, "s", osc_self_url); } else { gtk_widget_show(main_window); } update_request_timeout_tag = 0; /* set to invalid, so we don't try to remove it later */ return FALSE; /* don't need to do this again */ } /* ==== main ==== */ char *test_argv[5] = { NULL, NULL, "-", "-", "hexter" }; int main(int argc, char *argv[]) { char *host, *port, *path, *tmp_url; lo_server osc_server; gint osc_server_socket_tag; DSSP_DEBUG_INIT("hexter_gtk"); #ifdef DSSP_DEBUG GUIDB_MESSAGE(DB_MAIN, " starting (pid %d)...\n", getpid()); #else fprintf(stderr, "hexter_gtk starting (pid %d)...\n", getpid()); #endif /* { int i; fprintf(stderr, "args:\n"); for(i=0; i 1 && !strcmp(argv[1], "-test")) { gui_test_mode = 1; test_argv[0] = argv[0]; test_argv[1] = "osc.udp://localhost:9/test/mode"; if (argc >= 5) test_argv[4] = argv[4]; argc = 5; argv = test_argv; } else if (argc != 5) { fprintf(stderr, "usage: %s \n" " or: %s -test\n", argv[0], argv[0]); exit(1); } user_friendly_id = argv[4]; /* set up OSC support */ osc_host_url = argv[1]; host = lo_url_get_hostname(osc_host_url); port = lo_url_get_port(osc_host_url); path = lo_url_get_path(osc_host_url); osc_host_address = lo_address_new(host, port); osc_configure_path = osc_build_path(path, "/configure"); osc_control_path = osc_build_path(path, "/control"); osc_exiting_path = osc_build_path(path, "/exiting"); osc_hide_path = osc_build_path(path, "/hide"); osc_midi_path = osc_build_path(path, "/midi"); osc_program_path = osc_build_path(path, "/program"); osc_quit_path = osc_build_path(path, "/quit"); osc_rate_path = osc_build_path(path, "/sample-rate"); osc_show_path = osc_build_path(path, "/show"); osc_update_path = osc_build_path(path, "/update"); osc_server = lo_server_new(NULL, osc_error); lo_server_add_method(osc_server, osc_configure_path, "ss", osc_configure_handler, NULL); lo_server_add_method(osc_server, osc_control_path, "if", osc_control_handler, NULL); lo_server_add_method(osc_server, osc_hide_path, "", osc_action_handler, "hide"); lo_server_add_method(osc_server, osc_program_path, "ii", osc_program_handler, NULL); lo_server_add_method(osc_server, osc_quit_path, "", osc_action_handler, "quit"); lo_server_add_method(osc_server, osc_rate_path, "i", osc_action_handler, "sample-rate"); lo_server_add_method(osc_server, osc_show_path, "", osc_action_handler, "show"); lo_server_add_method(osc_server, NULL, NULL, osc_debug_handler, NULL); tmp_url = lo_server_get_url(osc_server); osc_self_url = osc_build_path(tmp_url, (strlen(path) > 1 ? path + 1 : path)); free(tmp_url); GUIDB_MESSAGE(DB_OSC, ": listening at %s\n", osc_self_url); /* set up GTK+ */ patch_edit_create_edit_adjs(); create_windows(user_friendly_id); /* add OSC server socket to GTK+'s watched I/O */ if (lo_server_get_socket_fd(osc_server) < 0) { fprintf(stderr, "hexter_gtk fatal: OSC transport does not support exposing socket fd\n"); exit(1); } osc_server_socket_tag = gdk_input_add(lo_server_get_socket_fd(osc_server), GDK_INPUT_READ, osc_data_on_socket_callback, osc_server); /* set up patches */ gui_data_patches_init(); rebuild_patches_clist(); update_performance_widgets(dx7_init_performance); edit_buffer.program = 0; dx7_patch_unpack(patches, edit_buffer.program, edit_buffer.voice); patch_edit_connect_to_model(); patch_edit_update_editors(); /* schedule our update request */ update_request_timeout_tag = gtk_timeout_add(50, update_request_timeout_callback, NULL); /* let GTK+ take it from here */ gtk_main(); /* clean up and exit */ GUIDB_MESSAGE(DB_MAIN, ": yep, we got to the cleanup!\n"); /* release test note, if playing */ release_test_note(); /* shut down sys-ex receive, if enabled */ if (sysex_enabled) { sysex_stop(); } /* GTK+ cleanup */ if (update_request_timeout_tag != 0) gtk_timeout_remove(update_request_timeout_tag); gdk_input_remove(osc_server_socket_tag); /* say bye-bye */ if (!host_requested_quit) { lo_send(osc_host_address, osc_exiting_path, ""); } /* clean up patches */ gui_data_patches_free(); if (project_directory) free(project_directory); /* clean up OSC support */ lo_server_free(osc_server); free(host); free(port); free(path); free(osc_configure_path); free(osc_control_path); free(osc_exiting_path); free(osc_hide_path); free(osc_midi_path); free(osc_program_path); free(osc_quit_path); free(osc_rate_path); free(osc_show_path); free(osc_update_path); free(osc_self_url); return 0; } hexter-version_1.1.0/src/gui_main.h000066400000000000000000000033471325353653200173230ustar00rootroot00000000000000/* hexter DSSI software synthesizer GUI * * Copyright (C) 2004, 2009, 2012 Sean Bolton and others. * * 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 _GUI_MAIN_H #define _GUI_MAIN_H #ifdef HAVE_CONFIG_H #include #endif #include #include "hexter_types.h" typedef struct { int program; uint8_t voice[DX7_VOICE_SIZE_UNPACKED]; } edit_buffer_t; extern char *user_friendly_id; extern char * osc_host_url; extern char * osc_self_url; extern lo_address osc_host_address; extern char * osc_configure_path; extern char * osc_control_path; extern char * osc_exiting_path; extern char * osc_hide_path; extern char * osc_midi_path; extern char * osc_program_path; extern char * osc_quit_path; extern char * osc_show_path; extern char * osc_update_path; extern dx7_patch_t *patches; extern int patch_section_dirty[]; extern char *project_directory; extern int current_program; extern int edit_buffer_active; extern edit_buffer_t edit_buffer; #endif /* _GUI_MAIN_H */ hexter-version_1.1.0/src/gui_midi.c000066400000000000000000000072251325353653200173130ustar00rootroot00000000000000/* hexter DSSI software synthesizer GUI * * Copyright (C) 2004, 2009, 2012 Sean Bolton and others. * * Portions of this file may have come from specimen, copyright * (c) 2004 Pete Bessman under the GNU General Public License * version 2. * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #ifdef MIDI_ALSA #include #include #include "gui_main.h" #include "gui_midi.h" int sysex_enabled = 0; snd_seq_t *sysex_seq_handle; int sysex_seq_client_id; int sysex_seq_port_id; gint sysex_seq_gtk_fd_tag; sysex_callback_function *sysex_handler_callback; void sysex_receive_callback(gpointer data, gint source, GdkInputCondition condition) { snd_seq_event_t *ev; do { if (snd_seq_event_input(sysex_seq_handle, &ev) <= 0) continue; if (ev->type == SND_SEQ_EVENT_SYSEX) { (*sysex_handler_callback)(ev->data.ext.len, ev->data.ext.ptr); } snd_seq_free_event(ev); } while (snd_seq_event_input_pending(sysex_seq_handle, 0) > 0); } int sysex_start(sysex_callback_function *handler, char **errmsg) { char buf[33]; int npfd; struct pollfd pfd; if (snd_seq_open(&sysex_seq_handle, "default", SND_SEQ_OPEN_INPUT, SND_SEQ_NONBLOCK) < 0) { *errmsg = "Error opening ALSA sequencer.\n"; return 0; } snprintf(buf, 33, "hexter %s", user_friendly_id); snd_seq_set_client_name(sysex_seq_handle, buf); sysex_seq_client_id = snd_seq_client_id(sysex_seq_handle); if ((sysex_seq_port_id = snd_seq_create_simple_port(sysex_seq_handle, "sys-ex receive", SND_SEQ_PORT_CAP_WRITE|SND_SEQ_PORT_CAP_SUBS_WRITE, SND_SEQ_PORT_TYPE_APPLICATION)) < 0) { *errmsg = "Error creating sequencer port.\n"; snd_seq_close(sysex_seq_handle); return 0; } sysex_handler_callback = handler; /* tell GTK+ to watch seq fd */ npfd = snd_seq_poll_descriptors_count(sysex_seq_handle, POLLIN); if (npfd != 1) { *errmsg = "Incompatible ALSA version.\n"; snd_seq_close(sysex_seq_handle); return 0; } snd_seq_poll_descriptors(sysex_seq_handle, &pfd, npfd, POLLIN); sysex_seq_gtk_fd_tag = gdk_input_add(pfd.fd, GDK_INPUT_READ, sysex_receive_callback, NULL); sysex_enabled = 1; return 1; } void sysex_stop(void) { gdk_input_remove(sysex_seq_gtk_fd_tag); snd_seq_delete_simple_port (sysex_seq_handle, sysex_seq_port_id); snd_seq_close(sysex_seq_handle); sysex_enabled = 0; } #else /* MIDI_ALSA */ #include "gui_midi.h" int sysex_enabled = 0; int sysex_start(sysex_callback_function *handler, char **errmsg) { *errmsg = "MIDI sys-ex support not available!\n"; sysex_enabled = 0; return 0; } void sysex_stop(void) { sysex_enabled = 0; } #endif /* MIDI_ALSA */ hexter-version_1.1.0/src/gui_midi.h000066400000000000000000000022151325353653200173120ustar00rootroot00000000000000/* hexter DSSI software synthesizer GUI * * Copyright (C) 2004, 2009 Sean Bolton and others. * * 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 _GUI_MIDI_H #define _GUI_MIDI_H extern int sysex_enabled; extern int sysex_seq_client_id; extern int sysex_seq_port_id; typedef void (sysex_callback_function)(unsigned int length, unsigned char* data); int sysex_start(sysex_callback_function *sysex_handler, char **error_message); void sysex_stop(void); #endif /* _GUI_MIDI_H */ hexter-version_1.1.0/src/gui_patch_edit.c000066400000000000000000000576411325353653200205040ustar00rootroot00000000000000/* hexter DSSI software synthesizer GUI * * Copyright (C) 2011, 2012, 2013, 2018 Sean Bolton. * * 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 #include #include "hexter_types.h" #include "dx7_voice_data.h" #include "gui_main.h" #include "gui_data.h" #include "gui_callbacks.h" #include "gui_interface.h" #include "gui_patch_edit.h" GtkWidget *editor_window; GtkWidget *editor_status_label; GtkWidget *editor_name_entry; GtkWidget *editor_discard_button; GtkWidget *editor_save_button; GtkWidget *editor_test_note_button; GtkObject *edit_adj[DX7_VOICE_PARAMETERS - 1]; /* omitting name */ static unsigned char pept_maximum[PEPT_COUNT] = { 0, 0, 99, 7, 1, 31, 99, 14, 3, 31, 3, 99, 48, 1, 5, 99, 99 }; typedef struct _pe_voice_parameter_t { char type; } pe_voice_parameter_t; static pe_voice_parameter_t pe_voice_parameter[DX7_VOICE_PARAMETERS - 1 /* omitting name */] = { { PEPT_Env }, /* 0 R1 */ { PEPT_Env }, /* 1 R2 */ { PEPT_Env }, /* 2 R3 */ { PEPT_Env }, /* 3 R4 */ { PEPT_Env }, /* 4 L1 */ { PEPT_Env }, /* 5 L2 */ { PEPT_Env }, /* 6 L3 */ { PEPT_Env }, /* 7 L4 */ { PEPT_BkPt }, /* 8 */ { PEPT_Scal99 }, /* 9 Left Depth */ { PEPT_Scal99 }, /* 10 Right Depth */ { PEPT_Curve }, /* 11 Left Curve */ { PEPT_Curve }, /* 12 Right Curve */ { PEPT_0_7 }, /* 13 RS */ { PEPT_0_3 }, /* 14 AMS */ { PEPT_0_7 }, /* 15 VS */ { PEPT_Scal99 }, /* 16 OL */ { PEPT_Mode }, /* 17 */ { PEPT_FC }, /* 18 FC */ { PEPT_FF }, /* 19 FF */ { PEPT_Detune }, /* 20 Detune */ { PEPT_Env }, /* 21 R1 */ { PEPT_Env }, /* 22 R2 */ { PEPT_Env }, /* 23 R3 */ { PEPT_Env }, /* 24 R4 */ { PEPT_Env }, /* 25 L1 */ { PEPT_Env }, /* 26 L2 */ { PEPT_Env }, /* 27 L3 */ { PEPT_Env }, /* 28 L4 */ { PEPT_BkPt }, /* 29 */ { PEPT_Scal99 }, /* 30 Left Depth */ { PEPT_Scal99 }, /* 31 Right Depth */ { PEPT_Curve }, /* 32 Left Curve */ { PEPT_Curve }, /* 33 Right Curve */ { PEPT_0_7 }, /* 34 RS */ { PEPT_0_3 }, /* 35 AMS */ { PEPT_0_7 }, /* 36 VS */ { PEPT_Scal99 }, /* 37 OL */ { PEPT_Mode }, /* 38 */ { PEPT_FC }, /* 39 FC */ { PEPT_FF }, /* 40 FF */ { PEPT_Detune }, /* 41 Detune */ { PEPT_Env }, /* 42 R1 */ { PEPT_Env }, /* 43 R2 */ { PEPT_Env }, /* 44 R3 */ { PEPT_Env }, /* 45 R4 */ { PEPT_Env }, /* 46 L1 */ { PEPT_Env }, /* 47 L2 */ { PEPT_Env }, /* 48 L3 */ { PEPT_Env }, /* 49 L4 */ { PEPT_BkPt }, /* 50 */ { PEPT_Scal99 }, /* 51 Left Depth */ { PEPT_Scal99 }, /* 52 Right Depth */ { PEPT_Curve }, /* 53 Left Curve */ { PEPT_Curve }, /* 54 Right Curve */ { PEPT_0_7 }, /* 55 RS */ { PEPT_0_3 }, /* 56 AMS */ { PEPT_0_7 }, /* 57 VS */ { PEPT_Scal99 }, /* 58 OL */ { PEPT_Mode }, /* 59 */ { PEPT_FC }, /* 60 FC */ { PEPT_FF }, /* 61 FF */ { PEPT_Detune }, /* 62 Detune */ { PEPT_Env }, /* 63 R1 */ { PEPT_Env }, /* 64 R2 */ { PEPT_Env }, /* 65 R3 */ { PEPT_Env }, /* 66 R4 */ { PEPT_Env }, /* 67 L1 */ { PEPT_Env }, /* 68 L2 */ { PEPT_Env }, /* 69 L3 */ { PEPT_Env }, /* 70 L4 */ { PEPT_BkPt }, /* 71 */ { PEPT_Scal99 }, /* 72 Left Depth */ { PEPT_Scal99 }, /* 73 Right Depth */ { PEPT_Curve }, /* 74 Left Curve */ { PEPT_Curve }, /* 75 Right Curve */ { PEPT_0_7 }, /* 76 RS */ { PEPT_0_3 }, /* 77 AMS */ { PEPT_0_7 }, /* 78 VS */ { PEPT_Scal99 }, /* 79 OL */ { PEPT_Mode }, /* 80 */ { PEPT_FC }, /* 81 FC */ { PEPT_FF }, /* 82 FF */ { PEPT_Detune }, /* 83 Detune */ { PEPT_Env }, /* 84 R1 */ { PEPT_Env }, /* 85 R2 */ { PEPT_Env }, /* 86 R3 */ { PEPT_Env }, /* 87 R4 */ { PEPT_Env }, /* 88 L1 */ { PEPT_Env }, /* 89 L2 */ { PEPT_Env }, /* 90 L3 */ { PEPT_Env }, /* 91 L4 */ { PEPT_BkPt }, /* 92 */ { PEPT_Scal99 }, /* 93 Left Depth */ { PEPT_Scal99 }, /* 94 Right Depth */ { PEPT_Curve }, /* 95 Left Curve */ { PEPT_Curve }, /* 96 Right Curve */ { PEPT_0_7 }, /* 97 RS */ { PEPT_0_3 }, /* 98 AMS */ { PEPT_0_7 }, /* 99 VS */ { PEPT_Scal99 }, /* 100 OL */ { PEPT_Mode }, /* 101 */ { PEPT_FC }, /* 102 FC */ { PEPT_FF }, /* 103 FF */ { PEPT_Detune }, /* 104 Detune */ { PEPT_Env }, /* 105 R1 */ { PEPT_Env }, /* 106 R2 */ { PEPT_Env }, /* 107 R3 */ { PEPT_Env }, /* 108 R4 */ { PEPT_Env }, /* 109 L1 */ { PEPT_Env }, /* 110 L2 */ { PEPT_Env }, /* 111 L3 */ { PEPT_Env }, /* 112 L4 */ { PEPT_BkPt }, /* 113 */ { PEPT_Scal99 }, /* 114 Left Depth */ { PEPT_Scal99 }, /* 115 Right Depth */ { PEPT_Curve }, /* 116 Left Curve */ { PEPT_Curve }, /* 117 Right Curve */ { PEPT_0_7 }, /* 118 RS */ { PEPT_0_3 }, /* 119 AMS */ { PEPT_0_7 }, /* 120 VS */ { PEPT_Scal99 }, /* 121 OL */ { PEPT_Mode }, /* 122 */ { PEPT_FC }, /* 123 FC */ { PEPT_FF }, /* 124 FF */ { PEPT_Detune }, /* 125 Detune */ { PEPT_Env }, /* 126 Pitch Envelope R1 */ { PEPT_Env }, /* 127 */ { PEPT_Env }, /* 128 */ { PEPT_Env }, /* 129 */ { PEPT_Env }, /* 130 */ { PEPT_Env }, /* 131 */ { PEPT_Env }, /* 132 */ { PEPT_Env }, /* 133 P L4 */ { PEPT_Alg }, /* 134 Alg */ { PEPT_0_7 }, /* 135 Feedback */ { PEPT_OnOff }, /* 136 Osc Key Sync */ { PEPT_0_99 }, /* 137 LFO Speed */ { PEPT_0_99 }, /* 138 Delay */ { PEPT_0_99 }, /* 139 PMD */ { PEPT_0_99 }, /* 140 AMD */ { PEPT_OnOff }, /* 141 Sync */ { PEPT_LFOWave }, /* 142 Wave */ { PEPT_0_7 }, /* 143 PMS */ { PEPT_Trans } /* 144 */ // { PEPT_Name }, /* 145 Name */ }; void patch_edit_copy_name_to_utf8(char *buffer, uint8_t *patch, int packed) { int i, j; int offset = packed ? DX7_VOICE_SIZE_PACKED - 10 : DX7_VOICE_PARAMETERS - 1; for (i = 0, j = 0; i < 10; i++, j++) { /* translate DX7-ASCII to UTF-8 */ buffer[j] = patch[offset + i]; switch (buffer[j]) { case 92: buffer[j++] = 0xC2; buffer[j] = 0xA5; break; /* yen C2 A5 */ case 126: buffer[j++] = 0xC2; buffer[j] = 0xBB; break; /* >> C2 BB */ case 127: buffer[j++] = 0xC2; buffer[j] = 0xAB; break; /* << C2 AB */ default: if (buffer[j] < 32 || buffer[j] > 127) { buffer[j++] = 0xC2; buffer[j] = 0xB7; /* bullet C2 B7 */ } break; } } buffer[j] = 0; } void patch_edit_on_name_entry_changed(GtkEditable *editable, gpointer user_data) { const char *p0, *p; int i; /* GUIDB_MESSAGE(DB_GUI, ": patch_edit_on_name_entry_changed called\n"); */ /* copy name entry to patch */ p0 = gtk_entry_get_text(GTK_ENTRY(editor_name_entry)); for (i = 0; i < 10; i++) { /* translate UTF-8 to DX7-ASCII */ char c = ' '; p = *p0 ? g_utf8_next_char(p0) : p0; if (p - p0 == 3) { if (!strncmp(p0, "•", 3)) c = 31; /* 0 to 31 block graphics */ } else if (p - p0 == 2) { if (!strncmp(p0, "·", 2)) c = 31; /* 0 to 31 block graphics */ else if (!strncmp(p0, "¥", 2)) c = 92; /* yen */ else if (!strncmp(p0, "«", 2)) c = 127; /* << */ else if (!strncmp(p0, "»", 2)) c = 126; /* >> */ } else if (p - p0 == 1) { c = *p0; } edit_buffer.voice[i + DX7_VOICE_PARAMETERS - 1] = c; p0 = p; } edit_buffer_active = TRUE; gui_data_send_edit_buffer(); patch_edit_update_status(); } void patch_edit_on_edit_adj_changed(GtkAdjustment *adj, gpointer data) { float value = adj->value; int offset = GPOINTER_TO_INT(data); /* GUIDB_MESSAGE(DB_GUI, ": patch_edit_on_edit_adj_changed: offset %d, value %f\n", offset, value); */ edit_buffer.voice[offset] = value; edit_buffer_active = TRUE; gui_data_send_edit_buffer(); patch_edit_update_status(); } void patch_edit_create_edit_adjs(void) { int i; /* create the adjustments */ for (i = 0; i < DX7_VOICE_PARAMETERS - 1 /* omitting name */; i++) { int max = pept_maximum[(int)pe_voice_parameter[i].type]; edit_adj[i] = gtk_adjustment_new(0, 0, max, 1, (max > 10) ? 10 : 1, 0); } } /* gtk_spin_button_new() (wrongly) forces the emission of "value-changed" by the * adjustment it attaches to, so we don't connect the edit_buffer to the * edit_adj[] adjustments at least until the widgy editor is built. */ void patch_edit_connect_to_model(void) { int i; for (i = 0; i < DX7_VOICE_PARAMETERS - 1 /* omitting name */; i++) { g_signal_connect (G_OBJECT(edit_adj[i]), "value-changed", G_CALLBACK (patch_edit_on_edit_adj_changed), GINT_TO_POINTER(i)); } } void patch_edit_update_status(void) { char buf[60]; int editable; if (!edit_buffer_active) { snprintf(buf, 60, "Editing patch %d (currently unchanged)", edit_buffer.program); gtk_label_set_text (GTK_LABEL (editor_status_label), buf); editable = TRUE; } else { if (current_program != edit_buffer.program) { /* this should happen only transiently at startup, or as the result of a buggy host */ /* GUIDB_MESSAGE(DB_GUI, ": edit buffer sync error, current_program %d, edit_buffer.program %d\n", * current_program, edit_buffer.program); */ gtk_label_set_text (GTK_LABEL (editor_status_label), "(edit buffer sync error, select program to clear)"); editable = FALSE; } else { snprintf(buf, 60, "Editing patch %d (changes have not been saved)", edit_buffer.program); gtk_label_set_text (GTK_LABEL (editor_status_label), buf); editable = TRUE; } } gtk_widget_set_sensitive (editor_name_entry, editable); gtk_widget_set_sensitive (widgy_widget, editable); gtk_widget_set_sensitive (retro_widget, editable); gtk_widget_set_sensitive (editor_discard_button, edit_buffer_active); } void patch_edit_update_editors(void) { int i; char name[21]; /* update all the adjustments */ for (i = 0; i < DX7_VOICE_PARAMETERS - 1 /* omitting name */; i++) { GTK_ADJUSTMENT(edit_adj[i])->value = (float)edit_buffer.voice[i]; /* temporarily block signal to model, then update adjustment */ g_signal_handlers_block_by_func(G_OBJECT(edit_adj[i]), patch_edit_on_edit_adj_changed, GINT_TO_POINTER(i)); gtk_adjustment_value_changed(GTK_ADJUSTMENT(edit_adj[i])); g_signal_handlers_unblock_by_func(G_OBJECT(edit_adj[i]), patch_edit_on_edit_adj_changed, GINT_TO_POINTER(i)); } /* update name entry */ patch_edit_copy_name_to_utf8(name, edit_buffer.voice, FALSE); /* temporarily block signal to model, then update entry text */ g_signal_handlers_block_by_func(G_OBJECT(editor_name_entry), patch_edit_on_name_entry_changed, NULL); gtk_entry_set_text(GTK_ENTRY(editor_name_entry), name); g_signal_handlers_unblock_by_func(G_OBJECT(editor_name_entry), patch_edit_on_name_entry_changed, NULL); patch_edit_update_status(); } int patch_edit_get_edit_parameter(int offset) { if (offset < 0 || offset >= DX7_VOICE_PARAMETERS - 1) return 0; /* hmmm. */ else return (int)GTK_ADJUSTMENT(edit_adj[offset])->value; } char * patch_edit_NoteText(int note) { static char _NoteText[5]={'x','x','x','x','\0'}; _NoteText[0]=(" C D F G A ")[note%12]; _NoteText[1]=("C#D#EF#G#A#B")[note%12]; _NoteText[2]=("--012345678")[note/12]; _NoteText[3]=("21 ")[note/12]; return _NoteText; } unsigned short peFFF[100] = { 1000, 1023, 1047, 1072, 1096, 1122, 1148, 1175, 1202, 1230, 1259, 1288, 1318, 1349, 1380, 1413, 1445, 1479, 1514, 1549, 1585, 1622, 1660, 1698, 1738, 1778, 1820, 1862, 1905, 1950, 1995, 2042, 2089, 2138, 2188, 2239, 2291, 2344, 2399, 2455, 2512, 2570, 2630, 2692, 2754, 2818, 2884, 2951, 3020, 3090, 3162, 3236, 3311, 3388, 3467, 3548, 3631, 3715, 3802, 3890, 3981, 4074, 4169, 4266, 4365, 4467, 4571, 4677, 4786, 4898, 5012, 5129, 5248, 5370, 5495, 5623, 5754, 5888, 6026, 6166, 6310, 6457, 6607, 6761, 6918, 7079, 7244, 7413, 7586, 7762, 7943, 8128, 8318, 8511, 8710, 8913, 9120, 9333, 9550, 9772, }; void patch_edit_on_mode_change(GtkComboBox *combo, gpointer user_data) { if (gtk_combo_box_get_active(combo) == 1) { gtk_widget_hide(widgy_widget); gtk_widget_show(retro_widget); gtk_widget_grab_focus(retro_widget); gtk_window_resize(GTK_WINDOW(editor_window), 1, 1); /* let window get smaller */ } else { gtk_widget_hide(retro_widget); gtk_widget_show(widgy_widget); } } void on_editor_save_button_press(GtkWidget *widget, gpointer data) { GUIDB_MESSAGE(DB_GUI, ": on_editor_save_button_press called\n"); (GTK_ADJUSTMENT(edit_save_position_spin_adj))->value = (double)edit_buffer.program; /* update patch name */ gtk_signal_emit_by_name (GTK_OBJECT (edit_save_position_spin_adj), "value_changed"); gtk_widget_show(edit_save_position_window); } void on_editor_discard_button_press(GtkWidget *widget, gpointer data) { GUIDB_MESSAGE(DB_GUI, ": on_editor_discard_button_press called\n"); gtk_widget_hide(edit_save_position_window); edit_buffer_active = FALSE; gui_data_send_edit_buffer_off(); edit_buffer.program = current_program; dx7_patch_unpack(patches, current_program, edit_buffer.voice); patch_edit_update_editors(); } /* ==== DX7 MIDI system exclusive message handling ==== */ int sysex_receive_channel = 0; static int patch_edit_sysex_parse(unsigned int length, unsigned char* data) { if (length < 6 || data[1] != 0x43) /* too short, or not Yamaha */ return 0; if ((data[2] & 0x0f) != sysex_receive_channel) /* wrong MIDI channel */ return 0; if ((data[2] & 0xf0) == 0x00 && data[3] == 0x00 && /* DX7 single voice dump */ data[4] == 0x01 && data[5] == 0x1b) { if (length != DX7_DUMP_SIZE_VOICE_SINGLE || data[DX7_DUMP_SIZE_VOICE_SINGLE - 1] != 0xf7) { GUIDB_MESSAGE(DB_IO, " gui_data_sysex_parse: badly formatted DX7 single voice dump!\n"); return 0; } if (dx7_bulk_dump_checksum(&data[6], DX7_VOICE_SIZE_UNPACKED) != data[DX7_DUMP_SIZE_VOICE_SINGLE - 2]) { GUIDB_MESSAGE(DB_IO, " gui_data_sysex_parse: DX7 single voice dump with bad checksum!\n"); return 0; } GUIDB_MESSAGE(DB_IO, " gui_data_sysex_parse: DX7 single voice dump received\n"); memcpy(&edit_buffer.voice, data + 6, DX7_VOICE_SIZE_UNPACKED); return 1; } else if ((data[2] & 0xf0) == 0x10 && /* DX7 voice parameter change (g = 0)*/ (data[3] & 0xfc) == 0x00) { int i; if (length != 7 || data[6] != 0xf7) { GUIDB_MESSAGE(DB_IO, " gui_data_sysex_parse: badly formatted DX7 voice parameter change!\n"); return 0; } i = ((data[3] & 0x03) << 7) + (data[4] & 0x7f); if (i >= DX7_VOICE_SIZE_UNPACKED) { GUIDB_MESSAGE(DB_IO, " gui_data_sysex_parse: out-of-range DX7 voice parameter change!\n"); return 0; } GUIDB_MESSAGE(DB_IO, " gui_data_sysex_parse: DX7 voice parameter change #%d => %d\n", i, data[5] & 0x7f); edit_buffer.voice[i] = data[5] & 0x7f; return 1; } /* nope, don't know what this is */ return 0; } void on_sysex_receipt(unsigned int length, unsigned char* data) { GUIDB_MESSAGE(DB_IO, " on_sysex_receipt: message length %d, mfg id %02x\n", length, data[1]); if (patch_edit_sysex_parse(length, data)) { edit_buffer_active = TRUE; gui_data_send_edit_buffer(); patch_edit_update_editors(); } } /* ==== main patch edit window ==== */ GtkWidget * create_editor_window(const char *tag) { GtkWidget *window; GtkWidget *vbox; GtkWidget *hbox; GtkWidget *label; GtkWidget *combo; GtkWidget *separator; GtkWidget *frame; GtkWidget *table; GtkWidget *scale; window = gtk_window_new (GTK_WINDOW_TOPLEVEL); set_window_title(window, tag, "Patch Edit"); g_signal_connect (G_OBJECT(window), "destroy", G_CALLBACK (gtk_main_quit), NULL); g_signal_connect (G_OBJECT (window), "delete-event", G_CALLBACK (on_delete_event_wrapper), (gpointer)gtk_widget_hide); vbox = gtk_vbox_new(FALSE, 0); gtk_container_add (GTK_CONTAINER (window), vbox); gtk_container_set_border_width (GTK_CONTAINER (vbox), 6); editor_status_label = gtk_label_new (" "); gtk_container_add (GTK_CONTAINER (vbox), editor_status_label); gtk_misc_set_alignment (GTK_MISC (editor_status_label), 0, 0.5); hbox = gtk_hbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); gtk_container_set_border_width (GTK_CONTAINER (hbox), 0); label = gtk_label_new ("Patch Name"); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 2); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); editor_name_entry = gtk_entry_new_with_max_length(10); gtk_box_pack_start (GTK_BOX (hbox), editor_name_entry, FALSE, FALSE, 2); g_signal_connect(G_OBJECT(editor_name_entry), "changed", G_CALLBACK(patch_edit_on_name_entry_changed), NULL); /* -FIX- comment (reuse Performance Name?) * GtkWidget *comment_label = gtk_label_new ("Comment"); * gtk_box_pack_start (GTK_BOX (hbox), comment_label, FALSE, FALSE, 2); * gtk_misc_set_alignment (GTK_MISC (comment_label), 0, 0.5); * GtkWidget *comment_entry = gtk_entry_new_with_max_length(60); * gtk_box_pack_start (GTK_BOX (hbox), comment_entry, TRUE, TRUE, 2); */ /* separator */ separator = gtk_hseparator_new (); gtk_box_pack_start (GTK_BOX (vbox), separator, FALSE, FALSE, 2); gtk_widget_show_all(vbox); /* editor widgets */ create_widgy_editor(tag); gtk_box_pack_start (GTK_BOX (vbox), widgy_widget, TRUE, FALSE, 2); gtk_widget_show(widgy_widget); create_retro_editor(tag); gtk_box_pack_start (GTK_BOX (vbox), retro_widget, TRUE, FALSE, 2); /* separator */ separator = gtk_hseparator_new (); gtk_box_pack_start (GTK_BOX (vbox), separator, FALSE, FALSE, 2); gtk_widget_show(separator); /* edit action widgets */ hbox = gtk_hbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); gtk_container_set_border_width (GTK_CONTAINER (hbox), 0); label = gtk_label_new ("Editor Mode"); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 2); combo = gtk_combo_box_new_text(); gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "Widgy"); gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "Retro"); gtk_combo_box_set_active(GTK_COMBO_BOX(combo), 0); gtk_box_pack_start (GTK_BOX (hbox), combo, FALSE, FALSE, 2); g_signal_connect(G_OBJECT(combo), "changed", G_CALLBACK(patch_edit_on_mode_change), NULL); /* -FIX- add: [compare to original?] [swap A/B?] [close?] */ label = gtk_label_new (NULL); gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, FALSE, 0); editor_discard_button = gtk_button_new_with_label ("Discard Changes"); gtk_box_pack_start (GTK_BOX (hbox), editor_discard_button, FALSE, FALSE, 2); gtk_signal_connect (GTK_OBJECT (editor_discard_button), "clicked", GTK_SIGNAL_FUNC (on_editor_discard_button_press), NULL); editor_save_button = gtk_button_new_with_label ("Save Changes into Patch Bank"); gtk_box_pack_start (GTK_BOX (hbox), editor_save_button, FALSE, FALSE, 2); gtk_signal_connect (GTK_OBJECT (editor_save_button), "clicked", GTK_SIGNAL_FUNC (on_editor_save_button_press), NULL); gtk_widget_show_all(hbox); /* test note widgets */ frame = gtk_frame_new ("Test Note"); gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0); table = gtk_table_new (3, 3, FALSE); gtk_container_add (GTK_CONTAINER (frame), table); gtk_container_set_border_width (GTK_CONTAINER (table), 2); gtk_table_set_row_spacings (GTK_TABLE (table), 1); gtk_table_set_col_spacings (GTK_TABLE (table), 5); label = gtk_label_new ("key"); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); scale = gtk_hscale_new (GTK_ADJUSTMENT (test_note_key_adj)); gtk_table_attach (GTK_TABLE (table), scale, 1, 2, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_scale_set_value_pos (GTK_SCALE (scale), GTK_POS_RIGHT); gtk_scale_set_digits (GTK_SCALE (scale), 0); gtk_range_set_update_policy (GTK_RANGE (scale), GTK_UPDATE_DELAYED); label = gtk_label_new ("velocity"); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); scale = gtk_hscale_new (GTK_ADJUSTMENT (test_note_velocity_adj)); gtk_table_attach (GTK_TABLE (table), scale, 1, 2, 1, 2, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_scale_set_value_pos (GTK_SCALE (scale), GTK_POS_RIGHT); gtk_scale_set_digits (GTK_SCALE (scale), 0); gtk_range_set_update_policy (GTK_RANGE (scale), GTK_UPDATE_DELAYED); editor_test_note_button = gtk_button_new_with_label (" Send Test Note"); gtk_table_attach (GTK_TABLE (table), editor_test_note_button, 2, 3, 0, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (0), 4, 0); gtk_button_set_focus_on_click(GTK_BUTTON(editor_test_note_button), FALSE); g_signal_connect (G_OBJECT (editor_test_note_button), "pressed", G_CALLBACK (on_test_note_button_press), (gpointer)1); g_signal_connect (G_OBJECT (editor_test_note_button), "released", G_CALLBACK (on_test_note_button_press), (gpointer)0); gtk_widget_show_all (frame); editor_window = window; return editor_window; } hexter-version_1.1.0/src/gui_patch_edit.h000066400000000000000000000057001325353653200204760ustar00rootroot00000000000000/* hexter DSSI software synthesizer GUI * * Copyright (C) 2011, 2012 Sean Bolton. * * 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 _GUI_PATCH_EDIT_H #define _GUI_PATCH_EDIT_H #ifdef HAVE_CONFIG_H # include #endif #include #include "hexter_types.h" #define PEPT_Name 1 #define PEPT_0_99 2 #define PEPT_0_7 3 #define PEPT_Mode 4 /* R,F */ #define PEPT_FC 5 /* 0-31 */ #define PEPT_FF 6 /* 0-99 */ #define PEPT_Detune 7 /* 0-14, as -7 to +7 */ #define PEPT_0_3 8 #define PEPT_Alg 9 /* 0-31, as 1-32 */ #define PEPT_Curve 10 /* 0-3, scaling curve */ #define PEPT_BkPt 11 /* 0-99, breakpoint */ #define PEPT_Trans 12 /* 0-48, transpose, as -24 to +24 */ #define PEPT_OnOff 13 #define PEPT_LFOWave 14 #define PEPT_Env 15 /* 0-99, envelope */ #define PEPT_Scal99 16 /* 0-99, for parameters that affect level scaling */ #define PEPT_COUNT 17 extern GtkWidget *editor_window; extern GtkWidget *editor_name_entry; /* It is possible to have three editors active simultaneously (widgy, retro, * and MIDI), so EVERYTHING in a patch (except the name) is represented by an * adjustment, stored in edit_adj[]. This model and each editor connect to the * adjustments, and are then notified when any of the other connectees makes a * change. */ extern GtkObject *edit_adj[DX7_VOICE_PARAMETERS - 1]; /* omitting name */ void patch_edit_create_edit_adjs(void); void patch_edit_connect_to_model(void); void patch_edit_update_status(void); void patch_edit_copy_name_to_utf8(char *buffer, uint8_t *patch, int packed); void patch_edit_update_editors(void); int patch_edit_get_edit_parameter(int offset); char *patch_edit_NoteText(int note); extern unsigned short peFFF[100]; extern int sysex_receive_channel; void on_sysex_receipt(unsigned int length, unsigned char *data); GtkWidget *create_editor_window(const char *tag); /* in gui_retro_editor.c: */ extern GtkWidget *retro_widget; GtkWidget *create_retro_editor(const char *tag); /* in gui_widgy_editor.c: */ extern GtkWidget *widgy_widget; GtkWidget *create_widgy_editor(const char *tag); /* in gui_widgy_alg.c: */ extern GtkWidget *we_alg_drawing_area; void we_alg_drawing_area_new(void); void we_alg_draw(cairo_t *cr, int alg); #endif /* _GUI_PATCH_EDIT_H */ hexter-version_1.1.0/src/gui_retro_console.c000066400000000000000000001166031325353653200212470ustar00rootroot00000000000000/* hexter DSSI software synthesizer GUI * * Copyright (C) 2011 Sean Bolton. * * 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 #include #include #include "hexter.h" #include "gui_retro_console.h" GtkWidget *rc_drawing_area; static cairo_surface_t *rc_font_surface[RC_MAX_COLOR_PAIRS]; static int rc_console_width; static int rc_console_height; static int rc_cursor_x; static int rc_cursor_y; static int rc_color_pair; static void (*rc_button_press_callback)(guint, guint, guint); static void (*rc_key_press_callback)(gboolean, guint, guint); typedef struct _rc_char_t { char c, pair; } rc_char_t; static rc_char_t *rc_chars; static struct _colors { float r, g, b; } colors[RC_COLOR_COUNT] = { { 1, 1, 1 }, /* white */ { 0, 0, 0 }, /* black */ { 0, 1, 0 }, /* green */ { 0, 0, 1 }, /* blue */ { 1, 1, 0 }, /* yellow */ { 0, 1, 1 } /* cyan */ }; /* static rc_char_t *get_rc_char(int x, int y); */ #define get_rc_char(x, y) (rc_chars + (y * rc_console_width) + x) void rc_console_set_button_press_callback(void (*cb)(guint, guint, guint)) { rc_button_press_callback = cb; } static gboolean rc_button_press (GtkWidget *widget, GdkEventButton *event, gpointer user_data) { /* GUIDB_MESSAGE(DB_GUI, " rc_button_press: button %d @ %g, %g\n", event->button, event->x, event->y); */ if (!GTK_WIDGET_HAS_FOCUS (widget)) gtk_widget_grab_focus (widget); if (rc_button_press_callback) (*rc_button_press_callback)(event->button, ((int)event->x) / RC_FONT_WIDTH, ((int)event->y) / RC_FONT_HEIGHT); return FALSE; /* false to propagate further, true to stop */ } void rc_console_set_key_press_callback(void (*cb)(gboolean, guint, guint)) { rc_key_press_callback = cb; } static guint keyvals_to_pass[] = { GDK_BackSpace, GDK_Delete, GDK_Escape, GDK_Return, GDK_Tab, GDK_ISO_Left_Tab, GDK_Page_Up, GDK_Page_Down, GDK_Home, GDK_End, GDK_Left, GDK_Right, GDK_Up, GDK_Down, GDK_F1, GDK_F2, GDK_F3, GDK_F4, GDK_F5, GDK_F6, 0 }; static gboolean rc_key_press (GtkWidget *widget, GdkEventKey *event, gpointer user_data) { gboolean pressed; guint u, state; if (rc_key_press_callback == NULL) return FALSE; /* propagate to other handlers */ pressed = (event->type == GDK_KEY_PRESS); /* "meta" on OS X is Apple is 16 + 2^28 * "meta" on (my) linux is Alt is 8 */ state = event->state & (GDK_CONTROL_MASK | GDK_MOD1_MASK | GDK_MOD2_MASK); for (u = 0; keyvals_to_pass[u]; u++) if (event->keyval == keyvals_to_pass[u]) { (*rc_key_press_callback)(pressed, event->keyval, state); return TRUE; } u = gdk_keyval_to_unicode(event->keyval); /* This is way too restrictive, but we only need what the DX-7 supported. */ if (u == 0xA5) u = 92; /* yen */ if (u == 0xAB) u = 127; /* << */ if (u == 0xBB) u = 126; /* >> */ if (u >= ' ' && u <= 127) { (*rc_key_press_callback)(pressed, u, state); return TRUE; } else { GUIDB_MESSAGE(DB_GUI, " rc_key_press: %s keyval $%02x with state %d, unicode %u\n", pressed ? "pressed" : "released", event->keyval, event->state, gdk_keyval_to_unicode(event->keyval)); } return FALSE; /* false to propagate further, true to stop */ } void rc_console_addch(char c) { if (rc_cursor_x < rc_console_width && rc_cursor_y < rc_console_height) { rc_char_t *rch = get_rc_char(rc_cursor_x, rc_cursor_y); rch->c = c; rch->pair = rc_color_pair; gtk_widget_queue_draw_area(rc_drawing_area, rc_cursor_x * RC_FONT_WIDTH, rc_cursor_y * RC_FONT_HEIGHT, RC_FONT_WIDTH, RC_FONT_HEIGHT); } rc_cursor_x++; } void rc_console_addstr(const char *t) { for (; *t; t++) { if (*t == '\n') { rc_cursor_x = 0; rc_cursor_y++; } else { rc_console_addch(*t); } } } void rc_console_move(int y, int x) { if (x >= 0 && x < rc_console_width && y >= 0 && y < rc_console_height) { rc_cursor_x = x; rc_cursor_y = y; } } void rc_console_clrtoeol(void) { int x; for (x = rc_cursor_x; x < rc_console_width; x++) { rc_char_t *rch = get_rc_char(x, rc_cursor_y); rch->c = ' '; rch->pair = rc_color_pair; } gtk_widget_queue_draw_area(rc_drawing_area, rc_cursor_x * RC_FONT_WIDTH, rc_cursor_y * RC_FONT_HEIGHT, (rc_console_width - rc_cursor_x) * RC_FONT_WIDTH, RC_FONT_HEIGHT); } void rc_console_erase(void) { for (rc_cursor_y = 0; rc_cursor_y < rc_console_height; rc_cursor_y++) { for (rc_cursor_x = 0; rc_cursor_x < rc_console_width; rc_cursor_x++) { rc_char_t *rch = get_rc_char(rc_cursor_x, rc_cursor_y); rch->c = ' '; rch->pair = rc_color_pair; } } rc_cursor_x = rc_cursor_y = 0; gtk_widget_queue_draw_area(rc_drawing_area, 0, 0, rc_console_width * RC_FONT_WIDTH, rc_console_height * RC_FONT_HEIGHT); } void rc_console_init_color_pair(int pair, int fg, int bg) { int width, height; cairo_t *cr; if (pair < 1 || pair >= RC_MAX_COLOR_PAIRS || rc_font_surface[pair] != NULL) return; /* Render the font to a cache surface in the requested foreground and * background colors. Doing this once here allows for using simply * cairo_set_source_surface(), cairo_rectangle(), cairo_fill() in * rc_expose(), which is much faster. */ width = cairo_image_surface_get_width(rc_font_surface[0]); height = cairo_image_surface_get_height(rc_font_surface[0]); rc_font_surface[pair] = cairo_surface_create_similar(rc_font_surface[0], CAIRO_CONTENT_COLOR, width, height); cr = cairo_create(rc_font_surface[pair]); cairo_set_source_rgb(cr, colors[bg].r, colors[bg].g, colors[bg].b); cairo_paint(cr); cairo_set_source_rgb(cr, colors[fg].r, colors[fg].g, colors[fg].b); cairo_mask_surface (cr, rc_font_surface[0], 0, 0); cairo_destroy(cr); } void rc_console_set_color_pair(int pair) { rc_color_pair = (pair < 0) ? 0 : ((pair >= RC_MAX_COLOR_PAIRS) ? RC_MAX_COLOR_PAIRS - 1 : pair); } static gboolean rc_expose(GtkWidget *widget, GdkEventExpose *event) { cairo_t *cr = gdk_cairo_create (widget->window); int x0 = event->area.x / RC_FONT_WIDTH; int x1 = (event->area.x + event->area.width - 1) / RC_FONT_WIDTH; int y0 = event->area.y / RC_FONT_HEIGHT; int y1 = (event->area.y + event->area.height - 1) / RC_FONT_HEIGHT; int x, y; /* GUIDB_MESSAGE(DB_GUI, " rc_expose: %d x %d @ %d, %d => %d, %d to %d, %d\n", event->area.width, event->area.height, event->area.x, event->area.y, x0, y0, x1, y1); */ if (x1 >= rc_console_width) x1 = rc_console_width - 1; if (y1 >= rc_console_height) y1 = rc_console_height - 1; for (y = y0; y <= y1; y++) { for (x = x0; x <= x1; x++) { rc_char_t *rch = get_rc_char(x, y); unsigned char c = (unsigned char)rch->c; int pair = rch->pair; if (rc_font_surface[pair] == NULL) continue; if (c >= 128 && c < 139) c = 128; else if (c > 153) c = 128; cairo_set_source_surface(cr, rc_font_surface[pair], (x - c) * RC_FONT_WIDTH, y * RC_FONT_HEIGHT); cairo_rectangle(cr, x * RC_FONT_WIDTH, y * RC_FONT_HEIGHT, RC_FONT_WIDTH, RC_FONT_HEIGHT); cairo_fill(cr); } } if (!gtk_widget_get_sensitive(widget)) { cairo_set_source_rgba(cr, 0, 0, 0, 0.5); cairo_paint(cr); } cairo_destroy (cr); return FALSE; } /* forward declarations of PNG data below */ static size_t font_png_length; static unsigned char font_png[]; struct cairo_read_func_closure { size_t length; size_t offset; unsigned char *data; }; static cairo_status_t cairo_read_func(void *closure, unsigned char *data, unsigned int length) { struct cairo_read_func_closure *cl = (struct cairo_read_func_closure *)closure; size_t l = MIN(length, cl->length - cl->offset); memcpy(data, cl->data + cl->offset, l); cl->offset += l; return CAIRO_STATUS_SUCCESS; } GtkWidget * retro_console_init(int width, int height) /* returns the console GtkDrawingArea */ { struct cairo_read_func_closure cl; int i; rc_console_width = width; rc_console_height = height; /* create drawing area */ rc_drawing_area = gtk_drawing_area_new(); gtk_widget_set_size_request(rc_drawing_area, RC_FONT_WIDTH * rc_console_width, RC_FONT_HEIGHT * rc_console_height); g_signal_connect(G_OBJECT(rc_drawing_area), "expose-event", G_CALLBACK(rc_expose), NULL); GTK_WIDGET_SET_FLAGS(rc_drawing_area, GTK_CAN_FOCUS); gtk_widget_add_events(rc_drawing_area, GDK_BUTTON_PRESS_MASK | GDK_KEY_PRESS_MASK | GDK_KEY_RELEASE_MASK); g_signal_connect(G_OBJECT(rc_drawing_area), "button-press-event", G_CALLBACK(rc_button_press), NULL); g_signal_connect(G_OBJECT(rc_drawing_area), "key-press-event", G_CALLBACK(rc_key_press), NULL); g_signal_connect(G_OBJECT(rc_drawing_area), "key-release-event", G_CALLBACK(rc_key_press), NULL); /* g_signal_connect(G_OBJECT(rc_drawing_area), "focus-in-event", G_CALLBACK (rc_focus_event), (gpointer)1); */ /* g_signal_connect(G_OBJECT(rc_drawing_area), "focus-out-event", G_CALLBACK (rc_focus_event), (gpointer)0); */ /* create font surface */ cl.length = font_png_length; cl.offset = 0; cl.data = font_png; rc_font_surface[0] = cairo_image_surface_create_from_png_stream(cairo_read_func, &cl); for (i = 1; i < RC_MAX_COLOR_PAIRS; i++) rc_font_surface[i] = NULL; /* create character storage */ rc_chars = (rc_char_t *)g_malloc(sizeof(rc_char_t) * rc_console_width * rc_console_height); rc_color_pair = 0; rc_console_erase(); rc_button_press_callback = NULL; rc_key_press_callback = NULL; return rc_drawing_area; } /* !"#$%&'()*+,-./0123456789:;<=>? * @ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|} * 0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF */ #ifndef RC_USE_BIG_FONT static size_t font_png_length = 5096; static unsigned char font_png[5096] = "\211PNG\15\12\32\12\0\0\0\15IHDR\0\0\4""6\0\0\0\15\10\6\0\0\0R!\3561" "\0\0\16\0iCCPICC\40Profile\0\0x\332\255Wy4\324\357\333\276\77""3c\306" "\30\306.Y2D\226lY\263\357d+{\210\302\220mlc\242\"\262\207R\210\222$!" "\24I\310\36B\"\312\222-K\221\20*K\264j\336\77\372\376\316\357=\347=\277" "\367\375\347\275\376\272\236\353\217\347y\356\373\272\317\271\316\15" "\300\312\353\36\34LA\1@@\40\215jc\242Ortr&\341\336\0\36\230\1\3\10""0" "\273\223C\203\365\254\254,\340\77b{\24\20\0\200a\31\367\340`J\\\2732" "\315\177\374\215I/:Z\1\345\253\264\2\377;\210TG'g\0D\32\0\270\274\377" "r]\0\340\362\370\313\355\0\200+\234\26L\3@|\0\200\213\354\343\356\11" "\200D\2\2004\325\316\306\0\0)\5\0\242\367_^\17\0D\217\277\3749\0\20\303" "\310\3364\0d\34\0\313\21\350\351\33\10\200[\5\300j{z\205\222\1\210\322" "\0\340\351\31J\16\0\40^\1\0\331\200\200\40O\0b\33\0H\220\203\2514\0\342" "\22\0\3108:9\223\376~\331\245\36@\211\15\0\337\371o-L\10\240\266\24@" "\234\357\337\332^:\0\217\7\300\35\223\177k\2336\200\0\0\302\363*\364" "\244\242\2\0\0\40\314\372\0\14""3t\372\346>\0\\\6\300N:\235\376\353\16" "\235\276S\10\200\236\2h\243\220OQ\303\376\351\27\202\364\3\374_\347\277" "5\377\3""4\2\200\2@\3410\216X=\334\10\236\312\264\315\234B\224d\355f" "\77\316\361\203+\201\207{W\365n+\2769\1\332\36\234P\216\260\242H\273" "\250\231\330\224x\200\304\37\251\24i\21\31\77Yi\271Q\5eEfe5\345\37\252" "\352\7\233\324\3254\206\264w\353PtE\365\202\365\177\31\231\30\227\35" "\"\230\6\232\215X\250Y\246\35\236\265R\265\276h3c'g\237\3400\354(\344" "\344\347\\~l\335\365\300q\277\23""1nY\356w=j\310O=_zM\234|\357\275\352" "\263\345\273\343\217\243p\4\10\6\212\7\311\6+\205\250R\17\206\252\321" "4Ni\204\251\205\253\234V\2263\356" "2A\232\230\177S2\3517%7\365u\272y&\376\255\371;\316w\223\263\205s\224" "\367\252\363\310|\337\207\234\205\223\213JK\350\245\241\217\267\227\203" "WtW9W\27>5~N\373\342\276\246\262\316\264\376n\243~3\375\253\337\226\301" "\266\340\366\366\267\201\357e\77\342~\272\376R\373\315\375{s\247\347" "O:\335\222N\377\357\376\23p\314\31D\11\326\373l\77""9\316r1p\247\356" "\22\342\255\344\323\341o\27""4\332S#\364G\230\"\362U4Ll]\334_\342\235" "\324\321\375\2752\7e=\344:\16(+\334V\"*\7\251\14\36\324P\313Q\237\321" "\304k\271\350x\350\222\364\\\364\253\15qFv\306wLF\17}7\2236\247Z4\36" "F\37\261\262\312\260\36\263\25\260s\263\317w\230v\344q\322sv>\346\343" "BsM8\236y\242\300\255\322\375\211G\37y\302s\301k\343\344\37\37F_v\77" ">\177\21\212d\200\\\240R\220Z\260V\210\16U'T\235\246zJ1L!\\\356\264\344" "\31\322Y\336\10b$\22\271y\356C\324ht\367\371\332\230\374\330\324\270" "\263\361^\11\346\211\12I\274I;\27f\223\273R\312RS.\372\\2M\223\274\314" "ty\371JozYFB\246\353U\225,\366\254\225\354\366k\31\327\235sDr\226oT\347" "F\335<\224\307\2367~+/\337\353\266\314\355\255\202\226;\11\205\26E\354" "E#\305\327\357\272\224\10\227,\226>(\13\270'wo\343~]yx\205Z\305\257\7" "-\225\347\36j\77\244W\265>\212\2536\254a\250yV{\341\261i\35S\335\213" "\372K\15\226\215\304\306\227M\31\315\16-\273[\246\236\334juo\23m[j/{" "\352\327!\323\261\336Y\327\25\361L\247\33\325\375\354yf\217k\257x\357" "\332\213\346\276\304~\353\227\2/\27_\325\16\304\15\332\14\221\206\326" "\206\333_g\214x\214*\214a\306&\306\313&\"\337XO\212O\356L\15M\227\316" "\234\177\353\370\356\300,\363\354\307\271\247\357o\315G|pZPY\344Z\334" "Xz\375\361\361r\316J\314\352\271O\311\237\343\277\320\326B\327\3436b" "7i_i[\11\333\361\337\302\276\207\377H\372y\341W\344\357\250\235\224\77" "\247\351Ft:\0*\231\201\204\355a\14b\22%T\263\330\22\377\260\235c\377" "\314\31\301\215\345\211\343\345\335}\231\237C\40VpK\310\225\364P\4\275" "\367\204h\353>A\361\0\211z)\334~;\351\2132u\262\213\362{\16""8($+6(-" "\252\260\253\252\35\264Q;\251a\246\361V\263D\353\211\366\220\316\242" "\356o}f\3NC\234\21\2031\253\311\356C\342\246\362fj\346:\26\352\226\6" "\207u\217\34\266\262\2646\262\221\266e\265\335\260\33\261\177\354p\375" "h\270\243\235\223\2623\247\363\372\261A\227j\327\253\307\303O8\271\251" "\270\263\273\177\362\350%\227y&z\271\236T\367\346\366^\367\351\367-\365" "\213\367'ST\3\230\3\336\7""6\6e\4\7\206\350R9\251\213\241M\264+\247\310" "a\212\341\350\360\241\323w\316P\317\32DpE\314GV\237\213\216\262\214\346" "\217^>\337\20\223\34k\33'\30\267\20_\231p&\321$\2113i\372Bi2-E+\25\233" ":t1\377\222O\232|\332\267\313\255W\222\322m3\4""3\26""3\253\256\236\311" "\322\311f\310\356\273\226u\375x\216h\316\362\215\252\334\310\233\206" "y\204\274\341[\267\362\311\267\245n\257\27""4\336\211-4/\342.z[\\r\227" "Z\242U\312X:\\v\373\236\337}\245r(\357\257\310{@\251T\177\210{8Ru\367" "\321\251j\375\32\266\232\267\265\225\217\343\352\34\352%\352w\32&\32" "\2375=h\276\336\222\360\344T\253W\233}\273\361S\265\16\351N\341.\336" "g\354\335\204\347\330\36T\17\275\367\327\213\237}\277\372w^\241\7\10" "\203\234C\2\303\342\257\25G\364G\355\306\274\307#'2\337\334\233\354\234" "Z\230A\275\25~\247\77\3535w\361}\355\374\354\2nQw)\361c\333\362\332\252" "\334\247\250\317m_~\254kn\\\332\34\334\"l[\177+\372\276\374S\352\27\355" "w\337\37V:\77\235\16\3607\373\0\0\260*\0Y\274\0v\315\0\266\306\0I^\0" "\342\267\0xJ\1\254X\0\354\324\0\25\252\10\250\343\365\200\314\232\374" "+\77\0\1""4`\1\17D\340\2A\20\7\5\320\201\303\340\12\201\20\15\351P\14" "\2150\0\213\10\40|\2102b\205P\220d\244\24y\216|D\21P\262(\33T8\352&\252" "\3\265\212\346A\353\242\375\321\327\320\235\350\15\214\10\306\32\23\203" "\251a\330\303`\313\20\315P\300\320\201\335\217=\214\245bWq\3228\177\\" "9\3563\243\2\243\17c\6\343\23<\26\177\3\277\304\244\314\24\316T\314\364" "\232\40N\210\40\14""0\357c\216d\36f\221fIaY&\232\21\357\263\262\260\206" "\260\216\261i\263\25\261\23\331\317\262/r8p\364pjrVqIr\25q\313s\267\362" "X\363,\354\212\342\335\305[\263\333f\367W\276k\374\232\374\357\5R\4\25" "\5g\366\244\12i\12}!\225\10\273\213\10\212\274\331{C\364\204\230\230" "\330\247}\217\305c%l$\367I\376\226\32\335_-\235)\23&{L\316P^\376\0I\201" "S\21\253\4J\177\224\351\252\230\203\4""5Nu\1\15QMM-;m\212N\242n\241^" "\273\376{C\26#Mc\77\223\353\207^\230\341\315\355,n[~9\242c\225l\375\336" "V\317\256\320\201\341\250\217\343+g\365c\345\256b\307\357\270\11\272" "\337\"\213{V\237\324\360\36\360\365\361\7\312\235@\223\240/!\271\241" "f\264\235\260\332\323\1g%\"\276\234\253\213\216\213\261\214\343\211\237" "Kl\272\220\235\22x\3212M\361\12w\372V\346HV\327\265\252\234\314\334K" "y\361\371a\5\201\205\336\305'KN\224\35\275oQaUi]eS\355\\\353^\347\323" "\340\337\24\334\22\336\32\333~\251#\273+\277\273\274\247\346EK\177\327" "\253\301\301\231\341\225\221\255\261\2357\330)\316\31\322;\3719\255y" "\243\5\253\245c\313\336\253a\237\23\327nlT|m\333\36\372>\367\213i\307" "\223N\377\17\376[\202+\4@4d@)t\300$l\",\210\4b\210\270!Q\310M\244\31" "\231A!(1\2249\352\24\252\30""5\200\372\211\26E[\241\243\320\25\350i\14" "+F\37\23\206\271\217\231c\340c\40""3\24""0\314`\371\260N\330\353\330" "\11\234\40\316\3W\212\373\304\250\314\30\3138\212W\300\307\343k\360s" "L\341L}\4a\302i\302\40\263\14\363\5\346e\26{\226gD\31b\6\361;\353\11" "\326n69\266\233\354x\366p\366E\16G\216>N=\316\6.%\256:n\3\356\21\36\177" "\36\372\256k\274\362\274/v\373\360a\371J\370M\371\77\13\\\25\324\22\374" "\270'[\310X\350;\251\\\230,\"\40""2\2667K\324^\214Ol~\337\3\361\263\22" "\306\222<\222+R\35\373\363\244#d\\e\365\345\244\3449\17\300\201-\205" "e\305\31\245q\3457*S\252s\7W\325~h\3404\371\265\224\265\17\353\370\351" "^\320+\323\3577\370f$e\354b\222v\350\271\31\233\271\217\305\323\303{" "\216\234\265\32\267\321\266-\267\337\345\220pt\333\311\307y\326\305\315" "\365\303\11\177\2675\2170O\242W\201\267\242\317\240_\20\2055\340q\320" "\361\20&j5\215\34\266+\274\357LB\204^\344NT\333\371\304X\343x|\302`\322" "\255d\377T\265K\254iKWZ32\256R\262-\256\313\344\374\310\35\312\253\310" "O(\40\27\352\25\213\334\245\227N\337k.\317{\20\361\320\365\221~\215\304" "c\\\335f\303xSSKAkJ{h\207s\227^\267D\17S\357v\337\314\313\256\201\7C" "7^'\214R\306\255\337\250O\261M\327\274\265\231\3357\367s>wA}\211\370" "q~%\345\223\354\27\374\332\207\215\313_\325\266y\276}\375Q\364\313m\347" "\374\77\376\243\0\3""8`\2""6\340\5a\330\17*`\0""6\340\16!\20\13\331P" "\16\235\377L\200$b\204\270#1H\1\362\24Y@\21P\7PN\250\4T5j\16\315\216" "\326CS\321\305\350I\14'\306\22\223\204\351`@3\2302\2443\214cIX_l-\16" "\215\263\305\25\343~2Z3V\340y\360\226\370h&u\246\333\4<\341\24a\226\331" "\212\271\203E\223\345)Q\227\330\314\252\301\332\300\246\311\326\316n" "\312>\301A\346\330\346\214\341\342\341z\304\355\302C\340i\336\25\302" "+\301;\277\273\210\217\314/\301\377Y\240F\360\334\36\23!.\241%R\233\360" "\15\21\332^kQU1\276}\310\276\217\342#\22\235\222UR\25\373K\245\213e\212" "e\357\310\225\313\327\37x\2460\242\270\244\214V\21V\325;\350\251\226" "\244\376@cB\213\240\255\255C\325-\323{g\260\327\320\317\250\306\4""9" "t\310\364\232\331\262\205\226e\316\341M+\13\353\7\266|&T\316\225\306'\322\206\221\316[eJ\345\242}\211\214\23\322\216\221\216" "\214d\321\344D\346\253fo\264y\360\375\233&g\3268D\373\362\233\2569\25" "V\33\320\366x\372%:\266\232~i\377\327\312\336\311^\317\330\221\325\333" "\206\214\21\307a\317v\40\373\245\212\375\13A\20\4A\244/\200\32\253o1" "\376\243\317\322\277\221\317\232\214\232\323\246\245i\362!ev9\311\310" "\377\21\331\255\276Et\302\323\307\350wg\345\314\356\357\214\357V\364" "5\332O3\375\27\31""3\264}\221\271\351m\207vck\224\226\321\276H\276\350" ")\273\267L\255\315\222\335\213\352O\3668f\314W\317\372Qe\373\253\353" "\274\313&>\235\330xz;\272\236$t\254\341\324\303z\235x\263^\363)\12A<" "\10_v]:\11\274:\16Z\31\222\301@\31\374\317\177D\312\31\235\206\236O+" "w=\241\321\344\266\372#Z\256Ww\252\333\217:\271\31\355\264N\325\265\362" "5\2\352\253\333\36\342dt\322=+\357l}\335:^U\7\332o\321|\253\331x\351" "\206]\366\30\315\326u\266\327\221vJ7W\242vD\312\253\225\251\345A\313" "\364\220\243\210\34""3\204\347H\376Q>\211`\364\366\213\247\35Z^)\237" "6\16\21\22\320\"\357\242\304\3421\300\252\373\223\263\214;\332H\2028" "\343w4!=\327t\231\3064\246\315\247Um\206GW\27\245\205\353\374w\211L\270" "~\247k\321]\205\334\210^\35\355\224aV\317V!\221\220g6\2436Ft\305\272" "\302O\344\351\312\310\316\314\214\335\316\204M\246\235\177\342\23\20" "\353i\14\372,\7\265+Z\31Z\37[\266J[\213%\233\203\330>\257\236^\35Wm\237" "\340\351[O>D~\353@\240J\3273\313E\237\31\316\254U\210\216\241\351\35" "{:\202h%6\10\202x\17\316,\275\364\206\32y\253^\271\231\326\342qD\34\371" "\310\215\225\273\235(o\177[\33\304H,\220\221\363)\245y\372\326{S(rs\303" "\323\366\350\270u\227\31\251\363\356'B+;\316\232^g\222\270\222\23y\275" "!\241\315\301j\242r\364\374\317\3534g:\237V\376]\3422U\3112C\264g:\266" "3\355{\3y\350\215\257\203\310#\331\254\363\355B\204l\352\40\214\236\4" "\317S\12\315>Y\373\266\312=Gt\317V\261\77\210\356\347Il\20\304C\310\10" "\257Q\321N\2434\7p\264x\"\213c'\301\341\225c\345\300\226\326s\25\355" "FA\264\17\320|h@\301Lg\327\"&\254q\215\236H!\327\225G'\256\231s\"\352" "\314i\355\257\32\243\12[\20\271\12\35\335\14\241\201R\253\11\\kNGI\217" "U\202\23\356D\240=\341\35\373\23\366:\331\244\261EPD\346\30BzXkQ\326" "\215\15\211\334\320\352\272\312Mrcn}\366\254\263\221'\312]{\214\312~" "B\311\237\31\374z\7\213iLcZ~Z\266!\322\30{d\321\264\362\276q\1\254h\357" "\354\323\226L\231V<\345\224H\204H;\220\30/\332u\36178\24Y$T\367\306*" "\343f\200u\222\331\265\21\274\363\215\373(~@\2248\316\30c\224\334\\I" "\227\272\306nE\22\252j\34:\210E\315\271\217\336\330@\236\215\316\356" "\355\244\362F\237Gy+H$\202\270\23\14\36J\20\2338\325\325Q\340\273O%;" "H\203\310\311o\327\306\324\372\211\333\2257\325h}\263\301Cg\202\201\"" "\262j\327z+\365=[\357\357\16\370\226]\277\365\34*\22\14s\5'Pz\2\210\352" "\310L\0[T\276s]\273:9\236\371\227aO#\343\272\352\334\273k\255\350\250" "o\226\234\260\202\234w\355\247,95\362Bj\303\316\363\235\40\316\340S\24" "\202x\31\244\310\367\332B8Z\20W\270\265\321U7r\3753\"\223t-/Z\246'\36" "\306\235eV\215q\244\376\254\361\363\304&\321N\303\243W5g\237ph\1=g\35" "\213l\362&\372K9\321\230$\31se\5gr7\307\305Zs\"\363\17\11^\333e{\262" "\373\251\353`\2\15\214n9\324Q\275\215\214\355\323\347\237'~\12\11\14" "\202\40\10\342q\270c\321\37\375<[U`\303\312\337z'\326\32\37\202\240\316" "\305\373\304\343pz\373\361\20\300\265\365\31\353\217W\27""8\326\230]" "B\1772\230\330O/v\271\221\273R\333\271\77'\10\202\40\10\202\240c@4\352" "V\346\223\321\35\364\365\315\304\6\355\11\321\351\334\223\330\300\312" "\374\3""6\224\311\370\202\17j\370\0\0\0\0IEND\256B`\202"; #else /* RC_USE_BIG_FONT */ static size_t font_png_length = 4565; static unsigned char font_png[4565] = "\211PNG\15\12\32\12\0\0\0\15IHDR\0\0\5j\0\0\0\22\1\3\0\0\0\370\311u:" "\0\0\15\357iCCPICC\40Profile\0\0x\332\255\227y8\224\357\367\307\357Y" "\314\30\313\330%\353\20Y\262\257\331\267\2205{\21\205!\3736\6\205\310" "\276E!J\262\357eI\310\236=\21e\311\226\245H\10e\213H\362{\324\347{}\177" "\327\365\333\376\371\235\353z\256y=g\356\347>\367\334\357\363\314\271" "\17\0TL\266^^np\0\200\273\7\221`\254\245\206\273da\211C\277\7\30@\1\220" "\0\6(l\361>^\252\206\206z\340\177\264\3351h\34d#B\307s\205\267K\21]'" "\336k\365!B\304\341\316\222\253\340\1777,\1\12\10\0L\20bz\307\277\254" "r\314v\177\331\364\230\375\211^D\210\235\216\31\357dk\17q\20\304\202" "\4Scu\210K\216\347q\374\313\365\307l\367\227_\35\263\37\336\361\370\331" "\11\0P\264\36\366\316\36\0\240\327\40V\262w\360\301C_\37\307\265\267" "\367\301\273C|\27bawwOh~l\33\304|x/\2\364,v\31b\241\343}\371\273d+(\206" "$5\0\230\256\177\373\3748\0\250\205\326\301\313\374o\337\251#\0\30\355" "\0\310\323\372\267o\333\370\317^\301\30\337\372\\\223\20\377\343\202" "Q\250\1@2{t\264}\32Z[2\0\207IGG\7yGG\207\371\0\40\246\1hs\303\373\22" "\374\376\331/\30l\0\200\377\353\376\357o\376\307\20P@H`8\32y\11\245\212" "\36\305\20\310v)\342\260\374T=4Wh\367\351#\31\31NT\2374d\236g%\262\243" "9\3229%\270\332\271ux\246y\335\371~\13\304\11r\11\271\10\13\212\214\211" "KIPH\311J\355\313\310\235m\222\223\225\37V:\251\354\246\302\255\352\245" "v\240\241\245Yz\236\\\333CgTOV\77\321`\316P\306\350\266\361\254\251\210" "Y\244\371\310%\16\13\27\313\262\313\233\326bW\\\256\206\332\244\332\26" "\331\325\340;\354\3378L^\373\344\270\346\264\343|\350\212v\243ug\363" "\340\365\24\366\222\364\226!\234\365\221%\312\373\312\373\311\372K_\227" "\270!\26\40\34\310\37\304u\2239\230:\4\31\262wk5t:\354MxKDYdzTd4!\306" "*\366\\\334\231x\352\370\235\333S\11\355\211\245wR\356z'\31%\213\247" "\320\247\354\336\33OmL\313\270\357\377\3008]\370!\305\303\225\214\356" "G\2172\335\262\24\262)\263gr*s\243\362\314\362O\345o\24\264\24\306\27" "Y\26\363\25\357\226t\226&>\276\370\204\343\311R\331\263\362\200\12\225" "JTe\377\323\324*\313g\354\317\346\253\213k\234k\5j\327\236\227\327y\324" "\213\324o4N\315\345\317\273}\222Y\200-\364\177N" "_\274\266$\271\214X\36\376\222\263\342\265\252\262F\267\266\370\265\361" "[\342\272\355\206\364&\331\346\307\255\372\355\244\357.;\352\273l\273" "\273\77\6\367J\367\303\177Z\37\310\376b\370\265}\330\373;\351H\377\350" "\350\77\353O\216\246H\306\362Q=\241\376I\33@O\302\20\177\202\203\251" "\222Y\231\245\235M\203\275\206\3437\247\33\327wn\77\236M^W\276\217\2" "\27\317\364\11\235\25\266\23\351\24\223\22\317\221\304JyJ\17\235\225" "\227M\227\233U\300(Z)\333\251\340T\255\324\252\317\2415L5\363\264\306" "\316\357\351\10\352\22\364\32\15\20\27\14\15\223\215\306MXMm\314\262" "\315g.1Z\250ZZ^v\262\"ZG^I\271\232kSi\373\302\256\37\77i\277\350\260" "u\355\267\23\2513\215\13\263+\227\33\277\273\210\207\244\247\254\227" "\242\2672A\331G\216(\343+\341'\356/r\235\377\6.\200)\20\33\4\13\332\276" "\3719x,\244\347VmhvX|x@\204C\244n\224x4S\364a\314\\lw\\i|\334m\247\4" "\355D\376;dwV\356\366%\225&G\246X\337\223N\245I]Mk\277\237\374\3002\235" "+}\345auF\360\243\363\2314\231\23Y\231\331\16""9B9;\271-y\221\371z\5" "4\5\243\205\17\212\254\2129\213\227J*J\335\37\213<\336zRW\346_.[~P\321" "Ry\363\251\322\323\243\252\326g\341\325\347jHj^\326\306<\327\256#\253" "{]\237\320\240\337\210m|\323\224\334l\336r\262e\372EV\253m\33w\333r{" "i\207K\247P\347fW]w\340K\345\36x\317\313W)\275\326}\274}\33\257\233\373" "\243\6\214\336\260\276Yz[;\30>d<\214\33\336\30i\177\227\216\34\237" "\234(\235\14zo4\305;u8=e-\4~\266X\224" "^\242_\332Z~\367\345\371J\372j\350\332\315\257\261\337\"\326\211\33>" "\233\341[a\333\304\357\304\235\310\335\210\37~{\376\373\321\77c\16\202" "~\5\37\306\375\276~\244\361G\377X\22\34\252\227\324\223\214\233\274\232" "\322\4\373\233\372&\3157\272@\6\24c8\23\323\311;,\264\254al;\34\326\270" "\247\\\210SW\271[O\263A\377\0\365\2\3503\246\202\267\205\352\204\227" "D\331\305\314\305c%\32$\227\244idd\317\32\313^\223\327\221\377\240P\254" "\370BiXyI\345\227\32\205:\35\224\7$\232TZ'\317\363j\213\352\310\352*" "\353\311\351\253\33\250\\00\3247\3220\26""4\2412\3312\35""5{n\376\340" "\242\377%S\13)K:\313\315\313CV\325\326\367\256\370_\265\260\221\266\245" "\261\375j\327\207/\265\217r\260\276&\347\310\340\270\3514\340\\\342\22" "\341\212w\223q\247p\377\344\321\350\231\354\345\341\255B\240#,\3714\21" "\357\372\342\375$\374\21\376\303\327\363n\20\2\324\3\351\3\27\202\252" "o\206\4\353\207\260\204\254\334j\10\215\15""3\11g\13_\214\250\214\274" "\21\245\25M\27=\23S\22K\214S\214G\305\17\337\316NpJ\24M\374q\247\365" "nt\222I2[\362RJ\325\275\33\251\312i$i\375\367S\37\\I\347\206\362\244" "*#\350\321\271L\362\314\221\254\254l|\216@\316fnc^X\276n\1C\301\207\302" "\342\"B\261b\11i\311Hi\316c\227'\222e\240l\240<\263\302\255R\356)\372" "\351hU\3213\337j\265\32\352\232\17\265\225\317\303\353\314\353\371\352" "\17\33&\33_6U4\77h\211|\341\333\352\320f\326\256\331!\333)\330\305\331" "\315\364\222\246\207\374\25\252\27\336{\324w\360\372g\377\301\300\341" "[\304\40\371\20\3350\353\10\357;\211Q\2651\323q\307\211\240\311\224\367" "\217\247\272\246\27g\341\37""8\77\252\3159\314\337\376T\2730\267\210" "^RY\216\372\322\266\262\261&\3625\370[\333\372\376\246\302V\302\366\320" "\16\371\256\321\217\202\275\225\237\2\7\304_\375\277\251\216X\216\365" "\377[\373\216\15%\15@*\23\0\246\315\0\230h\2\20\355\0\325\255,\250VA" "\365\313\220\22\362\313\2\270\217\4\200_\251\7\2609\255\177\325\17\250" "n!\0\12:\27`\1=`\3\274@\34(\3\3`\15<@\10H\2\205\240\21\14\202%\30\200" "1\303\244`\20607X,\254\4\366\12\366\5N\16\27\206\33\303\375\341\217\340" "\235\3605\4#B\5\341\212\270\217\350Bl!\271\220F\310Pd\15\11;\211\11I" "\10I.I'\352\14\312\0E@\255\241\5\321\256\3502\3647RqR'\322d\322\27\30" "\24\346!f\231L\212\314\237\254\220\354\35""9/y\40\371\40\305i\212\40" "\212\21JA\3128\312\25\254\16\366\11\25%\2257\3258\265\22u\1\15\226&\200" "f\211\326\234\266\227N\201\256\212\236\237\276\200A\224\241\225\321\210" "q\361D0\323\11\246\232\223\306'\2773\337gQ`\371\304\32\307&\3016\313" "\36\317\241\300\261\216+\346\264\345b\343z\177\352!\367U\36\36\236\257" "\247\237\363\206\361\31\363\237\346\377%0v\246Z0E\310O\370\262\3109Q" "Q1\2348\235\4J\22H\376\226:\222A\236%\227\245\223c\225\347VPP4UrS\216" "R\311WmW\373t\216RCA\323E\353\301\371\327:\30]S\275\34\375\365\13\312" "\206\261F\237LTM\363\315I.:]zk)w\271\314\232\347J\236\15\233m\26\236" "\327\276\372\232\274\343\240\263\223+p\313\363\320\362\\\367\316\360" "\321!\36\372\325^w\17\340\13\\\277Y\27\22\36\252\37\316\30""1\37\325" "\24\223\26\347q[\77Q\342.C\322N\312hj\367\375\252\364\224\214\204\314" "\210l\277\\\217|\307\302k\305WK/>\321+7\2544\2522\256\266\254\265\255" "sjpm\362j\361o\15kO\350L\353\316\356)\353\255y\3352\320\375vhhvdutg\374" "\360=j\232n\26\367Qt^qAc\321p\371\362\212\343\232\337\267\250\215\207" "[\345\337\333v\207\367\346\17\310\16\355\217\363\347\277\325_\37\322" "\337\35\322\77\31\224\200N0\5\266a\2240>\3309\230\15,\30\366\10\326\14" "\233\205\303\340\10\377\211\340F\30\"\202\21\345\210" "\31$\25R\15\351\207|\202\234'a&\301C\332\317\242\230Q\26\250\7\250I4" "\33\332\16]\202\376J*E\32F:\206\21\307D`j0\363\220\362\375\344\234\344" "\327\311\207(\204(b(V(\315(_b\205\260\311\330=\252\253T=\324\"\324\217" "h04\376\220\352\227h\373\351T\351\32\350%\351\353\30\324\31F\31]\31\217" "N\334g\22ez}\322\211\31\305\\\314\242\315\362\215\365\36\233\"\333\27" "\3664\16M\216=\\\31'\236\213\225k\374T*\267\31\17""3\317\302\351\12\336" "\0>M~F\376U\201\3163\231\202\201B\326\302j\"\2\242tb@lG|EbVrB\352\275" "\364\264\314\374\3315\331}y\264\2\213\242\224\222\201\262\213J\214j\251" "\332\200\372\17\15\1M+\255\304\363\257t\250u\235\364:\14\330/\4\30N\30" "+\231\224\231\2350\217\274\270k\341d9gec\375\371\252\253\315\206\235" "\237=\326!\327Q\302i\310\305\323\215\312\375\271\347\25o2B5\21\357w\302" "\277\377Fd\240j\320ap\333\255\2500\315\10L\344PtV\254k\274l\2U\342\362" "\335\326\344\344{niz\17\204\322\3673\2063\313\263#s\361\371\252\205\\" "EG%3\217\233\3132+\2\237Z\77S\253\341{\216\256\333n\230hjj\311m\215k" "\367\351\264\354V\355\341\353%\353\333\355\237}\323=X1\374\360]\344\230" "\333\204\321{\271i\352\231\232\17\306s\247\347\177.d,\312-c\277,\254" "\306}\25^\307l|\336\272\363]v\227\361\307\367\375\202\3\233\303[\377" "\350\17\207:\2""4\40\3\324\200\11p\2023@\32\250\3c`\13\274A\30H\3e\240" "\353\237\14\340\207i\300la\241\260\\X\7l\21z\377\305\340\26\360Hx5|\36" "A\203PE\20\20\205\210)$\35R\37\31\215\354$A\220h\223$\221L\240p(gT-\32" "\2016A\27\242\177\222\32\221\226c\30""1\372\230\20""29\262\34r\14\271" "/\371\34\205!E'\245\2e\7V\5\333L%O\325@\255@\335N\243M3I\213\247\335" "\245\13\245g\244\177\306`\305H\316\330|\302\233\211\217i\341d\1""3\236" "\205\17\322\272\206\355&\273\26\7=\3072\256\215\363!\27\361\224\21\267" "\14\17\363i\330\351/\274\243|]\374U\2\345gJ\4\13\205\12\205\363D\312" "D\353\305^\212\217J,K!\2449eT\317\332\313F\313U\310O*\222+))\23TJU\77" "\252\237:\347\242Q\243\5;\177^\373\276\316\212\236\242~\272\301\266\241" "\236Q\205\11\243i\250\331\267\213\346\227\272,\245.\227[\13\\yl\303g" "[\212\27\267o\271\246\352\370\326\331\306\345\253[\264\7\316\263\301" "\333\234\260I\274\3\235iFn\370\7\262\6\265\7{\336b\15}\25\356\25\311" "\26\3656&\35=3\363A\362c\366<\315'\377\205\236E\226\245" "\320\345\365\25\263\325\342\265\303o\16\353\343\233J[\251\333\253;f\273" "]{B\373Q\77'\177i\36\3768\326\377o\277\364\307\310\324=\335<\11""8=\365" "s\340\377\327\334\335|\377\25\343\270K\242p\36003\201>i\241\213\25\312" "5O\340\6]\4\200\3z\320\35\24\374o\257\366\247\246A\375\330\243\343q\240" "^\237\360_\346%:\\\377\323\17\251{z\335\40""8;:\21q\252P\247\352\200" "S\367t\367\362%:\20\4q\332\36xaA\234\270\250\250\324\361\270\377\0\214" "\210\372\4/\327\242\275\0\0\0\6PLTE\13\0\0\377\377\377\317\36o\36\0\0" "\0\1tRNS\0@\346\330f\0\0\3\202IDATH\307\325\326M\213\333F\30\7\360gF" "\303zd\266\316\3101t\3f5\326\12\222\334\226\236\366\20\310\310\30\342" "=\244\335\313\336JI\367\23\344\270\24\303\216e\321Ui\10\362\346\320\336" "\\\12=$\267\34s\10(/\260\271\346\33\310K\16""9.=\271P\342<#\331&\315" "n\223m*B\242\223\306\32\215~\32\377\347\31\1|j\307\336tq\214\261)\305" "t\232\272\323\211\222\2\330\307\225\210\317\213\313\77\22\2271\235\317" "\16\343\37\10\265R\222\301\373\36\227\15tY\334H\367y*8\243y\2336Y\345" "\\\2666\331}\325\254\25=6\232\314\265\16\237\374\365\367F\340V\236\371" "\324f\275^\315\255\34\376i\2630\220\243\307LHY\304A\300\6\250e\22[\372" "\255\207\20\320\12\340J9\334\301\321P\"\267\256\362\266\267\314\265\334" "\1M=\307\14\11\272\343UE\344{\4:\1#\274\203\334\260\355\210X\2069W\267" "\221\2735\347v@\231`\350\5s\301\15d\275]\16""7:@\256\240\325~\336\16" "\32B\251\337\11\236H|\252\2\25^\257\212.\253\23\10\15""7\262.D\250L\272" "`\270\370J!\2252~\77W%\376\2032\270\340\276\350\267$\10Z\311\7\347\201" "\17\252\217s\311<9\40Z\203\244\333U\21\33\256F\256\315\350\335\316\214" "\313\343\260Q%\224\250\26>\314\375r\377\311\363c\365\303wM+V\203\373" "\273\275okw\366\17\217\314\77\40F\217\220\333\355\376\361n\356\362\222" "Etzc}\345\35'\330\217\205Z\2450\237]\21""0\350\207k\343\233\274\351\14" "H\337\232\10\266\355\270\234\235\37\37\353=F\252\214n\372a[&\373)r\17" "0\361\324\312Lt\341\327\256\377\25W\321\367\14b\35nF\341\216s\253\333" "2\311\361\204\376\21\364\272\237<,\207\333O\325S\344\326\277\311\254" "\211\341bJ\245\23s\257\246\1\227\37\347\333n1\273\267\361\322\27\214" "\332\215\260'G\40\13.\256P\235s\23\14\214}\34\341\333\376\4\341\246\211" "u\334%\24\3734lb\302\340'w\337\340N\317\351\336\325\342l\2627\236N\243" "3W\"7\373mx\11\2714\17\203\14\20p\361\330f\"\300\10\342OBl;of\227\332" "\313\241\222\7\206\273u\320`|6\273.r\317O\224\341\376<\347V\36\31.\267" ")9\21\206\314\324\212\305\354\2\77\3736\301\364\360\262@n\2610T\300\30" "H9\343\302`\"\305\3272\231s\235\2422(oXp=&f\263\233\367\1\265\213\334" "[z\306\205\26""5\257d\263b\251\265K\340b\30\242\341\345K\346\6\2)\254" "+\217q\256<\21\13\217``\2602\40>\231\27""2\207\3739\327\24\262\276\330" "\272\27,\270\255\"\273\270\34!V\206\273\203yj\325W\266\356yK\274(dW\312" "\341\16\216\304\323\342\6\344\352\346\325\321\241ne7Es\25\271Xw\305\252" "\34\231m\2p\233\250\361\213\270;\364T-\271\226\352L\342\13\270\217\13" "\356\352/ye\350\5.\304kX\20\2602\304\225t\374\22\373,\271\351\211]\355" "\303\303\0y\231\3147au\332\225S\17\365\217M\230\274\232\267B\\\233z\326" "C/fd6PI\334\177\325\221\377<\302i\\\377\224O\234R\270\377\377\350\1T" "\340-\356\312\247\313=\353\7\344I\356ke\27""6sBx\323&\0\0\0\0IEND\256" "B`\202"; #endif /* RC_USE_BIG_FONT */ hexter-version_1.1.0/src/gui_retro_console.h000066400000000000000000000035521325353653200212520ustar00rootroot00000000000000/* hexter DSSI software synthesizer GUI * * Copyright (C) 2011 Sean Bolton. * * 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 GUI_RETRO_CONSOLE_H #define GUI_RETRO_CONSOLE_H #include #define RC_USE_BIG_FONT #ifndef RC_USE_BIG_FONT #define RC_FONT_WIDTH 7 #define RC_FONT_HEIGHT 13 #else #define RC_FONT_WIDTH 9 #define RC_FONT_HEIGHT 18 #endif #define RC_COLOR_WHITE 0 #define RC_COLOR_BLACK 1 #define RC_COLOR_GREEN 2 #define RC_COLOR_BLUE 3 #define RC_COLOR_YELLOW 4 #define RC_COLOR_CYAN 5 #define RC_COLOR_COUNT 6 #define RC_MAX_COLOR_PAIRS 8 extern GtkWidget *rc_drawing_area; GtkWidget *retro_console_init(int width, int height); /* returns the console GtkDrawingArea */ void rc_console_set_button_press_callback(void (*cb)(guint button, guint x, guint y)); void rc_console_set_key_press_callback(void (*cb)(gboolean pressed, guint key, guint state)); void rc_console_addch(char c); void rc_console_addstr(const char *t); void rc_console_move(int y, int x); void rc_console_clrtoeol(void); void rc_console_erase(void); void rc_console_init_color_pair(int pair, int fg, int bg); void rc_console_set_color_pair(int pair); #endif /* GUI_RETRO_CONSOLE_H */ hexter-version_1.1.0/src/gui_retro_editor.c000066400000000000000000001021241325353653200210640ustar00rootroot00000000000000/* Yamaha DX7 / TX7 Editor/Librarian * * Copyright (C) 1991, 1995, 1997, 1998, 2004, 2009, 2011, 2018 Sean Bolton. * * This is a patch editor for the Yamaha DX7 and TX7. It started * out life on my Apple ][+, then I ported it to my Amiga, then to * my MS-DOS machine, then to Linux and ncurses, and most recently * to a simple GTK+ console emulation for integration into the hexter * DSSI soft synth. * * 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 #include #include #include #include #include "gui_callbacks.h" #include "gui_interface.h" #include "gui_patch_edit.h" #include "gui_retro_console.h" GtkWidget *retro_widget; /* ==== Console ==== */ #define CONSOLE_WIDTH 74 #define CONSOLE_HEIGHT 21 enum textcolor {COLOR_MSG = 1, COLOR_LABEL, COLOR_DATA, COLOR_BLOCK, COLOR_CURSOR, COLOR_BCURSOR, COLOR_OPON = COLOR_LABEL, COLOR_OPOFF = COLOR_MSG }; /* ==== VoiceEdit ==== */ static int re_Cursor = 0; static int re_OpSelect = 63; #define vptName 1 /* not used in hexter */ #define vpt0_99 2 #define vpt0_7 3 #define vptMode 4 /* R,F */ #define vptFC 5 /* 0-31 */ #define vptFF 6 /* 0-99 */ #define vptDetune 7 /* 0-14, as -7-+7 */ #define vpt0_3 8 #define vptAlg 9 /* 0-31, as 1-32 */ #define vptCurve 10 /* 0-3, scaling curve */ #define vptBkPt 11 /* 0-99, breakpoint */ #define vptTrans 12 /* 0-48, transpose */ #define vptOnOff 13 #define vptWave 14 static unsigned char re_parm_type_max[15] = { 0, 0, 99, 7, 1, 31, 99, 14, 3, 31, 3, 99, 48, 1, 5, }; static struct _reParm { guint8 Type; guint8 Offset; guint8 X; guint8 Y; guint8 Init; /* init voice value */ } reParm[DX7_VOICE_PARAMETERS - 1 /* omitting name */] = { /* T, Off, X, Y, Init */ { 2, 105, 5, 4, 0x62 }, /* O1 R1 */ { 2, 109, 8, 4, 0x63 }, { 2, 106, 12, 4, 0x63 }, { 2, 110, 15, 4, 0x63 }, { 2, 107, 19, 4, 0x63 }, { 2, 111, 22, 4, 0x63 }, { 2, 108, 26, 4, 0x5a }, { 2, 112, 29, 4, 0x00 }, { 3, 118, 33, 4, 0x00 }, /* O1 RS */ { 4, 122, 36, 4, 0x00 }, { 5, 123, 38, 4, 0x01 }, { 6, 124, 41, 4, 0x00 }, { 7, 125, 44, 4, 0x07 }, { 2, 121, 54, 4, 0x63 }, { 3, 120, 58, 4, 0x00 }, { 8, 119, 60, 4, 0x00 }, /* O1 AMS */ { 2, 84, 5, 5, 0x62 }, /* O2 R1 */ { 2, 88, 8, 5, 0x63 }, { 2, 85, 12, 5, 0x63 }, { 2, 89, 15, 5, 0x63 }, { 2, 86, 19, 5, 0x63 }, { 2, 90, 22, 5, 0x63 }, { 2, 87, 26, 5, 0x5a }, { 2, 91, 29, 5, 0x00 }, { 3, 97, 33, 5, 0x00 }, /* O2 RS */ { 4, 101, 36, 5, 0x00 }, { 5, 102, 38, 5, 0x01 }, { 6, 103, 41, 5, 0x00 }, { 7, 104, 44, 5, 0x07 }, { 2, 100, 54, 5, 0x00 }, { 3, 99, 58, 5, 0x00 }, { 8, 98, 60, 5, 0x00 }, /* O2 AMS */ { 2, 63, 5, 6, 0x62 }, /* O3 R1 */ { 2, 67, 8, 6, 0x63 }, { 2, 64, 12, 6, 0x63 }, { 2, 68, 15, 6, 0x63 }, { 2, 65, 19, 6, 0x63 }, { 2, 69, 22, 6, 0x63 }, { 2, 66, 26, 6, 0x5a }, { 2, 70, 29, 6, 0x00 }, { 3, 76, 33, 6, 0x00 }, /* O3 RS */ { 4, 80, 36, 6, 0x00 }, { 5, 81, 38, 6, 0x01 }, { 6, 82, 41, 6, 0x00 }, { 7, 83, 44, 6, 0x07 }, { 2, 79, 54, 6, 0x00 }, { 3, 78, 58, 6, 0x00 }, { 8, 77, 60, 6, 0x00 }, /* O3 AMS */ { 2, 42, 5, 7, 0x62 }, /* O4 R1 */ { 2, 46, 8, 7, 0x63 }, { 2, 43, 12, 7, 0x63 }, { 2, 47, 15, 7, 0x63 }, { 2, 44, 19, 7, 0x63 }, { 2, 48, 22, 7, 0x63 }, { 2, 45, 26, 7, 0x5a }, { 2, 49, 29, 7, 0x00 }, { 3, 55, 33, 7, 0x00 }, /* O4 RS */ { 4, 59, 36, 7, 0x00 }, { 5, 60, 38, 7, 0x01 }, { 6, 61, 41, 7, 0x00 }, { 7, 62, 44, 7, 0x07 }, { 2, 58, 54, 7, 0x00 }, { 3, 57, 58, 7, 0x00 }, { 8, 56, 60, 7, 0x00 }, /* O4 AMS */ { 2, 21, 5, 8, 0x62 }, /* O5 R1 */ { 2, 25, 8, 8, 0x63 }, { 2, 22, 12, 8, 0x63 }, { 2, 26, 15, 8, 0x63 }, { 2, 23, 19, 8, 0x63 }, { 2, 27, 22, 8, 0x63 }, { 2, 24, 26, 8, 0x5a }, { 2, 28, 29, 8, 0x00 }, { 3, 34, 33, 8, 0x00 }, /* O5 RS */ { 4, 38, 36, 8, 0x00 }, { 5, 39, 38, 8, 0x01 }, { 6, 40, 41, 8, 0x00 }, { 7, 41, 44, 8, 0x07 }, { 2, 37, 54, 8, 0x00 }, { 3, 36, 58, 8, 0x00 }, { 8, 35, 60, 8, 0x00 }, /* O5 AMS */ { 2, 0, 5, 9, 0x62 }, /* O6 R1 */ { 2, 4, 8, 9, 0x63 }, { 2, 1, 12, 9, 0x63 }, { 2, 5, 15, 9, 0x63 }, { 2, 2, 19, 9, 0x63 }, { 2, 6, 22, 9, 0x63 }, { 2, 3, 26, 9, 0x5a }, { 2, 7, 29, 9, 0x00 }, { 3, 13, 33, 9, 0x00 }, /* O6 RS */ { 4, 17, 36, 9, 0x00 }, { 5, 18, 38, 9, 0x01 }, { 6, 19, 41, 9, 0x00 }, { 7, 20, 44, 9, 0x07 }, { 2, 16, 54, 9, 0x00 }, { 3, 15, 58, 9, 0x00 }, { 8, 14, 60, 9, 0x00 }, /* O6 AMS */ { 2, 126, 5, 10, 0x63 }, /* P R1 */ { 2, 130, 8, 10, 0x32 }, { 2, 127, 12, 10, 0x63 }, { 2, 131, 15, 10, 0x32 }, { 2, 128, 19, 10, 0x63 }, { 2, 132, 22, 10, 0x32 }, { 2, 129, 26, 10, 0x63 }, { 2, 133, 29, 10, 0x32 }, { 9, 134, 48, 11, 0x00 }, /* Alg */ { 2, 137, 35, 12, 0x23 }, { 3, 135, 49, 12, 0x00 }, { 10, 116, 5, 13, 0x00 }, /* O1 LC */ { 2, 114, 10, 13, 0x00 }, { 11, 113, 13, 13, 0x00 }, { 10, 117, 18, 13, 0x00 }, { 2, 115, 23, 13, 0x00 }, { 2, 138, 35, 13, 0x00 }, /* Delay */ { 12, 144, 46, 13, 0x18 }, { 10, 95, 5, 14, 0x00 }, /* O2 LC */ { 2, 93, 10, 14, 0x00 }, { 11, 92, 13, 14, 0x00 }, { 10, 96, 18, 14, 0x00 }, { 2, 94, 23, 14, 0x00 }, { 2, 139, 35, 14, 0x00 }, /* PMD */ { 13, 136, 47, 14, 0x01 }, { 10, 74, 5, 15, 0x00 }, /* O3 LC */ { 2, 72, 10, 15, 0x00 }, { 11, 71, 13, 15, 0x00 }, { 10, 75, 18, 15, 0x00 }, { 2, 73, 23, 15, 0x00 }, { 2, 140, 35, 15, 0x00 }, /* AMD */ { 10, 53, 5, 16, 0x00 }, /* O4 LC */ { 2, 51, 10, 16, 0x00 }, { 11, 50, 13, 16, 0x00 }, { 10, 54, 18, 16, 0x00 }, { 2, 52, 23, 16, 0x00 }, { 13, 141, 34, 16, 0x01 }, /* Sync */ { 10, 32, 5, 17, 0x00 }, /* O5 LC */ { 2, 30, 10, 17, 0x00 }, { 11, 29, 13, 17, 0x00 }, { 10, 33, 18, 17, 0x00 }, { 2, 31, 23, 17, 0x00 }, { 14, 142, 34, 17, 0x00 }, /* Wave */ { 10, 11, 5, 18, 0x00 }, /* O6 LC */ { 2, 9, 10, 18, 0x00 }, { 11, 8, 13, 18, 0x00 }, { 10, 12, 18, 18, 0x00 }, { 2, 10, 23, 18, 0x00 }, { 3, 143, 36, 18, 0x03 } /* PMS */ }; /* These should be the largest possible horizontal and vertical span of * parameter cursor positions, respectively. If cursor motion wrap around * is not working like it should, check these. */ #define VOICEPARMS_X_SPAN 55 #define VOICEPARMS_Y_SPAN 14 /* ==== Algorithm ==== */ static char *veAlg[32] = { /* 32 algs, max 9 high and 17 wide */ " '`\n" /* 1 */ " 6/\n" " |\n" " 5\n" " |\n" "2 4\n" "| |\n" "1 3\n" "L--/", "\n" /* 2 */ " 6\n" " |\n" " 5\n" "'` |\n" "2/ 4\n" "| |\n" "1 3\n" "L--/", " '`\n" /* 3 */ "3 6/\n" "| |\n" "2 5\n" "| |\n" "1 4\n" "L--/", " '`\n" /* 4 */ "3 6|\n" "| ||\n" "2 5|\n" "| ||\n" "1 4/\n" "L--/", " '`\n" /* 5 */ "2 4 6/\n" "| | |\n" "1 3 5\n" "L--^--/", " '`\n" /* 6 */ "2 4 6|\n" "| | ||\n" "1 3 5/\n" "L--^--/", " '`\n" /* 7 */ " 6/\n" " |\n" "2 4 5\n" "| }--/\n" "1 3\n" "L--/", "\n" /* 8 */ " 6\n" " '` |\n" "2 4/ 5\n" "| }--/\n" "1 3\n" "L--/", "\n" /* 9 */ " 6\n" "'` |\n" "2/ 4 5\n" "| }--/\n" "1 3\n" "L--/", "'`\n" /* 10 */ "3/\n" "|\n" "2 5 6\n" "| }--/\n" "1 4\n" "L--/", "\n" /* 11 */ "3\n" "| '`\n" "2 5 6/\n" "| }--/\n" "1 4\n" "L--/", "'`\n" /* 12 */ "2/ 4 5 6\n" "| L--+--/\n" "1 3\n" "L-----/", " '`\n" /* 13 */ "2 4 5 6/\n" /* 13 */ "| L--+--/\n" "1 3\n" "L-----/", " '`\n" /* 14 */ " 5 6/\n" " }--/\n" "2 4\n" "| |\n" "1 3\n" "L--/", "\n" /* 15 */ " 5 6\n" "'` }--/\n" "2/ 4\n" "| |\n" "1 3\n" "L--/", " '`\n" /* 16 */ " 4 6/\n" " | |\n" "2 3 5\n" "L--+--/\n" " 1", "\n" /* 17 */ " 4 6\n" "'` | |\n" "2/ 3 5\n" "L--+--/\n" " 1", " 6\n" /* 18 */ " |\n" " 5\n" " '` |\n" "2 3/ 4\n" "L--+--/\n" " 1", "3\n" /* 19 */ "| '`\n" "2 6/\n" "| }--`\n" "1 4 5\n" "L--^--/", "'`\n" /* 20 */ "3/ 5 6\n" "}--` }--/\n" "1 2 4\n" "L--^--/", "'`\n" /* 21 */ "3/ 6\n" "}--` }--`\n" "1 2 4 5\n" "L--^--^--/", " '`\n" /* 22 */ "2 6/\n" "| '--+--`\n" "1 3 4 5\n" "L--^--^--/", " '`\n" /* 23 */ " 3 6/\n" " | }--`\n" "1 2 4 5\n" "L--^--^--/", " '`\n" /* 24 */ " 6/\n" " '--+--`\n" "1 2 3 4 5\n" "L--^--^--^--/", " '`\n" /* 25 */ " 6/\n" " }--`\n" "1 2 3 4 5\n" "L--^--^--^--/", " '`\n" /* 26 */ " 3 5 6/\n" " | }--/\n" "1 2 4\n" "L--^--/", " '`\n" /* 27 */ " 3/ 5 6\n" " | }--/\n" "1 2 4\n" "L--^--/", " '`\n" /* 28 */ " 5/\n" " |\n" "2 4\n" "| |\n" "1 3 6\n" "L--^--/", " '`\n" /* 29 */ " 4 6/\n" " | |\n" "1 2 3 5\n" "L--^--^--/", " '`\n" /* 30 */ " 5/\n" " |\n" " 4\n" " |\n" "1 2 3 6\n" "L--^--^--/", " '`\n" " 6/\n" /* 31 */ " |\n" "1 2 3 4 5\n" "L--^--^--^--/", " '`" /* 32 */ "1 2 3 4 5 6/" "L--^--^--^--^--/", }; /* ==== Console Routines ==== */ static void cerase(void) { rc_console_erase(); } static void cmove(int y, int x) { rc_console_move(y, x); } static void cprintf(const char *fmt, ...) { va_list ap; char tbuf[512]; va_start(ap, fmt); (void) vsnprintf(tbuf, 512, fmt, ap); va_end(ap); rc_console_addstr(tbuf); } static void cputch(int c) { rc_console_addch(c); } static void csetcolor(enum textcolor c) { rc_console_set_color_pair(c); } //- void clrtoeol(void) { ; } // -FIX- //- //- void //- paktc(void) //- { //- csetcolor(COLOR_MSG); //- cprintf(" Press Any Key to Continue... "); //- csetcolor(COLOR_DATA); //- //x cgetch(); //- cprintf("\r"); //- clrtoeol(); //- } //- //- static void //- gotomsg(void) //- { //- cmove(LibRows + 4, 2); //- } /* ==== VoiceEdit Stuff ==== */ void ve_ShowAlg(void) { int alg = patch_edit_get_edit_parameter(134), x, y; char *s = veAlg[alg]; int t; csetcolor(COLOR_LABEL); for (y = 11; y <= 19; y++) { x = 56; cmove(y, x); for (; x <= 72; x++) { switch (*s) { case '1': t = (!!(re_OpSelect&32)); goto printop; case '2': t = (!!(re_OpSelect&16)); goto printop; case '3': t = (!!(re_OpSelect& 8)); goto printop; case '4': t = (!!(re_OpSelect& 4)); goto printop; case '5': t = (!!(re_OpSelect& 2)); goto printop; case '6': t = (!!(re_OpSelect& 1)); printop: csetcolor(t ? COLOR_OPON : COLOR_OPOFF); cputch(*s++); csetcolor(COLOR_LABEL); break; case 0: cputch(' '); break; case '\n': cputch(' '); if (x == 72) s++; break; case '^': #define ACS_BTEE 151 /* '^' */ #define ACS_HLINE 146 /* '-' */ #define ACS_LLCORNER 142 /* 'L' */ #define ACS_LRCORNER 139 /* '/' */ #define ACS_LTEE 149 /* '}' */ #define ACS_PLUS 143 /* '+' */ #define ACS_ULCORNER 141 /* '/' */ #define ACS_URCORNER 140 /* '\\' */ #define ACS_VLINE 153 /* '|' */ cputch(ACS_BTEE); s++; break; case '-': cputch(ACS_HLINE); s++; break; case 'L': cputch(ACS_LLCORNER); s++; break; case '/': cputch(ACS_LRCORNER); s++; break; case '}': cputch(ACS_LTEE); s++; break; case '+': cputch(ACS_PLUS); s++; break; /* case '?': * cputch(ACS_RTEE); s++; * break; * case '?': * cputch(ACS_TTEE); s++; * break; */ case '\'': cputch(ACS_ULCORNER); s++; break; case '`': cputch(ACS_URCORNER); s++; break; case '|': cputch(ACS_VLINE); s++; break; default: cputch(*s++); break; } } } csetcolor(COLOR_DATA); } void ve_FExtend(guint8 fc, guint8 ff, guint8 mode, guint8 y) { unsigned long f; char ca[10]; csetcolor(COLOR_LABEL); cmove(y, 47); if (mode) { /* fixed */ f = peFFF[ff]; switch (fc & 3) { case 1: f *= 10; break; case 2: f *= 100; break; case 3: f *= 1000; break; } } else { f = fc * 10; if (!f) f = 5; f = (100 + ff) * f; } f = sprintf(ca, "%ld", f); switch (f) { case 3: cprintf("0.%.3s", ca); break; case 4: cprintf("%.1s.%.3s", ca, ca + 1); break; case 5: cprintf("%.2s.%.2s", ca, ca + 2); break; case 6: cprintf("%.3s.%.1s", ca, ca + 3); break; case 7: cprintf("%.4s.", ca); break; } csetcolor(COLOR_DATA); } static void re_printParm(int parm) { unsigned char val = patch_edit_get_edit_parameter(reParm[parm].Offset), c; char *t; cmove(reParm[parm].Y, reParm[parm].X); if (parm == re_Cursor) csetcolor(COLOR_CURSOR); switch (reParm[parm].Type) { case vpt0_99: if (val > 99) cprintf("??"); else cprintf("%2.2d", val); break; case vpt0_7: if (val > 7) cputch('?'); else cputch(val+'0'); break; case vptMode: switch (val) { case 0: c = 'R'; break; case 1: c = 'F'; break; default: c = '?'; break; } cputch(c); ve_FExtend(patch_edit_get_edit_parameter(reParm[parm+1].Offset), patch_edit_get_edit_parameter(reParm[parm+2].Offset), val, reParm[parm].Y); break; case vptFC: if (val > 31) cprintf("??"); else cprintf("%2d", val); ve_FExtend(val, patch_edit_get_edit_parameter(reParm[parm+1].Offset), patch_edit_get_edit_parameter(reParm[parm-1].Offset), reParm[parm].Y); break; case vptFF: if (val > 99) cprintf("??"); else cprintf("%2d", val); ve_FExtend(patch_edit_get_edit_parameter(reParm[parm-1].Offset), val, patch_edit_get_edit_parameter(reParm[parm-2].Offset), reParm[parm].Y); break; case vptDetune: /* 0-14, as -7-+7 */ if (val > 14) cprintf("??"); else cprintf("%+2d", val-7); break; case vpt0_3: if (val > 3) cputch('?'); else cputch(val+'0'); break; case vptAlg: /* 0-31, as 1-32 */ if (val > 31) { cprintf("??"); break; } cprintf("%2d", val+1); ve_ShowAlg(); return; case vptCurve: switch (val) { case 0: t = "-Lin"; break; case 1: t = "-Exp"; break; case 2: t = "+Exp"; break; case 3: t = "+Lin"; break; default: t = "????"; } cprintf("%s", t); break; case vptBkPt: if (val > 99) { cprintf("????"); break; } val += 21; goto printnote; case vptTrans: if (val > 48) { cprintf("????"); break; } val += 36; printnote: cprintf("%s", patch_edit_NoteText(val)); break; case vptOnOff: switch (val) { case 0: t = "Off"; break; case 1: t = " On"; break; default: t = "???"; } cprintf("%s", t); break; case vptWave: switch (val) { case 0: t = "TRI"; break; case 1: t = "SW-"; break; case 2: t = "SW+"; break; case 3: t = "SQU"; break; case 4: t = "SIN"; break; case 5: t = "S/H"; break; default: t = "???"; break; } cprintf("%s", t); break; } if (parm == re_Cursor) csetcolor(COLOR_DATA); } static void re_SetScreen(void) { csetcolor(COLOR_DATA); cerase(); cprintf(" TX/Edit Voice Edit\n"); csetcolor(COLOR_LABEL); cprintf(" A\n" " O R V M\n" " P R1 L1 R2 L2 R3 L3 R4 L4 S M FC FF D Freq. OL S S\n"); cprintf(" 1\n" " 2\n" " 3\n" " 4\n" " 5\n" " 6\n" " P\n"); cprintf(" Alg.\n" " Left BkPt Right Speed Fdbk\n"); cprintf(" 1 Delay C3=\n"); cprintf(" 2 PMD OKS\n"); cprintf(" 3 AMD\n"); cprintf(" 4 Sync\n"); cprintf(" 5 Wave\n"); cprintf(" 6 PMS\n"); csetcolor(COLOR_DATA); } static void re_on_adj_changed(GtkAdjustment *shadow_adj, gpointer data); /* forward */ static void re_set_edit_parameter(int offset, int val) { if (offset < 0 || offset >= DX7_VOICE_PARAMETERS - 1 /* omitting name */) return; /* temporarily block reverse signal, then update the adjustment */ g_signal_handlers_block_by_func(G_OBJECT(edit_adj[offset]), re_on_adj_changed, GINT_TO_POINTER(offset)); gtk_adjustment_set_value(GTK_ADJUSTMENT(edit_adj[offset]), (float)val); g_signal_handlers_unblock_by_func(G_OBJECT(edit_adj[offset]), re_on_adj_changed, GINT_TO_POINTER(offset)); } static void re_Inc(int parm) { unsigned char val = patch_edit_get_edit_parameter(reParm[parm].Offset), max; max = re_parm_type_max[reParm[parm].Type]; if (!max) return; if (++val > max) val = 0; re_set_edit_parameter(reParm[parm].Offset, val); re_printParm(parm); } static void re_Dec(int parm) { unsigned char val = patch_edit_get_edit_parameter(reParm[parm].Offset), max; max = re_parm_type_max[reParm[parm].Type]; if (!max) return; if (val) val--; else val = max; re_set_edit_parameter(reParm[parm].Offset, val); re_printParm(parm); } static void re_Zero(void) { guint8 offset = reParm[re_Cursor].Offset; re_set_edit_parameter(offset, reParm[re_Cursor].Init); re_printParm(re_Cursor); } static void re_CurUp(void) { int oldcursor = re_Cursor; int i, dx, dy, distance, best = -1, bestdistance = 1000; /* try to find the closest parm in the 'up' direction */ for (i = 0; i < DX7_VOICE_PARAMETERS - 1 /* omitting name */; i++) { dx = abs(reParm[re_Cursor].X - reParm[i].X); dy = (reParm[re_Cursor].Y - 1) - reParm[i].Y; if (dy < 0) dy += VOICEPARMS_Y_SPAN + 2; /* wrap */ dy = dy * 5 / 2; /* prefer something <2.5 spaces away horizontally to 1 space vertically */ distance = dx + dy; if (bestdistance > distance) { bestdistance = distance; best = i; } } if (best >= 0) { re_Cursor = best; re_printParm(oldcursor); re_printParm(re_Cursor); } } static void re_CurDown(void) { int oldcursor = re_Cursor; int i, dx, dy, distance, best = -1, bestdistance = 1000; /* try to find the closest parm in the 'down' direction */ for (i = 0; i < DX7_VOICE_PARAMETERS - 1 /* omitting name */; i++) { dx = abs(reParm[i].X - reParm[re_Cursor].X); dy = reParm[i].Y - (reParm[re_Cursor].Y + 1); if (dy < 0) dy += VOICEPARMS_Y_SPAN + 2; /* wrap */ dy = dy * 5 / 2; /* prefer something <2.5 spaces away horizontally to 1 space vertically */ distance = dx + dy; if (bestdistance > distance) { bestdistance = distance; best = i; } } if (best >= 0) { re_Cursor = best; re_printParm(oldcursor); re_printParm(re_Cursor); } } static void re_CurRight(void) { int oldcursor = re_Cursor; int i, dx, dy, distance, best = -1, bestdistance = 1000; /* try to find the closest parm in the 'right' direction */ for (i = 0; i < DX7_VOICE_PARAMETERS - 1 /* omitting name */; i++) { dx = reParm[i].X - (reParm[re_Cursor].X + 2); if (dx < 0) dx += VOICEPARMS_X_SPAN + 4; /* wrap */ dy = abs(reParm[i].Y - reParm[re_Cursor].Y); dy = dy * 12; /* prefer something <12 spaces away horizontally to 1 space vertically */ distance = dx + dy; if (bestdistance > distance) { bestdistance = distance; best = i; } } if (best >= 0) { re_Cursor = best; re_printParm(oldcursor); re_printParm(re_Cursor); } } static void re_CurLeft(void) { int oldcursor = re_Cursor; int i, dx, dy, distance, best = -1, bestdistance = 1000; /* try to find the closest parm in the 'left' direction */ for (i = 0; i < DX7_VOICE_PARAMETERS - 1 /* omitting name */; i++) { dx = (reParm[re_Cursor].X - 2) - reParm[i].X; if (dx < 0) dx += VOICEPARMS_X_SPAN + 4; /* wrap */ dy = abs(reParm[i].Y - reParm[re_Cursor].Y); dy = dy * 12; /* prefer something <12 spaces away horizontally to 1 space vertically */ distance = dx + dy; if (bestdistance > distance) { bestdistance = distance; best = i; } } if (best >= 0) { re_Cursor = best; re_printParm(oldcursor); re_printParm(re_Cursor); } } //- void //- ve_Erase(void) //- { //- memcpy(SingleData, InitVoiceUnpacked, VSIZEUNPACKED); //- // ve_SetScreen(); //- ve_DoScreen(); //- //+ refresh(); //- //+ PutUnpacked(); //- } //+ void //+ ve_PgUp(void) //+ { //+ if (Voice_Cursor) { //+ Pack(Voice_Cursor); //+ Unpack(--Voice_Cursor); //+ ve_DoScreen(); //+ refresh(); //+ PutUnpacked(); //+ } //+ } //+ void //+ ve_PgDn(void) //+ { //+ if (Voice_Cursor < Voices - 1) { //+ Pack(Voice_Cursor); //+ Unpack(++Voice_Cursor); //+ ve_DoScreen(); //+ refresh(); //+ PutUnpacked(); //+ } //+ } static void _re_SetOps(void) { //+ guint8 bd[7]; //+ //+ bd[0] = 0xF0; //+ bd[1] = 0x43; //+ bd[2] = 0x10 | TXChannel; //+ bd[3] = 1; //+ bd[4] = 27; //+ bd[5] = re_OpSelect; //+ bd[6] = 0xF7; //+ PutMidiMsg(bd, 7); } static void re_SetOps(int o) { //- guint8 i; //- //- re_OpSelect ^= o; //- for (i = 1; i < 7; i++) { //- if (re_OpSelect & (1 << (6 - i))) //- csetcolor(COLOR_OPON); //- else //- csetcolor(COLOR_OPOFF); //- cmove(3 + i, 2); //- cprintf("%c", i + '0'); //- cmove(12 + i, 2); //- cprintf("%c", i + '0'); //- } //- /* csetcolor(COLOR_DATA); not needed with ve_ShowAlg() */ //- ve_ShowAlg(); _re_SetOps(); } static void re_Number(int c) { unsigned char val = patch_edit_get_edit_parameter(reParm[re_Cursor].Offset), typ = reParm[re_Cursor].Type, max = re_parm_type_max[typ]; switch(typ) { case vpt0_99: case vptFF: val=(val * 10 + c - '0') % 100; break; case vptFC: val=(val * 10 + c - '0') % 100; for(; val > 31; val -= 10); break; case vpt0_7: case vpt0_3: val=c - '0'; if(val > max) val = max; break; case vptAlg: val=((val + 1) * 10 + c - '0') % 100; if (!val) val = 1; for(; val > 32; val -= 10); val--; break; default: return; } re_set_edit_parameter(reParm[re_Cursor].Offset, val); re_printParm(re_Cursor); } //+ void //+ ve_Help(void) //+ { //+ erase(); //+ cprintf(" TX/Edit v" VERSIONSTRING " Voice Edit Help\n\n"); //+ //+ cprintf(" Up / Down /\n" //+ " Right / Left - Move cursor\n\n"); //+ //+ cprintf(" + - Increment field\n" //+ " - - Decrement field\n" //+ " 0 through 9 - Enter data into field\n" //+ " Backspace - Zero/reset field\n\n"); //+ //+ cprintf(" A through Z - Rotate letters into name (name field only)\n\n" //+ //+ " F1 through F6 - Enable/disable operators 1 through 6\n\n"); //+ //+ cprintf(" Meta-P - Put edit buffer as single voice\n" //+ " Meta-! - Erase edit buffer to init voice\n" //+ " PgUp / PgDn - Move to previous / next voice\n" //+ //+ " Esc / Meta-L - Return to librarian mode\n\n" //+ //+ " h / Meta-H - Display this help screen\n\n"); //+ //+ paktc(); //+ ve_SetScreen(); //+ ve_DoScreen(); //+ } void re_ButtonPress(guint button, guint x, guint y) { int oldcursor = re_Cursor; int i, dx, dy, distance, best, bestdistance; /* GUIDB_MESSAGE(DB_GUI, " re_ButtonPress: button %u @ %u, %u\n", button, x, y); */ //- /* check for operator (un)mute */ // -FIX- hard-coded screen locations! //- if (x == 2 && (y >= 4 && y <= 9)) { //- ve_SetOps(32 >> (y - 4)); //- return; //- } else if (x == 2 && (y >= 13 && y <= 18)) { //- ve_SetOps(32 >> (y - 13)); //- return; //- } //- // -FIX- algorithm ops! /* try to find the closest parm */ best = -1; bestdistance = 1000; for (i = 0; i < DX7_VOICE_PARAMETERS - 1 /* omitting name */; i++) { dx = abs(x - reParm[i].X); dy = abs(y - reParm[i].Y); dy = dy * 5 / 2; /* prefer something <2.5 spaces away horizontally to 1 space vertically */ distance = dx + dy; if (bestdistance > distance) { bestdistance = distance; best = i; } } if (best >= 0) { re_Cursor = best; re_printParm(oldcursor); re_printParm(re_Cursor); } } void re_CharIn(gboolean pressed, guint c, guint state) { /* GUIDB_MESSAGE(DB_GUI, " re_ButtonPress: button %u @ %u, %u\n", button, x, y); */ /* if (c < 127) { * GUIDB_MESSAGE(DB_GUI, " re_CharIn: read char '%c'\n", (char)c); * } else { * GUIDB_MESSAGE(DB_GUI, " re_CharIn: read char %08x\n", c); * } */ if (!pressed) { /* key release */ if (c == ' ') { /* turn off test note */ on_test_note_button_press(NULL, (gpointer)0); } return; } if(c >= 'A' && c <= 'Z') c = tolower(c); switch(c) { case '+': case '=': re_Inc(re_Cursor); break; case '-': re_Dec(re_Cursor); break; case GDK_BackSpace: case GDK_Delete: re_Zero(); break; case GDK_Up: re_CurUp(); break; case GDK_Down: re_CurDown(); break; case GDK_Tab: case GDK_Right: re_CurRight(); break; case GDK_ISO_Left_Tab: case GDK_Left: re_CurLeft(); break; case GDK_F1: re_SetOps(32); break; case GDK_F2: re_SetOps(16); break; case GDK_F3: re_SetOps( 8); break; case GDK_F4: re_SetOps( 4); break; case GDK_F5: re_SetOps( 2); break; case GDK_F6: re_SetOps( 1); break; //+ case KEY_PPAGE: re_PgUp(); break; //+ case KEY_NPAGE: re_PgDn(); break; //+ case KEY_METAP: PutUnpacked(); break; //k case KEY_METAEX: re_Erase(); break; //k case KEY_METAH: //+ case 'h': re_Help(); break; case ' ': /* turn on test note */ on_test_note_button_press(NULL, (gpointer)1); break; default: if(c>='0' && c<='9') { re_Number(c); //- } else { //- gotomsg(); //- cprintf(" Type for help..."); //- #ifdef DEBUG //- cprintf("keycode=0x%04x", c); //- #endif } break; } } static void re_on_adj_changed(GtkAdjustment *shadow_adj, gpointer data) { int offset = GPOINTER_TO_INT(data); int i; /* GUIDB_MESSAGE(DB_GUI, " re_on_adj_changed: offset %d\n", offset); */ for (i = 0; i < DX7_VOICE_PARAMETERS - 1 /* omitting name */; i++) { if (reParm[i].Offset == offset) { re_printParm(i); return; } } } /* ==== Instantiation ==== */ GtkWidget * create_retro_editor(const char *tag) { int i; retro_console_init(CONSOLE_WIDTH, CONSOLE_HEIGHT); // -FIX- white on yellow! rc_console_init_color_pair(COLOR_MSG, RC_COLOR_WHITE, RC_COLOR_YELLOW); /* also COLOR_OPOFF */ rc_console_init_color_pair(COLOR_LABEL, RC_COLOR_GREEN, RC_COLOR_BLUE); /* also COLOR_OPON */ rc_console_init_color_pair(COLOR_DATA, RC_COLOR_WHITE, RC_COLOR_BLUE); rc_console_init_color_pair(COLOR_BLOCK, RC_COLOR_WHITE, RC_COLOR_CYAN); rc_console_init_color_pair(COLOR_CURSOR, RC_COLOR_BLACK, RC_COLOR_YELLOW); rc_console_init_color_pair(COLOR_BCURSOR, RC_COLOR_WHITE, RC_COLOR_GREEN); re_SetScreen(); /* re_DoScreen(); */ rc_console_set_button_press_callback(re_ButtonPress); rc_console_set_key_press_callback(re_CharIn); for (i = 0; i < DX7_VOICE_PARAMETERS - 1 /* omitting name */; i++) { g_signal_connect(G_OBJECT(edit_adj[i]), "value-changed", G_CALLBACK(re_on_adj_changed), GINT_TO_POINTER(i)); } retro_widget = rc_drawing_area; return retro_widget; } hexter-version_1.1.0/src/gui_widgy_alg.c000066400000000000000000000336401325353653200203370ustar00rootroot00000000000000/* hexter DSSI software synthesizer GUI * * Copyright (C) 2011, 2012 Sean Bolton. * * 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 GtkWidget *we_alg_drawing_area; static PangoLayout *alg_layout; static PangoRectangle op_char; static int op_width, op_height, op_x_spacing, op_y_spacing, alg_x_base, alg_y_top, alg_y_base, alg_x_stride, alg_y_stride; void we_alg_drawing_area_new(void) { we_alg_drawing_area = gtk_drawing_area_new(); alg_layout = gtk_widget_create_pango_layout (we_alg_drawing_area, "3"); pango_layout_get_pixel_extents (alg_layout, &op_char, NULL); /* see also gtk_calendar_size_request() for getting width and height, reusing a layout, ... */ /* if (op_char.x != 0 || op_char.y != 0) { -- non-zero origin is not handled * printf("-FIX- pango reports non-zero origin for font layout: op_char.x = %d || op_char.y = %d\n", op_char.x, op_char.y); * } */ op_width = (op_char.width + 5) & (~1); op_height = (op_char.height + 5) & (~1); op_x_spacing = op_y_spacing = (op_char.width & (~1)) + 1; alg_x_base = we_alg_drawing_area->style->xthickness + 2 + op_x_spacing + op_width / 2; alg_y_top = we_alg_drawing_area->style->ythickness + 2 + op_y_spacing + op_height / 2; alg_x_stride = op_width + op_x_spacing; alg_y_stride = op_height + op_y_spacing; alg_y_base = alg_y_top + alg_y_stride * 3; gtk_widget_set_size_request(we_alg_drawing_area, alg_x_base * 2 + alg_x_stride * 5, alg_y_top * 2 + alg_y_stride * 3); } static void alg_draw_op(cairo_t *cr, int x, int y, int op) { char buf[2]; int x0 = alg_x_base + alg_x_stride * x; int y0 = alg_y_base - alg_y_stride * y; buf[0] = '0' + op; buf[1] = 0; cairo_set_line_width(cr, 1.0); cairo_rectangle(cr, (float)(x0 - op_width / 2) + 0.5f, (float)(y0 - op_height / 2) + 0.5f, op_width, op_height); cairo_set_source_rgb(cr, 0.5, 1, 1); cairo_fill_preserve(cr); cairo_set_source_rgb(cr, 0, 0, 0); cairo_stroke(cr); cairo_set_source_rgb(cr, 0, 0, 0); cairo_move_to (cr, (float)(x0 - op_char.x - op_char.width / 2), (float)(y0 - op_char.y - op_char.height / 2)); pango_layout_set_text (alg_layout, buf, -1); pango_cairo_show_layout (cr, alg_layout); } static void alg_draw_connect(cairo_t *cr, int in_x, int in_y, int out_x, int out_y) { int in_x0 = alg_x_base + alg_x_stride * in_x; int in_y0 = alg_y_base - alg_y_stride * in_y; int in_yin = in_y0 - op_height / 2; int ymid = in_y0 - alg_y_stride / 2 - 1; int out_x0 = alg_x_base + alg_x_stride * out_x; int out_y0 = alg_y_base - alg_y_stride * out_y; int out_yout = out_y0 + op_height / 2; cairo_set_source_rgb(cr, 0, 0, 0); cairo_set_line_width(cr, 1.0); cairo_move_to(cr, (float)in_x0 + 0.5f, (float)in_yin + 0.5f); if (in_x != out_x) { cairo_line_to(cr, (float)in_x0 + 0.5f, (float)ymid + 0.5f); cairo_line_to(cr, (float)out_x0 + 0.5f, (float)ymid + 0.5f); } cairo_line_to(cr, (float)out_x0 + 0.5f, (float)out_yout + 0.5f); cairo_stroke(cr); } static void alg_draw_bus(cairo_t *cr, int a_x, int b_x, int y) { int a_x0 = alg_x_base + alg_x_stride * a_x; int b_x0 = alg_x_base + alg_x_stride * b_x; int y0 = alg_y_base - alg_y_stride * y; int yout = y0 + op_height / 2; int ybus = y0 + alg_y_stride / 2 + 1; cairo_set_source_rgb(cr, 0, 0, 0); cairo_set_line_width(cr, 1.0); cairo_move_to(cr, (float)a_x0 + 0.5f, (float)yout + 0.5f); cairo_line_to(cr, (float)a_x0 + 0.5f, (float)ybus + 0.5f); if (a_x != b_x) { cairo_line_to(cr, (float)b_x0 + 0.5f, (float)ybus + 0.5f); cairo_line_to(cr, (float)b_x0 + 0.5f, (float)yout + 0.5f); } cairo_stroke(cr); } static void alg_draw_feedback(cairo_t *cr, int in_x, int in_y, int out_x, int out_y) { int in_x0 = alg_x_base + alg_x_stride * in_x; int in_y0 = alg_y_base - alg_y_stride * in_y; int in_yin = in_y0 - op_height / 2; int in_ytop = in_y0 - alg_y_stride / 2 - 1; int in_xright = in_x0 + alg_x_stride / 2 + 1; int out_x0 = alg_x_base + alg_x_stride * out_x; int out_y0 = alg_y_base - alg_y_stride * out_y; int out_xright = in_xright; int out_xout = out_x0 + op_width / 2; cairo_set_source_rgb(cr, 0, 0, 0); cairo_set_line_width(cr, 1.0); cairo_move_to(cr, (float)in_x0 + 0.5f, (float)in_yin + 0.5f); cairo_line_to(cr, (float)in_x0 + 0.5f, (float)in_ytop + 0.5f); cairo_line_to(cr, (float)in_xright + 0.5f, (float)in_ytop + 0.5f); cairo_line_to(cr, (float)out_xright + 0.5f, (float)out_y0 + 0.5f); cairo_line_to(cr, (float)out_xout + 0.5f, (float)out_y0 + 0.5f); cairo_stroke(cr); } struct _algdef { char op, a, b; }; #define OP_OP1 1 /* a is op x position, b is op y position */ #define OP_OP6 6 #define OP_CONNECT 7 /* a is 'in' or lower op, b is 'out' or upper op */ #define OP_BUS 8 /* a and b are ops to bus */ #define OP_FEEDBACK 9 /* a is 'in' or upper op, b is 'side' or lower op */ #define C OP_CONNECT #define B OP_BUS #define FB OP_FEEDBACK static struct _algdef *_algdef[32] = { (struct _algdef []){ { 1, 2, 0 }, { 2, 2, 1 }, { 3, 3, 0 }, { 4, 3, 1 }, { 5, 3, 2 }, { 6, 3, 3 }, /* 1 */ { C, 1, 2 }, { C, 3, 4 }, { C, 4, 5 }, { C, 5, 6 }, { B, 1, 3 }, { FB, 6, 6 }, { 0 } }, (struct _algdef []){ { 1, 2, 0 }, { 2, 2, 1 }, { 3, 3, 0 }, { 4, 3, 1 }, { 5, 3, 2 }, { 6, 3, 3 }, /* 2 */ { C, 1, 2 }, { C, 3, 4 }, { C, 4, 5 }, { C, 5, 6 }, { B, 1, 3 }, { FB, 2, 2 }, { 0 } }, (struct _algdef []){ { 1, 2, 0 }, { 2, 2, 1 }, { 3, 2, 2 }, { 4, 3, 0 }, { 5, 3, 1 }, { 6, 3, 2 }, /* 3 */ { C, 1, 2 }, { C, 2, 3 }, { C, 4, 5 }, { C, 5, 6 }, { B, 1, 4 }, { FB, 6, 6 }, { 0 } }, (struct _algdef []){ { 1, 2, 0 }, { 2, 2, 1 }, { 3, 2, 2 }, { 4, 3, 0 }, { 5, 3, 1 }, { 6, 3, 2 }, /* 4 */ { C, 1, 2 }, { C, 2, 3 }, { C, 4, 5 }, { C, 5, 6 }, { B, 1, 4 }, { FB, 6, 4 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 1, 1 }, { 3, 2, 0 }, { 4, 2, 1 }, { 5, 3, 0 }, { 6, 3, 1 }, /* 5 */ { C, 1, 2 }, { C, 3, 4 }, { C, 5, 6 }, { B, 1, 3 }, { B, 3, 5 }, { FB, 6, 6 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 1, 1 }, { 3, 2, 0 }, { 4, 2, 1 }, { 5, 3, 0 }, { 6, 3, 1 }, /* 6 */ { C, 1, 2 }, { C, 3, 4 }, { C, 5, 6 }, { B, 1, 3 }, { B, 3, 5 }, { FB, 6, 5 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 1, 1 }, { 3, 2, 0 }, { 4, 2, 1 }, { 5, 3, 1 }, { 6, 3, 2 }, /* 7 */ { C, 1, 2 }, { C, 3, 4 }, { C, 3, 5 }, { C, 5, 6 }, { B, 1, 3 }, { FB, 6, 6 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 1, 1 }, { 3, 2, 0 }, { 4, 2, 1 }, { 5, 3, 1 }, { 6, 3, 2 }, /* 8 */ { C, 1, 2 }, { C, 3, 4 }, { C, 3, 5 }, { C, 5, 6 }, { B, 1, 3 }, { FB, 4, 4 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 1, 1 }, { 3, 2, 0 }, { 4, 2, 1 }, { 5, 3, 1 }, { 6, 3, 2 }, /* 9 */ { C, 1, 2 }, { C, 3, 4 }, { C, 3, 5 }, { C, 5, 6 }, { B, 1, 3 }, { FB, 2, 2 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 1, 1 }, { 3, 1, 2 }, { 4, 2, 0 }, { 5, 2, 1 }, { 6, 3, 1 }, /* 10 */ { C, 1, 2 }, { C, 2, 3 }, { C, 4, 5 }, { C, 4, 6 }, { B, 1, 4 }, { FB, 3, 3 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 1, 1 }, { 3, 1, 2 }, { 4, 2, 0 }, { 5, 2, 1 }, { 6, 3, 1 }, /* 11 */ { C, 1, 2 }, { C, 2, 3 }, { C, 4, 5 }, { C, 4, 6 }, { B, 1, 4 }, { FB, 6, 6 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 1, 1 }, { 3, 3, 0 }, { 4, 2, 1 }, { 5, 3, 1 }, { 6, 4, 1 }, /* 12 */ { C, 1, 2 }, { C, 3, 4 }, { C, 3, 5 }, { C, 3, 6 }, { B, 1, 3 }, { FB, 2, 2 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 1, 1 }, { 3, 3, 0 }, { 4, 2, 1 }, { 5, 3, 1 }, { 6, 4, 1 }, /* 13 */ { C, 1, 2 }, { C, 3, 4 }, { C, 3, 5 }, { C, 3, 6 }, { B, 1, 3 }, { FB, 6, 6 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 1, 1 }, { 3, 2, 0 }, { 4, 2, 1 }, { 5, 2, 2 }, { 6, 3, 2 }, /* 14 */ { C, 1, 2 }, { C, 3, 4 }, { C, 4, 5 }, { C, 4, 6 }, { B, 1, 3 }, { FB, 6, 6 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 1, 1 }, { 3, 2, 0 }, { 4, 2, 1 }, { 5, 2, 2 }, { 6, 3, 2 }, /* 15 */ { C, 1, 2 }, { C, 3, 4 }, { C, 4, 5 }, { C, 4, 6 }, { B, 1, 3 }, { FB, 2, 2 }, { 0 } }, (struct _algdef []){ { 1, 2, 0 }, { 2, 1, 1 }, { 3, 2, 1 }, { 4, 2, 2 }, { 5, 3, 1 }, { 6, 3, 2 }, /* 16 */ { C, 1, 2 }, { C, 1, 3 }, { C, 3, 4 }, { C, 1, 5 }, { C, 5, 6 }, { B, 1, 1 }, { FB, 6, 6 }, { 0 } }, (struct _algdef []){ { 1, 2, 0 }, { 2, 1, 1 }, { 3, 2, 1 }, { 4, 2, 2 }, { 5, 3, 1 }, { 6, 3, 2 }, /* 17 */ { C, 1, 2 }, { C, 1, 3 }, { C, 3, 4 }, { C, 1, 5 }, { C, 5, 6 }, { B, 1, 1 }, { FB, 2, 2 }, { 0 } }, (struct _algdef []){ { 1, 2, 0 }, { 2, 1, 1 }, { 3, 2, 1 }, { 4, 3, 1 }, { 5, 3, 2 }, { 6, 3, 3 }, /* 18 */ { C, 1, 2 }, { C, 1, 3 }, { C, 1, 4 }, { C, 4, 5 }, { C, 5, 6 }, { B, 1, 1 }, { FB, 3, 3 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 1, 1 }, { 3, 1, 2 }, { 4, 2, 0 }, { 5, 3, 0 }, { 6, 2, 1 }, /* 19 */ { C, 1, 2 }, { C, 2, 3 }, { C, 4, 6 }, { C, 5, 6 }, { B, 1, 4 }, { B, 4, 5 }, { FB, 6, 6 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 2, 0 }, { 3, 1, 1 }, { 4, 3, 0 }, { 5, 3, 1 }, { 6, 4, 1 }, /* 20 */ { C, 1, 3 }, { C, 2, 3 }, { C, 4, 5 }, { C, 4, 6 }, { B, 1, 2 }, { B, 2, 4 }, { FB, 3, 3 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 2, 0 }, { 3, 1, 1 }, { 4, 3, 0 }, { 5, 4, 0 }, { 6, 3, 1 }, /* 21 */ { C, 1, 3 }, { C, 2, 3 }, { C, 4, 6 }, { C, 5, 6 }, { B, 1, 2 }, { B, 2, 4 }, { B, 4, 5 }, { FB, 3, 3 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 1, 1 }, { 3, 2, 0 }, { 4, 3, 0 }, { 5, 4, 0 }, { 6, 3, 1 }, /* 22 */ { C, 1, 2 }, { C, 3, 6 }, { C, 4, 6 }, { C, 5, 6 }, { B, 1, 3 }, { B, 3, 4 }, { B, 4, 5 }, { FB, 6, 6 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 2, 0 }, { 3, 2, 1 }, { 4, 3, 0 }, { 5, 4, 0 }, { 6, 3, 1 }, /* 23 */ { C, 2, 3 }, { C, 4, 6 }, { C, 5, 6 }, { B, 1, 2 }, { B, 2, 4 }, { B, 4, 5 }, { FB, 6, 6 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 2, 0 }, { 3, 3, 0 }, { 4, 4, 0 }, { 5, 5, 0 }, { 6, 4, 1 }, /* 24 */ { C, 3, 6 }, { C, 4, 6 }, { C, 5, 6 }, { B, 1, 2 }, { B, 2, 3 }, { B, 3, 4 }, { B, 4, 5 }, { FB, 6, 6 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 2, 0 }, { 3, 3, 0 }, { 4, 4, 0 }, { 5, 5, 0 }, { 6, 4, 1 }, /* 25 */ { C, 4, 6 }, { C, 5, 6 }, { B, 1, 2 }, { B, 2, 3 }, { B, 3, 4 }, { B, 4, 5 }, { FB, 6, 6 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 2, 0 }, { 3, 2, 1 }, { 4, 3, 0 }, { 5, 3, 1 }, { 6, 4, 1 }, /* 26 */ { C, 2, 3 }, { C, 4, 5 }, { C, 4, 6 }, { B, 1, 2 }, { B, 2, 4 }, { FB, 6, 6 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 2, 0 }, { 3, 2, 1 }, { 4, 3, 0 }, { 5, 3, 1 }, { 6, 4, 1 }, /* 27 */ { C, 2, 3 }, { C, 4, 5 }, { C, 4, 6 }, { B, 1, 2 }, { B, 2, 4 }, { FB, 3, 3 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 1, 1 }, { 3, 2, 0 }, { 4, 2, 1 }, { 5, 2, 2 }, { 6, 3, 0 }, /* 28 */ { C, 1, 2 }, { C, 3, 4 }, { C, 4, 5 }, { B, 1, 3 }, { B, 3, 6 }, { FB, 5, 5 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 2, 0 }, { 3, 3, 0 }, { 4, 3, 1 }, { 5, 4, 0 }, { 6, 4, 1 }, /* 29 */ { C, 3, 4 }, { C, 5, 6 }, { B, 1, 2 }, { B, 2, 3 }, { B, 3, 5 }, { FB, 6, 6 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 2, 0 }, { 3, 3, 0 }, { 4, 3, 1 }, { 5, 3, 2 }, { 6, 4, 0 }, /* 30 */ { C, 3, 4 }, { C, 4, 5 }, { B, 1, 2 }, { B, 2, 3 }, { B, 3, 6 }, { FB, 5, 5 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 2, 0 }, { 3, 3, 0 }, { 4, 4, 0 }, { 5, 5, 0 }, { 6, 5, 1 }, /* 31 */ { C, 5, 6 }, { B, 1, 2 }, { B, 2, 3 }, { B, 3, 4 }, { B, 4, 5 }, { FB, 6, 6 }, { 0 } }, (struct _algdef []){ { 1, 0, 0 }, { 2, 1, 0 }, { 3, 2, 0 }, { 4, 3, 0 }, { 5, 4, 0 }, { 6, 5, 0 }, /* 32 */ { B, 1, 2 }, { B, 2, 3 }, { B, 3, 4 }, { B, 4, 5 }, { B, 5, 6 }, { FB, 6, 6 }, { 0 } }, }; #undef C #undef B #undef FB void we_alg_draw(cairo_t *cr, int alg) { struct _algdef *algdef; int i, op_x[7], op_y[7]; cairo_set_source_rgb(cr, 1.0, 1.0, 1.0); cairo_paint(cr); if (alg < 0 || alg >= 32) return; algdef = _algdef[alg]; for (i = 0; algdef[i].op; i++) { int op = algdef[i].op; if (op >= OP_OP1 && op <= OP_OP6) { op_x[op] = algdef[i].a; op_y[op] = algdef[i].b; alg_draw_op(cr, op_x[op], op_y[op], op); } else if (op == OP_CONNECT) { alg_draw_connect(cr, op_x[(int)algdef[i].a], op_y[(int)algdef[i].a], op_x[(int)algdef[i].b], op_y[(int)algdef[i].b]); } else if (op == OP_BUS) { alg_draw_bus(cr, op_x[(int)algdef[i].a], op_x[(int)algdef[i].b], op_y[(int)algdef[i].a]); } else if (op == OP_FEEDBACK) { alg_draw_feedback(cr, op_x[(int)algdef[i].a], op_y[(int)algdef[i].a], op_x[(int)algdef[i].b], op_y[(int)algdef[i].b]); } } } hexter-version_1.1.0/src/gui_widgy_editor.c000066400000000000000000001157661325353653200210740ustar00rootroot00000000000000/* hexter DSSI software synthesizer GUI * * Copyright (C) 2011, 2012, 2018 Sean Bolton. * * 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. */ // Need To Do: // - fix envelope drawing to show L3 hold until key-off // - fix envelope drawing to somehow be user scalable? // - hook up mute buttons (once hexter has muting capability) #include #include #include "hexter.h" #include "dx7_voice_data.h" #include "gui_interface.h" #include "gui_patch_edit.h" GtkWidget *widgy_widget; static GtkWidget *freq_label[6]; static GtkWidget *bkpt_label[6]; #ifdef OP_MUTE_WORKS_IN_PLUGIN static GtkObject *mute_adj[6]; #endif static GtkWidget *env_drawing_area[6]; static GtkWidget *scaling_drawing_area[6]; static GtkWidget *pitch_drawing_area; #define TABLE_OUTPUT 0 #define TABLE_OP1 1 #define TABLE_OP6 6 #define TABLE_GLOBAL 7 #define TABLE_COUNT 8 static GtkWidget *tables[TABLE_COUNT]; static char *tabs[TABLE_COUNT] = { NULL, "Op 1", "Op 2", "Op 3", "Op 4", "Op 5", "Op 6", "Global" }; #define TO TABLE_OUTPUT #define TG TABLE_GLOBAL static struct _labels { signed char tab; char x, y; char width; const char *text; } labels[] = { /* Output tab */ { TO, 0, 0, 2, "Algorithm" }, { TO, 0, 1, 2, "Feedback" }, { TO, 0, 2, 1, " " }, /* spacer */ { TO, 0, 3, 1, "Oper" }, #ifdef OP_MUTE_WORKS_IN_PLUGIN { TO, 1, 3, 1, "Mute" }, #endif { TO, 2, 3, 1, "OL" }, { TO, 0, 4, 1, "1" }, { TO, 0, 5, 1, "2" }, { TO, 0, 6, 1, "3" }, { TO, 0, 7, 1, "4" }, { TO, 0, 8, 1, "5" }, { TO, 0, 9, 1, "6" }, { TO, 0, 10, 1, " " }, /* spacer */ /* Global tab */ { TG, 0, 1, 1, "Transpose" }, { TG, 0, 2, 1, "Osc Key Sync" }, { TG, 2, 0, 4, "LFO" }, { TG, 2, 1, 1, "Speed" }, { TG, 2, 2, 1, "Delay" }, { TG, 2, 3, 1, "PMD" }, { TG, 2, 4, 1, "AMD" }, { TG, 4, 1, 1, "Wave" }, { TG, 4, 2, 1, "Sync" }, { TG, 4, 3, 1, "PMS" }, { TG, 0, 5, 1, " " }, /* spacer */ { TG, 0, 6, 1, "Pitch Envelope" }, { TG, 1, 6, 1, "1" }, { TG, 2, 6, 1, "2" }, { TG, 3, 6, 1, "3" }, { TG, 4, 6, 1, "4" }, { TG, 0, 7, 1, "Rate" }, { TG, 0, 8, 1, "Level" }, { -1 } /* end */ }; static struct _op_labels { signed char x, y; char width; const char *text; } op_labels[] = { { 0, 0, 1, "Frequency" }, { 1, 0, 1, "Mode" }, { 2, 0, 1, "Coarse" }, { 3, 0, 1, "Fine" }, { 4, 0, 1, "Detune" }, { 0, 2, 1, " " }, /* spacer */ { 0, 3, 1, "Envelope" }, { 1, 3, 1, "1" }, { 2, 3, 1, "2" }, { 3, 3, 1, "3" }, { 4, 3, 1, "4" }, { 0, 4, 1, "Rate" }, { 0, 5, 1, "Level" }, { 5, 3, 2, "Sensitivity" }, { 5, 4, 1, "Velocity" }, { 5, 5, 1, "Amp Mod" }, { 0, 7, 1, " " }, /* spacer */ { 0, 8, 2, "Left" }, { 2, 8, 2, "Level Scaling" }, { 4, 8, 2, "Right" }, { 0, 9, 1, "Curve" }, { 1, 9, 1, "Depth" }, { 2, 9, 2, "Breakpoint" }, { 4, 9, 1, "Curve" }, { 5, 9, 1, "Depth" }, { 6, 8, 1, "Rate" }, { 6, 9, 1, "Scaling" }, { -1 } /* end */ }; static struct _parameters { signed char type; char tab; char x, y; int offset; } parameters[] = { /* type, tab, x, y, offset */ { PEPT_Alg, TO, 2, 0, 134 }, /* Alg */ { PEPT_0_7, TO, 2, 1, 135 }, /* Feedback */ { PEPT_Scal99, TO, 2, 4, 121 }, /* O1 OL */ { PEPT_Scal99, TO, 2, 5, 100 }, /* O2 OL */ { PEPT_Scal99, TO, 2, 6, 79 }, /* O3 OL */ { PEPT_Scal99, TO, 2, 7, 58 }, /* O4 OL */ { PEPT_Scal99, TO, 2, 8, 37 }, /* O5 OL */ { PEPT_Scal99, TO, 2, 9, 16 }, /* O6 OL */ { PEPT_Name, TG, 2, 2, 145 }, /* Name */ { PEPT_Trans, TG, 1, 1, 144 }, { PEPT_OnOff, TG, 1, 2, 136 }, /* Osc Key Sync */ { PEPT_0_99, TG, 3, 1, 137 }, /* LFO Speed */ { PEPT_0_99, TG, 3, 2, 138 }, /* Delay */ { PEPT_0_99, TG, 3, 3, 139 }, /* PMD */ { PEPT_0_99, TG, 3, 4, 140 }, /* AMD */ { PEPT_LFOWave, TG, 5, 1, 142 }, /* Wave */ { PEPT_OnOff, TG, 5, 2, 141 }, /* Sync */ { PEPT_0_7, TG, 5, 3, 143 }, /* PMS */ { PEPT_Env, TG, 1, 7, 126 }, /* Pitch Envelope R1 */ { PEPT_Env, TG, 1, 8, 130 }, { PEPT_Env, TG, 2, 7, 127 }, { PEPT_Env, TG, 2, 8, 131 }, { PEPT_Env, TG, 3, 7, 128 }, { PEPT_Env, TG, 3, 8, 132 }, { PEPT_Env, TG, 4, 7, 129 }, { PEPT_Env, TG, 4, 8, 133 }, /* P L4 */ { -1 } /* end */ }; #undef TO #undef TG static struct _op_parameters { signed char type; char x, y; int offset; } op_parameters[] = { /* type, x, y, offset */ { PEPT_Mode, 1, 1, 17 }, { PEPT_FC, 2, 1, 18 }, /* FC */ { PEPT_FF, 3, 1, 19 }, /* FF */ { PEPT_Detune, 4, 1, 20 }, /* Detune */ { PEPT_Env, 1, 4, 0 }, /* R1 */ { PEPT_Env, 1, 5, 4 }, /* L1 */ { PEPT_Env, 2, 4, 1 }, /* R2 */ { PEPT_Env, 2, 5, 5 }, /* L2 */ { PEPT_Env, 3, 4, 2 }, /* R3 */ { PEPT_Env, 3, 5, 6 }, /* L3 */ { PEPT_Env, 4, 4, 3 }, /* R4 */ { PEPT_Env, 4, 5, 7 }, /* L4 */ { PEPT_0_7, 6, 4, 15 }, /* VS */ { PEPT_0_3, 6, 5, 14 }, /* AMS */ { PEPT_Curve, 0, 10, 11 }, /* Left Curve */ { PEPT_Scal99, 1, 10, 9 }, /* Left Depth */ { PEPT_BkPt, 2, 10, 8 }, { PEPT_Curve, 4, 10, 12 }, /* Right Curve */ { PEPT_Scal99, 5, 10, 10 }, /* Right Depth */ { PEPT_0_7, 6, 10, 13 }, /* RS */ { -1 } /* end */ }; #define GEPT_Mute PEPT_COUNT /* just for internal use */ /* ==== algorithm ==== */ static gboolean alg_expose(GtkWidget *widget, GdkEventExpose *event) { cairo_t *cr = gdk_cairo_create (widget->window); /* GUIDB_MESSAGE(DB_GUI, " ge alg_expose called\n"); */ gtk_paint_box(widget->style, widget->window, GTK_STATE_NORMAL, GTK_SHADOW_IN, &event->area, widget, NULL, 0, 0, widget->allocation.width, widget->allocation.height); gdk_cairo_rectangle (cr, &event->area); cairo_clip(cr); cairo_rectangle(cr, widget->style->xthickness, widget->style->ythickness, widget->allocation.width - 2 * widget->style->xthickness, widget->allocation.height - 2 * widget->style->ythickness); cairo_clip(cr); we_alg_draw(cr, patch_edit_get_edit_parameter(134)); cairo_destroy (cr); return FALSE; } /* ==== level envelopes ==== */ static float op_color[6][3] = { { 1.0, 0.0, 0.0 }, { 0.8, 0.7, 0.0 }, { 0.0, 0.8, 0.0 }, { 0.0, 0.8, 0.8 }, { 0.0, 0.0, 1.0 }, { 1.0, 0.0, 1.0 }, }; static gboolean env_expose(GtkWidget *widget, GdkEventExpose *event, gpointer data) { int thisop = GPOINTER_TO_INT(data); int r[6][4], l[6][4]; float d[6][4], td, da, xrange; int op, i, width, height; cairo_t *cr = gdk_cairo_create (widget->window); /* GUIDB_MESSAGE(DB_GUI, " ge env_expose called\n"); */ for (op = 0; op < 6; op++) { for (i = 0; i < 4; i++) { r[op][i] = patch_edit_get_edit_parameter(0 + i + (5 - op) * 21); l[op][i] = patch_edit_get_edit_parameter(4 + i + (5 - op) * 21); } } da = 0.0f; for (op = 0; op < 6; op++) { td = 0.0f; for (i = 0; i < 4; i++) { int i0 = (i - 1) & 3; if (l[op][i0] < l[op][i]) { d[op][i] = dx7_voice_eg_rate_rise_duration[r[op][i]] * (dx7_voice_eg_rate_rise_percent[l[op][i]] - dx7_voice_eg_rate_rise_percent[l[op][i0]]); } else { d[op][i] = dx7_voice_eg_rate_decay_duration[r[op][i]] * (dx7_voice_eg_rate_decay_percent[l[op][i0]] - dx7_voice_eg_rate_decay_percent[l[op][i]]); } if (d[op][i] < 0.0f) d[op][i] = 0.0f; td += d[op][i]; } if (da < td) da = td; } /* da is the maximum of envelope time totals */ /* -FIX- if td is zero, then it takes a long time to render? */ td = d[thisop][0] + d[thisop][1] + d[thisop][2] + d[thisop][3]; /* time total of this envelope */ if (da < 0.005f) da = 0.005f; /* prevent division by zero */ if (td < 0.005f) td = 0.005f; /* prevent division by zero */ td = td / (0.66f + 0.34f * (1.0f - ((da - td) / da))); width = widget->allocation.width; height = widget->allocation.height; gtk_paint_box(widget->style, widget->window, GTK_STATE_NORMAL, GTK_SHADOW_IN, &event->area, widget, NULL, 0, 0, width, height); width -= 2 * widget->style->xthickness; height -= 2 * widget->style->ythickness; gdk_cairo_rectangle (cr, &event->area); cairo_clip(cr); cairo_translate(cr, widget->style->xthickness, widget->style->ythickness); cairo_rectangle(cr, 0, 0, width, height); cairo_clip(cr); cairo_set_source_rgb(cr, 1.0, 1.0, 1.0); cairo_paint(cr); xrange = (float)width - 20.0f; for (op = 0; op < 6; op++) { if (op == thisop) continue; cairo_set_source_rgba(cr, op_color[op][0], op_color[op][1], op_color[op][2], 0.7); cairo_set_line_width(cr, 1); cairo_set_dash(cr, (const double []){ 1.5, 2.5 }, 2, 0.0); cairo_move_to(cr, 10.0f, 109.0f - (float)l[op][3]); da = 0.0f; for (i = 0; i < 4; i++) { da += d[op][i]; cairo_line_to(cr, 10.0f + da * xrange / td, 109.0f - (float)l[op][i]); } cairo_stroke(cr); } cairo_set_source_rgb(cr, 0, 0, 0); cairo_set_line_width(cr, 1); cairo_set_dash(cr, NULL, 0, 0.0); cairo_move_to(cr, 10.0f, 109.0f - (float)l[thisop][3]); da = 0.0f; for (i = 0; i < 4; i++) { da += d[thisop][i]; cairo_line_to(cr, 10.0f + da * xrange / td, 109.0f - (float)l[thisop][i]); } cairo_stroke(cr); cairo_set_source_rgb(cr, 0, 0, 0); cairo_set_line_width(cr, 1); da = 0.0f; i = 0; while (da <= xrange) { cairo_move_to(cr, 10.5f + floorf(da), 110.0f); cairo_line_to(cr, 10.5f + floorf(da), (i % 5 == 0) ? 115.0f : 112.0f); cairo_stroke(cr); //da += floorf(xrange / td); da += xrange / td; i++; } cairo_destroy (cr); return FALSE; } /* ==== level scaling ==== */ static gboolean scaling_expose(GtkWidget *widget, GdkEventExpose *event, gpointer data) { int op = GPOINTER_TO_INT(data); int ol = patch_edit_get_edit_parameter(16 + (5 - op) * 21); int l_curve = patch_edit_get_edit_parameter(11 + (5 - op) * 21); int l_depth = patch_edit_get_edit_parameter( 9 + (5 - op) * 21); int bkpt = patch_edit_get_edit_parameter( 8 + (5 - op) * 21); int r_curve = patch_edit_get_edit_parameter(12 + (5 - op) * 21); int r_depth = patch_edit_get_edit_parameter(10 + (5 - op) * 21); int width, height, i, n; float ppn, xbase, f; cairo_t *cr = gdk_cairo_create (widget->window); /* GUIDB_MESSAGE(DB_GUI, " ge scaling_expose called\n"); */ width = widget->allocation.width; height = widget->allocation.height; gtk_paint_box(widget->style, widget->window, GTK_STATE_NORMAL, GTK_SHADOW_IN, &event->area, widget, NULL, 0, 0, width, height); width -= 2 * widget->style->xthickness; height -= 2 * widget->style->ythickness; gdk_cairo_rectangle (cr, &event->area); cairo_clip(cr); cairo_translate(cr, widget->style->xthickness, widget->style->ythickness); cairo_rectangle(cr, 0, 0, width, height); cairo_clip(cr); cairo_set_source_rgb(cr, 1.0, 1.0, 1.0); cairo_paint(cr); ppn = floorf((float)(width - 20) / 128.0f); /* horizontal pixels per note */ xbase = (float)(width / 2) - ppn * 64.0f + 0.5f; cairo_set_source_rgb(cr, 0, 0, 0); cairo_set_line_width(cr, 1.0); /* place ticks on axes */ cairo_move_to(cr, xbase - 4.5f, 10.5f); cairo_line_to(cr, xbase - 0.5f, 10.5f); cairo_stroke(cr); cairo_move_to(cr, xbase - 4.5f, 109.5f); cairo_line_to(cr, xbase - 0.5f, 109.5f); cairo_stroke(cr); cairo_move_to(cr, xbase, 110.0f); cairo_line_to(cr, xbase, 114.0f); cairo_stroke(cr); cairo_move_to(cr, xbase + ppn * 60.0f, 110.0f); /* Middle C */ cairo_line_to(cr, xbase + ppn * 60.0f, 114.0f); cairo_stroke(cr); f = xbase + ppn * 127.0f; cairo_move_to(cr, f + 0.5f, 10.5f); cairo_line_to(cr, f + 4.5f, 10.5f); cairo_stroke(cr); cairo_move_to(cr, f + 0.5f, 109.5f); cairo_line_to(cr, f + 4.5f, 109.5f); cairo_stroke(cr); cairo_move_to(cr, f, 110.0f); cairo_line_to(cr, f, 114.0f); cairo_stroke(cr); cairo_move_to(cr, xbase + (float)(bkpt + 21) * ppn, 104.0f - (float)ol); cairo_line_to(cr, xbase + (float)(bkpt + 21) * ppn, 114.0f - (float)ol); cairo_stroke(cr); for (i = 0; i < 128; i++) { int scaled_output_level = ol; if (i < bkpt + 21 && l_depth) { /* On the original DX7/TX7, keyboard level scaling calculations * group the keyboard into groups of three keys. This can be quite * noticeable on patches with extreme scaling depths, so I've tried * to replicate it here (the steps between levels may not occur at * exactly the keys). If you'd prefer smother scaling, define * SMOOTH_KEYBOARD_LEVEL_SCALING. */ #ifndef SMOOTH_KEYBOARD_LEVEL_SCALING n = bkpt - (((i + 2) / 3) * 3) + 21; #else n = bkpt - i + 21; #endif switch(l_curve) { case 0: /* -LIN */ scaled_output_level -= (int)((float)n / 45.0f * (float)l_depth); break; case 1: /* -EXP */ scaled_output_level -= (int)(expf((float)(n - 72) / 13.5f) * (float)l_depth); break; case 2: /* +EXP */ scaled_output_level += (int)(expf((float)(n - 72) / 13.5f) * (float)l_depth); break; case 3: /* +LIN */ scaled_output_level += (int)((float)n / 45.0f * (float)l_depth); break; } if (scaled_output_level < 0) scaled_output_level = 0; if (scaled_output_level > 99) scaled_output_level = 99; } else if (i > bkpt + 21 && r_depth) { #ifndef SMOOTH_KEYBOARD_LEVEL_SCALING n = (((i + 2) / 3) * 3) - bkpt - 21; #else n = i - bkpt - 21; #endif switch(r_curve) { case 0: /* -LIN */ scaled_output_level -= (int)((float)n / 45.0f * (float)r_depth); break; case 1: /* -EXP */ scaled_output_level -= (int)(exp((float)(n - 72) / 13.5f) * (float)r_depth); break; case 2: /* +EXP */ scaled_output_level += (int)(exp((float)(n - 72) / 13.5f) * (float)r_depth); break; case 3: /* +LIN */ scaled_output_level += (int)((float)n / 45.0f * (float)r_depth); break; } if (scaled_output_level < 0) scaled_output_level = 0; if (scaled_output_level > 99) scaled_output_level = 99; } if (i == 0) cairo_move_to(cr, xbase + (float)i * ppn, 109.5f - (float)scaled_output_level); else cairo_line_to(cr, xbase + (float)i * ppn, 109.5f - (float)scaled_output_level); } cairo_stroke(cr); cairo_destroy (cr); return FALSE; } /* ==== pitch envelope ==== */ static gboolean pitch_expose(GtkWidget *widget, GdkEventExpose *event, gpointer data) { int i, r[4], width, height; float l[4], td, d[4], xrange, da; cairo_t *cr = gdk_cairo_create (widget->window); /* GUIDB_MESSAGE(DB_GUI, " ge pitch_expose called\n"); */ for (i = 0; i < 4; i++) { r[i] = patch_edit_get_edit_parameter(126 + i); l[i] = (float)dx7_voice_pitch_level_to_shift[patch_edit_get_edit_parameter(130 + i)]; } td = 0.0f; for (i = 0; i < 4; i++) { int i0 = (i - 1) & 3; /* -FIX- This is just a quick approximation that I derived from * regression of Godric Wilkie's pitch eg timings. In particular, * it's not accurate for very slow envelopes. */ d[i] = expf(((float)r[i] - 70.337897f) / -25.580953f) * fabsf((l[i] - l[i0]) / 96.0f); if (d[i] < 2.083e-5f) d[i] = 2.083e-5f; td += d[i]; } width = widget->allocation.width; height = widget->allocation.height; gtk_paint_box(widget->style, widget->window, GTK_STATE_NORMAL, GTK_SHADOW_IN, &event->area, widget, NULL, 0, 0, width, height); width -= 2 * widget->style->xthickness; height -= 2 * widget->style->ythickness; gdk_cairo_rectangle (cr, &event->area); cairo_clip(cr); cairo_translate(cr, widget->style->xthickness, widget->style->ythickness); cairo_rectangle(cr, 0, 0, width, height); cairo_clip(cr); cairo_set_source_rgb(cr, 1.0, 1.0, 1.0); cairo_paint(cr); xrange = (float)width - 20.0f; cairo_set_source_rgb(cr, 0, 0, 0); cairo_set_line_width(cr, 1); cairo_move_to(cr, 5.0f, 10.5f); cairo_line_to(cr, 9.0f, 10.5f); cairo_stroke(cr); cairo_move_to(cr, 5.0f, 58.5f); cairo_line_to(cr, 9.0f, 58.5f); cairo_stroke(cr); cairo_move_to(cr, 5.0f, 106.5f); cairo_line_to(cr, 9.0f, 106.5f); cairo_stroke(cr); cairo_move_to(cr, xrange + 11.0f, 10.5f); cairo_line_to(cr, xrange + 15.0f, 10.5f); cairo_stroke(cr); cairo_move_to(cr, xrange + 11.0f, 58.5f); cairo_line_to(cr, xrange + 15.0f, 58.5f); cairo_stroke(cr); cairo_move_to(cr, xrange + 11.0f, 106.5f); cairo_line_to(cr, xrange + 15.0f, 106.5f); cairo_stroke(cr); cairo_move_to(cr, 10.0f, 58.5f - l[3]); da = 0.0f; for (i = 0; i < 4; i++) { da += d[i]; cairo_line_to(cr, 10.0f + da * xrange / td, 58.5f - l[i]); } cairo_stroke(cr); da = 0.0f; i = 0; while (da <= xrange) { cairo_move_to(cr, 10.5f + da, 107.0f); cairo_line_to(cr, 10.5f + da, (i % 5 == 0) ? 112.0f : 109.0f); cairo_stroke(cr); da += floorf(xrange / td); i++; } cairo_destroy (cr); return FALSE; } /* ==== shadow adjustments ==== */ /* The adjustments in edit_adj[] represent the actual value in the edit buffer, yet * some parameters need to be displayed as a different range. For example: * Algorithm, which is 0 to 31 in edit_adj[], but the spinbutton needs to show 1 to 32 * Detune, which is 0 to 14 in edit_adj[], but the spinbutton needs to show -7 to +7 * Transpose, which is 0 to 48 in edit_adj[], but the spinbutton needs to show -24 to +24 * So we use a 'shadow' adjustment with the translated range (e.g. -7 to 7), that is * connected directly to the spinbutton, and link it to the 'real' adjustment having the * zero-based (e.g. 0 to 14) range. * * The shadow adjustment and its bias are stored as key-value pairs attached to the real * adjustment using g_object_set_data(). */ static void on_shadow_adj_changed(GtkAdjustment *shadow_adj, gpointer data); /* forward */ static void on_real_adj_changed(GtkAdjustment *real_adj, gpointer data) { int offset = GPOINTER_TO_INT(data); GtkAdjustment *shadow_adj = g_object_get_data(G_OBJECT(real_adj), "shadow_adjustment"); int bias = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(real_adj), "shadow_bias")); /* GUIDB_MESSAGE(DB_GUI, " ge on_real_adj_changed: offset %d now %d\n", offset, (int)real_adj->value); */ /* temporarily block reverse signal, then update shadow adjustment */ g_signal_handlers_block_by_func(G_OBJECT(shadow_adj), on_shadow_adj_changed, GINT_TO_POINTER(offset)); gtk_adjustment_set_value(shadow_adj, real_adj->value + (float)bias); g_signal_handlers_unblock_by_func(G_OBJECT(shadow_adj), on_shadow_adj_changed, GINT_TO_POINTER(offset)); } static void on_shadow_adj_changed(GtkAdjustment *shadow_adj, gpointer data) { int offset = GPOINTER_TO_INT(data); int bias = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(edit_adj[offset]), "shadow_bias")); /* GUIDB_MESSAGE(DB_GUI, " ge on_shadow_adj_changed: offset %d now %d\n", offset, (int)shadow_adj->value); */ /* temporarily block reverse signal, then update the real adjustment */ g_signal_handlers_block_by_func(G_OBJECT(edit_adj[offset]), on_real_adj_changed, GINT_TO_POINTER(offset)); gtk_adjustment_set_value(GTK_ADJUSTMENT(edit_adj[offset]), shadow_adj->value - (float)bias); g_signal_handlers_unblock_by_func(G_OBJECT(edit_adj[offset]), on_real_adj_changed, GINT_TO_POINTER(offset)); } /* ==== spin buttons ==== */ static void on_alg_changed(GtkAdjustment *adj, gpointer data) { /* int alg = (int)adj->value; */ /* GUIDB_MESSAGE(DB_GUI, " ge on_alg_changed: now %d\n", alg); */ gtk_widget_queue_draw (we_alg_drawing_area); } static void on_env_changed(GtkAdjustment *adj, gpointer data) { int offset = GPOINTER_TO_INT(data); int op = 5 - (offset / 21); /* 0 to 5, or -1 for pitch envelope */ if (op >= 0) { gtk_widget_queue_draw (env_drawing_area[op]); } else { gtk_widget_queue_draw (pitch_drawing_area); } } static void we_update_freq(int op) { unsigned long fc, ff, f; char *units; char ca[10], cb[10]; fc = patch_edit_get_edit_parameter(123 - op * 21); ff = patch_edit_get_edit_parameter(124 - op * 21); if (patch_edit_get_edit_parameter(122 - op * 21)) { /* fixed */ f = peFFF[ff]; switch (fc & 3) { case 1: f *= 10; break; case 2: f *= 100; break; case 3: f *= 1000; break; } units = " Hz"; } else { f = fc * 10; if (!f) f = 5; f = (100 + ff) * f; units = ""; } f = snprintf(ca, 10, "%ld", f); switch (f) { case 3: snprintf(cb, 10, "0.%.3s%s", ca, units); break; case 4: snprintf(cb, 10, "%.1s.%.3s%s", ca, ca + 1, units); break; case 5: snprintf(cb, 10, "%.2s.%.2s%s", ca, ca + 2, units); break; case 6: snprintf(cb, 10, "%.3s.%.1s%s", ca, ca + 3, units); break; case 7: snprintf(cb, 10, "%.4s.%s", ca, units); break; } gtk_label_set_text(GTK_LABEL(freq_label[op]), cb); } static void on_freq_changed(GtkAdjustment *adj, gpointer data) { /* float value = adj->value; -- for FC or FF */ /* int mode = (int)adj->value; -- for mode */ int offset = GPOINTER_TO_INT(data); int op = 5 - ((offset - 17) / 21); /* 0 to 5 */ /* GUIDB_MESSAGE(DB_GUI, " ge on_freq_changed: offset %d, operator %d\n", offset, op); */ we_update_freq(op); } static void on_bkpt_changed(GtkAdjustment *adj, gpointer data) { int bkpt = (int)adj->value; int offset = GPOINTER_TO_INT(data); int op = 5 - ((offset - 8) / 21); /* 0 to 5 */ /* GUIDB_MESSAGE(DB_GUI, " ge on_bkpt_changed: op %d breakpoint now %d\n", op, bkpt); */ gtk_label_set_text(GTK_LABEL(bkpt_label[op]), patch_edit_NoteText(bkpt + 21)); gtk_widget_queue_draw (scaling_drawing_area[op]); } static void on_scaling_changed(GtkAdjustment *adj, gpointer data) { int offset = GPOINTER_TO_INT(data); int op = 5 - (offset / 21); /* 0 to 5 */ gtk_widget_queue_draw (scaling_drawing_area[op]); } static void place_spin(GtkObject *adj, GtkWidget *table, int x, int y) { GtkWidget *spin = gtk_spin_button_new (GTK_ADJUSTMENT (adj), 2, 0); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spin), TRUE); gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (spin), GTK_UPDATE_IF_VALID); gtk_table_attach (GTK_TABLE (table), spin, x, x + 1, y, y + 1, (GtkAttachOptions) (0), (GtkAttachOptions) (0), 0, 0); } /* ==== switches ==== */ static void update_switch_label_text(GtkToggleButton *t) { int type = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(t), "parameter_type")); GtkWidget *label = gtk_bin_get_child(GTK_BIN(t)); gboolean state = gtk_toggle_button_get_active(t); switch (type) { case PEPT_Mode: gtk_label_set_text(GTK_LABEL(label), state ? "Fixed" : "Ratio"); break; case PEPT_OnOff: gtk_label_set_text(GTK_LABEL(label), state ? "On" : "Off"); break; case GEPT_Mute: gtk_label_set_text(GTK_LABEL(label), state ? "M" : "M"); if (state) gtk_label_set_use_markup(GTK_LABEL(label), TRUE); break; } } static void on_switch_changed(GtkToggleButton *togglebutton, gpointer user_data); /* forward */ static void on_switch_adjustment_changed(GtkAdjustment *adj, gpointer data) { GtkToggleButton *togglebutton = GTK_TOGGLE_BUTTON(data); /* GUIDB_MESSAGE(DB_GUI, " ge on_switch_adjustment_changed %p %p %d\n", adj, data, (int)adj->value); */ /* temporarily block reverse signal, then set the togglebutton state */ g_signal_handlers_block_by_func(G_OBJECT(togglebutton), on_switch_changed, (gpointer)adj); gtk_toggle_button_set_active(togglebutton, (adj->value > 1e-20f)); g_signal_handlers_unblock_by_func(G_OBJECT(togglebutton), on_switch_changed, (gpointer)adj); update_switch_label_text(togglebutton); } static void on_switch_changed(GtkToggleButton *togglebutton, gpointer user_data) { GtkAdjustment *adj = GTK_ADJUSTMENT(user_data); gboolean state = gtk_toggle_button_get_active(togglebutton); /* GUIDB_MESSAGE(DB_GUI, " ge on_switch_changed %p %p %d\n", togglebutton, user_data, state); */ update_switch_label_text(togglebutton); /* temporarily block reverse signal, then update the adjustment */ g_signal_handlers_block_by_func(G_OBJECT(adj), on_switch_adjustment_changed, (gpointer)togglebutton); gtk_adjustment_set_value(adj, state ? 1.0 : 0.0); g_signal_handlers_unblock_by_func(G_OBJECT(adj), on_switch_adjustment_changed, (gpointer)togglebutton); } static void place_switch(GtkObject *adj, GtkWidget *table, int x, int y, int type) { GtkWidget *w = gtk_toggle_button_new_with_label ("-"); g_object_set_data(G_OBJECT(w), "parameter_type", GINT_TO_POINTER(type)); gtk_table_attach (GTK_TABLE (table), w, x, x + 1, y, y + 1, (GtkAttachOptions) (0), (GtkAttachOptions) (0), 0, 0); if (type == GEPT_Mute) { /* -FIX- set mute buttons insensitive until hexter supports muting */ gtk_widget_set_sensitive(w, FALSE); update_switch_label_text((GtkToggleButton *)w); } g_signal_connect(G_OBJECT(adj), "value-changed", G_CALLBACK(on_switch_adjustment_changed), w); g_signal_connect(G_OBJECT(w), "toggled", G_CALLBACK(on_switch_changed), (gpointer)adj); } /* ==== combo boxes ==== */ static void on_combo_changed(GtkComboBox *widget, gpointer user_data); /* forward */ static void on_combo_adjustment_changed(GtkAdjustment *adjustment, gpointer user_data) { GtkComboBox *w = GTK_COMBO_BOX(user_data); /* GUIDB_MESSAGE(DB_GUI, " ge on_combo_adjustment_changed %p %p\n", adjustment, user_data); */ /* temporarily block reverse signal, then set combobox active item */ g_signal_handlers_block_by_func(G_OBJECT(w), on_combo_changed, (gpointer)adjustment); gtk_combo_box_set_active(w, gtk_adjustment_get_value(adjustment)); g_signal_handlers_unblock_by_func(G_OBJECT(w), on_combo_changed, (gpointer)adjustment); } static void on_combo_changed(GtkComboBox *widget, gpointer user_data) { GtkAdjustment *adj = GTK_ADJUSTMENT(user_data); /* GUIDB_MESSAGE(DB_GUI, " ge on_combo_changed %p %p\n", widget, user_data); */ /* temporarily block reverse signal, then update adjustment */ g_signal_handlers_block_by_func(G_OBJECT(adj), on_combo_adjustment_changed, (gpointer)widget); gtk_adjustment_set_value(adj, gtk_combo_box_get_active(widget)); g_signal_handlers_unblock_by_func(G_OBJECT(adj), on_combo_adjustment_changed, (gpointer)widget); } static void place_combo(GtkObject *adj, GtkWidget *table, int x, int y, int type) { const char **labels; int i; /* -FIX- this is kinda ugly */ switch (type) { default: case PEPT_LFOWave: labels = (const char *[]){ "Tri", "Saw+", "Saw-", "Square", "Sine", "S/H", NULL }; break; case PEPT_Curve: labels = (const char *[]){ "-Lin", "-Exp", "+Exp", "+Lin", NULL }; break; } GtkWidget *w = gtk_combo_box_new_text(); for (i = 0; labels[i]; i++) gtk_combo_box_append_text(GTK_COMBO_BOX(w), labels[i]); gtk_combo_box_set_active((GtkComboBox *)w, 0); gtk_table_attach (GTK_TABLE (table), w, x, x + 1, y, y + 1, (GtkAttachOptions) (0), (GtkAttachOptions) (0), 0, 0); g_signal_connect(G_OBJECT(adj), "value-changed", G_CALLBACK(on_combo_adjustment_changed), w); g_signal_connect(G_OBJECT(w), "changed", G_CALLBACK(on_combo_changed), (gpointer)adj); } /* ==== widgy editor instantiation ==== */ static void place_widget(int type, int tab, int x, int y, int offset) { switch (type) { case PEPT_0_99: case PEPT_0_7: case PEPT_0_3: place_spin(edit_adj[offset], tables[tab], x, y); break; case PEPT_Env: place_spin(edit_adj[offset], tables[tab], x, y); g_signal_connect (G_OBJECT(edit_adj[offset]), "value-changed", G_CALLBACK (on_env_changed), GINT_TO_POINTER(offset)); break; case PEPT_FC: case PEPT_FF: place_spin(edit_adj[offset], tables[tab], x, y); g_signal_connect (G_OBJECT(edit_adj[offset]), "value-changed", G_CALLBACK (on_freq_changed), GINT_TO_POINTER(offset)); break; case PEPT_Mode: place_switch(edit_adj[offset], tables[tab], x, y, PEPT_Mode); g_signal_connect (G_OBJECT(edit_adj[offset]), "value-changed", G_CALLBACK (on_freq_changed), GINT_TO_POINTER(offset)); break; case PEPT_Alg: /* 0 to 31, algorithm, as 1 to 32 */ case PEPT_Detune: /* 0 to 14, detune, as -7 to +7 */ case PEPT_Trans: /* 0 to 48, transpose, as -24 to +24 */ { int range, bias; GtkObject *shadow_adj; /* the 'shadow' adjustment, directly connected to spinbutton */ void (*callback)(GtkAdjustment *, gpointer); switch (type) { default: case PEPT_Alg: range = 31; bias = 1; callback = on_alg_changed; break; case PEPT_Detune: range = 14; bias = -7; callback = NULL; break; case PEPT_Trans: range = 48; bias = -24; callback = NULL; break; } shadow_adj = gtk_adjustment_new(bias, bias, range + bias, 1, (range > 10) ? 10 : 1, 0); place_spin(shadow_adj, tables[tab], x, y); g_signal_connect (G_OBJECT(shadow_adj), "value-changed", G_CALLBACK (on_shadow_adj_changed), GINT_TO_POINTER(offset)); /* edit_adj[offset] is the 'real' adjustment */ g_object_set_data(G_OBJECT(edit_adj[offset]), "shadow_adjustment", (gpointer)shadow_adj); g_object_set_data(G_OBJECT(edit_adj[offset]), "shadow_bias", GINT_TO_POINTER(bias)); if (callback != NULL) g_signal_connect (G_OBJECT(edit_adj[offset]), "value-changed", G_CALLBACK(callback), GINT_TO_POINTER(offset)); g_signal_connect (G_OBJECT(edit_adj[offset]), "value-changed", G_CALLBACK (on_real_adj_changed), GINT_TO_POINTER(offset)); } break; case PEPT_BkPt: place_spin(edit_adj[offset], tables[tab], x, y); g_signal_connect (G_OBJECT(edit_adj[offset]), "value-changed", G_CALLBACK (on_bkpt_changed), GINT_TO_POINTER(offset)); break; case PEPT_Scal99: place_spin(edit_adj[offset], tables[tab], x, y); g_signal_connect (G_OBJECT(edit_adj[offset]), "value-changed", G_CALLBACK (on_scaling_changed), GINT_TO_POINTER(offset)); break; case PEPT_OnOff: place_switch(edit_adj[offset], tables[tab], x, y, PEPT_OnOff); break; case PEPT_LFOWave: place_combo(edit_adj[offset], tables[tab], x, y, PEPT_LFOWave); break; case PEPT_Curve: place_combo(edit_adj[offset], tables[tab], x, y, PEPT_Curve); g_signal_connect (G_OBJECT(edit_adj[offset]), "value-changed", G_CALLBACK (on_scaling_changed), GINT_TO_POINTER(offset)); break; } } GtkWidget * create_widgy_editor(const char *tag) { GtkWidget *hbox; GtkWidget *notebook; GtkWidget *table; GtkWidget *label; int i, x, y; /* create notebook and tabs */ hbox = gtk_hbox_new(FALSE, 0); table = gtk_table_new (1, 1, FALSE); gtk_container_set_border_width(GTK_CONTAINER(table), 4); tables[TABLE_OUTPUT] = table; gtk_box_pack_start(GTK_BOX(hbox), table, FALSE, FALSE, 0); notebook = gtk_notebook_new (); gtk_box_pack_start(GTK_BOX(hbox), notebook, TRUE, TRUE, 0); for (i = TABLE_OUTPUT + 1; i < TABLE_COUNT; i++) { table = gtk_table_new (1, 1, FALSE); gtk_container_set_border_width(GTK_CONTAINER(table), 4); gtk_container_add (GTK_CONTAINER (notebook), table); tables[i] = table; label = gtk_label_new (tabs[i]); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), i - 1), label); } /* place labels */ for (i = 0; labels[i].tab >= 0; i++) { label = gtk_label_new(labels[i].text); /* if (strlen(labels[i].text) > 1) * gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5); -FIX- */ x = labels[i].x; y = labels[i].y; gtk_table_attach (GTK_TABLE (tables[(int)labels[i].tab]), label, x, x + labels[i].width, y, y + 1, (GtkAttachOptions) (0), (GtkAttachOptions) (0), 0, 0); } for (i = 0; op_labels[i].x >= 0; i++) { int op; for (op = 0; op < 6; op++) { label = gtk_label_new(op_labels[i].text); x = op_labels[i].x; y = op_labels[i].y; gtk_table_attach (GTK_TABLE (tables[TABLE_OP1 + op]), label, x, x + op_labels[i].width, y, y + 1, (GtkAttachOptions) (0), (GtkAttachOptions) (0), 0, 0); } } /* place widgets */ for (i = 0; parameters[i].type >= 0; i++) { place_widget(parameters[i].type, parameters[i].tab, parameters[i].x, parameters[i].y, parameters[i].offset); } for (i = 0; op_parameters[i].type >= 0; i++) { int op; for (op = 0; op < 6; op++) { place_widget(op_parameters[i].type, TABLE_OP1 + op, op_parameters[i].x, op_parameters[i].y, op_parameters[i].offset + (5 - op) * 21); } } #ifdef OP_MUTE_WORKS_IN_PLUGIN /* create mute buttons */ for (i = 0; i < 6; i++) { mute_adj[i] = gtk_adjustment_new(0, 0, 1, 1, 1, 0); place_switch(mute_adj[i], tables[TABLE_OUTPUT], 1, i + 4, GEPT_Mute); } #endif /* OP_MUTE_WORKS_IN_PLUGIN */ /* create breakpoint and frequency labels */ for (i = 0; i < 6; i++) { bkpt_label[i] = gtk_label_new("bkpt"); gtk_table_attach (GTK_TABLE (tables[TABLE_OP1 + i]), bkpt_label[i], 3, 4, 10, 11, (GtkAttachOptions) (0), (GtkAttachOptions) (0), 0, 0); freq_label[i] = gtk_label_new(NULL); gtk_table_attach (GTK_TABLE (tables[TABLE_OP1 + i]), freq_label[i], 0, 1, 1, 2, (GtkAttachOptions) (0), (GtkAttachOptions) (0), 0, 0); } /* create algorithm drawing area */ we_alg_drawing_area_new(); gtk_table_attach (GTK_TABLE (tables[TABLE_OUTPUT]), we_alg_drawing_area, 0, 3, 11, 12, (GtkAttachOptions) (0), (GtkAttachOptions) (0), 5, 5); g_signal_connect(G_OBJECT(we_alg_drawing_area), "expose-event", G_CALLBACK(alg_expose), NULL); /* create envelope and scaling drawing areas */ for (i = 0; i < 6; i++) { env_drawing_area[i] = gtk_drawing_area_new(); gtk_widget_set_size_request(env_drawing_area[i], 220 + env_drawing_area[i]->style->xthickness * 2, 120 + env_drawing_area[i]->style->ythickness * 2); gtk_table_attach (GTK_TABLE (tables[TABLE_OP1 + i]), env_drawing_area[i], 0, 7, 6, 7, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (0), 0, 5); g_signal_connect(G_OBJECT(env_drawing_area[i]), "expose-event", G_CALLBACK(env_expose), GINT_TO_POINTER(i)); scaling_drawing_area[i] = gtk_drawing_area_new(); gtk_widget_set_size_request(scaling_drawing_area[i], 276 + scaling_drawing_area[i]->style->xthickness * 2, 120 + scaling_drawing_area[i]->style->ythickness * 2); gtk_table_attach (GTK_TABLE (tables[TABLE_OP1 + i]), scaling_drawing_area[i], 0, 7, 11, 12, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (0), 0, 5); g_signal_connect(G_OBJECT(scaling_drawing_area[i]), "expose-event", G_CALLBACK(scaling_expose), GINT_TO_POINTER(i)); } pitch_drawing_area = gtk_drawing_area_new(); gtk_widget_set_size_request(pitch_drawing_area, 220 + pitch_drawing_area->style->xthickness * 2, 116 + pitch_drawing_area->style->ythickness * 2); gtk_table_attach (GTK_TABLE (tables[TABLE_GLOBAL]), pitch_drawing_area, 0, 6, 12, 13, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (0), 0, 5); g_signal_connect(G_OBJECT(pitch_drawing_area), "expose-event", G_CALLBACK(pitch_expose), NULL); gtk_widget_show_all(hbox); widgy_widget = hbox; return widgy_widget; } hexter-version_1.1.0/src/hexter.c000066400000000000000000000475501325353653200170310ustar00rootroot00000000000000/* hexter DSSI software synthesizer plugin * * Copyright (C) 2004, 2009, 2011, 2012, 2014, 2018 Sean Bolton and others. * * Portions of this file may have come from Peter Hanappe's * Fluidsynth, copyright (C) 2003 Peter Hanappe and others. * Portions of this file may have come from Chris Cannam and Steve * Harris's public domain DSSI example code. * * 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. */ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include "hexter_types.h" #include "hexter.h" #include "hexter_synth.h" #include "dx7_voice.h" #include "dx7_voice_data.h" static LADSPA_Descriptor *hexter_LADSPA_descriptor = NULL; static DSSI_Descriptor *hexter_DSSI_descriptor = NULL; static void hexter_cleanup(LADSPA_Handle instance); static void hexter_run_synth(LADSPA_Handle instance, unsigned long sample_count, snd_seq_event_t *events, unsigned long event_count); /* ---- mutual exclusion ---- */ static inline int dssp_voicelist_mutex_trylock(hexter_instance_t *instance) { int rc; /* Attempt the mutex lock */ rc = pthread_mutex_trylock(&instance->voicelist_mutex); if (rc) { instance->voicelist_mutex_grab_failed = 1; return rc; } /* Clean up if a previous mutex grab failed */ if (instance->voicelist_mutex_grab_failed) { hexter_instance_all_voices_off(instance); instance->voicelist_mutex_grab_failed = 0; } return 0; } inline int dssp_voicelist_mutex_lock(hexter_instance_t *instance) { return pthread_mutex_lock(&instance->voicelist_mutex); } inline int dssp_voicelist_mutex_unlock(hexter_instance_t *instance) { return pthread_mutex_unlock(&instance->voicelist_mutex); } /* ---- LADSPA interface ---- */ /* * hexter_instantiate * * implements LADSPA (*instantiate)() */ static LADSPA_Handle hexter_instantiate(const LADSPA_Descriptor *descriptor, unsigned long sample_rate) { hexter_instance_t *instance; int i; instance = (hexter_instance_t *)calloc(1, sizeof(hexter_instance_t)); if (!instance) { return NULL; } /* do any per-instance one-time initialization here */ for (i = 0; i < HEXTER_MAX_POLYPHONY; i++) { instance->voice[i] = dx7_voice_new(); if (!instance->voice[i]) { DEBUG_MESSAGE(-1, " hexter_instantiate: out of memory!\n"); hexter_cleanup(instance); return NULL; } } if (!(instance->patches = (dx7_patch_t *)malloc(128 * DX7_VOICE_SIZE_PACKED))) { DEBUG_MESSAGE(-1, " hexter_instantiate: out of memory!\n"); hexter_cleanup(instance); return NULL; } instance->sample_rate = (float)sample_rate; instance->nugget_remains = 0; dx7_eg_init_constants(instance); /* depends on sample rate */ instance->note_id = 0; instance->polyphony = HEXTER_DEFAULT_POLYPHONY; instance->monophonic = DSSP_MONO_MODE_OFF; instance->max_voices = instance->polyphony; instance->current_voices = 0; instance->last_key = 0; pthread_mutex_init(&instance->voicelist_mutex, NULL); instance->voicelist_mutex_grab_failed = 0; pthread_mutex_init(&instance->patches_mutex, NULL); instance->pending_program_change = -1; instance->current_program = 0; instance->overlay_program = -1; hexter_data_performance_init(instance->performance_buffer); hexter_data_patches_init(instance->patches); hexter_instance_select_program(instance, 0, 0); hexter_instance_init_controls(instance); return (LADSPA_Handle)instance; } /* * hexter_connect_port * * implements LADSPA (*connect_port)() */ static void hexter_connect_port(LADSPA_Handle handle, unsigned long port, LADSPA_Data *data) { hexter_instance_t *instance = (hexter_instance_t *)handle; switch (port) { case HEXTER_PORT_OUTPUT: instance->output = data; break; case HEXTER_PORT_TUNING: instance->tuning = data; break; case HEXTER_PORT_VOLUME: instance->volume = data; break; default: break; } } /* * hexter_activate * * implements LADSPA (*activate)() */ static void hexter_activate(LADSPA_Handle handle) { hexter_instance_t *instance = (hexter_instance_t *)handle; hexter_instance_all_voices_off(instance); /* stop all sounds immediately */ instance->current_voices = 0; dx7_lfo_reset(instance); } /* * hexter_ladspa_run */ static void hexter_ladspa_run(LADSPA_Handle instance, unsigned long sample_count) { hexter_run_synth(instance, sample_count, NULL, 0); } // optional: // void (*run_adding)(LADSPA_Handle Instance, // unsigned long SampleCount); // void (*set_run_adding_gain)(LADSPA_Handle Instance, // LADSPA_Data Gain); /* * hexter_deactivate * * implements LADSPA (*deactivate)() */ void hexter_deactivate(LADSPA_Handle handle) { hexter_instance_t *instance = (hexter_instance_t *)handle; hexter_instance_all_voices_off(instance); /* stop all sounds immediately */ } /* * hexter_cleanup * * implements LADSPA (*cleanup)() */ static void hexter_cleanup(LADSPA_Handle handle) { hexter_instance_t *instance = (hexter_instance_t *)handle; int i; if (instance) { hexter_deactivate(instance); if (instance->patches) free(instance->patches); for (i = 0; i < HEXTER_MAX_POLYPHONY; i++) { if (instance->voice[i]) { free(instance->voice[i]); instance->voice[i] = NULL; } } free(instance); } } /* ---- DSSI interface ---- */ /* * hexter_configure * * implements DSSI (*configure)() */ char * hexter_configure(LADSPA_Handle handle, const char *key, const char *value) { hexter_instance_t *instance = (hexter_instance_t *)handle; DEBUG_MESSAGE(DB_DSSI, " hexter_configure called with '%s' and '%s'\n", key, value); if (strlen(key) == 8 && !strncmp(key, "patches", 7)) { return hexter_instance_handle_patches(instance, key, value); } else if (!strcmp(key, "edit_buffer")) { return hexter_instance_handle_edit_buffer(instance, value); } else if (!strcmp(key, "performance")) { /* global performance parameters */ return hexter_instance_handle_performance(instance, value); } else if (!strcmp(key, "monophonic")) { return hexter_instance_handle_monophonic(instance, value); } else if (!strcmp(key, "polyphony")) { return hexter_instance_handle_polyphony(instance, value); #ifdef DSSI_GLOBAL_CONFIGURE_PREFIX } else if (!strcmp(key, DSSI_GLOBAL_CONFIGURE_PREFIX "polyphony")) { #else } else if (!strcmp(key, "global_polyphony")) { #endif DEBUG_MESSAGE(DB_DSSI, " -- global polyphony limiting is no longer supported --\n"); #ifdef DSSI_PROJECT_DIRECTORY_KEY } else if (!strcmp(key, DSSI_PROJECT_DIRECTORY_KEY)) { return NULL; /* plugin has no use for project directory key, ignore it */ #endif } return strdup("error: unrecognized configure key"); } /* * hexter_get_program * * implements DSSI (*get_program)() */ const DSSI_Program_Descriptor * hexter_get_program(LADSPA_Handle handle, unsigned long index) { hexter_instance_t *instance = (hexter_instance_t *)handle; static DSSI_Program_Descriptor pd; DEBUG_MESSAGE(DB_DSSI, " hexter_get_program called with %lu\n", index); if (index < 128) { hexter_instance_set_program_descriptor(instance, &pd, 0, index); return &pd; } return NULL; } /* * hexter_select_program * * implements DSSI (*select_program)() */ void hexter_select_program(LADSPA_Handle handle, unsigned long bank, unsigned long program) { hexter_instance_t *instance = (hexter_instance_t *)handle; DEBUG_MESSAGE(DB_DSSI, " hexter_select_program called with %lu and %lu\n", bank, program); /* ignore invalid program requests */ if (bank || program >= 128) return; /* Attempt the patch mutex, return if lock fails. */ if (pthread_mutex_trylock(&instance->patches_mutex)) { instance->pending_program_change = program; return; } hexter_instance_select_program((hexter_instance_t *)instance, bank, program); pthread_mutex_unlock(&instance->patches_mutex); } /* * hexter_handle_pending_program_change */ static inline void hexter_handle_pending_program_change(hexter_instance_t *instance) { /* Attempt the patch mutex, return if lock fails. */ if (pthread_mutex_trylock(&instance->patches_mutex)) return; hexter_instance_select_program((hexter_instance_t *)instance, 0, instance->pending_program_change); instance->pending_program_change = -1; pthread_mutex_unlock(&instance->patches_mutex); } /* * hexter_get_midi_controller * * implements DSSI (*get_midi_controller_for_port)() */ int hexter_get_midi_controller(LADSPA_Handle handle, unsigned long port) { DEBUG_MESSAGE(DB_DSSI, " hexter_get_midi_controller called for port %lu\n", port); switch (port) { // case EXAMPLE_PORT_VOLUME: // return DSSI_CC(7); default: break; } return DSSI_NONE; } /* * hexter_handle_event */ static inline void hexter_handle_event(hexter_instance_t *instance, snd_seq_event_t *event) { DEBUG_MESSAGE(DB_DSSI, " hexter_handle_event called with event type %d\n", event->type); switch (event->type) { case SND_SEQ_EVENT_NOTEOFF: hexter_instance_note_off(instance, event->data.note.note, event->data.note.velocity); break; case SND_SEQ_EVENT_NOTEON: if (event->data.note.velocity > 0) hexter_instance_note_on(instance, event->data.note.note, event->data.note.velocity); else hexter_instance_note_off(instance, event->data.note.note, 64); /* shouldn't happen, but... */ break; case SND_SEQ_EVENT_KEYPRESS: hexter_instance_key_pressure(instance, event->data.note.note, event->data.note.velocity); break; case SND_SEQ_EVENT_CONTROLLER: hexter_instance_control_change(instance, event->data.control.param, event->data.control.value); break; case SND_SEQ_EVENT_CHANPRESS: hexter_instance_channel_pressure(instance, event->data.control.value); break; case SND_SEQ_EVENT_PITCHBEND: hexter_instance_pitch_bend(instance, event->data.control.value); break; /* SND_SEQ_EVENT_PGMCHANGE - shouldn't happen */ /* SND_SEQ_EVENT_SYSEX - shouldn't happen */ /* SND_SEQ_EVENT_CONTROL14? */ /* SND_SEQ_EVENT_NONREGPARAM? */ /* SND_SEQ_EVENT_REGPARAM? */ default: break; } } static void hexter_run_synth(LADSPA_Handle handle, unsigned long sample_count, snd_seq_event_t *events, unsigned long event_count) { hexter_instance_t *instance = (hexter_instance_t *)handle; unsigned long samples_done = 0; unsigned long event_index = 0; unsigned long burst_size; /* silence the buffer */ memset(instance->output, 0, sizeof(LADSPA_Data) * sample_count); #if defined(DSSP_DEBUG) && (DSSP_DEBUG & DB_AUDIO) *instance->output += 0.10f; /* add a 'buzz' to output so there's something audible even when quiescent */ #endif /* defined(DSSP_DEBUG) && (DSSP_DEBUG & DB_AUDIO) */ /* attempt the mutex, return only silence if lock fails. */ if (dssp_voicelist_mutex_trylock(instance)) return; if (instance->pending_program_change > -1) hexter_handle_pending_program_change(instance); while (samples_done < sample_count) { if (!instance->nugget_remains) instance->nugget_remains = HEXTER_NUGGET_SIZE; /* process any ready events */ while (event_index < event_count && samples_done == events[event_index].time.tick) { hexter_handle_event(instance, &events[event_index]); event_index++; } /* calculate the sample count (burst_size) for the next * hexter_instance_render_voices() call to be the smallest of: * - control calculation quantization size (HEXTER_NUGGET_SIZE, * in samples) * - the number of samples remaining in an already-begun nugget * (instance->nugget_remains) * - the number of samples until the next event is ready * - the number of samples left in this run */ burst_size = HEXTER_NUGGET_SIZE; if (instance->nugget_remains < burst_size) { /* we're still in the middle of a nugget, so reduce the burst size * to end when the nugget ends */ burst_size = instance->nugget_remains; } if (event_index < event_count && events[event_index].time.tick - samples_done < burst_size) { /* reduce burst size to end when next event is ready */ burst_size = events[event_index].time.tick - samples_done; } if (sample_count - samples_done < burst_size) { /* reduce burst size to end at end of this run */ burst_size = sample_count - samples_done; } /* render the burst */ hexter_instance_render_voices(instance, samples_done, burst_size, (burst_size == instance->nugget_remains)); samples_done += burst_size; instance->nugget_remains -= burst_size; } dssp_voicelist_mutex_unlock(instance); } // optional: // void (*run_synth_adding)(LADSPA_Handle Instance, // unsigned long SampleCount, // snd_seq_event_t *Events, // unsigned long EventCount); // void (*run_multiple_synths)(unsigned long InstanceCount, // LADSPA_Handle **Instances, // unsigned long SampleCount, // snd_seq_event_t **Events, // unsigned long *EventCounts); // void (*run_multiple_synths_adding)(unsigned long InstanceCount, // LADSPA_Handle **Instances, // unsigned long SampleCount, // snd_seq_event_t **Events, // unsigned long *EventCounts); /* ---- export ---- */ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) { switch (index) { case 0: return hexter_LADSPA_descriptor; default: return NULL; } } const DSSI_Descriptor *dssi_descriptor(unsigned long index) { switch (index) { case 0: return hexter_DSSI_descriptor; default: return NULL; } } #ifdef __GNUC__ __attribute__((constructor)) void init() #else void _init() #endif { char **port_names; LADSPA_PortDescriptor *port_descriptors; LADSPA_PortRangeHint *port_range_hints; DSSP_DEBUG_INIT("hexter.so"); dx7_voice_init_tables(); hexter_LADSPA_descriptor = (LADSPA_Descriptor *) malloc(sizeof(LADSPA_Descriptor)); if (hexter_LADSPA_descriptor) { hexter_LADSPA_descriptor->UniqueID = 2183; hexter_LADSPA_descriptor->Label = "hexter"; hexter_LADSPA_descriptor->Properties = 0; hexter_LADSPA_descriptor->Name = "hexter DX7 emulation (v" VERSION ")"; hexter_LADSPA_descriptor->Maker = "Sean Bolton "; hexter_LADSPA_descriptor->Copyright = "GNU General Public License version 2 or later"; hexter_LADSPA_descriptor->PortCount = HEXTER_PORTS_COUNT; port_descriptors = (LADSPA_PortDescriptor *) calloc(hexter_LADSPA_descriptor->PortCount, sizeof (LADSPA_PortDescriptor)); hexter_LADSPA_descriptor->PortDescriptors = (const LADSPA_PortDescriptor *) port_descriptors; port_range_hints = (LADSPA_PortRangeHint *) calloc(hexter_LADSPA_descriptor->PortCount, sizeof (LADSPA_PortRangeHint)); hexter_LADSPA_descriptor->PortRangeHints = (const LADSPA_PortRangeHint *) port_range_hints; port_names = (char **) calloc(hexter_LADSPA_descriptor->PortCount, sizeof(char *)); hexter_LADSPA_descriptor->PortNames = (const char **) port_names; /* Parameters for Output */ port_descriptors[HEXTER_PORT_OUTPUT] = LADSPA_PORT_OUTPUT | LADSPA_PORT_AUDIO; port_names[HEXTER_PORT_OUTPUT] = "Output"; port_range_hints[HEXTER_PORT_OUTPUT].HintDescriptor = 0; /* Parameters for Tuning */ port_descriptors[HEXTER_PORT_TUNING] = LADSPA_PORT_INPUT | LADSPA_PORT_CONTROL; port_names[HEXTER_PORT_TUNING] = "Tuning"; port_range_hints[HEXTER_PORT_TUNING].HintDescriptor = LADSPA_HINT_DEFAULT_440 | LADSPA_HINT_BOUNDED_BELOW | LADSPA_HINT_BOUNDED_ABOVE; port_range_hints[HEXTER_PORT_TUNING].LowerBound = 415.3f; port_range_hints[HEXTER_PORT_TUNING].UpperBound = 466.2f; /* Parameters for Volume */ port_descriptors[HEXTER_PORT_VOLUME] = LADSPA_PORT_INPUT | LADSPA_PORT_CONTROL; port_names[HEXTER_PORT_VOLUME] = "Volume"; port_range_hints[HEXTER_PORT_VOLUME].HintDescriptor = LADSPA_HINT_DEFAULT_0 | LADSPA_HINT_BOUNDED_BELOW | LADSPA_HINT_BOUNDED_ABOVE; port_range_hints[HEXTER_PORT_VOLUME].LowerBound = -70.0f; port_range_hints[HEXTER_PORT_VOLUME].UpperBound = 20.0f; hexter_LADSPA_descriptor->instantiate = hexter_instantiate; hexter_LADSPA_descriptor->connect_port = hexter_connect_port; hexter_LADSPA_descriptor->activate = hexter_activate; hexter_LADSPA_descriptor->run = hexter_ladspa_run; hexter_LADSPA_descriptor->run_adding = NULL; hexter_LADSPA_descriptor->set_run_adding_gain = NULL; hexter_LADSPA_descriptor->deactivate = hexter_deactivate; hexter_LADSPA_descriptor->cleanup = hexter_cleanup; } hexter_DSSI_descriptor = (DSSI_Descriptor *) malloc(sizeof(DSSI_Descriptor)); if (hexter_DSSI_descriptor) { hexter_DSSI_descriptor->DSSI_API_Version = 1; hexter_DSSI_descriptor->LADSPA_Plugin = hexter_LADSPA_descriptor; hexter_DSSI_descriptor->configure = hexter_configure; hexter_DSSI_descriptor->get_program = hexter_get_program; hexter_DSSI_descriptor->select_program = hexter_select_program; hexter_DSSI_descriptor->get_midi_controller_for_port = hexter_get_midi_controller; hexter_DSSI_descriptor->run_synth = hexter_run_synth; hexter_DSSI_descriptor->run_synth_adding = NULL; hexter_DSSI_descriptor->run_multiple_synths = NULL; hexter_DSSI_descriptor->run_multiple_synths_adding = NULL; } } #ifdef __GNUC__ __attribute__((destructor)) void fini() #else void _fini() #endif { if (hexter_LADSPA_descriptor) { free((LADSPA_PortDescriptor *) hexter_LADSPA_descriptor->PortDescriptors); free((char **) hexter_LADSPA_descriptor->PortNames); free((LADSPA_PortRangeHint *) hexter_LADSPA_descriptor->PortRangeHints); free(hexter_LADSPA_descriptor); } if (hexter_DSSI_descriptor) { free(hexter_DSSI_descriptor); } } hexter-version_1.1.0/src/hexter.h000066400000000000000000000057621325353653200170350ustar00rootroot00000000000000/* hexter DSSI software synthesizer plugin * * Copyright (C) 2004, 2009, 2012 Sean Bolton and others. * * Portions of this file may have come from Chris Cannam and Steve * Harris's public domain DSSI example code. * * 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 _HEXTER_H #define _HEXTER_H /* ==== debugging ==== */ /* DSSP_DEBUG bits */ #define DB_DSSI 1 /* DSSI interface */ #define DB_AUDIO 2 /* audio output */ #define DB_NOTE 4 /* note on/off, voice allocation */ #define DB_DATA 8 /* plugin patchbank handling */ #define DB_MAIN 16 /* GUI main program flow */ #define DB_OSC 32 /* GUI OSC handling */ #define DB_IO 64 /* GUI patch file input/output */ #define DB_GUI 128 /* GUI GUI callbacks, updating, etc. */ /* If you want debug information, define DSSP_DEBUG to the DB_* bits you're * interested in getting debug information about, bitwise-ORed together. * Otherwise, leave it undefined. */ // #define DSSP_DEBUG (1+8+16+32+64) #ifdef DSSP_DEBUG #include #define DSSP_DEBUG_INIT(x) #define DEBUG_MESSAGE(type, fmt...) { if (DSSP_DEBUG & type) fprintf(stderr, "hexter.so" fmt); } #define GUIDB_MESSAGE(type, fmt...) { if (DSSP_DEBUG & type) fprintf(stderr, "hexter_gtk" fmt); } #define TUIDB_MESSAGE(type, fmt...) { if (DSSP_DEBUG & type) printf("hexter_text" fmt); } // -FIX-: // #include "message_buffer.h" // #define DSSP_DEBUG_INIT(x) mb_init(x) // #define DEBUG_MESSAGE(type, fmt...) { \- // if (DSSP_DEBUG & type) { \- // char _m[256]; \- // snprintf(_m, 255, fmt); \- // add_message(_m); \- // } \- // } #else /* !DSSP_DEBUG */ #define DEBUG_MESSAGE(type, fmt...) #define GUIDB_MESSAGE(type, fmt...) #define TUIDB_MESSAGE(type, fmt...) #define DSSP_DEBUG_INIT(x) #endif /* DSSP_DEBUG */ /* Define this to enable some non-real-time-safe sanity checks (e.g. envelope * slew limits) within the plugin synthesis code: */ // #define HEXTER_DEBUG_ENGINE /* Define this to enable some non-real-time-safe MIDI controller testing * code: */ // #define HEXTER_DEBUG_CONTROL /* ==== end of debugging ==== */ #define HEXTER_MAX_POLYPHONY 64 #define HEXTER_DEFAULT_POLYPHONY 10 #define HEXTER_NUGGET_SIZE 64 #define HEXTER_PORT_OUTPUT 0 #define HEXTER_PORT_TUNING 1 #define HEXTER_PORT_VOLUME 2 #define HEXTER_PORTS_COUNT 3 #endif /* _HEXTER_H */ hexter-version_1.1.0/src/hexter_synth.c000066400000000000000000000772221325353653200202550ustar00rootroot00000000000000/* hexter DSSI software synthesizer plugin * * Copyright (C) 2004, 2009, 2011, 2012, 2018 Sean Bolton and others. * * Portions of this file may have come from Peter Hanappe's * Fluidsynth, copyright (C) 2003 Peter Hanappe and others. * * 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. */ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include "hexter.h" #include "hexter_types.h" #include "hexter_synth.h" #include "dx7_voice_data.h" #include "dx7_voice.h" /* * dx7_voice_off * * turn off a voice immediately */ inline void dx7_voice_off(dx7_voice_t* voice) { voice->status = DX7_VOICE_OFF; if (voice->instance->monophonic) voice->instance->mono_voice = NULL; voice->instance->current_voices--; } /* * dx7_voice_start_voice */ inline void dx7_voice_start_voice(dx7_voice_t *voice) { voice->status = DX7_VOICE_ON; voice->instance->current_voices++; } /* * hexter_instance_clear_held_keys */ static inline void hexter_instance_clear_held_keys(hexter_instance_t *instance) { int i; for (i = 0; i < 8; i++) instance->held_keys[i] = -1; } /* * hexter_instance_remove_held_key */ static inline void hexter_instance_remove_held_key(hexter_instance_t *instance, unsigned char key) { int i; /* check if this key is in list of held keys; if so, remove it and * shift the other keys up */ /* DEBUG_MESSAGE(DB_NOTE, " note-off key list before: %d %d %d %d %d %d %d %d\n", instance->held_keys[0], instance->held_keys[1], instance->held_keys[2], instance->held_keys[3], instance->held_keys[4], instance->held_keys[5], instance->held_keys[6], instance->held_keys[7]); */ for (i = 7; i >= 0; i--) { if (instance->held_keys[i] == key) break; } if (i >= 0) { for (; i < 7; i++) { instance->held_keys[i] = instance->held_keys[i + 1]; } instance->held_keys[7] = -1; } /* DEBUG_MESSAGE(DB_NOTE, " note-off key list after: %d %d %d %d %d %d %d %d\n", instance->held_keys[0], instance->held_keys[1], instance->held_keys[2], instance->held_keys[3], instance->held_keys[4], instance->held_keys[5], instance->held_keys[6], instance->held_keys[7]); */ } /* * hexter_instance_all_voices_off * * stop processing all notes within instance immediately */ void hexter_instance_all_voices_off(hexter_instance_t *instance) { int i; dx7_voice_t *voice; for (i = 0; i < instance->polyphony; i++) { voice = instance->voice[i]; if (_PLAYING(voice)) { dx7_voice_off(voice); } } hexter_instance_clear_held_keys(instance); } /* * hexter_instance_note_off * * handle a note off message */ void hexter_instance_note_off(hexter_instance_t *instance, unsigned char key, unsigned char rvelocity) { int i; dx7_voice_t *voice; hexter_instance_remove_held_key(instance, key); for (i = 0; i < instance->max_voices; i++) { voice = instance->voice[i]; if (instance->monophonic ? (_PLAYING(voice)) : (_ON(voice) && (voice->key == key))) { DEBUG_MESSAGE(DB_NOTE, " hexter_instance_note_off: key %d rvel %d voice %d note id %d\n", key, rvelocity, i, voice->note_id); dx7_voice_note_off(instance, voice, key, rvelocity); } /* if voice on */ } /* for all voices */ } /* * hexter_instance_all_notes_off * * put all notes into the released state */ void hexter_instance_all_notes_off(hexter_instance_t* instance) { int i; dx7_voice_t *voice; /* reset the sustain controller */ instance->cc[MIDI_CTL_SUSTAIN] = 0; for (i = 0; i < instance->max_voices; i++) { voice = instance->voice[i]; if (_ON(voice) || _SUSTAINED(voice)) { dx7_voice_release_note(instance, voice); } } } /* * hexter_synth_free_voice_by_kill * * selects a voice for killing. the selection algorithm is a refinement * of the algorithm previously in fluid_synth_alloc_voice. */ static dx7_voice_t* hexter_synth_free_voice_by_kill(hexter_instance_t *instance) { int i; int best_prio = 10001; int this_voice_prio; dx7_voice_t *voice; int best_voice_index = -1; for (i = 0; i < instance->max_voices; i++) { voice = instance->voice[i]; /* safeguard against an available voice. */ if (_AVAILABLE(voice)) return voice; /* Determine, how 'important' a voice is. * Start with an arbitrary number */ this_voice_prio = 10000; if (_RELEASED(voice)) { /* This voice is in the release phase. Consider it much less * important than a voice which is still held. */ this_voice_prio -= 2000; } else if (_SUSTAINED(voice)) { /* The sustain pedal is held down, and this voice is still "on" * because of this even though it has received a note off. * Consider it less important than voices which have not yet * received a note off. This decision is somewhat subjective, but * usually the sustain pedal is used to play 'more-voices-than- * fingers', and if so, it won't hurt as much to kill one of those * voices. */ this_voice_prio -= 1000; }; /* We are not enthusiastic about releasing voices, which have just been * started. Otherwise hitting a chord may result in killing notes * belonging to that very same chord. So subtract the age of the voice * from the priority - an older voice is just a little bit less * important than a younger voice. */ this_voice_prio -= (instance->note_id - voice->note_id); /* -FIX- not yet implemented: * /= take a rough estimate of loudness into account. Louder voices are more important. =/ * if (voice->volenv_section != FLUID_VOICE_ENVATTACK){ * this_voice_prio += voice->volenv_val*1000.; * }; */ /* check if this voice has less priority than the previous candidate. */ if (this_voice_prio < best_prio) best_voice_index = i, best_prio = this_voice_prio; } if (best_voice_index < 0) return NULL; voice = instance->voice[best_voice_index]; DEBUG_MESSAGE(DB_NOTE, " hexter_synth_free_voice_by_kill: no available voices, killing voice %d note id %d\n", best_voice_index, voice->note_id); dx7_voice_off(voice); return voice; } /* * hexter_synth_alloc_voice */ static dx7_voice_t * hexter_synth_alloc_voice(hexter_instance_t* instance, unsigned char key) { int i; dx7_voice_t* voice; /* If there is another voice on the same key, advance it * to the release phase. Note that a DX7 doesn't do this, * but we do it here to keep our CPU usage low. */ for (i = 0; i < instance->max_voices; i++) { voice = instance->voice[i]; if (voice->key == key && (_ON(voice) || _SUSTAINED(voice))) { dx7_voice_release_note(instance, voice); } } voice = NULL; if (instance->current_voices < instance->max_voices) { /* check if there's an available voice */ for (i = 0; i < instance->max_voices; i++) { if (_AVAILABLE(instance->voice[i])) { voice = instance->voice[i]; break; } } /* if not, then stop a running voice. */ if (voice == NULL) { voice = hexter_synth_free_voice_by_kill(instance); } } else { /* at instance polyphony limit */ voice = hexter_synth_free_voice_by_kill(instance); } if (voice == NULL) { DEBUG_MESSAGE(DB_NOTE, " hexter_synth_alloc_voice: failed to allocate a voice (key=%d)\n", key); return NULL; } DEBUG_MESSAGE(DB_NOTE, " hexter_synth_alloc_voice: key %d voice %p\n", key, voice); return voice; } /* * hexter_instance_note_on */ void hexter_instance_note_on(hexter_instance_t *instance, unsigned char key, unsigned char velocity) { dx7_voice_t* voice; if (key > 127 || velocity > 127) return; /* MidiKeys 1.6b3 sends bad notes.... */ if (instance->monophonic) { if (instance->mono_voice) { voice = instance->mono_voice; DEBUG_MESSAGE(DB_NOTE, " hexter_instance_note_on: retriggering mono voice on new key %d\n", key); } else { voice = hexter_synth_alloc_voice(instance, key); if (voice == NULL) return; instance->mono_voice = voice; } } else { /* polyphonic mode */ voice = hexter_synth_alloc_voice(instance, key); if (voice == NULL) return; } voice->instance = instance; voice->note_id = instance->note_id++; dx7_voice_note_on(instance, voice, key, velocity); } /* * hexter_instance_key_pressure */ inline void hexter_instance_key_pressure(hexter_instance_t *instance, unsigned char key, unsigned char pressure) { int i; dx7_voice_t* voice; if (instance->key_pressure[key] == pressure) return; /* save it for future voices */ instance->key_pressure[key] = pressure; /* flag any playing voices as needing updating */ for (i = 0; i < instance->max_voices; i++) { voice = instance->voice[i]; if (_PLAYING(voice) && voice->key == key) { voice->mods_serial--; } } } /* * hexter_instance_damp_voices * * advance all sustained voices to the release phase (note that this does not * clear the sustain controller.) */ void hexter_instance_damp_voices(hexter_instance_t* instance) { int i; dx7_voice_t* voice; for (i = 0; i < instance->max_voices; i++) { voice = instance->voice[i]; if (_SUSTAINED(voice)) { /* this assumes the caller has cleared the sustain controller */ dx7_voice_release_note(instance, voice); } } } /* * hexter_instance_update_mod_wheel */ static inline void hexter_instance_update_mod_wheel(hexter_instance_t* instance) { int mod = instance->cc[MIDI_CTL_MSB_MODWHEEL] * 128 + instance->cc[MIDI_CTL_LSB_MODWHEEL]; if (mod > 16256) mod = 16256; instance->mod_wheel = (float)mod / 16256.0f; instance->mods_serial++; #ifdef HEXTER_DEBUG_CONTROL instance->feedback_mod = instance->cc[MIDI_CTL_MSB_MODWHEEL]; printf("new mod wheel value %d\n", instance->feedback_mod); #endif } /* * hexter_instance_update_breath */ static inline void hexter_instance_update_breath(hexter_instance_t* instance) { int mod = instance->cc[MIDI_CTL_MSB_BREATH] * 128 + instance->cc[MIDI_CTL_LSB_BREATH]; if (mod > 16256) mod = 16256; instance->breath = (float)mod / 16256.0f; instance->mods_serial++; } /* * hexter_instance_update_foot */ static inline void hexter_instance_update_foot(hexter_instance_t* instance) { int mod = instance->cc[MIDI_CTL_MSB_FOOT] * 128 + instance->cc[MIDI_CTL_LSB_FOOT]; if (mod > 16256) mod = 16256; instance->foot = (float)mod / 16256.0f; instance->mods_serial++; } /* * hexter_instance_update_volume */ static inline void hexter_instance_update_volume(hexter_instance_t* instance) { instance->cc_volume = instance->cc[MIDI_CTL_MSB_MAIN_VOLUME] * 128 + instance->cc[MIDI_CTL_LSB_MAIN_VOLUME]; if (instance->cc_volume > 16256) instance->cc_volume = 16256; } /* * hexter_instance_update_op_param * * Generic function to update operator parameters * */ static void hexter_instance_update_op_param(hexter_instance_t *instance, int opnum, int param, signed int value) { int i; dx7_voice_t* voice; /* scale the value */ switch(param){ case 0: case 1: case 2: case 3: case 4: case 5: case 6: case 7: case 8: case 9: case 10: case 16: case 19: value = value * 100 / 16384; /* 0 to 99 */ break; case 11: case 12: case 14: value = value * 4 / 16384; /* 0 to 3 */ break; case 13: case 15: value = value * 8 / 16384; /* 0 to 7 */ break; case 17: value = value * 2 / 16384; /* 0 or 1 */ break; case 18: value = value * 32 / 16384; /* 0 to 31 */ break; case 20: value = value * 15 / 16384; /* 0 to 14 */ break; } /* update edit buffer */ if (!pthread_mutex_trylock(&instance->patches_mutex)) { instance->current_patch_buffer[((5 - opnum) * 21) + param] = value; pthread_mutex_unlock(&instance->patches_mutex); } else { /* In the unlikely event that we get here, it means another thread is * currently updating the current patch buffer. We could do something * like the 'pending_program_change' mechanism to cache this change * until we can lock the mutex, if it's really important. */ } /* check if any playing voices need updating */ for (i = 0; i < instance->max_voices; i++) { voice = instance->voice[i]; if (_PLAYING(voice)) { dx7_op_t *op = &voice->op[opnum]; /* set values */ switch (param) { case 0: op->eg.base_rate[0] = value; break; case 1: op->eg.base_rate[1] = value; break; case 2: op->eg.base_rate[2] = value; break; case 3: op->eg.base_rate[3] = value; break; case 4: op->eg.base_level[0] = value; break; case 5: op->eg.base_level[1] = value; break; case 6: op->eg.base_level[2] = value; break; case 7: op->eg.base_level[3] = value; break; case 8: op->level_scaling_bkpoint = value; break; case 9: op->level_scaling_l_depth = value; break; case 10: op->level_scaling_r_depth = value; break; case 11: op->level_scaling_l_curve = value; break; case 12: op->level_scaling_r_curve = value; break; case 13: op->rate_scaling = value; break; case 14: op->amp_mod_sens = value; break; case 15: op->velocity_sens = value; break; case 16: op->output_level = value; break; case 17: op->osc_mode = value; break; case 18: op->coarse = value; break; case 19: op->fine = value; break; case 20: op->detune = value; break; } /* do recalculations */ switch (param) { case 17: /* osc mode */ case 18: /* coarse */ case 19: /* fine */ case 20: /* detune */ dx7_op_recalculate_increment(instance, op); break; /* which other operator params need a recalc ?? */ } } } } /* * hexter_instance_update_fc */ static inline void hexter_instance_update_fc(hexter_instance_t *instance, int opnum, signed int value) { hexter_instance_update_op_param(instance, opnum, 18, value * 128); } /* * hexter_instance_handle_nrpn * * Update operator parameters via NRPN 0-125. */ static void hexter_instance_handle_nrpn(hexter_instance_t *instance) { int nrpn = instance->cc[MIDI_CTL_NONREG_PARM_NUM_MSB] * 128 + instance->cc[MIDI_CTL_NONREG_PARM_NUM_LSB]; int value = instance->cc[MIDI_CTL_MSB_DATA_ENTRY] * 128 + instance->cc[MIDI_CTL_LSB_DATA_ENTRY]; int opnum; int op_param; if (nrpn >= 126) return; /* for now we only support operator params */ opnum = nrpn / 21; /* 0 = OP6, 5 = OP1 */ op_param = nrpn - (21 * opnum); hexter_instance_update_op_param(instance, 5 - opnum, op_param, value); } #ifdef HEXTER_DEBUG_CONTROL void dx7_lfo_set_speed_x(hexter_instance_t *instance); /* prototype for test code below */ #endif /* * hexter_instance_control_change */ void hexter_instance_control_change(hexter_instance_t *instance, unsigned int param, signed int value) { switch (param) { /* these controls we act on always */ case MIDI_CTL_SUSTAIN: DEBUG_MESSAGE(DB_NOTE, " hexter_instance_control_change: got sustain control of %d\n", value); instance->cc[param] = value; if (value < 64) hexter_instance_damp_voices(instance); return; case MIDI_CTL_ALL_SOUNDS_OFF: instance->cc[param] = value; hexter_instance_all_voices_off(instance); return; case MIDI_CTL_RESET_CONTROLLERS: instance->cc[param] = value; hexter_instance_init_controls(instance); return; case MIDI_CTL_ALL_NOTES_OFF: instance->cc[param] = value; hexter_instance_all_notes_off(instance); return; } if (param == MIDI_CTL_REGIST_PARM_NUM_LSB || param == MIDI_CTL_REGIST_PARM_NUM_MSB) { /* reset NRPN numbers on receipt of RPN */ instance->cc[MIDI_CTL_NONREG_PARM_NUM_LSB] = 127; instance->cc[MIDI_CTL_NONREG_PARM_NUM_MSB] = 127; } if (instance->cc[param] == value) /* do nothing if control value has not changed */ return; instance->cc[param] = value; switch (param) { #ifdef HEXTER_DEBUG_CONTROL case MIDI_CTL_MSB_PAN: /* panning */ // hexter_instance_channel_pressure(instance, value); // { float f; // f = 52.75f / (instance->sample_rate * 0.001f * (float)value); // instance->amp_mod_max_slew = FLOAT_TO_FP(f); // printf("new amp_mod_max_slew, %dms => %f = %d\n", value, f, instance->amp_mod_max_slew); // } { if (value == 0) instance->ramp_duration = 1; else instance->ramp_duration = (int)(instance->sample_rate * 0.001f * (float)value); /* value ms ramp */ printf("new ramp_duration, %dms => %d frames\n", value, instance->ramp_duration); dx7_lfo_set_speed_x(instance); } break; case MIDI_CTL_MSB_EXPRESSION: /* 'expression' */ hexter_instance_key_pressure(instance, 60, value); break; #endif /* HEXTER_DEBUG_CONTROL */ case MIDI_CTL_MSB_MODWHEEL: case MIDI_CTL_LSB_MODWHEEL: hexter_instance_update_mod_wheel(instance); break; case MIDI_CTL_MSB_BREATH: case MIDI_CTL_LSB_BREATH: hexter_instance_update_breath(instance); break; case MIDI_CTL_MSB_FOOT: case MIDI_CTL_LSB_FOOT: hexter_instance_update_foot(instance); break; case MIDI_CTL_MSB_MAIN_VOLUME: case MIDI_CTL_LSB_MAIN_VOLUME: hexter_instance_update_volume(instance); break; case MIDI_CTL_MSB_GENERAL_PURPOSE1: case MIDI_CTL_MSB_GENERAL_PURPOSE2: case MIDI_CTL_MSB_GENERAL_PURPOSE3: case MIDI_CTL_MSB_GENERAL_PURPOSE4: hexter_instance_update_fc(instance, param - MIDI_CTL_MSB_GENERAL_PURPOSE1, value); break; case MIDI_CTL_GENERAL_PURPOSE5: case MIDI_CTL_GENERAL_PURPOSE6: hexter_instance_update_fc(instance, param - MIDI_CTL_GENERAL_PURPOSE5 + 4, value); break; /* handle NRPN as real-time parameter change */ case MIDI_CTL_MSB_DATA_ENTRY: case MIDI_CTL_LSB_DATA_ENTRY: if (instance->cc[MIDI_CTL_NONREG_PARM_NUM_MSB] != 127 && instance->cc[MIDI_CTL_NONREG_PARM_NUM_LSB] != 127) { hexter_instance_handle_nrpn(instance); } break; /* what others should we respond to? */ /* these we ignore (let the host handle): * BANK_SELECT_MSB * BANK_SELECT_LSB * RPN_MSB * RPN_LSB * (may want to eventually implement RPN (0, 0) Pitch Bend Sensitivity) */ } } /* * hexter_instance_channel_pressure */ void hexter_instance_channel_pressure(hexter_instance_t *instance, signed int pressure) { if (instance->channel_pressure == pressure) return; instance->channel_pressure = pressure; instance->mods_serial++; } /* * hexter_instance_pitch_bend */ void hexter_instance_pitch_bend(hexter_instance_t *instance, signed int value) { instance->pitch_wheel = value; /* ALSA pitch bend is already -8192 - 8191 */ instance->pitch_bend = (double)(value * instance->pitch_bend_range) / 8192.0; } /* * hexter_instance_init_controls */ void hexter_instance_init_controls(hexter_instance_t *instance) { int i; /* if sustain was on, we need to damp any sustained voices */ if (HEXTER_INSTANCE_SUSTAINED(instance)) { instance->cc[MIDI_CTL_SUSTAIN] = 0; hexter_instance_damp_voices(instance); } for (i = 0; i < 128; i++) { instance->key_pressure[i] = 0; instance->cc[i] = 0; } instance->channel_pressure = 0; instance->pitch_wheel = 0; instance->pitch_bend = 0.0; instance->cc[MIDI_CTL_MSB_MAIN_VOLUME] = 127; /* full volume */ instance->cc[MIDI_CTL_NONREG_PARM_NUM_LSB] = 127; /* 'null' */ instance->cc[MIDI_CTL_NONREG_PARM_NUM_MSB] = 127; /* 'null' */ hexter_instance_update_mod_wheel(instance); hexter_instance_update_breath(instance); hexter_instance_update_foot(instance); hexter_instance_update_volume(instance); instance->mods_serial++; } static inline int limit(int x, int min, int max) { if (x < min) return min; if (x > max) return max; return x; } /* * hexter_instance_set_performance_data */ void hexter_instance_set_performance_data(hexter_instance_t *instance) { uint8_t *perf_buffer = instance->performance_buffer; /* set instance performance parameters */ /* -FIX- later these will optionally come from patch */ instance->pitch_bend_range = limit(perf_buffer[3], 0, 12); instance->portamento_time = limit(perf_buffer[5], 0, 99); instance->mod_wheel_sensitivity = limit(perf_buffer[9], 0, 15); instance->mod_wheel_assign = limit(perf_buffer[10], 0, 7); instance->foot_sensitivity = limit(perf_buffer[11], 0, 15); instance->foot_assign = limit(perf_buffer[12], 0, 7); instance->pressure_sensitivity = limit(perf_buffer[13], 0, 15); instance->pressure_assign = limit(perf_buffer[14], 0, 7); instance->breath_sensitivity = limit(perf_buffer[15], 0, 15); instance->breath_assign = limit(perf_buffer[16], 0, 7); if (perf_buffer[0] & 0x01) { /* 0.5.9 compatibility */ instance->pitch_bend_range = 2; instance->portamento_time = 0; instance->mod_wheel_sensitivity = 0; instance->foot_sensitivity = 0; instance->pressure_sensitivity = 0; instance->breath_sensitivity = 0; } } /* * hexter_instance_select_program */ void hexter_instance_select_program(hexter_instance_t *instance, unsigned long bank, unsigned long program) { /* no support for banks, so we just ignore the bank number */ if (program >= 128) return; instance->current_program = program; if (instance->overlay_program == program) { /* edit buffer applies */ memcpy(instance->current_patch_buffer, instance->overlay_patch_buffer, DX7_VOICE_SIZE_UNPACKED); } else { dx7_patch_unpack(instance->patches, program, instance->current_patch_buffer); } } /* * hexter_instance_set_program_descriptor */ int hexter_instance_set_program_descriptor(hexter_instance_t *instance, DSSI_Program_Descriptor *pd, unsigned long bank, unsigned long program) { static char name[11]; /* no support for banks, so we just ignore the bank number */ if (program >= 128) { return 0; } pd->Bank = bank; pd->Program = program; /* -FIX- some character set conversion would be appropriate here, but to what? */ dx7_voice_copy_name(name, &instance->patches[program]); pd->Name = name; return 1; } /* * hexter_instance_handle_patches */ char * hexter_instance_handle_patches(hexter_instance_t *instance, const char *key, const char *value) { int section; DEBUG_MESSAGE(DB_DATA, " hexter_instance_handle_patches: received new '%s'\n", key); section = key[7] - '0'; if (section < 0 || section > 3) return dssp_error_message("patch configuration failed: invalid section '%c'", key[7]); pthread_mutex_lock(&instance->patches_mutex); if (!decode_7in6(value, 32 * sizeof(dx7_patch_t), (uint8_t *)&instance->patches[section * 32])) { pthread_mutex_unlock(&instance->patches_mutex); return dssp_error_message("patch configuration failed: corrupt data"); } if ((instance->current_program / 32) == section && instance->current_program != instance->overlay_program) dx7_patch_unpack(instance->patches, instance->current_program, instance->current_patch_buffer); pthread_mutex_unlock(&instance->patches_mutex); return NULL; /* success */ } /* * hexter_instance_handle_edit_buffer */ char * hexter_instance_handle_edit_buffer(hexter_instance_t *instance, const char *value) { struct { int program; uint8_t buffer[DX7_VOICE_SIZE_UNPACKED]; } edit_buffer; pthread_mutex_lock(&instance->patches_mutex); if (!strcmp(value, "off")) { DEBUG_MESSAGE(DB_DATA, " hexter_instance_handle_edit_buffer: cancelled\n"); if (instance->current_program == instance->overlay_program) { dx7_patch_unpack(instance->patches, instance->current_program, instance->current_patch_buffer); } instance->overlay_program = -1; } else { DEBUG_MESSAGE(DB_DATA, " hexter_instance_handle_edit_buffer: received new overlay\n"); if (!decode_7in6(value, sizeof(edit_buffer), (uint8_t *)&edit_buffer)) { pthread_mutex_unlock(&instance->patches_mutex); return dssp_error_message("patch edit failed: corrupt data"); } instance->overlay_program = edit_buffer.program; memcpy(instance->overlay_patch_buffer, edit_buffer.buffer, DX7_VOICE_SIZE_UNPACKED); if (instance->current_program == instance->overlay_program) { /* applies to current patch also */ memcpy(instance->current_patch_buffer, instance->overlay_patch_buffer, DX7_VOICE_SIZE_UNPACKED); } } pthread_mutex_unlock(&instance->patches_mutex); return NULL; /* success */ } char * hexter_instance_handle_performance(hexter_instance_t *instance, const char *value) { pthread_mutex_lock(&instance->patches_mutex); DEBUG_MESSAGE(DB_DATA, " hexter_instance_handle_performance: received new global performance parameters\n"); if (!decode_7in6(value, DX7_PERFORMANCE_SIZE, instance->performance_buffer)) { pthread_mutex_unlock(&instance->patches_mutex); return dssp_error_message("performance edit failed: corrupt data"); } hexter_instance_set_performance_data(instance); pthread_mutex_unlock(&instance->patches_mutex); /* we eventually may want to update playing voices here */ return NULL; /* success */ } /* * hexter_instance_handle_monophonic */ char * hexter_instance_handle_monophonic(hexter_instance_t *instance, const char *value) { int mode = -1; if (!strcmp(value, "on")) mode = DSSP_MONO_MODE_ON; else if (!strcmp(value, "once")) mode = DSSP_MONO_MODE_ONCE; else if (!strcmp(value, "both")) mode = DSSP_MONO_MODE_BOTH; else if (!strcmp(value, "off")) mode = DSSP_MONO_MODE_OFF; if (mode == -1) { return dssp_error_message("error: monophonic value not recognized"); } if (mode == DSSP_MONO_MODE_OFF) { /* polyphonic mode */ instance->monophonic = 0; instance->max_voices = instance->polyphony; } else { /* one of the monophonic modes */ if (!instance->monophonic) { dssp_voicelist_mutex_lock(instance); hexter_instance_all_voices_off(instance); instance->max_voices = 1; instance->mono_voice = NULL; hexter_instance_clear_held_keys(instance); dssp_voicelist_mutex_unlock(instance); } instance->monophonic = mode; } return NULL; /* success */ } /* * hexter_instance_handle_polyphony */ char * hexter_instance_handle_polyphony(hexter_instance_t *instance, const char *value) { int polyphony = atoi(value); int i; dx7_voice_t *voice; if (polyphony < 1 || polyphony > HEXTER_MAX_POLYPHONY) { return dssp_error_message("error: polyphony value out of range"); } /* set the new limit */ instance->polyphony = polyphony; if (!instance->monophonic) { dssp_voicelist_mutex_lock(instance); instance->max_voices = polyphony; /* turn off any voices above the new limit */ for (i = polyphony; i < HEXTER_MAX_POLYPHONY; i++) { voice = instance->voice[i]; if (_PLAYING(voice)) { if (instance->held_keys[0] != -1) hexter_instance_clear_held_keys(instance); dx7_voice_off(voice); } } dssp_voicelist_mutex_unlock(instance); } return NULL; /* success */ } /* * hexter_instance_render_voices */ void hexter_instance_render_voices(hexter_instance_t *instance, unsigned long samples_done, unsigned long sample_count, int do_control_update) { unsigned long i; dx7_voice_t* voice; /* update the LFO */ dx7_lfo_update(instance, sample_count); /* render each active voice */ for (i = 0; i < instance->max_voices; i++) { voice = instance->voice[i]; if (_PLAYING(voice)) { if (voice->mods_serial != instance->mods_serial) { dx7_voice_update_mod_depths(instance, voice); voice->mods_serial = instance->mods_serial; } dx7_voice_render(instance, voice, instance->output + samples_done, sample_count, do_control_update); } } } hexter-version_1.1.0/src/hexter_synth.h000066400000000000000000000232011325353653200202460ustar00rootroot00000000000000/* hexter DSSI software synthesizer plugin * * Copyright (C) 2004, 2009, 2011, 2012, 2018 Sean Bolton and others. * * Portions of this file may have come from Peter Hanappe's * Fluidsynth, copyright (C) 2003 Peter Hanappe and others. * Portions of this file may have come from alsa-lib, copyright * and licensed under the LGPL v2.1. * * 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 _HEXTER_SYNTH_H #define _HEXTER_SYNTH_H #include #include #include #include "hexter_types.h" #include "hexter.h" #define DSSP_MONO_MODE_OFF 0 #define DSSP_MONO_MODE_ON 1 #define DSSP_MONO_MODE_ONCE 2 #define DSSP_MONO_MODE_BOTH 3 /* * hexter_instance_t */ struct _hexter_instance_t { hexter_instance_t *next; /* output */ LADSPA_Data *output; /* input */ LADSPA_Data *tuning; LADSPA_Data *volume; float sample_rate; float nugget_rate; /* nuggets per second */ unsigned long nugget_remains; int32_t ramp_duration; /* frames per ramp for mods and volume */ dx7_sample_t dx7_eg_max_slew; /* max op eg increment, in units per frame */ /* voice tracking */ unsigned int note_id; /* incremented for every new note, used for voice-stealing prioritization */ int polyphony; /* requested polyphony, must be <= HEXTER_MAX_POLYPHONY */ int monophonic; /* true if operating in monophonic mode */ int max_voices; /* current max polyphony, either requested polyphony above or 1 while in monophonic mode */ int current_voices; /* count of currently playing voices */ dx7_voice_t *mono_voice; unsigned char last_key; /* portamento starting key */ signed char held_keys[8]; /* for monophonic key tracking, an array of note-ons, most recently received first */ pthread_mutex_t voicelist_mutex; int voicelist_mutex_grab_failed; dx7_voice_t *voice[HEXTER_MAX_POLYPHONY]; /* patches and edit buffer */ pthread_mutex_t patches_mutex; int pending_program_change; dx7_patch_t *patches; int current_program; uint8_t current_patch_buffer[DX7_VOICE_SIZE_UNPACKED]; /* current unpacked patch in use */ int overlay_program; /* program to which 'configure edit_buffer' patch applies, or -1 */ uint8_t overlay_patch_buffer[DX7_VOICE_SIZE_UNPACKED]; /* 'configure edit_buffer' patch */ /* global performance parameter buffer */ uint8_t performance_buffer[DX7_PERFORMANCE_SIZE]; /* current performance perameters (from global buffer or current patch) */ uint8_t pitch_bend_range; /* in semitones */ uint8_t portamento_time; uint8_t mod_wheel_sensitivity; uint8_t mod_wheel_assign; uint8_t foot_sensitivity; uint8_t foot_assign; uint8_t pressure_sensitivity; uint8_t pressure_assign; uint8_t breath_sensitivity; uint8_t breath_assign; /* current non-LADSPA-port-mapped controller values */ unsigned char key_pressure[128]; unsigned char cc[128]; /* controller values */ unsigned char channel_pressure; int pitch_wheel; /* range is -8192 - 8191 */ /* translated port and controller values */ double fixed_freq_multiplier; unsigned long cc_volume; /* volume msb*128 + lsb, max 16256 */ double pitch_bend; /* frequency shift, in semitones */ int mods_serial; float mod_wheel; float foot; float breath; uint8_t lfo_speed; uint8_t lfo_wave; uint8_t lfo_delay; dx7_sample_t lfo_delay_value[3]; int32_t lfo_delay_duration[3]; dx7_sample_t lfo_delay_increment[3]; int32_t lfo_phase; dx7_sample_t lfo_value; double lfo_value_for_pitch; /* no delay, unramped */ int32_t lfo_duration; dx7_sample_t lfo_increment; dx7_sample_t lfo_target; dx7_sample_t lfo_increment0; dx7_sample_t lfo_increment1; int32_t lfo_duration0; int32_t lfo_duration1; dx7_sample_t lfo_buffer[HEXTER_NUGGET_SIZE]; #ifdef HEXTER_DEBUG_CONTROL dx7_sample_t feedback_mod; #endif }; /* hexter_synth.c */ void dx7_voice_off(dx7_voice_t* voice); void dx7_voice_start_voice(dx7_voice_t *voice); void hexter_instance_all_voices_off(hexter_instance_t *instance); void hexter_instance_note_off(hexter_instance_t *instance, unsigned char key, unsigned char rvelocity); void hexter_instance_all_notes_off(hexter_instance_t *instance); void hexter_instance_note_on(hexter_instance_t *instance, unsigned char key, unsigned char velocity); void hexter_instance_key_pressure(hexter_instance_t *instance, unsigned char key, unsigned char pressure); void hexter_instance_damp_voices(hexter_instance_t *instance); void hexter_instance_control_change(hexter_instance_t *instance, unsigned int param, signed int value); void hexter_instance_channel_pressure(hexter_instance_t *instance, signed int pressure); void hexter_instance_pitch_bend(hexter_instance_t *instance, signed int value); void hexter_instance_init_controls(hexter_instance_t *instance); void hexter_instance_set_performance_data(hexter_instance_t *instance); void hexter_instance_select_program(hexter_instance_t *instance, unsigned long bank, unsigned long program); int hexter_instance_set_program_descriptor(hexter_instance_t *instance, DSSI_Program_Descriptor *pd, unsigned long bank, unsigned long program); char *hexter_instance_handle_patches(hexter_instance_t *instance, const char *key, const char *value); char *hexter_instance_handle_edit_buffer(hexter_instance_t *instance, const char *value); char *hexter_instance_handle_monophonic(hexter_instance_t *instance, const char *value); char *hexter_instance_handle_polyphony(hexter_instance_t *instance, const char *value); char *hexter_instance_handle_performance(hexter_instance_t *instance, const char *value); void hexter_instance_render_voices(hexter_instance_t *instance, unsigned long samples_done, unsigned long sample_count, int do_control_update); /* these come right out of alsa/asoundef.h */ #define MIDI_CTL_MSB_MODWHEEL 0x01 /**< Modulation */ #define MIDI_CTL_MSB_BREATH 0x02 /**< Breath */ #define MIDI_CTL_MSB_FOOT 0x04 /**< Foot */ /* -FIX- support 5 portamento time */ #define MIDI_CTL_MSB_DATA_ENTRY 0x06 /**< Data entry */ #define MIDI_CTL_MSB_MAIN_VOLUME 0x07 /**< Main volume */ #define MIDI_CTL_MSB_PAN 0x0a /**< Panpot */ #define MIDI_CTL_MSB_EXPRESSION 0x0b /**< Expression */ #define MIDI_CTL_MSB_GENERAL_PURPOSE1 0x10 /**< General purpose 1 */ #define MIDI_CTL_MSB_GENERAL_PURPOSE2 0x11 /**< General purpose 2 */ #define MIDI_CTL_MSB_GENERAL_PURPOSE3 0x12 /**< General purpose 3 */ #define MIDI_CTL_MSB_GENERAL_PURPOSE4 0x13 /**< General purpose 4 */ #define MIDI_CTL_LSB_MODWHEEL 0x21 /**< Modulation */ #define MIDI_CTL_LSB_BREATH 0x22 /**< Breath */ #define MIDI_CTL_LSB_FOOT 0x24 /**< Foot */ #define MIDI_CTL_LSB_DATA_ENTRY 0x26 /**< Data entry */ #define MIDI_CTL_LSB_MAIN_VOLUME 0x27 /**< Main volume */ #define MIDI_CTL_SUSTAIN 0x40 /**< Sustain pedal */ /* -FIX- support 65(?) portamento switch */ #define MIDI_CTL_GENERAL_PURPOSE5 0x50 /**< General purpose 5 */ #define MIDI_CTL_GENERAL_PURPOSE6 0x51 /**< General purpose 6 */ #define MIDI_CTL_NONREG_PARM_NUM_LSB 0x62 /**< Non-registered parameter number */ #define MIDI_CTL_NONREG_PARM_NUM_MSB 0x63 /**< Non-registered parameter number */ #define MIDI_CTL_REGIST_PARM_NUM_LSB 0x64 /**< Registered parameter number */ #define MIDI_CTL_REGIST_PARM_NUM_MSB 0x65 /**< Registered parameter number */ #define MIDI_CTL_ALL_SOUNDS_OFF 0x78 /**< All sounds off */ #define MIDI_CTL_RESET_CONTROLLERS 0x79 /**< Reset Controllers */ #define MIDI_CTL_ALL_NOTES_OFF 0x7b /**< All notes off */ #define HEXTER_INSTANCE_SUSTAINED(_s) ((_s)->cc[MIDI_CTL_SUSTAIN] >= 64) #endif /* _HEXTER_SYNTH_H */ hexter-version_1.1.0/src/hexter_types.h000066400000000000000000000036131325353653200202520ustar00rootroot00000000000000/* hexter DSSI software synthesizer plugin * * Copyright (C) 2004, 2009, 2011, 2018 Sean Bolton and others. * * 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 _HEXTER_TYPES_H #define _HEXTER_TYPES_H #include #define DX7_VOICE_SIZE_PACKED 128 #define DX7_VOICE_SIZE_UNPACKED 155 #define DX7_VOICE_PARAMETERS 146 #define DX7_PERFORMANCE_SIZE 64 #define DX7_DUMP_SIZE_VOICE_SINGLE 155+8 #define DX7_DUMP_SIZE_VOICE_BULK 4096+8 typedef struct _hexter_instance_t hexter_instance_t; typedef struct _dx7_patch_t dx7_patch_t; typedef struct _dx7_voice_t dx7_voice_t; typedef struct _dx7_op_eg_t dx7_op_eg_t; typedef struct _dx7_pitch_eg_t dx7_pitch_eg_t; typedef struct _dx7_portamento_t dx7_portamento_t; typedef struct _dx7_op_t dx7_op_t; #ifndef HEXTER_USE_FLOATING_POINT // #warning Note: using fixed point typedef int32_t dx7_sample_t; #else /* HEXTER_USE_FLOATING_POINT */ // #warning Note: using floating point typedef float dx7_sample_t; #endif /* HEXTER_USE_FLOATING_POINT */ /* in hexter.c: */ int dssp_voicelist_mutex_lock(hexter_instance_t *instance); int dssp_voicelist_mutex_unlock(hexter_instance_t *instance); #endif /* _HEXTER_TYPES_H */