audio-2.0.9/0000755000000000000000000000000014674530753007567 5ustar00audio-2.0.9/.hgignore0000644000000000000000000000112414674530753011370 0ustar00syntax: 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.9/COPYING0000644000000000000000000010451314674530753010626 0ustar00 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.9/DESCRIPTION0000644000000000000000000000065114674530753011277 0ustar00Name: audio Version: 2.0.9 Date: 2024-09-23 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.9/INDEX0000644000000000000000000000073214674530753010363 0ustar00audio >> 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 Domain Conversion bark2hz erb2hz mel2hz hz2bark hz2erb hz2mel phon2sone sone2phon audio-2.0.9/Makefile0000644000000000000000000003022314674530753011227 0ustar00## 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 MAKEINFO_HTML_OPTIONS := --no-headers --set-customization-variable 'COPIABLE_LINKS 0' --set-customization-variable 'COPIABLE_ANCHORS 0' --no-split # 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" ") pkg_year := $(shell $(GREP) "^Date: " DESCRIPTION | $(CUT) -f2 -d" " | $(CUT) -f1 -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)" >> $@ @echo "@set YEAR $(pkg_year)" >> $@ 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 $(MAKEINFO_HTML_OPTIONS) $(package).texi doc/$(package).qhc: doc/$(package).html ifeq ($(QHELPGENERATOR),true) $(warning No QHELPGENERATOR ... skipping QT doc build) else # 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 endif 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.9/NEWS0000644000000000000000000000675614674530753010304 0ustar00Summary of important user-visible changes for releases of the audio package =============================================================================== audio-2.0.9 Release Date: 2024-09-23 =============================================================================== ** minor bug fixes ** minor updates to documentation ** NEW FUNCTIONS: - phone2sone - sone2phone =============================================================================== 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.9/README.md0000644000000000000000000000227614674530753011055 0ustar00Introduction ============ 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.9/doc/0000755000000000000000000000000014674530753010334 5ustar00audio-2.0.9/doc/audio.css0000644000000000000000000000133714674530753012153 0ustar00pre.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.9/doc/audio.html0000644000000000000000000036036314674530753012336 0ustar00 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.9.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 between audio domains:

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

phon2sone, sone2phone

Conversion between sone and phon loudness 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 Domain Conversion

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.

3.6.7 phon2sone

: sone = phon2sone (phon)
: sone = phon2sone (phon, standard)

Convert from phon to sone

Inputs

phon - Loudness level in phon

standard - Standard to use in conversion. Options are ’ISO 532-1’ or ’ISO 532-2’.

’ISO 532-1’ is used if no standard is provided.

Outputs

sone - Loudness level in sone

Examples

Convert 100 phon to sone

sone = phon2sone(100)

References

International Organization for Standardization., ISO 532-1 Acoustics – Methods for calculating loudness – Part 1: Zwicker method.

International Organization for Standardization., ISO 532-2 Acoustics – Methods for calculating loudness – Part 2: Moore-Glasberg method.

https://sengpielaudio.com/calculatorSonephon.htm

See also: sone2phon.

3.6.8 sone2phon

: phon = sone2phon (sone)
: phon = sone2phon (sone, standard)

Convert from sone to phon.

Inputs

sone - Loudness level in sone

standard - Standard to use in conversion. Options are ’ISO 532-1’ or ’ISO 532-2’.

’ISO 532-1’ is used if no standard is provided.

Outputs

sone - Loudness level in sone

Examples

Convert 100 sone to phon

phon = sone2phon(100)

References

International Organization for Standardization., ISO 532-1 Acoustics – Methods for calculating loudness – Part 1: Zwicker method.

International Organization for Standardization., ISO 532-2 Acoustics – Methods for calculating loudness – Part 2: Moore-Glasberg method.

https://sengpielaudio.com/calculatorSonephon.htm

See also: sone2phon.


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   D   E   F   H   I   L   M   O   P   S   W  
Index EntrySection

A
audioOscillatorWaveform Generation

B
bark2hzDomain Conversion
Basic Usage OverviewBasic Usage Overview

C
Conversion FunctionalityBasic Usage Overview
copyrightCopying

D
Domain ConversionDomain Conversion

E
EnumerationsEnumerations
erb2hzDomain Conversion

F
Function ReferenceFunction Reference

H
hasdataMIDI Device Interface
hz2barkDomain Conversion
hz2erbDomain Conversion
hz2melDomain Conversion

I
Installing and loadingInstalling and loading
ismidifileMIDI File I/O

L
LoadingInstalling and loading

M
mel2hzDomain Conversion
MIDI Controller InterfaceMIDI Controller Interface
MIDI Device InterfaceMIDI Device Interface
MIDI File I/OMIDI File I/O
MIDI FunctionalityBasic Usage Overview
midicallbackMIDI Controller Interface
midicontrolsMIDI Controller Interface
midideviceMIDI Device Interface
mididevinfoMIDI Device Interface
midifileinfoMIDI File I/O
midifilereadMIDI File I/O
midifilewriteMIDI File I/O
midiflushMIDI Device Interface
midiidMIDI Controller Interface
midimsgMIDI Device Interface
midimsgtypeEnumerations
midireadMIDI Controller Interface
midireceiveMIDI Device Interface
midisendMIDI Device Interface
midisyncMIDI Controller Interface

O
Off-line installInstalling and loading
Online installInstalling and loading

P
phon2soneDomain Conversion

S
sone2phonDomain Conversion

W
warrantyCopying
Waveform GenerationBasic Usage Overview
Waveform GenerationWaveform Generation
Windows installInstalling and loading

