audio-2.0.8/0000755000000000000000000000000014506546342011021 5ustar0000000000000000audio-2.0.8/.hgignore0000644000000000000000000000112414506546342012622 0ustar0000000000000000syntax: regexp # The recurrent (^|/) idiom in the regexps below should be understood # to mean "at any directory" while the ^ idiom means "from the # project's top-level directory". (^|/).*\.dvi$ (^|/).*\.pdf$ (^|/).*\.o$ (^|/).*\.oct$ (^|/).*\.octlink$ (^|/)octave-core$ (^|/).*\.tar\.gz$ (^|/)aclocal\.m4$ (^|/)configure$ (^|/)autom4te\.cache($|/) # e.g. doc/faq/OctaveFAQ.info # doc/interpreter/octave.info-4 ^doc/.*\.info(-\d)?$ ^doc/\w*/stamp-vti$ ^doc/\w*/version\.texi$ # Emacs tools create these (^|/)TAGS$ (^|/)semantic.cache$ # Other text editors often create these (^|/)~.* audio-2.0.8/COPYING0000644000000000000000000010451314506546342012060 0ustar0000000000000000 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. 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 them 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 prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. 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. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey 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; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If 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 convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU 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 that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. 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. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 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. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. 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 state 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 3 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, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program 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, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU 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. But first, please read . audio-2.0.8/DESCRIPTION0000644000000000000000000000065114506546342012531 0ustar0000000000000000Name: audio Version: 2.0.8 Date: 2023-10-02 Author: John Donoghue Maintainer: John Donoghue Title: Audio Toolbox Description: Audio and MIDI Toolbox for GNU Octave Categories: Midi, Audio Depends: octave (>= 4.0.0) SystemRequirements: rtmidi Autoload: no License: GPLv3+ Url: https://gnu-octave.github.io/octave-audio/ Repository: https://github.com/gnu-octave/octave-audio/ audio-2.0.8/INDEX0000644000000000000000000000067514506546342011623 0ustar0000000000000000audio >> Audio and MIDI Toolbox MIDI Device Interface mididevice mididevinfo midiflush midimsg midireceive midisend @octave_midi/hasdata MIDI Controller Interface midiid midicontrols midisync midiread midicallback MIDI File I/O midifileinfo midifileread midifilewrite ismidifile Enumerations midimsgtype Waveform Generation audioOscillator Measurements bark2hz erb2hz mel2hz hz2bark hz2erb hz2mel audio-2.0.8/Makefile0000644000000000000000000002741714506546342012474 0ustar0000000000000000## Copyright 2015-2016 Carnë Draug ## Copyright 2015-2016 Oliver Heimlich ## Copyright 2017 Julien Bect ## Copyright 2017 Olaf Till ## Copyright 2019-2022 John Donoghue ## ## 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 any warranty. TOPDIR := $(shell pwd) ## Some basic tools (can be overriden using environment variables) SED ?= sed TAR ?= tar GREP ?= grep CUT ?= cut TR ?= tr TEXI2PDF ?= texi2pdf -q MAKEINFO ?= makeinfo # work out a possible help generator ifeq ($(strip $(QHELPGENERATOR)),) ifneq ($(shell qhelpgenerator-qt5 -v 2>/dev/null),) QHELPGENERATOR = qhelpgenerator-qt5 else ifneq ($(shell qcollectiongenerator-qt5 -v 2>/dev/null),) QHELPGENERATOR = qcollectiongenerator-qt5 #else ifneq ($(shell qhelpgenerator -qt5 -v 2>/dev/null),) # v4 doesnt work # QHELPGENERATOR = qhelpgenerator -qt5 else ifneq ($(shell qcollectiongenerator -qt5 -v 2>/dev/null),) QHELPGENERATOR = qcollectiongenerator -qt5 else QHELPGENERATOR = true endif endif ## Note the use of ':=' (immediate set) and not just '=' (lazy set). ## http://stackoverflow.com/a/448939/1609556 package := $(shell $(GREP) "^Name: " DESCRIPTION | $(CUT) -f2 -d" " | \ $(TR) '[:upper:]' '[:lower:]') version := $(shell $(GREP) "^Version: " DESCRIPTION | $(CUT) -f2 -d" ") pkg_date := $(shell $(GREP) "^Date: " DESCRIPTION | $(CUT) -f2 -d" ") ## These are the paths that will be created for the releases. target_dir := target release_dir := $(target_dir)/$(package)-$(version) release_tarball := $(target_dir)/$(package)-$(version).tar.gz html_dir := $(target_dir)/$(package)-html html_tarball := $(target_dir)/$(package)-html.tar.gz ## Using $(realpath ...) avoids problems with symlinks due to bug ## #50994 in Octaves scripts/pkg/private/install.m. But at least the ## release directory above is needed in the relative form, for 'git ## archive --format=tar --prefix=$(release_dir). real_target_dir := $(realpath .)/$(target_dir) installation_dir := $(real_target_dir)/.installation package_list := $(installation_dir)/.octave_packages install_stamp := $(installation_dir)/.install_stamp ## These can be set by environment variables which allow to easily ## test with different Octave versions. ifndef OCTAVE OCTAVE := octave endif OCTAVE := $(OCTAVE) --no-gui --silent --norc MKOCTFILE ?= mkoctfile ## Command used to set permissions before creating tarballs FIX_PERMISSIONS ?= chmod -R a+rX,u+w,go-w,ug-s ## Detect which VCS is used vcs := $(if $(wildcard .hg),hg,$(if $(wildcard .git),git,unknown)) ifeq ($(vcs),hg) release_dir_dep := .hg/dirstate HG := hg HG_CMD = $(HG) --config alias.$(1)=$(1) --config defaults.$(1)= $(1) HG_ID := $(shell $(call HG_CMD,identify) --id | sed -e 's/+//' ) REPO_TIMESTAMP := $(firstword $(shell $(call HG_CMD,log) --rev $(HG_ID) --template '{date|hgdate}')) endif ifeq ($(vcs),git) release_dir_dep := .git/index GIT := git REPO_TIMESTAMP := $(firstword $(shell $(GIT) log -n1 --date=unix --format="%ad")) endif TAR_REPRODUCIBLE_OPTIONS := --sort=name --mtime="@$(REPO_TIMESTAMP)" --owner=0 --group=0 --numeric-owner TAR_OPTIONS := --format=ustar $(TAR_REPRODUCIBLE_OPTIONS) ## .PHONY indicates targets that are not filenames ## (https://www.gnu.org/software/make/manual/html_node/Phony-Targets.html) .PHONY: help ## make will display the command before runnning them. Use @command ## to not display it (makes specially sense for echo). help: @echo "Targets:" @echo " dist - Create $(release_tarball) for release." @echo " html - Create $(html_tarball) for release." @echo " release - Create both of the above and show md5sums." @echo " install - Install the package in $(installation_dir), where it is not visible in a normal Octave session." @echo " check - Execute package tests." @echo " doctest - Test the help texts with the doctest package." @echo " run - Run Octave with the package installed in $(installation_dir) in the path." @echo " clean - Remove everything made with this Makefile." ## ## Recipes for release tarballs (package + html) ## .PHONY: release dist html clean-tarballs clean-unpacked-release ## To make a release, build the distribution and html tarballs. release: dist html md5sum $(release_tarball) $(html_tarball) @echo "Upload @ https://sourceforge.net/p/octave/package-releases/new/" @echo " and note the changeset the release corresponds to" ## dist and html targets are only PHONY/alias targets to the release ## and html tarballs. dist: $(release_tarball) html: $(html_tarball) ## An implicit rule with a recipe to build the tarballs correctly. %.tar.gz: % $(TAR) -cf - $(TAR_OPTIONS) -C "$(target_dir)/" "$(notdir $<)" | gzip -9n > "$@" clean-tarballs: @echo "## Cleaning release tarballs (package + html)..." -$(RM) $(release_tarball) $(html_tarball) @echo ## Create the unpacked package. ## ## Notes: ## * having ".hg/dirstate" (or ".git/index") as a prerequesite means it is ## only rebuilt if we are at a different commit. ## * the variable RM usually defaults to "rm -f" ## * having this recipe separate from the one that makes the tarball ## makes it easy to have packages in alternative formats (such as zip) ## * note that if a commands needs to be run in a specific directory, ## the command to "cd" needs to be on the same line. Each line restores ## the original working directory. $(release_dir): $(release_dir_dep) -$(RM) -r "$@" ifeq (${vcs},hg) hg archive --exclude ".hg*" --type files "$@" endif ifeq (${vcs},git) git archive --format=tar --prefix="$@/" HEAD | $(TAR) -x $(RM) "$@/.gitignore" endif ## Don't fall back to run the supposed necessary contents of ## 'bootstrap' here. Users are better off if they provide ## 'bootstrap'. Administrators, checking build reproducibility, can ## put in the missing 'bootstrap' file if they feel they know its ## necessary contents. ifneq (,$(wildcard src/bootstrap)) cd "$@/src" && ./bootstrap && $(RM) -r "autom4te.cache" endif ## Uncomment this if your src/Makefile.in has these targets for ## pre-building something for the release (e.g. documentation). # cd "$@/src" && ./configure && $(MAKE) prebuild && \ # $(MAKE) clean && $(RM) Makefile ## $(MAKE) -C "$@" docs # cd "$@" && $(MAKE) tests # remove dev stuff cd "$@" && $(RM) -rf "devel" && $(RM) -f doc/mkfuncdocs.py doc/mkqhcp.py ${FIX_PERMISSIONS} "$@" .PHONY: docs docs: doc/$(package).pdf doc/$(package).info doc/$(package).qhc doc/$(package).html .PHONY: clean-docs clean-docs: $(RM) -f doc/$(package).html $(RM) -f doc/$(package).qhc $(RM) -f doc/$(package).qch $(RM) -f doc/$(package).info $(RM) -f doc/$(package).pdf $(RM) -f doc/version.texi $(RM) -f doc/functions.texi doc/version.texi: $(release_dir_dep) @echo Generating $@ @echo "@c autogenerated from Makefile" > $@ @echo "@set VERSION $(version)" >> $@ @echo "@set PACKAGE $(package)" >> $@ @echo "@set DATE $(pkg_date)" >> $@ doc/$(package).pdf: doc/$(package).texi doc/functions.texi doc/version.texi cd doc && SOURCE_DATE_EPOCH=$(REPO_TIMESTAMP) $(TEXI2PDF) $(package).texi # remove temp files cd doc && $(RM) -f $(package).aux $(package).cp $(package).cps $(package).fn $(package).fns $(package).log $(package).toc doc/$(package).html: doc/$(package).texi doc/functions.texi doc/version.texi cd doc && SOURCE_DATE_EPOCH=$(REPO_TIMESTAMP) $(MAKEINFO) --html --css-ref=$(package).css --no-split $(package).texi doc/$(package).qhc: doc/$(package).html # try also create qch file if can cd doc && ./mkqhcp.py $(package) && $(QHELPGENERATOR) $(package).qhcp -o $(package).qhc cd doc && $(RM) -f $(package).qhcp $(package).qhp doc/$(package).info: doc/$(package).texi doc/functions.texi doc/version.texi cd doc && $(MAKEINFO) $(package).texi doc/functions.texi: $(release_dir_dep) cd doc && ./mkfuncdocs.py --src-dir=../inst/ ../INDEX | $(SED) 's/@seealso/@xseealso/g' > functions.texi run_in_place = $(OCTAVE) --eval ' pkg ("local_list", "$(package_list)"); ' \ --eval ' pkg ("load", "$(package)"); ' #html_options = --eval 'options = get_html_options ("octave-forge");' ## Uncomment this for package documentation. html_options = --eval 'options = get_html_options ("octave-forge");' \ --eval 'options.package_doc = "$(package).texi";' \ --eval 'options.package_doc_options = [options.package_doc_options " --css-include=$(package).css"];' $(html_dir): $(install_stamp) $(RM) -r "$@"; $(run_in_place) \ --eval ' pkg load generate_html; ' \ $(html_options) \ --eval ' generate_package_html ("$(package)", "$@", options); '; $(FIX_PERMISSIONS) "$@"; clean-unpacked-release: @echo "## Cleaning unpacked release tarballs (package + html)..." -$(RM) -r $(release_dir) $(html_dir) @echo ## ## Recipes for installing the package. ## .PHONY: install clean-install octave_install_commands = \ ' llist_path = pkg ("local_list"); \ mkdir ("$(installation_dir)"); \ load (llist_path); \ local_packages(cellfun (@ (x) strcmp ("$(package)", x.name), local_packages)) = []; \ save ("$(package_list)", "local_packages"); \ pkg ("local_list", "$(package_list)"); \ pkg ("prefix", "$(installation_dir)", "$(installation_dir)"); \ pkg ("install", "-local", "-verbose", "$(release_tarball)"); ' ## Install unconditionally. Maybe useful for testing installation with ## different versions of Octave. install: $(release_tarball) @echo "Installing package under $(installation_dir) ..." $(OCTAVE) --eval $(octave_install_commands) touch $(install_stamp) ## Install only if installation (under target/...) is not current. $(install_stamp): $(release_tarball) @echo "Installing package under $(installation_dir) ..." $(OCTAVE) --eval $(octave_install_commands) touch $(install_stamp) clean-install: @echo "## Cleaning installation under $(installation_dir) ..." -$(RM) -r $(installation_dir) @echo ## ## Recipes for testing purposes ## .PHONY: run doctest check ## Start an Octave session with the package directories on the path for ## interactice test of development sources. run: $(install_stamp) $(run_in_place) --persist ## Test example blocks in the documentation. Needs doctest package ## https://octave.sourceforge.io/doctest/index.html doctest: $(install_stamp) $(run_in_place) --eval 'pkg load doctest;' \ --eval "targets = pkg('list', '$(package)'){1}.dir;" \ --eval "doctest (targets);" ## Test package. octave_test_commands = \ ' pkgs = pkg("list", "$(package)"); \ dirs = {pkgs{1}.dir}; \ __run_test_suite__ (dirs, {}); ' ## the following works, too, but provides no overall summary output as ## __run_test_suite__ does: ## ## else cellfun (@runtests, horzcat (cellfun (@ (dir) ostrsplit (([~, dirs] = system (sprintf ("find %s -type d", dir))), "\n\r", true), dirs, "UniformOutput", false){:})); endif ' check: $(install_stamp) $(run_in_place) --eval $(octave_test_commands) ## ## CLEAN ## .PHONY: clean clean: clean-tarballs clean-unpacked-release clean-install clean-docs test -e inst/test && rmdir inst/test || true test -e fntests.log && rm -f fntests.log || true @echo "## Removing target directory (if empty)..." test -e $(target_dir) && rmdir $(target_dir) || true @echo @echo "## Cleaning done" @echo .PHONY: tests CC_TST_SOURCES := $(shell $(GREP) --files-with-matches '^%!' src/*.cc) TST_SOURCES := $(patsubst src/%.cc,inst/test/%.cc-tst,$(CC_TST_SOURCES)) inst/test: @mkdir -p "$@" $(TST_SOURCES): inst/test/%.cc-tst: src/%.cc | inst/test @echo "Extracting tests from $< ..." @$(RM) -f "$@" "$@-t" @( echo "## Generated from $<"; \ $(GREP) '^%!' "$<") > "$@" tests: $(TST_SOURCES) audio-2.0.8/NEWS0000644000000000000000000000626414506546342011530 0ustar0000000000000000Summary of important user-visible changes for releases of the audio package =============================================================================== audio-2.0.8 Release Date: 2023-10-02 =============================================================================== ** bugfix midisend with multiple messages ** audioOscillator: update to allow functioning in < octave 6 ** minor updated for Octave 9+ compatibility =============================================================================== audio-2.0.7 Release Date: 2023-07-26 =============================================================================== ** bugfix crash on create mididevice without a midisystem ** minor updates to documentation =============================================================================== audio-2.0.6 Release Date: 2023-07-20 =============================================================================== ** minor updates for octave dld classes ** NEW FUNCTIONS: - erb2hz and hz2erb - bark2hz and hz2bark - mel2hz and hz2mel - audioOscillator ** minor updates to documentation =============================================================================== audio-2.0.5 Release Date: 2022-07-20 =============================================================================== ** minor updates for octave dld classes ** NEW FUNCTIONS: - @octave_midi/hasdata - midicallback - midiflush ** midirecv always returns abs timestamp from midimsg results ** added qt5 documentation =============================================================================== audio-2.0.4 Release Date: 2021-12-05 =============================================================================== ** minor updates for octave 7 compatibility =============================================================================== audio-2.0.3 Release Date: 2021-10-22 =============================================================================== ** midifilewrite: updates for time processing ** midifileread: updates reading sysex messages ** midimsg: allow horzcat to add multiple messages ** midisend: dont send metadata to mididevice =============================================================================== audio-2.0.2 Release Date: 2020-10-13 =============================================================================== ** added 'other' field to midifileinfo structure ** added metaevent type to midimsg ** additional FXX type message file reading ** added format specifier to midifileread ** bugfix ref count on midi_object unique_clone ** minor documentation updates =============================================================================== audio-2.0.1 Release Date: 2020-05-08 =============================================================================== ** added additional midimsg property set/get ** added midimsgtype enumeration class ** minor documentation updates =============================================================================== audio-2.0.0 Release Date: 2020-01-03 =============================================================================== ** Added midi functions ** remove obsolete / old audio functions audio-2.0.8/README.md0000644000000000000000000000227614506546342012307 0ustar0000000000000000Introduction ============ The Octave Audio package provides MIDI device functions for GNU Octave Requirements ============ * Octave >= 4.0.0 * [RTMIDI](https://github.com/thestk/rtmidi) library and include files Installing ========== To install, run the octave package manager: 1. If running Windows, the package may already be installed: pkg list audio 2. To install from source forge: pkg install -forge audio 3. To install from a local tarball. pkg install audio-XXXXXXX.tar.gz Where XXXXXXX is the version of the the downloaded tarball. Usage: ====== 1. Load the package. pkg load audio (Required each time Octave is started) 2. Type help audio at the octave prompt to display a list of functions Documentation ============== See the function list for octave-audio on [octave github](https://gnu-octave.github.io/octave-audio/functions/) for function documentation. See the online manual for octave-audio on [octave github](https://gnu-octave.github.io/octave-audio/manual/) for complete documentation. Read the Octave [Octave audio package wiki](https://wiki.octave.org/Audio_package) for install tips and examples. Known limitations and bugs ========================== audio-2.0.8/doc/0000755000000000000000000000000014506546342011566 5ustar0000000000000000audio-2.0.8/doc/audio.css0000644000000000000000000000133714506546342013405 0ustar0000000000000000pre.example, .header, .float-caption, hr { /* base00 ~ body text in light solarized theme */ color: #657b83; border-color: #657b83; } pre.example { /* base3 ~ background color in light solarized theme */ background-color: #fdf6e3; padding: 0.5em; } table.cartouche { border: 1px solid #948473; background-color: #FFE3C6; width: 100%; } table.cartouche td, table.cartouche th { border: 1px solid #948473; padding: 4px 4px; } /* newer texinfo generation styles */ div.example { /* base00 ~ body text in light solarized theme */ color: #657b83; border-color: #657b83; } pre.example-preformatted { /* base3 ~ background color in light solarized theme */ background-color: #fdf6e3; padding: 0.5em; } audio-2.0.8/doc/audio.html0000644000000000000000000040063614506546342013566 0ustar0000000000000000 Octave Audio - Audio Toolkit for GNU octave

Introduction

The Audio toolkit is a set of functions for manipulating MIDI devices and files for GNU Octave


1 Installing and loading

The Audio toolkit must be installed and then loaded to be used.

It can be installed in GNU Octave directly from octave-forge, or can be installed in an off-line mode via a downloaded tarball.

The toolkit has a dependency on the RTMIDI library (https://github.com/thestk/rtmidi), so it must be installed in order to successfully install the toolkit.

For Fedora: yum install rtmidi-devel

For Ubuntu: apt install librtmidi-dev

The toolkit must be then be loaded once per each GNU Octave session in order to use its functionality.

1.1 Windows install

If running in Windows, the package may already be installed, to check run:

pkg list audio

Otherwise it can be installed by installing the requirements and then using the online or offline install method.

1.2 Online Direct install

With an internet connection available, the Audio package can be installed from octave-forge using the following command within GNU Octave:

pkg install -forge audio

The latest released version of the toolkit will be downloaded and installed.

1.3 Off-line install

With the Audio toolkit package already downloaded, and in the current directory when running GNU Octave, the package can be installed using the following command within GNU Octave:

pkg install audio-2.0.8.tar.gz

1.4 Loading

Regardless of the method of installing the Audio toolkit, in order to use its functions, the toolkit must be loaded using the pkg load command:

pkg load audio

The toolkit must be loaded on each GNU Octave session.


2 Basic Usage Overview

The Audio package must be loaded each time a GNU Octave session is started:

pkg load audio

An overview of the package can be displayed by running help audio

Help for each function can be displayed by help thefunctionname

ie:

help mididevice

2.1 Conversion Functionality

The following functions are available to convert to and from Hz frequency:

hz2erb, erb2hz

Conversion between hz and equivalent rectangular bandwidths (ERP) frequency scales

hz2mel, mel2hz

Conversion between hz and equivalent mel frequency scales

hz2bark, bark2hz

Conversion between hz and equivalent bark frequency scales

2.2 Waveform Generation

The audioOscillator function provides a method of creating a waveform generator for sine, square and sawtooth waveforms.

% create a sawtooth audio generator
osc = audioOscillator("sawtooth");
% get a frame of data
data = osc();
% plot the data
plot(data);

2.3 MIDI Functionality

The Audio toolkit provides 3 main types of MIDI functionality:

Device functions

These are functions that directly allow opening, sending and receiving MIDI messages.

Controller functions

Functions that provide a layer on top of the device functions for using MIDI controls.

File functions

Basic functions that allow read and write of MIDI files.

To read and write to a MIDI device, a MIDI device object must be created, using the name or id of a known MIDI device as provided by the mididevinfo function.

MIDI devices can then be read using the midisend and midireceive functions that use midimsg type to encapsulate the MIDI data.

% list the midi devices
devs = mididevinfo

% open a midi device, specifying the first input and output MIDI device
dev = mididevice("input", devs.input{1}.ID, "output", devs.output{1}.ID)

% receive data and echo it through the output port
while true
  msg = midireceive(dev, 1);
  if !isempty(msg)
    midisend(msg);
  endif
endwhile

3 Function Reference

The functions currently available in the Audio toolkit are described below:


3.1 MIDI Device Interface

3.1.1 @octave_midi/hasdata

: tf = hasdata (dev)

Return whether there is data available to read

Inputs

dev - a octave midi device opened using mididevice.

Outputs

tf - true if device has data available to read

See also: mididevice.

3.1.2 mididevice

: dev = mididevice (mididev)
: dev = mididevice (mididir, mididev)
: dev = mididevice ("input", midiindev, "output", midioutdev)

Create a midi device using the input parameters.

When a single device name or id is provided, attempt to create the midi device using the same name for both input and output.

Otherwise, use the name or device id for the given input or output direction.

Inputs

mididev - name or id of device to load.
mididir - midi direction of "input" or "output"
midiindev - midi input name or id
midioutdev - midi output name or id

Outputs

dev - octave_midi class for opened device

Properties

Input - Input device name (read only).
Output - Output device name (read only).
InputID - Input device id (read only).
OutputID - Output device id (read only).

Examples

Open midi device with ID of 0.

> dev = mididevice(0);

  mididevice connected to
    input: "SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0" (1)
    output: "SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0" (0)

Open a named midi device:

> dev = mididevice("SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0");

  mididevice connected to
    input: "SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0" (1)
    output: "SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0" (0)

See also: mididevinfo.

3.1.3 mididevinfo

: devlist = mididevinfo ()
: mididevinfo ()

Retrieve the midi devices detected within the system.

The list will be stored with variable devlist as either a input or output device. If no output variable is provided, the devices will be displayed.

Inputs

None

Outputs

devlist - a structure containing the midi device information

Examples

Display the known devices of the system.

> mididevinfo

 MIDI devices available
 ID Direction Interface  Name
  0 output    Alsa       Midi Through:Midi Through Port-0 14:0
  1 output    Alsa       Ensoniq AudioPCI:ES1371 16:0
  2 output    Alsa       SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0
  3 input     Alsa       Midi Through:Midi Through Port-0 14:0
  4 input     Alsa       Ensoniq AudioPCI:ES1371 16:0
  5 input     Alsa       SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0

Assign variable mididevices with the values from the known devices

> mididevices = mididevinfo

 mididevices =
  scalar structure containing the fields:
    input =
    {
      [1,1] =
        scalar structure containing the fields:
          Name = SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0
          Interface = Alsa
          ID =  0
    }
    output =
    {
      [1,1] =
        scalar structure containing the fields:
          Name = SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0
          Interface = Alsa
          ID =  1
    }

See also: mididevice.

3.1.4 midiflush

: midiflush (dev)

Flush the receive buffers on a midi device

Inputs

dev - midi device opened using mididevice

Outputs

None

Examples

Flush a midi device

 midiflush(dev);

See also: mididevice, midireceive.

3.1.5 midimsg

: msg = midimsg (0)
: msg = midimsg (type ....)
: msg = midimsg ("note", channel, note, velocity, duration, timestamp)
: msg = midimsg ("noteon", channel, note, velocity, timestamp)
: msg = midimsg ("noteoff", channel, note, velocity, timestamp)
: msg = midimsg ("programchange", channel, prog, timestamp)
: msg = midimsg ("controlchange", channel, ccnum, ccval, timestamp)
: msg = midimsg ("polykeypressure", channel, note, keypressure, timestamp)
: msg = midimsg ("channelpressure", channel, chanpressure, timestamp)
: msg = midimsg ("localcontrol", channel, localcontrol, timestamp)
: msg = midimsg ("pitchbend", channel, pitchchange, timestamp)
: msg = midimsg ("polyon", channel, timestamp)
: msg = midimsg ("monoon", channel, monochannels, timestamp)
: msg = midimsg ("omnion", channel, timestamp)
: msg = midimsg ("omnioff", channel, timestamp)
: msg = midimsg ("allsoundoff", channel, timestamp)
: msg = midimsg ("allnotesoff", channel, timestamp)
: msg = midimsg ("resetallcontrollers", channel, timestamp)
: msg = midimsg ("start", timestamp)
: msg = midimsg ("stop", timestamp)
: msg = midimsg ("continue", timestamp)
: msg = midimsg ("systemreset", timestamp)
: msg = midimsg ("activesensing", timestamp)
: msg = midimsg ("timingclock", timestamp)
: msg = midimsg ("systemexclusive", timestamp)
: msg = midimsg ("systemexclusive", bytes, timestamp)
: msg = midimsg ("eox", timestamp)
: msg = midimsg ("data", bytes, timestamp)
: msg = midimsg ("songselect", song, timestamp)
: msg = midimsg ("songpositionpointer", songposition, timestamp)
: msg = midimsg ("tunerequest", timestamp)
: msg = midimsg ("miditimecodequarterframe", timeseq, timevalue, timestamp)

Create a midimsg object

If the input parameter is 0, create an empty midi message object Otherwise the first variable is the type of message to create, followed by the additional parameters for the message.

For each message type, the timestamp value is optional.

Inputs

type - string message type or a midimsgtype.
timestamp - optional seconds time stamp for the event
channel - the channel to use for the message (1..16)
note - the value of the note to play/stop
velocity - the velocity value for a note on/off, with 0 stopping a note from sounding.
duration - seconds between starting and stopping a note when created a ’note’ message.
prog - program number when doing a program change message.
ccnum - control change control number.
ccval - control change control value.
keypressure - key pressure value when creating a key pressure message.
chanpressure - channel pressure value when creating a channelpressure message.
pitchchange - pitch change value when creating a pitch bend message.
localcontrol - boolean value when creating a localcontrol message.
monochannels - channels specified for a mono on message.
bytes - array of data in range of 0 to 127 specified as part of a data message or system exclusive message.
song - song selection number for a song selection message.
songposition - song position value for a song position message.
timeseq - timecode sequence number for a miditimecodequarterframe message.
timevalue - timecode value number for a miditimecodequarterframe message.

Outputs

msg - a midimsg object containing the midi data of the message

Properties

timestamp - timestamp of the message, or an array or timestamps if the the message is a compound message.
msgbytes - the raw message bytes that make up the MIDI message.
nummsgbytes - the number of message bytes that make up the MIDI message.
type - string or midimsgtype that represents the message type.
channel - the channel number for message.
note - the note value for message (Only valid for noteon/off and polykeypressure).
velocity - the velocity value for message (Only valid for noteon/off).
keypressure - the keypressure value for message (Only valid for polykeypressure).
channelpressure - the chanpressure value for message (Only valid for channelpressure).
localcontrol - the localcontrol value for message (Only valid for localcontrol messages).
monochannels - channels specified for a mono on message.
program - program number specified for a program change message.
ccnumber - control change number specified for a control change message.
ccvalue - control change value specified for a control change message.
song - song number for a song selection message.
songposition - song position value for a song position message.
pitchchange - pitch change value for a pitch bend message.
timecodesequence - timecode sequence number for a miditimecodequarterframe message.
timecodevalue - timecode value number for a miditimecodequarterframe message.

Examples

Create a note on/off pair with a duration of 1.5 seconds

 msg = midimsg('note', 1, 60, 100, 1.5)

Create a separate note on/off pair with a time between them of 1.5 seconds

 msg = [midimsg('noteon', 1, 60, 100, 0), midimsg('noteoff', 1, 60, 0, 1.5)]

Create a system reset message

 msg = midimsg('systemreset')

See also: midifileread, midisend, midireceive, midimsgtype.

3.1.6 midireceive

: midimsg = midireceive (dev)
: midimsg = midireceive (dev, maxmsg)

Attempt to receive midi messages from a midi device.

Inputs

dev - a octave midi device opened using mididevice.
maxmsg - Maximum number of messages to retrieve. If not specified, the function will attempt to get all pending.

Outputs

midimsg - a midimsg containing the messages retrieved from the device.
If no messages are available, midimsg will be empty.

Examples

Open device 0, and poll and display read messages

 dev = mididevice(0);
 while true
    mx = midireceive(dev);
    if !isempty(mx)
      % display message
      mx
    endif
 endwhile

See also: mididevice, midisend.

3.1.7 midisend

: midisend (dev, msg)
: midisend (dev, ...)

Send a midimsg to a midi device

Inputs

dev - midi device opened using mididevice
msg - a midi message class with messages to send to the midi device
If the msg isn’t a midimsg class, the input data is expected to be in same format as the inputs to a midimsg object.

Outputs

None

Examples

Send a note on/off command to a opened midi device dev

 midisend(dev, midimsg("note", 1, 60, 100, 2.0));

See also: midimsg, mididevice, midireceive.


3.2 MIDI Controller Interface

3.2.1 midicallback

: oldhandle = midicallback (midicontrolsObj, functionHandle)
: oldhandle = midicallback (midicontrolsObj, [])
: currhandle = midicallback (midicontrolsObj)

Get, set or clear the midicontrol object callback.

Inputs

midicontrolObj - control object created using midicontrols.

functionHandle - function handle to set for call back. If it is [], the callback function will be cleared.

NOTE: currently anonymous functions will not work.

NOTE: callbacks should be cleared before losing all references to the midicontrols object.

Outputs

oldhandle The previously set midicallback function handle when setting a new callback.

currhandle The current set midicallback function handle.

Examples

Set a callback on a midicontrols object

 ctrl = midicontrols(2001)
 function dispCallback(ctrl),disp(midiread(ctrl)),endfunction;
 midicallback(ctrl, @dispCallback);

Clear the callback on a midicontrols object

 ctrl = midicontrols(2001)
 midicallback(ctrl, []);

Get the current callback on a midicontrols object

 ctrl = midicontrols(2001)
 cb = midicallback(ctrl);

See also: midicontrols, midisync, midiread.

3.2.2 midicontrols

: obj = midicontrols ()
: obj = midicontrols (ctrlid)
: obj = midicontrols (ctrlid, initialvalues)
: obj = midicontrols (__, propertyname, propertyvalue)

Create a midi controls object

Inputs

ctrlid - single control id or array of control ids to monitor, or [] to use any controller.
initialvalues - initial values to use for controls. It should be the same size as ctrlid
propertyname, propertyvalue - properties to set on the controller. If a device is not specified the value from getpref("midi", "DefaultDevice", 0) will be used.

Known properties are:

mididevice

name of the mididevice to monitor.

outputmode

the scaling mode for values: ’rawmidi’ will return values between 0 .. 127, ’normalized’ will use values between 0 .. 1.

Outputs

obj - returns a midicontrols object

Examples

Create a midicontrols object monitoring control id 2001 on the default midi device

 ctrl = midicontrols(2001)

Create a midicontrols object monitoring control id 2001 on a a non default device

 ctrl = midicontrols(2001, 'mididevice', 1)

See also: midiread, midisync.

3.2.3 midiid

: [ctrlid, dev] = midiid ()

Scan for control messages from midi devices to get the id of the device

Function will display a prompt for the user to move the midi control and return when a control messages is detected or ctrl-C is pressed.

Inputs

None

Outputs

ctrlid - control id made from the controller channel * 1000 + controller number.
dev = name of the midi device the controller was detected on.

Examples

Monitor midi devices for first moving controller

 [ctrlid, devname] = midiid()

See also: mididevinfo, midicontrols.

3.2.4 midiread

: val = midiread (midicontrolsObj)

Read current values of midi controls

Inputs

midicontrolObj - control object created using midicontrols

Outputs

val single value or array of current values from the midi device.

Examples

Read current value of midicontrols with a ctrlid 2001 on the default midi device.

 ctrl = midicontrols(2001)
 val = midiread(ctrl);

Read current value of midicontrols with a ctrlid 2001 on a non default midi device.

 ctrl = midicontrols(2001, 'mididevice', 1)
 val = midiread(ctrl);

See also: midicontrols, midisync.

3.2.5 midisync

: midisync (midicontrolsObj)
: midisync (midicontrolsObj, ctrlvalues)

Send the values of control object to the control, using ctrlvalues values if specified instead

Inputs

midicontrolObj - control object created using midicontrols
ctrlvalues - values to send to the controls instead of initial values

Outputs

None

Examples

Send sync command to a midicontrols with a ctrlid 2001 to set a value of 1

 ctrl = midicontrols(2001)
 midisync(ctrl, 1);

See also: midicontrols.


3.3 MIDI File I/O

3.3.1 ismidifile

: ismidi = ismidifile (filename)

Check if filename is a midi file.

The function only checks whether it is an existing file and the file starts with a valid ’MThd’ header.

Non existing files, or files that do not meet the header criteria will return false.

Inputs

filename - filename of file to check.

Outputs

ismidi - true if it is a midi file, false otherwise

See also: midifileread, midifilewrite.

3.3.2 midifileinfo

: info = midifileinfo (filename)

Read MIDI file and display information about the tracks and data

Inputs

filename - filename of file to open.

Outputs

info - structure of the midi file data with the following fields:

filename

the name of the file

header

The header block information

track

An array of tracks read from the file

other

An array of non-track midi blocks read from the file

See also: midifileread.

3.3.3 midifileread

: msg = midifileread (filename, [propertyname, propertyvalue …])

Read MIDI file into a midimsg

Inputs

filename - filename of file to open.
propertyname, properyvalue - optional propertyname/value pairs.

Known property values are:

includemetaevents

A True/False value to include MetaEvents in the out message list.

Outputs

msg - a midimsg struct containing the messages read from the file

See also: midifileinfo, midimsg.

3.3.4 midifilewrite

: midifilewrite (filename, msgs)
: midifilewrite (filename, msgs, optionname, optionvalue)

Write a midifile

Inputs

filename - filename of file to open.
msg - a midimsg struct or a cell array of midimsg containing data to write to file
optionname, optionvalue - option value/name pairs

Known options are:

format

MIDI file format number. (0 (default), 1, 2)

Where format is 0, if a cell array is passed to midifilewrite, the midimsg values will be concatenated together before saving.

Were format is not 0, the cell array is treated as tracks of misimsg.

Outputs

None

See also: midifileread, midimsg.


3.4 Enumerations

3.4.1 midimsgtype

: midimsgtype

A midimsg type enumeration for values of the midimsg type.

Enumeration values are:

DataStopSongPositionPointer
PolyOnPolyKeyPressureNoteOff
EOXActiveSensingSongSelect
MonoOnChannelPressureControlChange
TimingClockSystemResetAllSoundOff
OmniOnPitchBendProgramChange
StartTuneRequestResetAllControllers
OmniOffUndefinedSystemExclusive
ContinueMIDITimeCodeQuarterFrameLocalControl
AllNotesOffMetaEvent

The enumeration value can be used instead of a string in midimsg creation.

Examples

Use both a string and a midimsgtype for the type parameter of a midimsg.


 # both statements are equivalent
 msg = midimsg('NoteOn', 1, 60, 100);
 msg = midimsg(midimsgtype.NoteOn, 1, 60, 100);
 

See also: midimsg.


3.5 Waveform Generation

3.5.1 audioOscillator

: audioOscillator

Generate sine, sawtool and square waveforms

Methods

: obj = audioOscillator ()
: obj = audioOscillator (signalTypeValue)
: obj = audioOscillator (signalTypeValue, frequencyValue)
: obj = audioOscillator (__, propertyname, propertyvalue)

Create a audioOscillator object

Inputs

signalTypeValue - signal type of "sine" (default), "square", "sawtooth".
frequencyValue - hz frequency value of waveform (default 100).
propertyname, propertyvalue - properties to set on the object.

Known properties are:

SignalType

signal type of "sine" (default), "square" or "sawtooth". (readonly)

Frequency

frequency of the waveform (default 100)

Amplitude

amplitude of the signal (default 1)

SampleRate

sample rate of the signal (default 44100)

PhaseOffset

phase offset of signal 0 (default) - 1 (readonly)

DutyCycle

dutycycle of the signal 0 - 1 (default 0.5) when signal is a square wave.

SamplePerFrame

Samples per frame as returned from () (default 512)

MaxSamplePerFrame

Max samples per frame (default 192000)

DCOffset

DC Offset of signal (default 0)

Width

Width of sawtooth (default 1)

OutputDataType

Output data type of ’single’ or ’double’ (default ’double’)

Outputs

obj - signalGenerator object

Examples

Create a 100 hz sine wave and plot first 512 samples

 sinosc = audioOscillator
 data = sinosc();
 plot(data);

Create a 2 hz square wave with duty cycle of 0.5

 sqosc = audioOscillator('square', 'DutyCycle', 0.50,  'Frequency', 2);
: data = obj()

Generate a frame of waveform data from the generator function

Inputs

obj - signalGenerator object

Outputs

data - waveform data

: release(obj)

Release resources of generator

Inputs

obj - signalGenerator object

Outputs

None


3.6 Measurements

3.6.1 bark2hz

: hz = bark2hz (bark)

Convert equivalent Bark Frequency to Hz.

Inputs

bark - input frequency in bark.

Outputs

hz - Output frequency in Hz.

References

Traunmüller, Hartmut. Analytical Expressions for the Tonotopic Sensory Scale. Journal of the Acoustical Society of America. Vol. 88, Issue 1, 1990

See also: hz2bark.

3.6.2 erb2hz

: hz = erb2hz (erb)

Convert equivalent rectangular bandwidth (ERB) to Hz.

Inputs

erb - input frequency in erb.

Outputs

hz - Output frequency in Hz.

References

Glasberg and Moore. Derivation of Auditory Filter Shapes from Notched-Noise Data. Hearing Research. Vol. 47, 1990

See also: hz2erb.

3.6.3 hz2bark

: bark = hz2bark (hz)

Convert hz to equivalent bark frequency

Inputs

hz - input frequency in Hz.

Outputs

bark - Output frequency as a bark value

Examples

Convert 4000 Hz to erb

erb = hz2erb(4000)

References

Traunmüller, Hartmut. Analytical Expressions for the Tonotopic Sensory Scale. Journal of the Acoustical Society of America. Vol. 88, Issue 1, 1990

See also: bark2hz.

3.6.4 hz2erb

: erb = hz2erb (hz)

Convert hz to equivalent rectangular bandwidth (ERB)

Inputs

hz - input frequency in Hz.

Outputs

erb - Output frequency as a erb value

Examples

Convert 4000 Hz to erb

erb = hz2erb(4000)

Convert a range of Hz to erb

erb = hz2erb(4000:100:5000)

References

Glasberg and Moore. Derivation of Auditory Filter Shapes from Notched-Noise Data. Hearing Research. Vol. 47, 1990

See also: erb2hz.

3.6.5 hz2mel

: mel = hz2mel (hz)

Convert hz to equivalent mel frequency.

Inputs

hz - input frequency in Hz.

Outputs

mel - Output frequency as a mel value

Examples

Convert 4000 Hz to mel

mel = hz2mel(4000)

Convert a range of Hz to mel

mel = hz2erb(4000:100:5000)

References

O’Shaghnessy, Douglas. Speech Communication: Human and Machine. Reading, MA: Addison-Wesley Publishing Company, 1987

See also: mel2hz.

3.6.6 mel2hz

: hz = mel2hz (mel)

Convert equivalent mel frequency to Hz.

Inputs

mel - input frequency in mel.

Outputs

hz - Output frequency in Hz.

References

O’Shaghnessy, Douglas. Speech Communication: Human and Machine. Reading, MA: Addison-Wesley Publishing Company, 1987

See also: hz2mel.


Appendix A GNU General Public License

Version 3, 29 June 2007
Copyright © 2007 Free Software Foundation, Inc. http://fsf.org/

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.

Preamble

The GNU General Public License is a free, copyleft license for software and other kinds of works.

The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program—to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. 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 them 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 prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.

For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. 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.

Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.

For the developers’ and authors’ protection, the GPL clearly explains that there is no warranty for this free software. For both users’ and authors’ sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.

Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users’ freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.

Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.

The precise terms and conditions for copying, distribution and modification follow.

TERMS AND CONDITIONS

  1. Definitions.

    “This License” refers to version 3 of the GNU General Public License.

    “Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.

    “The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations.

    To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work.

    A “covered work” means either the unmodified Program or a work based on the Program.

    To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.

    To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.

    An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.

  2. Source Code.

    The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work.

    A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.

    The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.

    The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work’s System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.

    The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.

    The Corresponding Source for a work in source code form is that same work.

  3. Basic Permissions.

    All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.

    You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.

    Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.

  4. Protecting Users’ Legal Rights From Anti-Circumvention Law.

    No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.

    When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work’s users, your or third parties’ legal rights to forbid circumvention of technological measures.

  5. Conveying Verbatim Copies.

    You may convey 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; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.

    You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.

  6. Conveying Modified Source Versions.

    You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:

    1. The work must carry prominent notices stating that you modified it, and giving a relevant date.
    2. The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”.
    3. You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
    4. If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.

    A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation’s users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.

  7. Conveying Non-Source Forms.

    You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:

    1. Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
    2. Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
    3. Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
    4. Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
    5. Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.

    A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.

    A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.

    “Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.

    If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).

    The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.

    Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.

  8. Additional Terms.

    “Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.

    When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.

    Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:

    1. Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
    2. Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
    3. Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
    4. Limiting the use for publicity purposes of names of licensors or authors of the material; or
    5. Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
    6. Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.

    All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.

    If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.

    Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.

  9. Termination.

    You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).

    However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.

    Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.

    Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.

  10. Acceptance Not Required for Having Copies.

    You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.

  11. Automatic Licensing of Downstream Recipients.

    Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.

    An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party’s predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.

    You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.

  12. Patents.

    A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor’s “contributor version”.

    A contributor’s “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.

    Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor’s essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.

    In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.

    If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient’s use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.

    If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.

    A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.

    Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.

  13. No Surrender of Others’ Freedom.

    If 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 convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.

  14. Use with the GNU Affero General Public License.

    Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.

  15. Revised Versions of this License.

    The Free Software Foundation may publish revised and/or new versions of the GNU 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 that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.

    If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy’s public statement of acceptance of a version permanently authorizes you to choose that version for the Program.

    Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.

  16. Disclaimer of Warranty.

    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.

  17. Limitation of Liability.

    IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 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.

  18. Interpretation of Sections 15 and 16.

    If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.

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 state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found.

one line to give the program's name and a brief idea of what it does.  
Copyright (C) year name of author

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 3 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, see http://www.gnu.org/licenses/.

Also add information on how to contact you by electronic and paper mail.

If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:

program Copyright (C) year name of author 
This program 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, your program’s commands might be different; for a GUI interface, you would use an “about box”.

You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see http://www.gnu.org/licenses/.

The GNU 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. But first, please read http://www.gnu.org/philosophy/why-not-lgpl.html.


Index

Jump to:   A   B   C   E   F   H   I   L   M   O   W  
Index Entry  Section

A
audioOscillator: Waveform Generation

B
bark2hz: Measurements
Basic Usage Overview: Basic Usage Overview

C
Conversion Functionality: Basic Usage Overview
copyright: Copying

E
Enumerations: Enumerations
erb2hz: Measurements

F
Function Reference: Function Reference

H
hasdata: MIDI Device Interface
hz2bark: Measurements
hz2erb: Measurements
hz2mel: Measurements

I
Installing and loading: Installing and loading
ismidifile: MIDI File I/O

L
Loading: Installing and loading

M
Measurements: Measurements
mel2hz: Measurements
MIDI Controller Interface: MIDI Controller Interface
MIDI Device Interface: MIDI Device Interface
MIDI File I/O: MIDI File I/O
MIDI Functionality: Basic Usage Overview
midicallback: MIDI Controller Interface
midicontrols: MIDI Controller Interface
mididevice: MIDI Device Interface
mididevinfo: MIDI Device Interface
midifileinfo: MIDI File I/O
midifileread: MIDI File I/O
midifilewrite: MIDI File I/O
midiflush: MIDI Device Interface
midiid: MIDI Controller Interface
midimsg: MIDI Device Interface
midimsgtype: Enumerations
midiread: MIDI Controller Interface
midireceive: MIDI Device Interface
midisend: MIDI Device Interface
midisync: MIDI Controller Interface

O
Off-line install: Installing and loading
Online install: Installing and loading

W
warranty: Copying
Waveform Generation: Basic Usage Overview
Waveform Generation: Waveform Generation
Windows install: Installing and loading

audio-2.0.8/doc/audio.info0000644000000000000000000021751114506546342013553 0ustar0000000000000000This is audio.info, produced by makeinfo version 7.0.2 from audio.texi. INFO-DIR-SECTION Math START-INFO-DIR-ENTRY * Octave Audio: (audio). Audio Toolkit for Octave END-INFO-DIR-ENTRY  File: audio.info, Node: Top, Next: Installing and loading, Up: (dir) Introduction ************ The Audio toolkit is a set of functions for manipulating MIDI devices and files for GNU Octave * Menu: * Installing and loading:: Installing and loading the Audio toolkit * Basic Usage Overview:: Basic Usage Overview * Function Reference:: Audio toolkit functions * Copying:: Copying * Index:: Index  File: audio.info, Node: Installing and loading, Next: Basic Usage Overview, Prev: Top, Up: Top 1 Installing and loading ************************ The Audio toolkit must be installed and then loaded to be used. It can be installed in GNU Octave directly from octave-forge, or can be installed in an off-line mode via a downloaded tarball. The toolkit has a dependency on the RTMIDI library (), so it must be installed in order to successfully install the toolkit. For Fedora: ‘yum install rtmidi-devel’ For Ubuntu: ‘apt install librtmidi-dev’ The toolkit must be then be loaded once per each GNU Octave session in order to use its functionality. 1.1 Windows install =================== If running in Windows, the package may already be installed, to check run: pkg list audio Otherwise it can be installed by installing the requirements and then using the online or offline install method. 1.2 Online Direct install ========================= With an internet connection available, the Audio package can be installed from octave-forge using the following command within GNU Octave: pkg install -forge audio The latest released version of the toolkit will be downloaded and installed. 1.3 Off-line install ==================== With the Audio toolkit package already downloaded, and in the current directory when running GNU Octave, the package can be installed using the following command within GNU Octave: pkg install audio-2.0.8.tar.gz 1.4 Loading =========== Regardless of the method of installing the Audio toolkit, in order to use its functions, the toolkit must be loaded using the pkg load command: pkg load audio The toolkit must be loaded on each GNU Octave session.  File: audio.info, Node: Basic Usage Overview, Next: Function Reference, Prev: Installing and loading, Up: Top 2 Basic Usage Overview ********************** The Audio package must be loaded each time a GNU Octave session is started: pkg load audio An overview of the package can be displayed by running ‘help audio’ Help for each function can be displayed by ‘help thefunctionname’ ie: help mididevice 2.1 Conversion Functionality ============================ The following functions are available to convert to and from Hz frequency: hz2erb, erb2hz Conversion between hz and equivalent rectangular bandwidths (ERP) frequency scales hz2mel, mel2hz Conversion between hz and equivalent mel frequency scales hz2bark, bark2hz Conversion between hz and equivalent bark frequency scales 2.2 Waveform Generation ======================= The ‘audioOscillator’ function provides a method of creating a waveform generator for sine, square and sawtooth waveforms. % create a sawtooth audio generator osc = audioOscillator("sawtooth"); % get a frame of data data = osc(); % plot the data plot(data); 2.3 MIDI Functionality ====================== The Audio toolkit provides 3 main types of MIDI functionality: Device functions These are functions that directly allow opening, sending and receiving MIDI messages. Controller functions Functions that provide a layer on top of the device functions for using MIDI controls. File functions Basic functions that allow read and write of MIDI files. To read and write to a MIDI device, a MIDI device object must be created, using the name or id of a known MIDI device as provided by the mididevinfo function. MIDI devices can then be read using the midisend and midireceive functions that use midimsg type to encapsulate the MIDI data. % list the midi devices devs = mididevinfo % open a midi device, specifying the first input and output MIDI device dev = mididevice("input", devs.input{1}.ID, "output", devs.output{1}.ID) % receive data and echo it through the output port while true msg = midireceive(dev, 1); if !isempty(msg) midisend(msg); endif endwhile  File: audio.info, Node: Function Reference, Next: Copying, Prev: Basic Usage Overview, Up: Top 3 Function Reference ******************** The functions currently available in the Audio toolkit are described below: * Menu: * MIDI Device Interface:: * MIDI Controller Interface:: * MIDI File I/O:: * Enumerations:: * Waveform Generation:: * Measurements::  File: audio.info, Node: MIDI Device Interface, Next: MIDI Controller Interface, Up: Function Reference 3.1 MIDI Device Interface ========================= 3.1.1 @octave_midi/hasdata -------------------------- -- : TF = hasdata (DEV) Return whether there is data available to read Inputs ...... DEV - a octave midi device opened using mididevice. Outputs ....... TF - true if device has data available to read See also: mididevice. 3.1.2 mididevice ---------------- -- : DEV = mididevice (MIDIDEV) -- : DEV = mididevice (MIDIDIR, MIDIDEV) -- : DEV = mididevice ("input", MIDIINDEV, "output", MIDIOUTDEV) Create a midi device using the input parameters. When a single device name or id is provided, attempt to create the midi device using the same name for both input and output. Otherwise, use the name or device id for the given input or output direction. Inputs ...... MIDIDEV - name or id of device to load. MIDIDIR - midi direction of "input" or "output" MIDIINDEV - midi input name or id MIDIOUTDEV - midi output name or id Outputs ....... DEV - octave_midi class for opened device Properties .......... INPUT - Input device name (read only). OUTPUT - Output device name (read only). INPUTID - Input device id (read only). OUTPUTID - Output device id (read only). Examples ........ Open midi device with ID of 0. > dev = mididevice(0); mididevice connected to input: "SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0" (1) output: "SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0" (0) Open a named midi device: > dev = mididevice("SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0"); mididevice connected to input: "SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0" (1) output: "SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0" (0) See also: mididevinfo. 3.1.3 mididevinfo ----------------- -- : DEVLIST = mididevinfo () -- : mididevinfo () Retrieve the midi devices detected within the system. The list will be stored with variable DEVLIST as either a input or output device. If no output variable is provided, the devices will be displayed. Inputs ...... None Outputs ....... DEVLIST - a structure containing the midi device information Examples ........ Display the known devices of the system. > mididevinfo MIDI devices available ID Direction Interface Name 0 output Alsa Midi Through:Midi Through Port-0 14:0 1 output Alsa Ensoniq AudioPCI:ES1371 16:0 2 output Alsa SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0 3 input Alsa Midi Through:Midi Through Port-0 14:0 4 input Alsa Ensoniq AudioPCI:ES1371 16:0 5 input Alsa SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0 Assign variable MIDIDEVICES with the values from the known devices > mididevices = mididevinfo mididevices = scalar structure containing the fields: input = { [1,1] = scalar structure containing the fields: Name = SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0 Interface = Alsa ID = 0 } output = { [1,1] = scalar structure containing the fields: Name = SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0 Interface = Alsa ID = 1 } See also: mididevice. 3.1.4 midiflush --------------- -- : midiflush (DEV) Flush the receive buffers on a midi device Inputs ...... DEV - midi device opened using mididevice Outputs ....... None Examples ........ Flush a midi device midiflush(dev); See also: mididevice, midireceive. 3.1.5 midimsg ------------- -- : MSG = midimsg (0) -- : MSG = midimsg (TYPE ....) -- : MSG = midimsg ("note", CHANNEL, NOTE, VELOCITY, DURATION, TIMESTAMP) -- : MSG = midimsg ("noteon", CHANNEL, NOTE, VELOCITY, TIMESTAMP) -- : MSG = midimsg ("noteoff", CHANNEL, NOTE, VELOCITY, TIMESTAMP) -- : MSG = midimsg ("programchange", CHANNEL, PROG, TIMESTAMP) -- : MSG = midimsg ("controlchange", CHANNEL, CCNUM, CCVAL, TIMESTAMP) -- : MSG = midimsg ("polykeypressure", CHANNEL, NOTE, KEYPRESSURE, TIMESTAMP) -- : MSG = midimsg ("channelpressure", CHANNEL, CHANPRESSURE, TIMESTAMP) -- : MSG = midimsg ("localcontrol", CHANNEL, LOCALCONTROL, TIMESTAMP) -- : MSG = midimsg ("pitchbend", CHANNEL, PITCHCHANGE, TIMESTAMP) -- : MSG = midimsg ("polyon", CHANNEL, TIMESTAMP) -- : MSG = midimsg ("monoon", CHANNEL, MONOCHANNELS, TIMESTAMP) -- : MSG = midimsg ("omnion", CHANNEL, TIMESTAMP) -- : MSG = midimsg ("omnioff", CHANNEL, TIMESTAMP) -- : MSG = midimsg ("allsoundoff", CHANNEL, TIMESTAMP) -- : MSG = midimsg ("allnotesoff", CHANNEL, TIMESTAMP) -- : MSG = midimsg ("resetallcontrollers", CHANNEL, TIMESTAMP) -- : MSG = midimsg ("start", TIMESTAMP) -- : MSG = midimsg ("stop", TIMESTAMP) -- : MSG = midimsg ("continue", TIMESTAMP) -- : MSG = midimsg ("systemreset", TIMESTAMP) -- : MSG = midimsg ("activesensing", TIMESTAMP) -- : MSG = midimsg ("timingclock", TIMESTAMP) -- : MSG = midimsg ("systemexclusive", TIMESTAMP) -- : MSG = midimsg ("systemexclusive", BYTES, TIMESTAMP) -- : MSG = midimsg ("eox", TIMESTAMP) -- : MSG = midimsg ("data", BYTES, TIMESTAMP) -- : MSG = midimsg ("songselect", SONG, TIMESTAMP) -- : MSG = midimsg ("songpositionpointer", SONGPOSITION, TIMESTAMP) -- : MSG = midimsg ("tunerequest", TIMESTAMP) -- : MSG = midimsg ("miditimecodequarterframe", TIMESEQ, TIMEVALUE, TIMESTAMP) Create a midimsg object If the input parameter is 0, create an empty midi message object Otherwise the first variable is the type of message to create, followed by the additional parameters for the message. For each message type, the timestamp value is optional. Inputs ...... TYPE - string message type or a midimsgtype. TIMESTAMP - optional seconds time stamp for the event CHANNEL - the channel to use for the message (1..16) NOTE - the value of the note to play/stop VELOCITY - the velocity value for a note on/off, with 0 stopping a note from sounding. DURATION - seconds between starting and stopping a note when created a ’note’ message. PROG - program number when doing a program change message. CCNUM - control change control number. CCVAL - control change control value. KEYPRESSURE - key pressure value when creating a key pressure message. CHANPRESSURE - channel pressure value when creating a channelpressure message. PITCHCHANGE - pitch change value when creating a pitch bend message. LOCALCONTROL - boolean value when creating a localcontrol message. MONOCHANNELS - channels specified for a mono on message. BYTES - array of data in range of 0 to 127 specified as part of a data message or system exclusive message. SONG - song selection number for a song selection message. SONGPOSITION - song position value for a song position message. TIMESEQ - timecode sequence number for a miditimecodequarterframe message. TIMEVALUE - timecode value number for a miditimecodequarterframe message. Outputs ....... MSG - a midimsg object containing the midi data of the message Properties .......... TIMESTAMP - timestamp of the message, or an array or timestamps if the the message is a compound message. MSGBYTES - the raw message bytes that make up the MIDI message. NUMMSGBYTES - the number of message bytes that make up the MIDI message. TYPE - string or midimsgtype that represents the message type. CHANNEL - the channel number for message. NOTE - the note value for message (Only valid for noteon/off and polykeypressure). VELOCITY - the velocity value for message (Only valid for noteon/off). KEYPRESSURE - the keypressure value for message (Only valid for polykeypressure). CHANNELPRESSURE - the chanpressure value for message (Only valid for channelpressure). LOCALCONTROL - the localcontrol value for message (Only valid for localcontrol messages). MONOCHANNELS - channels specified for a mono on message. PROGRAM - program number specified for a program change message. CCNUMBER - control change number specified for a control change message. CCVALUE - control change value specified for a control change message. SONG - song number for a song selection message. SONGPOSITION - song position value for a song position message. PITCHCHANGE - pitch change value for a pitch bend message. TIMECODESEQUENCE - timecode sequence number for a miditimecodequarterframe message. TIMECODEVALUE - timecode value number for a miditimecodequarterframe message. Examples ........ Create a note on/off pair with a duration of 1.5 seconds msg = midimsg('note', 1, 60, 100, 1.5) Create a separate note on/off pair with a time between them of 1.5 seconds msg = [midimsg('noteon', 1, 60, 100, 0), midimsg('noteoff', 1, 60, 0, 1.5)] Create a system reset message msg = midimsg('systemreset') See also: midifileread, midisend, midireceive, midimsgtype. 3.1.6 midireceive ----------------- -- : MIDIMSG = midireceive (DEV) -- : MIDIMSG = midireceive (DEV, MAXMSG) Attempt to receive midi messages from a midi device. Inputs ...... DEV - a octave midi device opened using mididevice. MAXMSG - Maximum number of messages to retrieve. If not specified, the function will attempt to get all pending. Outputs ....... MIDIMSG - a midimsg containing the messages retrieved from the device. If no messages are available, MIDIMSG will be empty. Examples ........ Open device 0, and poll and display read messages dev = mididevice(0); while true mx = midireceive(dev); if !isempty(mx) % display message mx endif endwhile See also: mididevice, midisend. 3.1.7 midisend -------------- -- : midisend (DEV, MSG) -- : midisend (DEV, ...) Send a midimsg to a midi device Inputs ...... DEV - midi device opened using mididevice MSG - a midi message class with messages to send to the midi device If the msg isn’t a midimsg class, the input data is expected to be in same format as the inputs to a midimsg object. Outputs ....... None Examples ........ Send a note on/off command to a opened midi device DEV midisend(dev, midimsg("note", 1, 60, 100, 2.0)); See also: midimsg, mididevice, midireceive.  File: audio.info, Node: MIDI Controller Interface, Next: MIDI File I/O, Prev: MIDI Device Interface, Up: Function Reference 3.2 MIDI Controller Interface ============================= 3.2.1 midicallback ------------------ -- : OLDHANDLE = midicallback (MIDICONTROLSOBJ, FUNCTIONHANDLE) -- : OLDHANDLE = midicallback (MIDICONTROLSOBJ, []) -- : CURRHANDLE = midicallback (MIDICONTROLSOBJ) Get, set or clear the midicontrol object callback. Inputs ...... MIDICONTROLOBJ - control object created using midicontrols. FUNCTIONHANDLE - function handle to set for call back. If it is [], the callback function will be cleared. *NOTE*: currently anonymous functions will not work. *NOTE*: callbacks should be cleared before losing all references to the midicontrols object. Outputs ....... OLDHANDLE The previously set midicallback function handle when setting a new callback. CURRHANDLE The current set midicallback function handle. Examples ........ Set a callback on a midicontrols object ctrl = midicontrols(2001) function dispCallback(ctrl),disp(midiread(ctrl)),endfunction; midicallback(ctrl, @dispCallback); Clear the callback on a midicontrols object ctrl = midicontrols(2001) midicallback(ctrl, []); Get the current callback on a midicontrols object ctrl = midicontrols(2001) cb = midicallback(ctrl); See also: midicontrols, midisync, midiread. 3.2.2 midicontrols ------------------ -- : OBJ = midicontrols () -- : OBJ = midicontrols (CTRLID) -- : OBJ = midicontrols (CTRLID, INITIALVALUES) -- : OBJ = midicontrols (__, PROPERTYNAME, PROPERTYVALUE) Create a midi controls object Inputs ...... CTRLID - single control id or array of control ids to monitor, or [] to use any controller. INITIALVALUES - initial values to use for controls. It should be the same size as CTRLID PROPERTYNAME, PROPERTYVALUE - properties to set on the controller. If a device is not specified the value from getpref("midi", "DefaultDevice", 0) will be used. Known properties are: mididevice name of the mididevice to monitor. outputmode the scaling mode for values: ’rawmidi’ will return values between 0 .. 127, ’normalized’ will use values between 0 .. 1. Outputs ....... OBJ - returns a midicontrols object Examples ........ Create a midicontrols object monitoring control id 2001 on the default midi device ctrl = midicontrols(2001) Create a midicontrols object monitoring control id 2001 on a a non default device ctrl = midicontrols(2001, 'mididevice', 1) See also: midiread, midisync. 3.2.3 midiid ------------ -- : [CTRLID, DEV] = midiid () Scan for control messages from midi devices to get the id of the device Function will display a prompt for the user to move the midi control and return when a control messages is detected or ctrl-C is pressed. Inputs ...... None Outputs ....... CTRLID - control id made from the controller channel * 1000 + controller number. DEV = name of the midi device the controller was detected on. Examples ........ Monitor midi devices for first moving controller [ctrlid, devname] = midiid() See also: mididevinfo, midicontrols. 3.2.4 midiread -------------- -- : VAL = midiread (MIDICONTROLSOBJ) Read current values of midi controls Inputs ...... MIDICONTROLOBJ - control object created using midicontrols Outputs ....... VAL single value or array of current values from the midi device. Examples ........ Read current value of midicontrols with a ctrlid 2001 on the default midi device. ctrl = midicontrols(2001) val = midiread(ctrl); Read current value of midicontrols with a ctrlid 2001 on a non default midi device. ctrl = midicontrols(2001, 'mididevice', 1) val = midiread(ctrl); See also: midicontrols, midisync. 3.2.5 midisync -------------- -- : midisync (MIDICONTROLSOBJ) -- : midisync (MIDICONTROLSOBJ, CTRLVALUES) Send the values of control object to the control, using CTRLVALUES values if specified instead Inputs ...... MIDICONTROLOBJ - control object created using midicontrols CTRLVALUES - values to send to the controls instead of initial values Outputs ....... None Examples ........ Send sync command to a midicontrols with a ctrlid 2001 to set a value of 1 ctrl = midicontrols(2001) midisync(ctrl, 1); See also: midicontrols.  File: audio.info, Node: MIDI File I/O, Next: Enumerations, Prev: MIDI Controller Interface, Up: Function Reference 3.3 MIDI File I/O ================= 3.3.1 ismidifile ---------------- -- : ISMIDI = ismidifile (FILENAME) Check if FILENAME is a midi file. The function only checks whether it is an existing file and the file starts with a valid ’MThd’ header. Non existing files, or files that do not meet the header criteria will return false. Inputs ...... FILENAME - filename of file to check. Outputs ....... ISMIDI - true if it is a midi file, false otherwise See also: midifileread, midifilewrite. 3.3.2 midifileinfo ------------------ -- : INFO = midifileinfo (FILENAME) Read MIDI file and display information about the tracks and data Inputs ...... FILENAME - filename of file to open. Outputs ....... INFO - structure of the midi file data with the following fields: filename the name of the file header The header block information track An array of tracks read from the file other An array of non-track midi blocks read from the file See also: midifileread. 3.3.3 midifileread ------------------ -- : MSG = midifileread (FILENAME, [propertyname, propertyvalue ...]) Read MIDI file into a midimsg Inputs ...... FILENAME - filename of file to open. PROPERTYNAME, PROPERYVALUE - optional propertyname/value pairs. Known property values are: includemetaevents A True/False value to include MetaEvents in the out message list. Outputs ....... MSG - a midimsg struct containing the messages read from the file See also: midifileinfo, midimsg. 3.3.4 midifilewrite ------------------- -- : midifilewrite (FILENAME, MSGS) -- : midifilewrite (FILENAME, MSGS, OPTIONNAME, OPTIONVALUE) Write a midifile Inputs ...... FILENAME - filename of file to open. MSG - a midimsg struct or a cell array of midimsg containing data to write to file OPTIONNAME, OPTIONVALUE - option value/name pairs Known options are: format MIDI file format number. (0 (default), 1, 2) Where format is 0, if a cell array is passed to midifilewrite, the midimsg values will be concatenated together before saving. Were format is not 0, the cell array is treated as tracks of misimsg. Outputs ....... None See also: midifileread, midimsg.  File: audio.info, Node: Enumerations, Next: Waveform Generation, Prev: MIDI File I/O, Up: Function Reference 3.4 Enumerations ================ 3.4.1 midimsgtype ----------------- -- : midimsgtype A midimsg type enumeration for values of the midimsg type. Enumeration values are: Data Stop SongPositionPointer PolyOn PolyKeyPressure NoteOff EOX ActiveSensing SongSelect MonoOn ChannelPressure ControlChange TimingClock SystemReset AllSoundOff OmniOn PitchBend ProgramChange Start TuneRequest ResetAllControllers OmniOff Undefined SystemExclusive Continue MIDITimeCodeQuarterFrame LocalControl AllNotesOff MetaEvent The enumeration value can be used instead of a string in midimsg creation. Examples ........ Use both a string and a midimsgtype for the type parameter of a midimsg. # both statements are equivalent msg = midimsg('NoteOn', 1, 60, 100); msg = midimsg(midimsgtype.NoteOn, 1, 60, 100); See also: midimsg.  File: audio.info, Node: Waveform Generation, Next: Measurements, Prev: Enumerations, Up: Function Reference 3.5 Waveform Generation ======================= 3.5.1 audioOscillator --------------------- -- : audioOscillator Generate sine, sawtool and square waveforms Methods ------- -- : OBJ = audioOscillator () -- : OBJ = audioOscillator (SIGNALTYPEVALUE) -- : OBJ = audioOscillator (SIGNALTYPEVALUE, FREQUENCYVALUE) -- : OBJ = audioOscillator (__, PROPERTYNAME, PROPERTYVALUE) Create a audioOscillator object Inputs ...... SIGNALTYPEVALUE - signal type of "sine" (default), "square", "sawtooth". FREQUENCYVALUE - hz frequency value of waveform (default 100). PROPERTYNAME, PROPERTYVALUE - properties to set on the object. Known properties are: SignalType signal type of "sine" (default), "square" or "sawtooth". (readonly) Frequency frequency of the waveform (default 100) Amplitude amplitude of the signal (default 1) SampleRate sample rate of the signal (default 44100) PhaseOffset phase offset of signal 0 (default) - 1 (readonly) DutyCycle dutycycle of the signal 0 - 1 (default 0.5) when signal is a square wave. SamplePerFrame Samples per frame as returned from () (default 512) MaxSamplePerFrame Max samples per frame (default 192000) DCOffset DC Offset of signal (default 0) Width Width of sawtooth (default 1) OutputDataType Output data type of ’single’ or ’double’ (default ’double’) Outputs ....... OBJ - signalGenerator object Examples ........ Create a 100 hz sine wave and plot first 512 samples sinosc = audioOscillator data = sinosc(); plot(data); Create a 2 hz square wave with duty cycle of 0.5 sqosc = audioOscillator('square', 'DutyCycle', 0.50, 'Frequency', 2); -- : DATA = OBJ() Generate a frame of waveform data from the generator function Inputs ...... OBJ - signalGenerator object Outputs ....... DATA - waveform data -- : release(OBJ) Release resources of generator Inputs ...... OBJ - signalGenerator object Outputs ....... None  File: audio.info, Node: Measurements, Prev: Waveform Generation, Up: Function Reference 3.6 Measurements ================ 3.6.1 bark2hz ------------- -- : HZ = bark2hz (BARK) Convert equivalent Bark Frequency to Hz. Inputs ...... BARK - input frequency in bark. Outputs ....... HZ - Output frequency in Hz. References .......... Traunmüller, Hartmut. ‘Analytical Expressions for the Tonotopic Sensory Scale. Journal of the Acoustical Society of America. Vol. 88, Issue 1, 1990’ See also: hz2bark. 3.6.2 erb2hz ------------ -- : HZ = erb2hz (ERB) Convert equivalent rectangular bandwidth (ERB) to Hz. Inputs ...... ERB - input frequency in erb. Outputs ....... HZ - Output frequency in Hz. References .......... Glasberg and Moore. ‘Derivation of Auditory Filter Shapes from Notched-Noise Data. Hearing Research. Vol. 47, 1990’ See also: hz2erb. 3.6.3 hz2bark ------------- -- : BARK = hz2bark (HZ) Convert hz to equivalent bark frequency Inputs ...... HZ - input frequency in Hz. Outputs ....... BARK - Output frequency as a bark value Examples ........ Convert 4000 Hz to erb erb = hz2erb(4000) References .......... Traunmüller, Hartmut. ‘Analytical Expressions for the Tonotopic Sensory Scale. Journal of the Acoustical Society of America. Vol. 88, Issue 1, 1990’ See also: bark2hz. 3.6.4 hz2erb ------------ -- : ERB = hz2erb (HZ) Convert hz to equivalent rectangular bandwidth (ERB) Inputs ...... HZ - input frequency in Hz. Outputs ....... ERB - Output frequency as a erb value Examples ........ Convert 4000 Hz to erb erb = hz2erb(4000) Convert a range of Hz to erb erb = hz2erb(4000:100:5000) References .......... Glasberg and Moore. ‘Derivation of Auditory Filter Shapes from Notched-Noise Data. Hearing Research. Vol. 47, 1990’ See also: erb2hz. 3.6.5 hz2mel ------------ -- : MEL = hz2mel (HZ) Convert hz to equivalent mel frequency. Inputs ...... HZ - input frequency in Hz. Outputs ....... MEL - Output frequency as a mel value Examples ........ Convert 4000 Hz to mel mel = hz2mel(4000) Convert a range of Hz to mel mel = hz2erb(4000:100:5000) References .......... O’Shaghnessy, Douglas. ‘Speech Communication: Human and Machine. Reading, MA: Addison-Wesley Publishing Company, 1987’ See also: mel2hz. 3.6.6 mel2hz ------------ -- : HZ = mel2hz (MEL) Convert equivalent mel frequency to Hz. Inputs ...... MEL - input frequency in mel. Outputs ....... HZ - Output frequency in Hz. References .......... O’Shaghnessy, Douglas. ‘Speech Communication: Human and Machine. Reading, MA: Addison-Wesley Publishing Company, 1987’ See also: hz2mel.  File: audio.info, Node: Copying, Next: Index, Prev: Function Reference, Up: Top Appendix A GNU General Public License ************************************* Version 3, 29 June 2007 Copyright © 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble ======== The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program—to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. 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 them 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 prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. 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. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers’ and authors’ protection, the GPL clearly explains that there is no warranty for this free software. For both users’ and authors’ sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users’ freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS ==================== 0. Definitions. “This License” refers to version 3 of the GNU General Public License. “Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. “The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations. To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work. A “covered work” means either the unmodified Program or a work based on the Program. To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work. A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work’s System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users’ Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work’s users, your or third parties’ legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey 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; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a. The work must carry prominent notices stating that you modified it, and giving a relevant date. b. The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”. c. You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d. If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation’s users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a. Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b. Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c. Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d. Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e. Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. “Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. “Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a. Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b. Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c. Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d. Limiting the use for publicity purposes of names of licensors or authors of the material; or e. Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f. Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party’s predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor’s “contributor version”. A contributor’s “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor’s essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient’s use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others’ Freedom. If 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 convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU 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 that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy’s public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. 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. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 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. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. 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 state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found. ONE LINE TO GIVE THE PROGRAM'S NAME AND A BRIEF IDEA OF WHAT IT DOES. Copyright (C) YEAR NAME OF AUTHOR 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 3 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, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: PROGRAM Copyright (C) YEAR NAME OF AUTHOR This program 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, your program’s commands might be different; for a GUI interface, you would use an “about box”. You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU 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. But first, please read .  File: audio.info, Node: Index, Prev: Copying, Up: Top Index ***** [index] * Menu: * audioOscillator: Waveform Generation. (line 9) * bark2hz: Measurements. (line 9) * Basic Usage Overview: Basic Usage Overview. (line 6) * Conversion Functionality: Basic Usage Overview. (line 20) * copyright: Copying. (line 6) * Enumerations: Enumerations. (line 5) * erb2hz: Measurements. (line 34) * Function Reference: Function Reference. (line 6) * hasdata: MIDI Device Interface. (line 9) * hz2bark: Measurements. (line 58) * hz2erb: Measurements. (line 89) * hz2mel: Measurements. (line 122) * Installing and loading: Installing and loading. (line 6) * ismidifile: MIDI File I/O. (line 9) * Loading: Installing and loading. (line 57) * Measurements: Measurements. (line 5) * mel2hz: Measurements. (line 155) * MIDI Controller Interface: MIDI Controller Interface. (line 5) * MIDI Device Interface: MIDI Device Interface. (line 5) * MIDI File I/O: MIDI File I/O. (line 5) * MIDI Functionality: Basic Usage Overview. (line 46) * midicallback: MIDI Controller Interface. (line 9) * midicontrols: MIDI Controller Interface. (line 56) * mididevice: MIDI Device Interface. (line 27) * mididevinfo: MIDI Device Interface. (line 81) * midifileinfo: MIDI File I/O. (line 33) * midifileread: MIDI File I/O. (line 59) * midifilewrite: MIDI File I/O. (line 83) * midiflush: MIDI Device Interface. (line 141) * midiid: MIDI Controller Interface. (line 102) * midimsg: MIDI Device Interface. (line 165) * midimsgtype: Enumerations. (line 9) * midiread: MIDI Controller Interface. (line 133) * midireceive: MIDI Device Interface. (line 297) * midisend: MIDI Device Interface. (line 333) * midisync: MIDI Controller Interface. (line 164) * Off-line install: Installing and loading. (line 48) * Online install: Installing and loading. (line 36) * warranty: Copying. (line 6) * Waveform Generation: Basic Usage Overview. (line 33) * Waveform Generation <1>: Waveform Generation. (line 5) * Windows install: Installing and loading. (line 25)  Tag Table: Node: Top195 Node: Installing and loading653 Node: Basic Usage Overview2417 Node: Function Reference4693 Node: MIDI Device Interface5057 Node: MIDI Controller Interface16461 Node: MIDI File I/O21372 Node: Enumerations23961 Node: Waveform Generation25246 Node: Measurements27632 Node: Copying30773 Node: Index68492  End Tag Table  Local Variables: coding: utf-8 End: audio-2.0.8/doc/audio.pdf0000644000000000000000000074267214506546342013404 0ustar0000000000000000%PDF-1.5 % 1 0 obj << /Length 587 /Filter /FlateDecode >> stream xmTM@+z&?tBL$d4*.<_fW_wիrc;`GUOV&ʮ[v6W7TvbuYt/N.5=S> stream xmTM@+z&?tBL0d4*.<̿~UfW_uvc;Z̫MfG} I]/ޭmޯo⣩0^'^x]fkn{EK{*ʇupg6;ލ$4;gZ8, M[TPRJGeWxmE7 "/7j;{Yʋ"1tm|oirI ɑc׺>[TқEnn#bBSEV嶭mzsg)gR133w xAb;aGL6K&0+}&"?(Ҧa/ c,!-f3*Ix {asIC%hS7}H=ŤIY(jŧ Z4{SO5Z ekxvKǬ@2a> stream xmSn0+$z"aKU^CvF^p=!94gB˥0pދ s#P~k@hZ+vQڦ(A,Rf5Ħq8>K_X NH3$Ǟ{<0*5c~Pʯ5W42^!0^#rqxƘE3x z)cgl1BҰ?Xq!NAWA*d1)iȧΰО 9璆NVfkVaUJ?%͚5ػbTW=ј52f&p2pjV^cHMcVYxLS7E=1j g endstream endobj 6 0 obj << /Length 308 /Filter /FlateDecode >> stream xڅOK1)rvdoJ'Pn[,7iܢ(J <›7?^PtPx-| RJq?g,5f5H&mocmuv V]s څx& y+ۚZ˸}˫~je[631y|p2}p@̃v|- @cЃ # ;@*ӸKOպ&uy,f' k endstream endobj 13 0 obj << /Length 663 /Filter /FlateDecode >> stream x}Tn0+tIQk)SQXLD JNѿ.$( Xp3#jՍdô)| ?mxJ2UJ )h ' cJ&jhɤ2:*"m[^pLQNBnwRўf- r~ q% NPVԹvYc~Y,0ay!RH _Ǝ4Nxߛ:Xc7c~woU*epM:j=j"`&1>&S{Z7_W endstream endobj 19 0 obj << /Length 1161 /Filter /FlateDecode >> stream xڕVKo6WVi>D-}dѢh=-X-Ԗ =Ϳ %o0`f H F1ds"t'\ә]-'VX߭LDTdneθΒu|NơnŗGYK@C,ER2OG_Ydem*osO#!9 v!M_nTOƪn< Ejw\u\\IU2նseΙrطxY2ce<.NѦt"dPߣnhٱw]1B`9ju"f9Phpr"枨M{@^FUŦpc5ۦB"O#FrvGkŹX%e| @lӓ찷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`9 FU,"\Z_qTLģo픯7>tW`q9r)D06|R|d|`hdh l=%h @yA`ǸT+&{0Ԕ 90oA֝ՙ0'K vאiGG\"FYi]urOf5j n O0C0XE07D6=r@:J@0U߽XnPx3"33c-ӤN_0{ø B翵ZrrcwH81:v%0{tɨicVzhx"ZwN^n"hLj@ʑ=o endstream endobj 237 0 obj << /Length 358 /Filter /FlateDecode >> stream xڍO0+Hmi1/W܋'@Md(,[v ^?w]`ڏYf'6G9.`0"w %b霡x5ng ImTs^/Vzm\ ϽFX5V?\`K>[$RǦcӌRYSBߙQLۜN;tug&f-fysIՙ0j%2>QҽrʼnI J*-*MJAjNq¤al8ZnX6 w}  3ݪ6_CIUҪu6bup9~޿° endstream endobj 241 0 obj << /Length 1492 /Filter /FlateDecode >> stream xXKoFW>Q>EN (:zHs`D&*.IRA fgf8JG2IY]k{% $\]zySR&$ETU}śՠ8gZG%pL^RE.zЌǷlz]jXSQD*iu_NJW-Yg+q^mO[XþXj[Olko?\ݺ>۶^[Ot<LwD! :($exy Ɩ6&c.zY/((Mc5SBf*Tj~"xzJ 'Jq$Fb6`/C3(ADtž(ˠR]+C_3䝁)W!o] Ag PKxB3uߗ kZ!.12 Ugô+xhCpŕUH}{ ?qMh =&Z;01pIpF#R9Ytb1n Z2 ܴe!6Dk7u?U]yO=o^XiɾvzM\$U[}Y I"zN {!w; 4&6 2@D%Rj i4 8P)Msf8Tf/2^T=Eiѳ`q1ɑca \w1agduti!ᴎ rʼ$qWc5;='Ng031h>D ,:w//!ZƲVFhx+LL)g9m5E]7aɣ}ܧ&>¸j Uy,Guy:O4aqDug!gr7: )81w3& HJP&\-ٿ1CV q=U~' ts?wvռaGv9^~oq endstream endobj 247 0 obj << /Length 1170 /Filter /FlateDecode >> stream xXKoFW9Q@'Tn*$uKs`$Z"U,)fdz* <7k34t$H$]fpqsr=ɟ?Uc4fr7\{7d_,Bb> TY$CM/ҿM7itpWO_/noQRh+mGxH$׀:$TI3kNvUNZp CM^CUYO}tW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qb ^XB>-VDP&It{#/SvM]K=%M~l8%yY:_f.[ȖRLBH1zȽ@Qž G!̒h#xM$ϻFliOv}p4O0%DNu:)K[髢6z(e8͚Y0QiVݣRL_>oE3=s|ywBhMvȫQjj6\ 7Jlz1Fᕌi;^뛥 jl:]iSGZE'kkyѻk3xn BUJIe_"qLus=Y0-ġ>AmI| XSwe=bn# i=$-`5%>>O ȧt`xh<,և Dφd7utJn yj:C:'Y=N5>{O&Xygsܶ'ݛFoH?;Gϡ(~ 2׃5ni$e=1 .LUjR=PZ~{{+lDo3~i?XO>dOۄ\ ,}g80 endstream endobj 264 0 obj << /Length 1688 /Filter /FlateDecode >> stream xX[o6~ϯ0y8*^- ŦdrInن,?~\DgYfyIbs٧ o^4J2I{6+W+|Yeo 7~Л"dV^eTh4 M J8eG{%nk7xwmWa =B>S!!$9((a=SLkRt.34H <ܭ1bu\ LFᏦ5pKاEnI2֣qG3 P3!\NMEK!zK.*u8|x$z(! 2s)0Aה3'w%wl0I]3Wv8ڍBH(/c4솗&Vݜ7m}|sn-?waDBOYcmWǘ_yE&oy?\muu@tcطzhpl};P}TI%=pNoTMҏxYיDCesSQ~ch 1M=9mx}+bUL^u[bydMo  endstream endobj 267 0 obj << /Length 1065 /Filter /FlateDecode >> stream xW]o6}ϯУD,%u˶vȀ.@귶L7 d)do)m9DH(YU+<_"pv)/WoF.Hٹ6C}8>Ic1{mVcݵߩU[$ELHi՛r .D:[iD€W%"a 7F R!ɬ黮β[TF0wpdU_z(֨;a* U#<1B7yc #c׶z||!aZɗoꋇR^"I%$ɃKտ᣽$wPC*OQ&zL Eڭwkަ+EErlv/ [ʏc|1Tzz4<4Ǫ:Kp22ڀx襳>epK๡NW3'PMH߭dCëZǺl27 һ1{Ÿ].)/>غ~_. 9Ɵ,$/=\r+ȏ=Vyf^}e;;Fb;fߠn ^i2WK?) endstream endobj 270 0 obj << /Length 1291 /Filter /FlateDecode >> stream xX[o6~ϯ[e bx` AX,4<.e؆\sHE(Q 4.m#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(D:19700101000000Z) /Trapped /False /PTEX.Fullbanner (This is pdfTeX, Version 3.141592653-2.6-1.40.24 (TeX Live 2022/CVE-2023-32700 patched) kpathsea version 6.3.4) >> endobj 407 0 obj << /Type /ObjStm /N 83 /First 729 /Length 2826 /Filter /FlateDecode >> stream xڵZiSܺ>B^QڷT$l / Bl!ߖ-4f *`ْN>R&(D Ince\@C"*FTs  F/;Ub98qa$3p=P mG 9#΀` \aHj`E N7AC{'\]܀ipKRZO 4!I-a7a ZK#"\%HQ5)F)Ñ^PshI]I5*K+0bD%tYU>BH cFz &q%Px@9CGa \G\Ha0xk+2d@C|xm(.T-p*P3A#d|H#S!LCY߀''rSU+A` dCQ!aի>}]̋OXd APϧUD5kK ─#&yKLbomQ9.i:y3:Dž}i#-:Ɏ]6o# qpY,튩,v- ,9|/R<ͱ%fI~e2ŗKn:웋e5}s8)9sxoMyɢlUn?]OM5kW3ʅ݂]eRax͐+Qnc!l:0R¹blQokf6jcXbXEWXu1cIRXEbXqjv՛vZEmbUf-5Bitݭa{e3 2I*vi(E7.5=LD7j1HR(AF4&{hQ7j;4[5&T7k5%:X1^qjA7WvAvT8bwޑ_"XMH’Fy+9TB*%cUe+لT .!=_vBW:h=k#IN4 >8㼈9/ZΓ!,n:X1^ܮĒ,R jj=,`!,f;X2:jPfXavC#e"j!QUKtK422t"sb]]oJ&ѥ4Ic&T hDcƱ(&DHg'ASfY>x"i|']m7Vt"l;d5@ Q2SN]6ׁ`a`ŨҺ> oJU6Md1<oA6vx{,-j@o .T m :5Mhhж*Fx~3hg9 V endstream endobj 437 0 obj << /Type /XRef /Index [0 438] /Size 438 /W [1 3 1] /Root 435 0 R /Info 436 0 R /ID [ ] /Length 1047 /Filter /FlateDecode >> stream xoUU׺=]ZZR@ h)Zhiʫh9rbDQ49$XG&Ȅ@tL@N4M~Y>箳ZḽE+eʲ۲<un㒭<-[6fd%A[m)A.=D()K-@5&E 6 ~  8 @?8` %0 FipԸ55T/3 &XCE `ovo!IG/Y 0H4. A6 SIY"%C귗$Ip5}mDͮEs@'Z+Hd!9jv F'ZkϺ5Ql 8%orC|Dn& . \gMKC,}|cn$6PAh!BƓAkD#G8hAb]vqIH"hB)AE7 )"ZRI煾vVJaT>$TO%rVun:JZS!@50MN)1Iln3w$m`v5\n˟)$_q[]+`m}NƒsI<+novIb¸7.3bHfn+A([ s+=n_"FJnO#7Ձk\(]w{4=j5|jJ0RA??<iR~s!0_>[:IJ`0LĸIg(8i 0`)$L`\t 0AeKWaudio.html#Off_002dline-install(1.3 Off-line install$audio.html#Loading1.4 Loading>audio.html#Basic-Usage-Overview,2 Basic Usage OverviewFaudio.html#Conversion-Functionality82.1 Conversion Functionality@audio.html#Waveform-Generation-1.2.2 Waveform Generation:audio.html#MIDI-Functionality,2.3 MIDI Functionality:audio.html#Function-Reference(3 Function Reference@audio.html#MIDI-Device-Interface23.1 MIDI Device Interface\audio.html#g_t_0040octave_005fmidi_002fhasdata43.1.1 @octave_midi/hasdata*audio.html#mididevice 3.1.2 mididevice,audio.html#mididevinfo"3.1.3 mididevinfo(audio.html#midiflush3.1.4 midiflush$audio.html#midimsg3.1.5 midimsg,audio.html#midireceive"3.1.6 midireceive&audio.html#midisend3.1.7 midisendHaudio.html#MIDI-Controller-Interface:3.2 MIDI Controller Interface.audio.html#midicallback$3.2.1 midicallback.audio.html#midicontrols$3.2.2 midicontrols"audio.html#midiid3.2.3 midiid&audio.html#midiread3.2.4 midiread&audio.html#midisync3.2.5 midisync8audio.html#MIDI-File-I_002fO"3.3 MIDI File I/O*audio.html#ismidifile 3.3.1 ismidifile.audio.html#midifileinfo$3.3.2 midifileinfo.audio.html#midifileread$3.3.3 midifileread0audio.html#midifilewrite&3.3.4 midifilewrite.audio.html#Enumerations 3.4 Enumerations,audio.html#midimsgtype"3.4.1 midimsgtype<audio.html#Waveform-Generation.3.5 Waveform Generation4audio.html#audioOscillator*3.5.1 audioOscillator.audio.html#Measurements 3.6 Measurements$audio.html#bark2hz3.6.1 bark2hz"aud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M=R_|BX<3yJɴt?^ggI ffZq׭}}“m=?'!"Je?ˤfi_&#(}x`+iBaȓ?/SM+LS3|L >Xu}#w*IAڵ0Q̊Tou?ma̡9d ɔaudio-2.0.8/doc/audio.qhc0000644000000000000000000027000014506546342013363 0ustar0000000000000000SQLite format 3@ ##.c $  w h z H"f| b''tableVersionFilterVersionFilterCREATE TABLE VersionFilter (Version TEXT, FilterId INTEGER)n++tableComponentFilterComponentFilterCREATE TABLE ComponentFilter (ComponentName TEXT, FilterId INTEGER)u--tableComponentMappingComponentMappingCREATE TABLE ComponentMapping (ComponentId INTEGER, NamespaceId INTEGER)q))tableComponentTableComponentTableCREATE TABLE ComponentTable (ComponentId INTEGER PRIMARY KEY, Name TEXT)VtableFilterFilterCREATE TABLE Filter (FilterId INTEGER PRIMARY KEY, Name TEXT)b%%tableVersionTableVersionTableCREATE TABLE VersionTable (NamespaceId INTEGER, Version TEXT)))mtableTimeStampTableTimeStampTableCREATE TABLE TimeStampTable (NamespaceId INTEGER, FolderId INTEGER, FilePath TEXT, Size INTEGER, TimeStamp TEXT)551tableOptimizedFilterTableOptimizedFilterTableCREATE TABLE OptimizedFilterTable (NamespaceId INTEGER, FilterAttributeId INTEGER)(77otableFileAttributeSetTableFileAttributeSetTableCREATE TABLE FileAttributeSetTable (NamespaceId INTEGER, FilterAttributeSetId INTEGER, FilterAttributeId INTEGER) 33/tableContentsFilterTableContentsFilterTableCREATE TABLE ContentsFilterTable (FilterAttributeId INTEGER, ContentsId INTEGER )w --!tableIndexFilterTableIndexFilterTable CREATE TABLE IndexFilterTable (FilterAttributeId INTEGER, IndexId INTEGER)s ++tableFileFilterTableFileFilterTable CREATE TABLE FileFilterTable (FilterAttributeId INTEGER, FileId INTEGER)z ''3tableContentsTableContentsTable CREATE TABLE ContentsTable (Id INTEGER PRIMARY KEY, NamespaceId INTEGER, Data BLOB) !! tableIndexTableIndexTable CREATE TABLE IndexTable (Id INTEGER PRIMARY KEY, Name TEXT, Identifier TEXT, NamespaceId INTEGER, FileId INTEGER, Anchor TEXT)''MtableFileNameTableFileNameTable CREATE TABLE FileNameTable (FolderId INTEGER, Name TEXT, FileId INTEGER PRIMARY KEY, Title TEXT)e'' tableSettingsTableSettingsTableCREATE TABLE SettingsTable (Key TEXT PRIMARY KEY, Value BLOB )9M'indexsqlite_autoindex_SettingsTable_1SettingsTableh##tableFilterTableFilterTableCREATE TABLE FilterTable (NameId INTEGER, FilterAttributeId INTEGER )l++tableFilterNameTableFilterNameTableCREATE TABLE FilterNameTable (Id INTEGER PRIMARY KEY, Name TEXT ){55tableFilterAttributeTableFilterAttributeTableCREATE TABLE FilterAttributeTable (Id INTEGER PRIMARY KEY, Name TEXT )u##1tableFolderTableFolderTableCREATE TABLE FolderTable (Id INTEGER PRIMARY KEY, NamespaceId INTEGER, Name TEXT )x))+tableNamespaceTableNamespaceTableCREATE TABLE NamespaceTable (Id INTEGER PRIMARY KEY, Name TEXT, FilePath TEXT ) #9octave.community.audioaudio.qch  doc    #{fS>#9FullTextSearchFallback%CreationTimee) HideAddressBar- EnableAddressBarA EnableDocumentationManager; HideFilterFunctionality? EnableFilterFunctionality*-;LastRegisterTime2023-10-02T10:03:50.620 ?Z~?k9FullTextSearchFallback%CreationTime)HideAddressBar-EnableAddressBarAEnableDocumentationManager;HideFilterFunctionality?EnableFilterFunctionality- LastRegisterTime  audio.cssaudio.css: !caudio.htmlOctave Audio - Audio Toolkit for GNU octave  GiR3tS2 q \ G mel2hzmel2hz hz2melhz2mel hz2erbhz2erb hz2barkhz2bark erb2hzerb2hz bark2hzbark2hz%+ +audioOscillatoraudioOscillator# #midimsgtypemidimsgtype!' 'midifilewritemidifilewrite% %midifilereadmidifileread% %midifileinfomidifileinfo ! !ismidifileismidifile  midisyncmidisync  midireadmidiread  midiidmidiid % %midicontrolsmidicontrols% %midicallbackmidicallback midisendmidisend# #midireceivemidireceive midimsgmidimsg midiflushmidiflush# #mididevinfomididevinfo! !mididevicemididevice>5 S@octave_midi/hasdatag_t_0040octave_005fmidi_002fhasdata RR+ Xaudio.htmldOctave Audio - Audio Toolkit for GNU octave ManualBaudio.html#Installing-and-loading01 Installing and loading4audio.html#Windows-install&1.1 Windows install@audio.html#Online-Direct-install21.2 Online Direct install>audio.html#Off_002dline-install(1.3 Off-line install$audio.html#Loading1.4 Loading>audio.html#Basic-Usage-Overview,2 Basic Usage OverviewFaudio.html#Conversion-Functionality82.1 Conversion Functionality@audio.html#Waveform-Generation-1.2.2 Waveform Generation:audio.html#MIDI-Functionality,2.3 MIDI Functionality:audio.html#Function-Reference(3 Function Reference@audio.html#MIDI-Device-Interface23.1 MIDI Device Interface\audio.html#g_t_0040octave_005fmidi_002fhasdata43.1.1 @octave_midi/hasdata*audio.html#mididevice 3.1.2 mididevice,audio.html#mididevinfo"3.1.3 mididevinfo(audio.html#midiflush3.1.4 midiflush$audio.html#midimsg3.1.5 midimsg,audio.html#midireceive"3.1.6 midireceive&audio.html#midisend3.1.7 midisendHaudio.html#MIDI-Controller-Interface:3.2 MIDI Controller Interface.audio.html#midicallback$3.2.1 midicallback.audio.html#midicontrols$3.2.2 midicontrols"audio.html#midiid3.2.3 midiid&audio.html#midiread3.2.4 midiread&audio.html#midisync3.2.5 midisync8audio.html#MIDI-File-I_002fO"3.3 MIDI File I/O*audio.html#ismidifile 3.3.1 ismidifile.audio.html#midifileinfo$3.3.2 midifileinfo.audio.html#midifileread$3.3.3 midifileread0audio.html#midifilewrite&3.3.4 midifilewrite.audio.html#Enumerations 3.4 Enumerations,audio.html#midimsgtype"3.4.1 midimsgtype<audio.html#Waveform-Generation.3.5 Waveform Generation4audio.html#audioOscillator*3.5.1 audioOscillator.audio.html#Measurements 3.6 Measurements$audio.html#bark2hz3.6.1 bark2hz"audio.html#erb2hz3.6.2 erb2hz$audio.html#hz2bark3.6.3 hz2bark"audio.html#hz2erb3.6.4 hz2erb"audio.html#hz2mel3.6.5 hz2mel"audio.html#mel2hz3.6.6 mel2hz      % 3audio.qchP2023-10-02T10:03:50   doc   audio-2.0.8/doc/audio.texi0000644000000000000000000001657514506546342013600 0ustar0000000000000000\input texinfo @c -*-texinfo-*- @c Copyright (c) 2019-2022, John Donoghue @c Octave Audio - Audio Toolkit for GNU octave. @c For manually generating the documentation use @c LANGUAGE=en makeinfo --html --no-split audio.texi @c %*** Start of HEADER @setfilename audio.info @settitle Octave Audio - Audio Toolkit for GNU octave @afourpaper @paragraphindent 0 @finalout @c @afourwide @c %*** End of the HEADER @include version.texi @include macros.texi @c %*** Start of TITLEPAGE @titlepage @title Audio Toolkit @value{VERSION} @subtitle Audio and MIDI functionality for @acronym{GNU} Octave. @author John Donoghue @page @vskip 0pt plus 1filll Copyright @copyright{} 2019-2023 John Donoghue Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies. Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one. Permission is granted to copy and distribute translations of this manual into another language, under the same conditions as for modified versions. @page @heading Distribution The @acronym{GNU} Octave Audio package is @dfn{free} software. Free software is a matter of the users' freedom to run, copy, distribute, study, change and improve the software. This means that everyone is free to use it and free to redistribute it on certain conditions. The @acronym{GNU} Octave Audio package is not, however, in the public domain. It is copyrighted and there are restrictions on its distribution, but the restrictions are designed to ensure that others will have the same freedom to use and redistribute Octave that you have. The precise conditions can be found in the @acronym{GNU} General Public License that comes with the @acronym{GNU} Octave Audio package and that also appears in @ref{Copying}. To download a copy of the @acronym{GNU} Octave Audio package, please visit @url{https://gnu-octave.github.io/octave-audio/index}. @end titlepage @c %*** End of TITLEPAGE @dircategory Math @direntry * Octave Audio: (audio). Audio Toolkit for Octave @end direntry @c %*** Start of BODY @contents @ifnottex @node Top @top Introduction The Audio toolkit is a set of functions for manipulating MIDI devices and files for GNU Octave @end ifnottex @menu * Installing and loading:: Installing and loading the Audio toolkit * Basic Usage Overview:: Basic Usage Overview * Function Reference:: Audio toolkit functions * Copying:: Copying * Index:: Index @end menu @c ------------------------------------------------------------------------- @node Installing and loading @chapter Installing and loading @cindex Installing and loading The Audio toolkit must be installed and then loaded to be used. It can be installed in @acronym{GNU} Octave directly from octave-forge, or can be installed in an off-line mode via a downloaded tarball. The toolkit has a dependency on the RTMIDI library (@url{https://github.com/thestk/rtmidi}), so it must be installed in order to successfully install the toolkit. For Fedora: @code{yum install rtmidi-devel} For Ubuntu: @code{apt install librtmidi-dev} The toolkit must be then be loaded once per each @acronym{GNU} Octave session in order to use its functionality. @section Windows install @cindex Windows install If running in Windows, the package may already be installed, to check run: @example pkg list audio @end example Otherwise it can be installed by installing the requirements and then using the online or offline install method. @section Online Direct install @cindex Online install With an internet connection available, the Audio package can be installed from octave-forge using the following command within @acronym{GNU} Octave: @example pkg install -forge audio @end example The latest released version of the toolkit will be downloaded and installed. @section Off-line install @cindex Off-line install With the Audio toolkit package already downloaded, and in the current directory when running @acronym{GNU} Octave, the package can be installed using the following command within @acronym{GNU} Octave: @example pkg install audio-@value{VERSION}.tar.gz @end example @section Loading @cindex Loading Regardless of the method of installing the Audio toolkit, in order to use its functions, the toolkit must be loaded using the pkg load command: @example pkg load audio @end example The toolkit must be loaded on each @acronym{GNU} Octave session. @c ------------------------------------------------------------------------- @node Basic Usage Overview @chapter Basic Usage Overview @cindex Basic Usage Overview The Audio package must be loaded each time a @acronym{GNU} Octave session is started: @example pkg load audio @end example An overview of the package can be displayed by running @code{help audio} Help for each function can be displayed by @code{help thefunctionname} ie: @example help mididevice @end example @section Conversion Functionality @cindex Conversion Functionality The following functions are available to convert to and from Hz frequency: @table @asis @item hz2erb, erb2hz Conversion between hz and equivalent rectangular bandwidths (ERP) frequency scales @item hz2mel, mel2hz Conversion between hz and equivalent mel frequency scales @item hz2bark, bark2hz Conversion between hz and equivalent bark frequency scales @end table @section Waveform Generation @cindex Waveform Generation The @code{audioOscillator} function provides a method of creating a waveform generator for sine, square and sawtooth waveforms. @example % create a sawtooth audio generator osc = audioOscillator("sawtooth"); % get a frame of data data = osc(); % plot the data plot(data); @end example @section MIDI Functionality @cindex MIDI Functionality The Audio toolkit provides 3 main types of MIDI functionality: @table @asis @item Device functions These are functions that directly allow opening, sending and receiving MIDI messages. @item Controller functions Functions that provide a layer on top of the device functions for using MIDI controls. @item File functions Basic functions that allow read and write of MIDI files. @end table To read and write to a MIDI device, a MIDI device object must be created, using the name or id of a known MIDI device as provided by the mididevinfo function. MIDI devices can then be read using the midisend and midireceive functions that use midimsg type to encapsulate the MIDI data. @example % list the midi devices devs = mididevinfo % open a midi device, specifying the first input and output MIDI device dev = mididevice("input", devs.input@{1@}.ID, "output", devs.output@{1@}.ID) % receive data and echo it through the output port while true msg = midireceive(dev, 1); if !isempty(msg) midisend(msg); endif endwhile @end example @c ------------------------------------------------------------------------- @node Function Reference @chapter Function Reference @cindex Function Reference The functions currently available in the Audio toolkit are described below: @include functions.texi @c ------------------------------------------------------------------------- @include gpl.texi @c ------------------------------------------------------------------------- @node Index @unnumbered Index @printindex cp @bye audio-2.0.8/doc/functions.texi0000644000000000000000000007026514506546342014503 0ustar0000000000000000@c --------------------------------------------------- @node MIDI Device Interface @section MIDI Device Interface @cindex MIDI Device Interface @c MIDI Device Interface @octave_midi/hasdata @c ----------------------------------------- @subsection @@octave_midi/hasdata @cindex hasdata @deftypefn {} {@var{tf} =} hasdata (@var{dev}) Return whether there is data available to read @subsubheading Inputs @var{dev} - a octave midi device opened using mididevice.@* @subsubheading Outputs @var{tf} - true if device has data available to read@* @xseealso{mididevice} @end deftypefn @c MIDI Device Interface mididevice @c ----------------------------------------- @subsection mididevice @cindex mididevice @deftypefn {} {@var{dev} =} mididevice (@var{mididev}) @deftypefnx {} {@var{dev} =} mididevice (@var{mididir}, @var{mididev}) @deftypefnx {} {@var{dev} =} mididevice ("input", @var{midiindev}, "output", @var{midioutdev}) Create a midi device using the input parameters. When a single device name or id is provided, attempt to create the midi device using the same name for both input and output. Otherwise, use the name or device id for the given input or output direction. @subsubheading Inputs @var{mididev} - name or id of device to load.@* @var{mididir} - midi direction of "input" or "output"@* @var{midiindev} - midi input name or id@* @var{midioutdev} - midi output name or id @subsubheading Outputs @var{dev} - octave_midi class for opened device @subsubheading Properties @var{Input} - Input device name (read only).@* @var{Output} - Output device name (read only).@* @var{InputID} - Input device id (read only).@* @var{OutputID} - Output device id (read only).@* @subsubheading Examples Open midi device with ID of 0. @example @command{>} dev = mididevice(0); mididevice connected to input: "SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0" (1) output: "SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0" (0) @end example Open a named midi device: @example @command{>} dev = mididevice("SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0"); mididevice connected to input: "SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0" (1) output: "SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0" (0) @end example @xseealso{mididevinfo} @end deftypefn @c MIDI Device Interface mididevinfo @c ----------------------------------------- @subsection mididevinfo @cindex mididevinfo @deftypefn {} {@var{devlist} =} mididevinfo () @deftypefnx {} {} mididevinfo () Retrieve the midi devices detected within the system. The list will be stored with variable @var{devlist} as either a input or output device. If no output variable is provided, the devices will be displayed. @subsubheading Inputs None @subsubheading Outputs @var{devlist} - a structure containing the midi device information @subsubheading Examples Display the known devices of the system. @example @command{>} mididevinfo MIDI devices available ID Direction Interface Name 0 output Alsa Midi Through:Midi Through Port-0 14:0 1 output Alsa Ensoniq AudioPCI:ES1371 16:0 2 output Alsa SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0 3 input Alsa Midi Through:Midi Through Port-0 14:0 4 input Alsa Ensoniq AudioPCI:ES1371 16:0 5 input Alsa SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0 @end example Assign variable @var{mididevices} with the values from the known devices @example @command{>} mididevices = mididevinfo mididevices = scalar structure containing the fields: input = @{ [1,1] = scalar structure containing the fields: Name = SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0 Interface = Alsa ID = 0 @} output = @{ [1,1] = scalar structure containing the fields: Name = SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0 Interface = Alsa ID = 1 @} @end example @xseealso{mididevice} @end deftypefn @c MIDI Device Interface midiflush @c ----------------------------------------- @subsection midiflush @cindex midiflush @deftypefn {} {} midiflush (@var{dev}) Flush the receive buffers on a midi device @subsubheading Inputs @var{dev} - midi device opened using mididevice@* @subsubheading Outputs None @subsubheading Examples Flush a midi device @example midiflush(dev); @end example @xseealso{mididevice, midireceive} @end deftypefn @c MIDI Device Interface midimsg @c ----------------------------------------- @subsection midimsg @cindex midimsg @deftypefn {} {@var{msg} =} midimsg (0) @deftypefnx {} {@var{msg} =} midimsg (@var{type} ....) @deftypefnx {} {@var{msg} =} midimsg ("note", @var{channel}, @var{note}, @var{velocity}, @var{duration}, @var{timestamp}) @deftypefnx {} {@var{msg} =} midimsg ("noteon", @var{channel}, @var{note}, @var{velocity}, @var{timestamp}) @deftypefnx {} {@var{msg} =} midimsg ("noteoff", @var{channel}, @var{note}, @var{velocity}, @var{timestamp}) @deftypefnx {} {@var{msg} =} midimsg ("programchange", @var{channel}, @var{prog}, @var{timestamp}) @deftypefnx {} {@var{msg} =} midimsg ("controlchange", @var{channel}, @var{ccnum}, @var{ccval}, @var{timestamp}) @deftypefnx {} {@var{msg} =} midimsg ("polykeypressure", @var{channel}, @var{note}, @var{keypressure}, @var{timestamp}) @deftypefnx {} {@var{msg} =} midimsg ("channelpressure", @var{channel}, @var{chanpressure}, @var{timestamp}) @deftypefnx {} {@var{msg} =} midimsg ("localcontrol", @var{channel}, @var{localcontrol}, @var{timestamp}) @deftypefnx {} {@var{msg} =} midimsg ("pitchbend", @var{channel}, @var{pitchchange}, @var{timestamp}) @deftypefnx {} {@var{msg} =} midimsg ("polyon", @var{channel}, @var{timestamp}) @deftypefnx {} {@var{msg} =} midimsg ("monoon", @var{channel}, @var{monochannels}, @var{timestamp}) @deftypefnx {} {@var{msg} =} midimsg ("omnion", @var{channel}, @var{timestamp}) @deftypefnx {} {@var{msg} =} midimsg ("omnioff", @var{channel}, @var{timestamp}) @deftypefnx {} {@var{msg} =} midimsg ("allsoundoff", @var{channel}, @var{timestamp}) @deftypefnx {} {@var{msg} =} midimsg ("allnotesoff", @var{channel}, @var{timestamp}) @deftypefnx {} {@var{msg} =} midimsg ("resetallcontrollers", @var{channel}, @var{timestamp}) @deftypefnx {} {@var{msg} =} midimsg ("start", @var{timestamp}) @deftypefnx {} {@var{msg} =} midimsg ("stop", @var{timestamp}) @deftypefnx {} {@var{msg} =} midimsg ("continue", @var{timestamp}) @deftypefnx {} {@var{msg} =} midimsg ("systemreset", @var{timestamp}) @deftypefnx {} {@var{msg} =} midimsg ("activesensing", @var{timestamp}) @deftypefnx {} {@var{msg} =} midimsg ("timingclock", @var{timestamp}) @deftypefnx {} {@var{msg} =} midimsg ("systemexclusive", @var{timestamp}) @deftypefnx {} {@var{msg} =} midimsg ("systemexclusive", @var{bytes}, @var{timestamp}) @deftypefnx {} {@var{msg} =} midimsg ("eox", @var{timestamp}) @deftypefnx {} {@var{msg} =} midimsg ("data", @var{bytes}, @var{timestamp}) @deftypefnx {} {@var{msg} =} midimsg ("songselect", @var{song}, @var{timestamp}) @deftypefnx {} {@var{msg} =} midimsg ("songpositionpointer", @var{songposition}, @var{timestamp}) @deftypefnx {} {@var{msg} =} midimsg ("tunerequest", @var{timestamp}) @deftypefnx {} {@var{msg} =} midimsg ("miditimecodequarterframe", @var{timeseq}, @var{timevalue}, @var{timestamp}) Create a midimsg object If the input parameter is 0, create an empty midi message object Otherwise the first variable is the type of message to create, followed by the additional parameters for the message. For each message type, the timestamp value is optional. @subsubheading Inputs @var{type} - string message type or a midimsgtype.@* @var{timestamp} - optional seconds time stamp for the event@* @var{channel} - the channel to use for the message (1..16)@* @var{note} - the value of the note to play/stop@* @var{velocity} - the velocity value for a note on/off, with 0 stopping a note from sounding.@* @var{duration} - seconds between starting and stopping a note when created a 'note' message.@* @var{prog} - program number when doing a program change message.@* @var{ccnum} - control change control number.@* @var{ccval} - control change control value.@* @var{keypressure} - key pressure value when creating a key pressure message.@* @var{chanpressure} - channel pressure value when creating a channelpressure message.@* @var{pitchchange} - pitch change value when creating a pitch bend message.@* @var{localcontrol} - boolean value when creating a localcontrol message.@* @var{monochannels} - channels specified for a mono on message.@* @var{bytes} - array of data in range of 0 to 127 specified as part of a data message or system exclusive message.@* @var{song} - song selection number for a song selection message.@* @var{songposition} - song position value for a song position message.@* @var{timeseq} - timecode sequence number for a miditimecodequarterframe message.@* @var{timevalue} - timecode value number for a miditimecodequarterframe message.@* @subsubheading Outputs @var{msg} - a midimsg object containing the midi data of the message @subsubheading Properties @var{timestamp} - timestamp of the message, or an array or timestamps if the the message is a compound message.@* @var{msgbytes} - the raw message bytes that make up the MIDI message.@* @var{nummsgbytes} - the number of message bytes that make up the MIDI message.@* @var{type} - string or midimsgtype that represents the message type.@* @var{channel} - the channel number for message.@* @var{note} - the note value for message (Only valid for noteon/off and polykeypressure).@* @var{velocity} - the velocity value for message (Only valid for noteon/off).@* @var{keypressure} - the keypressure value for message (Only valid for polykeypressure).@* @var{channelpressure} - the chanpressure value for message (Only valid for channelpressure).@* @var{localcontrol} - the localcontrol value for message (Only valid for localcontrol messages).@* @var{monochannels} - channels specified for a mono on message.@* @var{program} - program number specified for a program change message.@* @var{ccnumber} - control change number specified for a control change message.@* @var{ccvalue} - control change value specified for a control change message.@* @var{song} - song number for a song selection message.@* @var{songposition} - song position value for a song position message.@* @var{pitchchange} - pitch change value for a pitch bend message.@* @var{timecodesequence} - timecode sequence number for a miditimecodequarterframe message.@* @var{timecodevalue} - timecode value number for a miditimecodequarterframe message.@* @subsubheading Examples Create a note on/off pair with a duration of 1.5 seconds @example msg = midimsg('note', 1, 60, 100, 1.5) @end example Create a separate note on/off pair with a time between them of 1.5 seconds @example msg = [midimsg('noteon', 1, 60, 100, 0), midimsg('noteoff', 1, 60, 0, 1.5)] @end example Create a system reset message @example msg = midimsg('systemreset') @end example @xseealso{midifileread, midisend, midireceive, midimsgtype} @end deftypefn @c MIDI Device Interface midireceive @c ----------------------------------------- @subsection midireceive @cindex midireceive @deftypefn {} {@var{midimsg} =} midireceive (@var{dev}) @deftypefnx {} {@var{midimsg} =} midireceive (@var{dev}, @var{maxmsg}) Attempt to receive midi messages from a midi device. @subsubheading Inputs @var{dev} - a octave midi device opened using mididevice.@* @var{maxmsg} - Maximum number of messages to retrieve. If not specified, the function will attempt to get all pending.@* @subsubheading Outputs @var{midimsg} - a midimsg containing the messages retrieved from the device.@* If no messages are available, @var{midimsg} will be empty. @subsubheading Examples Open device 0, and poll and display read messages @example dev = mididevice(0); while true mx = midireceive(dev); if !isempty(mx) % display message mx endif endwhile @end example @xseealso{mididevice, midisend} @end deftypefn @c MIDI Device Interface midisend @c ----------------------------------------- @subsection midisend @cindex midisend @deftypefn {} {} midisend (@var{dev}, @var{msg}) @deftypefnx {} {} midisend (@var{dev}, ...) Send a midimsg to a midi device @subsubheading Inputs @var{dev} - midi device opened using mididevice@* @var{msg} - a midi message class with messages to send to the midi device@* If the msg isn't a midimsg class, the input data is expected to be in same format as the inputs to a midimsg object. @subsubheading Outputs None @subsubheading Examples Send a note on/off command to a opened midi device @var{dev} @example midisend(dev, midimsg("note", 1, 60, 100, 2.0)); @end example @xseealso{midimsg, mididevice, midireceive} @end deftypefn @c --------------------------------------------------- @node MIDI Controller Interface @section MIDI Controller Interface @cindex MIDI Controller Interface @c MIDI Controller Interface midicallback @c ----------------------------------------- @subsection midicallback @cindex midicallback @deftypefn {} {@var{oldhandle} =} midicallback (@var{midicontrolsObj}, @var{functionHandle}) @deftypefnx {} {@var{oldhandle} =} midicallback (@var{midicontrolsObj}, []) @deftypefnx {} {@var{currhandle} =} midicallback (@var{midicontrolsObj}) Get, set or clear the midicontrol object callback. @subsubheading Inputs @var{midicontrolObj} - control object created using midicontrols. @var{functionHandle} - function handle to set for call back. If it is [], the callback function will be cleared. @strong{NOTE}: currently anonymous functions will not work. @strong{NOTE}: callbacks should be cleared before losing all references to the midicontrols object. @subsubheading Outputs @var{oldhandle} The previously set midicallback function handle when setting a new callback. @var{currhandle} The current set midicallback function handle. @subsubheading Examples Set a callback on a midicontrols object @example ctrl = midicontrols(2001) function dispCallback(ctrl),disp(midiread(ctrl)),endfunction; midicallback(ctrl, @@dispCallback); @end example Clear the callback on a midicontrols object @example ctrl = midicontrols(2001) midicallback(ctrl, []); @end example Get the current callback on a midicontrols object @example ctrl = midicontrols(2001) cb = midicallback(ctrl); @end example @xseealso{midicontrols, midisync, midiread} @end deftypefn @c MIDI Controller Interface midicontrols @c ----------------------------------------- @subsection midicontrols @cindex midicontrols @deftypefn {} {@var{obj} =} midicontrols () @deftypefnx {} {@var{obj} =} midicontrols (@var{ctrlid}) @deftypefnx {} {@var{obj} =} midicontrols (@var{ctrlid}, @var{initialvalues}) @deftypefnx {} {@var{obj} =} midicontrols (__, @var{propertyname}, @var{propertyvalue}) Create a midi controls object @subsubheading Inputs @var{ctrlid} - single control id or array of control ids to monitor, or [] to use any controller.@* @var{initialvalues} - initial values to use for controls. It should be the same size as @var{ctrlid}@* @var{propertyname}, @var{propertyvalue} - properties to set on the controller. If a device is not specified the value from getpref("midi", "DefaultDevice", 0) will be used.@* Known properties are: @table @asis @item mididevice name of the mididevice to monitor. @item outputmode the scaling mode for values: 'rawmidi' will return values between 0 .. 127, 'normalized' will use values between 0 .. 1. @end table @subsubheading Outputs @var{obj} - returns a midicontrols object @subsubheading Examples Create a midicontrols object monitoring control id 2001 on the default midi device @example ctrl = midicontrols(2001) @end example Create a midicontrols object monitoring control id 2001 on a a non default device @example ctrl = midicontrols(2001, 'mididevice', 1) @end example @xseealso{midiread, midisync} @end deftypefn @c MIDI Controller Interface midiid @c ----------------------------------------- @subsection midiid @cindex midiid @deftypefn {} {[@var{ctrlid}, @var{dev}] =} midiid () Scan for control messages from midi devices to get the id of the device Function will display a prompt for the user to move the midi control and return when a control messages is detected or ctrl-C is pressed. @subsubheading Inputs None @subsubheading Outputs @var{ctrlid} - control id made from the controller channel * 1000 + controller number.@* @var{dev} = name of the midi device the controller was detected on. @subsubheading Examples Monitor midi devices for first moving controller @example [ctrlid, devname] = midiid() @end example @xseealso{mididevinfo, midicontrols} @end deftypefn @c MIDI Controller Interface midiread @c ----------------------------------------- @subsection midiread @cindex midiread @deftypefn {} {@var{val} =} midiread (@var{midicontrolsObj}) Read current values of midi controls @subsubheading Inputs @var{midicontrolObj} - control object created using midicontrols@* @subsubheading Outputs @var{val} single value or array of current values from the midi device. @subsubheading Examples Read current value of midicontrols with a ctrlid 2001 on the default midi device. @example ctrl = midicontrols(2001) val = midiread(ctrl); @end example Read current value of midicontrols with a ctrlid 2001 on a non default midi device. @example ctrl = midicontrols(2001, 'mididevice', 1) val = midiread(ctrl); @end example @xseealso{midicontrols, midisync} @end deftypefn @c MIDI Controller Interface midisync @c ----------------------------------------- @subsection midisync @cindex midisync @deftypefn {} {} midisync (@var{midicontrolsObj}) @deftypefnx {} {} midisync (@var{midicontrolsObj}, @var{ctrlvalues}) Send the values of control object to the control, using @var{ctrlvalues} values if specified instead @subsubheading Inputs @var{midicontrolObj} - control object created using midicontrols@* @var{ctrlvalues} - values to send to the controls instead of initial values @subsubheading Outputs None @subsubheading Examples Send sync command to a midicontrols with a ctrlid 2001 to set a value of 1 @example ctrl = midicontrols(2001) midisync(ctrl, 1); @end example @xseealso{midicontrols} @end deftypefn @c --------------------------------------------------- @node MIDI File I/O @section MIDI File I/O @cindex MIDI File I/O @c MIDI File I/O ismidifile @c ----------------------------------------- @subsection ismidifile @cindex ismidifile @deftypefn {} {@var{ismidi} =} ismidifile (@var{filename}) Check if @var{filename} is a midi file. The function only checks whether it is an existing file and the file starts with a valid 'MThd' header. Non existing files, or files that do not meet the header criteria will return false. @subsubheading Inputs @var{filename} - filename of file to check.@* @subsubheading Outputs @var{ismidi} - true if it is a midi file, false otherwise @xseealso{midifileread, midifilewrite} @end deftypefn @c MIDI File I/O midifileinfo @c ----------------------------------------- @subsection midifileinfo @cindex midifileinfo @deftypefn {} {@var{info} =} midifileinfo (@var{filename}) Read MIDI file and display information about the tracks and data @subsubheading Inputs @var{filename} - filename of file to open.@* @subsubheading Outputs @var{info} - structure of the midi file data with the following fields:@* @table @asis @item filename the name of the file @item header The header block information @item track An array of tracks read from the file @item other An array of non-track midi blocks read from the file @end table @xseealso{midifileread} @end deftypefn @c MIDI File I/O midifileread @c ----------------------------------------- @subsection midifileread @cindex midifileread @deftypefn {} {@var{msg} =} midifileread (@var{filename}, [propertyname, propertyvalue @dots{}]) Read MIDI file into a midimsg @subsubheading Inputs @var{filename} - filename of file to open.@* @var{propertyname}, @var{properyvalue} - optional propertyname/value pairs.@* Known property values are: @table @asis @item includemetaevents A True/False value to include MetaEvents in the out message list. @end table @subsubheading Outputs @var{msg} - a midimsg struct containing the messages read from the file@* @xseealso{midifileinfo, midimsg} @end deftypefn @c MIDI File I/O midifilewrite @c ----------------------------------------- @subsection midifilewrite @cindex midifilewrite @deftypefn {} {} midifilewrite (@var{filename}, @var{msgs}) @deftypefnx {} {} midifilewrite (@var{filename}, @var{msgs}, @var{optionname}, @var{optionvalue}) Write a midifile @subsubheading Inputs @var{filename} - filename of file to open.@* @var{msg} - a midimsg struct or a cell array of midimsg containing data to write to file@* @var{optionname}, @var{optionvalue} - option value/name pairs@* Known options are: @table @asis @item format MIDI file format number. (0 (default), 1, 2) @end table Where format is 0, if a cell array is passed to midifilewrite, the midimsg values will be concatenated together before saving. Were format is not 0, the cell array is treated as tracks of misimsg. @subsubheading Outputs None @xseealso{midifileread, midimsg} @end deftypefn @c --------------------------------------------------- @node Enumerations @section Enumerations @cindex Enumerations @c Enumerations midimsgtype @c ----------------------------------------- @subsection midimsgtype @cindex midimsgtype @deftypefn {} {} midimsgtype A midimsg type enumeration for values of the midimsg type. Enumeration values are: @multitable @columnfractions .2 .4 .3 @item Data @tab Stop @tab SongPositionPointer @item PolyOn @tab PolyKeyPressure @tab NoteOff @item EOX @tab ActiveSensing @tab SongSelect @item MonoOn @tab ChannelPressure @tab ControlChange @item TimingClock @tab SystemReset @tab AllSoundOff @item OmniOn @tab PitchBend @tab ProgramChange @item Start @tab TuneRequest @tab ResetAllControllers @item OmniOff @tab Undefined @tab SystemExclusive @item Continue @tab MIDITimeCodeQuarterFrame @tab LocalControl @item AllNotesOff @tab MetaEvent @tab @end multitable The enumeration value can be used instead of a string in midimsg creation. @subsubheading Examples Use both a string and a midimsgtype for the type parameter of a midimsg. @example @code { # both statements are equivalent msg = midimsg('NoteOn', 1, 60, 100); msg = midimsg(midimsgtype.NoteOn, 1, 60, 100); } @end example @xseealso{midimsg} @end deftypefn @c --------------------------------------------------- @node Waveform Generation @section Waveform Generation @cindex Waveform Generation @c Waveform Generation audioOscillator @c ----------------------------------------- @subsection audioOscillator @cindex audioOscillator @deftypefn {} {} audioOscillator Generate sine, sawtool and square waveforms @end deftypefn @subheading Methods @deftypefn {} {@var{obj} =} audioOscillator () @deftypefnx {} {@var{obj} =} audioOscillator (@var{signalTypeValue}) @deftypefnx {} {@var{obj} =} audioOscillator (@var{signalTypeValue}, @var{frequencyValue}) @deftypefnx {} {@var{obj} =} audioOscillator (__, @var{propertyname}, @var{propertyvalue}) Create a audioOscillator object @subsubheading Inputs @var{signalTypeValue} - signal type of "sine" (default), "square", "sawtooth".@* @var{frequencyValue} - hz frequency value of waveform (default 100).@* @var{propertyname}, @var{propertyvalue} - properties to set on the object. Known properties are: @table @asis @item SignalType signal type of "sine" (default), "square" or "sawtooth". (readonly) @item Frequency frequency of the waveform (default 100) @item Amplitude amplitude of the signal (default 1) @item SampleRate sample rate of the signal (default 44100) @item PhaseOffset phase offset of signal 0 (default) - 1 (readonly) @item DutyCycle dutycycle of the signal 0 - 1 (default 0.5) when signal is a square wave. @item SamplePerFrame Samples per frame as returned from () (default 512) @item MaxSamplePerFrame Max samples per frame (default 192000) @item DCOffset DC Offset of signal (default 0) @item Width Width of sawtooth (default 1) @item OutputDataType Output data type of 'single' or 'double' (default 'double') @end table @subsubheading Outputs @var{obj} - signalGenerator object @subsubheading Examples Create a 100 hz sine wave and plot first 512 samples @example sinosc = audioOscillator data = sinosc(); plot(data); @end example Create a 2 hz square wave with duty cycle of 0.5 @example sqosc = audioOscillator('square', 'DutyCycle', 0.50, 'Frequency', 2); @end example @end deftypefn @deftypefn {} {@var{data} =} @var{obj}() Generate a frame of waveform data from the generator function @subsubheading Inputs @var{obj} - signalGenerator object @subsubheading Outputs @var{data} - waveform data @end deftypefn @deftypefn {} {} release(@var{obj}) Release resources of generator @subsubheading Inputs @var{obj} - signalGenerator object @subsubheading Outputs None @end deftypefn @c --------------------------------------------------- @node Measurements @section Measurements @cindex Measurements @c Measurements bark2hz @c ----------------------------------------- @subsection bark2hz @cindex bark2hz @deftypefn {} {@var{hz} =} bark2hz (@var{bark}) Convert equivalent Bark Frequency to Hz. @subsubheading Inputs @var{bark} - input frequency in bark. @subsubheading Outputs @var{hz} - Output frequency in Hz. @subsubheading References Traunmüller, Hartmut. @cite{Analytical Expressions for the Tonotopic Sensory Scale. Journal of the Acoustical Society of America. Vol. 88, Issue 1, 1990} @xseealso {hz2bark} @end deftypefn @c Measurements erb2hz @c ----------------------------------------- @subsection erb2hz @cindex erb2hz @deftypefn {} {@var{hz} =} erb2hz (@var{erb}) Convert equivalent rectangular bandwidth (ERB) to Hz. @subsubheading Inputs @var{erb} - input frequency in erb. @subsubheading Outputs @var{hz} - Output frequency in Hz. @subsubheading References Glasberg and Moore. @cite{Derivation of Auditory Filter Shapes from Notched-Noise Data. Hearing Research. Vol. 47, 1990} @xseealso {hz2erb} @end deftypefn @c Measurements hz2bark @c ----------------------------------------- @subsection hz2bark @cindex hz2bark @deftypefn {} {@var{bark} =} hz2bark (@var{hz}) Convert hz to equivalent bark frequency @subsubheading Inputs @var{hz} - input frequency in Hz. @subsubheading Outputs @var{bark} - Output frequency as a bark value @subsubheading Examples Convert 4000 Hz to erb @example @code{erb = hz2erb(4000)} @end example @subsubheading References Traunmüller, Hartmut. @cite{Analytical Expressions for the Tonotopic Sensory Scale. Journal of the Acoustical Society of America. Vol. 88, Issue 1, 1990} @xseealso {bark2hz} @end deftypefn @c Measurements hz2erb @c ----------------------------------------- @subsection hz2erb @cindex hz2erb @deftypefn {} {@var{erb} =} hz2erb (@var{hz}) Convert hz to equivalent rectangular bandwidth (ERB) @subsubheading Inputs @var{hz} - input frequency in Hz. @subsubheading Outputs @var{erb} - Output frequency as a erb value @subsubheading Examples Convert 4000 Hz to erb @example @code{erb = hz2erb(4000)} @end example Convert a range of Hz to erb @example @code {erb = hz2erb(4000:100:5000)} @end example @subsubheading References Glasberg and Moore. @cite{Derivation of Auditory Filter Shapes from Notched-Noise Data. Hearing Research. Vol. 47, 1990} @xseealso {erb2hz} @end deftypefn @c Measurements hz2mel @c ----------------------------------------- @subsection hz2mel @cindex hz2mel @deftypefn {} {@var{mel} =} hz2mel (@var{hz}) Convert hz to equivalent mel frequency. @subsubheading Inputs @var{hz} - input frequency in Hz. @subsubheading Outputs @var{mel} - Output frequency as a mel value @subsubheading Examples Convert 4000 Hz to mel @example @code{mel = hz2mel(4000)} @end example Convert a range of Hz to mel @example @code {mel = hz2erb(4000:100:5000)} @end example @subsubheading References O'Shaghnessy, Douglas. @cite{Speech Communication: Human and Machine. Reading, MA: Addison-Wesley Publishing Company, 1987} @xseealso {mel2hz} @end deftypefn @c Measurements mel2hz @c ----------------------------------------- @subsection mel2hz @cindex mel2hz @deftypefn {} {@var{hz} =} mel2hz (@var{mel}) Convert equivalent mel frequency to Hz. @subsubheading Inputs @var{mel} - input frequency in mel. @subsubheading Outputs @var{hz} - Output frequency in Hz. @subsubheading References O'Shaghnessy, Douglas. @cite{Speech Communication: Human and Machine. Reading, MA: Addison-Wesley Publishing Company, 1987} @xseealso {hz2mel} @end deftypefn audio-2.0.8/doc/gpl.texi0000644000000000000000000010433014506546342013244 0ustar0000000000000000@node Copying @appendix GNU General Public License @cindex warranty @cindex copyright @center Version 3, 29 June 2007 @display Copyright @copyright{} 2007 Free Software Foundation, Inc. @url{http://fsf.org/} Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. @end display @heading Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program---to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. 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 them 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 prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. 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. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. @heading TERMS AND CONDITIONS @enumerate 0 @item Definitions. ``This License'' refers to version 3 of the GNU General Public License. ``Copyright'' also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. ``The Program'' refers to any copyrightable work licensed under this License. Each licensee is addressed as ``you''. ``Licensees'' and ``recipients'' may be individuals or organizations. To ``modify'' a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a ``modified version'' of the earlier work or a work ``based on'' the earlier work. A ``covered work'' means either the unmodified Program or a work based on the Program. To ``propagate'' a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To ``convey'' a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays ``Appropriate Legal Notices'' to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. @item Source Code. The ``source code'' for a work means the preferred form of the work for making modifications to it. ``Object code'' means any non-source form of a work. A ``Standard Interface'' means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The ``System Libraries'' of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A ``Major Component'', in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The ``Corresponding Source'' for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. @item Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. @item Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. @item Conveying Verbatim Copies. You may convey 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; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. @item Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: @enumerate a @item The work must carry prominent notices stating that you modified it, and giving a relevant date. @item The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to ``keep intact all notices''. @item You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. @item If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. @end enumerate A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an ``aggregate'' if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. @item Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: @enumerate a @item Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. @item Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. @item Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. @item Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. @item Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. @end enumerate A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A ``User Product'' is either (1) a ``consumer product'', which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, ``normally used'' refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. ``Installation Information'' for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. @item Additional Terms. ``Additional permissions'' are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: @enumerate a @item Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or @item Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or @item Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or @item Limiting the use for publicity purposes of names of licensors or authors of the material; or @item Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or @item Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. @end enumerate All other non-permissive additional terms are considered ``further restrictions'' within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. @item Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. @item Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. @item Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An ``entity transaction'' is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. @item Patents. A ``contributor'' is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's ``contributor version''. A contributor's ``essential patent claims'' are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, ``control'' includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a ``patent license'' is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To ``grant'' such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. ``Knowingly relying'' means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is ``discriminatory'' if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. @item No Surrender of Others' Freedom. If 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 convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. @item Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. @item Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU 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 that a certain numbered version of the GNU General Public License ``or any later version'' applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. @item Disclaimer of Warranty. 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. @item Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 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. @item Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. @end enumerate @heading END OF TERMS AND CONDITIONS @heading 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 state the exclusion of warranty; and each file should have at least the ``copyright'' line and a pointer to where the full notice is found. @smallexample @var{one line to give the program's name and a brief idea of what it does.} Copyright (C) @var{year} @var{name of author} 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 3 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, see @url{http://www.gnu.org/licenses/}. @end smallexample Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: @smallexample @var{program} Copyright (C) @var{year} @var{name of author} This program comes with ABSOLUTELY NO WARRANTY; for details type @samp{show w}. This is free software, and you are welcome to redistribute it under certain conditions; type @samp{show c} for details. @end smallexample The hypothetical commands @samp{show w} and @samp{show c} should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an ``about box''. You should also get your employer (if you work as a programmer) or school, if any, to sign a ``copyright disclaimer'' for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see @url{http://www.gnu.org/licenses/}. The GNU 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. But first, please read @url{http://www.gnu.org/philosophy/why-not-lgpl.html}. audio-2.0.8/doc/macros.texi0000644000000000000000000000624114506546342013750 0ustar0000000000000000@c Copyright (C) 2012-2019 John W. Eaton @c @c This file is part of Octave. @c @c Octave is free software: you can redistribute it and/or modify it @c under the terms of the GNU General Public License as published by @c the Free Software Foundation, either version 3 of the License, or @c (at your option) any later version. @c @c Octave is distributed in the hope that it will be useful, but @c WITHOUT ANY WARRANTY; without even the implied warranty of @c MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the @c GNU General Public License for more details. @c @c You should have received a copy of the GNU General Public License @c along with Octave; see the file COPYING. If not, see @c . @c The following macro marks words that aspell should ignore during @c spellchecking. Within Texinfo it has no effect as it merely replaces @c the macro call with the argument itself. @macro nospell {arg} \arg\ @end macro @c The following macro works around the Info/plain text expansion of @code{XXX} @c which is `XXX'. This looks particularly bad when the macro body is @c single or double-quoted text, such as a property value `"position"' @ifinfo @macro qcode{arg} \arg\ @end macro @end ifinfo @ifnotinfo @macro qcode{arg} @code{\arg\} @end macro @end ifnotinfo @c The following macro is used for the on-line help system, but we don't @c want lots of `See also: foo, bar, and baz' strings cluttering the @c printed manual (that information should be in the supporting text for @c each group of functions and variables). @c @c Implementation Note: @c For TeX, @vskip produces a nice separation. @c For Texinfo, '@sp 1' should work, but in practice produces ugly results @c for HTML. We use a simple blank line to produce the correct @c behavior. @c @c We use @xseealso now because Texinfo introduced its own @seealso @c command. But instead of modifying all source files, we'll have the @c munge-texi script convert @seealso to @xseealso. @macro xseealso {args} @iftex @vskip 2pt @end iftex @ifnottex @end ifnottex @ifnotinfo @noindent @strong{See also:} \args\. @end ifnotinfo @ifinfo @noindent See also: \args\. @end ifinfo @end macro @c The following macro works around a situation where the Info/plain text @c expansion of the @code{XXX} macro is `XXX'. The use of the apostrophe @c can be confusing if the code segment itself ends with a transpose operator. @ifinfo @macro tcode{arg} \arg\ @end macro @end ifinfo @ifnotinfo @macro tcode{arg} @code{\arg\} @end macro @end ifnotinfo @c FIXME: someday, when Texinfo 5.X is standard, we might replace this with @c @backslashchar, which is a new addition to Texinfo. @macro xbackslashchar \\ @end macro @c These may be useful for all, not just for octave.texi. @tex \ifx\rgbDarkRed\thisisundefined \def\rgbDarkRed{0.50 0.09 0.12} \fi \ifx\linkcolor\thisisundefined \relax \else \global\def\linkcolor{\rgbDarkRed} \fi \ifx\urlcolor\thisisundefined \relax \else \global\def\urlcolor{\rgbDarkRed} \fi \ifx\urefurlonlylinktrue\thisisundefined \relax \else \global\urefurlonlylinktrue \fi @end tex @c Make the apostrophe in code examples cut-and-paste friendly. @codequoteundirected on audio-2.0.8/doc/version.texi0000644000000000000000000000013214506546342014142 0ustar0000000000000000@c autogenerated from Makefile @set VERSION 2.0.8 @set PACKAGE audio @set DATE 2023-10-02 audio-2.0.8/inst/0000755000000000000000000000000014506546342011776 5ustar0000000000000000audio-2.0.8/inst/@octave_midi/0000755000000000000000000000000014506546342014361 5ustar0000000000000000audio-2.0.8/inst/@octave_midi/hasdata.m0000644000000000000000000000234214506546342016145 0ustar0000000000000000## Copyright (C) 2022 John Donoghue ## ## 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 3 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, see ## . ## -*- texinfo -*- ## @deftypefn {} {@var{tf} =} hasdata (@var{dev}) ## Return whether there is data available to read ## ## @subsubheading Inputs ## @var{dev} - a octave midi device opened using mididevice.@* ## ## @subsubheading Outputs ## @var{tf} - true if device has data available to read@* ## ## @seealso{mididevice} ## @end deftypefn function tf = hasdata(dev) if nargin < 1 || !isobject(dev) || !strcmp(typeinfo(dev), "octave_midi") error ("Expected midi device"); endif tf = __midistat__(dev); endfunction audio-2.0.8/inst/PKG_ADD0000644000000000000000000000070614506546342013015 0ustar0000000000000000# on package load, attempt to load docs try pkg_dir = fileparts (fullfile (mfilename ("fullpath"))); doc_file = fullfile (pkg_dir, "doc", "audio.qch"); if exist(doc_file, "file") if exist("__event_manager_register_documentation__") __event_manager_register_documentation__ (doc_file); elseif exist("__event_manager_register_doc__") __event_manager_register_doc__ (doc_file); endif endif catch # do nothing end_try_catch audio-2.0.8/inst/PKG_DEL0000644000000000000000000000072014506546342013025 0ustar0000000000000000# on package load, attempt to unload docs try pkg_dir = fileparts (fullfile (mfilename ("fullpath"))); doc_file = fullfile (pkg_dir, "doc", "audio.qch"); if exist(doc_file, "file") if exist("__event_manager_unregister_documentation__") __event_manager_unregister_documentation__ (doc_file); elseif exist("__event_manager_unregister_doc__") __event_manager_unregister_doc__ (doc_file); endif endif catch # do nothing end_try_catch audio-2.0.8/inst/audio.m0000644000000000000000000000522514506546342013261 0ustar0000000000000000## Copyright (C) 2019 John Donoghue ## ## 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 3 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, see ## . ## -*- texinfo -*- ## The Audio package provides basic MIDI and audio functionality for GNU octave. ## ## @subheading MIDI ## The following MIDI functions are available: ## ## @subsubheading MIDI Device query: ## @table @asis ## @item mididevinfo ## list any MIDI devices detected in the system ## @end table ## ## @subsubheading MIDI Device creation and manipulation: ## @table @asis ## @item mididevice ## Create a midi device ## @item midimsg ## Create a MIDI message or group of messages ## @item midireceive ## receive a MIDI message from a device ## @item midisend ## Send a MIDI message to a device ## @end table ## ## @subsubheading MIDI Controller Interface Functions: ## @table @asis ## @item midiid ## Identify a midi controller ## @item midicontrols ## Create a MIDI controller object ## @item midireceive ## Receive data from a MIDI controller object ## @item midisend ## Send data to a MIDI controller. ## @end table ## ## @subsubheading Writing and reading basic MIDI files: ## @table @asis ## @item midifileinfo ## read information about a MIDI file, including number of tracks, ## comments etc. ## @item midifileread ## read a MIDI file into a midimsg array ## @item midifilewrite ## write a midimsg array to a MIDI file ## @end table ## ## @subsubheading General usage: ## ## Normal usage would involve querying the devices that are available: ## @example ## mididevinfo ## @end example ## ## Then selecting the device(s) to connect to, and creating a mididevice to perform read and write functionality: ## @example ## dev = mididevice(0); ## @end example ## ## And then performing I/O on the device: ## @example ## msg = midireceive(dev) ## @end example ## ## @subheading Audio ## The following Audio functions are available: ## @table @asis ## @item hz2mel, hz2bark, hz2erp, mel2hz, bark2hz, erp2hz ## Convert between hz and other frequenct scales ## @item audioOscillator ## Create a audio waveform generator ## @end table function audio() help audio; endfunction audio-2.0.8/inst/audioOscillator.m0000644000000000000000000003510214506546342015312 0ustar0000000000000000## Copyright (C) 2023 John Donoghue ## ## 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 3 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, see ## . classdef audioOscillator < handle ## -*- texinfo -*- ## @deftypefn {} {} audioOscillator ## Generate sine, sawtool and square waveforms ## @end deftypefn ## ## @subheading Methods ## @deftypefn {} {@var{obj} =} audioOscillator () ## @deftypefnx {} {@var{obj} =} audioOscillator (@var{signalTypeValue}) ## @deftypefnx {} {@var{obj} =} audioOscillator (@var{signalTypeValue}, @var{frequencyValue}) ## @deftypefnx {} {@var{obj} =} audioOscillator (__, @var{propertyname}, @var{propertyvalue}) ## Create a audioOscillator object ## ## @subsubheading Inputs ## @var{signalTypeValue} - signal type of "sine" (default), "square", "sawtooth".@* ## @var{frequencyValue} - hz frequency value of waveform (default 100).@* ## @var{propertyname}, @var{propertyvalue} - properties to set on the object. ## ## Known properties are: ## @table @asis ## @item SignalType ## signal type of "sine" (default), "square" or "sawtooth". (readonly) ## @item Frequency ## frequency of the waveform (default 100) ## @item Amplitude ## amplitude of the signal (default 1) ## @item SampleRate ## sample rate of the signal (default 44100) ## @item PhaseOffset ## phase offset of signal 0 (default) - 1 (readonly) ## @item DutyCycle ## dutycycle of the signal 0 - 1 (default 0.5) when signal is a square wave. ## @item SamplePerFrame ## Samples per frame as returned from () (default 512) ## @item MaxSamplePerFrame ## Max samples per frame (default 192000) ## @item DCOffset ## DC Offset of signal (default 0) ## @item Width ## Width of sawtooth (default 1) ## @item OutputDataType ## Output data type of 'single' or 'double' (default 'double') ## @end table ## ## @subsubheading Outputs ## @var{obj} - signalGenerator object ## ## @subsubheading Examples ## Create a 100 hz sine wave and plot first 512 samples ## @example ## sinosc = audioOscillator ## data = sinosc(); ## plot(data); ## @end example ## ## Create a 2 hz square wave with duty cycle of 0.5 ## @example ## sqosc = audioOscillator('square', 'DutyCycle', 0.50, 'Frequency', 2); ## @end example ## ## @end deftypefn ## ## @deftypefn {} {@var{data} =} @var{obj}() ## Generate a frame of waveform data from the generator function ## ## @subsubheading Inputs ## @var{obj} - signalGenerator object ## ## @subsubheading Outputs ## @var{data} - waveform data ## @end deftypefn ## ## @deftypefn {} {} release(@var{obj}) ## Release resources of generator ## ## @subsubheading Inputs ## @var{obj} - signalGenerator object ## ## @subsubheading Outputs ## None ## @end deftypefn properties (SetAccess = private, GetAccess = public) # read only properties SignalType = "sine"; PhaseOffset = 0; endproperties properties (Access = public) # read/write properties SampleRate = 44100; DutyCycle = 0.5; Frequency = 100; Amplitude = 1.0; SamplesPerFrame = 512; Width = 1; DCOffset = 0; MaxSamplesPerFrame = 192000; OutputDataType = 'double' endproperties properties (Static = true, Access = private) # data validation functions check_sig_value = @(x) ischar(x) && any (strcmp (x, {'sine', 'square', 'sawtooth'})); check_odt_value = @(x) ischar(x) && any (strcmp (x, {'single', 'double'})); check_amp_value = @(x) isnumeric(x) && isreal(x) && (x >= 0) check_duty_value = @(x) isnumeric(x) && isreal(x) && isscalar(x) && (x >= 0 && x <= 1) check_freq_value = @(x) isnumeric(x) && isreal(x) && (x >= 0) check_srate_value = @(x) isnumeric(x) && isscalar(x) && isreal(x) && (x > 0) check_spf_value = @(x) isnumeric(x) && isscalar(x) && (rem(x, 1) == 0) && (x > 0) check_mspf_value = @(x) isnumeric(x) && isscalar(x) && (rem(x, 1) == 0) && (x > 0) check_width_value = @(x) isnumeric(x) && isscalar(x) && (x >= 0 && x <= 1) check_dcoff_value = @(x) isnumeric(x) && isreal(x) check_phase_value = @(x) isnumeric(x) && isreal(x) && all(x >= 0 && x <= 1) endproperties properties (Access = private) # internal data structure for waveform _wavedata = struct("data", [], "pos", 0); endproperties methods (Access = public) function this = audioOscillator(varargin) if nargin > 0 # either a property name or signal type if !ischar(varargin{1}) error ("Expected first input argument to be signal type or property name.") endif propstart = 1; # do we have signal type or possible property name/value? if this.check_sig_value(varargin{1}) this.SignalType = varargin{1}; propstart = 2; # we have frequency too ? if nargin > 1 && isnumeric(varargin{2}) propstart = 3; this.Frequency = varargin{2}; endif elseif !is_property(this, varargin{1}) error ("Expected first input argument to be signal type or property name.") endif if mod(length(varargin)-propstart, 2) != 1 error ("Expected property name/value pairs.") endif # handle the properties p = inputParser(CaseSensitive=false, FunctionName='audioOscillator'); p.addParameter('SignalType', this.SignalType, this.check_sig_value); p.addParameter('Amplitude', this.Amplitude, this.check_amp_value); p.addParameter('DutyCycle', this.DutyCycle, this.check_duty_value); p.addParameter('Frequency', this.Frequency, this.check_freq_value); p.addParameter('SampleRate', this.SampleRate, this.check_srate_value); p.addParameter('SamplesPerFrame', this.SamplesPerFrame, this.check_spf_value); p.addParameter('Width', this.Width, this.check_width_value); p.addParameter('DCOffset', this.DCOffset, this.check_dcoff_value); p.addParameter('MaxSamplesPerFrame', this.MaxSamplesPerFrame, this.check_mspf_value); p.addParameter('OutputDataType', this.OutputDataType, this.check_odt_value); p.addParameter('PhaseOffset', this.PhaseOffset, this.check_phase_value); p.parse(varargin{propstart:end}) # verify samples per frame vs maxsample per frame if p.Results.SamplesPerFrame > p.Results.MaxSamplesPerFrame error ("Invalid SamplesPerFrame - Can not be greater than MaxSamplesPerFrame") endif this.MaxSamplesPerFrame = p.Results.MaxSamplesPerFrame; # set properties from inputs/defaults fields = fieldnames(p.Results); for f = 1:length(fields) propname = fields{f}; propval = p.Results.(propname); this.(propname) = propval; endfor endif endfunction function release(this) # anything we need release ? if ! isempty(this._wavedata.data) this._wavedata.data = []; this._wavedata.pos = 0; endif endfunction function data = subsref(this, S) if nargin == 1 || (S(1).type == "()" && isempty(S(1).subs)) # build the waveform if we dont have one yet if isempty(this._wavedata.data) this._wavedata.pos = 0; # phase theta = this.PhaseOffset * 2 * pi; t = linspace(theta,2*pi*this.Frequency+theta,this.SampleRate); if strcmp(this.SignalType, "sine") wavedata = sin(t); elseif strcmp(this.SignalType, "square") t = t / 2*pi; wavedata = ones(size(t)); wavedata(t-floor(t) >= this.DutyCycle) = -1; elseif strcmp(this.SignalType, "sawtooth") t = mod (t / (2 * pi), 1); wavedata = zeros (size (t)); if this.Width != 0 wavedata(t < this.Width) = 2 * t(t= this.Width) = -2 * t(t>=this.Width) / (1-this.Width) +1; endif else # should never be able to get here error ("Unknown SignalType"); endif wavedata = this.DCOffset + (this.Amplitude * wavedata); if strcmp(this.OutputDataType, 'single') wavedata = single(wavedata); endif this._wavedata.data = wavedata; endif # extract some of the sample data = []; len = this.SamplesPerFrame - length(data); while len > 0 left = length(this._wavedata.data) - this._wavedata.pos; if left <= len # use up all thats left data = [data this._wavedata.data(this._wavedata.pos+1:end)]; this._wavedata.pos = 0; else data = [data this._wavedata.data(this._wavedata.pos+1:this._wavedata.pos+len)]; this._wavedata.pos = this._wavedata.pos + len; endif len = this.SamplesPerFrame - length(data); endwhile S = S(2:end); else data = this; endif if (numel (S) > 0) data = builtin('subsref',data, S); endif endfunction function this = set.SampleRate(this, rate) if ! this.check_srate_value(rate) error ("Invalid SampleRate - validation %s", func2str(this.check_srate_value)) endif this.SampleRate = rate; # clear data so will be regenerated this._wavedata.data = []; endfunction function this = set.DutyCycle(this, rate) if ! this.check_duty_value(rate) error ("Invalid DutyCycle - validation %s", func2str(this.check_duty_value)) endif this.DutyCycle = rate; # clear data so will be regenerated this._wavedata.data = []; endfunction function this = set.Amplitude(this, amp) if ! this.check_amp_value(amp) error ("Invalid Amplitude - validation %s", func2str(this.check_amp_value)) endif this.Amplitude = amp; # clear data so will be regenerated this._wavedata.data = []; endfunction function this = set.SamplesPerFrame(this, value) if ! this.check_spf_value(value) error ("Invalid SamplesPerFrame - validation %s", func2str(this.check_spf_value)) endif if value > this.MaxSamplesPerFrame error ("Invalid SamplesPerFrame - Can not be greater than MaxSamplesPerFrame"); endif this.SamplesPerFrame = value; # clear data so will be regenerated this._wavedata.data = []; endfunction function this = set.MaxSamplesPerFrame(this, value) if ! this.check_mspf_value(value) error ("Invalid MaxSamplesPerFrame - validation %s", func2str(this.check_mspf_value)) endif this.MaxSamplesPerFrame = value; # scale back samples per frame if now is invalid if this.SamplesPerFrame > value this.SamplesPerFrame = value; endif endfunction function this = set.Width(this, value) if ! this.check_width_value(value) error ("Invalid Width - validation %s", func2str(this.check_width_value)) endif this.Width = value; # clear data so will be regenerated this._wavedata.data = []; endfunction function this = set.DCOffset(this, value) if ! this.check_dcoff_value(value) error ("Invalid DCOffset - validation %s", func2str(this.check_dcoff_value)) endif this.DCOffset = value; # clear data so will be regenerated this._wavedata.data = []; endfunction function this = set.OutputDataType(this, value) if ! this.check_odt_value(value) error ("Invalid OutputDataType - validation %s", func2str(this.check_odt_value)) endif this.OutputDataType = value; # clear data so will be regenerated this._wavedata.data = []; endfunction function this = set.Frequency(this, value) if ! this.check_freq_value(value) error ("Invalid Frequency - validation %s", func2str(this.check_freq_value)) endif this.Frequency = value; # clear data so will be regenerated this._wavedata.data = []; endfunction endmethods methods (Access = private) function y = is_property(this, value) y = false; if exist ("properties") props_f = str2func("properties"); props = props_f(this); else # no properties function so manually look at classinfo props_all = metaclass(this).Properties; props = {}; for idx=1:length(props_all) p = props_all{idx}; if strcmp(p.GetAccess, "public") props{end+1} = p.Name; endif endfor endif if any(strcmpi(value, props)) y = true; endif endfunction endmethods endclassdef %!error audioOscillator(1) %!error audioOscillator("unknown") %!error audioOscillator("sine", "a") %!test %! osc = audioOscillator(); %! assert(osc.Frequency, 100); %! assert(osc.SampleRate, 44100); %! assert(osc.SignalType, "sine"); %! osc = audioOscillator("sine"); %! assert(osc.SignalType, "sine"); %! osc = audioOscillator("SignalType", "sine"); %! assert(osc.SignalType, "sine"); %! osc = audioOscillator("sine", 2); %! assert(osc.SignalType, "sine"); %! assert(osc.Frequency, 2); %!test %! osc = audioOscillator("square"); %! assert(osc.Frequency, 100); %! assert(osc.SampleRate, 44100); %! assert(osc.SignalType, "square"); %! osc = audioOscillator("SignalType", "square"); %! assert(osc.SignalType, "square"); %! osc = audioOscillator("square", 2); %! assert(osc.SignalType, "square"); %! assert(osc.Frequency, 2); %!test %! osc = audioOscillator("sawtooth"); %! assert(osc.Frequency, 100); %! assert(osc.SampleRate, 44100); %! assert(osc.SignalType, "sawtooth"); %! osc = audioOscillator("SignalType", "sawtooth"); %! assert(osc.SignalType, "sawtooth"); %!test %! osc = audioOscillator("SignalType", "sine", "Frequency", 2, "Amplitude", 1.1, "SamplesPerFrame", 1024); %! assert(osc.Frequency, 2); %! assert(osc.Amplitude, 1.1); %! assert(osc.SamplesPerFrame, 1024); %! assert(osc.SampleRate, 44100); %!test %! osc = audioOscillator("sine"); %! data = osc(); %! assert(length(data), osc.SamplesPerFrame) audio-2.0.8/inst/bark2hz.m0000644000000000000000000000325614506546342013525 0ustar0000000000000000## Copyright (C) 2023 John Donoghue ## ## 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 3 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, see ## . ## -*- texinfo -*- ## @deftypefn {} {@var{hz} =} bark2hz (@var{bark}) ## Convert equivalent Bark Frequency to Hz. ## ## @subsubheading Inputs ## @var{bark} - input frequency in bark. ## ## @subsubheading Outputs ## @var{hz} - Output frequency in Hz. ## ## @subsubheading References ## Traunmüller, Hartmut. @cite{Analytical Expressions for the Tonotopic Sensory Scale. ## Journal of the Acoustical Society of America. Vol. 88, Issue 1, 1990} ## ## @seealso {hz2bark} ## @end deftypefn function hz = bark2hz (bark) if nargin < 1 show_usage() endif if ! (isnumeric(bark) && isreal(bark)) error ("Expected real scalar or vector"); endif idx1 = find(bark<2); idx2 = find(bark>20.1); bark(idx1) = (bark(idx1) - 0.3) / 0.85; bark(idx2) = (bark(idx2) + 4.422) / 1.22; hz = 1960 * (bark + 0.53) / (26.28 - bark); endfunction %!error bark2hz() %!error bark2hz('a') %!error bark2hz(2i) %!test %! bark = hz2bark(10); %! hz = bark2hz(bark); %! assert(hz, 10, 100*eps) audio-2.0.8/inst/data/0000755000000000000000000000000014506546342012707 5ustar0000000000000000audio-2.0.8/inst/data/c_maj_melody.mid0000644000000000000000000000047214506546342016027 0ustar0000000000000000MThdMTrkXYyd @[]!PG>@PG@APGACPGCEPGEGPGGHPGHHPcH GPcG EPcE CPcC APcA @Pc@ >Pc> 7394(*1KW/   +{ roCYmuSV$):v{dz/]pI 2n/aFIq!2]+HR2 ( dFw|O\i!%P &tv_5=(o@O8mTWuCPQ#lL9ry=Yw}|f%.`qt&Z 8R m3n~4Hdi<v>G2@0GldyS<O'0miip~ (,HqsN5;d};iB`haHuw.,IfkGLjUGU[o.YZHGi *Dz:nU0 XV5L59!j),XgulU**#&BK@ZY'0FonOF)/GY/  tmuVILfVY]fwnS7;Jh`FH`wr}vmhn{|}halm[@1E-GMi`H:jmyo~}%  *JEB4/!@Q[a9-4<N`Q:7R^WPSban[Xs^AG`_S-/Yqtr};>]qrWF6$/0+.-8 @Pxptqh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q3E< FYc5n@4)b?0>xE}+)Fl]}b}5;GUW E  *  2  * m 8 J ;E10"gFc4\}l ," D^ z 9 EF4cKu{mrFzBF?-r'a}:m)3Lt5,UA%&=> S F | 1  h~?N[Vq.dg[L)i6h [ P7bT\PGC-XdSTI*;YqkA=0v Ey%ZX-vPP}[@%  :V)m4   I  #l" ars@5SmN&!QV=]s~ j>bu}4Q  3lJjOT E&Hx> 7 c$k%CF'38HN+x0CV@c zVV5DfT- di'xk  Mjd$ ](~q;HX[]]kr6;ZvlCz-g}6#8aF Emk+iYV"fK"eyQ,fY[lVvI4 D-[NEZ) BjsaaGq :]zlO+l"_!yb}eB*)O^Tp']5W%A>VTti_cJ?B623#CSy $Hda_T[LW>~jM sJ8 ,/SKq|tnwgUI8,u_<   ## ## 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 3 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, see ## . ## -*- texinfo -*- ## @deftypefn {} {@var{hz} =} erb2hz (@var{erb}) ## Convert equivalent rectangular bandwidth (ERB) to Hz. ## ## @subsubheading Inputs ## @var{erb} - input frequency in erb. ## ## @subsubheading Outputs ## @var{hz} - Output frequency in Hz. ## ## @subsubheading References ## Glasberg and Moore. @cite{Derivation of Auditory Filter Shapes from Notched-Noise Data. ## Hearing Research. Vol. 47, 1990} ## ## @seealso {hz2erb} ## @end deftypefn function hz = erb2hz (erb) persistent A; if nargin < 1 show_usage() endif if ! (isnumeric(erb) && isreal(erb)) error ("Expected real scalar or vector"); endif if isempty (A) A = 1000 * log(10.0) / (24.7*4.37); endif hz = (10^(erb/A) - 1) / 0.00437; endfunction %!error erb2hz() %!error erb2hz('a') %!error erb2hz(2i) %!test %! erb = hz2erb(10); %! hz = erb2hz(erb); %! assert(hz, 10, 100*eps) audio-2.0.8/inst/hz2bark.m0000644000000000000000000000341514506546342013522 0ustar0000000000000000## Copyright (C) 2023 John Donoghue ## ## 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 3 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, see ## . ## -*- texinfo -*- ## @deftypefn {} {@var{bark} =} hz2bark (@var{hz}) ## Convert hz to equivalent bark frequency ## ## @subsubheading Inputs ## @var{hz} - input frequency in Hz. ## ## @subsubheading Outputs ## @var{bark} - Output frequency as a bark value ## ## @subsubheading Examples ## Convert 4000 Hz to erb ## @example ## @code{erb = hz2erb(4000)} ## @end example ## ## @subsubheading References ## Traunmüller, Hartmut. @cite{Analytical Expressions for the Tonotopic Sensory Scale. ## Journal of the Acoustical Society of America. Vol. 88, Issue 1, 1990} ## ## @seealso {bark2hz} ## @end deftypefn function bark = hz2bark(hz) if nargin < 1 show_usage() endif if ! (isnumeric(hz) && isreal(hz)) error ("Expected real scalar or vector"); endif bark = ((26.81 * hz) / (1960 + hz)) - 0.53; idx1 = find(bark<2); idx2 = find(bark>20.1); bark(idx1) = bark(idx1) + 0.15 * (2 - bark(idx1)); bark(idx2) = bark(idx2) + 0.22 * (bark(idx2) - 20.1); endfunction %!error hz2bark() %!error hz2bark('a') %!error hz2bark(2i) %!assert(hz2bark(100), 0.9557, 10^-4) audio-2.0.8/inst/hz2erb.m0000644000000000000000000000351314506546342013352 0ustar0000000000000000## Copyright (C) 2023 John Donoghue ## ## 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 3 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, see ## . ## -*- texinfo -*- ## @deftypefn {} {@var{erb} =} hz2erb (@var{hz}) ## Convert hz to equivalent rectangular bandwidth (ERB) ## ## @subsubheading Inputs ## @var{hz} - input frequency in Hz. ## ## @subsubheading Outputs ## @var{erb} - Output frequency as a erb value ## ## @subsubheading Examples ## Convert 4000 Hz to erb ## @example ## @code{erb = hz2erb(4000)} ## @end example ## ## Convert a range of Hz to erb ## @example ## @code {erb = hz2erb(4000:100:5000)} ## @end example ## ## @subsubheading References ## Glasberg and Moore. @cite{Derivation of Auditory Filter Shapes from Notched-Noise Data. ## Hearing Research. Vol. 47, 1990} ## ## @seealso {erb2hz} ## @end deftypefn function erb = hz2erb(hz) persistent A; if nargin < 1 show_usage() endif if ! (isnumeric(hz) && isreal(hz)) error ("Expected real scalar or vector"); endif if isempty (A) A = 1000 * log(10.0) / (24.7*4.37); endif erb = A * log10 (1 + hz * 0.00437); endfunction %!error hz2erb() %!error hz2erb('a') %!error hz2erb(2i) %!assert(hz2erb(5500), 29.8342, 10^-4) %!test %! erb = hz2erb(10); %! hz = erb2hz(erb); %! assert(hz, 10, 100*eps) audio-2.0.8/inst/hz2mel.m0000644000000000000000000000324114506546342013355 0ustar0000000000000000## Copyright (C) 2023 John Donoghue ## ## 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 3 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, see ## . ## -*- texinfo -*- ## @deftypefn {} {@var{mel} =} hz2mel (@var{hz}) ## Convert hz to equivalent mel frequency. ## ## @subsubheading Inputs ## @var{hz} - input frequency in Hz. ## ## @subsubheading Outputs ## @var{mel} - Output frequency as a mel value ## ## @subsubheading Examples ## Convert 4000 Hz to mel ## @example ## @code{mel = hz2mel(4000)} ## @end example ## ## Convert a range of Hz to mel ## @example ## @code {mel = hz2erb(4000:100:5000)} ## @end example ## ## @subsubheading References ## O'Shaghnessy, Douglas. @cite{Speech Communication: Human and Machine. Reading, MA: ## Addison-Wesley Publishing Company, 1987} ## ## @seealso {mel2hz} ## @end deftypefn function mel = hz2mel (hz) if nargin < 1 show_usage() endif if ! (isnumeric(hz) && isreal(hz)) error ("Expected real scalar or vector"); endif mel = 2595 * log10 (1 + hz/700); endfunction %!error hz2mel() %!error hz2mel('a') %!error hz2mel(2i) %!assert(hz2mel(440), 549.6387, 10^-4) audio-2.0.8/inst/ismidifile.m0000644000000000000000000000376414506546342014304 0ustar0000000000000000## Copyright (C) 2019 John Donoghue ## ## 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 3 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, see ## . ## -*- texinfo -*- ## @deftypefn {} {@var{ismidi} =} ismidifile (@var{filename}) ## Check if @var{filename} is a midi file. ## ## The function only checks whether it is an existing file and the ## file starts with a valid 'MThd' header. ## ## Non existing files, or files that do not meet the header criteria will return false. ## ## @subsubheading Inputs ## @var{filename} - filename of file to check.@* ## ## @subsubheading Outputs ## @var{ismidi} - true if it is a midi file, false otherwise ## ## @seealso{midifileread, midifilewrite} ## @end deftypefn function ismidi = ismidifile(filename) ismidi = false; if nargin < 1 error ("Expected filename"); endif fd = -1; try fd = fopen (filename, "rb"); unwind_protect blockhdr = readheader (fd); if !isempty(blockhdr) if strcmp (blockhdr.blocktype, "MThd") ismidi = true; endif endif unwind_protect_cleanup fclose (fd); end_unwind_protect catch # do nothing end_try_catch endfunction %!test %! testname = file_in_loadpath("data/c_maj_melody.mid"); %! assert (ismidifile(testname), true); %!test %! testname = file_in_loadpath("data/sample.wav"); %! assert (ismidifile(testname), false); %!test %! testname = "X_DOES_NOT_EXIST_X"; %! assert (ismidifile(testname), false); audio-2.0.8/inst/mel2hz.m0000644000000000000000000000277614506546342013371 0ustar0000000000000000## Copyright (C) 2023 John Donoghue ## ## 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 3 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, see ## . ## -*- texinfo -*- ## @deftypefn {} {@var{hz} =} mel2hz (@var{mel}) ## Convert equivalent mel frequency to Hz. ## ## @subsubheading Inputs ## @var{mel} - input frequency in mel. ## ## @subsubheading Outputs ## @var{hz} - Output frequency in Hz. ## ## @subsubheading References ## O'Shaghnessy, Douglas. @cite{Speech Communication: Human and Machine. Reading, MA: ## Addison-Wesley Publishing Company, 1987} ## ## @seealso {hz2mel} ## @end deftypefn function hz = mel2hz (mel) persistent A; if nargin < 1 show_usage() endif if ! (isnumeric(mel) && isreal(mel)) error ("Expected real scalar or vector"); endif hz = 700 * ((10^(mel/2595)) - 1); endfunction %!error mel2hz() %!error mel2hz('a') %!error mel2hz(2i) %!test %! mel = hz2mel(220); %! hz = mel2hz(mel); %! assert(hz, 220, 100*eps) audio-2.0.8/inst/midicallback.m0000644000000000000000000000630214506546342014554 0ustar0000000000000000## Copyright (C) 2022 John Donoghue ## ## 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 3 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, see ## . ## -*- texinfo -*- ## @deftypefn {} {@var{oldhandle} =} midicallback (@var{midicontrolsObj}, @var{functionHandle}) ## @deftypefnx {} {@var{oldhandle} =} midicallback (@var{midicontrolsObj}, []) ## @deftypefnx {} {@var{currhandle} =} midicallback (@var{midicontrolsObj}) ## Get, set or clear the midicontrol object callback. ## ## @subsubheading Inputs ## @var{midicontrolObj} - control object created using midicontrols. ## ## @var{functionHandle} - function handle to set for call back. If it is [], ## the callback function will be cleared. ## ## @strong{NOTE}: currently anonymous functions will not work. ## ## @strong{NOTE}: callbacks should be cleared before losing all references to the midicontrols ## object. ## ## @subsubheading Outputs ## @var{oldhandle} The previously set midicallback function handle when setting a new callback. ## ## @var{currhandle} The current set midicallback function handle. ## ## @subsubheading Examples ## Set a callback on a midicontrols object ## @example ## ctrl = midicontrols(2001) ## function dispCallback(ctrl),disp(midiread(ctrl)),endfunction; ## midicallback(ctrl, @@dispCallback); ## @end example ## ## Clear the callback on a midicontrols object ## @example ## ctrl = midicontrols(2001) ## midicallback(ctrl, []); ## @end example ## ## Get the current callback on a midicontrols object ## @example ## ctrl = midicontrols(2001) ## cb = midicallback(ctrl); ## @end example ## ## @seealso{midicontrols, midisync, midiread} ## @end deftypefn function ret = midicallback (ctrlobj, varargin) if nargin < 1 || !isa (ctrlobj, "midicontrols") error ("Expected midicontrols object"); endif if nargin > 1 cb = varargin{1}; if isempty(cb) callback = ""; elseif strcmp(class(cb), "function_handle") info = functions(cb); if strcmp(info.type, "anonymous") error ("anonymous are currently not supported"); endif callback = func2str(cb); elseif ischar (cb) callback = cb; else error ("Callback should be a string or function handle or []") endif ret = ctrlobj.callback(callback); else ret = ctrlobj.callback(); endif endfunction %!function testcallback(ctrl) %! # do nothing %!endfunction %!test %! a = midicontrols(); %! assert(isa(a, "midicontrols")); %! assert(midicallback(a), []); %! assert(midicallback(a, @testcallback), []); %! assert(midicallback(a), func2str(@testcallback)); %! midicallback(a, []); %! assert(midicallback(a), []); %!error midicallback(0); audio-2.0.8/inst/midicontrols.m0000644000000000000000000001742314506546342014671 0ustar0000000000000000## Copyright (C) 2019-2021 John Donoghue ## ## 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 3 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, see ## . classdef midicontrols < handle ## -*- texinfo -*- ## @deftypefn {} {@var{obj} =} midicontrols () ## @deftypefnx {} {@var{obj} =} midicontrols (@var{ctrlid}) ## @deftypefnx {} {@var{obj} =} midicontrols (@var{ctrlid}, @var{initialvalues}) ## @deftypefnx {} {@var{obj} =} midicontrols (__, @var{propertyname}, @var{propertyvalue}) ## Create a midi controls object ## ## @subsubheading Inputs ## @var{ctrlid} - single control id or array of control ids to monitor, or [] to use any controller.@* ## @var{initialvalues} - initial values to use for controls. It should be the same size as @var{ctrlid}@* ## @var{propertyname}, @var{propertyvalue} - properties to set on the controller. If a device is not specified ## the value from getpref("midi", "DefaultDevice", 0) will be used.@* ## ## ## Known properties are: ## @table @asis ## @item mididevice ## name of the mididevice to monitor. ## @item outputmode ## the scaling mode for values: 'rawmidi' will return values between 0 .. 127, ## 'normalized' will use values between 0 .. 1. ## @end table ## ## @subsubheading Outputs ## @var{obj} - returns a midicontrols object ## ## @subsubheading Examples ## Create a midicontrols object monitoring control id 2001 on the default midi device ## @example ## ctrl = midicontrols(2001) ## @end example ## ## Create a midicontrols object monitoring control id 2001 on a a non default device ## @example ## ctrl = midicontrols(2001, 'mididevice', 1) ## @end example ## ## @seealso{midiread, midisync} ## @end deftypefn properties (Access = private) controls = []; initialvalue = 0; currentvalue = []; device = []; outscale = 1; midiscale = 127; endproperties methods function this = midicontrols (varargin) devicename = ""; if nargin > 0 controls = varargin{1}; if !isnumeric(controls) error ("Expected numeric controls ids"); endif if isscalar(controls) this.controls = [controls]; else this.controls = controls; endif endif if nargin > 1 if ischar (varargin{2}) propstart = 2; initvals = [0]; else propstart = 3; initvals = varargin{2}; if !isnumeric (initvals) error ("Expected numeric initial values"); endif if isscalar (initvals) initvals = [initvals]; endif endif if mod (nargin-propstart + 1, 2) != 0 error ("midicontrols: expected property name, value pairs"); endif if !iscellstr (varargin (propstart:2:nargin)) error ("midicontrols: expected property names to be strings"); endif for i = propstart:2:nargin propname = tolower (varargin{i}); propvalue = varargin{i+1}; if strcmp (propname, "outputmode") if !ischar (propvalue) error ("output mode should be 'normalized' or 'rawmidi'") elseif strcmpi (propvalue, "normalized") this.outscale = 1; elseif strcmpi (propvalue, "rawmidi") this.outscale = 127; else error ("output mode should be 'normalized' or 'rawmidi'") endif elseif strcmp (propname, "mididevice") devicename = propvalue; else error ("unknown property '%s'", propname) endif endfor this.initialvalue = initvals/this.outscale; endif if length (this.controls) > 0 this.currentvalue = zeros (length(this.controls), 1); else this.currentvalue = zeros (1, 1); endif for i = 1:length (this.currentvalue) this.currentvalue(i) = this.get_value (i, this.initialvalue); endfor if isempty(devicename) devicename = getpref ("midi", "DefaultDevice", 0); endif this.device = mididevice (devicename); endfunction function delete (this) try this.callback(""); catch # do nothing end_try_catch endfunction function send (this, values) if nargin < 2 values = this.initialvalue; else if isscalar(values) values = [values]; endif values = values/this.outscale; endif if isempty(this.controls) warning ('Can not send control values when no specific controller ids were provided.') val = this.get_value(1, values); this.currentvalue(1) = val; else for i =1:length(this.controls) ctrl = this.controls(i); ch = int32(ctrl/1000); id = mod(ctrl, 1000); val = this.get_value(i, values); this.currentvalue(i) = val; midisend(this.device, midimsg("controlchange", ch, id, val*this.midiscale)); endfor endif endfunction function val = recv(this) mx = midireceive(this.device); while !isempty(mx) for j = 1:length(mx) m = mx(j); if strcmp(m.type, "ControlChange") if isempty(this.controls) idx = 1; else ctrlid = m.channel*1000 + double(m.msgbytes(2)); idx = find(this.controls==ctrlid, 1); endif if !isempty(idx) val = double(m.msgbytes(3))/this.midiscale; this.currentvalue(idx) = val; endif endif endfor mx = midireceive(this.device); endwhile val = zeros(length(this.currentvalue)); for i = 1:length(this.currentvalue) val(i) = this.get_value(i, this.currentvalue)*this.outscale; endfor endfunction function val = callback(this, cb=[]) # set/unset callback if nargin < 2 val = __midicallback__(this.device); else if isempty(cb) val = __midicallback__(this.device, cb, []); else val = __midicallback__(this.device, cb, this); endif endif if ischar(val) && isempty(val) val = []; endif endfunction function val = get_value(this, ch, values) if isscalar(values) val = values; else if i > length(values) val = values(i); else val = 0; endif endif val = double(val); endfunction function out = disp (this) if nargout == 0 disp(sprintf (" midicontrols object: listening for events on %s", this.device.Input)); else out = sprintf ("midicontrols object: listening for events on %s\n", this.device.Input); endif if ( isempty(this.controls)) if nargout == 0 disp (" any control"); % any control on {devname} else out = [out " any control\n"]; endif else if nargout == 0 disp ([" controls " sprintf("%d ", this.controls)]); else out = [out " controls " sprintf("%d ", this.controls) "\n"]; endif endif endfunction endmethods endclassdef %!test %! a = midicontrols(); %! assert(isa(a, "midicontrols")); audio-2.0.8/inst/mididevice.m0000644000000000000000000001272614506546342014266 0ustar0000000000000000## Copyright (C) 2019 John Donoghue ## ## 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 3 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, see ## . ## -*- texinfo -*- ## @deftypefn {} {@var{dev} =} mididevice (@var{mididev}) ## @deftypefnx {} {@var{dev} =} mididevice (@var{mididir}, @var{mididev}) ## @deftypefnx {} {@var{dev} =} mididevice ("input", @var{midiindev}, "output", @var{midioutdev}) ## Create a midi device using the input parameters. ## ## When a single device name or id is provided, attempt to create the midi device using the same name for both input and output. ## ## Otherwise, use the name or device id for the given input or output direction. ## ## @subsubheading Inputs ## @var{mididev} - name or id of device to load.@* ## @var{mididir} - midi direction of "input" or "output"@* ## @var{midiindev} - midi input name or id@* ## @var{midioutdev} - midi output name or id ## ## @subsubheading Outputs ## @var{dev} - octave_midi class for opened device ## ## @subsubheading Properties ## @var{Input} - Input device name (read only).@* ## @var{Output} - Output device name (read only).@* ## @var{InputID} - Input device id (read only).@* ## @var{OutputID} - Output device id (read only).@* ## ## @subsubheading Examples ## Open midi device with ID of 0. ## @example ## @command{>} dev = mididevice(0); ## ## mididevice connected to ## input: "SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0" (1) ## output: "SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0" (0) ## @end example ## ## Open a named midi device: ## @example ## @command{>} dev = mididevice("SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0"); ## ## mididevice connected to ## input: "SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0" (1) ## output: "SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0" (0) ## @end example ## ## @seealso{mididevinfo} ## @end deftypefn function dev = mididevice (varargin) inname = ""; outname = ""; if nargin != 1 && nargin != 2 && nargin != 4 error ("Expected device name, or device type/value pair"); endif # dev list devs = __mididevinfo__ (); if nargin == 1 if isscalar (varargin{1}) name = devs (varargin{1}+1).Name; elseif ischar (varargin{1}) name = varargin{1}; endif # get in and out info idx = find (arrayfun(@(x) match_name_and_type(x, name, "input"), devs), 1); if !isempty (idx) indev = devs (idx); inname = indev.Name; endif idx = find (arrayfun(@(x) match_name_and_type(x, name,"output"), devs), 1); if !isempty (idx) outdev = devs (idx); outname = outdev.Name; endif elseif nargin == 2 # type device (input, output) # dev num or name if isscalar (varargin{2}) name = devs (varargin{2}+1).Name; elseif ischar (varargin{2}) name = varargin{2}; endif inname = ""; outname = ""; if strcmpi (varargin{1}, "input") inname = name; elseif strcmpi (varargin{1}, "output") outname = name; else error ("expected input or output"); endif if !isempty(inname) idx = find (arrayfun(@(x) match_name_and_type(x, name,"input"), devs), 1); if !isempty (idx) indev = devs (idx); inname = indev.Name; else error ("unknown name %s", inname); endif endif if !isempty(outname) idx = find (arrayfun(@(x) match_name_and_type(x, name,"output"), devs), 1); if !isempty (idx) outdev = devs (idx); outname = outdev.Name; else error ("unknown name %s", outname); endif endif else # nargin == 4 # an input and output device specified if isscalar (varargin{2}) name = devs (varargin{2}+1).Name; elseif ischar (varargin{2}) name = varargin{2}; endif if strcmpi (varargin{1}, "input") inname = name; elseif strcmpi (varargin{1}, "output") outname = name; else error ("expected input or output"); endif if isscalar (varargin{4}) name = devs (varargin{4}+1).Name; elseif ischar (varargin{4}) name = varargin{4}; endif if strcmpi (varargin{3}, "input") inname = name; elseif strcmpi (varargin{3}, "output") outname = name; else error ("expected input or output"); endif idx = find (arrayfun(@(x) match_name_and_type(x, outname,"output"), devs), 1); if !isempty (idx) outdev = devs (idx); outname = outdev.Name; else error ("unknown name %s", outname); endif idx = find (arrayfun(@(x) match_name_and_type(x, inname,"input"), devs), 1); if !isempty (idx) indev = devs(idx); inname = indev.Name; else error ("unknown name %s", inname); endif endif dev = __mididevice__ (inname, outname); endfunction function t = match_name_and_type(x, name, type) t = (strncmpi(x.Name, name, length(name)) && strcmpi(x.Direction,type)); endfunction %!test %! a = mididevice(0); %! assert(isa(a, "octave_midi")); audio-2.0.8/inst/mididevinfo.m0000644000000000000000000000641014506546342014452 0ustar0000000000000000## Copyright (C) 2019-2021 John Donoghue ## ## 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 3 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, see ## . ## -*- texinfo -*- ## @deftypefn {} {@var{devlist} =} mididevinfo () ## @deftypefnx {} {} mididevinfo () ## Retrieve the midi devices detected within the system. ## ## The list will be stored with variable @var{devlist} as either a input or output device. ## If no output variable is provided, the devices will be displayed. ## ## @subsubheading Inputs ## None ## ## @subsubheading Outputs ## @var{devlist} - a structure containing the midi device information ## ## @subsubheading Examples ## Display the known devices of the system. ## @example ## @command{>} mididevinfo ## ## MIDI devices available ## ID Direction Interface Name ## 0 output Alsa Midi Through:Midi Through Port-0 14:0 ## 1 output Alsa Ensoniq AudioPCI:ES1371 16:0 ## 2 output Alsa SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0 ## 3 input Alsa Midi Through:Midi Through Port-0 14:0 ## 4 input Alsa Ensoniq AudioPCI:ES1371 16:0 ## 5 input Alsa SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0 ## @end example ## ## Assign variable @var{mididevices} with the values from the known devices ## @example ## @command{>} mididevices = mididevinfo ## ## mididevices = ## scalar structure containing the fields: ## input = ## @{ ## [1,1] = ## scalar structure containing the fields: ## Name = SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0 ## Interface = Alsa ## ID = 0 ## @} ## output = ## @{ ## [1,1] = ## scalar structure containing the fields: ## Name = SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0 ## Interface = Alsa ## ID = 1 ## @} ## @end example ## ## @seealso{mididevice} ## @end deftypefn function out = mididevinfo () # get dev list data = __mididevinfo__(); # output variable to store to - so assign devices to it if nargout > 0 out = {}; out.input = {}; out.output = {}; for i=1:length(data) val = {}; val.Name = data(i).Name; val.Interface = data(i).Interface; val.ID = data(i).ID; if strcmp (data(i).Direction, "input") out.input{end+1} = val; else out.output{end+1} = val; endif endfor # no output - just display the devices else printf ("MIDI devices available\n"); printf ("ID Direction Interface Name\n"); for i=1:length(data) printf ("%2d %-9s %-10s %s\n", data(i).ID, data(i).Direction, data(i).Interface, data(i).Name); endfor endif endfunction %!test %! a = mididevinfo; %! assert(length(a) > 0); %! x = a.input; %! x = a.output; audio-2.0.8/inst/midifileinfo.m0000644000000000000000000001270214506546342014614 0ustar0000000000000000## Copyright (C) 2019-2021 John Donoghue ## ## 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 3 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, see ## . ## -*- texinfo -*- ## @deftypefn {} {@var{info} =} midifileinfo (@var{filename}) ## Read MIDI file and display information about the tracks and data ## ## @subsubheading Inputs ## @var{filename} - filename of file to open.@* ## ## @subsubheading Outputs ## @var{info} - structure of the midi file data ## with the following fields:@* ## @table @asis ## @item filename ## the name of the file ## @item header ## The header block information ## @item track ## An array of tracks read from the file ## @item other ## An array of non-track midi blocks read from the file ## @end table ## @seealso{midifileread} ## @end deftypefn function mi = midifileinfo(filename) if nargin < 1 error ("Expected filename"); endif mi = {}; mi.filename = filename; mi.header = {}; mi.track = {}; mi.other = {}; fd = fopen(filename, "rb"); blockidx = 0; unwind_protect # read file while !feof(fd) blockhdr = readheader (fd); if !isempty (blockhdr) nextpos = ftell (fd) + blockhdr.blocksize; if strcmp (blockhdr.blocktype, "MThd") hdr = {}; hdr.format = fread (fd, 1, "uint16", 0, "ieee-be"); hdr.tracks = fread (fd, 1, "uint16", 0, "ieee-be"); frames = fread (fd, 1, "uint8"); ticks = fread (fd, 1, "uint8"); if frames > 127 hdr.tick_resolution = double(256-frames) * ticks; else hdr.ticks_per_qtr = polyval(double([frames ticks]), 256); endif hdr.ticks = ticks; hdr.frames = frames; mi.header = hdr; elseif strcmp (blockhdr.blocktype, "MTrk") cmd = 0; track = {}; track.number = length (mi.track) + 1; track.blockindex = blockidx; track.blocksize = blockhdr.blocksize; track.blockstart = ftell(fd); while ftell (fd) < nextpos t = getvariable(fd); tcmd = fread (fd,1, "uint8"); if tcmd >= 0x80 cmd = tcmd; else # repeat same command, so with is a data byte fseek (fd,-1,'cof'); endif if cmd >= 0xf0 subcmd = cmd; else subcmd = bitand (cmd, 0xF0); endif switch subcmd case 0xff ctype = fread (fd, 1, "uint8"); ct = getvariable (fd); data = fread (fd, [1 ct], "uint8"); if ctype == 0 [ "seq: " char(data) ] elseif ctype == 1 track.text{end+1} = char(data); elseif ctype == 2 track.copyright = char(data); elseif ctype == 3 track.trackname = char(data); elseif ctype == 4 track.instrument = char(data); elseif ctype == 5 track.lyric{end+1} = char(data); elseif ctype == 6 #[ "marker: " char(data) ] elseif ctype == 7 #[ "cue: " char(data) ] else #[ num2str (ctype) ": " data ] endif case {0xf1, 0xf3} sz = 1; data = fread(fd, [1 sz], "uint8"); case {0xf2} sz = 2; data = fread(fd, [1 sz], "uint8"); case {0xf6, 0xf7, 0xf8, 0xfa, 0xfb, 0xfc, 0xfe} # nothing additional to get case {0xf0} ct = getvariable (fd); data = fread (fd, [1 ct], "uint8"); case { 0x80, 0x90, 0xB0, 0xE0} sz = 2; data = fread (fd, [1 sz], "uint8"); case { 0xC0, 0xD0} sz = 1; data = fread (fd, [1 sz], "uint8"); otherwise error ("unknown command now %2X", cmd); endswitch endwhile mi.track{end+1} = track; else track = {}; track.blockindex = blockidx; track.blocksize = blockhdr.blocksize; track.blockstart = ftell(fd); track.blocktype = blockhdr.blocktype mi.other{end+1} = track; endif blockidx = blockidx + 1; fseek (fd, nextpos, 'bof'); endif endwhile unwind_protect_cleanup fclose (fd); end_unwind_protect endfunction %!shared testname %! testname = file_in_loadpath("data/c_maj_melody.mid"); %!test %! info = midifileinfo(testname); %! t = info.header; %! assert(info.header.format, 1); %! assert(info.header.tracks, 2); %! assert(info.header.ticks_per_qtr, 480); %! assert(info.header.ticks, 224); %! assert(info.header.frames, 1); %! assert(length(info.track), 2); %! assert(length(info.other), 0); audio-2.0.8/inst/midifileread.m0000644000000000000000000002037714506546342014603 0ustar0000000000000000## Copyright (C) 2019-2021 John Donoghue ## ## 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 3 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, see ## . ## -*- texinfo -*- ## @deftypefn {} {@var{msg} =} midifileread (@var{filename}, [propertyname, propertyvalue @dots{}]) ## Read MIDI file into a midimsg ## ## @subsubheading Inputs ## @var{filename} - filename of file to open.@* ## @var{propertyname}, @var{properyvalue} - optional propertyname/value pairs.@* ## ## Known property values are: ## @table @asis ## @item includemetaevents ## A True/False value to include MetaEvents in the out message list. ## @end table ## ## @subsubheading Outputs ## @var{msg} - a midimsg struct containing the messages read from the file@* ## @seealso{midifileinfo, midimsg} ## @end deftypefn function msg = midifileread(filename, varargin) if nargin < 1 error ("Expected filename"); endif debug = 0; includemetaevents = 0; abstime = 0; format = 0; tempo = 6e7/120; msg = midimsg(0); if mod (nargin + 1, 2) != 0 error ("midifileread: expected property name, value pairs"); endif if !iscellstr (varargin (1:2:nargin-1)) error ("midicontrols: expected property names to be strings"); endif for i = 1:2:nargin-1 propname = tolower (varargin{i}); propvalue = varargin{i+1}; if strcmp (propname, "debug") if !(isnumeric (propvalue) || islogical(propvalue)) || !isscalar(propvalue) error ("debug should be boolean") else debug = propvalue; endif elseif strcmp (propname, "includemetaevents") if !(isnumeric (propvalue) || islogical(propvalue))|| !isscalar(propvalue) error ("includemetaevents should be boolean") else includemetaevents = propvalue; endif else error ("unknown property '%s'", propname) endif endfor # TODO: handle time stamp AND fact that different formats offset time stamp differently between tracks fd = fopen (filename, "rb"); unwind_protect # read file while !feof (fd) blockhdr = readheader (fd); if !isempty(blockhdr) nextpos = ftell (fd) + blockhdr.blocksize; if strcmp (blockhdr.blocktype, "MThd") format = fread (fd, 1, "uint16", 0, "ieee-be"); tracks = fread (fd, 1, "uint16", 0, "ieee-be"); frames = fread (fd, 1, "uint8"); ticks = fread (fd, 1, "uint8"); if frames > 127 tick_resolution = double(256-frames) * ticks; else ticks_per_qtr = polyval(double([frames ticks]), 256); endif endif if strcmp (blockhdr.blocktype, "MTrk") if format == 1 abstime = 0; endif cmd = 0; while ftell (fd) < nextpos t = getvariable(fd); if frames > 127 t = t / tick_resolution; else t = t * (tempo/ticks_per_qtr)/1e6; endif abstime = abstime + t; tcmd = fread (fd,1, "uint8"); if tcmd >= 0x80 cmd = tcmd; else # repeat same command, so with is a data byte fseek (fd,-1,'cof'); endif if cmd >= 0xf0 subcmd = cmd; else subcmd = bitand (cmd, 0xF0); endif switch subcmd # TODO: convert to midi messages case 0xff # example # ff00 1003 7741 7961 6920 0000020 206e 2061 614d 676e 7265 ctype = fread (fd, 1, "uint8"); ct = getvariable (fd); data = fread (fd, [1 ct], "uint8"); if debug if ctype == 0 [ "seq: " char(data) ] elseif ctype == 1 [ "text: " char(data) ] elseif ctype == 2 [ "copyright: " char(data) ] elseif ctype == 3 [ "track name: " char(data) ] elseif ctype == 4 [ "instrument: " char(data) ] elseif ctype == 5 [ "lyric: " char(data) ] elseif ctype == 6 [ "marker: " char(data) ] elseif ctype == 7 [ "cue: " char(data) ] elseif ctype == 0x21 [ "midiport: " sprintf("%02X ", data) ] elseif ctype == 0x51 t = polyval(double(data), 256); [ "tempo: " num2str(t) ] elseif ctype == 0x54 [ "smtpe: " sprintf("%02X ", data) ] elseif ctype == 0x58 [ "timesig: " sprintf("%02X ", data) ] elseif ctype == 0x2f [ "eot:" ] elseif ctype == 0x59 [ "keysig: " sprintf("%02X ", data) ] else [ "unknown: " sprintf("%d (%02X): ", ctype, ctype) sprintf("%02X ", data) ] endif endif if ctype == 0x51 tempo = polyval(double(data), 256); endif if includemetaevents msg = [msg midimsg.createMessage(uint8([cmd ctype midimsg.makevariable(ct) data]), abstime)]; endif case {0xf1, 0xf3} sz = 1; data = fread(fd, [1 sz], "uint8"); msg = [msg midimsg.createMessage(uint8([cmd data]), abstime)]; case {0xf2} sz = 2; data = fread(fd, [1 sz], "uint8"); msg = [msg midimsg.createMessage(uint8([cmd data]), abstime)]; case {0xf6, 0xf7, 0xf8, 0xfa, 0xfb, 0xfc, 0xfe} msg = [msg midimsg.createMessage(uint8([cmd]), abstime)]; case {0xf0} ct = getvariable (fd); data = fread (fd, [1 (ct-1)], "uint8"); eox = fread (fd, [1 1], "uint8"); msg = [msg midimsg.createMessage(uint8([cmd]), abstime) ... midimsg.createMessage(uint8([data]), abstime) ... midimsg.createMessage(uint8([eox]), abstime)]; case { 0x80, 0x90, 0xA0, 0xB0, 0xE0} sz = 2; data = fread (fd, [1 sz], "uint8"); msg = [msg midimsg.createMessage(uint8([cmd data]), abstime)]; case { 0xC0, 0xD0} sz = 1; data = fread(fd, [1 sz], "uint8"); msg = [msg midimsg.createMessage(uint8([cmd data]), abstime)]; otherwise # now what err = dec2hex (fread(fd,5, "uint8")); error ("unknown command now %2X", cmd) endswitch endwhile endif fseek (fd, nextpos, 'bof'); endif endwhile # so now should have list of midi data using absolute time in secs # with all channels concated together # so sort into time order msg = sort(msg); unwind_protect_cleanup fclose (fd); end_unwind_protect endfunction %!shared testname %! testname = file_in_loadpath("data/c_maj_melody.mid"); %!test %! msg = midifileread(testname); %! assert(length(msg), 70); %! assert(msg(1).type == "ResetAllControllers"); %! assert(msg(1).timestamp, 0); %! assert(msg(length(msg)).type == "NoteOn"); %! assert(msg(length(msg)).timestamp, 7.9739583, 5e-7); %!test %! msg = midifileread(testname, 'includemetaevents', true); %! assert(length(msg), 77); %! assert(msg(1).type == "MetaEvent"); %! assert(msg(1).timestamp, 0); %! assert(msg(length(msg)).type == "MetaEvent"); %! assert(msg(length(msg)).timestamp, 7.975, 5e-7); %!fail midifileread(testname, "1name"); %!fail midifileread(); audio-2.0.8/inst/midifilewrite.m0000644000000000000000000001736214506546342015022 0ustar0000000000000000## Copyright (C) 2019-2021 John Donoghue ## ## 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 3 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, see ## . ## -*- texinfo -*- ## @deftypefn {} {} midifilewrite (@var{filename}, @var{msgs}) ## @deftypefnx {} {} midifilewrite (@var{filename}, @var{msgs}, @var{optionname}, @var{optionvalue}) ## Write a midifile ## ## @subsubheading Inputs ## @var{filename} - filename of file to open.@* ## @var{msg} - a midimsg struct or a cell array of midimsg containing data to write to file@* ## @var{optionname}, @var{optionvalue} - option value/name pairs@* ## ## Known options are: ## @table @asis ## @item format ## MIDI file format number. (0 (default), 1, 2) ## @end table ## ## Where format is 0, if a cell array is passed to midifilewrite, the midimsg values will ## be concatenated together before saving. ## ## Were format is not 0, the cell array is treated as tracks of misimsg. ## ## @subsubheading Outputs ## None ## @seealso{midifileread, midimsg} ## @end deftypefn function midifilewrite(varargin) if nargin < 2 error ("Expected filename and messages"); endif filename = varargin{1}; msg = varargin{2}; if iscell(msg) for idx=1:length(msg) if !isa(msg{idx}, "midimsg") error ("Expected midimsg type messages in cell array"); endif endfor elseif !isa(msg, "midimsg") error ("Expected midimsg type messages"); endif if mod (nargin, 2) != 0 error ("midifilewrite: expected property name, value pairs"); endif if !iscellstr (varargin (3:2:nargin)) error ("midifilewrite: expected property names to be strings"); endif format = 0; for idx = 3:2:nargin propname = tolower (varargin{idx}); propvalue = varargin{idx+1}; if strcmp(propname, "format") if isnumeric(propvalue) format = int16(propvalue); else format = -1; endif if format != 1 && format != 2 && format != 0 error ("format must be one of 0,1,2"); endif else warning("Unknown option '%s' ignored", propname) endif endfor if format == 0 trackcnt = 1; # if we had a cell string, make a single track list if iscell(msg) cellmsg = msg; msg = midimsg(0); for idx=1:length(cellmsg) msg = [msg cellmsg{idx}]; endfor endif else # multi track mode, so make us a cell array if ! iscell(msg) msg = {msg}; endif trackcnt = length(msg); endif fd = fopen (filename, "wb"); unwind_protect # block hdr hdr = {}; hdr.blocksize = 6; hdr.blocktype = "MThd"; writeheader (fd, hdr); # info ticks_per_qtr = 1e3; frames = floor(ticks_per_qtr/256); ticks = mod(ticks_per_qtr, 256); fwrite (fd, format, "uint16", 0, "ieee-be"); fwrite (fd, trackcnt, "uint16", 0, "ieee-be"); fwrite (fd, frames, "uint8"); fwrite (fd, ticks, "uint8"); tempo = 6e7/120; if format == 0 # the tracks fixpos = ftell (fd); hdr.blocksize = 0; hdr.blocktype = "MTrk"; writeheader (fd, hdr); lasttime = []; la = []; for idx=1:length(msg) a = msg(idx); # on first time, set lasttime if isempty(lasttime) lasttime = a.timestamp; endif if a.timestamp >= lasttime ts = (a.timestamp - lasttime); else ts = a.timestamp; endif lasttime = lasttime + ts; ts = (ts*1e6)/(tempo/ticks_per_qtr); if !isempty(la) && la.msgbytes(1) == 0xF0 # sysex msg previously started sz = length(a.msgbytes) + 1; setvariable (fd, sz); fwrite (fd, a.msgbytes); fwrite (fd, uint8([0xF7])); elseif !isempty(a) && a.msgbytes(1) != 0xF7 setvariable (fd, ts); fwrite (fd, a.msgbytes); # tempo meta event if a.msgbytes(1) == 0xFF && a.msgbytes(2) == 0x51 # FF 51 3 TT TT TT tempo = polyval(double(a.msgbytes(4:end)), 256); endif endif la = a; endfor # write eot and fix the header fwrite (fd, uint8([0x01 0xff 0x2f 0x00])); # fix the size of the track cpos = ftell (fd); len = cpos - fixpos - 8; fseek (fd, fixpos, SEEK_SET); hdr.blocksize = len; hdr.blocktype = "MTrk"; writeheader (fd, hdr); fseek (fd, cpos, SEEK_SET); else # the tracks for t=1:length(msg) fixpos = ftell (fd); hdr.blocksize = 0; hdr.blocktype = "MTrk"; writeheader (fd, hdr); lasttime = []; m = msg{t}; la = []; for idx=1:length(m) a = m(idx); # on first time, set lasttime if isempty(lasttime) lasttime = a.timestamp; endif if a.timestamp >= lasttime ts = (a.timestamp - lasttime); else ts = a.timestamp; endif lasttime = lasttime + ts; ts = (ts*1e6)/(tempo/ticks_per_qtr); if !isempty(la) && la.msgbytes(1) == 0xF0 # sysex msg previously started sz = length(a.msgbytes) + 1; setvariable (fd, sz); fwrite (fd, a.msgbytes); fwrite (fd, uint8([0xF7])); elseif !isempty(a) && a.msgbytes(1) != 0xF7 setvariable (fd, ts); fwrite (fd, a.msgbytes); endif la = a; endfor # write eot and fix the header fwrite (fd, uint8([0x01 0xff 0x2f 0x00])); # fix the size of the track cpos = ftell (fd); len = cpos - fixpos - 8; fseek (fd, fixpos, SEEK_SET); hdr.blocksize = len; hdr.blocktype = "MTrk"; writeheader (fd, hdr); fseek (fd, cpos, SEEK_SET); endfor endif unwind_protect_cleanup fclose (fd); end_unwind_protect endfunction %!shared testname %! testname = tempname; %!test %! data = midimsg("note", 1, 60, 100, 2); %! midifilewrite(testname, data); %! info = midifileinfo(testname); %! t = info.header; %! assert(info.header.format, 0); %! assert(info.header.tracks, 1); %! msg = midifileread(testname); %! assert(msg(1).msgbytes, uint8([0x90 0x3C 0x64])); %! assert(msg(2).msgbytes, uint8([0x90 0x3C 0x00])); %! assert(msg(2).timestamp, 2); %!test %! data = midimsg("note", 1, 60, 100, 2); %! %! midifilewrite(testname, data, 'format', 0); %! info = midifileinfo(testname); %! assert(info.header.format, 0); %! assert(info.header.tracks, 1); %! msg = midifileread(testname); %! assert(length(msg), 2); %! %! midifilewrite(testname, data, 'format', 1); %! info = midifileinfo(testname); %! assert(info.header.format, 1); %! assert(info.header.tracks, 1); %! msg = midifileread(testname); %! assert(length(msg), 2); %! %! midifilewrite(testname, {data, data}, 'format', 0); %! info = midifileinfo(testname); %! assert(info.header.format, 0); %! assert(info.header.tracks, 1); %! msg = midifileread(testname); %! assert(length(msg), 4); %! %! midifilewrite(testname, {data, data}, 'format', 1); %! info = midifileinfo(testname); %! assert(info.header.format, 1); %! assert(info.header.tracks, 2); %! msg = midifileread(testname); %! assert(length(msg), 4); %!test %! if exist (testname, 'file'); %! delete (testname); %! end audio-2.0.8/inst/midiflush.m0000644000000000000000000000266314506546342014147 0ustar0000000000000000## Copyright (C) 2022 John Donoghue ## ## 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 3 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, see ## . ## -*- texinfo -*- ## @deftypefn {} {} midiflush (@var{dev}) ## Flush the receive buffers on a midi device ## ## @subsubheading Inputs ## @var{dev} - midi device opened using mididevice@* ## ## @subsubheading Outputs ## None ## ## @subsubheading Examples ## Flush a midi device ## @example ## midiflush(dev); ## @end example ## ## @seealso{mididevice, midireceive} ## @end deftypefn function midiflush (dev) if nargin != 1 error ("Expected midi device"); endif if !isobject(dev) || !strcmp(typeinfo(dev), "octave_midi") error ("Expected midi device"); endif __midiflush__(dev); endfunction %!test %! a = mididevice(0); %! assert(isa(a, "octave_midi")); %! midiflush(a); %!error midiflush(0) audio-2.0.8/inst/midiid.m0000644000000000000000000000504214506546342013414 0ustar0000000000000000## Copyright (C) 2019-2021 John Donoghue ## ## 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 3 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, see ## . ## -*- texinfo -*- ## @deftypefn {} {[@var{ctrlid}, @var{dev}] =} midiid () ## Scan for control messages from midi devices to get the id of the device ## ## Function will display a prompt for the user to move the midi control and return when ## a control messages is detected or ctrl-C is pressed. ## ## @subsubheading Inputs ## None ## ## @subsubheading Outputs ## @var{ctrlid} - control id made from the controller channel * 1000 + controller number.@* ## @var{dev} = name of the midi device the controller was detected on. ## ## @subsubheading Examples ## Monitor midi devices for first moving controller ## @example ## [ctrlid, devname] = midiid() ## @end example ## ## @seealso{mididevinfo, midicontrols} ## @end deftypefn function [ctrlid, devname] = midiid () ctrlid = 0; devname = ""; # get the input devices devs = __mididevinfo__ (); idx = find (arrayfun(@(x) strcmpi(x.Direction, "input"), devs)); devices = {}; unwind_protect # open input devs for i = idx di = devs(i); di.device = mididevice("input", di.Name); devices{end+1} = di; endfor # clear pending data for i = 1:length(devices) m = midireceive(devices{i}.device); m = midireceive(devices{i}.device); endfor printf("Move the control you wish to identify; Press Ctrl-C to abort\n"); printf("Waiting for control message...\n"); # poll looking for control messages while ctrlid == 0 for i = 1:length(devices) mx = midireceive(devices{i}.device); for j = 1:length(mx) m = mx(j); if strcmp(m.type, "ControlChange") ctrlid = m.channel*1000 + double(m.msgbytes(2)); devname = devices{i}.Name; endif endfor endfor pause (0.1) endwhile unwind_protect_cleanup clear devices end_unwind_protect endfunction audio-2.0.8/inst/midimsg.m0000644000000000000000000020561714506546342013620 0ustar0000000000000000## Copyright (C) 2019-2021 John Donoghue ## ## 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 3 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, see ## . classdef midimsg ## -*- texinfo -*- ## @deftypefn {} {@var{msg} =} midimsg (0) ## @deftypefnx {} {@var{msg} =} midimsg (@var{type} ....) ## @deftypefnx {} {@var{msg} =} midimsg ("note", @var{channel}, @var{note}, @var{velocity}, @var{duration}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("noteon", @var{channel}, @var{note}, @var{velocity}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("noteoff", @var{channel}, @var{note}, @var{velocity}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("programchange", @var{channel}, @var{prog}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("controlchange", @var{channel}, @var{ccnum}, @var{ccval}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("polykeypressure", @var{channel}, @var{note}, @var{keypressure}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("channelpressure", @var{channel}, @var{chanpressure}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("localcontrol", @var{channel}, @var{localcontrol}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("pitchbend", @var{channel}, @var{pitchchange}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("polyon", @var{channel}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("monoon", @var{channel}, @var{monochannels}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("omnion", @var{channel}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("omnioff", @var{channel}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("allsoundoff", @var{channel}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("allnotesoff", @var{channel}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("resetallcontrollers", @var{channel}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("start", @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("stop", @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("continue", @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("systemreset", @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("activesensing", @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("timingclock", @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("systemexclusive", @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("systemexclusive", @var{bytes}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("eox", @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("data", @var{bytes}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("songselect", @var{song}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("songpositionpointer", @var{songposition}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("tunerequest", @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("miditimecodequarterframe", @var{timeseq}, @var{timevalue}, @var{timestamp}) ## Create a midimsg object ## ## If the input parameter is 0, create an empty midi message object ## Otherwise the first variable is the type of message to create, followed by the additional ## parameters for the message. ## ## For each message type, the timestamp value is optional. ## ## @subsubheading Inputs ## @var{type} - string message type or a midimsgtype.@* ## @var{timestamp} - optional seconds time stamp for the event@* ## @var{channel} - the channel to use for the message (1..16)@* ## @var{note} - the value of the note to play/stop@* ## @var{velocity} - the velocity value for a note on/off, with 0 stopping a note from sounding.@* ## @var{duration} - seconds between starting and stopping a note when created a 'note' message.@* ## @var{prog} - program number when doing a program change message.@* ## @var{ccnum} - control change control number.@* ## @var{ccval} - control change control value.@* ## @var{keypressure} - key pressure value when creating a key pressure message.@* ## @var{chanpressure} - channel pressure value when creating a channelpressure message.@* ## @var{pitchchange} - pitch change value when creating a pitch bend message.@* ## @var{localcontrol} - boolean value when creating a localcontrol message.@* ## @var{monochannels} - channels specified for a mono on message.@* ## @var{bytes} - array of data in range of 0 to 127 specified as part of a data message or ## system exclusive message.@* ## @var{song} - song selection number for a song selection message.@* ## @var{songposition} - song position value for a song position message.@* ## @var{timeseq} - timecode sequence number for a miditimecodequarterframe message.@* ## @var{timevalue} - timecode value number for a miditimecodequarterframe message.@* ## ## @subsubheading Outputs ## @var{msg} - a midimsg object containing the midi data of the message ## ## @subsubheading Properties ## @var{timestamp} - timestamp of the message, or an array or timestamps if the the message is a ## compound message.@* ## @var{msgbytes} - the raw message bytes that make up the MIDI message.@* ## @var{nummsgbytes} - the number of message bytes that make up the MIDI message.@* ## @var{type} - string or midimsgtype that represents the message type.@* ## @var{channel} - the channel number for message.@* ## @var{note} - the note value for message (Only valid for noteon/off and polykeypressure).@* ## @var{velocity} - the velocity value for message (Only valid for noteon/off).@* ## @var{keypressure} - the keypressure value for message (Only valid for polykeypressure).@* ## @var{channelpressure} - the chanpressure value for message (Only valid for channelpressure).@* ## @var{localcontrol} - the localcontrol value for message (Only valid for localcontrol messages).@* ## @var{monochannels} - channels specified for a mono on message.@* ## @var{program} - program number specified for a program change message.@* ## @var{ccnumber} - control change number specified for a control change message.@* ## @var{ccvalue} - control change value specified for a control change message.@* ## @var{song} - song number for a song selection message.@* ## @var{songposition} - song position value for a song position message.@* ## @var{pitchchange} - pitch change value for a pitch bend message.@* ## @var{timecodesequence} - timecode sequence number for a miditimecodequarterframe message.@* ## @var{timecodevalue} - timecode value number for a miditimecodequarterframe message.@* ## ## @subsubheading Examples ## Create a note on/off pair with a duration of 1.5 seconds ## @example ## msg = midimsg('note', 1, 60, 100, 1.5) ## @end example ## ## Create a separate note on/off pair with a time between them of 1.5 seconds ## @example ## msg = [midimsg('noteon', 1, 60, 100, 0), midimsg('noteoff', 1, 60, 0, 1.5)] ## @end example ## ## Create a system reset message ## @example ## msg = midimsg('systemreset') ## @end example ## ## @seealso{midifileread, midisend, midireceive, midimsgtype} ## @end deftypefn properties (SetAccess = private, GetAccess = public) data = {}; timestamp = {}; endproperties properties (SetAccess = private, GetAccess = public) type; endproperties methods function this = midimsg (typev, varargin) this.data = {}; this.timestamp = {}; if nargin < 1 || (! ischar (typev) && !isscalar (typev) && ! (class(typev) == "midimsgtype")) error ("Expected midi type or size"); endif if strcmp (class(typev), "midimsgtype") typev = char(typev); elseif isscalar (typev) if typev == 0 return; else error ("Non zero size not supported yet"); endif endif typev = lower (typev); switch typev case "noteon" # channel,note,velocity,timestamp if nargin < 4 error ('noteon expects at least channel,note,velocity') endif # TODO: change channel to be 1 indexed chan = this.check_channel(varargin{1})-1; note = this.check_value127("note", varargin{2}); vel = this.check_value127("velocity", varargin{3}); timestamp = 0; if nargin > 4 timestamp = this.check_timestamp(varargin{4}); endif this.data{end+1} = uint8 ([bitor(0x90, chan), note, vel]); this.timestamp{end+1} = timestamp; case "noteoff" # channel,note,velocity,timestamp if nargin < 4 error ('noteoff expects at least channel,note,velocity') endif chan = this.check_channel(varargin{1})-1; note = this.check_value127("note", varargin{2}); vel = this.check_value127("velocity", varargin{3}); timestamp = 0; if nargin > 4 timestamp = this.check_timestamp(varargin{4}); endif this.data{end+1} = uint8 ([bitor(0x80, chan), note, vel]); this.timestamp{end+1} = timestamp; case "note" # channel,note,velocity,duration, timestamp if nargin < 5 error ('note expects at least channel,note,velocity,duration') endif chan = this.check_channel(varargin{1})-1; note = this.check_value127("note", varargin{2}); vel = this.check_value127("velocity", varargin{3}); dur = varargin{4}; if !isscalar(dur) || !isnumeric(dur) || dur < 0 error ('note expects at least duration to be a number >= 0') endif timestamp = 0; if nargin > 5 timestamp = this.check_timestamp(varargin{5}); endif this.data{end+1} = uint8 ([bitor(0x90, chan), note, vel]); this.timestamp{end+1} = timestamp; timestamp = timestamp + dur; this.data{end+1} = uint8 ([bitor(0x90, chan), note, 0]); this.timestamp{end+1} = timestamp; case "programchange" # channel,prog, timestamp if nargin < 3 error ('programchange expects at least channel,program') endif chan = this.check_channel(varargin{1})-1; prog = this.check_value127("program", varargin{2}); timestamp = 0; if nargin > 3 timestamp = this.check_timestamp(varargin{3}); endif this.data{end+1} = uint8([bitor(0xc0, chan), prog]); this.timestamp{end+1} = timestamp; case "controlchange" # channel,ccnum, ccval,timestamp if nargin < 4 error ('controlchange expects at least channel,ccnum,ccval') endif chan = this.check_channel(varargin{1})-1; ccnum = this.check_value119("ccnum", varargin{2}); ccval = this.check_value127("ccval", varargin{3}); timestamp = 0; if nargin > 4 timestamp = this.check_timestamp(varargin{4}); endif this.data{end+1} = uint8([bitor(0xb0, chan), ccnum, ccval]); this.timestamp{end+1} = timestamp; case "polykeypressure" # channel, note, pressure, timestamp if nargin < 4 error ('polykeypressure expects at least channel,note,keypressure') endif chan = this.check_channel(varargin{1})-1; note = this.check_value127("note", varargin{2}); pres = this.check_value127("pressure", varargin{3}); timestamp = 0; if nargin > 4 timestamp = this.check_timestamp(varargin{4}); endif this.data{end+1} = uint8([bitor(0xa0, chan), note pres]); this.timestamp{end+1} = timestamp; case "channelpressure" # channel, pressure, timestamp if nargin < 3 error ('channelpressure expects at least channel,keypressure') endif chan = this.check_channel(varargin{1})-1; pres = this.check_value127("pressure", varargin{2}); timestamp = 0; if nargin > 3 timestamp = this.check_timestamp(varargin{3}); endif this.data{end+1} = uint8([bitor(0xd0, chan), pres]); this.timestamp{end+1} = timestamp; case "localcontrol" # channel, localcontrol, timestamp if nargin < 3 error ('localcontrol expects at least channel,localcontrol') endif chan = this.check_channel(varargin{1})-1; local = this.check_value1("localcontrol", varargin{2}); timestamp = 0; if nargin > 3 timestamp = this.check_timestamp(varargin{3}); endif this.data{end+1} = uint8([bitor(0xb0, chan), 122, local]); this.timestamp{end+1} = timestamp; case "pitchbend" # channel, pitchchange, timestamp if nargin < 3 error ('pitchbend expects at least channel,pitchchange') endif chan = this.check_channel(varargin{1})-1; # pitch is 0 .. 16383 where 8120 is no change # pitch = uint16(varargin{2} + 0x2000); pitch = uint16(this.check_value16383("pitchchange", varargin{2})); pitchlo = bitand(pitch, uint16(0x7F)); pitchhi = bitand(bitshift(pitch, -7), uint16(0x7f)); timestamp = 0; if nargin > 3 timestamp = this.check_timestamp(varargin{3}); endif this.data{end+1} = uint8([bitor(0xe0, chan), pitchlo pitchhi]); this.timestamp{end+1} = timestamp; case "polyon" # channel, timestamp if nargin < 2 error ('polyon expects at least channel') endif chan = this.check_channel(varargin{1})-1; timestamp = 0; if nargin > 2 timestamp = this.check_timestamp(varargin{2}); endif this.data{end+1} = uint8([bitor(0xb0, chan), 127]); this.timestamp{end+1} = timestamp; case "monoon" # channel, monochan, timestamp if nargin < 3 error ('monoon expects at least channel and monochannels') endif chan = this.check_channel(varargin{1})-1; mono = this.check_value16("monochannels", varargin{2}); timestamp = 0; if nargin > 3 timestamp = this.check_timestamp(varargin{3}); endif this.data{end+1} = uint8([bitor(0xb0, chan), 126, mono]); this.timestamp{end+1} = timestamp; case "omnion" # channel, timestamp if nargin < 2 error ('omnion expects at least channel') endif chan = this.check_channel(varargin{1})-1; timestamp = 0; if nargin > 2 timestamp = this.check_timestamp(varargin{2}); endif this.data{end+1} = uint8([bitor(0xb0, chan), 125]); this.timestamp{end+1} = timestamp; case "omnioff" # channel, timestamp if nargin < 2 error ('omnioff expects at least channel') endif chan = this.check_channel(varargin{1})-1; timestamp = 0; if nargin > 2 timestamp = this.check_timestamp(varargin{2}); endif this.data{end+1} = uint8([bitor(0xb0, chan), 124]); this.timestamp{end+1} = timestamp; case "allsoundoff" # channel, timestamp if nargin < 2 error ('allsoundoff expects at least channel') endif chan = this.check_channel(varargin{1})-1; timestamp = 0; if nargin > 2 timestamp = this.check_timestamp(varargin{2}); endif this.data{end+1} = uint8([bitor(0xb0, chan), 120]); this.timestamp{end+1} = timestamp; case "allnotesoff" # channel, timestamp if nargin < 2 error ('allnotesoff expects at least channel') endif chan = this.check_channel(varargin{1})-1; timestamp = 0; if nargin > 2 timestamp = this.check_timestamp(varargin{2}); endif this.data{end+1} = uint8([bitor(0xb0, chan), 123]); this.timestamp{end+1} = timestamp; case "resetallcontrollers" # channel, timestamp if nargin < 2 error ('resetallcontrollers expects at least channel') endif chan = this.check_channel(varargin{1})-1; timestamp = 0; if nargin > 2 timestamp = this.check_timestamp(varargin{2}); endif this.data{end+1} = uint8([bitor(0xb0, chan), 121]); this.timestamp{end+1} = timestamp; case "songselect" if nargin < 2 error ('songselect expects at least song number') endif timestamp = 0; song = this.check_value127("songnumber", varargin{1}); if nargin > 2 timestamp = this.check_timestamp(varargin{2}); endif this.data{end+1} = uint8([0xF3 song]); this.timestamp{end+1} = timestamp; case "songpositionpointer" if nargin < 2 error ('song expects at least song position') endif timestamp = 0; songpos = uint16(this.check_value16383("songposiition", varargin{1})); songlo = bitand(songpos, uint16(0x7F)); songhi = bitand(bitshift(songpos, -7), uint16(0x7f)); if nargin > 2 timestamp = this.check_timestamp(varargin{2}); endif this.data{end+1} = uint8([0xF2 songlo songhi]); this.timestamp{end+1} = timestamp; case "miditimecodequarterframe" # timeseq, timeval, timestamp if nargin < 3 error ('miditimecodequarterframe expects at least timeseq and value') endif seq = this.check_value7("timeseq", varargin{1}); val = this.check_value15("timeval", varargin{2}); seq = bitand(uint8(seq), 3); val = bitand(uint8(val), 7); data = bitshift(seq, 3) + val; timestamp = 0; if nargin > 3 timestamp = this.check_timestamp(varargin{3}); endif this.data{end+1} = uint8([0xF1 data]); this.timestamp{end+1} = timestamp; case "start" timestamp = 0; if nargin > 1 timestamp = this.check_timestamp(varargin{1}); endif this.data{end+1} = uint8([0xFA]); this.timestamp{end+1} = timestamp; case "stop" timestamp = 0; if nargin > 1 timestamp = this.check_timestamp(varargin{1}); endif this.data{end+1} = uint8([0xFC]); this.timestamp{end+1} = timestamp; case "continue" timestamp = 0; if nargin > 1 timestamp = this.check_timestamp(varargin{1}); endif this.data{end+1} = uint8([0xFB]); this.timestamp{end+1} = timestamp; case "systemreset" timestamp = 0; if nargin > 1 timestamp = this.check_timestamp(varargin{1}); endif this.data{end+1} = uint8([0xFF]); this.timestamp{end+1} = timestamp; case "activesensing" timestamp = 0; if nargin > 1 timestamp = this.check_timestamp(varargin{1}); endif this.data{end+1} = uint8([0xFE]); this.timestamp{end+1} = timestamp; case "timingclock" timestamp = 0; if nargin > 1 timestamp = this.check_timestamp(varargin{1}); endif this.data{end+1} = uint8([0xF8]); this.timestamp{end+1} = timestamp; case "tunerequest" timestamp = 0; if nargin > 1 timestamp = this.check_timestamp(varargin{1}); endif this.data{end+1} = uint8([0xF6]); this.timestamp{end+1} = timestamp; case "data" # data, timestamp if nargin < 2 error ('data type expects at least data') endif timestamp = 0; if nargin > 2 timestamp = this.check_timestamp(varargin{2}); endif this.data{end+1} = uint8(varargin{1}); this.timestamp{end+1} = timestamp; case "eox" timestamp = 0; if nargin > 1 timestamp = this.check_timestamp(varargin{1}); endif this.data{end+1} = uint8([0xF7]); this.timestamp{end+1} = timestamp; case "systemexclusive" # timestamp # or data + timestamp if nargin == 1 timestamp = 0; data = []; elseif nargin == 2 if !isscalar(varargin{1}) && isvector(varargin{1}) data = uint8(varargin{1}); timestamp = 0; else data = []; timestamp = this.check_timestamp(varargin{1}); endif elseif nargin == 3 data = uint8(varargin{1}); timestamp = this.check_timestamp(varargin{2}); else error ("systemexclusive expects optional data and timestamp only"); endif this.data{end+1} = uint8([0xF0]); this.timestamp{end+1} = timestamp; # want to build a full SOX data EOX if !isempty(data) this.data{end+1} = data; this.timestamp{end+1} = timestamp; this.data{end+1} = uint8([0xF7]); this.timestamp{end+1} = timestamp; endif case "metaevent" if nargin < 3 error ('metaevent expects at least metatype and data') endif timestamp = 0; if nargin > 3 timestamp = this.check_timestamp(varargin{3}); endif # TODO: could be a integer or char type for metatype event = this.check_value127("metatype", varargin{1}); data = uint8(varargin{2}); # TODO: check validity of the data <= 127 datasize = midimsg.makevariable(length(data)); this.data{end+1} = uint8([0xFF event datasize data]); this.timestamp{end+1} = timestamp; otherwise error ("Unknown midi type '%s", typev); endswitch endfunction function a = horzcat (a, varargin) if !isa(a, 'midimsg') error ("Cannot concatenate non midimsg elements"); endif for i = 1:nargin-1 b = varargin{i}; if !isa(b, 'midimsg') error ("Cannot concatenate non midimsg elements"); endif for idx=1:length (b.data) a.data{end+1} = b.data{idx}; a.timestamp{end+1} = b.timestamp{idx}; endfor endfor endfunction function e = isempty (this) e = isempty(this.data); endfunction function e = length (this) e = length(this.data); endfunction function this = subsasgn (this, s, rhs) if isempty(s) error ("midimsg.subsref missing index"); endif switch (s(1).type) case "." if length(this.timestamp) > 1 error ("Can not set %s on mutiple messages yet", s(1).subs); endif switch tolower(s(1).subs) case "timestamp" this.timestamp{1} = this.check_timestamp(rhs); case "channel" chan = this.check_channel(rhs); data = this.data{1}; data(1) = bitor(bitand(data(1), 0xF0), (chan-1)); this.data{1} = data; case "note" data = this.data{1}; cmd = bitand(data(1), 0xF0); if !(cmd == 0x80 || cmd == 0x90 || cmd == 0xA0) error ("note property only valid for noteon/off and polykeypressure"); endif data(2) = this.check_value127("note", rhs); this.data{1} = data; case "velocity" data = this.data{1}; cmd = bitand(data(1), 0xF0); if !(cmd == 0x80 || cmd == 0x90) error ("velocity property only valid for noteon/off"); endif data(3) = this.check_value127("velocity", rhs); this.data{1} = data; case "channelpressure" data = this.data{1}; cmd = bitand(data(1), 0xF0); if !(cmd == 0xD0) error ("channel property only valid for channelpressure messages"); endif data(2) = this.check_value127("channelpressure", rhs); this.data{1} = data; case "keypressure" data = this.data{1}; cmd = bitand(data(1), 0xF0); if !(cmd == 0xA0) error ("keypressure property only valid for polykeypressure messages"); endif data(3) = this.check_value127("keypressure", rhs); this.data{1} = data; case "ccnumber" data = this.data{1}; cmd = bitand(data(1), 0xF0); if cmd != 0xB0 || data(2) > 119 error ("ccnumber property only valid for controlchange messages"); endif data(2) = this.check_value119("ccnumber", rhs); this.data{1} = data; case "ccvalue" data = this.data{1}; cmd = bitand(data(1), 0xF0); if cmd != 0xB0 || data(2) > 119 error ("ccnumber property only valid for controlchange messages"); endif data(3) = this.check_value127("ccvalue", rhs); this.data{1} = data; case "song" data = this.data{1}; cmd = data(1); if cmd != 0xF3 error ("song property only valid for song select messages"); endif data(2) = this.check_value127("song", rhs); this.data{1} = data; case "songposition" data = this.data{1}; cmd = data(1); if cmd != 0xF2 error ("songposition property only valid for songpositionpointer messages"); endif songpos = uint16(this.check_value16383("songposition", rhs)); songlo = bitand(songpos, uint16(0x7F)); songhi = bitand(bitshift(songpos, -7), uint16(0x7f)); data(2) = songlo; data(3) = songhi; this.data{1} = data; case "pitchchange" data = this.data{1}; cmd = bitand(data(1), 0xF0); if cmd != 0xE0 error ("pitchchange property only valid for pitchbend messages"); endif pitchchange = uint16(this.check_value16383("pitchchange", rhs)); pitchlo = bitand(pitchchange, uint16(0x7F)); pitchhi = bitand(bitshift(pitchchange, -7), uint16(0x7f)); data(2) = pitchlo; data(3) = pitchhi; this.data{1} = data; case "timecodesequence" data = this.data{1}; cmd = data(1); if cmd != 0xF1 error ("timecodesequence property only valid for miditimecodequaterframe messages"); endif seq = bitshift(data(2), -3); val = bitand(data(2), 7); seq = this.check_value7("timecodesequence", rhs); data(2) = bitshift(seq, 3) + val; this.data{1} = data; case "timecodevalue" data = this.data{1}; cmd = data(1); if cmd != 0xF1 error ("value property only valid for miditimecodequaterframe messages"); endif seq = bitshift(data(2), -3); val = bitand(data(2), 7); val = this.check_value15("timecodevalue", rhs); val = bitand(uint8(val), 7); data(2) = bitshift(seq, 3) + val; this.data{1} = data; otherwise error("unimplemented midimsg.subsasgn property '%s'", s(1).subs); endswitch case "()" idx = s(1).subs; if (numel (idx) != 1) error ("@midimsg/subsasgn: needs exactly one index"); endif if numel (s) == 1 # assign a value to here - so verify is a midimsg if !isa(rhs, "midimsg") error ("midimsg.subsasgn rhs of indexed value must be a midimsg"); endif val = rhs; else # extract out midimsg value and do assign on it val = midimsg.createMessage(this.data{idx{1}}, this.timestamp{idx{1}}); val = subsasgn (val, s(2:end), rhs); endif # store the modded data back in our object this.data{idx{1}} = val.data{1}; this.timestamp{idx{1}} = val.timestamp{1}; otherwise error("unimplemented midimsg.subsasgn type"); endswitch endfunction function val = subsref (this, s) if isempty(s) error ("midimsg.subsref missing index"); endif switch (s(1).type) case "()" idx = s(1).subs; if (numel (idx) != 1) error ("@midimsg/subsref: need exactly one index"); endif off=[idx{1}]; val = midimsg(0); for ix=off a = midimsg.createMessage(this.data{ix}, this.timestamp{ix}); val = [val a]; endfor case "." switch tolower(s(1).subs) case "timestamp" if length(this.timestamp) == 1 val = this.timestamp{1}; else val = cell2mat(this.timestamp); endif case "msgbytes" if length(this.data) == 1 val = this.data{1}; else val = this.data; endif case "nummsgbytes" if length(this.data) > 0 val = length(this.data{1}); if length(this.data) > 1 for idx = 2:length(this.data) val = [val length(this.data{idx})]; endfor endif else val = 0; endif case "type" if length(this.data) > 0 data = this.data{1}; val = this.type_enum(this.data{1}); if length(this.data) > 1 # we cant override cellstr yes, so just use strings for multiples val = {char(val)}; for idx = 2:length(this.data) val{end+1} = this.type_str(this.data{idx}); endfor endif else val = midimsgtype.Undefined; endif case "channel" if length(this.data) > 0 data = this.data{1}; val = bitand(data(1), 0x0F) + 1; if length(this.data) > 1 for idx = 2:length(this.data) data = this.data{idx}; val = [val (bitand(data(1), 0x0F)+1)]; endfor endif val = double(val); endif case "note" if length(this.data) > 0 data = this.data{1}; cmd = bitand(data(1), 0xF0); if cmd == 0x80 || cmd == 0x90 || cmd == 0xA0 val = data(2); else error ("note property only valid for noteon/off and polykeypressure"); endif if length(this.data) > 1 for idx = 2:length(this.data) data = this.data{idx}; cmd = bitand(data(1), 0xF0); if cmd == 0x80 || cmd == 0x90 || cmd == 0xA0 val = [val data(2)]; else error ("note property only valid for noteon/off and polykeypressure"); endif endfor endif val = double(val); endif case "velocity" if length(this.data) > 0 data = this.data{1}; cmd = bitand(data(1), 0xF0); if cmd == 0x80 || cmd == 0x90 val = data(3); else error ("velocity property only valid for noteon/off"); endif if length(this.data) > 1 for idx = 2:length(this.data) data = this.data{idx}; cmd = bitand(data(1), 0xF0); if cmd == 0x80 || cmd == 0x90 val = [val data(3)]; else error ("velocity property only valid for noteon/off"); endif endfor endif val = double(val); endif case "keypressure" if length(this.data) > 0 data = this.data{1}; cmd = bitand(data(1), 0xF0); if cmd == 0xA0 val = data(3); else error ("keypressure property only valid for polykeypressure"); endif if length(this.data) > 1 for idx = 2:length(this.data) data = this.data{idx}; cmd = bitand(data(1), 0xF0); if cmd == 0xA0 val = [val data(3)]; else error ("keypressure property only valid for polykeypressure"); endif endfor endif val = double(val); endif case "channelpressure" if length(this.data) > 0 data = this.data{1}; cmd = bitand(data(1), 0xF0); if cmd == 0xD0 val = data(2); else error ("channelpressure property only valid for channelpressure"); endif if length(this.data) > 1 for idx = 2:length(this.data) data = this.data{idx}; cmd = bitand(data(1), 0xF0); if cmd == 0xD0 val = [val data(2)]; else error ("keypressure property only valid for channelpressure"); endif endfor endif val = double(val); endif case "localcontrol" if length(this.data) > 0 data = this.data{1}; cmd = bitand(data(1), 0xF0); if cmd == 0xB0 && data(2) == 122 val = data(3); else error ("localcontrol property only valid for localcontrol messages"); endif if length(this.data) > 1 for idx = 2:length(this.data) data = this.data{idx}; cmd = bitand(data(1), 0xF0); if cmd == 0xB0 && data(2) == 122 val = [val data(3)]; else error ("localcontrol property only valid for localcontrol messages"); endif endfor endif val = double(val); endif case "monochannels" if length(this.data) > 0 data = this.data{1}; cmd = bitand(data(1), 0xF0); if cmd == 0xB0 && data(2) == 126 val = data(3); else error ("monochannels property only valid for monoon messages"); endif if length(this.data) > 1 for idx = 2:length(this.data) data = this.data{idx}; cmd = bitand(data(1), 0xF0); if cmd == 0xB0 && data(2) == 126 val = [val data(3)]; else error ("monochannels property only valid for monoon messages"); endif endfor endif val = double(val); endif case "program" if length(this.data) > 0 data = this.data{1}; cmd = bitand(data(1), 0xF0); if cmd == 0xC0 val = data(2); else error ("program property only valid for programchange messages"); endif if length(this.data) > 1 for idx = 2:length(this.data) data = this.data{idx}; cmd = bitand(data(1), 0xF0); if cmd == 0xC0 val = [val data(2)]; else error ("program property only valid for programchange messages"); endif endfor endif val = double(val); endif case "ccnumber" if length(this.data) > 0 data = this.data{1}; cmd = bitand(data(1), 0xF0); if cmd == 0xB0 && data(2) <= 119 val = data(2); else error ("ccnumber property only valid for controlchange messages"); endif if length(this.data) > 1 for idx = 2:length(this.data) data = this.data{idx}; cmd = bitand(data(1), 0xF0); if cmd == 0xB0 && data(2) <= 119 val = [val data(2)]; else error ("ccnumber property only valid for controlchange messages"); endif endfor endif val = double(val); endif case "ccvalue" if length(this.data) > 0 data = this.data{1}; cmd = bitand(data(1), 0xF0); if cmd == 0xB0 && data(2) <= 119 val = data(3); else error ("ccvalue property only valid for controlchange messages"); endif if length(this.data) > 1 for idx = 2:length(this.data) data = this.data{idx}; cmd = bitand(data(1), 0xF0); if cmd == 0xB0 && data(2) <= 119 val = [val data(3)]; else error ("ccvalue property only valid for controlchange messages"); endif endfor endif val = double(val); endif case "song" if length(this.data) > 0 data = this.data{1}; cmd = data(1); if cmd == 0xF3 val = data(2); else error ("song property only valid for songselect messages"); endif if length(this.data) > 1 for idx = 2:length(this.data) data = this.data{idx}; cmd = data(1); if cmd == 0xF3 val = [val data(2)]; else error ("song property only valid for songselect messages"); endif endfor endif val = double(val); endif case "songposition" if length(this.data) > 0 data = this.data{1}; cmd = data(1); if cmd == 0xF2 val = bitshift(int16(data(3)), 7) + int16(data(2)); else error ("songpostion property only valid for songpositionpointer messages"); endif if length(this.data) > 1 for idx = 2:length(this.data) data = this.data{idx}; cmd = data(1); if cmd == 0xF2 v = bitshift(int16(data(3)), 7) + int16(data(2)); val = [val v]; else error ("songposition property only valid for songpositionpointer messages"); endif endfor endif val = double(val); endif case "pitchchange" if length(this.data) > 0 data = this.data{1}; cmd = bitand(data(1), 0xF0); if cmd == 0xE0 val = bitshift(int16(data(3)), 7) + int16(data(2)); else error ("pitchchange property only valid for pitchbend messages"); endif if length(this.data) > 1 for idx = 2:length(this.data) data = this.data{idx}; cmd = bitand(data(1), 0xF0); if cmd == 0xF2 v = bitshift(int16(data(3)), 7) + int16(data(2)); val = [val v]; else error ("picthchange property only valid for pitchbend messages"); endif endfor endif val = double(val); endif case "timecodesequence" if length(this.data) > 0 data = this.data{1}; cmd = data(1); if cmd == 0xF1 val = bitshift(data(2), -3); else error ("timecodesequence property only valid for miditimecodequarterframe messages"); endif if length(this.data) > 1 for idx = 2:length(this.data) data = this.data{idx}; cmd = data(1); if cmd == 0xF1 v = bitshift(data(2), -3); val = [val v]; else error ("timecodesequence property only valid for miditimecodequaterframe messages"); endif endfor endif val = double(val); endif case "timecodevalue" if length(this.data) > 0 data = this.data{1}; cmd = data(1); if cmd == 0xF1 val = bitand(data(2), 7); else error ("timecodevalue property only valid for miditimecodequarterframe messages"); endif if length(this.data) > 1 for idx = 2:length(this.data) data = this.data{idx}; cmd = data(1); if cmd == 0xF1 v = bitand(data(2), 7); val = [val v]; else error ("timecodevalue property only valid for miditimecodequaterframe messages"); endif endfor endif val = double(val); endif case "metatype" if length(this.data) > 0 data = this.data{1}; cmd = data(1); if cmd == 0xFF && length(data) > 1 val = data(2); else error ("metatype property only valid for metaevent messages"); endif if length(this.data) > 1 for idx = 2:length(this.data) data = this.data{idx}; cmd = data(1); if cmd == 0xFF && length(data) > 1 val = data(2); val = [val v]; else error ("metatype property only valid for metaevent messages"); endif endfor endif val = double(val); endif case "metadata" if length(this.data) > 0 data = this.data{1}; cmd = data(1); len = length(data); if cmd == 0xFF && len > 1 if len < 128 val = data(4:len); elseif len < 128*128 val = data(5:len); elseif len < 128*128*128 val = data(6:len); else val = data(7:len); endif else error ("metadata property only valid for metaevent messages"); endif if length(this.data) > 1 for idx = 2:length(this.data) data = this.data{idx}; cmd = data(1); len = length(data); if cmd == 0xFF && len > 1 if len < 128 v = data(4:len); elseif len < 128*128 v = data(5:len); elseif len < 128*128*128 v = data(6:len); else v = data(7:len); endif val = [val v]; else error ("metadata property only valid for metaevent messages"); endif endfor endif endif otherwise error("unimplemented midimsg.subsref property '%s'", s(1).subs); endswitch otherwise error("unimplemented midimsg.subsref type"); endswitch if (numel (s) > 1) val = subsref (val, s(2:end)); endif endfunction function msg = sort (this) msg = midimsg(0); # TODO: store timestamp as matrix not a cell # then could just use sort, and no swaps ? [~, s_idx] = sort(cell2mat(this.timestamp')); s_idx = s_idx'; for idx = 1:numel(s_idx) msg.timestamp{end+1} = this.timestamp{s_idx(idx)}; msg.data{end+1} = this.data{s_idx(idx)}; endfor endfunction function out = disp (this) if nargout == 0 disp(" MIDI message:"); else out = ""; endif for idx=1:length(this.data) data = this.data{idx}; cmd = data(1); types = this.type_str(data); if bitand(cmd, 0xF0) != 0xF0 && bitand(cmd, 0x80) != 0 chan = bitand(cmd, 0x0F) + 1; msgtext = sprintf ("%-10s Channel: %2d", types, chan); else msgtext = sprintf ("%-10s", types); endif if strcmp(types, "NoteOn") || strcmp(types, "NoteOff") msgtext = [msgtext sprintf(" Note: %3d Velocity: %3d", data(2), data(3))]; endif if strcmp(types, "ProgramChange") msgtext = [msgtext sprintf(" Program: %3d", data(2))]; endif if strcmp(types, "ControlChange") msgtext = [msgtext sprintf(" CCNumber: %3d CCValue: %3d", data(2), data(3))]; endif if strcmp(types, "PitchBend") v = bitshift(int16(data(3)), 7) + int16(data(2)); msgtext = [msgtext sprintf(" PitchChange: %d", v)]; endif if strcmp(types, "ChannelPressure") msgtext = [msgtext sprintf(" ChannelPressure: %3d", data(2))]; endif if strcmp(types, "PolyKeyPressure") msgtext = [msgtext sprintf(" Note: %3d KeyPressure: %3d", data(2), data(3))]; endif if strcmp(types, "LocalControl") msgtext = [msgtext sprintf(" LocalControl: %3d", data(3))]; endif if strcmp(types, "MonoOn") msgtext = [msgtext sprintf(" MonoChannels: %3d", data(3))]; endif if strcmp(types, "SongSelect") msgtext = [msgtext sprintf(" Song: %3d", data(2))]; endif if strcmp(types, "SongPositionPointer") v = bitshift(int16(data(3)), 7) + int16(data(2)); msgtext = [msgtext sprintf(" SongPosition: %d", v)]; endif if strcmp(types, "MIDITimeCodeQuarterFrame") seq = bitshift(data(2), -3); val = bitand(data(2), 7); msgtext = [msgtext sprintf(" TimeCodeSequence: %d TimeCodeValue: %d", seq, val)]; endif if strcmp(types, "MetaEvent") metatype = data(2); msgtext = [msgtext sprintf(" MetaType: %d", metatype)]; endif msgtext = [msgtext sprintf(" Timestamp: %f", this.timestamp{idx})]; msgtext = [msgtext sprintf(" [")]; msgtext = [msgtext sprintf(" 0x%02X", data)]; msgtext = [msgtext sprintf(" ]")]; if nargout == 0 disp([" " msgtext]); else out = [out msgtext "\n"]; endif endfor endfunction function d = uint8 (this) d = this.data; endfunction endmethods methods (Access = private) function t = check_timestamp(this, ts) if !isscalar (ts) || !isnumeric(ts) || ts < 0 error ("expected timestamp to be a number >= 0"); endif t = ts; endfunction function c = check_channel(this, chan) if !isscalar (chan) || !isnumeric(chan) || chan < 1 || chan > 16 error ("expected channel to be a number between 1..16"); endif c = chan; endfunction function v = check_value127(this, name, value) if !isscalar (value) || !isnumeric(value) || value < 0 || value > 127 error ("expected %s to be a number between 0..127", name); endif v = value; endfunction function v = check_value1(this, name, value) if !isscalar (value) || !(islogical(value) || isnumeric(value)) || value < 0 || value > 1 error ("expected %s to be a number between 0..1", name); endif v = value; endfunction function v = check_value7(this, name, value) if !isscalar (value) || !isnumeric(value) || value < 0 || value > 7 error ("expected %s to be a number between 0..7", name); endif v = value; endfunction function v = check_value15(this, name, value) if !isscalar (value) || !isnumeric(value) || value < 0 || value > 7 error ("expected %s to be a number between 0..15", name); endif v = value; endfunction function v = check_value16(this, name, value) if !isscalar (value) || !isnumeric(value) || value < 0 || value > 16 error ("expected %s to be a number between 0..16", name); endif v = value; endfunction function v = check_value119(this, name, value) if !isscalar (value) || !isnumeric(value) || value < 0 || value > 119 error ("expected %s to be a number between 0..119", name); endif v = value; endfunction function v = check_value16383(this, name, value) if !isscalar (value) || !isnumeric(value) || value < 0 || value > 16383 error ("expected %s to be a number between 0..16386", name); endif v = value; endfunction function v = type_enum (this, data) cmd = 0; b1 = 0; if length(data) > 0 cmd = data(1); endif if length(data) > 1 b1 = data(2); endif cmdgrp = bitand(cmd, 0xF0); switch (cmdgrp) case 0x80 v = midimsgtype.NoteOff; case 0x90 v = midimsgtype.NoteOn; case 0xA0 v = midimsgtype.PolyKeyPressure; case 0xB0 # depends on next byte for actual msg if b1 == 120 v = midimsgtype.AllSoundOff; elseif b1 == 121 v = midimsgtype.ResetAllControllers; elseif b1 == 122 v = midimsgtype.LocalControl; elseif b1 == 123 v = midimsgtype.AllNotesOff; elseif b1 == 124 v = midimsgtype.OmniOff; elseif b1 == 125 v = midimsgtype.OmniOn; elseif b1 == 126 v = midimsgtype.MonoOn; elseif b1 == 127 v = midimsgtype.PolyOn; else v = midimsgtype.ControlChange; endif case 0xC0 v = midimsgtype.ProgramChange; case 0xD0 v = midimsgtype.ChannelPressure; case 0xE0 v = midimsgtype.PitchBend; case 0xF0 if cmd == 0xF0 v = midimsgtype.SystemExclusive; elseif cmd == 0xF1 v = midimsgtype.MIDITimeCodeQuarterFrame; elseif cmd == 0xF2 v = midimsgtype.SongPositionPointer; elseif cmd == 0xF3 v = midimsgtype.SongSelect; elseif cmd == 0xF4 v = midimsgtype.Reserved; elseif cmd == 0xF5 v = midimsgtype.Reserved; elseif cmd == 0xF6 v = midimsgtype.TuneRequest; elseif cmd == 0xF7 v = midimsgtype.EOX; elseif cmd == 0xF8 v = midimsgtype.TimingClock; elseif cmd == 0xF9 v = midimsgtype.Reserved; elseif cmd == 0xFA v = midimsgtype.Start; elseif cmd == 0xFB v = midimsgtype.Continue; elseif cmd == 0xFC v = midimsgtype.Stop; elseif cmd == 0xFD v = midimsgtype.Reserved; elseif cmd == 0xFE v = midimsgtype.ActiveSensing; elseif cmd == 0xFF v = midimsgtype.SystemReset; if length(data) > 1 v = midimsgtype.MetaEvent; endif endif # depend on other bytes ? otherwise if length(data) < 1 v = midimsgtype.Undefined; else v = midimsgtype.Data; endif endswitch endfunction function v = type_str (this, data) v = char(this.type_enum(data)); endfunction endmethods methods (Static=true) function msg = createMessage (data, ts) if nargin < 1 || !isa (data, 'uint8') || !ismatrix (data) error ("Expected matrix of uint8 data") endif if nargin < 2 ts = 0; elif !isnumeric(ts) error ("Expected Timestamp as a number") endif msg = midimsg(0); msg.data{end+1} = data; msg.timestamp{end+1} = ts; endfunction function msg = fromStruct (msgstruct) # expects 'RawBytes' and 'Timestamp' in a struct if !isstruct (msgstruct) || !isfield (msgstruct, "RawBytes") || !isfield (msgstruct, "Timestamp") error ("Expected struct with RawBytes and Timestamp field"); endif msg = midimsg.createMessage(uint8(msgstruct.RawBytes), msgstruct.Timestamp); endfunction endmethods methods (Static = true) # octave 5 wont allow us to call private funcs from the class # so a copy of private/makevariable is here function data = makevariable (value) t = uint64(value); if t < 128 v = uint8(t); data = [v]; else tmp = dec2bin(t); while mod(length(tmp), 7) != 0 tmp = [ "0" tmp ]; endwhile data = []; for i=1:7:length(tmp) v = tmp(i:i+6); v = uint8(bin2dec(v)); if i < length(tmp) -7 v = 128 + v; endif data = [data v]; endfor endif endfunction endmethods endclassdef %!fail midimsg('badtype') %!fail midimsg %!test %! a = midimsg(0); %! assert(isa(a, "midimsg")); %! assert(length(a) == 0); %! assert(isempty(a)); %!fail midimsg("note", 0, 60, 127, 2) %!fail midimsg("note", 17, 60, 127, 2) %!fail midimsg("note", 1, 128, 127, 2) %!fail midimsg("note", 1, -1, 127, 2) %!fail midimsg("note", 1, 60, 128, 2) %!fail midimsg("note", 1, 60, -1, 2) %!fail midimsg("note", 1, 60, 127, -1) %!fail midimsg("note", 1, 60, 127, 2, -1) %!test %! a = midimsg("note", 1, 60, 127, 2); %! assert(isa(a, "midimsg")); %! assert(length(a) == 2); %! assert(!isempty(a)); %! assert(a.channel, [1 1]); %! a = midimsg("note", 2, 60, 127, 1.2); %! t = a.type; %! assert(length(t) == 2); %! assert(strcmp(t{1}, "NoteOn")) %! assert(strcmp(t{2}, "NoteOn")) %! assert(a.timestamp, [0.0 1.2]); %! assert(a.channel, [2 2]); %!test %! a = midimsg("noteon", 1, 60, 20); %! assert(isa(a, "midimsg")); %! assert(length(a) == 1); %! assert(a.type == "NoteOn"); %! assert(a.channel, 1); %! assert(a.msgbytes, uint8([0x90 0x3C 0x14])); %! assert(!isempty(a)); %! a = midimsg("noteon", 2, 60, 20); %! assert(a.channel, 2); %! assert(a.msgbytes, uint8([0x91 0x3C 0x14])); %!test %! % using midimsgtype enum %! a = midimsg(midimsgtype.NoteOn, 1, 60, 20); %! assert(isa(a, "midimsg")); %! assert(a.type == "NoteOn"); %!test %! a = midimsg("noteoff", 1, 60, 20); %! assert(isa(a, "midimsg")); %! assert(length(a) == 1); %! assert(a.type == "NoteOff"); %! assert(a.nummsgbytes, 3); %! assert(!isempty(a)); %! assert(a.msgbytes, uint8([0x80 0x3C 0x14])); %!test %! a = midimsg("programchange", 1, 60); %! assert(isa(a, "midimsg")); %! assert(length(a) == 1); %! assert(a.type == "ProgramChange"); %! assert(a.program, 60); %! assert(a.channel, 1); %! assert(a.nummsgbytes, 2); %! assert(a.msgbytes, uint8([0xC0 60])); %! assert(!isempty(a)); %!test %! a = midimsg("controlchange", 1, 60, 65); %! assert(isa(a, "midimsg")); %! assert(length(a) == 1); %! assert(a.type == "ControlChange"); %! assert(a.nummsgbytes, 3); %! assert(!isempty(a)); %! assert(a.ccnumber, 60) %! assert(a.ccvalue, 65) %! a.ccnumber = 0; %! a.ccvalue = 4; %! assert(a.ccnumber, 0) %! assert(a.ccvalue, 4) %!test %! a = midimsg("polykeypressure", 1, 60, 65); %! assert(isa(a, "midimsg")); %! assert(length(a) == 1); %! assert(a.type == "PolyKeyPressure"); %! assert(a.nummsgbytes, 3); %! assert(a.note, 60); %! assert(a.keypressure, 65); %! assert(!isempty(a)); %! %! a.keypressure = 40; %! assert(a.keypressure, 40); %!test %! a = midimsg("pitchbend", 1, 8192); %! assert(isa(a, "midimsg")); %! assert(length(a) == 1); %! assert(a.type == "PitchBend"); %! assert(a.nummsgbytes, 3); %! assert(!isempty(a)); %! assert(a.msgbytes, uint8([0xE0 0x00 0x40])); %! assert(a.pitchchange, 8192); %! assert(a.channel, 1); %! a.pitchchange = 8200; %! assert(a.pitchchange, 8200); %!test %! a = midimsg("channelpressure", 1, 60); %! assert(isa(a, "midimsg")); %! assert(length(a) == 1); %! assert(a.type == "ChannelPressure"); %! assert(a.nummsgbytes, 2); %! assert(!isempty(a)); %! assert(a.channelpressure, 60); %! %! a.channelpressure = 40; %! assert(a.channelpressure, 40); %!test %! a = midimsg("localcontrol", 1, 1); %! assert(isa(a, "midimsg")); %! assert(length(a) == 1); %! assert(a.type == "LocalControl"); %! assert(a.nummsgbytes, 3); %! assert(a.localcontrol, 1); %! assert(!isempty(a)); %! assert(a.msgbytes, uint8([0xB0 122 0x01])); %! %! a = midimsg("localcontrol", 2, 0); %! assert(a.msgbytes, uint8([0xB1 122 0x00])); %! assert(a.localcontrol, 0); %! assert(a.channel, 2); %!test %! a = midimsg("polyon", 1); %! assert(isa(a, "midimsg")); %! assert(length(a) == 1); %! assert(a.type == "PolyOn"); %! assert(a.nummsgbytes, 2); %! assert(!isempty(a)); %!test %! a = midimsg("monoon", 1, 0); %! assert(isa(a, "midimsg")); %! assert(length(a) == 1); %! assert(a.type == "MonoOn"); %! assert(a.monochannels, 0); %! assert(a.nummsgbytes, 3); %! assert(!isempty(a)); %!test %! a = midimsg("omnion", 1); %! assert(isa(a, "midimsg")); %! assert(length(a) == 1); %! assert(a.type == "OmniOn"); %! assert(a.nummsgbytes, 2); %! assert(!isempty(a)); %!test %! a = midimsg("omnioff", 1); %! assert(isa(a, "midimsg")); %! assert(length(a) == 1); %! assert(a.type == "OmniOff"); %! assert(a.nummsgbytes, 2); %! assert(!isempty(a)); %!test %! a = midimsg("allsoundoff", 1); %! assert(isa(a, "midimsg")); %! assert(length(a) == 1); %! assert(a.type == "AllSoundOff"); %! assert(a.nummsgbytes, 2); %! assert(!isempty(a)); %!test %! a = midimsg("allnotesoff", 1); %! assert(isa(a, "midimsg")); %! assert(length(a) == 1); %! assert(a.type == "AllNotesOff"); %! assert(a.nummsgbytes, 2); %! assert(!isempty(a)); %!test %! a = midimsg("resetallcontrollers", 1); %! assert(isa(a, "midimsg")); %! assert(length(a) == 1); %! assert(a.type == "ResetAllControllers"); %! assert(a.nummsgbytes, 2); %! assert(!isempty(a)); %!test %! a = midimsg("systemreset"); %! assert(isa(a, "midimsg")); %! assert(length(a) == 1); %! assert(a.type == "SystemReset"); %! assert(a.nummsgbytes, 1); %! assert(!isempty(a)); %! assert(a.msgbytes, uint8([0xFF])); %!test %! a = midimsg("start"); %! assert(isa(a, "midimsg")); %! assert(length(a) == 1); %! assert(a.type == "Start"); %! assert(a.nummsgbytes, 1); %! assert(!isempty(a)); %! assert(a.msgbytes, uint8([0xFA])); %!test %! a = midimsg("stop"); %! assert(isa(a, "midimsg")); %! assert(length(a) == 1); %! assert(a.type == "Stop"); %! assert(a.nummsgbytes, 1); %! assert(!isempty(a)); %! assert(a.msgbytes, uint8([0xFC])); %!test %! a = midimsg("continue"); %! assert(isa(a, "midimsg")); %! assert(length(a) == 1); %! assert(a.type == "Continue"); %! assert(a.nummsgbytes, 1); %! assert(!isempty(a)); %! assert(a.msgbytes, uint8([0xFB])); %!test %! a = midimsg("activesensing"); %! assert(isa(a, "midimsg")); %! assert(length(a) == 1); %! assert(a.type == "ActiveSensing"); %! assert(a.nummsgbytes, 1); %! assert(!isempty(a)); %! assert(a.msgbytes, uint8([0xFE])); %!test %! a = midimsg("timingclock"); %! assert(isa(a, "midimsg")); %! assert(length(a) == 1); %! assert(a.type == "TimingClock"); %! assert(a.nummsgbytes, 1); %! assert(!isempty(a)); %! assert(a.msgbytes, uint8([0xF8])); %!test %! a = midimsg("eox"); %! assert(isa(a, "midimsg")); %! assert(length(a) == 1); %! assert(a.type == "EOX"); %! assert(a.nummsgbytes, 1); %! assert(!isempty(a)); %! assert(a.msgbytes, uint8([0xF7])); %!test %! a = midimsg("data", [1 2 3]); %! assert(isa(a, "midimsg")); %! assert(length(a) == 1); %! assert(a.type == "Data"); %! assert(a.nummsgbytes, 3); %! assert(!isempty(a)); %! assert(a.msgbytes, uint8([1 2 3])); %!test %! a = midimsg("songselect", 1); %! assert(isa(a, "midimsg")); %! assert(length(a) == 1); %! assert(a.type == "SongSelect"); %! assert(a.nummsgbytes, 2); %! assert(!isempty(a)); %! assert(a.msgbytes, uint8([0xF3 1])); %! assert(a.song, 1); %! a.song = 2; %! assert(a.song, 2); %! assert(a.msgbytes, uint8([0xF3 2])); %!test %! a = midimsg("songpositionpointer", 0); %! assert(isa(a, "midimsg")); %! assert(length(a) == 1); %! assert(a.type == "SongPositionPointer"); %! assert(a.nummsgbytes, 3); %! assert(!isempty(a)); %! assert(a.msgbytes, uint8([0xF2 0 0])); %! assert(a.songposition, 0); %! a.songposition = 1000; %! assert(a.songposition, 1000); %!test %! a = midimsg("tunerequest"); %! assert(isa(a, "midimsg")); %! assert(length(a) == 1); %! assert(a.type == "TuneRequest"); %! assert(a.nummsgbytes, 1); %! assert(!isempty(a)); %! assert(a.msgbytes, uint8([0xF6])); %!test %! a = midimsg("miditimecodequarterframe", 1, 1); %! assert(isa(a, "midimsg")); %! assert(length(a) == 1); %! assert(a.type == "MIDITimeCodeQuarterFrame"); %! assert(a.nummsgbytes, 2); %! assert(!isempty(a)); %! assert(a.msgbytes, uint8([0xF1 9])); %! assert(a.timecodesequence, 1); %! assert(a.timecodevalue, 1); %! a.timecodesequence = 5; %! assert(a.timecodesequence, 5); %! assert(a.timecodevalue, 1); %! a.timecodevalue = 2; %! assert(a.timecodesequence, 5); %! assert(a.timecodevalue, 2); %!test %! a = midimsg("systemexclusive"); %! assert(isa(a, "midimsg")); %! assert(length(a) == 1); %! assert(a.type == "SystemExclusive"); %! assert(a.nummsgbytes, 1); %! assert(!isempty(a)); %! assert(a.msgbytes, uint8([0xF0])); %! %! a = midimsg("systemexclusive", 1.0); %! assert(isa(a, "midimsg")); %! assert(length(a) == 1); %! assert(a.type == "SystemExclusive"); %! assert(a.nummsgbytes, 1); %! assert(!isempty(a)); %! assert(a.msgbytes, uint8([0xF0])); %! assert(a.timestamp, 1.0); %! %! a = midimsg("systemexclusive", [1 2 3]); %! assert(isa(a, "midimsg")); %! assert(length(a) == 3); %! assert(a.type, {"SystemExclusive", "Data", "EOX"}); %! assert(a.nummsgbytes, [1 3 1]); %! assert(!isempty(a)); %! assert(a(1).msgbytes, uint8([0xF0])); %! assert(a(1).timestamp, 0.0); %! assert(a(2).msgbytes, uint8([1 2 3])); %! assert(a(2).timestamp, 0.0); %! assert(a(3).msgbytes, uint8([0xF7])); %! assert(a(3).timestamp, 0.0); %! %! a = midimsg("systemexclusive", [1 2 3], 5); %! assert(isa(a, "midimsg")); %! assert(length(a) == 3); %! assert(a.type, {"SystemExclusive", "Data", "EOX"}); %! assert(a.nummsgbytes, [1 3 1]); %! assert(!isempty(a)); %! assert(a(1).msgbytes, uint8([0xF0])); %! assert(a(1).timestamp, 5.0); %! assert(a(2).msgbytes, uint8([1 2 3])); %! assert(a(2).timestamp, 5.0); %! assert(a(3).msgbytes, uint8([0xF7])); %! assert(a(3).timestamp, 5.0); %!test %! a = midimsg("noteon", 1, 60, 20); %! assert(isa(a, "midimsg")); %! assert(length(a) == 1); %! assert(a.type == "NoteOn"); %! assert(a.note, 60); %! assert(a.velocity, 20); %! b = midimsg("noteoff", 2, 60, 10, 5.0); %! assert(isa(b, "midimsg")); %! assert(length(b) == 1); %! assert(b.type == "NoteOff"); %! assert(b.note, 60); %! assert(b.velocity, 10); %! c = [a b]; %! assert(isa(c, "midimsg")); %! assert(length(c) == 2); %! assert(c.nummsgbytes, [3 3]); %! assert(c.channel, [1 2]); %! assert(c.note, [60 60]); %! assert(c.velocity, [20 10]); %! assert(c(1).type == "NoteOn"); %! assert(c(1).channel, 1); %! assert(c(1).note, 60); %! assert(c(1).velocity, 20); %! assert(c(2).type == "NoteOff"); %! assert(c(2).timestamp, 5.0); %! assert(c(2).channel, 2); %! assert(c(2).note, 60); %! assert(c(2).velocity, 10); %!test %! a = midimsg("metaevent", 1, "hello"); %! assert(isa(a, "midimsg")); %! assert(length(a) == 1); %! assert(a.type == "MetaEvent"); %! assert(a.metatype, 1); %! assert(a.metadata, uint8([0x68 0x65 0x6C 0x6C 0x6F])); %! assert(a.msgbytes, uint8([0xFF 0x01 0x05 0x68 0x65 0x6C 0x6C 0x6F])) %!test %! # basic assign operations %! %! a = midimsg("noteon", 1, 60, 127, 0); %! assert(length(a) == 1); %! assert(a.type == "NoteOn"); %! assert(a.channel, 1); %! assert(a.note, 60); %! assert(a.velocity, 127); %! assert(a.timestamp, 0); %! %! a.timestamp = 10; %! a.channel = 2; %! a.note = 61; %! a.velocity = 100; %! assert(a.timestamp, 10); %! assert(a.channel, 2); %! assert(a.note, 61); %! assert(a.velocity, 100); %! %! fail ("a.channel = 0;"); %! fail ("a.note = -1;"); %! fail ("a.velocity = -1;"); % %! a = midimsg("note", 1, 60, 127, 2); %! assert(length(a) == 2); %! assert(a(1).timestamp, 0); %! assert(a(2).timestamp, 2); %! assert(a(1).note, 60); %! assert(a(2).note, 60); %! assert(a(1).channel, 1); %! assert(a(2).channel, 1); %! %! a(1).timestamp = 10; %! a(2).timestamp = 20; %! fail ("a(3).timestamp = 1;"); %! a(1).channel = 11; %! a(2).channel = 12; %! a(1).note = 71; %! %! assert(a(1).timestamp, 10); %! assert(a(2).timestamp, 20); %! assert(a(1).channel, 11); %! assert(a(2).channel, 12); %! assert(a(1).note, 71); %! %! fail ("a(1) = 1;"); %! a(1) = midimsg("noteon", 1, 80, 100, 50); %! assert(length(a) == 2); %! assert(a(1).timestamp, 50); %! assert(a(1).channel, 1); %! assert(a(1).note, 80); %! assert(a(1).velocity, 100); %! %! # 2nd index still same as was %! assert(a(2).timestamp, 20); %! assert(a(2).channel, 12); %! assert(a(2).note, 60); %!test %! as = struct("RawBytes", [0x90 0x3C 0x14], "Timestamp", 10); %! a = midimsg.fromStruct(as); %! assert(length(a) == 1); %! assert(a.type == "NoteOn"); %! assert(a.channel, 1); %! assert(a.timestamp, 10); %! assert(a.msgbytes, uint8([0x90 0x3C 0x14])); %!test %! a1 = midimsg("noteon", 1, 80, 100, 5); %! a2 = midimsg("noteon", 1, 81, 100, 1); %! a3 = midimsg("noteon", 1, 82, 100, 10); %! msgs = [a1 a2 a3]; %! ts = msgs.Timestamp; %! [~, idx] = sort(ts); %! smsgs = msgs(idx); %! assert(smsgs(1).Timestamp, 1) %! assert(smsgs(2).Timestamp, 5) %! assert(smsgs(3).Timestamp, 10) %! assert(smsgs(1).Note, 81) %! assert(smsgs(2).Note, 80) %! assert(smsgs(3).Note, 82) audio-2.0.8/inst/midimsgtype.m0000644000000000000000000002177114506546342014517 0ustar0000000000000000## Copyright (C) 2020-2021 John Donoghue ## ## 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 3 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, see ## . classdef midimsgtype ## -*- texinfo -*- ## @deftypefn {} {} midimsgtype ## A midimsg type enumeration for values of the midimsg type. ## ## Enumeration values are: ## @multitable @columnfractions .2 .4 .3 ## @item Data @tab Stop @tab SongPositionPointer ## @item PolyOn @tab PolyKeyPressure @tab NoteOff ## @item EOX @tab ActiveSensing @tab SongSelect ## @item MonoOn @tab ChannelPressure @tab ControlChange ## @item TimingClock @tab SystemReset @tab AllSoundOff ## @item OmniOn @tab PitchBend @tab ProgramChange ## @item Start @tab TuneRequest @tab ResetAllControllers ## @item OmniOff @tab Undefined @tab SystemExclusive ## @item Continue @tab MIDITimeCodeQuarterFrame @tab LocalControl ## @item AllNotesOff @tab MetaEvent @tab ## @end multitable ## ## ## The enumeration value can be used instead of a string in midimsg creation. ## ## @subsubheading Examples ## Use both a string and a midimsgtype for the type parameter of a midimsg. ## @example ## @code { ## # both statements are equivalent ## msg = midimsg('NoteOn', 1, 60, 100); ## msg = midimsg(midimsgtype.NoteOn, 1, 60, 100); ## } ## @end example ## ## @seealso{midimsg} ## @end deftypefn # enumeration doesnt work yet in octave #enumeration # Stop ("Stop") #endenumeration properties (Access = private) value = ""; endproperties # dont allow external creation of objects methods (Access = public, Hidden = true) function this = midimsgtype(value) if nargin < 1 value = "Undefined"; endif enums = this.enum_names(); idx = find( cellfun(@(x) strcmpi(x, value), enums), 1); if isempty (idx) error ("Unknown enum string value"); endif this.value = enums{idx}; endfunction endmethods methods function tf = isenum(this) tf = true; endfunction function results = ismember(this, cmpvals) if nargin < 2 || !iscell(cmpvals) error ("expected cell array to check against"); endif results = 0; for idx = 1:length(cmpvals) if this == cmpvals{idx} results = 1; endif endfor endfunction function tf = eq(this, val) if isa(val, "midimsgtype") val = val.value; endif if ischar(val) == false tf = false; else tf = strcmpi(this.value, val); endif endfunction function tf = ne(this, val) tf = ! eq(this, val); endfunction function tf = strcmp(this, val) if isa(val, "midimsgtype") val = val.value; endif tf = strcmp(this.value, val); endfunction function tf = strcmpi(this, val) if isa(val, "midimsgtype") val = val.value; endif tf = strcmpi(this.value, val); endfunction function tf = strncmp(this, val) if isa(val, "midimsgtype") val = val.value; endif tf = strncmp(this.value, val); endfunction function tf = strncmpi(this, val) if isa(val, "midimsgtype") val = val.value; endif tf = strncmpi(this.value, val); endfunction function s = char(this) s = this.value; endfunction function a = disp(this) if nargout == 0 disp(this.value); else a = [this.value "\n"]; endif endfunction function display(this) printf("%s = %s\n", inputname(1), this.value); endfunction endmethods # methods we will use to fake as readonly enum values methods (Static = true) function outlst = enum_names () persistent lst = {}; if isempty(lst) #classinfo = metaclass(this) classinfo = meta.class.fromName('midimsgtype'); for i = 1:length(classinfo.MethodList) x = classinfo.MethodList{i}; # assuming captital letter static funcs are the enum values if x.Static && !x.Hidden && x.Name(1) <= 'Z' lst{end+1} = x.Name; endif endfor endif outlst = lst; endfunction function outlst = enum_values () persistent lst = {}; if isempty(lst) names = midimsgtype.enum_names(); for i = 1:length(names) lst{end+1} = eval(sprintf("midimsgtype.%s;", names{i})); endfor endif outlst = lst; endfunction function c = NoteOn() persistent v = midimsgtype("NoteOn"); c = v; endfunction function c = NoteOff() persistent v = midimsgtype("NoteOff"); c = v; endfunction function c = ControlChange() persistent v = midimsgtype("ControlChange"); c = v; endfunction function c = ProgramChange() persistent v = midimsgtype("ProgramChange"); c = v; endfunction function c = SystemExclusive() persistent v = midimsgtype("SystemExclusive"); c = v; endfunction function c = Data() persistent v = midimsgtype("Data"); c = v; endfunction function c = EOX() persistent v = midimsgtype("EOX"); c = v; endfunction function c = TimingClock() persistent v = midimsgtype("TimingClock"); c = v; endfunction function c = Start() persistent v = midimsgtype("Start"); c = v; endfunction function c = Continue() persistent v = midimsgtype("Continue"); c = v; endfunction function c = Stop() persistent v = midimsgtype("Stop"); c = v; endfunction function c = ActiveSensing() persistent v = midimsgtype("ActiveSensing"); c = v; endfunction function c = SystemReset() persistent v = midimsgtype("SystemReset"); c = v; endfunction function c = TuneRequest() persistent v = midimsgtype("TuneRequest"); c = v; endfunction function c = MIDITimeCodeQuarterFrame() persistent v = midimsgtype("MIDITimeCodeQuarterFrame"); c = v; endfunction function c = SongPositionPointer() persistent v = midimsgtype("SongPositionPointer"); c = v; endfunction function c = SongSelect() persistent v = midimsgtype("SongSelect"); c = v; endfunction function c = AllSoundOff() persistent v = midimsgtype("AllSoundOff"); c = v; endfunction function c = ResetAllControllers() persistent v = midimsgtype("ResetAllControllers"); c = v; endfunction function c = LocalControl() persistent v = midimsgtype("LocalControl"); c = v; endfunction function c = PolyOn() persistent v = midimsgtype("PolyOn"); c = v; endfunction function c = MonoOn() persistent v = midimsgtype("MonoOn"); c = v; endfunction function c = OmniOff() persistent v = midimsgtype("OmniOff"); c = v; endfunction function c = OmniOn() persistent v = midimsgtype("OmniOn"); c = v; endfunction function c = AllNotesOff() persistent v = midimsgtype("AllNotesOff"); c = v; endfunction function c = PolyKeyPressure() persistent v = midimsgtype("PolyKeyPressure"); c = v; endfunction function c = ChannelPressure() persistent v = midimsgtype("ChannelPressure"); c = v; endfunction function c = PitchBend() persistent v = midimsgtype("PitchBend"); c = v; endfunction function c = MetaEvent() persistent v = midimsgtype("MetaEvent"); c = v; endfunction function c = Undefined() persistent v = midimsgtype("Undefined"); c = v; endfunction function c = Reserved() persistent v = midimsgtype("Reserved"); c = v; endfunction endmethods endclassdef %!fail midimsg.InvalidEnumValue %!test %! t = midimsgtype.NoteOn; %! assert (class(t) == "midimsgtype"); %! c = char (t); %! assert (class(c) == "char"); %! assert (c == "NoteOn"); %!test %! t = midimsgtype.NoteOff; %! assert (isenum(t)); %!test %! t = midimsgtype.NoteOn; %! assert (t == "NoteOn"); %! assert (t == midimsgtype.NoteOn); %! assert (t != midimsgtype.NoteOff); %! assert (strcmp(midimsgtype.NoteOn, "NoteOn")); %! assert (strcmp(midimsgtype.NoteOn, midimsgtype.NoteOn)); %!test %! t = midimsgtype.NoteOn; %! assert(ismember(t, {midimsgtype.NoteOn}), 1); %! assert(ismember(t, {midimsgtype.NoteOff}), 0); %! assert(ismember(t, {midimsgtype.NoteOn, midimsgtype.NoteOff}), 1); audio-2.0.8/inst/midiread.m0000644000000000000000000000320214506546342013727 0ustar0000000000000000## Copyright (C) 2019 John Donoghue ## ## 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 3 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, see ## . ## -*- texinfo -*- ## @deftypefn {} {@var{val} =} midiread (@var{midicontrolsObj}) ## Read current values of midi controls ## ## @subsubheading Inputs ## @var{midicontrolObj} - control object created using midicontrols@* ## ## @subsubheading Outputs ## @var{val} single value or array of current values from the midi device. ## ## @subsubheading Examples ## Read current value of midicontrols with a ctrlid 2001 on the default midi device. ## @example ## ctrl = midicontrols(2001) ## val = midiread(ctrl); ## @end example ## ## Read current value of midicontrols with a ctrlid 2001 on a non default midi device. ## @example ## ctrl = midicontrols(2001, 'mididevice', 1) ## val = midiread(ctrl); ## @end example ## ## @seealso{midicontrols, midisync} ## @end deftypefn function ret = midiread (ctrlobj) if nargin < 1 || !isa (ctrlobj, "midicontrols") error ("Expected midi controls object"); endif ret = ctrlobj.recv(); endfunction audio-2.0.8/inst/midireceive.m0000644000000000000000000000412114506546342014437 0ustar0000000000000000## Copyright (C) 2019 John Donoghue ## ## 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 3 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, see ## . ## -*- texinfo -*- ## @deftypefn {} {@var{midimsg} =} midireceive (@var{dev}) ## @deftypefnx {} {@var{midimsg} =} midireceive (@var{dev}, @var{maxmsg}) ## Attempt to receive midi messages from a midi device. ## ## @subsubheading Inputs ## @var{dev} - a octave midi device opened using mididevice.@* ## @var{maxmsg} - Maximum number of messages to retrieve. If not specified, the function will attempt to get all pending.@* ## ## @subsubheading Outputs ## @var{midimsg} - a midimsg containing the messages retrieved from the device.@* ## If no messages are available, @var{midimsg} will be empty. ## ## @subsubheading Examples ## Open device 0, and poll and display read messages ## @example ## dev = mididevice(0); ## while true ## mx = midireceive(dev); ## if !isempty(mx) ## % display message ## mx ## endif ## endwhile ## @end example ## ## @seealso{mididevice, midisend} ## @end deftypefn function msg = midireceive (dev, maxmsg=0) if nargin < 1 || !isobject(dev) || !strcmp(typeinfo(dev), "octave_midi") error ("Expected midi device"); endif if nargin < 2 maxmsg = 0; endif msg = midimsg (0); [ts, data] = __midirecv__(dev); while !isempty(data) msg = [ msg midimsg.createMessage(data, ts) ]; if maxmsg > 0 maxmsg = maxmsg - 1; if maxmsg == 0 break; endif endif [ts, data] = __midirecv__(dev); endwhile endfunction audio-2.0.8/inst/midisend.m0000644000000000000000000000516114506546342013753 0ustar0000000000000000## Copyright (C) 2019 John Donoghue ## ## 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 3 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, see ## . ## -*- texinfo -*- ## @deftypefn {} {} midisend (@var{dev}, @var{msg}) ## @deftypefnx {} {} midisend (@var{dev}, ...) ## Send a midimsg to a midi device ## ## @subsubheading Inputs ## @var{dev} - midi device opened using mididevice@* ## @var{msg} - a midi message class with messages to send to the midi device@* ## If the msg isn't a midimsg class, the input data is expected to be in same format as the inputs to a midimsg object. ## ## @subsubheading Outputs ## None ## ## @subsubheading Examples ## Send a note on/off command to a opened midi device @var{dev} ## @example ## midisend(dev, midimsg("note", 1, 60, 100, 2.0)); ## @end example ## ## @seealso{midimsg, mididevice, midireceive} ## @end deftypefn function midisend (dev, varargin) if nargin < 2 error ("Expected midi device and midi message"); endif if !isobject(dev) || !strcmp(typeinfo(dev), "octave_midi") error ("Expected midi device"); endif msg = varargin{1}; # NOTE: can be an array or cell of messages too if isa (msg, "midimsg") if nargin > 2 error ("additional parameters provided after the message"); endif else # have data to make a message msg = midimsg(varargin{2:end}); endif # TODO: determine if is 'recent' or not for what timestamp to use # currently, we 'assume' that the 1st midi msg must go NOW if length(msg) > 0 timestamp = msg(1).timestamp; else timestamp = 0; endif # loop thru data and send each message for i=1:length(msg) m = msg(i); ts = m.timestamp; data = m.msgbytes; if ts < timestamp ts = timestamp - ts; endif delta = (ts - timestamp); if delta < 0 delta = 0; endif pause(delta); # if we have metaevents, dont send them length would be FF type encodedsize data if length(data) < 3 || data(1) != 0xff __midisend__(dev, ts, data); endif timestamp = timestamp + delta; endfor endfunction audio-2.0.8/inst/midisync.m0000644000000000000000000000316014506546342013773 0ustar0000000000000000## Copyright (C) 2019 John Donoghue ## ## 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 3 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, see ## . ## -*- texinfo -*- ## @deftypefn {} {} midisync (@var{midicontrolsObj}) ## @deftypefnx {} {} midisync (@var{midicontrolsObj}, @var{ctrlvalues}) ## Send the values of control object to the control, using @var{ctrlvalues} values ## if specified instead ## ## @subsubheading Inputs ## @var{midicontrolObj} - control object created using midicontrols@* ## @var{ctrlvalues} - values to send to the controls instead of initial values ## ## @subsubheading Outputs ## None ## ## @subsubheading Examples ## Send sync command to a midicontrols with a ctrlid 2001 to set a value of 1 ## @example ## ctrl = midicontrols(2001) ## midisync(ctrl, 1); ## @end example ## ## @seealso{midicontrols} ## @end deftypefn function midisync (ctrlobj, values) if nargin < 1 || !isa (ctrlobj, "midicontrols") error ("Expected midi controls object"); endif if nargin < 2 ctrlobj.send() else ctrlobj.send(values) endif endfunction audio-2.0.8/inst/private/0000755000000000000000000000000014506546342013450 5ustar0000000000000000audio-2.0.8/inst/private/getvariable.m0000644000000000000000000000203514506546342016113 0ustar0000000000000000## Copyright (C) 2019 John Donoghue ## ## 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 3 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, see ## . ## -*- texinfo -*- ## @deftypefn {} {@var{t} =} getvariable (@var{fd}) ## Private function ## @end deftypefn function t = getvariable (fd) t = uint64(0); while !feof(fd) b = fread(fd, 1, "uint8"); t = bitshift(t, 7) + bitand(b, uint64(0x7f)); if b < 128 break; endif endwhile t = double(t); endfunction audio-2.0.8/inst/private/readheader.m0000644000000000000000000000205014506546342015707 0ustar0000000000000000## Copyright (C) 2019 John Donoghue ## ## 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 3 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, see ## . ## -*- texinfo -*- ## @deftypefn {} {@var{h} =} readheader (@var{fd}) ## Private function ## @end deftypefn function h = readheader (fd) blocktype = char(fread(fd,[1 4],"char")); blocksize = fread(fd,1,"uint32",0, 'ieee-be'); h = {}; if !isempty(blocksize) h.blocksize = blocksize; h.blocktype = blocktype; endif endfunction audio-2.0.8/inst/private/setvariable.m0000644000000000000000000000235614506546342016135 0ustar0000000000000000## Copyright (C) 2019 John Donoghue ## ## 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 3 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, see ## . ## -*- texinfo -*- ## @deftypefn {} {} setvariable (@var{fd}, @var{value}) ## Private function ## @end deftypefn function setvariable (fd, value) t = uint64(value); data = []; if t < 128 v = uint8(t); fwrite(fd, v, 'uint8'); else tmp = dec2bin(t); while mod(length(tmp), 7) != 0 tmp = [ "0" tmp ]; endwhile for i=1:7:length(tmp) v = tmp(i:i+6); v = uint8(bin2dec(v)); if i < length(tmp) -7 v = 128 + v; endif fwrite(fd, v, 'uint8'); endfor endif endfunction audio-2.0.8/inst/private/writeheader.m0000644000000000000000000000170714506546342016136 0ustar0000000000000000## Copyright (C) 2019 John Donoghue ## ## 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 3 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, see ## . ## -*- texinfo -*- ## @deftypefn {} {} writeheader (@var{fd}, @var{hdr}) ## Private function ## @end deftypefn function writeheader (fd, hdr) fwrite (fd, hdr.blocktype, 'char'); fwrite (fd, hdr.blocksize, 'uint32', 0, 'ieee-be'); endfunction audio-2.0.8/src/0000755000000000000000000000000014506546342011610 5ustar0000000000000000audio-2.0.8/src/.svnignore0000644000000000000000000000003114506546342013615 0ustar0000000000000000autom4te.cache configure audio-2.0.8/src/Makefile.in0000644000000000000000000000123514506546342013656 0ustar0000000000000000MKOCTFILE := @MKOCTFILE@ CXXFLAGS := @CXXFLAGS@ @RTMIDI_CFLAGS@ @PTHREAD_CFLAGS@ @DEFS@ LIBS := @LIBS@ @RTMIDI_LIBS@ @PTHREAD_LIBS@ LDFLAGS := @LDFLAGS@ SRC := mididevinfo.cc mididevice.cc midi.cc midi_object.cc midisend.cc midirecv.cc \ midistat.cc midiflush.cc midicallback.cc pkglock.cc OBJ := $(SRC:.cc=.o) all: __midi__.oct %.o: %.cc $(MKOCTFILE) -c $< $(CXXFLAGS) __midi__.oct: $(OBJ) $(MKOCTFILE) -o __midi__.oct $(OBJ) $(LDFLAGS) $(LIBS) .PHONY: clean .PHONY: distclean .PHONY: all clean: rm -f *.o rm -f *.oct distclean: clean rm -rf autom4te.cache rm -r oct-alt-includes.h rm -f config.status config.log config.h rm -f Makefile audio-2.0.8/src/aclocal.m40000644000000000000000000003213114506546342013450 0ustar0000000000000000# generated automatically by aclocal 1.16.5 -*- Autoconf -*- # Copyright (C) 1996-2021 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # serial 11 (pkg-config-0.29.1) dnl Copyright © 2004 Scott James Remnant . dnl Copyright © 2012-2015 Dan Nicholson dnl dnl This program is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2 of the License, or dnl (at your option) any later version. dnl dnl This program is distributed in the hope that it will be useful, but dnl WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU dnl General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA dnl 02111-1307, USA. dnl dnl As a special exception to the GNU General Public License, if you dnl distribute this file as part of a program that contains a dnl configuration script generated by Autoconf, you may include it under dnl the same distribution terms that you use for the rest of that dnl program. dnl PKG_PREREQ(MIN-VERSION) dnl ----------------------- dnl Since: 0.29 dnl dnl Verify that the version of the pkg-config macros are at least dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's dnl installed version of pkg-config, this checks the developer's version dnl of pkg.m4 when generating configure. dnl dnl To ensure that this macro is defined, also add: dnl m4_ifndef([PKG_PREREQ], dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])]) dnl dnl See the "Since" comment for each macro you use to see what version dnl of the macros you require. m4_defun([PKG_PREREQ], [m4_define([PKG_MACROS_VERSION], [0.29.1]) m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1, [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])]) ])dnl PKG_PREREQ dnl PKG_PROG_PKG_CONFIG([MIN-VERSION]) dnl ---------------------------------- dnl Since: 0.16 dnl dnl Search for the pkg-config tool and set the PKG_CONFIG variable to dnl first found in the path. Checks that the version of pkg-config found dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is dnl used since that's the first version where most current features of dnl pkg-config existed. AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl ])dnl PKG_PROG_PKG_CONFIG dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) dnl ------------------------------------------------------------------- dnl Since: 0.18 dnl dnl Check to see whether a particular set of modules exists. Similar to dnl PKG_CHECK_MODULES(), but does not set variables or print errors. dnl dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) dnl only at the first occurence in configure.ac, so if the first place dnl it's called might be skipped (such as if it is within an "if", you dnl have to call PKG_CHECK_EXISTS manually AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_default([$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) dnl --------------------------------------------- dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting dnl pkg_failed based on the result. m4_define([_PKG_CONFIG], [if test -n "$$1"; then pkg_cv_[]$1="$$1" elif test -n "$PKG_CONFIG"; then PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes ], [pkg_failed=yes]) else pkg_failed=untried fi[]dnl ])dnl _PKG_CONFIG dnl _PKG_SHORT_ERRORS_SUPPORTED dnl --------------------------- dnl Internal check to see if pkg-config supports short errors. AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi[]dnl ])dnl _PKG_SHORT_ERRORS_SUPPORTED dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], dnl [ACTION-IF-NOT-FOUND]) dnl -------------------------------------------------------------- dnl Since: 0.4.0 dnl dnl Note that if there is a possibility the first call to dnl PKG_CHECK_MODULES might not happen, you should be sure to include an dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no AC_MSG_CHECKING([for $1]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then AC_MSG_RESULT([no]) _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` else $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD m4_default([$4], [AC_MSG_ERROR( [Package requirements ($2) were not met: $$1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. _PKG_TEXT])[]dnl ]) elif test $pkg_failed = untried; then AC_MSG_RESULT([no]) m4_default([$4], [AC_MSG_FAILURE( [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. _PKG_TEXT To get pkg-config, see .])[]dnl ]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) $3 fi[]dnl ])dnl PKG_CHECK_MODULES dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], dnl [ACTION-IF-NOT-FOUND]) dnl --------------------------------------------------------------------- dnl Since: 0.29 dnl dnl Checks for existence of MODULES and gathers its build flags with dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags dnl and VARIABLE-PREFIX_LIBS from --libs. dnl dnl Note that if there is a possibility the first call to dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to dnl include an explicit call to PKG_PROG_PKG_CONFIG in your dnl configure.ac. AC_DEFUN([PKG_CHECK_MODULES_STATIC], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl _save_PKG_CONFIG=$PKG_CONFIG PKG_CONFIG="$PKG_CONFIG --static" PKG_CHECK_MODULES($@) PKG_CONFIG=$_save_PKG_CONFIG[]dnl ])dnl PKG_CHECK_MODULES_STATIC dnl PKG_INSTALLDIR([DIRECTORY]) dnl ------------------------- dnl Since: 0.27 dnl dnl Substitutes the variable pkgconfigdir as the location where a module dnl should install pkg-config .pc files. By default the directory is dnl $libdir/pkgconfig, but the default can be changed by passing dnl DIRECTORY. The user can override through the --with-pkgconfigdir dnl parameter. AC_DEFUN([PKG_INSTALLDIR], [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) m4_pushdef([pkg_description], [pkg-config installation directory @<:@]pkg_default[@:>@]) AC_ARG_WITH([pkgconfigdir], [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, [with_pkgconfigdir=]pkg_default) AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) m4_popdef([pkg_default]) m4_popdef([pkg_description]) ])dnl PKG_INSTALLDIR dnl PKG_NOARCH_INSTALLDIR([DIRECTORY]) dnl -------------------------------- dnl Since: 0.27 dnl dnl Substitutes the variable noarch_pkgconfigdir as the location where a dnl module should install arch-independent pkg-config .pc files. By dnl default the directory is $datadir/pkgconfig, but the default can be dnl changed by passing DIRECTORY. The user can override through the dnl --with-noarch-pkgconfigdir parameter. AC_DEFUN([PKG_NOARCH_INSTALLDIR], [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) m4_pushdef([pkg_description], [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) AC_ARG_WITH([noarch-pkgconfigdir], [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, [with_noarch_pkgconfigdir=]pkg_default) AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) m4_popdef([pkg_default]) m4_popdef([pkg_description]) ])dnl PKG_NOARCH_INSTALLDIR dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) dnl ------------------------------------------- dnl Since: 0.28 dnl dnl Retrieves the value of the pkg-config variable for the given module. AC_DEFUN([PKG_CHECK_VAR], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl _PKG_CONFIG([$1], [variable="][$3]["], [$2]) AS_VAR_COPY([$1], [pkg_cv_][$1]) AS_VAR_IF([$1], [""], [$5], [$4])dnl ])dnl PKG_CHECK_VAR dnl PKG_WITH_MODULES(VARIABLE-PREFIX, MODULES, dnl [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND], dnl [DESCRIPTION], [DEFAULT]) dnl ------------------------------------------ dnl dnl Prepare a "--with-" configure option using the lowercase dnl [VARIABLE-PREFIX] name, merging the behaviour of AC_ARG_WITH and dnl PKG_CHECK_MODULES in a single macro. AC_DEFUN([PKG_WITH_MODULES], [ m4_pushdef([with_arg], m4_tolower([$1])) m4_pushdef([description], [m4_default([$5], [build with ]with_arg[ support])]) m4_pushdef([def_arg], [m4_default([$6], [auto])]) m4_pushdef([def_action_if_found], [AS_TR_SH([with_]with_arg)=yes]) m4_pushdef([def_action_if_not_found], [AS_TR_SH([with_]with_arg)=no]) m4_case(def_arg, [yes],[m4_pushdef([with_without], [--without-]with_arg)], [m4_pushdef([with_without],[--with-]with_arg)]) AC_ARG_WITH(with_arg, AS_HELP_STRING(with_without, description[ @<:@default=]def_arg[@:>@]),, [AS_TR_SH([with_]with_arg)=def_arg]) AS_CASE([$AS_TR_SH([with_]with_arg)], [yes],[PKG_CHECK_MODULES([$1],[$2],$3,$4)], [auto],[PKG_CHECK_MODULES([$1],[$2], [m4_n([def_action_if_found]) $3], [m4_n([def_action_if_not_found]) $4])]) m4_popdef([with_arg]) m4_popdef([description]) m4_popdef([def_arg]) ])dnl PKG_WITH_MODULES dnl PKG_HAVE_WITH_MODULES(VARIABLE-PREFIX, MODULES, dnl [DESCRIPTION], [DEFAULT]) dnl ----------------------------------------------- dnl dnl Convenience macro to trigger AM_CONDITIONAL after PKG_WITH_MODULES dnl check._[VARIABLE-PREFIX] is exported as make variable. AC_DEFUN([PKG_HAVE_WITH_MODULES], [ PKG_WITH_MODULES([$1],[$2],,,[$3],[$4]) AM_CONDITIONAL([HAVE_][$1], [test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"]) ])dnl PKG_HAVE_WITH_MODULES dnl PKG_HAVE_DEFINE_WITH_MODULES(VARIABLE-PREFIX, MODULES, dnl [DESCRIPTION], [DEFAULT]) dnl ------------------------------------------------------ dnl dnl Convenience macro to run AM_CONDITIONAL and AC_DEFINE after dnl PKG_WITH_MODULES check. HAVE_[VARIABLE-PREFIX] is exported as make dnl and preprocessor variable. AC_DEFUN([PKG_HAVE_DEFINE_WITH_MODULES], [ PKG_HAVE_WITH_MODULES([$1],[$2],[$3],[$4]) AS_IF([test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"], [AC_DEFINE([HAVE_][$1], 1, [Enable ]m4_tolower([$1])[ support])]) ])dnl PKG_HAVE_DEFINE_WITH_MODULES m4_include([m4/ax_pthread.m4]) m4_include([m4/octave-forge.m4]) audio-2.0.8/src/bootstrap0000755000000000000000000000034414506546342013554 0ustar0000000000000000#!/bin/bash ## Octave-Forge: video package bootstrap script ## Run this to generate the configure script set -e # halt if unhandled error aclocal autoconf # generate configure script autoheader -f rm -rf autom4te.cache audio-2.0.8/src/config.guess0000755000000000000000000012367214506546342014143 0ustar0000000000000000#! /bin/sh # Attempt to guess a canonical system name. # Copyright 1992-2015 Free Software Foundation, Inc. timestamp='2015-01-01' # This file 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 3 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, see . # # 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. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. # # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD # # Please send patches to . me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright 1992-2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown case "${UNAME_SYSTEM}" in Linux|GNU|GNU/*) # If the system lacks a compiler, then just pick glibc. # We could probably try harder. LIBC=gnu eval $set_cc_for_build cat <<-EOF > $dummy.c #include #if defined(__UCLIBC__) LIBC=uclibc #elif defined(__dietlibc__) LIBC=dietlibc #else LIBC=gnu #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` ;; esac # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ELF__ then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit ;; *:Bitrig:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` # Reset EXIT trap before exiting to avoid spurious non-zero exit code. exitcode=$? trap '' 0 exit $exitcode ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm*:riscos:*:*|arm*:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; s390x:SunOS:*:*) echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) echo i386-pc-auroraux${UNAME_RELEASE} exit ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) eval $set_cc_for_build SUN_ARCH="i386" # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH="x86_64" fi fi echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ [ ${TARGET_BINARY_INTERFACE}x = x ] then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit ;; *:AIX:*:[4567]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/lslpp ] ; then IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 esac ;; esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | grep -q __LP64__ then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) UNAME_PROCESSOR=`/usr/bin/uname -p` case ${UNAME_PROCESSOR} in amd64) echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; *:MINGW64*:*) echo ${UNAME_MACHINE}-pc-mingw64 exit ;; *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; *:MSYS*:*) echo ${UNAME_MACHINE}-pc-msys exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; *:Interix*:*) case ${UNAME_MACHINE} in x86) echo i586-pc-interix${UNAME_RELEASE} exit ;; authenticamd | genuineintel | EM64T) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; IA64) echo ia64-unknown-interix${UNAME_RELEASE} exit ;; esac ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; 8664:Windows_NT:*) echo x86_64-pc-mks exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; aarch64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; aarch64_be:Linux:*:*) UNAME_MACHINE=aarch64_be echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep -q ld.so.1 if test "$?" = 0 ; then LIBC="gnulibc1" ; fi echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; arc:Linux:*:* | arceb:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; arm*:Linux:*:*) eval $set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then echo ${UNAME_MACHINE}-unknown-linux-${LIBC} else if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi else echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf fi fi exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; cris:Linux:*:*) echo ${UNAME_MACHINE}-axis-linux-${LIBC} exit ;; crisv32:Linux:*:*) echo ${UNAME_MACHINE}-axis-linux-${LIBC} exit ;; frv:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; hexagon:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; i*86:Linux:*:*) echo ${UNAME_MACHINE}-pc-linux-${LIBC} exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; mips:Linux:*:* | mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef ${UNAME_MACHINE} #undef ${UNAME_MACHINE}el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=${UNAME_MACHINE}el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=${UNAME_MACHINE} #else CPU= #endif #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } ;; openrisc*:Linux:*:*) echo or1k-unknown-linux-${LIBC} exit ;; or32:Linux:*:* | or1k*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; padre:Linux:*:*) echo sparc-unknown-linux-${LIBC} exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-${LIBC} exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; *) echo hppa-unknown-linux-${LIBC} ;; esac exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-${LIBC} exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-${LIBC} exit ;; ppc64le:Linux:*:*) echo powerpc64le-unknown-linux-${LIBC} exit ;; ppcle:Linux:*:*) echo powerpcle-unknown-linux-${LIBC} exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux-${LIBC} exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; tile*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-${LIBC} exit ;; x86_64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; xtensa*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 exit ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i586. # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configury will decide that # this is a cross-build. echo i586-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; BePC:Haiku:*:*) # Haiku running on Intel PC compatible. echo i586-pc-haiku exit ;; x86_64:Haiku:*:*) echo x86_64-unknown-haiku exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; SX-7:SUPER-UX:*:*) echo sx7-nec-superux${UNAME_RELEASE} exit ;; SX-8:SUPER-UX:*:*) echo sx8-nec-superux${UNAME_RELEASE} exit ;; SX-8R:SUPER-UX:*:*) echo sx8r-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown eval $set_cc_for_build if test "$UNAME_PROCESSOR" = unknown ; then UNAME_PROCESSOR=powerpc fi if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then case $UNAME_PROCESSOR in i386) UNAME_PROCESSOR=x86_64 ;; powerpc) UNAME_PROCESSOR=powerpc64 ;; esac fi fi elif test "$UNAME_PROCESSOR" = i386 ; then # Avoid executing cc on OS X 10.9, as it ships with a stub # that puts up a graphical alert prompting to install # developer tools. Any system running Mac OS X 10.7 or # later (Darwin 11 and later) is required to have a 64-bit # processor. This is not true of the ARM version of Darwin # that Apple uses in portable devices. UNAME_PROCESSOR=x86_64 fi echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NEO-?:NONSTOP_KERNEL:*:*) echo neo-tandem-nsk${UNAME_RELEASE} exit ;; NSE-*:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; i*86:AROS:*:*) echo ${UNAME_MACHINE}-pc-aros exit ;; x86_64:VMkernel:*:*) echo ${UNAME_MACHINE}-unknown-esx exit ;; esac cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: audio-2.0.8/src/config.h.in0000644000000000000000000000315214506546342013634 0ustar0000000000000000/* config.h.in. Generated from configure.ac by autoheader. */ #include "undef-ah-octave.h" /* has some kid of execution_exception message field */ #undef HAS_OCTAVE_EXCEPTION_MESSAGE /* Define if you have POSIX threads libraries and header files. */ #undef HAVE_PTHREAD /* Have PTHREAD_PRIO_INHERIT. */ #undef HAVE_PTHREAD_PRIO_INHERIT /* Define to 1 to use the rtmidi library. */ #undef HAVE_RTMIDI /* have the RtMidi::getApiName function */ #undef HAVE_RTMIDI_GETAPINAME /* macro for alternative Octave symbols */ #undef OCTAVE_BASE_CLASS /* execution_exception message field */ #undef OCTAVE_EXCEPTION_MESSAGE /* macro for alternative Octave symbols */ #undef OCTAVE_EXECUTION_EXCEPTION /* macro for alternative Octave symbols */ #undef OCTAVE__FEVAL /* octave_base_value ref count field */ #undef OV_COUNT /* macro for alternative Octave symbols */ #undef OV_ISCELL /* macro for alternative Octave symbols */ #undef OV_ISFLOAT /* macro for alternative Octave symbols */ #undef OV_ISINTEGER /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the home page for this package. */ #undef PACKAGE_URL /* Define to the version of this package. */ #undef PACKAGE_VERSION /* Define to necessary symbol if this constant uses a non-standard name on your system. */ #undef PTHREAD_CREATE_JOINABLE #include "oct-alt-includes.h" audio-2.0.8/src/config.sub0000755000000000000000000010624614506546342013604 0ustar0000000000000000#! /bin/sh # Configuration validation subroutine script. # Copyright 1992-2015 Free Software Foundation, Inc. timestamp='2015-01-01' # This file 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 3 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, see . # # 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. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # Please send patches to . # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS $0 [OPTION] ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright 1992-2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo $1 exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ knetbsd*-gnu* | netbsd*-gnu* | \ kopensolaris*-gnu* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; android-linux) os=-linux-android basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis | -knuth | -cray | -microblaze*) os= basic_machine=$1 ;; -bluegene*) os=-cnk ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*178) os=-lynxos178 ;; -lynx*5) os=-lynxos5 ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ | aarch64 | aarch64_be \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ | arc | arceb \ | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ | avr | avr32 \ | be32 | be64 \ | bfin \ | c4x | c8051 | clipper \ | d10v | d30v | dlx | dsp16xx \ | epiphany \ | fido | fr30 | frv | ft32 \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | hexagon \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | k1om \ | le32 | le64 \ | lm32 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64octeon | mips64octeonel \ | mips64orion | mips64orionel \ | mips64r5900 | mips64r5900el \ | mips64vr | mips64vrel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa32r6 | mipsisa32r6el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64r6 | mipsisa64r6el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipsr5900 | mipsr5900el \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | moxie \ | mt \ | msp430 \ | nds32 | nds32le | nds32be \ | nios | nios2 | nios2eb | nios2el \ | ns16k | ns32k \ | open8 | or1k | or1knd | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle \ | pyramid \ | riscv32 | riscv64 \ | rl78 | rx \ | score \ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu \ | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ | ubicom32 \ | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ | visium \ | we32k \ | x86 | xc16x | xstormy16 | xtensa \ | z8k | z80) basic_machine=$basic_machine-unknown ;; c54x) basic_machine=tic54x-unknown ;; c55x) basic_machine=tic55x-unknown ;; c6x) basic_machine=tic6x-unknown ;; leon|leon[3-9]) basic_machine=sparc-$basic_machine ;; m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip) basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; ms1) basic_machine=mt-unknown ;; strongarm | thumb | xscale) basic_machine=arm-unknown ;; xgate) basic_machine=$basic_machine-unknown os=-none ;; xscaleeb) basic_machine=armeb-unknown ;; xscaleel) basic_machine=armel-unknown ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | aarch64-* | aarch64_be-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | be32-* | be64-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* \ | c8051-* | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | hexagon-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | k1om-* \ | le32-* | le64-* \ | lm32-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ | microblaze-* | microblazeel-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64octeon-* | mips64octeonel-* \ | mips64orion-* | mips64orionel-* \ | mips64r5900-* | mips64r5900el-* \ | mips64vr-* | mips64vrel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa32r6-* | mipsisa32r6el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64r6-* | mipsisa64r6el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipsr5900-* | mipsr5900el-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nds32-* | nds32le-* | nds32be-* \ | nios-* | nios2-* | nios2eb-* | nios2el-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | open8-* \ | or1k*-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ | pyramid-* \ | rl78-* | romp-* | rs6000-* | rx-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ | tahoe-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tile*-* \ | tron-* \ | ubicom32-* \ | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ | vax-* \ | visium-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* \ | xstormy16-* | xtensa*-* \ | ymp-* \ | z8k-* | z80-*) ;; # Recognize the basic CPU types without company name, with glob match. xtensa*) basic_machine=$basic_machine-unknown ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) basic_machine=i386-unknown os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; abacus) basic_machine=abacus-unknown ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aros) basic_machine=i386-pc os=-aros ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; blackfin) basic_machine=bfin-unknown os=-linux ;; blackfin-*) basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; bluegene*) basic_machine=powerpc-ibm os=-cnk ;; c54x-*) basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c55x-*) basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c6x-*) basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c90) basic_machine=c90-cray os=-unicos ;; cegcc) basic_machine=arm-unknown os=-cegcc ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16 | cr16-*) basic_machine=cr16-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; dicos) basic_machine=i686-pc os=-dicos ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; leon-*|leon[3-9]-*) basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'` ;; m68knommu) basic_machine=m68k-unknown os=-linux ;; m68knommu-*) basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; microblaze*) basic_machine=microblaze-xilinx ;; mingw64) basic_machine=x86_64-pc os=-mingw64 ;; mingw32) basic_machine=i686-pc os=-mingw32 ;; mingw32ce) basic_machine=arm-unknown os=-mingw32ce ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; moxiebox) basic_machine=moxie-unknown os=-moxiebox ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; msys) basic_machine=i686-pc os=-msys ;; mvs) basic_machine=i370-ibm os=-mvs ;; nacl) basic_machine=le32-unknown os=-nacl ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; neo-tandem) basic_machine=neo-tandem ;; nse-tandem) basic_machine=nse-tandem ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; parisc) basic_machine=hppa-unknown os=-linux ;; parisc-*) basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc | ppcbe) basic_machine=powerpc-unknown ;; ppc-* | ppcbe-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-* | ppc64p7-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little | ppc64-le | powerpc64-little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rdos | rdos64) basic_machine=x86_64-pc os=-rdos ;; rdos32) basic_machine=i386-pc os=-rdos ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sde) basic_machine=mipsisa32-sde os=-elf ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh5el) basic_machine=sh5le-unknown ;; sh64) basic_machine=sh64-unknown ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; strongarm-* | thumb-*) basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tile*) basic_machine=$basic_machine-unknown os=-linux-gnu ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; v810 | necv810) basic_machine=v810-nec os=-none ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; w65*) basic_machine=w65-wdc os=-none ;; w89k-*) basic_machine=hppa1.1-winbond os=-proelf ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; xscale-* | xscalee[bl]-*) basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; z80-*-coff) basic_machine=z80-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; mmix) basic_machine=mmix-knuth ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -auroraux) os=-auroraux ;; -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ | -sym* | -kopensolaris* | -plan9* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* | -aros* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -bitrig* | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* | -cegcc* \ | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ | -linux-newlib* | -linux-musl* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -zvmoe) os=-zvmoe ;; -dicos*) os=-dicos ;; -nacl*) ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in score-*) os=-elf ;; spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; c8051-*) os=-elf ;; hexagon-*) os=-elf ;; tic54x-*) os=-coff ;; tic55x-*) os=-coff ;; tic6x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 ;; m68*-cisco) os=-aout ;; mep-*) os=-elf ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -cnk*|-aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: audio-2.0.8/src/configure0000755000000000000000000062626514506546342013540 0ustar0000000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.71 for octave audio package 2.0.8. # # # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, # Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh as_nop=: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else $as_nop case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi # Reset variables that may have inherited troublesome values from # the environment. # IFS needs to be set, to space, tab, and newline, in precisely that order. # (If _AS_PATH_WALK were called with IFS unset, it would have the # side effect of setting IFS to empty, thus disabling word splitting.) # Quoting is to prevent editors from complaining about space-tab. as_nl=' ' export as_nl IFS=" "" $as_nl" PS1='$ ' PS2='> ' PS4='+ ' # Ensure predictable behavior from utilities with locale-dependent output. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # We cannot yet rely on "unset" to work, but we need these variables # to be unset--not just set to an empty or harmless value--now, to # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct # also avoids known problems related to "unset" and subshell syntax # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH do eval test \${$as_var+y} \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done # Ensure that fds 0, 1, and 2 are open. if (exec 3>&0) 2>/dev/null; then :; else exec 0&1) 2>/dev/null; then :; else exec 1>/dev/null; fi if (exec 3>&2) ; then :; else exec 2>/dev/null; fi # The user is always right. if ${PATH_SEPARATOR+false} :; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac test -r "$as_dir$0" && as_myself=$as_dir$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="as_nop=: if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else \$as_nop case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ) then : else \$as_nop exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 blah=\$(echo \$(echo blah)) test x\"\$blah\" = xblah || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null then : as_have_required=yes else $as_nop as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null then : else $as_nop as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null then : CONFIG_SHELL=$as_shell as_have_required=yes if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null then : break 2 fi fi done;; esac as_found=false done IFS=$as_save_IFS if $as_found then : else $as_nop if { test -f "$SHELL" || test -f "$SHELL.exe"; } && as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null then : CONFIG_SHELL=$SHELL as_have_required=yes fi fi if test "x$CONFIG_SHELL" != x then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno then : printf "%s\n" "$0: This script requires a shell more modern than all" printf "%s\n" "$0: the shells that I found on your system." if test ${ZSH_VERSION+y} ; then printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." else printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system, $0: including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_nop # --------- # Do nothing but, unlike ":", preserve the value of $?. as_fn_nop () { return $? } as_nop=as_fn_nop # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null then : eval 'as_fn_append () { eval $1+=\$2 }' else $as_nop as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null then : eval 'as_fn_arith () { as_val=$(( $* )) }' else $as_nop as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_nop # --------- # Do nothing but, unlike ":", preserve the value of $?. as_fn_nop () { return $? } as_nop=as_fn_nop # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi printf "%s\n" "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } # Determine whether it's possible to make 'echo' print without a newline. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed # for compatibility with existing Makefiles. ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac # For backward compatibility with old third-party macros, we provide # the shell variables $as_echo and $as_echo_n. New code should use # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. as_echo='printf %s\n' as_echo_n='printf %s' rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME='octave audio package' PACKAGE_TARNAME='octave-audio-package' PACKAGE_VERSION='2.0.8' PACKAGE_STRING='octave audio package 2.0.8' PACKAGE_BUGREPORT='' PACKAGE_URL='' ac_subst_vars='LTLIBOBJS LIBOBJS PTHREAD_CFLAGS PTHREAD_LIBS PTHREAD_CXX PTHREAD_CC ax_pthread_config EGREP GREP CPP ac_ct_CC CFLAGS CC RTMIDI_LIBS RTMIDI_CFLAGS PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG MKOCTFILE OBJEXT EXEEXT ac_ct_CXX CPPFLAGS LDFLAGS CXXFLAGS CXX SED target_os target_vendor target_cpu target host_os host_vendor host_cpu host build_os build_vendor build_cpu build target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir runstatedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking ' ac_precious_vars='build_alias host_alias target_alias CXX CXXFLAGS LDFLAGS LIBS CPPFLAGS CCC PKG_CONFIG PKG_CONFIG_PATH PKG_CONFIG_LIBDIR RTMIDI_CFLAGS RTMIDI_LIBS CC CFLAGS CPP' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' runstatedir='${localstatedir}/run' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -runstatedir | --runstatedir | --runstatedi | --runstated \ | --runstate | --runstat | --runsta | --runst | --runs \ | --run | --ru | --r) ac_prev=runstatedir ;; -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | --run=* | --ru=* | --r=*) runstatedir=$ac_optarg ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir runstatedir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures octave audio package 2.0.8 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/octave-audio-package] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] --target=TARGET configure for building compilers for TARGET [HOST] _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of octave audio package 2.0.8:";; esac cat <<\_ACEOF Some influential environment variables: CXX C++ compiler command CXXFLAGS C++ compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory PKG_CONFIG path to pkg-config utility PKG_CONFIG_PATH directories to add to pkg-config's search path PKG_CONFIG_LIBDIR path overriding pkg-config's built-in search path RTMIDI_CFLAGS C compiler flags for RTMIDI, overriding pkg-config RTMIDI_LIBS linker flags for RTMIDI, overriding pkg-config CC C compiler command CFLAGS C compiler flags CPP C preprocessor Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to the package provider. _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for configure.gnu first; this name is used for a wrapper for # Metaconfig's "Configure" on case-insensitive file systems. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF octave audio package configure 2.0.8 generated by GNU Autoconf 2.71 Copyright (C) 2021 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_cxx_try_compile LINENO # ---------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest.beam if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext then : ac_retval=0 else $as_nop printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_compile # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest.beam if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext then : ac_retval=0 else $as_nop printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext } then : ac_retval=0 else $as_nop printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_c_try_cpp LINENO # ---------------------- # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err } then : ac_retval=0 else $as_nop printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_cpp ac_configure_args_raw= for ac_arg do case $ac_arg in *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append ac_configure_args_raw " '$ac_arg'" done case $ac_configure_args_raw in *$as_nl*) ac_safe_unquote= ;; *) ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. ac_unsafe_a="$ac_unsafe_z#~" ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; esac cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by octave audio package $as_me 2.0.8, which was generated by GNU Autoconf 2.71. Invocation command line was $ $0$ac_configure_args_raw _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac printf "%s\n" "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Sanitize IFS. IFS=" "" $as_nl" # Save into config.log some information that might help in debugging. { echo printf "%s\n" "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo printf "%s\n" "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac printf "%s\n" "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then printf "%s\n" "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac printf "%s\n" "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then printf "%s\n" "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && printf "%s\n" "$as_me: caught signal $ac_signal" printf "%s\n" "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h printf "%s\n" "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. if test -n "$CONFIG_SITE"; then ac_site_files="$CONFIG_SITE" elif test "x$prefix" != xNONE; then ac_site_files="$prefix/share/config.site $prefix/etc/config.site" else ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi for ac_site_file in $ac_site_files do case $ac_site_file in #( */*) : ;; #( *) : ac_site_file=./$ac_site_file ;; esac if test -f "$ac_site_file" && test -r "$ac_site_file"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Test code for whether the C++ compiler supports C++98 (global declarations) ac_cxx_conftest_cxx98_globals=' // Does the compiler advertise C++98 conformance? #if !defined __cplusplus || __cplusplus < 199711L # error "Compiler does not advertise C++98 conformance" #endif // These inclusions are to reject old compilers that // lack the unsuffixed header files. #include #include // and are *not* freestanding headers in C++98. extern void assert (int); namespace std { extern int strcmp (const char *, const char *); } // Namespaces, exceptions, and templates were all added after "C++ 2.0". using std::exception; using std::strcmp; namespace { void test_exception_syntax() { try { throw "test"; } catch (const char *s) { // Extra parentheses suppress a warning when building autoconf itself, // due to lint rules shared with more typical C programs. assert (!(strcmp) (s, "test")); } } template struct test_template { T const val; explicit test_template(T t) : val(t) {} template T add(U u) { return static_cast(u) + val; } }; } // anonymous namespace ' # Test code for whether the C++ compiler supports C++98 (body of main) ac_cxx_conftest_cxx98_main=' assert (argc); assert (! argv[0]); { test_exception_syntax (); test_template tt (2.0); assert (tt.add (4) == 6.0); assert (true && !false); } ' # Test code for whether the C++ compiler supports C++11 (global declarations) ac_cxx_conftest_cxx11_globals=' // Does the compiler advertise C++ 2011 conformance? #if !defined __cplusplus || __cplusplus < 201103L # error "Compiler does not advertise C++11 conformance" #endif namespace cxx11test { constexpr int get_val() { return 20; } struct testinit { int i; double d; }; class delegate { public: delegate(int n) : n(n) {} delegate(): delegate(2354) {} virtual int getval() { return this->n; }; protected: int n; }; class overridden : public delegate { public: overridden(int n): delegate(n) {} virtual int getval() override final { return this->n * 2; } }; class nocopy { public: nocopy(int i): i(i) {} nocopy() = default; nocopy(const nocopy&) = delete; nocopy & operator=(const nocopy&) = delete; private: int i; }; // for testing lambda expressions template Ret eval(Fn f, Ret v) { return f(v); } // for testing variadic templates and trailing return types template auto sum(V first) -> V { return first; } template auto sum(V first, Args... rest) -> V { return first + sum(rest...); } } ' # Test code for whether the C++ compiler supports C++11 (body of main) ac_cxx_conftest_cxx11_main=' { // Test auto and decltype auto a1 = 6538; auto a2 = 48573953.4; auto a3 = "String literal"; int total = 0; for (auto i = a3; *i; ++i) { total += *i; } decltype(a2) a4 = 34895.034; } { // Test constexpr short sa[cxx11test::get_val()] = { 0 }; } { // Test initializer lists cxx11test::testinit il = { 4323, 435234.23544 }; } { // Test range-based for int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; for (auto &x : array) { x += 23; } } { // Test lambda expressions using cxx11test::eval; assert (eval ([](int x) { return x*2; }, 21) == 42); double d = 2.0; assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); assert (d == 5.0); assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); assert (d == 5.0); } { // Test use of variadic templates using cxx11test::sum; auto a = sum(1); auto b = sum(1, 2); auto c = sum(1.0, 2.0, 3.0); } { // Test constructor delegation cxx11test::delegate d1; cxx11test::delegate d2(); cxx11test::delegate d3(45); } { // Test override and final cxx11test::overridden o1(55464); } { // Test nullptr char *c = nullptr; } { // Test template brackets test_template<::test_template> v(test_template(12)); } { // Unicode literals char const *utf8 = u8"UTF-8 string \u2500"; char16_t const *utf16 = u"UTF-8 string \u2500"; char32_t const *utf32 = U"UTF-32 string \u2500"; } ' # Test code for whether the C compiler supports C++11 (complete). ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} ${ac_cxx_conftest_cxx11_globals} int main (int argc, char **argv) { int ok = 0; ${ac_cxx_conftest_cxx98_main} ${ac_cxx_conftest_cxx11_main} return ok; } " # Test code for whether the C compiler supports C++98 (complete). ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} int main (int argc, char **argv) { int ok = 0; ${ac_cxx_conftest_cxx98_main} return ok; } " # Test code for whether the C compiler supports C89 (global declarations) ac_c_conftest_c89_globals=' /* Does the compiler advertise C89 conformance? Do not test the value of __STDC__, because some compilers set it to 0 while being otherwise adequately conformant. */ #if !defined __STDC__ # error "Compiler does not advertise C89 conformance" #endif #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ struct buf { int x; }; struct buf * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not \xHH hex character constants. These do not provoke an error unfortunately, instead are silently treated as an "x". The following induces an error, until -std is added to get proper ANSI mode. Curiously \x00 != x always comes out true, for an array size at least. It is necessary to write \x00 == 0 to get something that is true only with -std. */ int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) '\''x'\'' int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), int, int);' # Test code for whether the C compiler supports C89 (body of main). ac_c_conftest_c89_main=' ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); ' # Test code for whether the C compiler supports C99 (global declarations) ac_c_conftest_c99_globals=' // Does the compiler advertise C99 conformance? #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L # error "Compiler does not advertise C99 conformance" #endif #include extern int puts (const char *); extern int printf (const char *, ...); extern int dprintf (int, const char *, ...); extern void *malloc (size_t); // Check varargs macros. These examples are taken from C99 6.10.3.5. // dprintf is used instead of fprintf to avoid needing to declare // FILE and stderr. #define debug(...) dprintf (2, __VA_ARGS__) #define showlist(...) puts (#__VA_ARGS__) #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) static void test_varargs_macros (void) { int x = 1234; int y = 5678; debug ("Flag"); debug ("X = %d\n", x); showlist (The first, second, and third items.); report (x>y, "x is %d but y is %d", x, y); } // Check long long types. #define BIG64 18446744073709551615ull #define BIG32 4294967295ul #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) #if !BIG_OK #error "your preprocessor is broken" #endif #if BIG_OK #else #error "your preprocessor is broken" #endif static long long int bignum = -9223372036854775807LL; static unsigned long long int ubignum = BIG64; struct incomplete_array { int datasize; double data[]; }; struct named_init { int number; const wchar_t *name; double average; }; typedef const char *ccp; static inline int test_restrict (ccp restrict text) { // See if C++-style comments work. // Iterate through items via the restricted pointer. // Also check for declarations in for loops. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) continue; return 0; } // Check varargs and va_copy. static bool test_varargs (const char *format, ...) { va_list args; va_start (args, format); va_list args_copy; va_copy (args_copy, args); const char *str = ""; int number = 0; float fnumber = 0; while (*format) { switch (*format++) { case '\''s'\'': // string str = va_arg (args_copy, const char *); break; case '\''d'\'': // int number = va_arg (args_copy, int); break; case '\''f'\'': // float fnumber = va_arg (args_copy, double); break; default: break; } } va_end (args_copy); va_end (args); return *str && number && fnumber; } ' # Test code for whether the C compiler supports C99 (body of main). ac_c_conftest_c99_main=' // Check bool. _Bool success = false; success |= (argc != 0); // Check restrict. if (test_restrict ("String literal") == 0) success = true; char *restrict newvar = "Another string"; // Check varargs. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); test_varargs_macros (); // Check flexible array members. struct incomplete_array *ia = malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); ia->datasize = 10; for (int i = 0; i < ia->datasize; ++i) ia->data[i] = i * 1.234; // Check named initializers. struct named_init ni = { .number = 34, .name = L"Test wide string", .average = 543.34343, }; ni.number = 58; int dynamic_array[ni.number]; dynamic_array[0] = argv[0][0]; dynamic_array[ni.number - 1] = 543; // work around unused variable warnings ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' || dynamic_array[ni.number - 1] != 543); ' # Test code for whether the C compiler supports C11 (global declarations) ac_c_conftest_c11_globals=' // Does the compiler advertise C11 conformance? #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L # error "Compiler does not advertise C11 conformance" #endif // Check _Alignas. char _Alignas (double) aligned_as_double; char _Alignas (0) no_special_alignment; extern char aligned_as_int; char _Alignas (0) _Alignas (int) aligned_as_int; // Check _Alignof. enum { int_alignment = _Alignof (int), int_array_alignment = _Alignof (int[100]), char_alignment = _Alignof (char) }; _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); // Check _Noreturn. int _Noreturn does_not_return (void) { for (;;) continue; } // Check _Static_assert. struct test_static_assert { int x; _Static_assert (sizeof (int) <= sizeof (long int), "_Static_assert does not work in struct"); long int y; }; // Check UTF-8 literals. #define u8 syntax error! char const utf8_literal[] = u8"happens to be ASCII" "another string"; // Check duplicate typedefs. typedef long *long_ptr; typedef long int *long_ptr; typedef long_ptr long_ptr; // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. struct anonymous { union { struct { int i; int j; }; struct { int k; long int l; } w; }; int m; } v1; ' # Test code for whether the C compiler supports C11 (body of main). ac_c_conftest_c11_main=' _Static_assert ((offsetof (struct anonymous, i) == offsetof (struct anonymous, w.k)), "Anonymous union alignment botch"); v1.i = 2; v1.w.k = 5; ok |= v1.i != 5; ' # Test code for whether the C compiler supports C11 (complete). ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} ${ac_c_conftest_c99_globals} ${ac_c_conftest_c11_globals} int main (int argc, char **argv) { int ok = 0; ${ac_c_conftest_c89_main} ${ac_c_conftest_c99_main} ${ac_c_conftest_c11_main} return ok; } " # Test code for whether the C compiler supports C99 (complete). ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} ${ac_c_conftest_c99_globals} int main (int argc, char **argv) { int ok = 0; ${ac_c_conftest_c89_main} ${ac_c_conftest_c99_main} return ok; } " # Test code for whether the C compiler supports C89 (complete). ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} int main (int argc, char **argv) { int ok = 0; ${ac_c_conftest_c89_main} return ok; } " # Auxiliary files required by this configure script. ac_aux_files="config.guess config.sub" # Locations in which to look for auxiliary files. ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." # Search for a directory containing all of the required auxiliary files, # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. # If we don't find one directory that contains all the files we need, # we report the set of missing files from the *first* directory in # $ac_aux_dir_candidates and give up. ac_missing_aux_files="" ac_first_candidate=: printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in $ac_aux_dir_candidates do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac as_found=: printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 ac_aux_dir_found=yes ac_install_sh= for ac_aux in $ac_aux_files do # As a special case, if "install-sh" is required, that requirement # can be satisfied by any of "install-sh", "install.sh", or "shtool", # and $ac_install_sh is set appropriately for whichever one is found. if test x"$ac_aux" = x"install-sh" then if test -f "${as_dir}install-sh"; then printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 ac_install_sh="${as_dir}install-sh -c" elif test -f "${as_dir}install.sh"; then printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 ac_install_sh="${as_dir}install.sh -c" elif test -f "${as_dir}shtool"; then printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 ac_install_sh="${as_dir}shtool install -c" else ac_aux_dir_found=no if $ac_first_candidate; then ac_missing_aux_files="${ac_missing_aux_files} install-sh" else break fi fi else if test -f "${as_dir}${ac_aux}"; then printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 else ac_aux_dir_found=no if $ac_first_candidate; then ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" else break fi fi fi done if test "$ac_aux_dir_found" = yes; then ac_aux_dir="$as_dir" break fi ac_first_candidate=false as_found=false done IFS=$as_save_IFS if $as_found then : else $as_nop as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. if test -f "${ac_aux_dir}config.guess"; then ac_config_guess="$SHELL ${ac_aux_dir}config.guess" fi if test -f "${ac_aux_dir}config.sub"; then ac_config_sub="$SHELL ${ac_aux_dir}config.sub" fi if test -f "$ac_aux_dir/configure"; then ac_configure="$SHELL ${ac_aux_dir}configure" fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_config_headers="$ac_config_headers config.h" # Avoid warnings for redefining AH-generated preprocessor symbols of # Octave. # Make sure we can run config.sub. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 printf %s "checking build system type... " >&6; } if test ${ac_cv_build+y} then : printf %s "(cached) " >&6 else $as_nop ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` test "x$ac_build_alias" = x && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 printf "%s\n" "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 printf %s "checking host system type... " >&6; } if test ${ac_cv_host+y} then : printf %s "(cached) " >&6 else $as_nop if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 printf "%s\n" "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 printf %s "checking target system type... " >&6; } if test ${ac_cv_target+y} then : printf %s "(cached) " >&6 else $as_nop if test "x$target_alias" = x; then ac_cv_target=$ac_cv_host else ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` || as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5 fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 printf "%s\n" "$ac_cv_target" >&6; } case $ac_cv_target in *-*-*) ;; *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; esac target=$ac_cv_target ac_save_IFS=$IFS; IFS='-' set x $ac_cv_target shift target_cpu=$1 target_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: target_os=$* IFS=$ac_save_IFS case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac # The aliases save the names the user supplied, while $host etc. # will get canonicalized. test -n "$target_alias" && test "$program_prefix$program_suffix$program_transform_name" = \ NONENONEs,x,x, && program_prefix=${target_alias}- # Checks for programs. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 printf %s "checking for a sed that does not truncate output... " >&6; } if test ${ac_cv_path_SED+y} then : printf %s "(cached) " >&6 else $as_nop ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ for ac_i in 1 2 3 4 5 6 7; do ac_script="$ac_script$as_nl$ac_script" done echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed { ac_script=; unset ac_script;} if test -z "$SED"; then ac_path_SED_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_prog in sed gsed do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_SED="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_SED" || continue # Check for GNU ac_path_SED and select it if it is found. # Check for GNU $ac_path_SED case `"$ac_path_SED" --version 2>&1` in *GNU*) ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; *) ac_count=0 printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" printf "%s\n" '' >> "conftest.nl" "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_SED_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_SED="$ac_path_SED" ac_path_SED_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_SED_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_SED"; then as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 fi else ac_cv_path_SED=$SED fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 printf "%s\n" "$ac_cv_path_SED" >&6; } SED="$ac_cv_path_SED" rm -f conftest.sed ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CXX+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 printf "%s\n" "$CXX" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CXX+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CXX="$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 printf "%s\n" "$ac_ct_CXX" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 printf %s "checking whether the C++ compiler works... " >&6; } ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else $as_nop ac_file='' fi if test -z "$ac_file" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C++ compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 printf %s "checking for C++ compiler default output file name... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 printf "%s\n" "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 printf %s "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else $as_nop { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 printf "%s\n" "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 printf %s "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot run C++ compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 printf "%s\n" "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 printf %s "checking for suffix of object files... " >&6; } if test ${ac_cv_objext+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_nop printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 printf "%s\n" "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 printf %s "checking whether the compiler supports GNU C++... " >&6; } if test ${ac_cv_cxx_compiler_gnu+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : ac_compiler_gnu=yes else $as_nop ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test $ac_compiler_gnu = yes; then GXX=yes else GXX= fi ac_test_CXXFLAGS=${CXXFLAGS+y} ac_save_CXXFLAGS=$CXXFLAGS { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 printf %s "checking whether $CXX accepts -g... " >&6; } if test ${ac_cv_prog_cxx_g+y} then : printf %s "(cached) " >&6 else $as_nop ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : ac_cv_prog_cxx_g=yes else $as_nop CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : else $as_nop ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : ac_cv_prog_cxx_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } if test $ac_test_CXXFLAGS; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi ac_prog_cxx_stdcxx=no if test x$ac_prog_cxx_stdcxx = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 printf %s "checking for $CXX option to enable C++11 features... " >&6; } if test ${ac_cv_prog_cxx_cxx11+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cxx_cxx11=no ac_save_CXX=$CXX cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_cxx_conftest_cxx11_program _ACEOF for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA do CXX="$ac_save_CXX $ac_arg" if ac_fn_cxx_try_compile "$LINENO" then : ac_cv_prog_cxx_cxx11=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cxx_cxx11" != "xno" && break done rm -f conftest.$ac_ext CXX=$ac_save_CXX fi if test "x$ac_cv_prog_cxx_cxx11" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cxx_cxx11" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } CXX="$CXX $ac_cv_prog_cxx_cxx11" fi ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 ac_prog_cxx_stdcxx=cxx11 fi fi if test x$ac_prog_cxx_stdcxx = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 printf %s "checking for $CXX option to enable C++98 features... " >&6; } if test ${ac_cv_prog_cxx_cxx98+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cxx_cxx98=no ac_save_CXX=$CXX cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_cxx_conftest_cxx98_program _ACEOF for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA do CXX="$ac_save_CXX $ac_arg" if ac_fn_cxx_try_compile "$LINENO" then : ac_cv_prog_cxx_cxx98=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cxx_cxx98" != "xno" && break done rm -f conftest.$ac_ext CXX=$ac_save_CXX fi if test "x$ac_cv_prog_cxx_cxx98" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cxx_cxx98" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } CXX="$CXX $ac_cv_prog_cxx_cxx98" fi ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 ac_prog_cxx_stdcxx=cxx98 fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}mkoctfile", so it can be a program name with args. set dummy ${ac_tool_prefix}mkoctfile; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_MKOCTFILE+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$MKOCTFILE"; then ac_cv_prog_MKOCTFILE="$MKOCTFILE" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_MKOCTFILE="${ac_tool_prefix}mkoctfile" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi MKOCTFILE=$ac_cv_prog_MKOCTFILE if test -n "$MKOCTFILE"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKOCTFILE" >&5 printf "%s\n" "$MKOCTFILE" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_MKOCTFILE"; then ac_ct_MKOCTFILE=$MKOCTFILE # Extract the first word of "mkoctfile", so it can be a program name with args. set dummy mkoctfile; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_MKOCTFILE+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_MKOCTFILE"; then ac_cv_prog_ac_ct_MKOCTFILE="$ac_ct_MKOCTFILE" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_MKOCTFILE="mkoctfile" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_MKOCTFILE=$ac_cv_prog_ac_ct_MKOCTFILE if test -n "$ac_ct_MKOCTFILE"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MKOCTFILE" >&5 printf "%s\n" "$ac_ct_MKOCTFILE" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_MKOCTFILE" = x; then MKOCTFILE="none" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac MKOCTFILE=$ac_ct_MKOCTFILE fi else MKOCTFILE="$ac_cv_prog_MKOCTFILE" fi if test "$MKOCTFILE" = "none" ; then as_fn_error $? "mkoctfile required to install $PACKAGE_NAME" "$LINENO" 5 fi # try get around possible spaces in the path if test "X${IGNORE_MINGW_PATH_MODIFICATION}" == "X"; then case $host_os in mingw*) # try demangle spaces in escaped input strings MKOCTFILE=`echo $MKOCTFILE | $SED "s,\\\\\ ,?,g"` ;; *) ;; esac fi # Check for RTMIDI save_CXXFLAGS="$CXXFLAGS" save_LIBS="$LIBS" if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_PKG_CONFIG+y} then : printf %s "(cached) " >&6 else $as_nop case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 printf "%s\n" "$PKG_CONFIG" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} then : printf %s "(cached) " >&6 else $as_nop case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG fi else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.9.0 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } PKG_CONFIG="" fi fi pkg_failed=no { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RTMIDI" >&5 printf %s "checking for RTMIDI... " >&6; } if test -n "$RTMIDI_CFLAGS"; then pkg_cv_RTMIDI_CFLAGS="$RTMIDI_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"rtmidi\""; } >&5 ($PKG_CONFIG --exists --print-errors "rtmidi") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_RTMIDI_CFLAGS=`$PKG_CONFIG --cflags "rtmidi" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$RTMIDI_LIBS"; then pkg_cv_RTMIDI_LIBS="$RTMIDI_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"rtmidi\""; } >&5 ($PKG_CONFIG --exists --print-errors "rtmidi") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_RTMIDI_LIBS=`$PKG_CONFIG --libs "rtmidi" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then RTMIDI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "rtmidi" 2>&1` else RTMIDI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "rtmidi" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$RTMIDI_PKG_ERRORS" >&5 have_rtmidi=no elif test $pkg_failed = untried; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } have_rtmidi=no else RTMIDI_CFLAGS=$pkg_cv_RTMIDI_CFLAGS RTMIDI_LIBS=$pkg_cv_RTMIDI_LIBS { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } have_rtmidi=yes fi if test "$have_rtmidi" = "yes"; then printf "%s\n" "#define HAVE_RTMIDI 1" >>confdefs.h CXXFLAGS="$CXXFLAGS $RTMIDI_CFLAGS" LIBS="$LIBS $RTMIDI_LIBS" else as_fn_error $? "RTMIDI required to install $PACKAGE_NAME" "$LINENO" 5 fi # Check for RtMidi::getApiName { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking RtMidi::getApiName" >&5 printf %s "checking RtMidi::getApiName... " >&6; } have_get_api_name=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main (void) { std::string n = RtMidi::getApiName(RtMidi::LINUX_ALSA); ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } have_api_name=yes else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CXXFLAGS=$save_CXXFLAGS LIBS=$save_LIBS if test $have_get_api_name = yes; then printf "%s\n" "#define HAVE_RTMIDI_GETAPINAME 1" >>confdefs.h fi # Check for pthreads ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 printf "%s\n" "$ac_ct_CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 printf "%s\n" "$ac_ct_CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. set dummy ${ac_tool_prefix}clang; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}clang" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "clang", so it can be a program name with args. set dummy clang; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="clang" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 printf "%s\n" "$ac_ct_CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi fi test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion -version; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 printf %s "checking whether the compiler supports GNU C... " >&6; } if test ${ac_cv_c_compiler_gnu+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_compiler_gnu=yes else $as_nop ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } ac_compiler_gnu=$ac_cv_c_compiler_gnu if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+y} ac_save_CFLAGS=$CFLAGS { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 printf %s "checking whether $CC accepts -g... " >&6; } if test ${ac_cv_prog_cc_g+y} then : printf %s "(cached) " >&6 else $as_nop ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_g=yes else $as_nop CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : else $as_nop ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } if test $ac_test_CFLAGS; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi ac_prog_cc_stdc=no if test x$ac_prog_cc_stdc = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 printf %s "checking for $CC option to enable C11 features... " >&6; } if test ${ac_cv_prog_cc_c11+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cc_c11=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_c_conftest_c11_program _ACEOF for ac_arg in '' -std=gnu11 do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_c11=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c11" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi if test "x$ac_cv_prog_cc_c11" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cc_c11" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } CC="$CC $ac_cv_prog_cc_c11" fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 ac_prog_cc_stdc=c11 fi fi if test x$ac_prog_cc_stdc = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 printf %s "checking for $CC option to enable C99 features... " >&6; } if test ${ac_cv_prog_cc_c99+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cc_c99=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_c_conftest_c99_program _ACEOF for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_c99=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c99" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi if test "x$ac_cv_prog_cc_c99" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cc_c99" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } CC="$CC $ac_cv_prog_cc_c99" fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 ac_prog_cc_stdc=c99 fi fi if test x$ac_prog_cc_stdc = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 printf %s "checking for $CC option to enable C89 features... " >&6; } if test ${ac_cv_prog_cc_c89+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_c_conftest_c89_program _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi if test "x$ac_cv_prog_cc_c89" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cc_c89" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } CC="$CC $ac_cv_prog_cc_c89" fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 ac_prog_cc_stdc=c89 fi fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 printf %s "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test ${ac_cv_prog_CPP+y} then : printf %s "(cached) " >&6 else $as_nop # Double quotes because $CC needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO" then : else $as_nop # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO" then : # Broken: success on invalid input. continue else $as_nop # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 printf "%s\n" "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO" then : else $as_nop # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO" then : # Broken: success on invalid input. continue else $as_nop # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok then : else $as_nop { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 printf %s "checking for grep that handles long lines and -e... " >&6; } if test ${ac_cv_path_GREP+y} then : printf %s "(cached) " >&6 else $as_nop if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_prog in grep ggrep do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" printf "%s\n" 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 printf "%s\n" "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 printf %s "checking for egrep... " >&6; } if test ${ac_cv_path_EGREP+y} then : printf %s "(cached) " >&6 else $as_nop if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_prog in egrep do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" printf "%s\n" 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 printf "%s\n" "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ax_pthread_ok=no # We used to check for pthread.h first, but this fails if pthread.h # requires special compiler flags (e.g. on Tru64 or Sequent). # It gets checked for in the link test anyway. # First of all, check if the user has set any of the PTHREAD_LIBS, # etcetera environment variables, and if threads linking works using # them: if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then ax_pthread_save_CC="$CC" ax_pthread_save_CFLAGS="$CFLAGS" ax_pthread_save_LIBS="$LIBS" if test "x$PTHREAD_CC" != "x" then : CC="$PTHREAD_CC" fi if test "x$PTHREAD_CXX" != "x" then : CXX="$PTHREAD_CXX" fi CFLAGS="$CFLAGS $PTHREAD_CFLAGS" LIBS="$PTHREAD_LIBS $LIBS" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char pthread_join (); int main (void) { return pthread_join (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ax_pthread_ok=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 printf "%s\n" "$ax_pthread_ok" >&6; } if test "x$ax_pthread_ok" = "xno"; then PTHREAD_LIBS="" PTHREAD_CFLAGS="" fi CC="$ax_pthread_save_CC" CFLAGS="$ax_pthread_save_CFLAGS" LIBS="$ax_pthread_save_LIBS" fi # We must check for the threads library under a number of different # names; the ordering is very important because some systems # (e.g. DEC) have both -lpthread and -lpthreads, where one of the # libraries is broken (non-POSIX). # Create a list of thread flags to try. Items with a "," contain both # C compiler flags (before ",") and linker flags (after ","). Other items # starting with a "-" are C compiler flags, and remaining items are # library names, except for "none" which indicates that we try without # any flags at all, and "pthread-config" which is a program returning # the flags for the Pth emulation library. ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" # The ordering *is* (sometimes) important. Some notes on the # individual items follow: # pthreads: AIX (must check this before -lpthread) # none: in case threads are in libc; should be tried before -Kthread and # other compiler flags to prevent continual compiler warnings # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 # (Note: HP C rejects this with "bad form for `-t' option") # -pthreads: Solaris/gcc (Note: HP C also rejects) # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it # doesn't hurt to check since this sometimes defines pthreads and # -D_REENTRANT too), HP C (must be checked before -lpthread, which # is present but should not be used directly; and before -mthreads, # because the compiler interprets this as "-mt" + "-hreads") # -mthreads: Mingw32/gcc, Lynx/gcc # pthread: Linux, etcetera # --thread-safe: KAI C++ # pthread-config: use pthread-config program (for GNU Pth library) case $host_os in freebsd*) # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) ax_pthread_flags="-kthread lthread $ax_pthread_flags" ;; hpux*) # From the cc(1) man page: "[-mt] Sets various -D flags to enable # multi-threading and also sets -lpthread." ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" ;; openedition*) # IBM z/OS requires a feature-test macro to be defined in order to # enable POSIX threads at all, so give the user a hint if this is # not set. (We don't define these ourselves, as they can affect # other portions of the system API in unpredictable ways.) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) AX_PTHREAD_ZOS_MISSING # endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1 then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;} fi rm -rf conftest* ;; solaris*) # On Solaris (at least, for some versions), libc contains stubbed # (non-functional) versions of the pthreads routines, so link-based # tests will erroneously succeed. (N.B.: The stubs are missing # pthread_cleanup_push, or rather a function called by this macro, # so we could check for that, but who knows whether they'll stub # that too in a future libc.) So we'll check first for the # standard Solaris way of linking pthreads (-mt -lpthread). ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags" ;; esac # Are we compiling with Clang? { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5 printf %s "checking whether $CC is Clang... " >&6; } if test ${ax_cv_PTHREAD_CLANG+y} then : printf %s "(cached) " >&6 else $as_nop ax_cv_PTHREAD_CLANG=no # Note that Autoconf sets GCC=yes for Clang as well as GCC if test "x$GCC" = "xyes"; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Note: Clang 2.7 lacks __clang_[a-z]+__ */ # if defined(__clang__) && defined(__llvm__) AX_PTHREAD_CC_IS_CLANG # endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1 then : ax_cv_PTHREAD_CLANG=yes fi rm -rf conftest* fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; } ax_pthread_clang="$ax_cv_PTHREAD_CLANG" # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC) # Note that for GCC and Clang -pthread generally implies -lpthread, # except when -nostdlib is passed. # This is problematic using libtool to build C++ shared libraries with pthread: # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555 # To solve this, first try -pthread together with -lpthread for GCC if test "x$GCC" = "xyes" then : ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags" fi # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first if test "x$ax_pthread_clang" = "xyes" then : ax_pthread_flags="-pthread,-lpthread -pthread" fi # The presence of a feature test macro requesting re-entrant function # definitions is, on some systems, a strong hint that pthreads support is # correctly enabled case $host_os in darwin* | hpux* | linux* | osf* | solaris*) ax_pthread_check_macro="_REENTRANT" ;; aix*) ax_pthread_check_macro="_THREAD_SAFE" ;; *) ax_pthread_check_macro="--" ;; esac if test "x$ax_pthread_check_macro" = "x--" then : ax_pthread_check_cond=0 else $as_nop ax_pthread_check_cond="!defined($ax_pthread_check_macro)" fi if test "x$ax_pthread_ok" = "xno"; then for ax_pthread_try_flag in $ax_pthread_flags; do case $ax_pthread_try_flag in none) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 printf %s "checking whether pthreads work without any flags... " >&6; } ;; *,*) PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"` PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"` { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; } ;; -*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; } PTHREAD_CFLAGS="$ax_pthread_try_flag" ;; pthread-config) # Extract the first word of "pthread-config", so it can be a program name with args. set dummy pthread-config; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ax_pthread_config+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ax_pthread_config"; then ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ax_pthread_config="yes" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" fi fi ax_pthread_config=$ac_cv_prog_ax_pthread_config if test -n "$ax_pthread_config"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 printf "%s\n" "$ax_pthread_config" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ax_pthread_config" = "xno" then : continue fi PTHREAD_CFLAGS="`pthread-config --cflags`" PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" ;; *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; } PTHREAD_LIBS="-l$ax_pthread_try_flag" ;; esac ax_pthread_save_CFLAGS="$CFLAGS" ax_pthread_save_LIBS="$LIBS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" LIBS="$PTHREAD_LIBS $LIBS" # Check for various functions. We must include pthread.h, # since some functions may be macros. (On the Sequent, we # need a special flag -Kthread to make this header compile.) # We check for pthread_join because it is in -lpthread on IRIX # while pthread_create is in libc. We check for pthread_attr_init # due to DEC craziness with -lpthreads. We check for # pthread_cleanup_push because it is one of the few pthread # functions on Solaris that doesn't have a non-functional libc stub. # We try pthread_create on general principles. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include # if $ax_pthread_check_cond # error "$ax_pthread_check_macro must be defined" # endif static void *some_global = NULL; static void routine(void *a) { /* To avoid any unused-parameter or unused-but-set-parameter warning. */ some_global = a; } static void *start_routine(void *a) { return a; } int main (void) { pthread_t th; pthread_attr_t attr; pthread_create(&th, 0, start_routine, 0); pthread_join(th, 0); pthread_attr_init(&attr); pthread_cleanup_push(routine, 0); pthread_cleanup_pop(0) /* ; */ ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ax_pthread_ok=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$ax_pthread_save_CFLAGS" LIBS="$ax_pthread_save_LIBS" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 printf "%s\n" "$ax_pthread_ok" >&6; } if test "x$ax_pthread_ok" = "xyes" then : break fi PTHREAD_LIBS="" PTHREAD_CFLAGS="" done fi # Clang needs special handling, because older versions handle the -pthread # option in a rather... idiosyncratic way if test "x$ax_pthread_clang" = "xyes"; then # Clang takes -pthread; it has never supported any other flag # (Note 1: This will need to be revisited if a system that Clang # supports has POSIX threads in a separate library. This tends not # to be the way of modern systems, but it's conceivable.) # (Note 2: On some systems, notably Darwin, -pthread is not needed # to get POSIX threads support; the API is always present and # active. We could reasonably leave PTHREAD_CFLAGS empty. But # -pthread does define _REENTRANT, and while the Darwin headers # ignore this macro, third-party headers might not.) # However, older versions of Clang make a point of warning the user # that, in an invocation where only linking and no compilation is # taking place, the -pthread option has no effect ("argument unused # during compilation"). They expect -pthread to be passed in only # when source code is being compiled. # # Problem is, this is at odds with the way Automake and most other # C build frameworks function, which is that the same flags used in # compilation (CFLAGS) are also used in linking. Many systems # supported by AX_PTHREAD require exactly this for POSIX threads # support, and in fact it is often not straightforward to specify a # flag that is used only in the compilation phase and not in # linking. Such a scenario is extremely rare in practice. # # Even though use of the -pthread flag in linking would only print # a warning, this can be a nuisance for well-run software projects # that build with -Werror. So if the active version of Clang has # this misfeature, we search for an option to squash it. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; } if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y} then : printf %s "(cached) " >&6 else $as_nop ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown # Create an alternate version of $ac_link that compiles and # links in two steps (.c -> .o, .o -> exe) instead of one # (.c -> exe), because the warning occurs only in the second # step ax_pthread_save_ac_link="$ac_link" ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g' ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"` ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)" ax_pthread_save_CFLAGS="$CFLAGS" for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do if test "x$ax_pthread_try" = "xunknown" then : break fi CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" ac_link="$ax_pthread_save_ac_link" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main(void){return 0;} _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_link="$ax_pthread_2step_ac_link" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main(void){return 0;} _ACEOF if ac_fn_c_try_link "$LINENO" then : break fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext done ac_link="$ax_pthread_save_ac_link" CFLAGS="$ax_pthread_save_CFLAGS" if test "x$ax_pthread_try" = "x" then : ax_pthread_try=no fi ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; } case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in no | unknown) ;; *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;; esac fi # $ax_pthread_clang = yes # Various other checks: if test "x$ax_pthread_ok" = "xyes"; then ax_pthread_save_CFLAGS="$CFLAGS" ax_pthread_save_LIBS="$LIBS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" LIBS="$PTHREAD_LIBS $LIBS" # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 printf %s "checking for joinable pthread attribute... " >&6; } if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y} then : printf %s "(cached) " >&6 else $as_nop ax_cv_PTHREAD_JOINABLE_ATTR=unknown for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { int attr = $ax_pthread_attr; return attr /* ; */ ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext done fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; } if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \ test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \ test "x$ax_pthread_joinable_attr_defined" != "xyes" then : printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h ax_pthread_joinable_attr_defined=yes fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5 printf %s "checking whether more special flags are required for pthreads... " >&6; } if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y} then : printf %s "(cached) " >&6 else $as_nop ax_cv_PTHREAD_SPECIAL_FLAGS=no case $host_os in solaris*) ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; } if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ test "x$ax_pthread_special_flags_added" != "xyes" then : PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" ax_pthread_special_flags_added=yes fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; } if test ${ax_cv_PTHREAD_PRIO_INHERIT+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { int i = PTHREAD_PRIO_INHERIT; return i; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ax_cv_PTHREAD_PRIO_INHERIT=yes else $as_nop ax_cv_PTHREAD_PRIO_INHERIT=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \ test "x$ax_pthread_prio_inherit_defined" != "xyes" then : printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h ax_pthread_prio_inherit_defined=yes fi CFLAGS="$ax_pthread_save_CFLAGS" LIBS="$ax_pthread_save_LIBS" # More AIX lossage: compile with *_r variant if test "x$GCC" != "xyes"; then case $host_os in aix*) case "x/$CC" in #( x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : #handle absolute path differently from PATH based program lookup case "x$CC" in #( x/*) : if as_fn_executable_p ${CC}_r then : PTHREAD_CC="${CC}_r" fi if test "x${CXX}" != "x" then : if as_fn_executable_p ${CXX}_r then : PTHREAD_CXX="${CXX}_r" fi fi ;; #( *) : for ac_prog in ${CC}_r do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_PTHREAD_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$PTHREAD_CC"; then ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_PTHREAD_CC="$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi PTHREAD_CC=$ac_cv_prog_PTHREAD_CC if test -n "$PTHREAD_CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 printf "%s\n" "$PTHREAD_CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$PTHREAD_CC" && break done test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" if test "x${CXX}" != "x" then : for ac_prog in ${CXX}_r do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_PTHREAD_CXX+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$PTHREAD_CXX"; then ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_PTHREAD_CXX="$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX if test -n "$PTHREAD_CXX"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5 printf "%s\n" "$PTHREAD_CXX" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$PTHREAD_CXX" && break done test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX" fi ;; esac ;; #( *) : ;; esac ;; esac fi fi test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX" # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test "x$ax_pthread_ok" = "xyes"; then printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h : else ax_pthread_ok=no as_fn_error $? "thread library is needed to install $PACKAGE_NAME" "$LINENO" 5 fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu # Checks for octave depreciated symbols ## Simple symbol alternatives of different Octave versions. save_altsyms_CXX="$CXX" save_altsyms_CXXFLAGS="$CXXFLAGS" save_altsyms_LDFLAGS="$LDFLAGS" save_altsyms_LIBS="$LIBS" OCTINCLUDEDIR="${OCTINCLUDEDIR:-`$MKOCTFILE -p OCTINCLUDEDIR`}/.." OCTLIBDIR=${OCTLIBDIR:-`$MKOCTFILE -p OCTLIBDIR`} if test "X${IGNORE_MINGW_PATH_MODIFICATION}" == "X"; then MSYSTEM="${MSYSTEM}" else MSYSTEM="none" fi case X$MSYSTEM in XMINGW64*) OCTAVE_HOME=`${MKOCTFILE} -p OCTAVE_HOME | $SED 's,\\\\,/,g'` # change \ to / and replace octave home part with mingw part OCTINCLUDEDIR=`echo $OCTINCLUDEDIR | $SED -e 's,\\\\,/,g' -e "s,${OCTAVE_HOME},/mingw64,g"` OCTLIBDIR=`echo $OCTLIBDIR | $SED -e 's,\\\\,/,g' -e "s,${OCTAVE_HOME},/mingw64,g"` ;; XMINGW32*) OCTAVE_HOME=`${MKOCTFILE} -p OCTAVE_HOME | $SED 's,\\\\,/,g'` # change \ to / and replace octave home part with mingw part OCTINCLUDEDIR=`echo $OCTINCLUDEDIR | $SED -e 's,\\\\,/,g' -e "s,${OCTAVE_HOME},/mingw32,g"` OCTLIBDIR=`echo $OCTLIBDIR | $SED -e 's,\\\\,/,g -e "s,${OCTAVE_HOME},/mingw32,g"'` ;; *) ;; esac CXX=`${MKOCTFILE} -p CXX` CXXFLAGS="-I$OCTINCLUDEDIR $CXXFLAGS" LDFLAGS="-L$OCTLIBDIR $LDFLAGS" LIBS="-loctinterp $LIBS" echo '/* generated by configure */' > oct-alt-includes.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking feval or octave::feval" >&5 printf %s "checking feval or octave::feval... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main (void) { octave::feval ("date"); ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : printf "%s\n" "#define OCTAVE__FEVAL octave::feval" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: octave::feval" >&5 printf "%s\n" "octave::feval" >&6; } echo '#include ' >> oct-alt-includes.h else $as_nop printf "%s\n" "#define OCTAVE__FEVAL feval" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: feval" >&5 printf "%s\n" " feval" >&6; } echo '#include ' >> oct-alt-includes.h fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking is_float_type or isfloat" >&5 printf %s "checking is_float_type or isfloat... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { octave_value ().isfloat (); ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : printf "%s\n" "#define OV_ISFLOAT isfloat" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: isfloat" >&5 printf "%s\n" "isfloat" >&6; } echo ' ' >> oct-alt-includes.h else $as_nop printf "%s\n" "#define OV_ISFLOAT is_float_type" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: is_float_type" >&5 printf "%s\n" " is_float_type" >&6; } echo '' >> oct-alt-includes.h fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking is_integer_type or isinteger" >&5 printf %s "checking is_integer_type or isinteger... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { octave_value ().isinteger (); ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : printf "%s\n" "#define OV_ISINTEGER isinteger" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: isinteger" >&5 printf "%s\n" "isinteger" >&6; } echo ' ' >> oct-alt-includes.h else $as_nop printf "%s\n" "#define OV_ISINTEGER is_integer_type" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: is_integer_type" >&5 printf "%s\n" " is_integer_type" >&6; } echo '' >> oct-alt-includes.h fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking is_cell or iscell" >&5 printf %s "checking is_cell or iscell... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { octave_value ().iscell (); ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : printf "%s\n" "#define OV_ISCELL iscell" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: iscell" >&5 printf "%s\n" "iscell" >&6; } echo ' ' >> oct-alt-includes.h else $as_nop printf "%s\n" "#define OV_ISCELL is_cell" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: is_cell" >&5 printf "%s\n" " is_cell" >&6; } echo '' >> oct-alt-includes.h fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking octave_execution_exception or octave::execution_exception" >&5 printf %s "checking octave_execution_exception or octave::execution_exception... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main (void) { octave::execution_exception err; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : printf "%s\n" "#define OCTAVE_EXECUTION_EXCEPTION octave::execution_exception" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: octave::execution_exception" >&5 printf "%s\n" "octave::execution_exception" >&6; } echo '#include ' >> oct-alt-includes.h else $as_nop printf "%s\n" "#define OCTAVE_EXECUTION_EXCEPTION octave_execution_exception" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: octave_execution_exception" >&5 printf "%s\n" " octave_execution_exception" >&6; } echo '#include ' >> oct-alt-includes.h fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking octave_base_value or octave_base_dld_value" >&5 printf %s "checking octave_base_value or octave_base_dld_value... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { octave_base_dld_value tmp; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : printf "%s\n" "#define OCTAVE_BASE_CLASS octave_base_dld_value" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: octave_base_dld_value" >&5 printf "%s\n" "octave_base_dld_value" >&6; } echo ' ' >> oct-alt-includes.h else $as_nop printf "%s\n" "#define OCTAVE_BASE_CLASS octave_base_value" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: octave_base_value" >&5 printf "%s\n" " octave_base_value" >&6; } echo '' >> oct-alt-includes.h fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext # check if method of getting execution exception message { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for execution_exception message field" >&5 printf %s "checking for execution_exception message field... " >&6; } octave_execution_field=none cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main (void) { OCTAVE_EXECUTION_EXCEPTION err; err.message(); ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : octave_execution_field=message else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main (void) { OCTAVE_EXECUTION_EXCEPTION err; err.info(); ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : octave_execution_field=info fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $octave_execution_field" >&5 printf "%s\n" "$octave_execution_field" >&6; } printf "%s\n" "#define OCTAVE_EXCEPTION_MESSAGE $octave_execution_field" >>confdefs.h if test $octave_execution_field != none; then printf "%s\n" "#define HAS_OCTAVE_EXCEPTION_MESSAGE 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for octave_base_value count field" >&5 printf %s "checking for octave_base_value count field... " >&6; } octave_count_field=count cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef HAVE_CONFIG_H # include "config.h" #endif class test_base_class : public octave_base_value { public: test_base_class() {} ~test_base_class() {} void test() { m_count ++; } bool is_object (void) const { return true; } }; int main (void) { test_base_class t; t.is_object(); ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : octave_count_field=m_count else $as_nop octave_count_field=count fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $octave_count_field" >&5 printf "%s\n" "$octave_count_field" >&6; } printf "%s\n" "#define OV_COUNT $octave_count_field" >>confdefs.h CXX=$save_altsyms_CXX CXXFLAGS=$save_altsyms_CXXFLAGS LDFLAGS=$save_altsyms_LDFLAGS LIBS=$save_altsyms_LIBS ac_config_files="$ac_config_files Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh as_nop=: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else $as_nop case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi # Reset variables that may have inherited troublesome values from # the environment. # IFS needs to be set, to space, tab, and newline, in precisely that order. # (If _AS_PATH_WALK were called with IFS unset, it would have the # side effect of setting IFS to empty, thus disabling word splitting.) # Quoting is to prevent editors from complaining about space-tab. as_nl=' ' export as_nl IFS=" "" $as_nl" PS1='$ ' PS2='> ' PS4='+ ' # Ensure predictable behavior from utilities with locale-dependent output. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # We cannot yet rely on "unset" to work, but we need these variables # to be unset--not just set to an empty or harmless value--now, to # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct # also avoids known problems related to "unset" and subshell syntax # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH do eval test \${$as_var+y} \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done # Ensure that fds 0, 1, and 2 are open. if (exec 3>&0) 2>/dev/null; then :; else exec 0&1) 2>/dev/null; then :; else exec 1>/dev/null; fi if (exec 3>&2) ; then :; else exec 2>/dev/null; fi # The user is always right. if ${PATH_SEPARATOR+false} :; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac test -r "$as_dir$0" && as_myself=$as_dir$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi printf "%s\n" "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null then : eval 'as_fn_append () { eval $1+=\$2 }' else $as_nop as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null then : eval 'as_fn_arith () { as_val=$(( $* )) }' else $as_nop as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # Determine whether it's possible to make 'echo' print without a newline. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed # for compatibility with existing Makefiles. ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac # For backward compatibility with old third-party macros, we provide # the shell variables $as_echo and $as_echo_n. New code should use # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. as_echo='printf %s\n' as_echo_n='printf %s' rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by octave audio package $as_me 2.0.8, which was generated by GNU Autoconf 2.71. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Report bugs to the package provider." _ACEOF ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ octave audio package config.status 2.0.8 configured by $0, generated by GNU Autoconf 2.71, with options \\"\$ac_cs_config\\" Copyright (C) 2021 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) printf "%s\n" "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) printf "%s\n" "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) printf "%s\n" "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX printf "%s\n" "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_tt=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_tt"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 printf "%s\n" "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`printf "%s\n" "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { printf "%s\n" "/* $configure_input */" >&1 \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else printf "%s\n" "/* $configure_input */" >&1 \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $PACKAGE_NAME is configured with: LIBS: $LIBS $RTMIDI_LIBS $PTHREAD_LIBS CXXFLAGS: $CXXFLAGS $RTMIDI_CFLAGS $PTHREAD_CFLAGS $DEFS " >&5 printf "%s\n" "$as_me: $PACKAGE_NAME is configured with: LIBS: $LIBS $RTMIDI_LIBS $PTHREAD_LIBS CXXFLAGS: $CXXFLAGS $RTMIDI_CFLAGS $PTHREAD_CFLAGS $DEFS " >&6;} audio-2.0.8/src/configure.ac0000644000000000000000000001455114506546342014104 0ustar0000000000000000# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. # ### Copyright (C) 2019-2023 John Donoghue ### ### 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 3 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, see ### . AC_PREREQ([2.67]) AC_INIT([octave audio package], [2.0.8]) AC_CONFIG_HEADERS([config.h]) # Avoid warnings for redefining AH-generated preprocessor symbols of # Octave. AH_TOP([#include "undef-ah-octave.h"]) AC_CONFIG_MACRO_DIRS([m4]) AC_CANONICAL_HOST AC_CANONICAL_TARGET # Checks for programs. AC_PROG_SED AC_PROG_CXX AC_LANG(C++) AC_CHECK_TOOL([MKOCTFILE], [mkoctfile], [none]) if [ test "$MKOCTFILE" = "none" ]; then AC_MSG_ERROR([mkoctfile required to install $PACKAGE_NAME]) fi # try get around possible spaces in the path if test "X${IGNORE_MINGW_PATH_MODIFICATION}" == "X"; then case $host_os in mingw*) # try demangle spaces in escaped input strings MKOCTFILE=`echo $MKOCTFILE | $SED "s,\\\\\ ,?,g"` ;; *) ;; esac fi # Check for RTMIDI save_CXXFLAGS="$CXXFLAGS" save_LIBS="$LIBS" PKG_CHECK_MODULES(RTMIDI,rtmidi,[have_rtmidi=yes],[have_rtmidi=no]) if test "$have_rtmidi" = "yes"; then AC_DEFINE(HAVE_RTMIDI, 1, [Define to 1 to use the rtmidi library.]) CXXFLAGS="$CXXFLAGS $RTMIDI_CFLAGS" LIBS="$LIBS $RTMIDI_LIBS" else AC_MSG_ERROR([RTMIDI required to install $PACKAGE_NAME]) fi # Check for RtMidi::getApiName AC_MSG_CHECKING([RtMidi::getApiName]) have_get_api_name=no AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include #include ]], [ std::string n = RtMidi::getApiName(RtMidi::LINUX_ALSA); ])], [AC_MSG_RESULT([yes]) have_api_name=yes], [AC_MSG_RESULT([no])] ) CXXFLAGS=$save_CXXFLAGS LIBS=$save_LIBS if test $have_get_api_name = yes; then AC_DEFINE([HAVE_RTMIDI_GETAPINAME], [1], [have the RtMidi::getApiName function]) fi # Check for pthreads AX_PTHREAD([],[AC_MSG_ERROR([thread library is needed to install $PACKAGE_NAME])]) # Checks for octave depreciated symbols ## Simple symbol alternatives of different Octave versions. save_altsyms_CXX="$CXX" save_altsyms_CXXFLAGS="$CXXFLAGS" save_altsyms_LDFLAGS="$LDFLAGS" save_altsyms_LIBS="$LIBS" OCTINCLUDEDIR="${OCTINCLUDEDIR:-`$MKOCTFILE -p OCTINCLUDEDIR`}/.." OCTLIBDIR=${OCTLIBDIR:-`$MKOCTFILE -p OCTLIBDIR`} if test "X${IGNORE_MINGW_PATH_MODIFICATION}" == "X"; then MSYSTEM="${MSYSTEM}" else MSYSTEM="none" fi case X$MSYSTEM in XMINGW64*) OCTAVE_HOME=`${MKOCTFILE} -p OCTAVE_HOME | $SED 's,\\\\,/,g'` # change \ to / and replace octave home part with mingw part OCTINCLUDEDIR=`echo $OCTINCLUDEDIR | $SED -e 's,\\\\,/,g' -e "s,${OCTAVE_HOME},/mingw64,g"` OCTLIBDIR=`echo $OCTLIBDIR | $SED -e 's,\\\\,/,g' -e "s,${OCTAVE_HOME},/mingw64,g"` ;; XMINGW32*) OCTAVE_HOME=`${MKOCTFILE} -p OCTAVE_HOME | $SED 's,\\\\,/,g'` # change \ to / and replace octave home part with mingw part OCTINCLUDEDIR=`echo $OCTINCLUDEDIR | $SED -e 's,\\\\,/,g' -e "s,${OCTAVE_HOME},/mingw32,g"` OCTLIBDIR=`echo $OCTLIBDIR | $SED -e 's,\\\\,/,g -e "s,${OCTAVE_HOME},/mingw32,g"'` ;; *) ;; esac CXX=`${MKOCTFILE} -p CXX` CXXFLAGS="-I$OCTINCLUDEDIR $CXXFLAGS" LDFLAGS="-L$OCTLIBDIR $LDFLAGS" LIBS="-loctinterp $LIBS" OF_OCTAVE_LIST_ALT_SYMS([ [dnl [feval], [octave::feval], [[octave::feval ("date");]], [OCTAVE__FEVAL], [[#include ]], [[#include ]] ], [dnl [is_float_type], [isfloat], [[octave_value ().isfloat ();]], [OV_ISFLOAT], [], [] ], [dnl [is_integer_type], [isinteger], [[octave_value ().isinteger ();]], [OV_ISINTEGER], [], [] ], [dnl [is_cell], [iscell], [[octave_value ().iscell ();]], [OV_ISCELL], [], [] ], [dnl [octave_execution_exception], [octave::execution_exception], [[octave::execution_exception err;]], [OCTAVE_EXECUTION_EXCEPTION], [#include ], [#include ] ], [dnl [octave_base_value], [octave_base_dld_value], [[octave_base_dld_value tmp;]], [OCTAVE_BASE_CLASS], [], [] ] ],[oct-alt-includes.h]) # check if method of getting execution exception message AC_MSG_CHECKING([for execution_exception message field]) octave_execution_field=none AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include #include ]], [ OCTAVE_EXECUTION_EXCEPTION err; err.message(); ])], [octave_execution_field=message], [ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include #include ]], [ OCTAVE_EXECUTION_EXCEPTION err; err.info(); ])], [octave_execution_field=info], []) ] ) AC_MSG_RESULT([$octave_execution_field]) AC_DEFINE_UNQUOTED([OCTAVE_EXCEPTION_MESSAGE],$octave_execution_field,[execution_exception message field]) if test $octave_execution_field != none; then AC_DEFINE([HAS_OCTAVE_EXCEPTION_MESSAGE],[1],[has some kid of execution_exception message field]) fi AC_MSG_CHECKING([for octave_base_value count field]) octave_count_field=count AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include #ifdef HAVE_CONFIG_H # include "config.h" #endif class test_base_class : public octave_base_value { public: test_base_class() {} ~test_base_class() {} void test() { m_count ++; } bool is_object (void) const { return true; } }; ]], [ test_base_class t; t.is_object(); ])], [octave_count_field=m_count], [octave_count_field=count] ) AC_MSG_RESULT([$octave_count_field]) AC_DEFINE_UNQUOTED([OV_COUNT],$octave_count_field,[octave_base_value ref count field]) CXX=$save_altsyms_CXX CXXFLAGS=$save_altsyms_CXXFLAGS LDFLAGS=$save_altsyms_LDFLAGS LIBS=$save_altsyms_LIBS AC_CONFIG_FILES([Makefile]) AC_OUTPUT AC_MSG_NOTICE([ $PACKAGE_NAME is configured with: LIBS: $LIBS $RTMIDI_LIBS $PTHREAD_LIBS CXXFLAGS: $CXXFLAGS $RTMIDI_CFLAGS $PTHREAD_CFLAGS $DEFS ]) audio-2.0.8/src/m4/0000755000000000000000000000000014506546342012130 5ustar0000000000000000audio-2.0.8/src/m4/ax_pthread.m40000644000000000000000000005403514506546342014520 0ustar0000000000000000# =========================================================================== # https://www.gnu.org/software/autoconf-archive/ax_pthread.html # =========================================================================== # # SYNOPSIS # # AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) # # DESCRIPTION # # This macro figures out how to build C programs using POSIX threads. It # sets the PTHREAD_LIBS output variable to the threads library and linker # flags, and the PTHREAD_CFLAGS output variable to any special C compiler # flags that are needed. (The user can also force certain compiler # flags/libs to be tested by setting these environment variables.) # # Also sets PTHREAD_CC and PTHREAD_CXX to any special C compiler that is # needed for multi-threaded programs (defaults to the value of CC # respectively CXX otherwise). (This is necessary on e.g. AIX to use the # special cc_r/CC_r compiler alias.) # # NOTE: You are assumed to not only compile your program with these flags, # but also to link with them as well. For example, you might link with # $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS # $PTHREAD_CXX $CXXFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS # # If you are only building threaded programs, you may wish to use these # variables in your default LIBS, CFLAGS, and CC: # # LIBS="$PTHREAD_LIBS $LIBS" # CFLAGS="$CFLAGS $PTHREAD_CFLAGS" # CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS" # CC="$PTHREAD_CC" # CXX="$PTHREAD_CXX" # # In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant # has a nonstandard name, this macro defines PTHREAD_CREATE_JOINABLE to # that name (e.g. PTHREAD_CREATE_UNDETACHED on AIX). # # Also HAVE_PTHREAD_PRIO_INHERIT is defined if pthread is found and the # PTHREAD_PRIO_INHERIT symbol is defined when compiling with # PTHREAD_CFLAGS. # # ACTION-IF-FOUND is a list of shell commands to run if a threads library # is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it # is not found. If ACTION-IF-FOUND is not specified, the default action # will define HAVE_PTHREAD. # # Please let the authors know if this macro fails on any platform, or if # you have any other suggestions or comments. This macro was based on work # by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help # from M. Frigo), as well as ac_pthread and hb_pthread macros posted by # Alejandro Forero Cuervo to the autoconf macro repository. We are also # grateful for the helpful feedback of numerous users. # # Updated for Autoconf 2.68 by Daniel Richard G. # # LICENSE # # Copyright (c) 2008 Steven G. Johnson # Copyright (c) 2011 Daniel Richard G. # Copyright (c) 2019 Marc Stevens # # 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 3 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, see . # # As a special exception, the respective Autoconf Macro's copyright owner # gives unlimited permission to copy, distribute and modify the configure # scripts that are the output of Autoconf when processing the Macro. You # need not follow the terms of the GNU General Public License when using # or distributing such scripts, even though portions of the text of the # Macro appear in them. The GNU General Public License (GPL) does govern # all other use of the material that constitutes the Autoconf Macro. # # This special exception to the GPL applies to versions of the Autoconf # Macro released by the Autoconf Archive. When you make and distribute a # modified version of the Autoconf Macro, you may extend this special # exception to the GPL to apply to your modified version as well. #serial 31 AU_ALIAS([ACX_PTHREAD], [AX_PTHREAD]) AC_DEFUN([AX_PTHREAD], [ AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_PROG_SED]) AC_LANG_PUSH([C]) ax_pthread_ok=no # We used to check for pthread.h first, but this fails if pthread.h # requires special compiler flags (e.g. on Tru64 or Sequent). # It gets checked for in the link test anyway. # First of all, check if the user has set any of the PTHREAD_LIBS, # etcetera environment variables, and if threads linking works using # them: if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then ax_pthread_save_CC="$CC" ax_pthread_save_CFLAGS="$CFLAGS" ax_pthread_save_LIBS="$LIBS" AS_IF([test "x$PTHREAD_CC" != "x"], [CC="$PTHREAD_CC"]) AS_IF([test "x$PTHREAD_CXX" != "x"], [CXX="$PTHREAD_CXX"]) CFLAGS="$CFLAGS $PTHREAD_CFLAGS" LIBS="$PTHREAD_LIBS $LIBS" AC_MSG_CHECKING([for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS]) AC_LINK_IFELSE([AC_LANG_CALL([], [pthread_join])], [ax_pthread_ok=yes]) AC_MSG_RESULT([$ax_pthread_ok]) if test "x$ax_pthread_ok" = "xno"; then PTHREAD_LIBS="" PTHREAD_CFLAGS="" fi CC="$ax_pthread_save_CC" CFLAGS="$ax_pthread_save_CFLAGS" LIBS="$ax_pthread_save_LIBS" fi # We must check for the threads library under a number of different # names; the ordering is very important because some systems # (e.g. DEC) have both -lpthread and -lpthreads, where one of the # libraries is broken (non-POSIX). # Create a list of thread flags to try. Items with a "," contain both # C compiler flags (before ",") and linker flags (after ","). Other items # starting with a "-" are C compiler flags, and remaining items are # library names, except for "none" which indicates that we try without # any flags at all, and "pthread-config" which is a program returning # the flags for the Pth emulation library. ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" # The ordering *is* (sometimes) important. Some notes on the # individual items follow: # pthreads: AIX (must check this before -lpthread) # none: in case threads are in libc; should be tried before -Kthread and # other compiler flags to prevent continual compiler warnings # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 # (Note: HP C rejects this with "bad form for `-t' option") # -pthreads: Solaris/gcc (Note: HP C also rejects) # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it # doesn't hurt to check since this sometimes defines pthreads and # -D_REENTRANT too), HP C (must be checked before -lpthread, which # is present but should not be used directly; and before -mthreads, # because the compiler interprets this as "-mt" + "-hreads") # -mthreads: Mingw32/gcc, Lynx/gcc # pthread: Linux, etcetera # --thread-safe: KAI C++ # pthread-config: use pthread-config program (for GNU Pth library) case $host_os in freebsd*) # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) ax_pthread_flags="-kthread lthread $ax_pthread_flags" ;; hpux*) # From the cc(1) man page: "[-mt] Sets various -D flags to enable # multi-threading and also sets -lpthread." ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" ;; openedition*) # IBM z/OS requires a feature-test macro to be defined in order to # enable POSIX threads at all, so give the user a hint if this is # not set. (We don't define these ourselves, as they can affect # other portions of the system API in unpredictable ways.) AC_EGREP_CPP([AX_PTHREAD_ZOS_MISSING], [ # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) AX_PTHREAD_ZOS_MISSING # endif ], [AC_MSG_WARN([IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support.])]) ;; solaris*) # On Solaris (at least, for some versions), libc contains stubbed # (non-functional) versions of the pthreads routines, so link-based # tests will erroneously succeed. (N.B.: The stubs are missing # pthread_cleanup_push, or rather a function called by this macro, # so we could check for that, but who knows whether they'll stub # that too in a future libc.) So we'll check first for the # standard Solaris way of linking pthreads (-mt -lpthread). ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags" ;; esac # Are we compiling with Clang? AC_CACHE_CHECK([whether $CC is Clang], [ax_cv_PTHREAD_CLANG], [ax_cv_PTHREAD_CLANG=no # Note that Autoconf sets GCC=yes for Clang as well as GCC if test "x$GCC" = "xyes"; then AC_EGREP_CPP([AX_PTHREAD_CC_IS_CLANG], [/* Note: Clang 2.7 lacks __clang_[a-z]+__ */ # if defined(__clang__) && defined(__llvm__) AX_PTHREAD_CC_IS_CLANG # endif ], [ax_cv_PTHREAD_CLANG=yes]) fi ]) ax_pthread_clang="$ax_cv_PTHREAD_CLANG" # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC) # Note that for GCC and Clang -pthread generally implies -lpthread, # except when -nostdlib is passed. # This is problematic using libtool to build C++ shared libraries with pthread: # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555 # To solve this, first try -pthread together with -lpthread for GCC AS_IF([test "x$GCC" = "xyes"], [ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"]) # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first AS_IF([test "x$ax_pthread_clang" = "xyes"], [ax_pthread_flags="-pthread,-lpthread -pthread"]) # The presence of a feature test macro requesting re-entrant function # definitions is, on some systems, a strong hint that pthreads support is # correctly enabled case $host_os in darwin* | hpux* | linux* | osf* | solaris*) ax_pthread_check_macro="_REENTRANT" ;; aix*) ax_pthread_check_macro="_THREAD_SAFE" ;; *) ax_pthread_check_macro="--" ;; esac AS_IF([test "x$ax_pthread_check_macro" = "x--"], [ax_pthread_check_cond=0], [ax_pthread_check_cond="!defined($ax_pthread_check_macro)"]) if test "x$ax_pthread_ok" = "xno"; then for ax_pthread_try_flag in $ax_pthread_flags; do case $ax_pthread_try_flag in none) AC_MSG_CHECKING([whether pthreads work without any flags]) ;; *,*) PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"` PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"` AC_MSG_CHECKING([whether pthreads work with "$PTHREAD_CFLAGS" and "$PTHREAD_LIBS"]) ;; -*) AC_MSG_CHECKING([whether pthreads work with $ax_pthread_try_flag]) PTHREAD_CFLAGS="$ax_pthread_try_flag" ;; pthread-config) AC_CHECK_PROG([ax_pthread_config], [pthread-config], [yes], [no]) AS_IF([test "x$ax_pthread_config" = "xno"], [continue]) PTHREAD_CFLAGS="`pthread-config --cflags`" PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" ;; *) AC_MSG_CHECKING([for the pthreads library -l$ax_pthread_try_flag]) PTHREAD_LIBS="-l$ax_pthread_try_flag" ;; esac ax_pthread_save_CFLAGS="$CFLAGS" ax_pthread_save_LIBS="$LIBS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" LIBS="$PTHREAD_LIBS $LIBS" # Check for various functions. We must include pthread.h, # since some functions may be macros. (On the Sequent, we # need a special flag -Kthread to make this header compile.) # We check for pthread_join because it is in -lpthread on IRIX # while pthread_create is in libc. We check for pthread_attr_init # due to DEC craziness with -lpthreads. We check for # pthread_cleanup_push because it is one of the few pthread # functions on Solaris that doesn't have a non-functional libc stub. # We try pthread_create on general principles. AC_LINK_IFELSE([AC_LANG_PROGRAM([#include # if $ax_pthread_check_cond # error "$ax_pthread_check_macro must be defined" # endif static void *some_global = NULL; static void routine(void *a) { /* To avoid any unused-parameter or unused-but-set-parameter warning. */ some_global = a; } static void *start_routine(void *a) { return a; }], [pthread_t th; pthread_attr_t attr; pthread_create(&th, 0, start_routine, 0); pthread_join(th, 0); pthread_attr_init(&attr); pthread_cleanup_push(routine, 0); pthread_cleanup_pop(0) /* ; */])], [ax_pthread_ok=yes], []) CFLAGS="$ax_pthread_save_CFLAGS" LIBS="$ax_pthread_save_LIBS" AC_MSG_RESULT([$ax_pthread_ok]) AS_IF([test "x$ax_pthread_ok" = "xyes"], [break]) PTHREAD_LIBS="" PTHREAD_CFLAGS="" done fi # Clang needs special handling, because older versions handle the -pthread # option in a rather... idiosyncratic way if test "x$ax_pthread_clang" = "xyes"; then # Clang takes -pthread; it has never supported any other flag # (Note 1: This will need to be revisited if a system that Clang # supports has POSIX threads in a separate library. This tends not # to be the way of modern systems, but it's conceivable.) # (Note 2: On some systems, notably Darwin, -pthread is not needed # to get POSIX threads support; the API is always present and # active. We could reasonably leave PTHREAD_CFLAGS empty. But # -pthread does define _REENTRANT, and while the Darwin headers # ignore this macro, third-party headers might not.) # However, older versions of Clang make a point of warning the user # that, in an invocation where only linking and no compilation is # taking place, the -pthread option has no effect ("argument unused # during compilation"). They expect -pthread to be passed in only # when source code is being compiled. # # Problem is, this is at odds with the way Automake and most other # C build frameworks function, which is that the same flags used in # compilation (CFLAGS) are also used in linking. Many systems # supported by AX_PTHREAD require exactly this for POSIX threads # support, and in fact it is often not straightforward to specify a # flag that is used only in the compilation phase and not in # linking. Such a scenario is extremely rare in practice. # # Even though use of the -pthread flag in linking would only print # a warning, this can be a nuisance for well-run software projects # that build with -Werror. So if the active version of Clang has # this misfeature, we search for an option to squash it. AC_CACHE_CHECK([whether Clang needs flag to prevent "argument unused" warning when linking with -pthread], [ax_cv_PTHREAD_CLANG_NO_WARN_FLAG], [ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown # Create an alternate version of $ac_link that compiles and # links in two steps (.c -> .o, .o -> exe) instead of one # (.c -> exe), because the warning occurs only in the second # step ax_pthread_save_ac_link="$ac_link" ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g' ax_pthread_link_step=`AS_ECHO(["$ac_link"]) | sed "$ax_pthread_sed"` ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)" ax_pthread_save_CFLAGS="$CFLAGS" for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do AS_IF([test "x$ax_pthread_try" = "xunknown"], [break]) CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" ac_link="$ax_pthread_save_ac_link" AC_LINK_IFELSE([AC_LANG_SOURCE([[int main(void){return 0;}]])], [ac_link="$ax_pthread_2step_ac_link" AC_LINK_IFELSE([AC_LANG_SOURCE([[int main(void){return 0;}]])], [break]) ]) done ac_link="$ax_pthread_save_ac_link" CFLAGS="$ax_pthread_save_CFLAGS" AS_IF([test "x$ax_pthread_try" = "x"], [ax_pthread_try=no]) ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try" ]) case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in no | unknown) ;; *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;; esac fi # $ax_pthread_clang = yes # Various other checks: if test "x$ax_pthread_ok" = "xyes"; then ax_pthread_save_CFLAGS="$CFLAGS" ax_pthread_save_LIBS="$LIBS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" LIBS="$PTHREAD_LIBS $LIBS" # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. AC_CACHE_CHECK([for joinable pthread attribute], [ax_cv_PTHREAD_JOINABLE_ATTR], [ax_cv_PTHREAD_JOINABLE_ATTR=unknown for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do AC_LINK_IFELSE([AC_LANG_PROGRAM([#include ], [int attr = $ax_pthread_attr; return attr /* ; */])], [ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break], []) done ]) AS_IF([test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \ test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \ test "x$ax_pthread_joinable_attr_defined" != "xyes"], [AC_DEFINE_UNQUOTED([PTHREAD_CREATE_JOINABLE], [$ax_cv_PTHREAD_JOINABLE_ATTR], [Define to necessary symbol if this constant uses a non-standard name on your system.]) ax_pthread_joinable_attr_defined=yes ]) AC_CACHE_CHECK([whether more special flags are required for pthreads], [ax_cv_PTHREAD_SPECIAL_FLAGS], [ax_cv_PTHREAD_SPECIAL_FLAGS=no case $host_os in solaris*) ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" ;; esac ]) AS_IF([test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ test "x$ax_pthread_special_flags_added" != "xyes"], [PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" ax_pthread_special_flags_added=yes]) AC_CACHE_CHECK([for PTHREAD_PRIO_INHERIT], [ax_cv_PTHREAD_PRIO_INHERIT], [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]], [[int i = PTHREAD_PRIO_INHERIT; return i;]])], [ax_cv_PTHREAD_PRIO_INHERIT=yes], [ax_cv_PTHREAD_PRIO_INHERIT=no]) ]) AS_IF([test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \ test "x$ax_pthread_prio_inherit_defined" != "xyes"], [AC_DEFINE([HAVE_PTHREAD_PRIO_INHERIT], [1], [Have PTHREAD_PRIO_INHERIT.]) ax_pthread_prio_inherit_defined=yes ]) CFLAGS="$ax_pthread_save_CFLAGS" LIBS="$ax_pthread_save_LIBS" # More AIX lossage: compile with *_r variant if test "x$GCC" != "xyes"; then case $host_os in aix*) AS_CASE(["x/$CC"], [x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6], [#handle absolute path differently from PATH based program lookup AS_CASE(["x$CC"], [x/*], [ AS_IF([AS_EXECUTABLE_P([${CC}_r])],[PTHREAD_CC="${CC}_r"]) AS_IF([test "x${CXX}" != "x"], [AS_IF([AS_EXECUTABLE_P([${CXX}_r])],[PTHREAD_CXX="${CXX}_r"])]) ], [ AC_CHECK_PROGS([PTHREAD_CC],[${CC}_r],[$CC]) AS_IF([test "x${CXX}" != "x"], [AC_CHECK_PROGS([PTHREAD_CXX],[${CXX}_r],[$CXX])]) ] ) ]) ;; esac fi fi test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX" AC_SUBST([PTHREAD_LIBS]) AC_SUBST([PTHREAD_CFLAGS]) AC_SUBST([PTHREAD_CC]) AC_SUBST([PTHREAD_CXX]) # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test "x$ax_pthread_ok" = "xyes"; then ifelse([$1],,[AC_DEFINE([HAVE_PTHREAD],[1],[Define if you have POSIX threads libraries and header files.])],[$1]) : else ax_pthread_ok=no $2 fi AC_LANG_POP ])dnl AX_PTHREAD audio-2.0.8/src/m4/octave-forge.m40000644000000000000000000000576014506546342014763 0ustar0000000000000000# Copyright (C) 2017-2018 Olaf Till # Modifications to print what is searching for by JohnD # # 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 3 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, see . # arguments of OF_OCTAVE_ALT_SYMS (see also description of # OF_OCTAVE_LIST_ALT_SYMS below): # # $1: symbol version 1 # $2: symbol version 2 # $3: test for symbol version 2 # $4: macro name to access alternative symbols # $5: include directives for symbol version 1 # $6: include directives for symbol version 2 # (a list of lists of args 1--6 is $1 of OF_OCTAVE_LIST_ALT_SYMS) # $7: name of generated include file with alternatives of Octave headers # (arg7 is $2 of OF_OCTAVE_LIST_ALT_SYMS) AC_DEFUN([OF_OCTAVE_ALT_SYMS], [ AC_MSG_CHECKING([$1 or $2]) AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([[#include ] $6], [$3])], [AC_DEFINE($4, [[$2]], [macro for alternative Octave symbols]) AC_MSG_RESULT([$2]) echo '$6' >> $7], [AC_DEFINE($4, [[$1]], [macro for alternative Octave symbols]) AC_MSG_RESULT([$1]) echo '$5' >> $7] ) ]) # OF_OCTAVE_LIST_ALT_SYMS is called in the following way: # # OF_OCTAVE_LIST_ALT_SYMS([ # [dnl # [old_octave_symbol], # [new_octave_symbol], # [[compilation test] # [for new_octave_symbol]], # [NAME_OF_GENERATED_MACRO____WILL_EXPAND_TO_OLD_OR_NEW_SYMBOL], # [[include directives] # [except #include ] # [necessary to compile with old_octave_symbol]], # [[include directives] # [except #include ] # [nessary to compile with new_octave_symbol] # [and to compile the test]] # ], # # ... further such lists as the above # # ], # # [name-of-header-file-for-alternative-octave-iclude-directives.h]) # # # This file should be put into src/m4/, and the line # # AC_CONFIG_MACRO_DIRS([m4]) # # should be put into src/configure.ac. The package should use # autoheader to generate config.h.in (src/bootstrap should contain the # lines 'aclocal', 'autoconf', and 'autoheader -f'). Package code # should include config.h and use the generated macros to access the # alternative symbols of Octave. An example of a call to # OF_OCTAVE_LIST_ALT_SYMS in src/configure.ac is available together # with this file. AC_DEFUN([OF_OCTAVE_LIST_ALT_SYMS], [ echo '/* generated by configure */' > $2 m4_foreach([it], [$1], [m4_apply([OF_OCTAVE_ALT_SYMS], [it, $2])]) AH_BOTTOM([#include "$2"]) ]) audio-2.0.8/src/midi.cc0000644000000000000000000001470614506546342013051 0ustar0000000000000000// Copyright (C) 2019 John Donoghue // // 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 3 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, see . #include #include #include "midi.h" #include #if defined (HAVE_CONFIG_H) # include "config.h" #endif static std::string api_name(RtMidi::Api api) { std::string name; #ifdef HAVE_RTMIDI_GETAPINAME name = RtMidi::getApiName(api); #else switch(api) { case RtMidi::MACOSX_CORE: name = "MacOS Core"; break; case RtMidi::LINUX_ALSA: name = "Alsa"; break; case RtMidi::UNIX_JACK: name = "Jack"; break; case RtMidi::WINDOWS_MM: name = "MMSystem"; break; default: break; } #endif if (name.length() == 0) name = "Unknown"; return name; } class msg_info { public: std::vector data; double timestamp; msg_info(const std::vector &d, double dt = 0.0) { data = d; timestamp = dt; } }; #include pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; class Locker { pthread_mutex_t mutex; public: Locker(pthread_mutex_t m) { mutex = m; pthread_mutex_lock(&mutex); } virtual ~Locker() { pthread_mutex_unlock(&mutex); } }; class midi_device { public: RtMidiIn *in; RtMidiOut *out; midi_device_info in_info; midi_device_info out_info; double tstamp; std::deque messages; MidiCallback callback; void *userdata; midi_device () { in = 0; out = 0; callback = 0; userdata = 0; tstamp = 0; out = new RtMidiOut(); in = new RtMidiIn(); } virtual ~midi_device () { if(in) delete in; if(out) delete out; callback = 0; } void push_message(const std::vector< unsigned char > &message, double deltatime) { Locker lock(mutex); tstamp = tstamp + deltatime; messages.push_back(msg_info(message, tstamp)); if(callback) callback(userdata); } private: midi_device (const midi_device &d) {} midi_device & operator== (const midi_device &d) { return *this; } }; static void mycallback( double deltatime, std::vector< unsigned char > *message, void *userData ) { midi_device *mididev = (midi_device *)userData; if (mididev &&message) { mididev->push_message(*message, deltatime); } } int set_midi_callback(midi_device * dev, MidiCallback cb, void *userdata) { Locker lock(mutex); dev->callback = cb; dev->userdata = userdata; return 0; } void close_midi (midi_device * dev) { if (dev) { delete dev; } } midi_device_info get_midi_info (midi_device * dev, bool output) { midi_device_info m; if (dev) { if (output) { m = dev->out_info; } else { m = dev->in_info; } } return m; } midi_device * open_midi (const std::string &inname, const std::string &outname) { midi_device * dev = new midi_device (); try { midi_device_list devs; get_midi_devices(devs); dev->in_info = devs.get_name (inname, false); dev->out_info = devs.get_name (outname, true); if (dev->in_info.isvalid ()) { dev->in->openPort (dev->in_info.devid); dev->in->setCallback( mycallback, (void *)dev ); // Don't ignore sysex, timing, or active sensing messages. dev->in->ignoreTypes( false, false, false ); } if (dev->out_info.isvalid ()) dev->out->openPort (dev->out_info.devid); } catch (RtMidiError &err) { error ("Error opening midi: '%s'", err.getMessage ().c_str ()); delete dev; dev = 0; } return dev; } bool send_midi (midi_device *dev, const unsigned char *data, size_t sz) { if (dev && dev->out) { try { std::vector message (data, data+sz); dev->out->sendMessage (&message); return true; } catch (const RtMidiError &err) { error ("Error getting midi info: '%s'", err.getMessage ().c_str ()); } } return false; } int recv_midi (midi_device *dev, double *ts, unsigned char *data, size_t sz) { Locker lock(mutex); if (dev && dev->in) { if (dev->messages.size() > 0) { msg_info msg = dev->messages.front(); dev->messages.pop_front(); std::vector message = msg.data; if (message.size() > 0) { for (size_t i=0;imessages.size(); } int flush_midi (midi_device *dev) { Locker lock(mutex); dev->messages.erase(dev->messages.begin(), dev->messages.end()); return 1; } bool get_midi_devices (midi_device_list &devs) { bool ok = false; devs = midi_device_list(); RtMidiOut * midiout = 0; RtMidiIn * midiin = 0; try { midiout = new RtMidiOut(); midiin = new RtMidiIn(); size_t numinput = midiin->getPortCount(); size_t numoutput = midiout->getPortCount(); for (size_t i=0; igetPortName(i).c_str(); inf.driver = api_name(midiout->getCurrentApi()); inf.id = i; inf.devid = i; inf.output = true; devs.push_back(inf); } for (size_t i=0; igetPortName(i).c_str(); inf.driver = api_name(midiin->getCurrentApi()); inf.id = numoutput + i; inf.devid = i; inf.output = false; devs.push_back(inf); } ok = true; } catch (const RtMidiError &err) { error ("Error getting midi info: '%s'", err.getMessage ().c_str ()); } if(midiout) delete midiout; if(midiin) delete midiin; return ok; } audio-2.0.8/src/midi.h0000644000000000000000000000412314506546342012703 0ustar0000000000000000// Copyright (C) 2019 John Donoghue // // 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 3 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, see . #ifndef MIDI_H #define MIDI_H #include class midi_device; class midi_device_info { public: midi_device_info() { id=-1; devid=-1; }; virtual ~midi_device_info() {} bool isvalid() const { return id!= -1; } int id; std::string name; bool output; std::string driver; int devid; }; class midi_device_list : public std::vector { public: midi_device_info get_id(int id) const { for(size_t i=0; i // // 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 3 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, see . // Octave Includes #include #ifdef HAVE_CONFIG_H # include "config.h" #endif #include #include "midi_object.h" DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA (octave_midi, "octave_midi", "octave_midi"); void octave_midi::octave_midi_callback (void *userData) { octave_midi * dev = (octave_midi *)userData; if(dev && dev->callback.length() >0) { try { octave_value_list ret = OCTAVE__FEVAL (dev->callback, ovl (dev->callbackdata), 0); } catch (const OCTAVE_EXECUTION_EXCEPTION &e) { #ifdef HAS_OCTAVE_EXCEPTION_MESSAGE warning("midicallback: %s", e.OCTAVE_EXCEPTION_MESSAGE().c_str()); #else warning("midicallback: execution exception occured"); #endif } } } octave_midi::octave_midi () : fieldnames(4) { fieldnames[0] = "Input"; fieldnames[1] = "Output"; fieldnames[2] = "InputID"; fieldnames[3] = "OutputID"; callback = ""; callbackdata = ""; dev = 0; } octave_midi::octave_midi (const octave_midi &m) { fieldnames = m.fieldnames; } octave_midi::~octave_midi (void) { close (); } bool octave_midi::create (const std::string &inname, const std::string &outname) { close (); dev = open_midi (inname, outname); return dev != 0; } bool octave_midi::send (const unsigned char * data, int sz) { return send_midi (dev, data, sz); } int octave_midi::recv (double *ts, unsigned char * data, int sz) { return recv_midi (dev, ts, data, sz); } int octave_midi::set_callback(const std::string &cb, octave_value cbdata) { callback = cb; callbackdata = cbdata; set_midi_callback(dev, octave_midi_callback, this); return 1; } int octave_midi::flush () { return flush_midi (dev); } int octave_midi::stat () { return stat_midi (dev); } void octave_midi::close () { if(dev) close_midi(dev); } octave_base_value * octave_midi::empty_clone (void) const { return new octave_midi(); } octave_base_value * octave_midi::clone (void) const { return new octave_midi (*this); } octave_base_value * octave_midi::unique_clone (void) { OV_COUNT++; return this; } void octave_midi::print (std::ostream& os, bool pr_as_read_syntax) const { print_raw (os, pr_as_read_syntax); newline (os); } void octave_midi::print (std::ostream& os, bool pr_as_read_syntax) { print_raw (os, pr_as_read_syntax); newline (os); } void octave_midi::print_raw (std::ostream& os, bool pr_as_read_syntax) const { os << " mididevice connected to"; newline (os); midi_device_info in = get_midi_info(dev, false); midi_device_info out = get_midi_info(dev, true); if (in.isvalid ()) { os << " input: '" << in.name << "' (" << in.id << ")"; newline(os); } if (out.isvalid ()) { os << " output: '" << out.name << "' (" << out.id << ")"; newline(os); } } octave_value_list octave_midi::subsref (const std::string& type, const std::list& idx, int nargout) { octave_value_list retval; int skip = 1; switch (type[0]) { default: error ("octave_midi object cannot be indexed with %c", type[0]); break; case '.': { std::string propname = (((idx.front()) (0)).string_value ()); if (propname == "Input") retval(0) = get_midi_info(dev, false).name; else if (propname == "Output") retval(0) = get_midi_info(dev, true).name; else if (propname == "InputID") retval(0) = get_midi_info(dev, false).id; else if (propname == "OutputID") retval(0) = get_midi_info(dev, true).id; else error ("octave_midi object unknown property '%s'", propname.c_str()); } break; } if (idx.size () > 1 && type.length () > 1) retval = retval (0).next_subsref (nargout, type, idx, skip); return retval; } octave_value octave_midi::subsasgn (const std::string& type, const std::list& idx, const octave_value& rhs) { octave_value retval; error ("octave_midi object cannot be indexed with %c", type[0]); return retval; } static bool type_loaded = false; void init_types(void) { if (!type_loaded) { octave_midi::register_type (); type_loaded = true; } } audio-2.0.8/src/midi_object.h0000644000000000000000000000562614506546342014242 0ustar0000000000000000// Copyright (C) 2019 John Donoghue // // 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 3 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, see . #ifndef MIDI_OBJECT_H #define MIDI_OBJECT_H // Octave Includes #include #ifdef HAVE_CONFIG_H # include "config.h" #endif #include #include #include #include "midi.h" void init_types(void); class octave_midi : public OCTAVE_BASE_CLASS { public: octave_midi(); ~octave_midi(); bool create(const std::string &inname, const std::string &outname); bool send(const unsigned char *data, int sz); int recv(double *ts, unsigned char *data, int sz); int stat(); int flush(); std::string get_callback() const { return callback; }; int set_callback(const std::string &cb, octave_value cbdata); static void octave_midi_callback(void *d); void close(); /** * Various properties of the octave_base_value datatype. */ bool is_constant (void) const { return true;} bool is_defined (void) const { return true;} bool is_object (void) const { return true; } bool isobject (void) const { return true; } // required to use subsasn string_vector map_keys (void) const { return fieldnames; } dim_vector dims (void) const { static dim_vector dv(1, 1); return dv; } octave_base_value * clone (void) const; octave_base_value * empty_clone (void) const; octave_base_value * unique_clone (void); /** * Overloaded methods to print sock as the zeromq id */ void print (std::ostream& os, bool pr_as_read_syntax = false) const; void print (std::ostream& os, bool pr_as_read_syntax = false); void print_raw (std::ostream& os, bool pr_as_read_syntax) const; /** * overloaded methods to get properties */ octave_value_list subsref (const std::string& type, const std::list& idx, int nargout); octave_value subsref (const std::string& type, const std::list& idx) { octave_value_list retval = subsref (type, idx, 1); return (retval.length () > 0 ? retval(0) : octave_value ()); } octave_value subsasgn (const std::string& type, const std::list& idx, const octave_value& rhs); private: octave_midi(const octave_midi &); midi_device * dev; string_vector fieldnames; std::string callback; octave_value callbackdata; DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA }; #endif // MIDI_OBJECT_H audio-2.0.8/src/midicallback.cc0000644000000000000000000000367614506546342014532 0ustar0000000000000000// Copyright (C) 2022 John Donoghue // // 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 3 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, see . // Octave Includes #include #include #include #include #include #if defined (HAVE_CONFIG_H) # include "config.h" #endif #include "midi_object.h" #include "midi.h" // PKG_ADD: autoload ("__midicallback__", "__midi__.oct"); DEFUN_DLD (__midicallback__, args, nargout, "-*- texinfo -*-\n\ @deftypefn {Package} {} __midicallback__ ()\n \ Internal function for midicallback\n \ \n \ @end deftypefn") { octave_value_list retval; if (1 > args.length ()) { error ("Expected at least a midi device"); return retval; } if (args (0).type_id () != octave_midi::static_type_id ()) { error ("Expected midi device"); return retval; } octave_midi * dev = dynamic_cast(args (0).internal_rep ()); std::string callback = dev->get_callback(); if (args.length () > 2) { if (!args(1).is_string()) { error ("Expected callback as string"); return retval; } // set dev->set_callback(args(1).string_value(), args(2)); } else if (args.length () != 1) { error ("Expected mididevice with optional (callback, data)"); return retval; } retval(0) = callback; return retval; } audio-2.0.8/src/mididevice.cc0000644000000000000000000000401514506546342014221 0ustar0000000000000000// Copyright (C) 2019 John Donoghue // // 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 3 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, see . // Octave Includes #include #include #include #include #include #if defined (HAVE_CONFIG_H) # include "config.h" #endif #include "midi_object.h" #include "midi.h" // PKG_ADD: autoload ("__midi__", "__midi__.oct"); DEFUN_DLD (__midi__, args, nargout, "-*- texinfo -*-\n\ @deftypefn {Package} {@var{dev} = } __midi__()\n \ private stub for octave midi\n \ \n \ @seealso{audio}\n \ @end deftypefn") { return octave_value (); } // PKG_ADD: autoload ("__mididevice__", "__midi__.oct"); DEFUN_DLD (__mididevice__, args, nargout, "-*- texinfo -*-\n\ @deftypefn {Package} {@var{dev} = } __mididevice__(inputdev, outputdev)\n \ private function to create a midi device\n \ \n \ @seealso{mididevice}\n \ @end deftypefn") { if ( 2 != args.length ()) { print_usage(); return octave_value (); } octave_value in_dev = args (0); octave_value out_dev = args (1); std::string in_dev_name = in_dev.is_string () ? in_dev.string_value () : ""; std::string out_dev_name = out_dev.is_string () ? out_dev.string_value () : ""; init_types (); octave_midi * retvalue = new octave_midi (); if ( retvalue->create (in_dev_name, out_dev_name) == false ) { delete retvalue; return octave_value (); } return octave_value (retvalue); } audio-2.0.8/src/mididevinfo.cc0000644000000000000000000000367714506546342014431 0ustar0000000000000000// Copyright (C) 2019 John Donoghue // // 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 3 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, see . // Octave Includes #include #include #include #include #include #include #if defined (HAVE_CONFIG_H) # include "config.h" #endif #include "midi.h" // PKG_ADD: autoload ("__mididevinfo__", "__midi__.oct"); DEFUN_DLD (__mididevinfo__, args, nargout, "-*- texinfo -*-\n\ @deftypefn {Package} {} __mididevinfo__ ()\n \ Internal function to retieve midi devices\n \ @end deftypefn") { octave_value retval; midi_device_list devs; if (get_midi_devices(devs)) { Cell name (dim_vector (1, devs.size())); Cell driver (dim_vector (1, devs.size())); Cell id (dim_vector (1, devs.size())); Cell dir (dim_vector (1, devs.size())); for(size_t i=0; i // // 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 3 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, see . // Octave Includes #include #include #include #include #include #if defined (HAVE_CONFIG_H) # include "config.h" #endif #include "midi_object.h" #include "midi.h" // PKG_ADD: autoload ("__midiflush__", "__midi__.oct"); DEFUN_DLD (__midiflush__, args, nargout, "-*- texinfo -*-\n\ @deftypefn {Package} {} midiflush ()\n \ Internal function for midiflush\n \ \n \ @end deftypefn") { octave_value retval; if (0 == args.length()) { print_usage(); return retval; } if (args (0).type_id () != octave_midi::static_type_id ()) { error ("Expected midi device"); return retval; } octave_midi * dev = dynamic_cast(args (0).internal_rep ()); dev->flush(); return retval; } audio-2.0.8/src/midirecv.cc0000644000000000000000000000362314506546342013725 0ustar0000000000000000// Copyright (C) 2019 John Donoghue // // 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 3 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, see . // Octave Includes #include #include #include #include #include #if defined (HAVE_CONFIG_H) # include "config.h" #endif #include "midi_object.h" #include "midi.h" // PKG_ADD: autoload ("__midirecv__", "__midi__.oct"); DEFUN_DLD (__midirecv__, args, nargout, "-*- texinfo -*-\n\ @deftypefn {Package} {} midirecv ()\n \ iNternal function for midirecv\n \ \n \ @end deftypefn") { octave_value_list retval; if (0 == args.length()) { print_usage(); return retval; } if (1 < args.length ()) { error ("Expected midi device "); return retval; } if (args (0).type_id () != octave_midi::static_type_id ()) { error ("Expected midi device"); return retval; } octave_midi * dev = dynamic_cast(args (0).internal_rep ()); unsigned char buf[1024]; double ts; int ret = dev->recv (&ts, buf, 1024); if(ret > 0) { uint8NDArray data ( dim_vector (1,ret) ); for (int i=0; i // // 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 3 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, see . // Octave Includes #include #include #include #include #include #if defined (HAVE_CONFIG_H) # include "config.h" #endif #include "midi_object.h" #include "midi.h" // PKG_ADD: autoload ("__midisend__", "__midi__.oct"); DEFUN_DLD (__midisend__, args, nargout, "-*- texinfo -*-\n\ @deftypefn {Package} {} midisend ()\n \ Internal function for midisend\n \ \n \ @end deftypefn") { octave_value retval; if (0 == args.length()) { print_usage(); return retval; } if (3 < args.length ()) { error ("Expected midi device and timestamp and data"); return retval; } if (args (0).type_id () != octave_midi::static_type_id ()) { error ("Expected midi device"); return retval; } octave_midi * dev = dynamic_cast(args (0).internal_rep ()); octave_value ts = args(1); octave_value data = args(2); uint8NDArray v = data.uint8_array_value(); OCTAVE_LOCAL_BUFFER (uint8_t, buf, v.numel ()); if (!buf) error ("zeromq: could allocate memory for send message.\n"); else { for(int i=0; isend (buf, data.numel ()); } return retval; } audio-2.0.8/src/midistat.cc0000644000000000000000000000305514506546342013740 0ustar0000000000000000// Copyright (C) 2022 John Donoghue // // 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 3 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, see . // Octave Includes #include #include #include #include #include #if defined (HAVE_CONFIG_H) # include "config.h" #endif #include "midi_object.h" #include "midi.h" // PKG_ADD: autoload ("__midistat__", "__midi__.oct"); DEFUN_DLD (__midistat__, args, nargout, "-*- texinfo -*-\n\ @deftypefn {Package} {} __midistat__ ()\n \ Internal function for midi hasdata\n \ \n \ @end deftypefn") { octave_value_list retval; if (1 < args.length ()) { error ("Expected midi device "); return retval; } if (args (0).type_id () != octave_midi::static_type_id ()) { error ("Expected midi device"); return retval; } octave_midi * dev = dynamic_cast(args (0).internal_rep ()); int ret = dev->stat(); retval(0) = ret ? true : false; return retval; } audio-2.0.8/src/pkglock.cc0000644000000000000000000000265614506546342013562 0ustar0000000000000000// Copyright (C) 2020 John Donoghue // // 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 3 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, see . #include #include #include #ifdef HAVE_CONFIG_H # include "config.h" #endif // PKG_ADD: autoload ("__audio_pkg_lock__", "__midi__.oct"); // PKG_ADD: __audio_pkg_lock__(1); // PKG_DEL: __audio_pkg_lock__(0); #ifdef DEFMETHOD_DLD DEFMETHOD_DLD (__audio_pkg_lock__, interp, args, , "internal function") { octave_value retval; if (args.length () >= 1) { if (args(0).int_value () == 1) interp.mlock(); else if (args(0).int_value () == 0 && interp.mislocked("__audio_pkg_lock__")) interp.munlock("__audio_pkg_lock__"); } return retval; } #else DEFUN_DLD(__audio_pkg_lock__, args, , "internal function") { octave_value retval; return retval; } #endif audio-2.0.8/src/undef-ah-octave.h0000644000000000000000000000070614506546342014732 0ustar0000000000000000/* To be included at the top of config.h (by autoheader). Avoid warnings for redefining AH-generated preprocessor symbols of Octave. */ #ifdef PACKAGE_BUGREPORT #undef PACKAGE_BUGREPORT #endif #ifdef PACKAGE_NAME #undef PACKAGE_NAME #endif #ifdef PACKAGE_STRING #undef PACKAGE_STRING #endif #ifdef PACKAGE_TARNAME #undef PACKAGE_TARNAME #endif #ifdef PACKAGE_URL #undef PACKAGE_URL #endif #ifdef PACKAGE_VERSION #undef PACKAGE_VERSION #endif