audio-2.0.9/doc/audio.info0000644000000000000000000022323614674530753012322 0ustar00This is audio.info, produced by makeinfo version 7.1 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.9.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 between audio domains: 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 phon2sone, sone2phone Conversion between sone and phon loudness 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:: * Domain Conversion::  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: Domain Conversion, 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: Domain Conversion, Prev: Waveform Generation, Up: Function Reference 3.6 Domain Conversion ===================== 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. 3.6.7 phon2sone --------------- -- : SONE = phon2sone (PHON) -- : SONE = phon2sone (PHON, STANDARD) Convert from phon to sone Inputs ...... PHON - Loudness level in phon STANDARD - Standard to use in conversion. Options are 'ISO 532-1' or 'ISO 532-2'. 'ISO 532-1' is used if no standard is provided. Outputs ....... SONE - Loudness level in sone Examples ........ Convert 100 phon to sone sone = phon2sone(100) References .......... International Organization for Standardization., ‘ISO 532-1 Acoustics – Methods for calculating loudness – Part 1: Zwicker method.’ International Organization for Standardization., ‘ISO 532-2 Acoustics – Methods for calculating loudness – Part 2: Moore-Glasberg method.’ https://sengpielaudio.com/calculatorSonephon.htm See also: sone2phon. 3.6.8 sone2phon --------------- -- : PHON = sone2phon (SONE) -- : PHON = sone2phon (SONE, STANDARD) Convert from sone to phon. Inputs ...... SONE - Loudness level in sone STANDARD - Standard to use in conversion. Options are 'ISO 532-1' or 'ISO 532-2'. 'ISO 532-1' is used if no standard is provided. Outputs ....... SONE - Loudness level in sone Examples ........ Convert 100 sone to phon phon = sone2phon(100) References .......... International Organization for Standardization., ‘ISO 532-1 Acoustics – Methods for calculating loudness – Part 1: Zwicker method.’ International Organization for Standardization., ‘ISO 532-2 Acoustics – Methods for calculating loudness – Part 2: Moore-Glasberg method.’ https://sengpielaudio.com/calculatorSonephon.htm See also: sone2phon.  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: Domain Conversion. (line 9) * Basic Usage Overview: Basic Usage Overview. (line 6) * Conversion Functionality: Basic Usage Overview. (line 20) * copyright: Copying. (line 6) * Domain Conversion: Domain Conversion. (line 5) * Enumerations: Enumerations. (line 5) * erb2hz: Domain Conversion. (line 34) * Function Reference: Function Reference. (line 6) * hasdata: MIDI Device Interface. (line 9) * hz2bark: Domain Conversion. (line 58) * hz2erb: Domain Conversion. (line 89) * hz2mel: Domain Conversion. (line 122) * Installing and loading: Installing and loading. (line 6) * ismidifile: MIDI File I/O. (line 9) * Loading: Installing and loading. (line 57) * mel2hz: Domain Conversion. (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 47) * 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) * phon2sone: Domain Conversion. (line 179) * sone2phon: Domain Conversion. (line 222) * warranty: Copying. (line 6) * Waveform Generation: Basic Usage Overview. (line 34) * Waveform Generation <1>: Waveform Generation. (line 5) * Windows install: Installing and loading. (line 25)  Tag Table: Node: Top193 Node: Installing and loading651 Node: Basic Usage Overview2415 Node: Function Reference4764 Node: MIDI Device Interface5133 Node: MIDI Controller Interface16531 Node: MIDI File I/O21434 Node: Enumerations24019 Node: Waveform Generation25304 Node: Domain Conversion27683 Node: Copying32702 Node: Index70218  End Tag Table  Local Variables: coding: utf-8 End: audio-2.0.9/doc/audio.pdf0000644000000000000000000074674314674530753012155 0ustar00%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˸}˫\?겭^ORe @4&̴j]uWBc&  1_q=M2;&mACw츀Sv9]ՙ> stream xڍSn0+tHE|#r* HAQ.]r~F p;;;fQ?yT7n&kT??Ge5LyNyVӌC뫼_+1-+\L}V]gyM8fw*/zHdIRi4Qª]4Zˌjq<y[!`5&L?CTZQ/{,͋jBG%*:%=]1b|ܲhW䤺3AmKr'~ )+uفWeVuARc%oTxH4r.qivER6|à!}8$Bt S2Hָ+ s'fGz{sm4, k}^(jڀ!am[;0P KXG E0@Wq#@ՆLLmº6ALD SxOcV0Lr41.]).j,8!7pJbWj$`AҾG1=1vA"^$x8yInk[{7_ endstream endobj 19 0 obj << /Length 1052 /Filter /FlateDecode >> stream xڕVKo6WVXC[HТh=-XEԖ =ȎS0`f#dI)(nTlwYvĤssO4yKVܭLJ2[a/WݏUh<- Y9s(W,]+VsU ag}+Ud+A,JT:E7 #}&,AM E.(Ҳnl>+mQlbUs臱Z*ծ5TDñk5*PQz"%TdScpCn '[7|M| EYVPc"󴒍+@(=)+G-Cht۶Bt0WK]9LUQU&cyT&XnO}%aZx&6 [[wf K.j$_ :ڄfԾ <{kHv " Y$Ņa+ lȹ "raDK\#iCn k[59ѽ;Lr TK s"P.KF1KPFEd; 7N! v afyi |rz};Ւ9 eW#'5 ,5Wͩ+8Gc֧ 3Ϣt>xJeyi/ϛ5L حq9D<%nsr]OϓpC#|Ů+vO?NSݗ8{Hc@*e RЮI7u:41֚Lr6dH;]_̹7Рe endstream endobj 117 0 obj << /Length 3349 /Filter /FlateDecode >> stream x[s)H=b/Ԥ=Τu*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h73-R9 caE 뼥4JAإ'(Yxгuϙ M'^@6C:0*]`dqL3:СUD0nwhS& m.y}_&z>0\T%6Mؐ@^{T+dDw-W/PӁ :aq])~cpMOXWn*]57>Ϙ5zZb,Z"C-CEFb?&`]"[765/CehVP>jjQXY^`R|]F邯y(c(ukD B[OuEY{**tyzW|P+[͜VvTYg.[Gb <C>^xKp* tcBnlotExhsd%QO*Bo8=zAm|c{MhOLE ~j}l+秳b:χx{o}xytp;{#ܓ6J%v/P r nG`1NM>KNj6MƗv4?'|?Ά_Ÿ3O鄗|̧|[$v,~p V.378^߃#'? "9⯂X^73L)?,Ji?M/g3¿RNOFl4=3>G|< 2+K{/77?l$u+6O?߃ԟMNH]+;mG,s6ѽ'o#G=vf#iđ5qd6Q!J !ZoIEz#F {q 95L m=r-WY;p a5z~lLtz~>Dx8r>qQ|Yyz 4[E:Jg-#3 Ӓ}rF6iтt >K x*e>XI<:6H~D"NS{=t|&0G[8}4[ԳS]zH6NN+aU`%X2ervÇSkg6%*9 |*wIVѕ6 Vv$VYeXz-,نR ,V.V2`5*Ye`,`հ4[7-0RۉDCXdc.]aaIuD%QW&(X%Ee]Ѯ_X endstream endobj 500 0 obj << /Producer (pdfTeX-1.40.25) /Creator (TeX) /CreationDate (D:19700101000000Z) /ModDate (D:19700101000000Z) /Trapped /False /PTEX.Fullbanner (This is pdfTeX, Version 3.141592653-2.6-1.40.25 (TeX Live 2023/Fedora 40) kpathsea version 6.3.5) >> endobj 487 0 obj << /Type /ObjStm /N 42 /First 363 /Length 1216 /Filter /FlateDecode >> stream xڥWKo6W1|A6i bAMC-/l'IӒC8mI*8J3!4^%2)=Z0EkIi+gVYӸ9V1-H< ?sLH9Ev&,b*1P?6V9ڊ(BB0FV$F`.2-@ DP}Ldl;2xBl=ql$qم@R o}>|;`]S(c9ns)fקJPI"8jUTaMbVMKױbu5R-aƐe1$y 0,|&TbWyQ3/y!'Kv*X,SJռVK)}5iGڗGǔG?\TykX`I,q]`),XPr$`)X0%O*XuQQKuWd>\vDb];)NDԮev)P1eM>$ZOMՃYڬM1oJt j=h]ٷ.̭S#J]yPځŮy]3y-`pAWJՕh|+PC4Nl6yzlžuq)3>M6 '2 '[IA Q_|8bN2AR3eC"P+Y+F,ۧ9/fhvomro_ %Mv}0n;i ukxw?x{{T1<0N#gYvۜ^O"ɲRa=em{R/oIa]ÎewTI} ,a0]ǜÜ޴[x6{Rozl=Q3CU_k|R_U~De;bMPnak`]7 秇N *>#ė}w?agWWlqA_`/l-n{{?ԭ endstream endobj 501 0 obj << /Type /XRef /Index [0 502] /Size 502 /W [1 3 1] /Root 499 0 R /Info 500 0 R /ID [ ] /Length 1200 /Filter /FlateDecode >> stream x%KOU:Z.-Җ^w-kB)PZZzZJ&؁4quhtvL9cy<ٗgoY^TQ;o%zոj< 82(hnX zPWGfu(UlF\#& Z 6A'8#(8N. NS4 ` !0 ΂0 @ pEp L *,to -p,;.X}<+`<U hpkYMqW ,p5l;C(8N3` /޺ہeT%z* ƨՕzN"2VFi aXd.3L!Z6gmiU }>"ƑzqH-gUh-GZ)>1VԑV`vt嬪~q:Ic`NgOYnZQ" Ĉ "ryvH"׽ΈJ Tb[CI5FNL%0%HHQe,׉TT)&" j+n)bH1UwXPjq>xP{.Cv7ܭҪZv=չUόv6"f&u`4v{بnjs{"Q< :^[#noN(v ~NKn^Un|\iIEJ`ɡ _(㋸#s=9i )4'84ˬ8t̹V%ؼ_kn/H+@קzʃ MZT/?}>V#@Km8ҹ2!gReIg,ɍv$7XwZ_FLtLkis$wZ=d,ɝn$2oyK򔗿\U"'Ӿ2?Y%>*][+ ?SheF_~јhT{kO}Mxy}{yF ^~R#/;^\iFiNf _t{ ?KB endstream endobj startxref 247859 %%EOF audio-2.0.9/doc/audio.qch0000644000000000000000000026000014674530753012130 0ustar00SQLite format 3@ .v  oA $ 3 ? oX''qtableMetaDataTableMetaDataTableCREATE TABLE MetaDataTable(Name Text, Value BLOB )t ##/tableFolderTableFolderTableCREATE TABLE FolderTable(Id INTEGER PRIMARY KEY, Name Text, NamespaceID INTEGER )| ''7tableFileNameTableFileNameTable CREATE TABLE FileNameTable (FolderId INTEGER, Name TEXT, FileId INTEGER, Title TEXT )t ++tableFileFilterTableFileFilterTable CREATE TABLE FileFilterTable (FilterAttributeId INTEGER, FileId INTEGER )f '' tableFileDataTableFileDataTable CREATE TABLE FileDataTable (Id INTEGER PRIMARY KEY, Data BLOB ) 77#tableFileAttributeSetTableFileAttributeSetTable CREATE TABLE FileAttributeSetTable (Id INTEGER, FilterAttributeId INTEGER )33/tableContentsFilterTableContentsFilterTable CREATE TABLE ContentsFilterTable (FilterAttributeId INTEGER, ContentsId INTEGER ){''5tableContentsTableContentsTableCREATE TABLE ContentsTable (Id INTEGER PRIMARY KEY, NamespaceId INTEGER, Data BLOB )x--#tableIndexFilterTableIndexFilterTableCREATE TABLE IndexFilterTable (FilterAttributeId INTEGER, IndexId INTEGER ) !! tableIndexTableIndexTableCREATE TABLE IndexTable (Id INTEGER PRIMARY KEY, Name TEXT, Identifier TEXT, NamespaceId INTEGER, FileId INTEGER, Anchor TEXT )h##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 )h)) tableNamespaceTableNamespaceTableCREATE TABLE NamespaceTable (Id INTEGER PRIMARY KEY,Name TEXT ) 9octave.community.audio     eM-gE# q [ E /   sone2phonsone2phon phon2sonephon2sone 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   (audio.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 instal     %NxMn0>œP7($A6,r'VrL ,=KOVHPJXff7󜧔z:M RI\O0 ʚ%(qBieU#:W$$qƀj UmPZ/O pd]p*yx3b_@tv4tAx)vW?-0u}(|=_ W2JY`Ov"MOg^|]+jl C{1 ej yC{#8O-ăs';<zxrH0OÉvIlWUdƧfdI#HIcFYþ7'8)RRԏ$r也try|թ?BR%b0?_|s~g+e95wwwFyѮ^j׃LD?멿UݛαKTuDLtJ܅Y(,*TCie\;%$բj}JK1Vc]$s9Qo:2qNTktfHF:+U^YKj4S =b"K8 $fEUh'QFDLe~^qZ t#^L#X@x(*/*4/Yzި@ŏb*^>2=Fm;A=7؜X}US긗W*Tқ{c).>e)3V p\Ha[:L7$q&y);g8&lf,/ TN?u;GҼi]jFpUNPE 8y:2Y©zvr&h*ip qCDy E;9ܕ8C4Oԭ@yg_Ca,m2\NB\o;^ zP_rnr8Pqnw{vd8`;8ܭ2OҤq#ջS`^w |.GTaR YZ,6 V.Gy2s +_-ǂe Zp)v~ԻVCUzNH:q`(kh}٧%+^DVdrؿN$7KRYZ>渳/sӀ6܀#@'+p;"xBì2Zw;{)܃Q#ݼsN / ;NVШ<8!kGt`Dž2U,F60!!22T[{ iާ}}g+$M4Y Qdɽ*1:~~oLΐ\6"|YfJ^> R'6 `;?Y@#9!Ho >["-\{})jӼ07a"|<1#*>4u&,`W$G/KYF@9 /Y4Ms`=d'-u Oܠ7 /A.zo0>^p'}O⥠_0QY^ ЩWY =|'=L:?0:?~]AhO{k?_|Aƽ4V?*Gөʓ8B &3]LYi#<:M;ϸMc9Sagf}bN.0@^٢o$M*SSU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#dہ*8sU '*ÉOT|Y卝./棞̓^)HS=,;FI ?LM3;I<g16~? 0l $A>#xlhs<˿j[@G͞:Y˨4޳Vi@@Ɵ:3>Q 3_TGD?C`'_I>t) r_τ)/~=@ijW?ʌy3= )#Q4vbFy*bbF?~QEOC8֮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 audioOscillator8audio.html#Domain-Conversion*3.6 Domain Conversion$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(audio.html#phon2sone3.6.7 phon2sone(audio.html#sone2phon3.6.8 sone2phon$audio.html#CopyingJAppendix A GNU General Public License audio.html#Index Indexaudio-2.0.9/doc/audio.qhc0000644000000000000000000030000014674530753012123 0ustar00SQLite format 3@ ##.v $  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%CreationTimefJ) HideAddressBar- EnableAddressBarA EnableDocumentationManager; HideFilterFunctionality? EnableFilterFunctionality*-;LastRegisterTime2024-09-24T08:36:26.779 ?Z~?k9FullTextSearchFallback%CreationTime)HideAddressBar-EnableAddressBarAEnableDocumentationManager;HideFilterFunctionality?EnableFilterFunctionality- LastRegisterTime  audio.cssaudio.css: !caudio.htmlOctave Audio - Audio Toolkit for GNU octave  iR3tS2 q \ G ,  sone2phonsone2phon phon2sonephon2sone 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  (audio.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 instal      % 3audio.qch`2024-09-24T08:36:26   doc   l>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 audioOscillator8audio.html#Domain-Conversion*3.6 Domain Conversion$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(audio.html#phon2sone3.6.7 phon2sone(audio.html#sone2phon3.6.8 sone2phon$audio.html#CopyingJAppendix A GNU General Public License audio.html#Index Indexaudio-2.0.9/doc/audio.texi0000644000000000000000000001671714674530753012344 0ustar00\input texinfo @c -*-texinfo-*- @c Copyright (c) 2019-2024, 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-@value{YEAR} 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 between audio domains: @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 @item phon2sone, sone2phone Conversion between sone and phon loudness 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.9/doc/functions.texi0000644000000000000000000007436514674530753013256 0ustar00@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 Domain Conversion @section Domain Conversion @cindex Domain Conversion @c Domain Conversion 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 Domain Conversion 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 Domain Conversion 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 Domain Conversion 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 Domain Conversion 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 Domain Conversion 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 @c Domain Conversion phon2sone @c ----------------------------------------- @subsection phon2sone @cindex phon2sone @deftypefn {} {@var{sone} =} phon2sone (@var{phon}) @deftypefnx {} {@var{sone} =} phon2sone (@var{phon}, @var{standard}) Convert from phon to sone @subsubheading Inputs @var{phon} - Loudness level in phon @var{standard} - Standard to use in conversion. Options are 'ISO 532-1' or 'ISO 532-2'. 'ISO 532-1' is used if no standard is provided. @subsubheading Outputs @var{sone} - Loudness level in sone @subsubheading Examples Convert 100 phon to sone @example @code{sone = phon2sone(100)} @end example @subsubheading References International Organization for Standardization., @cite{ISO 532-1 Acoustics – Methods for calculating loudness – Part 1: Zwicker method.} International Organization for Standardization., @cite{ISO 532-2 Acoustics – Methods for calculating loudness – Part 2: Moore-Glasberg method.} https://sengpielaudio.com/calculatorSonephon.htm @xseealso {sone2phon} @end deftypefn @c Domain Conversion sone2phon @c ----------------------------------------- @subsection sone2phon @cindex sone2phon @deftypefn {} {@var{phon} =} sone2phon (@var{sone}) @deftypefnx {} {@var{phon} =} sone2phon (@var{sone}, @var{standard}) Convert from sone to phon. @subsubheading Inputs @var{sone} - Loudness level in sone @var{standard} - Standard to use in conversion. Options are 'ISO 532-1' or 'ISO 532-2'. 'ISO 532-1' is used if no standard is provided. @subsubheading Outputs @var{sone} - Loudness level in sone @subsubheading Examples Convert 100 sone to phon @example @code{phon = sone2phon(100)} @end example @subsubheading References International Organization for Standardization., @cite{ISO 532-1 Acoustics – Methods for calculating loudness – Part 1: Zwicker method.} International Organization for Standardization., @cite{ISO 532-2 Acoustics – Methods for calculating loudness – Part 2: Moore-Glasberg method.} https://sengpielaudio.com/calculatorSonephon.htm @xseealso {sone2phon} @end deftypefn audio-2.0.9/doc/gpl.texi0000644000000000000000000010433014674530753012012 0ustar00@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.9/doc/macros.texi0000644000000000000000000000624114674530753012516 0ustar00@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.9/doc/mkfuncdocs.py0000755000000000000000000002766114674530753013061 0ustar00#!/usr/bin/python3 ## Copyright 2018-2024 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 ## . ## mkfuncdocs v1.0.8 ## mkfuncdocs.py will attempt to extract the help texts from functions in src ## dirs, extracting only those that are in the specifed INDEX file and output them ## to stdout in texi format ## ## It will extract from both .m and the help text for DEFUN_DLD help in .cc/.cpp ## files. ## ## It attempts to find the help text for each function in a file within the src search ## folders that match in order: [ functionname.m functionname.cc functionname.cpp ## functionname_withoutprefix.cc functionname_withoutprefix.cpp ] ## ## Usage: ## mkfundocs.py options INDEXfile ## Options can be 0 or more of: ## --verbose : Turn on verbose mode ## --src-dir=xxxxx : Add dir xxxxx to the dirs searched for the function file. ## If no directories are provided, it will default to looking in the ## 'inst' directory. ## --ignore=xxxxx : dont attempt to generate help for function xxxxx. ## --funcprefix=xxxxx : remove xxxxx from the function name when searching for matching ## source file. ## --allowscan : if can not find function, attemp to scan .cc,cpp,cxx files for match ## ## --standalone : generate a texinfo file expected to be used with being included in ## another document file. import sys import os import re import tempfile import shutil import fnmatch import subprocess import glob import calendar; import time; class Group: name = "Functions" functions = [] def __init__ (self, name=""): if name: self.name = name self.functions = [] class Index: name = "" groups = [] def texify_line(line): # convert any special chars in a line to texinfo format # currently just used for group formatting ? line = line.replace("@", "@@") line = line.replace("{", "@{") line = line.replace("}", "@}") line = line.replace(",", "@comma{}") return line def find_defun_line_in_file(filename, fnname): linecnt = 0 defun_line=re.compile(r"^DEFUN_DLD\s*\(\s*{}".format(fnname)) with open(filename, 'rt') as f: for line in f: if re.match(defun_line, line): return linecnt linecnt = linecnt + 1 return -1 def find_function_line_in_file(filename, fnname): linecnt = 0 func = False defun_line=re.compile(r"^\s*function \s*") with open(filename, 'rt') as f: for line in f: if func == True: x = line.strip() if x.startswith("## -*- texinfo -*-"): return linecnt else: func = False if re.match(defun_line, line): if line.find("=") != -1: x = line.split("=") x = x[-1] else: x = line.replace("function ", "") x = x.split("(") x = x[0].strip() if x == fnname: func = True linecnt = linecnt + 1 return -1 def read_m_file(filename, skip=0): help = [] inhelp = False havehelp = False; with open(filename, 'rt') as f: for line in f: line = line.lstrip() if skip > 0: skip = skip - 1 elif not havehelp: if havehelp == False and inhelp == False and line.startswith('##'): if "texinfo" in line: inhelp = True elif inhelp == True: if not line.startswith('##'): inhelp = False havehelp = True else: if line.startswith("## @"): line = line[3:] else: line = line[2:] help.append (line.rstrip()); return help def read_cc_file(filename, skip=0): help = [] inhelp = False havehelp = False; with open(filename, 'rt') as f: for line in f: line = line.lstrip() if skip > 0: skip = skip - 1 elif not havehelp: if havehelp == False and inhelp == False: if "texinfo" in line: inhelp = True elif inhelp == True: line = line.rstrip() if len(line) > 0 and line[-1] == '\\': line = line[:-1] line = line.rstrip() line = line.replace("\\n", "\n") line = line.replace("\\\"", "\"") if len(line) > 0 and line[-1] == '\n': line = line[:-1] # endif a texinfo line elif line.endswith('")'): line = line[:-2] if line.startswith('{'): inhelp = False havehelp = True else: help.append (line); return help def read_help (filename, skip=0): help = [] if filename[-2:] == ".m": help = read_m_file(filename, skip) else: help = read_cc_file(filename, skip) return help def read_index (filename, ignore): index = Index () with open(filename, 'rt') as f: lines = f.read().splitlines() #print ("read", lines) first = True category = Group() for l in lines: if l.startswith("#"): pass elif first: index.name = l; first = False elif l.startswith(" "): l = l.strip() # may be multiple functions here funcs = l.split() for f in funcs: if f not in ignore: category.functions.append(f); else: # new category name if len(category.functions) > 0: index.groups.append(category) category = Group(l.strip()) # left over category ? if len(category.functions) > 0: index.groups.append(category) return index; def find_class_file(fname, paths): for f in paths: # class constructor ? name = f + "/@" + fname + "/" + fname + ".m" if os.path.isfile(name): return name, 0 # perhaps classname.func format ? x = fname.split(".") if len(x) > 0: zname = x.pop() cname = ".".join(x) name = f + "/" + cname + ".m" if os.path.isfile(name): idx = find_function_line_in_file(name, zname) if idx >= 0: return name, idx name = f + "/@" + cname + "/" + zname + ".m" if os.path.isfile(name): return name, 0 return None, -1 def find_func_file(fname, paths, prefix, scanfiles=False): for f in paths: name = f + "/" + fname + ".m" if os.path.isfile(name): return name, 0 # class constructor ? name = f + "/@" + fname + "/" + fname + ".m" if os.path.isfile(name): return name, 0 name = f + "/" + fname + ".cc" if os.path.isfile(name): return name, 0 name = f + "/" + fname + ".cpp" if os.path.isfile(name): return name, 0 # if have a prefix, remove and try if prefix and fname.startswith(prefix): fname = fname[len(prefix):] name = f + "/" + fname + ".cc" if os.path.isfile(name): return name, 0 name = f + "/" + fname + ".cpp" if os.path.isfile(name): return name, 0 # if here, we still dont have a file match # if allowed to scan files, do that if scanfiles: #sys.stderr.write("Warning: Scaning for {}\n".format(fname)) for f in paths: files = list(f + "/" + a for a in os.listdir(f)) cc_files = fnmatch.filter(files, "*.cc") cpp_files = fnmatch.filter(files, "*.cpp") cxx_files = fnmatch.filter(files, "*.cxx") for fn in cc_files + cpp_files + cxx_files: line = find_defun_line_in_file(fn, fname) if line >= 0: #sys.stderr.write("Warning: Found function for {} in {} at {}\n".format(fname, fn, line)) return fn, line return None, -1 def display_standalone_header(): # make a file that doesnt need to be included in a texinfo file to # be valid print("@c mkfuncdocs output for a standalone function list") print("@include macros.texi") print("@ifnottex") print("@node Top") print("@top Function Documentation") print("Function documentation extracted from texinfo source in octave source files.") print("@contents") print("@end ifnottex") print("@node Function Reference") print("@chapter Function Reference") print("@cindex Function Reference") def display_standalone_footer(): print("@bye") def display_func(name, ref, help): print ("@c -----------------------------------------") print ("@subsection {}".format(name)) print ("@cindex {}".format(ref)) for l in help: print ("{}".format(l)) def process (args): options = { "verbose": False, "srcdir": [], "funcprefix": "", "ignore": [], "standalone": False, "allowscan": False } indexfile = "" for a in args: #print ("{}".format(a)) c=a.split("=") key=c[0] if len(c) > 1: val=c[1] else: val="" if key == "--verbose": options["verbose"] = True; if key == "--standalone": options["standalone"] = True; elif key == "--allowscan": options["allowscan"] = True; elif key == "--src-dir": if val: options["srcdir"].append(val); elif key == "--ignore": if val: options["ignore"].append(val); elif key == "--func-prefix": if val: options["funcprefix"] = val; elif val == "": if indexfile == "": indexfile = key if indexfile == "": raise Exception("No index filename") if len(options["srcdir"]) == 0: options["srcdir"].append("inst") #print "options=", options if options['standalone']: display_standalone_header() idx = read_index(indexfile, options["ignore"]) for g in idx.groups: #print ("************ {}".format(g.name)) g_name = texify_line(g.name) print ("@c ---------------------------------------------------") print ("@node {}".format(g_name)) print ("@section {}".format(g_name)) print ("@cindex {}".format(g_name)) for f in sorted(g.functions): print ("@c {} {}".format(g_name, f)) h = "" filename = "" path = "" if "@" in f: #print ("class func") path = f name = "@" + f ref = f.split("/")[-1] filename, lineno = find_func_file(path, options["srcdir"], options["funcprefix"]) elif "." in f: path = f ref = f.split(".")[-1] name = f.split(".")[-1] filename, lineno = find_class_file(path, options["srcdir"]) if not filename: parts = f.split('.') cnt = 0 path = "" for p in parts: if cnt < len(parts)-1: path = path + "/+" else: path = path + "/" path = path + p cnt = cnt + 1 name = f; ref = parts[-1] filename, lineno = find_func_file(path, options["srcdir"], options["funcprefix"]) elif "/" in f: path = f name = f ref = f.split("/")[-1] filename, lineno = find_func_file(path, options["srcdir"], options["funcprefix"]) else: path = f name = f ref = f filename, lineno = find_func_file(path, options["srcdir"], options["funcprefix"], options['allowscan']) if not filename: sys.stderr.write("Warning: Cant find source file for {}\n".format(f)) else: h = read_help (filename, lineno) if h: display_func (name, ref, h) if options['standalone']: display_standalone_footer() def show_usage(): print (sys.argv[0], "[options] indexfile") if __name__ == "__main__": if len(sys.argv) > 1: status = process(sys.argv[1:]) sys.exit(status) else: show_usage() audio-2.0.9/doc/mkqhcp.py0000755000000000000000000001331314674530753012175 0ustar00#!/usr/bin/python3 ## mkqhcp.py ## Version 1.0.4 ## Copyright 2022-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 ## . import sys import os import re def process(name): with open(name + ".qhcp", 'wt') as f: f.write ('\n') f.write ('\n') f.write (' \n') f.write (' \n') f.write (' \n') f.write (' {0}.qhp\n'.format(name)) f.write (' {0}.qch\n'.format(name)) f.write (' \n') f.write (' \n') f.write (' \n') f.write (' {0}.qch\n'.format(name)) f.write (' \n') f.write (' \n') f.write ('\n') title = name pat_match = re.compile(r".*(?P<title>[^<]+).*") with open(name + ".html", 'rt') as fin: # find html for line in fin: line = line.strip() e = pat_match.match(line) if e: title = e.group("title") break # section h2_match = re.compile(r'.*

]*>(?P[^<]+)</h2>.*') # appendix h2a_match = re.compile(r'.*<h2 class="appendix"[^>]*>(?P<title>[^<]+)</h2>.*') # index h2i_match = re.compile(r'.*<h2 class="unnumbered"[^>]*>(?P<title>[^<]+)</h2>.*') h3_match = re.compile(r'.*<h3 class="section"[^>]*>(?P<title>[^<]+)</h3>.*') h4_match = re.compile(r'.*<h4 class="subsection"[^>]*>(?P<title>[^<]+)</h4>.*') tag_match1 = re.compile(r'.*<span id="(?P<tag>[^"]+)"[^>]*></span>.*') #tag_match2 = re.compile(r'.*<div class="[sub]*section" id="(?P<tag>[^"]+)"[^>]*>.*') tag_match2 = re.compile(r'.*<div class="[sub]*section[^"]*" id="(?P<tag>[^"]+)"[^>]*>.*') tag_match3 = re.compile(r'.*<div class="chapter-level-extent" id="(?P<tag>[^"]+)"[^>]*>.*') tag_match4 = re.compile(r'.*<div class="appendix-level-extent" id="(?P<tag>[^"]+)"[^>]*>.*') tag_match5 = re.compile(r'.*<div class="unnumbered-level-extent" id="(?P<tag>[^"]+)"[^>]*>.*') index_match = re.compile(r'.*<h4 class="subsection"[^>]*>[\d\.\s]*(?P<name>[^<]+)</h4>.*') tag = "top" has_h2 = False has_h3 = False #pat_match = re.compile(r'.*<span id="(?P<tag>[^"])"></span>(?P<title>[.]+)$') with open(name + ".html", 'rt') as fin: with open(name + ".qhp", 'wt') as f: f.write('<?xml version="1.0" encoding="UTF-8"?>\n') f.write('<QtHelpProject version="1.0">\n') f.write(' <namespace>octave.community.{}</namespace>\n'.format(name)) f.write(' <virtualFolder>doc</virtualFolder>\n') f.write(' <filterSection>\n') f.write(' <toc>\n') f.write(' <section title="{} Manual" ref="{}.html">\n'.format(title, name)) # chapters here for line in fin: line = line.strip() e = tag_match1.match(line) if not e: e = tag_match2.match(line) if not e: e = tag_match3.match(line) if not e: e = tag_match4.match(line) if not e: e = tag_match5.match(line) if e: tag = e.group("tag") e = h2_match.match(line) if not e: e = h2a_match.match(line) if not e: e = h2i_match.match(line) if e: if has_h3: f.write(' </section>\n') has_h3 = False if has_h2: f.write(' </section>\n') has_h2 = True f.write(' <section title="{}" ref="{}.html#{}">\n'.format(e.group("title"), name, tag)) e = h3_match.match(line) if e: if has_h3: f.write(' </section>\n') has_h3 = True f.write(' <section title="{}" ref="{}.html#{}">\n'.format(e.group("title"), name, tag)) e = h4_match.match(line) if e: f.write(' <section title="{}" ref="{}.html#{}"></section>\n'.format(e.group("title"), name, tag)) if has_h3: f.write(' </section>\n') if has_h2: f.write(' </section>\n') f.write(' </section>\n') f.write(' </toc>\n') f.write(' <keywords>\n') fin.seek(0) for line in fin: line = line.strip() e = tag_match1.match(line) if not e: e = tag_match2.match(line) if e: tag = e.group("tag") e = index_match.match(line) if e: f.write(' <keyword name="{}" ref="{}.html#{}"></keyword>\n'.format(e.group("name"), name, tag)) f.write(' </keywords>\n') f.write(' <files>\n') f.write(' <file>{}.html</file>\n'.format(name)) f.write(' <file>{}.css</file>\n'.format(name)) f.write(' </files>\n') f.write(' </filterSection>\n') f.write('</QtHelpProject>\n') def show_usage(): print (sys.argv[0], "projname") if __name__ == "__main__": if len(sys.argv) > 1: status = process(sys.argv[1]) sys.exit(status) else: show_usage() ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������audio-2.0.9/doc/version.texi������������������������������������������������������������������������0000644�0000000�0000000�00000000151�14674530753�012711� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������@c autogenerated from Makefile @set VERSION 2.0.9 @set PACKAGE audio @set DATE 2024-09-23 @set YEAR 2024 �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������audio-2.0.9/inst/�����������������������������������������������������������������������������������0000755�0000000�0000000�00000000000�14674530753�010544� 5����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������audio-2.0.9/inst/@octave_midi/����������������������������������������������������������������������0000755�0000000�0000000�00000000000�14674530753�013127� 5����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������audio-2.0.9/inst/@octave_midi/hasdata.m�������������������������������������������������������������0000644�0000000�0000000�00000002342�14674530753�014713� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������## Copyright (C) 2022 John Donoghue <john.donoghue@ieee.org> ## ## 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 ## <https://www.gnu.org/licenses/>. ## -*- 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.9/inst/__load_audio__.m�������������������������������������������������������������������0000644�0000000�0000000�00000002643�14674530753�013623� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������## 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 ## <http:##www.gnu.org/licenses/>. ## -*- texinfo -*- ## @deftypefn {} {} __load_audio__ () ## Undocumented internal function of audio package. ## @end deftypefn ## PKG_ADD: __load_audio__ () function __load_audio__ () # on package load, attempt to load docs try pkg_dir = fileparts (fullfile (mfilename ("fullpath"))); doc_file = fullfile (pkg_dir, "doc", "audio.qch"); doc_file = strrep (doc_file, '\', '/'); 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 endfunction ���������������������������������������������������������������������������������������������audio-2.0.9/inst/__unload_audio__.m�����������������������������������������������������������������0000644�0000000�0000000�00000002665�14674530753�014172� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������## 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 ## <http:##www.gnu.org/licenses/>. ## -*- texinfo -*- ## @deftypefn {} {} __unload_audio__ () ## Undocumented internal function of audio package. ## @end deftypefn ## PKG_DEL: __unload_audio__ () function __unload_audio__ () # on package unload, attempt to unload docs try pkg_dir = fileparts (fullfile (mfilename ("fullpath"))); doc_file = fullfile (pkg_dir, "doc", "audio.qch"); doc_file = strrep (doc_file, '\', '/'); 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 endfunction ���������������������������������������������������������������������������audio-2.0.9/inst/audio.m����������������������������������������������������������������������������0000644�0000000�0000000�00000005225�14674530753�012027� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������## Copyright (C) 2019 John Donoghue <john.donoghue@ieee.org> ## ## 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 ## <https://www.gnu.org/licenses/>. ## -*- 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.9/inst/audioOscillator.m������������������������������������������������������������������0000644�0000000�0000000�00000035102�14674530753�014060� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������## Copyright (C) 2023 John Donoghue <john.donoghue@ieee.org> ## ## 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 ## <https://www.gnu.org/licenses/>. 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) / this.Width -1; endif if this.Width != 1 wavedata(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.9/inst/bark2hz.m��������������������������������������������������������������������������0000644�0000000�0000000�00000003256�14674530753�012273� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������## Copyright (C) 2023 John Donoghue <john.donoghue@ieee.org> ## ## 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 ## <https://www.gnu.org/licenses/>. ## -*- 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.9/inst/data/������������������������������������������������������������������������������0000755�0000000�0000000�00000000000�14674530753�011455� 5����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������audio-2.0.9/inst/data/c_maj_melody.mid��������������������������������������������������������������0000644�0000000�0000000�00000000472�14674530753�014575� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������MThd�����MTrk����X�Y���y����d� @�[��]��!��<PG<�>PG>�@PG@�APGA�CPGC�EPGE�GPGG�HPGH�HPcH� GPcG� EPcE� CPcC� APcA� @Pc@� >Pc>� <Pc<� <PG<�@PG@�CPGC�HPGH�/�MTrk���d�Y���!��0P0�17P7�12P2�17P7�17PG7�5PG5�2PG2�/PG/�0PG0�+PG+�/PG/�0PG0�/�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������audio-2.0.9/inst/data/sample.wav��������������������������������������������������������������������0000644�0000000�0000000�00000103764�14674530753�013470� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������RIFF��WAVEfmt �����"V��D����dataȇ����1�D�P�9�;�5�Q�S�R�S�M�N�H�?�@�L�@�>�7�3�9�4�(�*�1�����K��W�/������� ����� ��������������� � �+��{ roCYm���uSV$):v{dz/�]�p�I� �2�n�����/�aF��I�q!2]+HR2 �( d����F�w�|�O�\����������i��!%�P�� �&�tv_5=(o@O8�m�T�Wu���C�P�Q��#�l����L�9�r�y=Yw}|f%��.`qt&�Z� �8R�� ����m��3����n�����~4�H���d��i��<���v�����>�G��2�@�0�G�l�d�yS<��O�'0mii�p�~ (,HqsN5;d};��iB�`�h����aHuw.,IfkGLjUGU[o�.�Y�Z�H�G�i���� ���*�D�z����:��n�����U�0� �X�����V�5�L���5����9!���������j�)�,�X�g�u�l�U�*��*�#�&���B�K�@�Z���Y�'�0�F�o��n�O�F�)��/�G�Y�/���� �� ��tmuVILfVY]fwnS7;Jh`FH`wr�}vmhn{|}halm[@1E-GMi`H:jmyo~}����%� � �� �*�J�E�B�4�/�!�@�Q�[�a�9�-�4�<�N�`�Q�:�7�R�^�W�P�S�b�a�n�[�X�s�����^�A�G�`�_�S�-�/�Y�q�t�r��������������}�������;�>�]�q�r�W�F�6�$�/�0�+�.�-�8�� �@�P��xptqh���� ��xswtl�������6�B�L�W�j�������� ����')/ckv7 NxV���������T����]�\��eb +I 9QC.:`���L�n�k�v����`�?��2�6�<�-� �|KwpOyC #g?$m 81F9A}2�_�Z�V�i����*X C,5<cZ Cq/ ���n�A��~gA6z ! uEh%fO/ �A]4"Qbew(PA��c-j  *  g V&-  + ; . "e"�H|ojR}unyP! 2�>!?h)[b�C�K'wI1:F9'B6vpT NVm\%yJKoY;T,MiW/_Sl F W�S0 N V [ ) q^�[R%bY tPg @qQ P, g /T.�&&UGdV5S53/Cy1Ekt7oikqj[&)#e`';\ ("=-/24 R)|fkV 2oyhax!:9{9� f0CQ"   & ]�w/ppET}H `%#Z!B ,J  pDbD plnYbj_}L] G kY"O(|+ }%�n`=b!J,5F\<*oB�AK�F+np\  :  6 BoU�`M] 5:B1_a d/>puX!L&�^[ ' p gyi^I @ *9�Le:3h$e"p\{�Y7pJm  N * 9 n|q'p�\cM0jD=JpboqX)wC:-uCE?(�FSI  f g/   _ %�+[BM|^8$3XYv?�GH < | h s m $ %!AF�/#W<> Py}(Hvh2Ua(!`5%1[�#UWVc  ]bP. DH+5#oO* @5kYV/ g t J _ 1�ky: T6[7Jq>Twc�a���O���W�9�0{N�Ay@]B=�:|< N Z +  6     I {�@)Q#^6Z?4 UhC03dm4Y�! gf1q$ztNihF7t_9 ]1�#�a�lD*_[�M�t���:�k�=">;/�� PO>\x<[1~[S Q>,[�qe`R9YRH6k7_"�D�M�]�u�w���������������e�3�-�+�&��� ��.�%�0�+�+�0�,�&�����cJ2$ 9d'�s������=z`2%�����n�\�<��zq|vpQ4>>C!!$&'#67Ac~~����+�-�.�/�'�7�8�F�T�T�X�f�c�\�c�F�8�:�G�M�P�G�Q�Q�>�@�+�M���\�B�4�����yweNTA6&#,� &'  2?ULKT]x{�*�P�k�j�j�{������������������������l�W�C�L�)�%�� � �+�/�)�+��"�+�/�;�T�O�X�Y�E�K�C�,� ���*�.�.�/�4�L�G�Y�M�L�U�Z�U�T�b�_�W�U�\�c�P�R�Y�8�$�.�0�4�5�C�1�!�%� �%��"�#�"� �^YYm~p_(7BA �?= DZYT@FNh���$�:�8�I�@�?�P�s�x�����\�i���������������p��~��u�o�a�Q�G�/��|vqqqbPMgiNAT}� ����:�D�9�7�>�<�f����������(�����b�(�%�<���B5g �)��()7_OQ|I2}zaqTTD.C0[+*x >SPKihhgfl�)�n���+%:4kyM% &mc?'w`>���>���Zq+emjsHt[����3��%�����Q�/�G�5�!����v[Bz0-EEa/dtrW$|fp�)�jmY3^hKe[�NJaoadQu. ~S@���9+r Hjz|U���UwF=c<,�_�.��C�U�G�4SsV+-]ztDiz'%{ VI<t@XL2?JWEiw`g�KC  < w r h \' M;�%]:A-Z� ��Uuq5Fn"�`>xE~t'<=O\eB^P��^�k�q�����e�<%. T mkS.#"?B'3Ii�o 3F �8 @�Q l 8 �K@/Mp.KE2G =L[%P y p W #V_=oJW9_[vbIjs`a�TS'�Q�RbQx9 /| =A@ �/ R2l9[gO=_  p !�og'R*a %fhm  d K@> swkQ�NWT'rErE[(Y��#;X Sb��Wss }?Q >9Q}AwdC#, DVo.o)Q0 �'~,K9cvT ;Z bL*l?  l u  z 7w^xZ�93O+�1m <<�3O$-cHy{oK3�({!&�Z:  wvbj 6g�l]]Y1 Uxq, [:Pb  sa d  ^!H�i6 Wl2V��8Q/zrW�z<f&zeC>_V\pZ^w0W x $ tes/ C�|>j|VM\3G�zq 2  m m 3 % T {C� jn,�^DN kY# �mgMr0v3 4�Inll@EY8Ltl�Fi |nMW D 1G�iU(Fh%4I,{gA}=HK    ]  k m { t    @}~GhH2\�4a=9��NFnI Gu~�_�as4^p R{%SEl^&g'��%Xy :R_&3no M bL�,kxK7cM8Z-Y7�X W >  t ; 2 ^]Gd�nO!=bG+0^m%1���ExuQj20|�:*h$lJ8(;R (q%c(4#"W�5t\ C Y 4Qz(6  5  8�beHqyr|$B5a&BT_r " & dtZ2t]$IcG>^5ad�#xe9I�@�sA #3 xVW{^  e 5=:Aq3[��QX |  m B t l s^@�:S�?!ob4"#G]HR]���C�a@_6d?40 +h�eq@ n6_ np*/}>�{�p�(�Q._O����}�'��+�B�A��~l� �T>a3 �6��i#1n�$�$�<�W�j�l�G� �4�^�U�B��+�}��I'9AZf}xLcC0��~�=��W! (&#\xWM3"+M|oz�1�?�U�T�J�D�@�N�Z�g�]�}�W�!������� �� �iby[JZQP<#*ZRG?F=8QKKSURb[`z� ���!�/�6�D�C�7�8�/�-�-�#��/�,�<�b�g�t�}��r�o��p�����z�Z�c�f�o����z�j��������v�i�Z�R�5�3�;�5�.�.�-�����!�'�>�>�0�:�?�I�D�N�D�G�<�'�-��� � � �~����� �������������� �� ��� ��)�-�#���k�T�?�$����.�2�&�.�!� ����� ������ � �$�$�'�� ������x}|ut~�� ��+�1�9�P�>�H�@�<�=�7�.�.�5�1�1�+�3�8�5�)�%�+��� ����� � �� ��������� ������ ��`��c�=����� �������,�*�������1�!����� � ��� �,���6uq %� �v�'�dv%�z�{�G�~ �z��q��$�M�F� � �%��qGQnKH`{ ���0�H�J�*��'��YQ��D�� K.�o� �m?yya:c!biJy�A�=�3��]AP[pQnN[-Z0D�40no m^}^���m8272@b[& �/D���GAm��~������3�,��j���;^�XFV�'�q1ZV�e�K�_���'M����v1k�e\`?Pu@+F5P}~B- "G<^��,U�K!�����8|v+"��F$\d����m�x����w���������"7 �/��w������I��?�7� �sq$�L�Q���ae� �&� ��%�/�5�E�6�.���O�m�n�X�.���,�A�:�#���/�;�1�)�� �xoq����7�R�{�z��D�� ��C�m��o�T�.�&�,�7�:������ ���!��� �(��P���x�R�K�A�/�wT 3GudVT|�O�r�e�?� � ��"���C�l��j�����I�)�#�L�p�o�K��7$CX`?Ijm_iqpghr~D'.B@@NiR96�7{ �$�H�Q�e�v�����>�������%��nOI~��:7�'-s�p��b�j&Q5sX���0�1��+��)�w��-�*���]����c��%�\�n�i�g�\�/�!��-�U�|��� "��r�k�y�������f�O�8�7�D�I�n����<�K5=4Kjn/&3&}F.7e|wP@Oxsf*D^dKRC|hPRX���|�J���e�LyAx�r�������|*�Pl$����z*HL@IbuXs|���C�ix4,BlrcVG`ac{d) %#0Igr^M* ,1zB/63;AUWZTSGd0=W8�7xagL2 3Leus'a� ObR-H HjC\"[e (��jX#g8e$yne�/}dfG5_i��V��p�e3eJ{stZf:j5sC/8X3oq4#w{z3*wGs�=F \ OM N gI /cm r^ DVi x�J5SZmZ�������n�/�xB31IFv!�X ?o"_A(GXP03OF�� wd; MQQdCO6,Opv.'i9  vy�)�(�H%pnK�`s�.�8V`}?F)*Kq:5mnmx<+YxK+8>Rz? vOl'X$M[xMULd� ;\n"g:n@W > MGtz#\[nHy~-&�K < x u A a�5PzKt-�Q-' ` Bxgg|kY-�M ^XG YoCU "es)E>D{�]'%* A W#[(nfL o~%3Zy Nh�f0+ c k   {tJ�JcbX�>*j=bv`8k� ;)f2.l�z������r�4�GK _uW'Qrwo`gR27I|^lzS6 1 fBNAyu0p Q x�Y~<d q�`L e  P  u <�-%x-L+%v\t�djcUYV#L�u1K kn?h��au)��Z}svYllD %[m1L2  x *|!hFn(�[ mY9  N;S7!RFc:+�D< h , ^  d d ltNH�jYKv�yER�w g @*s`-#������h��`2~SenA\l,6N&Z?ru_h�.} wG5lc G )& <ce>VRi�a> d t  .@n�|AOIkC!k�:F[ZU5�dHVe[TyYRy�����9� +72 (OG y3!8SvC n�W zAj$tG v=�Y:8KDI�k  ] #k�"7j32AZ^i�m%ZP \9 ER s ������e�I9PT?v/Hruj>l,(hax�xgI%v9�jPU X+PKK-\ 8pNJD.93T;B>Y 8 VEZ�+Et:sL:"�<c]w6?/� �OAM4n(�;�2� �E�L�T�`��6{Q'AubMt/" N&)Z-|�Vp} � ut~ z ]q? �~>\YWf r�'}+G:^�<2qXhsC��&�S������Z�&Aj/-qKp'Z ���U%/H9 0&:PkolfX\SzRLMfz �$�T���:wW&h>>Jq�P�MQ'&:IWo{ERY[u?J>:>EUhx��6�\�i��~�z�d�q������g�L�!� �\?2vyX@)  :MZtfdrg\ZTWbsnYR^`LIVH;! 'Ro+�V���E VBh[I5'4f�v�6�cpaVII4+;`k9xl|�"������(�)�/�ZY_RYqfE>AKhijnV4hV+'*-Qo>|��6h4T5,y V0c�.4 ljI�R���TI��T�B�^�}��g�)�xF,'/9\b` +#h;'$[/YQI=NROgi{U(x!;[fhbd_I-uiax[7@Y�/ d C b # > z d W $ �H,�#8$9>=1-M�>$`w;Ou7�w���,l7&# (, )konsW'D;.ei61[cGt6+�GmOv _Zfv 1 @ G pOU"Qd23N$u�qR--'.> Bni� �q8?A*ITL] >jdJ6^gGyIC<58MSdE*Gw1|b-$+[7EJF{C_\b�^T k$!,'G J l #5MVWqVbI2�SKfu3U�=�P&VylE;D�S�#��ud'>??~{E xJ_<~1&)4^^PUC �2  5?=K3 x ( �1=~Li^nI0`L'�txW " W/j`�x�L_?R�ec7�!�+��UT{:aH�\9|+W6-E Ws0xy�4  xrJXe)Ci=x  *� ]5 Q �[xl"p\   Oz�:�QY\K,"A]|)3�=� �l9ni/ X*q)mn�2EA0|V/oFM�mW[ ,OIu5 # �%Dhtm6�D # 8 RB7^�VQE<`|6P%7�'�mC;8^�$�>�#��zXU?/.7FL6 gOmK,> Jis%q/JL�M+*#y 0G �Dn \ ZR�&6uvWbrb[|(:Khx�K  >g2Dq�qrGCBn&va)2������_�>�0������� �P 7\Dnu5s'iQ��yx[HG #  :E _  C D . $ LkQ\9T�*rI 9X3a�{V. }=#_�8lL=<jW}M<]� �&�\���f�(�mM4H?#V  D}V^& X&z:��5e_%  C ; *  gx�6�gkp%O_�!w_m$e�{�"{Q')` v ,O|;�f����i�>����lidYi!kXd{xs|*pN K�)�6�4����)�v��L>GJW}3gRo���-�6NmN?6N/tq}Y�����R�/��%�R���2g|a�n�1��0�K�h�U�%�( (erD�?}~O@0Q~ �&�<�:����&�5�%��jR:*%3FfkW\0!"1FLOWwiTNPYnPSm �2�=�>�I�Q�U�a�]�x�������������������������i�L�D�)�$��~`gc}��#�� ���"�+�(�$�:�U�\�N�Q�9�"�)�.�1���&�2�F�<�.�&�����wc=2<Nebet}wymi{�����)�6�?�T�J�D�8�6�7�3�4�3�)�� ���� ����%�*�4�6�6�<�6�A�C�D�.�5�1�6�<�1�2�"�2�*�&�;�5�)�0�/�(�5�"�������� �;�!�,�;�8�>�C�C�4�4�(�%�!�!�!������wx]L0;BZye^G>J=@NIWouy�������� ����� � ���"�%�!�%�� ���+�-�:�9�>�4�'�&��+�/� �� �2�:�;�4�?�A�2�<�H�>�1�)��#�'�/��� ����������� � �� � ���M����%�eb�$R�N�R.C �O�e�`�/��e]1�����HC{�J�9�1���zw���� �#�3�A�$�������� ���J�e�:������� � �� � ���������%�3��,�O�1��$�)�/�2�-�=���1�A�Z�c�^�P�Q�G�N�\�Z�V�L�6�%�+���������� ���������� ����� ������������7������ ���� � ��#������D�D�-� � ���������zx���� ����� � ����������+�!�&�#�&�2�2�*� ���*�;�.�D�8�9�6�&��#�"����� ��� ���� �� �0��g�1�#� ��+�K�"�e9�w�k�3�� ����B��p�QpK` j9?n��Q��=�?�����6kGZ4-d�4����y�'P4_�'&@uwF+|0AI3'J �}Z#���?�^����]Hn��a�%�i8BO).J3& EbC #�O�$����7���������Mf �i���h�(�g���4�L���V�{I��AR�,�-�+ ��U�|�4��Z�Q�&��= 6 �+�6�-������=��3��~�y��]�"�X��l�=�)�E�M�P�5� ��T��>�x*R��~�6tWMf�)���^�m��Iv���]�0��j���{�!�~� �yM;W��%�<�I�!�]>~8�_�A��cL���/��-8/�>���0���)�&����wW!�fz��� �+�P������B��\�����a�$��������%�+� �'�@�,���3�K�<�������oh��6�Q�D�<�.�1���(�:�-��XQRgXq ��&�*�4�(�;�H�L�P�?�K�9�?�)�$��K�8�nmaH?QXSADC3-#>M\t��=�N�R�3��� �(����!������6������"���%� ���$�� ����� ��� ��� �'�@�X�V�0� ��/�7�Q�D�S�V�G�H�"��&�E�b�i�k�g�d�z�������z����������~�r�j�q����[�@�*�/�4�#��� �� �-��� �{ymg\ZA&kRVO?54,";6-?8T`s+NmqwbEQi ����0�*��� �&�J���Or{GZ,aGX|W@A13Q��p��>pvxvh <h!.CI^nomx}z@zI%xM8d>5DA_qg?1Br ,&:@;-)*` de��,"mu  X F  G I aC h Q ) 1!�-tnm*Q aNR  �3]&�wy 0z�;�6)YfWI~ W&9~�#�'�4�V�e�4�idW2k=,}Rl{rV+!CqSA)�aR 1 j - V @9,5 L�uY-%S9>G^z]HAW ?x�OFJ8ZJ {C>Zhf�xzco$ ]HU^O4�y����b�7� ���Z[?zC ]r/ZqwE �  @ ( _ (,x|4 4 al�9?N "8pj>3D ^�s8%50,mB 5  w6c&�}v EewzeXs.|,k?J���8\]9��h�L�.�yZ! GsJ:yr�^ { $ % ]tX = 1 " ,(]`�ZIn% "; 3Ii)�9 tY_=: F >  \]^�!?.fBD@9N�a�������1��pT -5m&sD! o}5O%�oD Y w H7 C7 JP�)v#( Va:q-�<h!Z]<l+z>�rjMV+h& �g��c^+��1�C0z-h(e rB)J} �c!  { x .p (  !  8v �u5?i=S& 3�)/]m?[ , 4  </6b^� �&xe U�9q?\B���<KMB7���9��q=,8~J=,D:>i[�& j  b VPge6x @>�msW2$AL }[138IEx{^AbQ[�]wvjs?dO9W2����%]f-��K�� 7o bGH*~`Nq+�&   {  ?f+  3 = L I +!�sU"pw?(HYY/$Z�6.!WR@FV�Z�&HoQzM\cD iHM���9Whm:��H� �x0g+E:nYOl[ay#-EK�>:N l U Y # U ' r "IB�LGxjU-$nj[p�(;$ Bc-5.g.9|�!�w lDe N.d>T���QtuliV�u��Co =5r"mA?@>10At/"c >� M ] / b )$ \  ' W i RG|�w< RC<9Hu�qfn]A%)4f$ r78b^�Uq3E< FYc5n@4����)b?��0�>xE}+)Fl]}b}5;GUW E  *  2  * m 8 J ;E�10"gFc4\}l �,"� D^ z 9 EF�4cKu{mrFzBF?-r���'a}:��m�)�3Lt5,UA%&=> S F | 1  h�~?N[Vq.dg[L)�i6h [ P7b�T\PGC-XdSTI*��;YqkA=��0�v Ey%ZX-vPP}[@% � :V)m4   I  #l" ars�@5SmN&!QV=]�s~ j>bu}4Q  3lJ�jOT E&Hx> 7 c$�k����%CF'38HN+�x�0��CV@c zV�V5DfT�- di'xk  �Mjd$ ](~�q;HX[]]kr6;Zv�l�Cz-g}6#8aF Emk+�i������YV"�����f�K�"�eyQ,f�Y���[lVvI4 D-�[��NEZ) Bjsaa��Gq :]zlO+l"��_�!�yb}eB*)O^Tp']5W%�A�>�V�T�t�����i�_�c�J�?�B�6�2�3�#��C�S�y������ $Hda_T[LW>�����~�j�M� �sJ8 ,/S�K�q���|�t�n�������w�g�U�I�8�,�u_<  <Z{�"�'�G�b�w������� ������-9XimA�� ���������p�8��ybN$ ,*4,:F?DOcdlbotv�������� � � �6� �%� �&��� �� �� �����������������audio-2.0.9/inst/erb2hz.m���������������������������������������������������������������������������0000644�0000000�0000000�00000003110�14674530753�012111� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������## Copyright (C) 2023 John Donoghue <john.donoghue@ieee.org> ## ## 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 ## <https://www.gnu.org/licenses/>. ## -*- 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.9/inst/hz2bark.m��������������������������������������������������������������������������0000644�0000000�0000000�00000003415�14674530753�012270� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������## Copyright (C) 2023 John Donoghue <john.donoghue@ieee.org> ## ## 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 ## <https://www.gnu.org/licenses/>. ## -*- 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.9/inst/hz2erb.m���������������������������������������������������������������������������0000644�0000000�0000000�00000003513�14674530753�012120� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������## Copyright (C) 2023 John Donoghue <john.donoghue@ieee.org> ## ## 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 ## <https://www.gnu.org/licenses/>. ## -*- 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.9/inst/hz2mel.m���������������������������������������������������������������������������0000644�0000000�0000000�00000003241�14674530753�012123� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������## Copyright (C) 2023 John Donoghue <john.donoghue@ieee.org> ## ## 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 ## <https://www.gnu.org/licenses/>. ## -*- 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.9/inst/ismidifile.m�����������������������������������������������������������������������0000644�0000000�0000000�00000003764�14674530753�013052� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������## Copyright (C) 2019 John Donoghue <john.donoghue@ieee.org> ## ## 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 ## <https://www.gnu.org/licenses/>. ## -*- 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.9/inst/mel2hz.m���������������������������������������������������������������������������0000644�0000000�0000000�00000002776�14674530753�012137� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������## Copyright (C) 2023 John Donoghue <john.donoghue@ieee.org> ## ## 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 ## <https://www.gnu.org/licenses/>. ## -*- 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.9/inst/midicallback.m���������������������������������������������������������������������0000644�0000000�0000000�00000006302�14674530753�013322� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������## Copyright (C) 2022 John Donoghue <john.donoghue@ieee.org> ## ## 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 ## <https://www.gnu.org/licenses/>. ## -*- 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 <Expected midicontrols object> midicallback(0); ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������audio-2.0.9/inst/midicontrols.m���������������������������������������������������������������������0000644�0000000�0000000�00000017423�14674530753�013437� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������## Copyright (C) 2019-2021 John Donoghue <john.donoghue@ieee.org> ## ## 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 ## <https://www.gnu.org/licenses/>. 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.9/inst/mididevice.m�����������������������������������������������������������������������0000644�0000000�0000000�00000012726�14674530753�013034� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������## Copyright (C) 2019 John Donoghue <john.donoghue@ieee.org> ## ## 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 ## <https://www.gnu.org/licenses/>. ## -*- 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.9/inst/mididevinfo.m����������������������������������������������������������������������0000644�0000000�0000000�00000006410�14674530753�013220� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������## Copyright (C) 2019-2021 John Donoghue <john.donoghue@ieee.org> ## ## 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 ## <https://www.gnu.org/licenses/>. ## -*- 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.9/inst/midifileinfo.m���������������������������������������������������������������������0000644�0000000�0000000�00000012702�14674530753�013362� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������## Copyright (C) 2019-2021 John Donoghue <john.donoghue@ieee.org> ## ## 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 ## <https://www.gnu.org/licenses/>. ## -*- 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.9/inst/midifileread.m���������������������������������������������������������������������0000644�0000000�0000000�00000020377�14674530753�013351� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������## Copyright (C) 2019-2021 John Donoghue <john.donoghue@ieee.org> ## ## 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 ## <https://www.gnu.org/licenses/>. ## -*- 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.9/inst/midifilewrite.m��������������������������������������������������������������������0000644�0000000�0000000�00000017362�14674530753�013570� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������## Copyright (C) 2019-2021 John Donoghue <john.donoghue@ieee.org> ## ## 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 ## <https://www.gnu.org/licenses/>. ## -*- 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.9/inst/midiflush.m������������������������������������������������������������������������0000644�0000000�0000000�00000002663�14674530753�012715� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������## Copyright (C) 2022 John Donoghue <john.donoghue@ieee.org> ## ## 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 ## <https://www.gnu.org/licenses/>. ## -*- 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 <Expected midi device> midiflush(0) �����������������������������������������������������������������������������audio-2.0.9/inst/midiid.m���������������������������������������������������������������������������0000644�0000000�0000000�00000005042�14674530753�012162� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������## Copyright (C) 2019-2021 John Donoghue <john.donoghue@ieee.org> ## ## 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 ## <https://www.gnu.org/licenses/>. ## -*- 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.9/inst/midimsg.m��������������������������������������������������������������������������0000644�0000000�0000000�00000205617�14674530753�012366� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������## Copyright (C) 2019-2021 John Donoghue <john.donoghue@ieee.org> ## ## 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 ## <https://www.gnu.org/licenses/>. 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.9/inst/midimsgtype.m����������������������������������������������������������������������0000644�0000000�0000000�00000021771�14674530753�013265� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������## Copyright (C) 2020-2021 John Donoghue <john.donoghue@ieee.org> ## ## 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 ## <https://www.gnu.org/licenses/>. 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.9/inst/midiread.m�������������������������������������������������������������������������0000644�0000000�0000000�00000003202�14674530753�012475� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������## Copyright (C) 2019 John Donoghue <john.donoghue@ieee.org> ## ## 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 ## <https://www.gnu.org/licenses/>. ## -*- 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.9/inst/midireceive.m����������������������������������������������������������������������0000644�0000000�0000000�00000004121�14674530753�013205� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������## Copyright (C) 2019 John Donoghue <john.donoghue@ieee.org> ## ## 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 ## <https://www.gnu.org/licenses/>. ## -*- 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.9/inst/midisend.m�������������������������������������������������������������������������0000644�0000000�0000000�00000005161�14674530753�012521� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������## Copyright (C) 2019 John Donoghue <john.donoghue@ieee.org> ## ## 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 ## <https://www.gnu.org/licenses/>. ## -*- 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.9/inst/midisync.m�������������������������������������������������������������������������0000644�0000000�0000000�00000003160�14674530753�012541� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������## Copyright (C) 2019 John Donoghue <john.donoghue@ieee.org> ## ## 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 ## <https://www.gnu.org/licenses/>. ## -*- 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.9/inst/phon2sone.m������������������������������������������������������������������������0000644�0000000�0000000�00000006416�14674530753�012644� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������## Copyright (C) 2024 John Donoghue <john.donoghue@ieee.org> ## ## 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 ## <https://www.gnu.org/licenses/>. ## -*- texinfo -*- ## @deftypefn {} {@var{sone} =} phon2sone (@var{phon}) ## @deftypefnx {} {@var{sone} =} phon2sone (@var{phon}, @var{standard}) ## Convert from phon to sone ## ## @subsubheading Inputs ## @var{phon} - Loudness level in phon ## ## @var{standard} - Standard to use in conversion. Options are ## 'ISO 532-1' or 'ISO 532-2'. ## ## 'ISO 532-1' is used if no standard is provided. ## ## @subsubheading Outputs ## @var{sone} - Loudness level in sone ## ## @subsubheading Examples ## Convert 100 phon to sone ## @example ## @code{sone = phon2sone(100)} ## @end example ## ## @subsubheading References ## International Organization for Standardization., @cite{ISO 532-1 Acoustics – Methods for calculating loudness – Part 1: Zwicker method.} ## ## International Organization for Standardization., @cite{ISO 532-2 Acoustics – Methods for calculating loudness – Part 2: Moore-Glasberg method.} ## ## https://sengpielaudio.com/calculatorSonephon.htm ## ## @seealso {sone2phon} ## @end deftypefn function sone = phon2sone(phon, standard='ISO 532-1') if nargin < 1 show_usage() endif if ! (isnumeric(phon) && isreal(phon)) error ("Expected phon as a real scalar or vector"); endif if ! ischar(standard) error ("Expected standard as a string"); endif standard = lower(standard); if standard != 'iso 532-1' && standard != 'iso 532-2' error ("Uknown standard specified - expected 'iso 532-1' or 'iso 532-2'"); endif if standard == 'iso 532-1' idx1 = find(phon<40); idx2 = find(phon>=40); sone(idx1) = (phon(idx1) / 40) .^ 2.642; sone(idx2) = 2 .^ ((phon(idx2) - 40) / 10); else lookup_tbl = [ 0.0 0.001; 2.2 0.004; 4.0 0.008; 5.0 0.010; 7.5 0.019; 10.0 0.031; 15.0 0.073; 20.0 0.146; 25.0 0.26; 30.0 0.43; 35.0 0.67; 40.0 1.00; 45.0 1.46; 50.0 2.09; 55.0 2.96; 60.0 4.14; 65.0 5.77; 70.0 8.04; 75.0 11.2; 80.0 15.8; 85.0 22.7; 90.0 32.9; 95.0 47.7; 100.0 69.6; 105.0 102.0; 110.0 151.0; 115.0 225.0; 120.0 337.6; ]; idx1 = find(phon<0.0); idx2 = find(phon>=0 & phon<120); idx3 = find(phon>=120); sone(idx1) = 0.0; sone(idx2) = interp1(lookup_tbl(:,1), lookup_tbl(:,2), phon(idx2), 'linear'); sone(idx3) = 337.6; endif endfunction %!error phon2sone() %!error phon2sone('a') %!error phon2sone([100], 'invalid') %!assert(phon2sone(80), 16, 100*eps) %!assert(phon2sone(80, 'ISO 532-1'), 16, 100*eps) %!assert(phon2sone(80, 'ISO 532-2'), 15.8, 100*eps) ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������audio-2.0.9/inst/private/���������������������������������������������������������������������������0000755�0000000�0000000�00000000000�14674530753�012216� 5����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������audio-2.0.9/inst/private/getvariable.m��������������������������������������������������������������0000644�0000000�0000000�00000002035�14674530753�014661� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������## Copyright (C) 2019 John Donoghue <john.donoghue@ieee.org> ## ## 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 ## <https://www.gnu.org/licenses/>. ## -*- 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.9/inst/private/readheader.m���������������������������������������������������������������0000644�0000000�0000000�00000002050�14674530753�014455� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������## Copyright (C) 2019 John Donoghue <john.donoghue@ieee.org> ## ## 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 ## <https://www.gnu.org/licenses/>. ## -*- 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.9/inst/private/setvariable.m��������������������������������������������������������������0000644�0000000�0000000�00000002356�14674530753�014703� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������## Copyright (C) 2019 John Donoghue <john.donoghue@ieee.org> ## ## 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 ## <https://www.gnu.org/licenses/>. ## -*- 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.9/inst/private/writeheader.m��������������������������������������������������������������0000644�0000000�0000000�00000001707�14674530753�014704� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������## Copyright (C) 2019 John Donoghue <john.donoghue@ieee.org> ## ## 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 ## <https://www.gnu.org/licenses/>. ## -*- 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.9/inst/sone2phon.m������������������������������������������������������������������������0000644�0000000�0000000�00000006424�14674530753�012643� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������## Copyright (C) 2024 John Donoghue <john.donoghue@ieee.org> ## ## 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 ## <https://www.gnu.org/licenses/>. ## -*- texinfo -*- ## @deftypefn {} {@var{phon} =} sone2phon (@var{sone}) ## @deftypefnx {} {@var{phon} =} sone2phon (@var{sone}, @var{standard}) ## Convert from sone to phon. ## ## @subsubheading Inputs ## @var{sone} - Loudness level in sone ## ## @var{standard} - Standard to use in conversion. Options are ## 'ISO 532-1' or 'ISO 532-2'. ## ## 'ISO 532-1' is used if no standard is provided. ## ## @subsubheading Outputs ## @var{sone} - Loudness level in sone ## ## @subsubheading Examples ## Convert 100 sone to phon ## @example ## @code{phon = sone2phon(100)} ## @end example ## ## @subsubheading References ## International Organization for Standardization., @cite{ISO 532-1 Acoustics – Methods for calculating loudness – Part 1: Zwicker method.} ## ## International Organization for Standardization., @cite{ISO 532-2 Acoustics – Methods for calculating loudness – Part 2: Moore-Glasberg method.} ## ## https://sengpielaudio.com/calculatorSonephon.htm ## ## @seealso {sone2phon} ## @end deftypefn function phon = sone2phon(sone, standard='ISO 532-1') if nargin < 1 show_usage() endif if ! (isnumeric(sone) && isreal(sone)) error ("Expected sone as a real scalar or vector"); endif if ! ischar(standard) error ("Expected standard as a string"); endif standard = lower(standard); if standard != 'iso 532-1' && standard != 'iso 532-2' error ("Uknown standard specified - expected 'iso 532-1' or 'iso 532-2'"); endif if standard == 'iso 532-1' idx1 = find(sone<1); idx2 = find(sone>=1); phon(idx1) = 40 * (sone(idx1) .^ 0.35); phon(idx2) = 40 + (10 * log2(sone(idx2))); else lookup_tbl = [ 0.0 0.001; 2.2 0.004; 4.0 0.008; 5.0 0.010; 7.5 0.019; 10.0 0.031; 15.0 0.073; 20.0 0.146; 25.0 0.26; 30.0 0.43; 35.0 0.67; 40.0 1.00; 45.0 1.46; 50.0 2.09; 55.0 2.96; 60.0 4.14; 65.0 5.77; 70.0 8.04; 75.0 11.2; 80.0 15.8; 85.0 22.7; 90.0 32.9; 95.0 47.7; 100.0 69.6; 105.0 102.0; 110.0 151.0; 115.0 225.0; 120.0 337.6; ]; idx1 = find(sone<0.001); idx2 = find(sone>0.001 & sone<337.6); idx3 = find(sone>=337.6); phon(idx1) = 0.0; phon(idx2) = interp1(lookup_tbl(:,2), lookup_tbl(:,1), sone(idx2), 'linear'); phon(idx3) = 120.0; endif endfunction %!error sone2phon() %!error sone2phon('a') %!error sone2phon([100], 'invalid') %!assert(sone2phon(16), 80, 100*eps) %!assert(sone2phon(16, 'ISO 532-1'), 80, 100*eps) %!assert(sone2phon(15.8, 'ISO 532-2'), 80, 100*eps) ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������audio-2.0.9/octave-audio.metainfo.xml���������������������������������������������������������������0000644�0000000�0000000�00000002045�14674530753�014473� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" encoding="UTF-8"?> <!-- Copyright 2023 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. --> <component type="addon"> <id>octave-audio</id> <extends>www.octave.org-octave.desktop</extends> <name>Audio Toolkit</name> <summary>Octave Audio toolkit</summary> <description> <p>Toolkit for MIDI and additional audio functions</p> </description> <keywords> <keyword>audio</keyword> <keyword>MIDI</keyword> <keyword>scientific</keyword> </keywords> <url type="homepage">https://gnu-octave.github.io/octave-audio/</url> <url type="bugtracker">https://github.com/gnu-octave/octave-audio/issues</url> <project_license>GPL-3.0+</project_license> <developer_name>Octave-Forge Community</developer_name> <update_contact>octave-maintainers@gnu.org</update_contact> <metadata_license>FSFAP</metadata_license> </component> �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������audio-2.0.9/src/������������������������������������������������������������������������������������0000755�0000000�0000000�00000000000�14674530753�010356� 5����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������audio-2.0.9/src/.svnignore��������������������������������������������������������������������������0000644�0000000�0000000�00000000031�14674530753�012363� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������autom4te.cache configure �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������audio-2.0.9/src/Makefile.in�������������������������������������������������������������������������0000644�0000000�0000000�00000001235�14674530753�012424� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������MKOCTFILE := @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.9/src/aclocal.m4��������������������������������������������������������������������������0000644�0000000�0000000�00000032232�14674530753�012220� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������# 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 use pkg-config. -*- Autoconf -*- # serial 12 (pkg-config-0.29.2) dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>. dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com> 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.2]) 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 occurrence 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 $2]) _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 <http://pkg-config.freedesktop.org/>.])[]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.9/src/bootstrap���������������������������������������������������������������������������0000755�0000000�0000000�00000000344�14674530753�012322� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#!/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.9/src/config.guess������������������������������������������������������������������������0000755�0000000�0000000�00000123672�14674530753�012711� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#! /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 <http://www.gnu.org/licenses/>. # # 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 <config-patches@gnu.org>. 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 <config-patches@gnu.org>." 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 <features.h> #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 <stdio.h> /* 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 <sys/systemcfg.h> 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 <stdlib.h> #include <unistd.h> 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 <unistd.h> 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' </usr/options/cb.name` echo ${UNAME_MACHINE}-pc-isc$UNAME_REL elif /bin/uname -X 2>/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 <Richard.M.Bartel@ccMail.Census.GOV> echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes <hewes@openmarket.com>. # 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 <<EOF $0: unable to guess system type This script, last modified $timestamp, has failed to recognize the operating system you are using. It is advised that you download the most up to date version of the config scripts from http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD and http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD If the version you run ($0) is already up to date, please send the following data and any information you think might be pertinent to <config-patches@gnu.org> 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.9/src/config.h.in�������������������������������������������������������������������������0000644�0000000�0000000�00000003152�14674530753�012402� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* 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.9/src/config.sub��������������������������������������������������������������������������0000755�0000000�0000000�00000106246�14674530753�012352� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#! /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 <http://www.gnu.org/licenses/>. # # 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 <config-patches@gnu.org>. # # 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 <config-patches@gnu.org>." 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.9/src/configure���������������������������������������������������������������������������0000755�0000000�0000000�00000626372�14674530753�012305� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.71 for octave audio package 2.0.9. # # # 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</dev/null; fi if (exec 3>&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 </dev/null exec 6>&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.9' PACKAGE_STRING='octave audio package 2.0.9' 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.9 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.9:";; esac cat <<\_ACEOF Some influential environment variables: CXX C++ compiler command CXXFLAGS C++ compiler flags LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a nonstandard directory <lib dir> LIBS libraries to pass to the linker, e.g. -l<library> CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if you have headers in a nonstandard directory <include dir> 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.9 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.9, 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 <cstdlib> #include <exception> // <cassert> and <cstring> 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 <typename T> struct test_template { T const val; explicit test_template(T t) : val(t) {} template <typename U> T add(U u) { return static_cast<T>(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<double> 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 <typename Ret, typename Fn> Ret eval(Fn f, Ret v) { return f(v); } // for testing variadic templates and trailing return types template <typename V> auto sum(V first) -> V { return first; } template <typename V, typename... Args> 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<int>> v(test_template<int>(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 <stddef.h> #include <stdarg.h> 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 <stdbool.h> 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 <stdio.h> 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 <RtMidi.h> #include <string> 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 <limits.h> 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 <ac_nonexistent.h> _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 <limits.h> 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 <ac_nonexistent.h> _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 <pthread.h> # 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 <pthread.h> 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 <pthread.h> 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 <octave/oct.h> #include <octave/parse.h> 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 <octave/parse.h> ' >> 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 <octave/parse.h>' >> 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 <octave/oct.h> 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 <octave/oct.h> 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 <octave/oct.h> 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 <octave/oct.h> #include <octave/quit.h> 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 <octave/quit.h> ' >> 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 <octave/quit.h>' >> 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 <octave/oct.h> 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 <octave/oct.h> #include <octave/quit.h> 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 <octave/oct.h> #include <octave/quit.h> 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 <octave/oct.h> #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</dev/null; fi if (exec 3>&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.9, 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.9 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 2>/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 ' <conf$$subs.awk | sed ' /^[^""]/{ N s/\n// } ' >>$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 ' <confdefs.h | sed ' s/'"$ac_delim"'/"\\\ "/g' >>$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.9/src/configure.ac������������������������������������������������������������������������0000644�0000000�0000000�00000014551�14674530753�012652� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. # ### Copyright (C) 2019-2023 John Donoghue <john.donoghue@ieee.org> ### ### 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/>. AC_PREREQ([2.67]) AC_INIT([octave audio package], [2.0.9]) 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 <RtMidi.h> #include <string> ]], [ 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 <octave/parse.h>]], [[#include <octave/parse.h>]] ], [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 <octave/quit.h>], [#include <octave/quit.h>] ], [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 <octave/oct.h> #include <octave/quit.h> ]], [ OCTAVE_EXECUTION_EXCEPTION err; err.message(); ])], [octave_execution_field=message], [ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <octave/oct.h> #include <octave/quit.h> ]], [ 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 <octave/oct.h> #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.9/src/m4/���������������������������������������������������������������������������������0000755�0000000�0000000�00000000000�14674530753�010676� 5����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������audio-2.0.9/src/m4/ax_pthread.m4��������������������������������������������������������������������0000644�0000000�0000000�00000054035�14674530753�013266� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������# =========================================================================== # 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 <stevenj@alum.mit.edu> # Copyright (c) 2011 Daniel Richard G. <skunk@iSKUNK.ORG> # Copyright (c) 2019 Marc Stevens <marc.stevens@cwi.nl> # # 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 <https://www.gnu.org/licenses/>. # # 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 <pthread.h> # 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 <pthread.h>], [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 <pthread.h>]], [[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.9/src/m4/octave-forge.m4������������������������������������������������������������������0000644�0000000�0000000�00000005760�14674530753�013531� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Copyright (C) 2017-2018 Olaf Till <i7tiol@t-online.de> # 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 <http://www.gnu.org/licenses/>. # 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 <octave/oct.h>] $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 <octave/oct.h>] # [necessary to compile with old_octave_symbol]], # [[include directives] # [except #include <octave/oct.h>] # [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.9/src/midi.cc�����������������������������������������������������������������������������0000644�0000000�0000000�00000014706�14674530753�011617� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2019 John Donoghue <john.donoghue@ieee.org> // // 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/>. #include <octave/oct.h> #include <RtMidi.h> #include "midi.h" #include <deque> #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<unsigned char> data; double timestamp; msg_info(const std::vector<unsigned char> &d, double dt = 0.0) { data = d; timestamp = dt; } }; #include <pthread.h> 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<msg_info> 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<unsigned char> 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<unsigned char> message = msg.data; if (message.size() > 0) { for (size_t i=0;i<message.size() && i<sz; i++) data[i] = message[i]; *ts = msg.timestamp; return (int)message.size(); } } } return 0; } int stat_midi (midi_device *dev) { Locker lock(mutex); return dev->messages.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; i<numoutput; i++) { midi_device_info inf; inf.name = midiout->getPortName(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; i<numinput; i++) { midi_device_info inf; inf.name = midiin->getPortName(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.9/src/midi.h������������������������������������������������������������������������������0000644�0000000�0000000�00000004123�14674530753�011451� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2019 John Donoghue <john.donoghue@ieee.org> // // 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/>. #ifndef MIDI_H #define MIDI_H #include <vector> 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 <midi_device_info> { public: midi_device_info get_id(int id) const { for(size_t i=0; i<size(); i++) { midi_device_info v = (*this)[i]; if (v.id == id) return v; } return midi_device_info(); } midi_device_info get_name(const std::string &n, bool output) const { for(size_t i=0; i<size(); i++) { midi_device_info v = (*this)[i]; if (v.name == n && v.output == output) return v; } return midi_device_info (); } }; bool get_midi_devices(midi_device_list &devs); midi_device * open_midi(const std::string &inname, const std::string &outname); void close_midi(midi_device *); midi_device_info get_midi_info(midi_device * dev, bool output); bool send_midi(midi_device * dev, const unsigned char *data, size_t sz); int recv_midi(midi_device * dev, double *ts, unsigned char *data, size_t sz); int stat_midi(midi_device * dev); int flush_midi(midi_device * dev); typedef void(* MidiCallback )(void *userData); int set_midi_callback(midi_device * dev, MidiCallback cb, void *userdata); #endif ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������audio-2.0.9/src/midi_object.cc����������������������������������������������������������������������0000644�0000000�0000000�00000011463�14674530753�013142� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2019-2020 John Donoghue <john.donoghue@ieee.org> // // 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/>. // Octave Includes #include <octave/oct.h> #ifdef HAVE_CONFIG_H # include "config.h" #endif #include <octave/quit.h> #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<octave_value_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<octave_value_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.9/src/midi_object.h�����������������������������������������������������������������������0000644�0000000�0000000�00000005626�14674530753�013010� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2019 John Donoghue <john.donoghue@ieee.org> // // 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/>. #ifndef MIDI_OBJECT_H #define MIDI_OBJECT_H // Octave Includes #include <octave/oct.h> #ifdef HAVE_CONFIG_H # include "config.h" #endif #include <string> #include <iostream> #include <errno.h> #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<octave_value_list>& idx, int nargout); octave_value subsref (const std::string& type, const std::list<octave_value_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<octave_value_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.9/src/midicallback.cc���������������������������������������������������������������������0000644�0000000�0000000�00000003676�14674530753�013300� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2022 John Donoghue <john.donoghue@ieee.org> // // 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/>. // Octave Includes #include <octave/oct.h> #include <octave/defun-dld.h> #include <octave/ov.h> #include <iostream> #include <iomanip> #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<octave_midi*>(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.9/src/mididevice.cc�����������������������������������������������������������������������0000644�0000000�0000000�00000004015�14674530753�012767� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2019 John Donoghue <john.donoghue@ieee.org> // // 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/>. // Octave Includes #include <octave/oct.h> #include <octave/defun-dld.h> #include <octave/ov.h> #include <iostream> #include <iomanip> #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.9/src/mididevinfo.cc����������������������������������������������������������������������0000644�0000000�0000000�00000003677�14674530753�013177� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2019 John Donoghue <john.donoghue@ieee.org> // // 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/>. // Octave Includes #include <octave/oct.h> #include <octave/defun-dld.h> #include <octave/ov.h> #include <octave/oct-map.h> #include <iostream> #include <iomanip> #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<devs.size(); i++) { midi_device_info dev = devs[i]; name(i) = dev.name; driver(i) = dev.driver; id(i) = dev.id; if(dev.output) { dir(i) = "output"; } else { dir(i) = "input"; } } octave_map devinfo; devinfo.setfield("ID", id); devinfo.setfield("Direction", dir); devinfo.setfield("Interface", driver); devinfo.setfield("Name", name); retval = devinfo; } return retval; } �����������������������������������������������������������������audio-2.0.9/src/midiflush.cc������������������������������������������������������������������������0000644�0000000�0000000�00000002756�14674530753�012663� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2022 John Donoghue <john.donoghue@ieee.org> // // 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/>. // Octave Includes #include <octave/oct.h> #include <octave/defun-dld.h> #include <octave/ov.h> #include <iostream> #include <iomanip> #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<octave_midi*>(args (0).internal_rep ()); dev->flush(); return retval; } ������������������audio-2.0.9/src/midirecv.cc�������������������������������������������������������������������������0000644�0000000�0000000�00000003623�14674530753�012473� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2019 John Donoghue <john.donoghue@ieee.org> // // 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/>. // Octave Includes #include <octave/oct.h> #include <octave/defun-dld.h> #include <octave/ov.h> #include <iostream> #include <iomanip> #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<octave_midi*>(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<ret; i++) data (i) = buf[i]; retval(0) = ts; retval(1) = data; } else { retval(0) = 0; retval(1) = uint8NDArray (dim_vector (1,0)); } return retval; } �������������������������������������������������������������������������������������������������������������audio-2.0.9/src/midisend.cc�������������������������������������������������������������������������0000644�0000000�0000000�00000003704�14674530753�012465� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2019 John Donoghue <john.donoghue@ieee.org> // // 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/>. // Octave Includes #include <octave/oct.h> #include <octave/defun-dld.h> #include <octave/ov.h> #include <iostream> #include <iomanip> #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<octave_midi*>(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; i<v.numel (); i++) buf[i] = v(i); retval = dev->send (buf, data.numel ()); } return retval; } ������������������������������������������������������������audio-2.0.9/src/midistat.cc�������������������������������������������������������������������������0000644�0000000�0000000�00000003055�14674530753�012506� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2022 John Donoghue <john.donoghue@ieee.org> // // 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/>. // Octave Includes #include <octave/oct.h> #include <octave/defun-dld.h> #include <octave/ov.h> #include <iostream> #include <iomanip> #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<octave_midi*>(args (0).internal_rep ()); int ret = dev->stat(); retval(0) = ret ? true : false; return retval; } �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������audio-2.0.9/src/pkglock.cc��������������������������������������������������������������������������0000644�0000000�0000000�00000002656�14674530753�012330� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������// Copyright (C) 2020 John Donoghue <john.donoghue@ieee.org> // // 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/>. #include <octave/oct.h> #include <octave/ov.h> #include <octave/defun-dld.h> #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.9/src/undef-ah-octave.h�������������������������������������������������������������������0000644�0000000�0000000�00000000706�14674530753�013500� 0����������������������������������������������������������������������������������������������������ustar�00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* 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 ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������