audio-2.0.4/0000755000000000000000000000000014153136030011000 5ustar0000000000000000audio-2.0.4/COPYING0000644000000000000000000010451314153136030012037 0ustar0000000000000000 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . audio-2.0.4/DESCRIPTION0000644000000000000000000000054414153136030012511 0ustar0000000000000000Name: audio Version: 2.0.4 Date: 2021-12-05 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: http://octave.sourceforge.net audio-2.0.4/INDEX0000644000000000000000000000044014153136030011570 0ustar0000000000000000audio >> Audio and MIDI Toolbox MIDI Device Interface mididevice mididevinfo midimsg midireceive midisend MIDI Controller Interface midiid midicontrols midisync midiread MIDI File I/O midifileinfo midifileread midifilewrite ismidifile Enumerations midimsgtype audio-2.0.4/Makefile0000644000000000000000000002370414153136030012446 0ustar0000000000000000## Copyright 2015-2016 Carnë Draug ## Copyright 2015-2016 Oliver Heimlich ## Copyright 2017 Julien Bect ## Copyright 2017 Olaf Till ## Copyright 2019 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 ## 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" ") ## 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 HG := hg HG_CMD = $(HG) --config alias.$(1)=$(1) --config defaults.$(1)= $(1) HG_ID := $(shell $(call HG_CMD,identify) --id | sed -e 's/+//' ) HG_TIMESTAMP := $(firstword $(shell $(call HG_CMD,log) --rev $(HG_ID) --template '{date|hgdate}')) ## Detect which VCS is used vcs := $(if $(wildcard .hg),hg,$(if $(wildcard .git),git,unknown)) ifeq ($(vcs),hg) release_dir_dep := .hg/dirstate endif ifeq ($(vcs),git) release_dir_dep := .git/index endif TAR_REPRODUCIBLE_OPTIONS := --sort=name --mtime="@$(HG_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 ${FIX_PERMISSIONS} "$@" .PHONY: docs docs: doc/$(package).pdf clean-docs: $(RM) -f doc/$(package).info $(RM) -f doc/$(package).pdf $(RM) -f doc/functions.texi doc/$(package).pdf: doc/$(package).texi doc/functions.texi cd doc && SOURCE_DATE_EPOCH=$(HG_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/functions.texi: 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";' $(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.4/NEWS0000644000000000000000000000336214153136030011503 0ustar0000000000000000Summary of important user-visible changes for releases of the audio package =============================================================================== 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.4/README.md0000644000000000000000000000235214153136030012261 0ustar0000000000000000Introduction ============ The Octave Audio package provides MIDI device functions for GNU Octave Requirements ============ * Octave >= 4.0.0 * [RTMIDI](https://github.com/thestk/rtmidi) library and include files Installing ========== To install, run the octave package manager: 1. If running Windows, the package may already be installed: pkg list audio 2. To install from source forge: pkg install -forge audio 3. To install from a local tarball. pkg install audio-XXXXXXX.tar.gz Where XXXXXXX is the version of the the downloaded tarball. Usage: ====== 1. Load the package. pkg load audio (Required each time Octave is started) 2. Type help audio at the octave prompt to display a list of functions Documentation ============== See the function list for octave-audio on [octave forge](https://octave.sourceforge.io/audio/overview.html) for function documentation. See the online manual for octave-audio on [octave forge](https://octave.sourceforge.io/audio/package_doc/) 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 ========================== Currenty package provides only the midi functions audio-2.0.4/doc/0000755000000000000000000000000014153136030011545 5ustar0000000000000000audio-2.0.4/doc/audio.pdf0000644000000000000000000062226414153136030013355 0ustar0000000000000000%PDF-1.5 % 1 0 obj << /Length 587 /Filter /FlateDecode >> stream xmTM@+z&?tBL$d4*.<_fW_wիrc;`GUOV&ʮ[v6W7TvbuYt/N.5=S> stream xmTM@+z&?tBL0d4*.<̿~UfW_uvc;Z̫MfG} I]/ޭmޯo⣩0^'^x]fkn{EK{*ʇupg6;ލ$4;gZ8, M[TPRJGeWxmE7 "/7j;{Yʋ"1tm|oirI ɑc׺>[TқEnn#bBSEV嶭mzsg)gR133w xAb;aGL6K&0+}&"?(Ҧa/ c,!-f3*Ix {asIC%hS7}H=ŤIY(jŧ Z4{SO5Z ekxvKǬ@2a> stream xmSn0+$z"aKU^CvF^p=!94gB˥0pދ s#P~k@hZ+vQڦ(A,Rf5Ħq8>K_X NH3$Ǟ{<0*5c~Pʯ5W42^!0^#rqxƘE3x z)cgl1BҰ?Xq!NAWA*d1)iȧΰО 9璆NVfkVaUJ?%͚5ػbTW=ј52f&p2pjV^cHMcVYxLS7E=1j g endstream endobj 6 0 obj << /Length 308 /Filter /FlateDecode >> stream xڅOK1)rvdoJ'Pn[,7iܢ(J <›7?^PtPx-| RJq?g,5f5H&mocmuv V]s څx& y+ۚZ˸}˫~je[631y|p2}p@̃v|- @cЃ # ;@*ӸKOպ&uy,f!qg endstream endobj 13 0 obj << /Length 622 /Filter /FlateDecode >> stream xڍSn0+tHE|#r* HAQ.]r~F p;;;fQ?yT7n&kT??Ge5LyNyVӌC뫼_+1-+\L}V]g9&Y;=k$J$ʴn(aU.AI-ecoFۼ&!*N-֨=EX5!꣒ fΞ1>nYl+rRݙ %?\c Ǻ2kZ ]1w7*}c$eHswx8LϴSPm WaP>jJIA:)B$k\Cw Fy׹M#=SwŶTu5> i5m@P퐰`AX|Pe(%"WuY \+F` jC&zo6na] m@k`&" )\]g1@&XitӘte@.WN5Qwx~[8%+50 iߣUមg;k/b <$7z m ൭?v endstream endobj 19 0 obj << /Length 1047 /Filter /FlateDecode >> stream xڕVKo6WVX1C[HТ{ZAhK-z$ȊS0`f#%Q.(nTǻs}DğOw"TT+S-NewFFBs3mwޭxh[E_O046]1M#pXI ˅4Yr b^YlJ˱H^mbi5{#T({{bڥ]! Z̆wsW .n7W+z7V=nfhPQ8zu0 ##55'N,FH^KTXٝ0oX`Us\` T-|Ūh[\BE镊Pm0*Fb:G{`Z?o5S>O+ٴ ~3ғ"rD@o<FK׏EڪAhp[60]~}ɸJ/JkRݹsy0L !qMI4` @qi]7U$6b&z.} Ӆ qvHZ\( ^`C*!*74և':vHcFr;0@1ȡ܈cDr_"L@\9|0?3^"6*< Իݽ6-piig 3s#n;ՖZXY-3܀))^BvtX[Cqܜl}4vh= $O!~eq kN'*ic,jnry{^F\Q/g'd-}Yp<^21@bcԗBS*剺H|#I0+/SހȸP6|NނNpUtcqâX^ǔВ'}/ZB+LA]vpH` C%:JH7@<[v3}P~-[z覾t;޺שRPfx~)koPA endstream endobj 54 0 obj << /Length 1734 /Filter /FlateDecode >> stream xKoFuYϖ6|J16޵sFfyuP1.i  ND"!T.rijٮ͛rm݇"HREǒyO6` a YqJ a-3-=x a{܏|UbRܚo+SI8/,(͌:0Ƴv}7Nج1$Wl$j0j#&a͂ &&9Ub2NN^jyrmxl}kOd.:=TgI,*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6{h|JyIVgŅ[!¨[)ߛG՜!R+{O[Sce7ˉg)l32NmƎ&CG_J"EBoex&РjϲKqųx=ioKFd F.V_1 vYh]wһ,_02X{ Nz:h`W"IlIzCs3 .  \>w{`݅N)-QNUk0>U5Im=n7C)/s]l1*t% > endstream endobj 196 0 obj << /Length 1208 /Filter /FlateDecode >> stream xWKs6WjD&N/ͣ8qukr%(BJ_XowBT(+qVVT̶+hVOprv2,_6W/1!jXl]mvC0aUBrjUPwn;ɾ;4{1n+V.!sW7]̗3B gzȨKtU0j*J!jư>B'S)aBsuX~ :2tHiw۾o? zE)bVCZV18[lҴ'10r JNGD,0wbƿng8eޗ㹽l{BZ*a{͋NE*8rmN>-YaX$A\}*["*\'ۘQY5|4)܊T4֥(@AY9['IV9D3@l:f{: pw L; Yk?ң[|g" qMjrM9joOSP6;r co6LJV\qi,,f7eQNLWK:B*S`)L-i\ .-XɑlҦPCzc2PUm]['!Pytv_%@E3R@(c@ KK'sF3xFo.t/o&Tu={)?<5(5•Ú; T͎.]iW]sLc`;eʘ bK uj-`ΊN_&]N ڴi%X'nP{}<%f56~_8YqV"F;keE}fFk4@ N 7EJT%IB*q6]& 89zp4%h{/޾REJ([71j] #l*°իkHx#weS[#a;> 'telGCuEZRO&F`fwಋ1z /?W|Kl˯g7&Qh0OYY%jf?_> stream xXKo6WQ,HJ2CHmt]-tW2$hHL;C ,7o^?bM,OtfCN.d&Y 檶miqƹwTlk띍qSDBğ\/R3"ҏr#R/ 蔆qwx?XW̭Dd̤N[<ϭ%->NվO\[ݗ}I_U8Cs<6a=Jؓ>+qʄStnJ38u#wPTM+T'y~Ť^ zԜI1J^N?d x%>${o~ ^}I{wkn^ס>-ƺZU㡑xrWf4r6`!|{4|7w CQf,fʶWUu媫X8==4%#r\quɖ?׏gRMԸ b1nz?݋ endstream endobj 202 0 obj << /Length 938 /Filter /FlateDecode >> stream xڍVnF}W6]^\Q"MShH#(tx1.)S1~^fϜ9se OI$Jmu%is+9-p1|z֘@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endstream endobj 320 0 obj << /Length1 1678 /Length2 1203 /Length3 0 /Length 2226 /Filter /FlateDecode >> stream xڵTy\WX[QA(Wלu@AH$萼d&L*"D x"Rծ`QÃz,j Zu|2;g;5XHK Wx 3Ws('8$$=Е3P )B9B~Aqz(iL 7Q8Q7( prJl`h2F@/d 2$@$`Z5 @ÀB3_9PaA'Xer K>~ }!GR9}P #Ã}|v@VBٶ}!d#4Hp0ރϏEhGRQ<քOiCR})&b h`Op@  $_ǩCT$dg`ؚڞp@CثM@ P@c 4XfT@Ql.6{hgx,a^ 7$ "j\ Y4{f8a>297i2hX\E.@8:!TޤNP> xbH*y}Gd aN5N zW} 2q>ڢ 0V᳍MaB֌7I=PcZj># 0# TAGc1U'$p1#$\ irD#" mPA5/%$ kj:|׾wxE %)i_<qF顸SILDi! y'WQGNI]K8{!UM@Nn&DaAy?^IXBIp" \\FQXG!rqF!Ҽ ƚy̺_;q:Y eqqKr Nx`ە{w91ʂ⼭;l昭/0c9rM ì滳Ĺ d*lu vOg43͢IJ!q\Hko"[);o(9Ӣo9'wfb5 /KcވRNFNo^ފvu4j/1uƙ6iχ?혿*o5UͿF!Ðxo6u'{?-)y_n|ac%Tpq7TnyU㫾]{;:l7EoCXO|u~AӚ]"m5}7LS՗HԻitoޡ_4іc2"-)(>9iV{ό ;$Z. ]xg󜶍۩ endstream endobj 322 0 obj << /Length1 1697 /Length2 1266 /Length3 0 /Length 2301 /Filter /FlateDecode >> stream xڵTiXUAS7y@"$! Р# (W'I2̄ ЀT[Ņ ZźQ q㎢PrZEDq陠Uy?g2s[;\w'VJI O R)%~x51 ~~.7D bt@ 4(!Q@F(ޘm!#ihCBt 6Gfb Sf:1|)đfdā7I%az 5@$^$>|Xn2I-p"!DW@8:ȑ Jb D(``.h-ۅH B5i:1f5 |Oi`&TC[cLX\ Ad'h@DAM 5as; Getmb B Ƙh0fCT{u DQl ;;a$,}3w=10mHiC=͞NlRq\tD"<)C cf#bC@h թPbMsEO I >T458ְ6 foަ 0 @J'`۴Ú5Śi$@ih58462Ak+0qdFcMhH 4#&磉Ac& }:PC GG2HR+Ҥavu >tqL,s82`.NGJN{4Z=<_@'NI]O8{xP VJ@clDBKI)?'Pj QC" B~5T|dP0+А=iaP pJ*(|LHάM~lk9C0WĚ-3zȎ~メ?*}/HK&_x #0Z?Tu*6ݢF[# @2j-Y+zrE??=fEFm6M}qk΢vkfάsK+nh!om(S"-k=UW( z%&:nCrR7dS PC9Zݷ>5'<.$^Yq-읬ZCvEDC n{ˎh/tv8䐔k3w$/VKԧoWeK=@M3yݤ*kR7q3uxaCb=og\H\XB]/^jaxoѥ Du^ q!?2vrCǭHG޼2$=1$So)*r?exS㞾1\\{Z\/>N<<\**j߽!^nNÂq[&=iĞEx`in>MkE/ۿ]K.1 nH֪-W]~$yφ^[)?kN{y.75ǃͅEjWlIc{Ys|.y'NJVn!.ӏ*B9l,qΟoC&+N$ g7kSǣ-]ЩXƎjkŰ9|g5_z6]ygSnGhnAIm~9|W!չ[:תπ=<;j\Ԃ ;g.Ԟ6a֫9˴q:so!U5-IZ*[ϸy+C_]x!Rr\-ǯmg?{~[SHCG^fɉq<;w~ڞ[[6Zoe4)ɂI=g0zr]xˤYxǻw6첺朵/6Y˛J*'z endstream endobj 335 0 obj << /Producer (pdfTeX-1.40.22) /Creator (TeX) /CreationDate (D:20211205131816Z) /ModDate (D:20211205131816Z) /Trapped /False /PTEX.Fullbanner (This is pdfTeX, Version 3.141592653-2.6-1.40.22 (TeX Live 2021) kpathsea version 6.3.3) >> endobj 282 0 obj << /Type /ObjStm /N 88 /First 808 /Length 3582 /Filter /FlateDecode >> stream x[[SS~ϯG]0[e( (!%0 n=t̺f%!9euObEXC1p >k 1 _hlp0 3=L<.f5M$8!`DZiDI#d(`$kޓLK ]'F$F`nU5$yoH95 G&ד|pE; ,1#'HI{ BiX\nls\ѢĶ$8s۸b csd8$ h$ Mube)e*cK4݂qѐsM3$<am0[fx$"XFL`^Dž̶h4< '-(PJ_APL\UD"J=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@ c~˂&Y{.FxLjy%.bS86"q=|fl~ - lҟ Iэې,=$q8~l_t'W5WA2U3pkFkY6GyDȽpFD9!d@ֶ`NN/I2bw~ֵ&nί{~Q]M+B-yeuΎ JϧY1:?gi)٫) dlk3m<}*O&@Dc%|_pu endstream endobj 336 0 obj << /Type /XRef /Index [0 337] /Size 337 /W [1 3 1] /Root 334 0 R /Info 335 0 R /ID [<49F857F52A9B7EDEEDD7867B58D88AD0> <49F857F52A9B7EDEEDD7867B58D88AD0>] /Length 806 /Filter /FlateDecode >> stream x%MPQO?)~RQRTH~K6,Kaakaiged K[ms}?}{y瘙ursK(, Vv[ Hr` AȁG6lBRPւrP*A@ XjAAhMڪQAu1Nc (Jۇ= Q;i N!0Dv'؅= P#`N>jۏ݇ҤzW+8݋c!mG#Qgaj v$Xd>A8\rgYX&̝eV{UHWܚjD>2n ]A4DdݶD> ~%Q6rS6rn}v%Qvl@$*Am!춸*Kڣml' 6Ňm=nׇdIgh^[yՔ~vHgp1j &?%ܞjv{T5ju[iPli emCN@=O pAcmuYϑ A1 Ōp*fy@ H 8 HN&Qe@^B%@r +?ƌi/_eulLU^յE twPJAhkA9H}UUT+jRk @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 @set VERSION 2.0.4 @c @afourwide @c %*** End of the HEADER @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-2021 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{http://octave.sourceforge.net/audio/}. @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 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 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 @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.4/doc/functions.texi0000644000000000000000000005037714153136030014464 0ustar0000000000000000@c --------------------------------------------------- @node MIDI Device Interface @section MIDI Device Interface @cindex MIDI Device Interface @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 @code { @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 @code { @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 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 @code { 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 @code { msg = [midimsg('noteon', 1, 60, 100, 0), midimsg('noteoff', 1, 60, 0, 1.5)] } @end example Create a system reset message @example @code { 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 @code { 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 @code { 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 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 @code { ctrl = midicontrols(2001) } @end example Create a midicontrols object monitoring control id 2001 on a a non default device @example @code { 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 @code { [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 @code { ctrl = midicontrols(2001) val = midiread(ctrl); } @end example Read current value of midicontrols with a ctrlid 2001 on a non default midi device. @example @code { 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 @code { 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 audio-2.0.4/doc/gpl.texi0000644000000000000000000010433014153136030013223 0ustar0000000000000000@node Copying @appendix GNU General Public License @cindex warranty @cindex copyright @center Version 3, 29 June 2007 @display Copyright @copyright{} 2007 Free Software Foundation, Inc. @url{http://fsf.org/} Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. @end display @heading Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program---to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. @heading TERMS AND CONDITIONS @enumerate 0 @item Definitions. ``This License'' refers to version 3 of the GNU General Public License. ``Copyright'' also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. ``The Program'' refers to any copyrightable work licensed under this License. Each licensee is addressed as ``you''. ``Licensees'' and ``recipients'' may be individuals or organizations. To ``modify'' a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a ``modified version'' of the earlier work or a work ``based on'' the earlier work. A ``covered work'' means either the unmodified Program or a work based on the Program. To ``propagate'' a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To ``convey'' a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays ``Appropriate Legal Notices'' to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. @item Source Code. The ``source code'' for a work means the preferred form of the work for making modifications to it. ``Object code'' means any non-source form of a work. A ``Standard Interface'' means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The ``System Libraries'' of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A ``Major Component'', in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The ``Corresponding Source'' for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. @item Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. @item Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. @item Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. @item Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: @enumerate a @item The work must carry prominent notices stating that you modified it, and giving a relevant date. @item The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to ``keep intact all notices''. @item You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. @item If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. @end enumerate A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an ``aggregate'' if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. @item Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: @enumerate a @item Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. @item Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. @item Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. @item Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. @item Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. @end enumerate A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A ``User Product'' is either (1) a ``consumer product'', which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, ``normally used'' refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. ``Installation Information'' for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. @item Additional Terms. ``Additional permissions'' are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: @enumerate a @item Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or @item Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or @item Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or @item Limiting the use for publicity purposes of names of licensors or authors of the material; or @item Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or @item Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. @end enumerate All other non-permissive additional terms are considered ``further restrictions'' within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. @item Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. @item Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. @item Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An ``entity transaction'' is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. @item Patents. A ``contributor'' is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's ``contributor version''. A contributor's ``essential patent claims'' are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, ``control'' includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a ``patent license'' is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To ``grant'' such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. ``Knowingly relying'' means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is ``discriminatory'' if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. @item No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. @item Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. @item Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License ``or any later version'' applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. @item Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM ``AS IS'' WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. @item Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. @item Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. @end enumerate @heading END OF TERMS AND CONDITIONS @heading How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the ``copyright'' line and a pointer to where the full notice is found. @smallexample @var{one line to give the program's name and a brief idea of what it does.} Copyright (C) @var{year} @var{name of author} This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see @url{http://www.gnu.org/licenses/}. @end smallexample Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: @smallexample @var{program} Copyright (C) @var{year} @var{name of author} This program comes with ABSOLUTELY NO WARRANTY; for details type @samp{show w}. This is free software, and you are welcome to redistribute it under certain conditions; type @samp{show c} for details. @end smallexample The hypothetical commands @samp{show w} and @samp{show c} should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an ``about box''. You should also get your employer (if you work as a programmer) or school, if any, to sign a ``copyright disclaimer'' for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see @url{http://www.gnu.org/licenses/}. The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read @url{http://www.gnu.org/philosophy/why-not-lgpl.html}. audio-2.0.4/doc/macros.texi0000644000000000000000000000624114153136030013727 0ustar0000000000000000@c Copyright (C) 2012-2019 John W. Eaton @c @c This file is part of Octave. @c @c Octave is free software: you can redistribute it and/or modify it @c under the terms of the GNU General Public License as published by @c the Free Software Foundation, either version 3 of the License, or @c (at your option) any later version. @c @c Octave is distributed in the hope that it will be useful, but @c WITHOUT ANY WARRANTY; without even the implied warranty of @c MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the @c GNU General Public License for more details. @c @c You should have received a copy of the GNU General Public License @c along with Octave; see the file COPYING. If not, see @c . @c The following macro marks words that aspell should ignore during @c spellchecking. Within Texinfo it has no effect as it merely replaces @c the macro call with the argument itself. @macro nospell {arg} \arg\ @end macro @c The following macro works around the Info/plain text expansion of @code{XXX} @c which is `XXX'. This looks particularly bad when the macro body is @c single or double-quoted text, such as a property value `"position"' @ifinfo @macro qcode{arg} \arg\ @end macro @end ifinfo @ifnotinfo @macro qcode{arg} @code{\arg\} @end macro @end ifnotinfo @c The following macro is used for the on-line help system, but we don't @c want lots of `See also: foo, bar, and baz' strings cluttering the @c printed manual (that information should be in the supporting text for @c each group of functions and variables). @c @c Implementation Note: @c For TeX, @vskip produces a nice separation. @c For Texinfo, '@sp 1' should work, but in practice produces ugly results @c for HTML. We use a simple blank line to produce the correct @c behavior. @c @c We use @xseealso now because Texinfo introduced its own @seealso @c command. But instead of modifying all source files, we'll have the @c munge-texi script convert @seealso to @xseealso. @macro xseealso {args} @iftex @vskip 2pt @end iftex @ifnottex @end ifnottex @ifnotinfo @noindent @strong{See also:} \args\. @end ifnotinfo @ifinfo @noindent See also: \args\. @end ifinfo @end macro @c The following macro works around a situation where the Info/plain text @c expansion of the @code{XXX} macro is `XXX'. The use of the apostrophe @c can be confusing if the code segment itself ends with a transpose operator. @ifinfo @macro tcode{arg} \arg\ @end macro @end ifinfo @ifnotinfo @macro tcode{arg} @code{\arg\} @end macro @end ifnotinfo @c FIXME: someday, when Texinfo 5.X is standard, we might replace this with @c @backslashchar, which is a new addition to Texinfo. @macro xbackslashchar \\ @end macro @c These may be useful for all, not just for octave.texi. @tex \ifx\rgbDarkRed\thisisundefined \def\rgbDarkRed{0.50 0.09 0.12} \fi \ifx\linkcolor\thisisundefined \relax \else \global\def\linkcolor{\rgbDarkRed} \fi \ifx\urlcolor\thisisundefined \relax \else \global\def\urlcolor{\rgbDarkRed} \fi \ifx\urefurlonlylinktrue\thisisundefined \relax \else \global\urefurlonlylinktrue \fi @end tex @c Make the apostrophe in code examples cut-and-paste friendly. @codequoteundirected on audio-2.0.4/inst/0000755000000000000000000000000014153136030011755 5ustar0000000000000000audio-2.0.4/inst/audio.m0000644000000000000000000000455014153136030013240 0ustar0000000000000000## Copyright (C) 2019 John Donoghue ## ## This program is free software: you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by ## the Free Software Foundation, either version 3 of the License, or ## (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program. If not, see ## . ## -*- texinfo -*- ## The Audio package provides basic MIDI functionality for GNU octave. ## ## 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 function audio() help audio; endfunction audio-2.0.4/inst/data/0000755000000000000000000000000014153136030012666 5ustar0000000000000000audio-2.0.4/inst/data/c_maj_melody.mid0000644000000000000000000000047214153136030016006 0ustar0000000000000000MThdMTrkXYyd @[]!PG>@PG@APGACPGCEPGEGPGGHPGHHPcH GPcG EPcE CPcC APcA @Pc@ >Pc> 7394(*1KW/   +{ roCYmuSV$):v{dz/]pI 2n/aFIq!2]+HR2 ( dFw|O\i!%P &tv_5=(o@O8mTWuCPQ#lL9ry=Yw}|f%.`qt&Z 8R m3n~4Hdi<v>G2@0GldyS<O'0miip~ (,HqsN5;d};iB`haHuw.,IfkGLjUGU[o.YZHGi *Dz:nU0 XV5L59!j),XgulU**#&BK@ZY'0FonOF)/GY/  tmuVILfVY]fwnS7;Jh`FH`wr}vmhn{|}halm[@1E-GMi`H:jmyo~}%  *JEB4/!@Q[a9-4<N`Q:7R^WPSban[Xs^AG`_S-/Yqtr};>]qrWF6$/0+.-8 @Pxptqh xswtl6BLWj ')/ckv7 NxVT]\eb +I 9QC.:`Lnkv`?26<- |KwpOyC #g?$m 81F9A}2_ZVi*X C,5<cZ Cq/ nA~gA6z ! uEh%fO/ A]4"Qbew(PAc-j  *  g V&-  + ; . "e"H|ojR}unyP! 2>!?h)[bCK'wI1:F9'B6vpT NVm\%yJKoY;T,MiW/_Sl F WS0 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\<*oBAKF+np\  :  6 BoU`M] 5:B1_a d/>puX!L&^[ ' p gyi^I @ *9Le: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 _ 1ky: T6[7Jq>TwcaOW90{NAy@]B=:|< N Z +  6     I {@)Q#^6Z?4 UhC03dm4Y! gf1q$ztNihF7t_9 ]1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% "; 3Ii)9 tY_=: F >  \]^!?.fBD@9Na1pT -5m&sD! o}5O%oD Y w H7 C7 JP)v#( Va:q-<h!Z]<l+z>rjMV+h& gc^+1C0z-h(e rB)J} c!  { x .p (  !  8v u5?i=S& 3)/]m?[ , 4  </6b^ &xe U9q?\B<KMB79q=,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/$Z6.!WR@FVZ&HoQzM\cD iHM9Whm:H x0g+E:nYOl[ay#-EK>:N l U Y # U ' r "IBLGxjU-$nj[p(;$ Bc-5.g.9|!w lDe N.d>TQtuliVuCo =5r"mA?@>10At/"c > M ] / b )$ \  ' W i RG|w< RC<9Huqfn]A%)4f$ r78b^Uq3E< FYc5n@4)b?0>xE}+)Fl]}b}5;GUW E  *  2  * m 8 J ;E10"gFc4\}l ," D^ z 9 EF4cKu{mrFzBF?-r'a}:m)3Lt5,UA%&=> S F | 1  h~?N[Vq.dg[L)i6h [ P7bT\PGC-XdSTI*;YqkA=0v Ey%ZX-vPP}[@%  :V)m4   I  #l" ars@5SmN&!QV=]s~ j>bu}4Q  3lJjOT E&Hx> 7 c$k%CF'38HN+x0CV@c zVV5DfT- di'xk  Mjd$ ](~q;HX[]]kr6;ZvlCz-g}6#8aF Emk+iYV"fK"eyQ,fY[lVvI4 D-[NEZ) BjsaaGq :]zlO+l"_!yb}eB*)O^Tp']5W%A>VTti_cJ?B623#CSy $Hda_T[LW>~jM sJ8 ,/SKq|tnwgUI8,u_<   ## ## This program is free software: you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by ## the Free Software Foundation, either version 3 of the License, or ## (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program. If not, see ## . ## -*- texinfo -*- ## @deftypefn {} {@var{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.4/inst/midicontrols.m0000644000000000000000000001634014153136030014645 0ustar0000000000000000## Copyright (C) 2019-2021 John Donoghue ## ## This program is free software: you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by ## the Free Software Foundation, either version 3 of the License, or ## (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program. If not, see ## . classdef midicontrols < handle ## -*- texinfo -*- ## @deftypefn {} {@var{obj} =} midicontrols () ## @deftypefnx {} {@var{obj} =} midicontrols (@var{ctrlid}) ## @deftypefnx {} {@var{obj} =} midicontrols (@var{ctrlid}, @var{initialvalues}) ## @deftypefnx {} {@var{obj} =} midicontrols (__, @var{propertyname}, @var{propertyvalue}) ## Create a midi controls object ## ## @subsubheading Inputs ## @var{ctrlid} - single control id or array of control ids to monitor, or [] to use any controller.@* ## @var{initialvalues} - initial values to use for controls. It should be the same size as @var{ctrlid}@* ## @var{propertyname}, @var{propertyvalue} - properties to set on the controller. If a device is not specified ## the value from getpref("midi", "DefaultDevice", 0) will be used.@* ## ## ## Known properties are: ## @table @asis ## @item mididevice ## name of the mididevice to monitor. ## @item outputmode ## the scaling mode for values: 'rawmidi' will return values between 0 .. 127, ## 'normalized' will use values between 0 .. 1. ## @end table ## ## @subsubheading Outputs ## @var{obj} - returns a midicontrols object ## ## @subsubheading Examples ## Create a midicontrols object monitoring control id 2001 on the default midi device ## @example ## @code { ## ctrl = midicontrols(2001) ## } ## @end example ## ## Create a midicontrols object monitoring control id 2001 on a a non default device ## @example ## @code { ## 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 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 = 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 audio-2.0.4/inst/mididevice.m0000644000000000000000000001272614153136030014245 0ustar0000000000000000## Copyright (C) 2019 John Donoghue ## ## This program is free software: you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by ## the Free Software Foundation, either version 3 of the License, or ## (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program. If not, see ## . ## -*- texinfo -*- ## @deftypefn {} {@var{dev} =} mididevice (@var{mididev}) ## @deftypefnx {} {@var{dev} =} mididevice (@var{mididir}, @var{mididev}) ## @deftypefnx {} {@var{dev} =} mididevice ("input", @var{midiindev}, "output", @var{midioutdev}) ## Create a midi device using the input parameters. ## ## When a single device name or id is provided, attempt to create the midi device using the same name for both input and output. ## ## Otherwise, use the name or device id for the given input or output direction. ## ## @subsubheading Inputs ## @var{mididev} - name or id of device to load.@* ## @var{mididir} - midi direction of "input" or "output"@* ## @var{midiindev} - midi input name or id@* ## @var{midioutdev} - midi output name or id ## ## @subsubheading Outputs ## @var{dev} - octave_midi class for opened device ## ## @subsubheading Properties ## @var{Input} - Input device name (read only).@* ## @var{Output} - Output device name (read only).@* ## @var{InputID} - Input device id (read only).@* ## @var{OutputID} - Output device id (read only).@* ## ## @subsubheading Examples ## Open midi device with ID of 0. ## @example ## @command{>} dev = mididevice(0); ## ## mididevice connected to ## input: "SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0" (1) ## output: "SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0" (0) ## @end example ## ## Open a named midi device: ## @example ## @command{>} dev = mididevice("SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0"); ## ## mididevice connected to ## input: "SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0" (1) ## output: "SparkFun Pro Micro:SparkFun Pro Micro MIDI 1 20:0" (0) ## @end example ## ## @seealso{mididevinfo} ## @end deftypefn function dev = mididevice (varargin) inname = ""; outname = ""; if nargin != 1 && nargin != 2 && nargin != 4 error ("Expected device name, or device type/value pair"); endif # dev list devs = __mididevinfo__ (); if nargin == 1 if isscalar (varargin{1}) name = devs (varargin{1}+1).Name; elseif ischar (varargin{1}) name = varargin{1}; endif # get in and out info idx = find (arrayfun(@(x) match_name_and_type(x, name, "input"), devs), 1); if !isempty (idx) indev = devs (idx); inname = indev.Name; endif idx = find (arrayfun(@(x) match_name_and_type(x, name,"output"), devs), 1); if !isempty (idx) outdev = devs (idx); outname = outdev.Name; endif elseif nargin == 2 # type device (input, output) # dev num or name if isscalar (varargin{2}) name = devs (varargin{2}+1).Name; elseif ischar (varargin{2}) name = varargin{2}; endif inname = ""; outname = ""; if strcmpi (varargin{1}, "input") inname = name; elseif strcmpi (varargin{1}, "output") outname = name; else error ("expected input or output"); endif if !isempty(inname) idx = find (arrayfun(@(x) match_name_and_type(x, name,"input"), devs), 1); if !isempty (idx) indev = devs (idx); inname = indev.Name; else error ("unknown name %s", inname); endif endif if !isempty(outname) idx = find (arrayfun(@(x) match_name_and_type(x, name,"output"), devs), 1); if !isempty (idx) outdev = devs (idx); outname = outdev.Name; else error ("unknown name %s", outname); endif endif else # nargin == 4 # an input and output device specified if isscalar (varargin{2}) name = devs (varargin{2}+1).Name; elseif ischar (varargin{2}) name = varargin{2}; endif if strcmpi (varargin{1}, "input") inname = name; elseif strcmpi (varargin{1}, "output") outname = name; else error ("expected input or output"); endif if isscalar (varargin{4}) name = devs (varargin{4}+1).Name; elseif ischar (varargin{4}) name = varargin{4}; endif if strcmpi (varargin{3}, "input") inname = name; elseif strcmpi (varargin{3}, "output") outname = name; else error ("expected input or output"); endif idx = find (arrayfun(@(x) match_name_and_type(x, outname,"output"), devs), 1); if !isempty (idx) outdev = devs (idx); outname = outdev.Name; else error ("unknown name %s", outname); endif idx = find (arrayfun(@(x) match_name_and_type(x, inname,"input"), devs), 1); if !isempty (idx) indev = devs(idx); inname = indev.Name; else error ("unknown name %s", inname); endif endif dev = __mididevice__ (inname, outname); endfunction function t = match_name_and_type(x, name, type) t = (strncmpi(x.Name, name, length(name)) && strcmpi(x.Direction,type)); endfunction %!test %! a = mididevice(0); %! assert(isa(a, "octave_midi")); audio-2.0.4/inst/mididevinfo.m0000644000000000000000000000645014153136030014435 0ustar0000000000000000## Copyright (C) 2019-2021 John Donoghue ## ## This program is free software: you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by ## the Free Software Foundation, either version 3 of the License, or ## (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program. If not, see ## . ## -*- texinfo -*- ## @deftypefn {} {@var{devlist} =} mididevinfo () ## @deftypefnx {} {} mididevinfo () ## Retrieve the midi devices detected within the system. ## ## The list will be stored with variable @var{devlist} as either a input or output device. ## If no output variable is provided, the devices will be displayed. ## ## @subsubheading Inputs ## None ## ## @subsubheading Outputs ## @var{devlist} - a structure containing the midi device information ## ## @subsubheading Examples ## Display the known devices of the system. ## @example ## @code { ## @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 ## @code { ## @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.4/inst/midifileinfo.m0000644000000000000000000001270214153136030014573 0ustar0000000000000000## Copyright (C) 2019-2021 John Donoghue ## ## This program is free software: you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by ## the Free Software Foundation, either version 3 of the License, or ## (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program. If not, see ## . ## -*- texinfo -*- ## @deftypefn {} {@var{info} =} midifileinfo (@var{filename}) ## Read MIDI file and display information about the tracks and data ## ## @subsubheading Inputs ## @var{filename} - filename of file to open.@* ## ## @subsubheading Outputs ## @var{info} - structure of the midi file data ## with the following fields:@* ## @table @asis ## @item filename ## the name of the file ## @item header ## The header block information ## @item track ## An array of tracks read from the file ## @item other ## An array of non-track midi blocks read from the file ## @end table ## @seealso{midifileread} ## @end deftypefn function mi = midifileinfo(filename) if nargin < 1 error ("Expected filename"); endif mi = {}; mi.filename = filename; mi.header = {}; mi.track = {}; mi.other = {}; fd = fopen(filename, "rb"); blockidx = 0; unwind_protect # read file while !feof(fd) blockhdr = readheader (fd); if !isempty (blockhdr) nextpos = ftell (fd) + blockhdr.blocksize; if strcmp (blockhdr.blocktype, "MThd") hdr = {}; hdr.format = fread (fd, 1, "uint16", 0, "ieee-be"); hdr.tracks = fread (fd, 1, "uint16", 0, "ieee-be"); frames = fread (fd, 1, "uint8"); ticks = fread (fd, 1, "uint8"); if frames > 127 hdr.tick_resolution = double(256-frames) * ticks; else hdr.ticks_per_qtr = polyval(double([frames ticks]), 256); endif hdr.ticks = ticks; hdr.frames = frames; mi.header = hdr; elseif strcmp (blockhdr.blocktype, "MTrk") cmd = 0; track = {}; track.number = length (mi.track) + 1; track.blockindex = blockidx; track.blocksize = blockhdr.blocksize; track.blockstart = ftell(fd); while ftell (fd) < nextpos t = getvariable(fd); tcmd = fread (fd,1, "uint8"); if tcmd >= 0x80 cmd = tcmd; else # repeat same command, so with is a data byte fseek (fd,-1,'cof'); endif if cmd >= 0xf0 subcmd = cmd; else subcmd = bitand (cmd, 0xF0); endif switch subcmd case 0xff ctype = fread (fd, 1, "uint8"); ct = getvariable (fd); data = fread (fd, [1 ct], "uint8"); if ctype == 0 [ "seq: " char(data) ] elseif ctype == 1 track.text{end+1} = char(data); elseif ctype == 2 track.copyright = char(data); elseif ctype == 3 track.trackname = char(data); elseif ctype == 4 track.instrument = char(data); elseif ctype == 5 track.lyric{end+1} = char(data); elseif ctype == 6 #[ "marker: " char(data) ] elseif ctype == 7 #[ "cue: " char(data) ] else #[ num2str (ctype) ": " data ] endif case {0xf1, 0xf3} sz = 1; data = fread(fd, [1 sz], "uint8"); case {0xf2} sz = 2; data = fread(fd, [1 sz], "uint8"); case {0xf6, 0xf7, 0xf8, 0xfa, 0xfb, 0xfc, 0xfe} # nothing additional to get case {0xf0} ct = getvariable (fd); data = fread (fd, [1 ct], "uint8"); case { 0x80, 0x90, 0xB0, 0xE0} sz = 2; data = fread (fd, [1 sz], "uint8"); case { 0xC0, 0xD0} sz = 1; data = fread (fd, [1 sz], "uint8"); otherwise error ("unknown command now %2X", cmd); endswitch endwhile mi.track{end+1} = track; else track = {}; track.blockindex = blockidx; track.blocksize = blockhdr.blocksize; track.blockstart = ftell(fd); track.blocktype = blockhdr.blocktype mi.other{end+1} = track; endif blockidx = blockidx + 1; fseek (fd, nextpos, 'bof'); endif endwhile unwind_protect_cleanup fclose (fd); end_unwind_protect endfunction %!shared testname %! testname = file_in_loadpath("data/c_maj_melody.mid"); %!test %! info = midifileinfo(testname); %! t = info.header; %! assert(info.header.format, 1); %! assert(info.header.tracks, 2); %! assert(info.header.ticks_per_qtr, 480); %! assert(info.header.ticks, 224); %! assert(info.header.frames, 1); %! assert(length(info.track), 2); %! assert(length(info.other), 0); audio-2.0.4/inst/midifileread.m0000644000000000000000000002040014153136030014545 0ustar0000000000000000## Copyright (C) 2019-2021 John Donoghue ## ## This program is free software: you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by ## the Free Software Foundation, either version 3 of the License, or ## (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program. If not, see ## . ## -*- texinfo -*- ## @deftypefn {} {@var{msg} =} midifileread (@var{filename}, [propertyname, propertyvalue @dots{}]) ## Read MIDI file into a midimsg ## ## @subsubheading Inputs ## @var{filename} - filename of file to open.@* ## @var {propertyname}, @var{properyvalue} - optional propertyname/value pairs.@* ## ## Known property values are: ## @table @asis ## @item includemetaevents ## A True/False value to include MetaEvents in the out message list. ## @end table ## ## @subsubheading Outputs ## @var{msg} - a midimsg struct containing the messages read from the file@* ## @seealso{midifileinfo, midimsg} ## @end deftypefn function msg = midifileread(filename, varargin) if nargin < 1 error ("Expected filename"); endif debug = 0; includemetaevents = 0; abstime = 0; format = 0; tempo = 6e7/120; msg = midimsg(0); if mod (nargin + 1, 2) != 0 error ("midifileread: expected property name, value pairs"); endif if !iscellstr (varargin (1:2:nargin-1)) error ("midicontrols: expected property names to be strings"); endif for i = 1:2:nargin-1 propname = tolower (varargin{i}); propvalue = varargin{i+1}; if strcmp (propname, "debug") if !(isnumeric (propvalue) || islogical(propvalue)) || !isscalar(propvalue) error ("debug should be boolean") else debug = propvalue; endif elseif strcmp (propname, "includemetaevents") if !(isnumeric (propvalue) || islogical(propvalue))|| !isscalar(propvalue) error ("includemetaevents should be boolean") else includemetaevents = propvalue; endif else error ("unknown property '%s'", propname) endif endfor # TODO: handle time stamp AND fact that different formats offset time stamp differently between tracks fd = fopen (filename, "rb"); unwind_protect # read file while !feof (fd) blockhdr = readheader (fd); if !isempty(blockhdr) nextpos = ftell (fd) + blockhdr.blocksize; if strcmp (blockhdr.blocktype, "MThd") format = fread (fd, 1, "uint16", 0, "ieee-be"); tracks = fread (fd, 1, "uint16", 0, "ieee-be"); frames = fread (fd, 1, "uint8"); ticks = fread (fd, 1, "uint8"); if frames > 127 tick_resolution = double(256-frames) * ticks; else ticks_per_qtr = polyval(double([frames ticks]), 256); endif endif if strcmp (blockhdr.blocktype, "MTrk") if format == 1 abstime = 0; endif cmd = 0; while ftell (fd) < nextpos t = getvariable(fd); if frames > 127 t = t / tick_resolution; else t = t * (tempo/ticks_per_qtr)/1e6; endif abstime = abstime + t; tcmd = fread (fd,1, "uint8"); if tcmd >= 0x80 cmd = tcmd; else # repeat same command, so with is a data byte fseek (fd,-1,'cof'); endif if cmd >= 0xf0 subcmd = cmd; else subcmd = bitand (cmd, 0xF0); endif switch subcmd # TODO: convert to midi messages case 0xff # example # ff00 1003 7741 7961 6920 0000020 206e 2061 614d 676e 7265 ctype = fread (fd, 1, "uint8"); ct = getvariable (fd); data = fread (fd, [1 ct], "uint8"); if debug if ctype == 0 [ "seq: " char(data) ] elseif ctype == 1 [ "text: " char(data) ] elseif ctype == 2 [ "copyright: " char(data) ] elseif ctype == 3 [ "track name: " char(data) ] elseif ctype == 4 [ "instrument: " char(data) ] elseif ctype == 5 [ "lyric: " char(data) ] elseif ctype == 6 [ "marker: " char(data) ] elseif ctype == 7 [ "cue: " char(data) ] elseif ctype == 0x21 [ "midiport: " sprintf("%02X ", data) ] elseif ctype == 0x51 t = polyval(double(data), 256); [ "tempo: " num2str(t) ] elseif ctype == 0x54 [ "smtpe: " sprintf("%02X ", data) ] elseif ctype == 0x58 [ "timesig: " sprintf("%02X ", data) ] elseif ctype == 0x2f [ "eot:" ] elseif ctype == 0x59 [ "keysig: " sprintf("%02X ", data) ] else [ "unknown: " sprintf("%d (%02X): ", ctype, ctype) sprintf("%02X ", data) ] endif endif if ctype == 0x51 tempo = polyval(double(data), 256); endif if includemetaevents msg = [msg midimsg.createMessage(uint8([cmd ctype midimsg.makevariable(ct) data]), abstime)]; endif case {0xf1, 0xf3} sz = 1; data = fread(fd, [1 sz], "uint8"); msg = [msg midimsg.createMessage(uint8([cmd data]), abstime)]; case {0xf2} sz = 2; data = fread(fd, [1 sz], "uint8"); msg = [msg midimsg.createMessage(uint8([cmd data]), abstime)]; case {0xf6, 0xf7, 0xf8, 0xfa, 0xfb, 0xfc, 0xfe} msg = [msg midimsg.createMessage(uint8([cmd]), abstime)]; case {0xf0} ct = getvariable (fd); data = fread (fd, [1 (ct-1)], "uint8"); eox = fread (fd, [1 1], "uint8"); msg = [msg midimsg.createMessage(uint8([cmd]), abstime) ... midimsg.createMessage(uint8([data]), abstime) ... midimsg.createMessage(uint8([eox]), abstime)]; case { 0x80, 0x90, 0xA0, 0xB0, 0xE0} sz = 2; data = fread (fd, [1 sz], "uint8"); msg = [msg midimsg.createMessage(uint8([cmd data]), abstime)]; case { 0xC0, 0xD0} sz = 1; data = fread(fd, [1 sz], "uint8"); msg = [msg midimsg.createMessage(uint8([cmd data]), abstime)]; otherwise # now what err = dec2hex (fread(fd,5, "uint8")); error ("unknown command now %2X", cmd) endswitch endwhile endif fseek (fd, nextpos, 'bof'); endif endwhile # so now should have list of midi data using absolute time in secs # with all channels concated together # so sort into time order msg = sort(msg); unwind_protect_cleanup fclose (fd); end_unwind_protect endfunction %!shared testname %! testname = file_in_loadpath("data/c_maj_melody.mid"); %!test %! msg = midifileread(testname); %! assert(length(msg), 70); %! assert(msg(1).type == "ResetAllControllers"); %! assert(msg(1).timestamp, 0); %! assert(msg(length(msg)).type == "NoteOn"); %! assert(msg(length(msg)).timestamp, 7.9739583, 5e-7); %!test %! msg = midifileread(testname, 'includemetaevents', true); %! assert(length(msg), 77); %! assert(msg(1).type == "MetaEvent"); %! assert(msg(1).timestamp, 0); %! assert(msg(length(msg)).type == "MetaEvent"); %! assert(msg(length(msg)).timestamp, 7.975, 5e-7); %!fail midifileread(testname, "1name"); %!fail midifileread(); audio-2.0.4/inst/midifilewrite.m0000644000000000000000000001736214153136030015001 0ustar0000000000000000## Copyright (C) 2019-2021 John Donoghue ## ## This program is free software: you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by ## the Free Software Foundation, either version 3 of the License, or ## (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program. If not, see ## . ## -*- texinfo -*- ## @deftypefn {} {} midifilewrite (@var{filename}, @var{msgs}) ## @deftypefnx {} {} midifilewrite (@var{filename}, @var{msgs}, @var{optionname}, @var{optionvalue}) ## Write a midifile ## ## @subsubheading Inputs ## @var{filename} - filename of file to open.@* ## @var{msg} - a midimsg struct or a cell array of midimsg containing data to write to file@* ## @var{optionname}, @var{optionvalue} - option value/name pairs@* ## ## Known options are: ## @table @asis ## @item format ## MIDI file format number. (0 (default), 1, 2) ## @end table ## ## Where format is 0, if a cell array is passed to midifilewrite, the midimsg values will ## be concatenated together before saving. ## ## Were format is not 0, the cell array is treated as tracks of misimsg. ## ## @subsubheading Outputs ## None ## @seealso{midifileread, midimsg} ## @end deftypefn function midifilewrite(varargin) if nargin < 2 error ("Expected filename and messages"); endif filename = varargin{1}; msg = varargin{2}; if iscell(msg) for idx=1:length(msg) if !isa(msg{idx}, "midimsg") error ("Expected midimsg type messages in cell array"); endif endfor elseif !isa(msg, "midimsg") error ("Expected midimsg type messages"); endif if mod (nargin, 2) != 0 error ("midifilewrite: expected property name, value pairs"); endif if !iscellstr (varargin (3:2:nargin)) error ("midifilewrite: expected property names to be strings"); endif format = 0; for idx = 3:2:nargin propname = tolower (varargin{idx}); propvalue = varargin{idx+1}; if strcmp(propname, "format") if isnumeric(propvalue) format = int16(propvalue); else format = -1; endif if format != 1 && format != 2 && format != 0 error ("format must be one of 0,1,2"); endif else warning("Unknown option '%s' ignored", propname) endif endfor if format == 0 trackcnt = 1; # if we had a cell string, make a single track list if iscell(msg) cellmsg = msg; msg = midimsg(0); for idx=1:length(cellmsg) msg = [msg cellmsg{idx}]; endfor endif else # multi track mode, so make us a cell array if ! iscell(msg) msg = {msg}; endif trackcnt = length(msg); endif fd = fopen (filename, "wb"); unwind_protect # block hdr hdr = {}; hdr.blocksize = 6; hdr.blocktype = "MThd"; writeheader (fd, hdr); # info ticks_per_qtr = 1e3; frames = floor(ticks_per_qtr/256); ticks = mod(ticks_per_qtr, 256); fwrite (fd, format, "uint16", 0, "ieee-be"); fwrite (fd, trackcnt, "uint16", 0, "ieee-be"); fwrite (fd, frames, "uint8"); fwrite (fd, ticks, "uint8"); tempo = 6e7/120; if format == 0 # the tracks fixpos = ftell (fd); hdr.blocksize = 0; hdr.blocktype = "MTrk"; writeheader (fd, hdr); lasttime = []; la = []; for idx=1:length(msg) a = msg(idx); # on first time, set lasttime if isempty(lasttime) lasttime = a.timestamp; endif if a.timestamp >= lasttime ts = (a.timestamp - lasttime); else ts = a.timestamp; endif lasttime = lasttime + ts; ts = (ts*1e6)/(tempo/ticks_per_qtr); if !isempty(la) && la.msgbytes(1) == 0xF0 # sysex msg previously started sz = length(a.msgbytes) + 1; setvariable (fd, sz); fwrite (fd, a.msgbytes); fwrite (fd, uint8([0xF7])); elseif !isempty(a) && a.msgbytes(1) != 0xF7 setvariable (fd, ts); fwrite (fd, a.msgbytes); # tempo meta event if a.msgbytes(1) == 0xFF && a.msgbytes(2) == 0x51 # FF 51 3 TT TT TT tempo = polyval(double(a.msgbytes(4:end)), 256); endif endif la = a; endfor # write eot and fix the header fwrite (fd, uint8([0x01 0xff 0x2f 0x00])); # fix the size of the track cpos = ftell (fd); len = cpos - fixpos - 8; fseek (fd, fixpos, SEEK_SET); hdr.blocksize = len; hdr.blocktype = "MTrk"; writeheader (fd, hdr); fseek (fd, cpos, SEEK_SET); else # the tracks for t=1:length(msg) fixpos = ftell (fd); hdr.blocksize = 0; hdr.blocktype = "MTrk"; writeheader (fd, hdr); lasttime = []; m = msg{t}; la = []; for idx=1:length(m) a = m(idx); # on first time, set lasttime if isempty(lasttime) lasttime = a.timestamp; endif if a.timestamp >= lasttime ts = (a.timestamp - lasttime); else ts = a.timestamp; endif lasttime = lasttime + ts; ts = (ts*1e6)/(tempo/ticks_per_qtr); if !isempty(la) && la.msgbytes(1) == 0xF0 # sysex msg previously started sz = length(a.msgbytes) + 1; setvariable (fd, sz); fwrite (fd, a.msgbytes); fwrite (fd, uint8([0xF7])); elseif !isempty(a) && a.msgbytes(1) != 0xF7 setvariable (fd, ts); fwrite (fd, a.msgbytes); endif la = a; endfor # write eot and fix the header fwrite (fd, uint8([0x01 0xff 0x2f 0x00])); # fix the size of the track cpos = ftell (fd); len = cpos - fixpos - 8; fseek (fd, fixpos, SEEK_SET); hdr.blocksize = len; hdr.blocktype = "MTrk"; writeheader (fd, hdr); fseek (fd, cpos, SEEK_SET); endfor endif unwind_protect_cleanup fclose (fd); end_unwind_protect endfunction %!shared testname %! testname = tempname; %!test %! data = midimsg("note", 1, 60, 100, 2); %! midifilewrite(testname, data); %! info = midifileinfo(testname); %! t = info.header; %! assert(info.header.format, 0); %! assert(info.header.tracks, 1); %! msg = midifileread(testname); %! assert(msg(1).msgbytes, uint8([0x90 0x3C 0x64])); %! assert(msg(2).msgbytes, uint8([0x90 0x3C 0x00])); %! assert(msg(2).timestamp, 2); %!test %! data = midimsg("note", 1, 60, 100, 2); %! %! midifilewrite(testname, data, 'format', 0); %! info = midifileinfo(testname); %! assert(info.header.format, 0); %! assert(info.header.tracks, 1); %! msg = midifileread(testname); %! assert(length(msg), 2); %! %! midifilewrite(testname, data, 'format', 1); %! info = midifileinfo(testname); %! assert(info.header.format, 1); %! assert(info.header.tracks, 1); %! msg = midifileread(testname); %! assert(length(msg), 2); %! %! midifilewrite(testname, {data, data}, 'format', 0); %! info = midifileinfo(testname); %! assert(info.header.format, 0); %! assert(info.header.tracks, 1); %! msg = midifileread(testname); %! assert(length(msg), 4); %! %! midifilewrite(testname, {data, data}, 'format', 1); %! info = midifileinfo(testname); %! assert(info.header.format, 1); %! assert(info.header.tracks, 2); %! msg = midifileread(testname); %! assert(length(msg), 4); %!test %! if exist (testname, 'file'); %! delete (testname); %! end audio-2.0.4/inst/midiid.m0000644000000000000000000000506214153136030013375 0ustar0000000000000000## Copyright (C) 2019-2021 John Donoghue ## ## This program is free software: you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by ## the Free Software Foundation, either version 3 of the License, or ## (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program. If not, see ## . ## -*- texinfo -*- ## @deftypefn {} {[@var{ctrlid}, @var{dev}] =} midiid () ## Scan for control messages from midi devices to get the id of the device ## ## Function will display a prompt for the user to move the midi control and return when ## a control messages is detected or ctrl-C is pressed. ## ## @subsubheading Inputs ## None ## ## @subsubheading Outputs ## @var{ctrlid} - control id made from the controller channel * 1000 + controller number.@* ## @var{dev} = name of the midi device the controller was detected on. ## ## @subsubheading Examples ## Monitor midi devices for first moving controller ## @example ## @code { ## [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.4/inst/midimsg.m0000644000000000000000000020343614153136030013574 0ustar0000000000000000## Copyright (C) 2019-2021 John Donoghue ## ## This program is free software: you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by ## the Free Software Foundation, either version 3 of the License, or ## (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program. If not, see ## . classdef midimsg ## -*- texinfo -*- ## @deftypefn {} {@var{msg} =} midimsg (0) ## @deftypefnx {} {@var{msg} =} midimsg (@var{type} ....) ## @deftypefnx {} {@var{msg} =} midimsg ("note", @var{channel}, @var{note}, @var{velocity}, @var{duration}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("noteon", @var{channel}, @var{note}, @var{velocity}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("noteoff", @var{channel}, @var{note}, @var{velocity}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("programchange", @var{channel}, @var{prog}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("controlchange", @var{channel}, @var{ccnum}, @var{ccval}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("polykeypressure", @var{channel}, @var{note}, @var{keypressure}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("channelpressure", @var{channel}, @var{chanpressure}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("localcontrol", @var{channel}, @var{localcontrol}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("pitchbend", @var{channel}, @var{pitchchange}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("polyon", @var{channel}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("monoon", @var{channel}, @var{monochannels}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("omnion", @var{channel}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("omnioff", @var{channel}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("allsoundoff", @var{channel}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("allnotesoff", @var{channel}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("resetallcontrollers", @var{channel}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("start", @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("stop", @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("continue", @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("systemreset", @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("activesensing", @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("timingclock", @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("systemexclusive", @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("systemexclusive", @var{bytes}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("eox", @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("data", @var{bytes}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("songselect", @var{song}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("songpositionpointer", @var{songposition}, @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("tunerequest", @var{timestamp}) ## @deftypefnx {} {@var{msg} =} midimsg ("miditimecodequarterframe", @var{timeseq}, @var{timevalue}, @var{timestamp}) ## Create a midimsg object ## ## If the input parameter is 0, create an empty midi message object ## Otherwise the first variable is the type of message to create, followed by the additional ## parameters for the message. ## ## For each message type, the timestamp value is optional. ## ## @subsubheading Inputs ## @var{type} - string message type or a midimsgtype.@* ## @var{timestamp} - optional seconds time stamp for the event@* ## @var{channel} - the channel to use for the message (1..16)@* ## @var{note} - the value of the note to play/stop@* ## @var{velocity} - the velocity value for a note on/off, with 0 stopping a note from sounding.@* ## @var{duration} - seconds between starting and stopping a note when created a 'note' message.@* ## @var{prog} - program number when doing a program change message.@* ## @var{ccnum} - control change control number.@* ## @var{ccval} - control change control value.@* ## @var{keypressure} - key pressure value when creating a key pressure message.@* ## @var{chanpressure} - channel pressure value when creating a channelpressure message.@* ## @var{pitchchange} - pitch change value when creating a pitch bend message.@* ## @var{localcontrol} - boolean value when creating a localcontrol message.@* ## @var{monochannels} - channels specified for a mono on message.@* ## @var{bytes} - array of data in range of 0 to 127 specified as part of a data message or ## system exclusive message.@* ## @var{song} - song selection number for a song selection message.@* ## @var{songposition} - song position value for a song position message.@* ## @var{timeseq} - timecode sequence number for a miditimecodequarterframe message.@* ## @var{timevalue} - timecode value number for a miditimecodequarterframe message.@* ## ## @subsubheading Outputs ## @var{msg} - a midimsg object containing the midi data of the message ## ## @subsubheading Properties ## @var{timestamp} - timestamp of the message, or an array or timestamps if the the message is a ## compound message.@* ## @var{msgbytes} - the raw message bytes that make up the MIDI message.@* ## @var{nummsgbytes} - the number of message bytes that make up the MIDI message.@* ## @var{type} - string or midimsgtype that represents the message type.@* ## @var{channel} - the channel number for message.@* ## @var{note} - the note value for message (Only valid for noteon/off and polykeypressure).@* ## @var{velocity} - the velocity value for message (Only valid for noteon/off).@* ## @var{keypressure} - the keypressure value for message (Only valid for polykeypressure).@* ## @var{channelpressure} - the chanpressure value for message (Only valid for channelpressure).@* ## @var{localcontrol} - the localcontrol value for message (Only valid for localcontrol messages).@* ## @var{monochannels} - channels specified for a mono on message.@* ## @var{program} - program number specified for a program change message.@* ## @var{ccnumber} - control change number specified for a control change message.@* ## @var{ccvalue} - control change value specified for a control change message.@* ## @var{song} - song number for a song selection message.@* ## @var{songposition} - song position value for a song position message.@* ## @var{pitchchange} - pitch change value for a pitch bend message.@* ## @var{timecodesequence} - timecode sequence number for a miditimecodequarterframe message.@* ## @var{timecodevalue} - timecode value number for a miditimecodequarterframe message.@* ## ## @subsubheading Examples ## Create a note on/off pair with a duration of 1.5 seconds ## @example ## @code { ## 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 ## @code { ## msg = [midimsg('noteon', 1, 60, 100, 0), midimsg('noteoff', 1, 60, 0, 1.5)] ## } ## @end example ## ## Create a system reset message ## @example ## @code { ## 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 val = midimsg.createMessage(this.data{idx{1}}, this.timestamp{idx{1}}); case "." switch tolower(s(1).subs) case "timestamp" if length(this.timestamp) == 1 val = this.timestamp{1}; else val = 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; endif msg = midimsg(0); msg.data{end+1} = data; msg.timestamp{end+1} = ts; 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")) %! t = a.timestamp; %! assert(length(t) == 2); %! assert(t{1}, 0.0) %! assert(t{2}, 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); audio-2.0.4/inst/midimsgtype.m0000644000000000000000000002177114153136030014476 0ustar0000000000000000## Copyright (C) 2020-2021 John Donoghue ## ## This program is free software: you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by ## the Free Software Foundation, either version 3 of the License, or ## (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program. If not, see ## . classdef midimsgtype ## -*- texinfo -*- ## @deftypefn {} {} midimsgtype ## A midimsg type enumeration for values of the midimsg type. ## ## Enumeration values are: ## @multitable @columnfractions .2 .4 .3 ## @item Data @tab Stop @tab SongPositionPointer ## @item PolyOn @tab PolyKeyPressure @tab NoteOff ## @item EOX @tab ActiveSensing @tab SongSelect ## @item MonoOn @tab ChannelPressure @tab ControlChange ## @item TimingClock @tab SystemReset @tab AllSoundOff ## @item OmniOn @tab PitchBend @tab ProgramChange ## @item Start @tab TuneRequest @tab ResetAllControllers ## @item OmniOff @tab Undefined @tab SystemExclusive ## @item Continue @tab MIDITimeCodeQuarterFrame @tab LocalControl ## @item AllNotesOff @tab MetaEvent @tab ## @end multitable ## ## ## The enumeration value can be used instead of a string in midimsg creation. ## ## @subsubheading Examples ## Use both a string and a midimsgtype for the type parameter of a midimsg. ## @example ## @code { ## # both statements are equivalent ## msg = midimsg('NoteOn', 1, 60, 100); ## msg = midimsg(midimsgtype.NoteOn, 1, 60, 100); ## } ## @end example ## ## @seealso{midimsg} ## @end deftypefn # enumeration doesnt work yet in octave #enumeration # Stop ("Stop") #endenumeration properties (Access = private) value = ""; endproperties # dont allow external creation of objects methods (Access = public, Hidden = true) function this = midimsgtype(value) if nargin < 1 value = "Undefined"; endif enums = this.enum_names(); idx = find( cellfun(@(x) strcmpi(x, value), enums), 1); if isempty (idx) error ("Unknown enum string value"); endif this.value = enums{idx}; endfunction endmethods methods function tf = isenum(this) tf = true; endfunction function results = ismember(this, cmpvals) if nargin < 2 || !iscell(cmpvals) error ("expected cell array to check against"); endif results = 0; for idx = 1:length(cmpvals) if this == cmpvals{idx} results = 1; endif endfor endfunction function tf = eq(this, val) if isa(val, "midimsgtype") val = val.value; endif if ischar(val) == false tf = false; else tf = strcmpi(this.value, val); endif endfunction function tf = ne(this, val) tf = ! eq(this, val); endfunction function tf = strcmp(this, val) if isa(val, "midimsgtype") val = val.value; endif tf = strcmp(this.value, val); endfunction function tf = strcmpi(this, val) if isa(val, "midimsgtype") val = val.value; endif tf = strcmpi(this.value, val); endfunction function tf = strncmp(this, val) if isa(val, "midimsgtype") val = val.value; endif tf = strncmp(this.value, val); endfunction function tf = strncmpi(this, val) if isa(val, "midimsgtype") val = val.value; endif tf = strncmpi(this.value, val); endfunction function s = char(this) s = this.value; endfunction function a = disp(this) if nargout == 0 disp(this.value); else a = [this.value "\n"]; endif endfunction function display(this) printf("%s = %s\n", inputname(1), this.value); endfunction endmethods # methods we will use to fake as readonly enum values methods (Static = true) function outlst = enum_names () persistent lst = {}; if isempty(lst) #classinfo = metaclass(this) classinfo = meta.class.fromName('midimsgtype'); for i = 1:length(classinfo.MethodList) x = classinfo.MethodList{i}; # assuming captital letter static funcs are the enum values if x.Static && !x.Hidden && x.Name(1) <= 'Z' lst{end+1} = x.Name; endif endfor endif outlst = lst; endfunction function outlst = enum_values () persistent lst = {}; if isempty(lst) names = midimsgtype.enum_names(); for i = 1:length(names) lst{end+1} = eval(sprintf("midimsgtype.%s;", names{i})); endfor endif outlst = lst; endfunction function c = NoteOn() persistent v = midimsgtype("NoteOn"); c = v; endfunction function c = NoteOff() persistent v = midimsgtype("NoteOff"); c = v; endfunction function c = ControlChange() persistent v = midimsgtype("ControlChange"); c = v; endfunction function c = ProgramChange() persistent v = midimsgtype("ProgramChange"); c = v; endfunction function c = SystemExclusive() persistent v = midimsgtype("SystemExclusive"); c = v; endfunction function c = Data() persistent v = midimsgtype("Data"); c = v; endfunction function c = EOX() persistent v = midimsgtype("EOX"); c = v; endfunction function c = TimingClock() persistent v = midimsgtype("TimingClock"); c = v; endfunction function c = Start() persistent v = midimsgtype("Start"); c = v; endfunction function c = Continue() persistent v = midimsgtype("Continue"); c = v; endfunction function c = Stop() persistent v = midimsgtype("Stop"); c = v; endfunction function c = ActiveSensing() persistent v = midimsgtype("ActiveSensing"); c = v; endfunction function c = SystemReset() persistent v = midimsgtype("SystemReset"); c = v; endfunction function c = TuneRequest() persistent v = midimsgtype("TuneRequest"); c = v; endfunction function c = MIDITimeCodeQuarterFrame() persistent v = midimsgtype("MIDITimeCodeQuarterFrame"); c = v; endfunction function c = SongPositionPointer() persistent v = midimsgtype("SongPositionPointer"); c = v; endfunction function c = SongSelect() persistent v = midimsgtype("SongSelect"); c = v; endfunction function c = AllSoundOff() persistent v = midimsgtype("AllSoundOff"); c = v; endfunction function c = ResetAllControllers() persistent v = midimsgtype("ResetAllControllers"); c = v; endfunction function c = LocalControl() persistent v = midimsgtype("LocalControl"); c = v; endfunction function c = PolyOn() persistent v = midimsgtype("PolyOn"); c = v; endfunction function c = MonoOn() persistent v = midimsgtype("MonoOn"); c = v; endfunction function c = OmniOff() persistent v = midimsgtype("OmniOff"); c = v; endfunction function c = OmniOn() persistent v = midimsgtype("OmniOn"); c = v; endfunction function c = AllNotesOff() persistent v = midimsgtype("AllNotesOff"); c = v; endfunction function c = PolyKeyPressure() persistent v = midimsgtype("PolyKeyPressure"); c = v; endfunction function c = ChannelPressure() persistent v = midimsgtype("ChannelPressure"); c = v; endfunction function c = PitchBend() persistent v = midimsgtype("PitchBend"); c = v; endfunction function c = MetaEvent() persistent v = midimsgtype("MetaEvent"); c = v; endfunction function c = Undefined() persistent v = midimsgtype("Undefined"); c = v; endfunction function c = Reserved() persistent v = midimsgtype("Reserved"); c = v; endfunction endmethods endclassdef %!fail midimsg.InvalidEnumValue %!test %! t = midimsgtype.NoteOn; %! assert (class(t) == "midimsgtype"); %! c = char (t); %! assert (class(c) == "char"); %! assert (c == "NoteOn"); %!test %! t = midimsgtype.NoteOff; %! assert (isenum(t)); %!test %! t = midimsgtype.NoteOn; %! assert (t == "NoteOn"); %! assert (t == midimsgtype.NoteOn); %! assert (t != midimsgtype.NoteOff); %! assert (strcmp(midimsgtype.NoteOn, "NoteOn")); %! assert (strcmp(midimsgtype.NoteOn, midimsgtype.NoteOn)); %!test %! t = midimsgtype.NoteOn; %! assert(ismember(t, {midimsgtype.NoteOn}), 1); %! assert(ismember(t, {midimsgtype.NoteOff}), 0); %! assert(ismember(t, {midimsgtype.NoteOn, midimsgtype.NoteOff}), 1); audio-2.0.4/inst/midiread.m0000644000000000000000000000324214153136030013712 0ustar0000000000000000## Copyright (C) 2019 John Donoghue ## ## This program is free software: you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by ## the Free Software Foundation, either version 3 of the License, or ## (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program. If not, see ## . ## -*- texinfo -*- ## @deftypefn {} {@var{val} =} midiread (@var{midicontrolsObj}) ## Read current values of midi controls ## ## @subsubheading Inputs ## @var{midicontrolObj} - control object created using midicontrols@* ## ## @subsubheading Outputs ## @var{val} single value or array of current values from the midi device. ## ## @subsubheading Examples ## Read current value of midicontrols with a ctrlid 2001 on the default midi device. ## @example ## @code { ## ctrl = midicontrols(2001) ## val = midiread(ctrl); ## } ## @end example ## ## Read current value of midicontrols with a ctrlid 2001 on a non default midi device. ## @example ## @code { ## 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.4/inst/midireceive.m0000644000000000000000000000414014153136030014417 0ustar0000000000000000## Copyright (C) 2019 John Donoghue ## ## This program is free software: you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by ## the Free Software Foundation, either version 3 of the License, or ## (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program. If not, see ## . ## -*- texinfo -*- ## @deftypefn {} {@var{midimsg} =} midireceive (@var{dev}) ## @deftypefnx {} {@var{midimsg} =} midireceive (@var{dev}, @var{maxmsg}) ## Attempt to receive midi messages from a midi device. ## ## @subsubheading Inputs ## @var{dev} - a octave midi device opened using mididevice.@* ## @var{maxmsg} - Maximum number of messages to retrieve. If not specified, the function will attempt to get all pending.@* ## ## @subsubheading Outputs ## @var{midimsg} - a midimsg containing the messages retrieved from the device.@* ## If no messages are available, @var{midimsg} will be empty. ## ## @subsubheading Examples ## Open device 0, and poll and display read messages ## @example ## @code { ## 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) 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.4/inst/midisend.m0000644000000000000000000000537114153136030013735 0ustar0000000000000000## Copyright (C) 2019 John Donoghue ## ## This program is free software: you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by ## the Free Software Foundation, either version 3 of the License, or ## (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program. If not, see ## . ## -*- texinfo -*- ## @deftypefn {} {} midisend (@var{dev}, @var{msg}) ## @deftypefnx {} {} midisend (@var{dev}, ...) ## Send a midimsg to a midi device ## ## @subsubheading Inputs ## @var{dev} - midi device opened using mididevice@* ## @var{msg} - a midi message class with messages to send to the midi device@* ## If the msg isn't a midimsg class, the input data is expected to be in same format as the inputs to a midimsg object. ## ## @subsubheading Outputs ## None ## ## @subsubheading Examples ## Send a note on/off command to a opened midi device @var{dev} ## @example ## @code { ## 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 msg_data = msg.msgbytes; msg_ts = msg.timestamp; if !iscell(msg_ts) msg_data = { msg_data }; msg_ts = { msg_ts }; 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_ts) > 0 timestamp = msg_ts{1}; else timestamp = 0; endif # loop thru data and send each message for i=1:length(msg_ts) ts = msg_ts{i}; if ts < timestamp ts = timestamp - ts; endif delta = (ts - timestamp); if delta < 0 delta = 0; endif pause(delta); data = msg_data{i}; # 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.4/inst/midisync.m0000644000000000000000000000320014153136030013745 0ustar0000000000000000## Copyright (C) 2019 John Donoghue ## ## This program is free software: you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by ## the Free Software Foundation, either version 3 of the License, or ## (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program. If not, see ## . ## -*- texinfo -*- ## @deftypefn {} {} midisync (@var{midicontrolsObj}) ## @deftypefnx {} {} midisync (@var{midicontrolsObj}, @var{ctrlvalues}) ## Send the values of control object to the control, using @var{ctrlvalues} values ## if specified instead ## ## @subsubheading Inputs ## @var{midicontrolObj} - control object created using midicontrols@* ## @var{ctrlvalues} - values to send to the controls instead of initial values ## ## @subsubheading Outputs ## None ## ## @subsubheading Examples ## Send sync command to a midicontrols with a ctrlid 2001 to set a value of 1 ## @example ## @code { ## 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.4/inst/private/0000755000000000000000000000000014153136030013427 5ustar0000000000000000audio-2.0.4/inst/private/getvariable.m0000644000000000000000000000203514153136030016072 0ustar0000000000000000## Copyright (C) 2019 John Donoghue ## ## This program is free software: you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by ## the Free Software Foundation, either version 3 of the License, or ## (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program. If not, see ## . ## -*- texinfo -*- ## @deftypefn {} {@var{t} =} getvariable (@var{fd}) ## Private function ## @end deftypefn function t = getvariable (fd) t = uint64(0); while !feof(fd) b = fread(fd, 1, "uint8"); t = bitshift(t, 7) + bitand(b, uint64(0x7f)); if b < 128 break; endif endwhile t = double(t); endfunction audio-2.0.4/inst/private/readheader.m0000644000000000000000000000205014153136030015666 0ustar0000000000000000## Copyright (C) 2019 John Donoghue ## ## This program is free software: you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by ## the Free Software Foundation, either version 3 of the License, or ## (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program. If not, see ## . ## -*- texinfo -*- ## @deftypefn {} {@var{h} =} readheader (@var{fd}) ## Private function ## @end deftypefn function h = readheader (fd) blocktype = char(fread(fd,[1 4],"char")); blocksize = fread(fd,1,"uint32",0, 'ieee-be'); h = {}; if !isempty(blocksize) h.blocksize = blocksize; h.blocktype = blocktype; endif endfunction audio-2.0.4/inst/private/setvariable.m0000644000000000000000000000235614153136030016114 0ustar0000000000000000## Copyright (C) 2019 John Donoghue ## ## This program is free software: you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by ## the Free Software Foundation, either version 3 of the License, or ## (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program. If not, see ## . ## -*- texinfo -*- ## @deftypefn {} {} setvariable (@var{fd}, @var{value}) ## Private function ## @end deftypefn function setvariable (fd, value) t = uint64(value); data = []; if t < 128 v = uint8(t); fwrite(fd, v, 'uint8'); else tmp = dec2bin(t); while mod(length(tmp), 7) != 0 tmp = [ "0" tmp ]; endwhile for i=1:7:length(tmp) v = tmp(i:i+6); v = uint8(bin2dec(v)); if i < length(tmp) -7 v = 128 + v; endif fwrite(fd, v, 'uint8'); endfor endif endfunction audio-2.0.4/inst/private/writeheader.m0000644000000000000000000000170714153136030016115 0ustar0000000000000000## Copyright (C) 2019 John Donoghue ## ## This program is free software: you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by ## the Free Software Foundation, either version 3 of the License, or ## (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program. If not, see ## . ## -*- texinfo -*- ## @deftypefn {} {} writeheader (@var{fd}, @var{hdr}) ## Private function ## @end deftypefn function writeheader (fd, hdr) fwrite (fd, hdr.blocktype, 'char'); fwrite (fd, hdr.blocksize, 'uint32', 0, 'ieee-be'); endfunction audio-2.0.4/src/0000755000000000000000000000000014153136030011567 5ustar0000000000000000audio-2.0.4/src/.svnignore0000644000000000000000000000003114153136030013574 0ustar0000000000000000autom4te.cache configure audio-2.0.4/src/Makefile.in0000644000000000000000000000102614153136030013633 0ustar0000000000000000MKOCTFILE := @MKOCTFILE@ CXXFLAGS := @CXXFLAGS@ @DEFS@ LIBS := @LIBS@ LDFLAGS := @LDFLAGS@ SRC := mididevinfo.cc mididevice.cc midi.cc midi_object.cc midisend.cc midirecv.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 -f Makefile config.status config.log config.h configure audio-2.0.4/src/aclocal.m40000644000000000000000000003207214153136030013433 0ustar0000000000000000# generated automatically by aclocal 1.16.2 -*- Autoconf -*- # Copyright (C) 1996-2020 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # serial 11 (pkg-config-0.29.1) dnl Copyright © 2004 Scott James Remnant . dnl Copyright © 2012-2015 Dan Nicholson dnl dnl This program is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2 of the License, or dnl (at your option) any later version. dnl dnl This program is distributed in the hope that it will be useful, but dnl WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU dnl General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA dnl 02111-1307, USA. dnl dnl As a special exception to the GNU General Public License, if you dnl distribute this file as part of a program that contains a dnl configuration script generated by Autoconf, you may include it under dnl the same distribution terms that you use for the rest of that dnl program. dnl PKG_PREREQ(MIN-VERSION) dnl ----------------------- dnl Since: 0.29 dnl dnl Verify that the version of the pkg-config macros are at least dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's dnl installed version of pkg-config, this checks the developer's version dnl of pkg.m4 when generating configure. dnl dnl To ensure that this macro is defined, also add: dnl m4_ifndef([PKG_PREREQ], dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])]) dnl dnl See the "Since" comment for each macro you use to see what version dnl of the macros you require. m4_defun([PKG_PREREQ], [m4_define([PKG_MACROS_VERSION], [0.29.1]) m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1, [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])]) ])dnl PKG_PREREQ dnl PKG_PROG_PKG_CONFIG([MIN-VERSION]) dnl ---------------------------------- dnl Since: 0.16 dnl dnl Search for the pkg-config tool and set the PKG_CONFIG variable to dnl first found in the path. Checks that the version of pkg-config found dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is dnl used since that's the first version where most current features of dnl pkg-config existed. AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl ])dnl PKG_PROG_PKG_CONFIG dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) dnl ------------------------------------------------------------------- dnl Since: 0.18 dnl dnl Check to see whether a particular set of modules exists. Similar to dnl PKG_CHECK_MODULES(), but does not set variables or print errors. dnl dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) dnl only at the first occurence in configure.ac, so if the first place dnl it's called might be skipped (such as if it is within an "if", you dnl have to call PKG_CHECK_EXISTS manually AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_default([$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) dnl --------------------------------------------- dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting dnl pkg_failed based on the result. m4_define([_PKG_CONFIG], [if test -n "$$1"; then pkg_cv_[]$1="$$1" elif test -n "$PKG_CONFIG"; then PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes ], [pkg_failed=yes]) else pkg_failed=untried fi[]dnl ])dnl _PKG_CONFIG dnl _PKG_SHORT_ERRORS_SUPPORTED dnl --------------------------- dnl Internal check to see if pkg-config supports short errors. AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi[]dnl ])dnl _PKG_SHORT_ERRORS_SUPPORTED dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], dnl [ACTION-IF-NOT-FOUND]) dnl -------------------------------------------------------------- dnl Since: 0.4.0 dnl dnl Note that if there is a possibility the first call to dnl PKG_CHECK_MODULES might not happen, you should be sure to include an dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no AC_MSG_CHECKING([for $1]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then AC_MSG_RESULT([no]) _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` else $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD m4_default([$4], [AC_MSG_ERROR( [Package requirements ($2) were not met: $$1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. _PKG_TEXT])[]dnl ]) elif test $pkg_failed = untried; then AC_MSG_RESULT([no]) m4_default([$4], [AC_MSG_FAILURE( [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. _PKG_TEXT To get pkg-config, see .])[]dnl ]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) $3 fi[]dnl ])dnl PKG_CHECK_MODULES dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], dnl [ACTION-IF-NOT-FOUND]) dnl --------------------------------------------------------------------- dnl Since: 0.29 dnl dnl Checks for existence of MODULES and gathers its build flags with dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags dnl and VARIABLE-PREFIX_LIBS from --libs. dnl dnl Note that if there is a possibility the first call to dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to dnl include an explicit call to PKG_PROG_PKG_CONFIG in your dnl configure.ac. AC_DEFUN([PKG_CHECK_MODULES_STATIC], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl _save_PKG_CONFIG=$PKG_CONFIG PKG_CONFIG="$PKG_CONFIG --static" PKG_CHECK_MODULES($@) PKG_CONFIG=$_save_PKG_CONFIG[]dnl ])dnl PKG_CHECK_MODULES_STATIC dnl PKG_INSTALLDIR([DIRECTORY]) dnl ------------------------- dnl Since: 0.27 dnl dnl Substitutes the variable pkgconfigdir as the location where a module dnl should install pkg-config .pc files. By default the directory is dnl $libdir/pkgconfig, but the default can be changed by passing dnl DIRECTORY. The user can override through the --with-pkgconfigdir dnl parameter. AC_DEFUN([PKG_INSTALLDIR], [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) m4_pushdef([pkg_description], [pkg-config installation directory @<:@]pkg_default[@:>@]) AC_ARG_WITH([pkgconfigdir], [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, [with_pkgconfigdir=]pkg_default) AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) m4_popdef([pkg_default]) m4_popdef([pkg_description]) ])dnl PKG_INSTALLDIR dnl PKG_NOARCH_INSTALLDIR([DIRECTORY]) dnl -------------------------------- dnl Since: 0.27 dnl dnl Substitutes the variable noarch_pkgconfigdir as the location where a dnl module should install arch-independent pkg-config .pc files. By dnl default the directory is $datadir/pkgconfig, but the default can be dnl changed by passing DIRECTORY. The user can override through the dnl --with-noarch-pkgconfigdir parameter. AC_DEFUN([PKG_NOARCH_INSTALLDIR], [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) m4_pushdef([pkg_description], [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) AC_ARG_WITH([noarch-pkgconfigdir], [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, [with_noarch_pkgconfigdir=]pkg_default) AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) m4_popdef([pkg_default]) m4_popdef([pkg_description]) ])dnl PKG_NOARCH_INSTALLDIR dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) dnl ------------------------------------------- dnl Since: 0.28 dnl dnl Retrieves the value of the pkg-config variable for the given module. AC_DEFUN([PKG_CHECK_VAR], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl _PKG_CONFIG([$1], [variable="][$3]["], [$2]) AS_VAR_COPY([$1], [pkg_cv_][$1]) AS_VAR_IF([$1], [""], [$5], [$4])dnl ])dnl PKG_CHECK_VAR dnl PKG_WITH_MODULES(VARIABLE-PREFIX, MODULES, dnl [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND], dnl [DESCRIPTION], [DEFAULT]) dnl ------------------------------------------ dnl dnl Prepare a "--with-" configure option using the lowercase dnl [VARIABLE-PREFIX] name, merging the behaviour of AC_ARG_WITH and dnl PKG_CHECK_MODULES in a single macro. AC_DEFUN([PKG_WITH_MODULES], [ m4_pushdef([with_arg], m4_tolower([$1])) m4_pushdef([description], [m4_default([$5], [build with ]with_arg[ support])]) m4_pushdef([def_arg], [m4_default([$6], [auto])]) m4_pushdef([def_action_if_found], [AS_TR_SH([with_]with_arg)=yes]) m4_pushdef([def_action_if_not_found], [AS_TR_SH([with_]with_arg)=no]) m4_case(def_arg, [yes],[m4_pushdef([with_without], [--without-]with_arg)], [m4_pushdef([with_without],[--with-]with_arg)]) AC_ARG_WITH(with_arg, AS_HELP_STRING(with_without, description[ @<:@default=]def_arg[@:>@]),, [AS_TR_SH([with_]with_arg)=def_arg]) AS_CASE([$AS_TR_SH([with_]with_arg)], [yes],[PKG_CHECK_MODULES([$1],[$2],$3,$4)], [auto],[PKG_CHECK_MODULES([$1],[$2], [m4_n([def_action_if_found]) $3], [m4_n([def_action_if_not_found]) $4])]) m4_popdef([with_arg]) m4_popdef([description]) m4_popdef([def_arg]) ])dnl PKG_WITH_MODULES dnl PKG_HAVE_WITH_MODULES(VARIABLE-PREFIX, MODULES, dnl [DESCRIPTION], [DEFAULT]) dnl ----------------------------------------------- dnl dnl Convenience macro to trigger AM_CONDITIONAL after PKG_WITH_MODULES dnl check._[VARIABLE-PREFIX] is exported as make variable. AC_DEFUN([PKG_HAVE_WITH_MODULES], [ PKG_WITH_MODULES([$1],[$2],,,[$3],[$4]) AM_CONDITIONAL([HAVE_][$1], [test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"]) ])dnl PKG_HAVE_WITH_MODULES dnl PKG_HAVE_DEFINE_WITH_MODULES(VARIABLE-PREFIX, MODULES, dnl [DESCRIPTION], [DEFAULT]) dnl ------------------------------------------------------ dnl dnl Convenience macro to run AM_CONDITIONAL and AC_DEFINE after dnl PKG_WITH_MODULES check. HAVE_[VARIABLE-PREFIX] is exported as make dnl and preprocessor variable. AC_DEFUN([PKG_HAVE_DEFINE_WITH_MODULES], [ PKG_HAVE_WITH_MODULES([$1],[$2],[$3],[$4]) AS_IF([test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"], [AC_DEFINE([HAVE_][$1], 1, [Enable ]m4_tolower([$1])[ support])]) ])dnl PKG_HAVE_DEFINE_WITH_MODULES m4_include([m4/octave-forge.m4]) audio-2.0.4/src/bootstrap0000755000000000000000000000034414153136030013533 0ustar0000000000000000#!/bin/bash ## Octave-Forge: video package bootstrap script ## Run this to generate the configure script set -e # halt if unhandled error aclocal autoconf # generate configure script autoheader -f rm -rf autom4te.cache audio-2.0.4/src/config.h.in0000644000000000000000000000173714153136030013622 0ustar0000000000000000/* config.h.in. Generated from configure.ac by autoheader. */ #include "undef-ah-octave.h" /* 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__FEVAL /* 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 #include "oct-alt-includes.h" audio-2.0.4/src/configure0000755000000000000000000034756714153136030013524 0ustar0000000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for octave audio package 2.0.4. # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 as_fn_exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org 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_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME='octave audio package' PACKAGE_TARNAME='octave-audio-package' PACKAGE_VERSION='2.0.4' PACKAGE_STRING='octave audio package 2.0.4' PACKAGE_BUGREPORT='' PACKAGE_URL='' ac_subst_vars='LTLIBOBJS LIBOBJS RTMIDI_LIBS RTMIDI_CFLAGS PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG MKOCTFILE OBJEXT EXEEXT ac_ct_CXX CPPFLAGS LDFLAGS CXXFLAGS CXX 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' # 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 # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -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=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir 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 || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures octave audio package 2.0.4 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 _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of octave audio package 2.0.4:";; esac cat <<\_ACEOF Some influential environment variables: CXX C++ compiler command CXXFLAGS C++ compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory PKG_CONFIG path to pkg-config utility PKG_CONFIG_PATH directories to add to pkg-config's search path PKG_CONFIG_LIBDIR path overriding pkg-config's built-in search path RTMIDI_CFLAGS C compiler flags for RTMIDI, overriding pkg-config RTMIDI_LIBS linker flags for RTMIDI, overriding pkg-config 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=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF octave audio package configure 2.0.4 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_cxx_try_compile LINENO # ---------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_compile 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.4, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_config_headers="$ac_config_headers config.h" # Avoid warnings for redefining AH-generated preprocessor symbols of # Octave. # Checks for programs. ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 $as_echo "$CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CXX="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 $as_echo "$ac_ct_CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 $as_echo_n "checking whether the C++ compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C++ compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 $as_echo_n "checking for C++ compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run C++ compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } if ${ac_cv_cxx_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GXX=yes else GXX= fi ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 $as_echo_n "checking whether $CXX accepts -g... " >&6; } if ${ac_cv_prog_cxx_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes else CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : else ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 $as_echo "$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_MKOCTFILE+:} false; then : $as_echo_n "(cached) " >&6 else 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 test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_MKOCTFILE="${ac_tool_prefix}mkoctfile" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi MKOCTFILE=$ac_cv_prog_MKOCTFILE if test -n "$MKOCTFILE"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKOCTFILE" >&5 $as_echo "$MKOCTFILE" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_MKOCTFILE+:} false; then : $as_echo_n "(cached) " >&6 else 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 test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_MKOCTFILE="mkoctfile" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_MKOCTFILE=$ac_cv_prog_ac_ct_MKOCTFILE if test -n "$ac_ct_MKOCTFILE"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MKOCTFILE" >&5 $as_echo "$ac_ct_MKOCTFILE" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_MKOCTFILE" = x; then MKOCTFILE="none" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac 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 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 $as_echo "$PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 $as_echo "$ac_pt_PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG fi else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.9.0 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } PKG_CONFIG="" fi fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMIDI" >&5 $as_echo_n "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" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"rtmidi\""; } >&5 ($PKG_CONFIG --exists --print-errors "rtmidi") 2>&5 ac_status=$? $as_echo "$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" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"rtmidi\""; } >&5 ($PKG_CONFIG --exists --print-errors "rtmidi") 2>&5 ac_status=$? $as_echo "$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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then 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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } have_rtmidi=no else RTMIDI_CFLAGS=$pkg_cv_RTMIDI_CFLAGS RTMIDI_LIBS=$pkg_cv_RTMIDI_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } have_rtmidi=yes fi if test "$have_rtmidi" = "yes"; then $as_echo "#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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RtMidi::getApiName" >&5 $as_echo_n "checking RtMidi::getApiName... " >&6; } have_get_api_name=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { std::string n = RtMidi::getApiName(RtMidi::LINUX_ALSA); ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } have_api_name=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $have_get_api_name = yes; then $as_echo "#define HAVE_RTMIDI_GETAPINAME 1" >>confdefs.h fi # 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 INCFLAGS`} OCTLIBDIR=${OCTLIBDIR:-`$MKOCTFILE -p OCTLIBDIR`} CXX=`${MKOCTFILE} -p CXX` CXXFLAGS="$OCTINCLUDEDIR $CXXFLAGS" LDFLAGS="-L$OCTLIBDIR $LDFLAGS" LIBS="-loctinterp $LIBS" echo '/* generated by configure */' > oct-alt-includes.h { $as_echo "$as_me:${as_lineno-$LINENO}: checking feval or octave::feval" >&5 $as_echo_n "checking feval or octave::feval... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { octave::feval ("date"); ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : $as_echo "#define OCTAVE__FEVAL octave::feval" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: result: octave::feval" >&5 $as_echo "octave::feval" >&6; } echo '#include ' >> oct-alt-includes.h else $as_echo "#define OCTAVE__FEVAL feval" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: result: feval" >&5 $as_echo " feval" >&6; } echo '#include ' >> oct-alt-includes.h fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: checking is_float_type or isfloat" >&5 $as_echo_n "checking is_float_type or isfloat... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { octave_value ().isfloat (); ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : $as_echo "#define OV_ISFLOAT isfloat" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: result: isfloat" >&5 $as_echo "isfloat" >&6; } echo ' ' >> oct-alt-includes.h else $as_echo "#define OV_ISFLOAT is_float_type" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: result: is_float_type" >&5 $as_echo " is_float_type" >&6; } echo '' >> oct-alt-includes.h fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: checking is_integer_type or isinteger" >&5 $as_echo_n "checking is_integer_type or isinteger... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { octave_value ().isinteger (); ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : $as_echo "#define OV_ISINTEGER isinteger" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: result: isinteger" >&5 $as_echo "isinteger" >&6; } echo ' ' >> oct-alt-includes.h else $as_echo "#define OV_ISINTEGER is_integer_type" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: result: is_integer_type" >&5 $as_echo " is_integer_type" >&6; } echo '' >> oct-alt-includes.h fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: checking is_cell or iscell" >&5 $as_echo_n "checking is_cell or iscell... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { octave_value ().iscell (); ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : $as_echo "#define OV_ISCELL iscell" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: result: iscell" >&5 $as_echo "iscell" >&6; } echo ' ' >> oct-alt-includes.h else $as_echo "#define OV_ISCELL is_cell" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: result: is_cell" >&5 $as_echo " is_cell" >&6; } echo '' >> oct-alt-includes.h fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 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_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by octave audio package $as_me 2.0.4, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Report bugs to the package provider." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ octave audio package config.status 2.0.4 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "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+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_tt=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_tt"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi { $as_echo "$as_me:${as_lineno-$LINENO}: $PACKAGE_NAME is configured with: LIBS: $LIBS CXXFLAGS: $CXXFLAGS $DEFS " >&5 $as_echo "$as_me: $PACKAGE_NAME is configured with: LIBS: $LIBS CXXFLAGS: $CXXFLAGS $DEFS " >&6;} audio-2.0.4/src/configure.ac0000644000000000000000000000627514153136030014067 0ustar0000000000000000# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. # ### Copyright (C) 2019-2021 John Donoghue ### ### This program is free software; you can redistribute it and/or ### modify it under the terms of the GNU General Public License as ### published by the Free Software Foundation; either version 3 of the ### License, or (at your option) any later version. ### ### This program is distributed in the hope that it will be useful, ### but WITHOUT ANY WARRANTY; without even the implied warranty of ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ### General Public License for more details. ### ### You should have received a copy of the GNU General Public License ### along with this program; if not, see ### . AC_PREREQ([2.67]) AC_INIT([octave audio package], [2.0.4]) 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]) # Checks for programs. 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 PKG_CHECK_MODULES(RTMIDI,rtmidi,[have_rtmidi=yes],[have_rtmidi=no]) if test "$have_rtmidi" = "yes"; then AC_DEFINE(HAVE_RTMIDI, 1, [Define to 1 to use the rtmidi library.]) CXXFLAGS="$CXXFLAGS $RTMIDI_CFLAGS" LIBS="$LIBS $RTMIDI_LIBS" else AC_MSG_ERROR([RTMIDI required to install $PACKAGE_NAME]) fi # Check for RtMidi::getApiName AC_MSG_CHECKING([RtMidi::getApiName]) have_get_api_name=no AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include #include ]], [ std::string n = RtMidi::getApiName(RtMidi::LINUX_ALSA); ])], [AC_MSG_RESULT([yes]) have_api_name=yes], [AC_MSG_RESULT([no])] ) if test $have_get_api_name = yes; then AC_DEFINE([HAVE_RTMIDI_GETAPINAME], [1], [have the RtMidi::getApiName function]) fi # 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 INCFLAGS`} OCTLIBDIR=${OCTLIBDIR:-`$MKOCTFILE -p OCTLIBDIR`} CXX=`${MKOCTFILE} -p CXX` CXXFLAGS="$OCTINCLUDEDIR $CXXFLAGS" LDFLAGS="-L$OCTLIBDIR $LDFLAGS" LIBS="-loctinterp $LIBS" OF_OCTAVE_LIST_ALT_SYMS([ [dnl [feval], [octave::feval], [[octave::feval ("date");]], [OCTAVE__FEVAL], [[#include ]], [[#include ]] ], [dnl [is_float_type], [isfloat], [[octave_value ().isfloat ();]], [OV_ISFLOAT], [], [] ], [dnl [is_integer_type], [isinteger], [[octave_value ().isinteger ();]], [OV_ISINTEGER], [], [] ], [dnl [is_cell], [iscell], [[octave_value ().iscell ();]], [OV_ISCELL], [], [] ] ],[oct-alt-includes.h]) 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 CXXFLAGS: $CXXFLAGS $DEFS ]) audio-2.0.4/src/m4/0000755000000000000000000000000014153136030012107 5ustar0000000000000000audio-2.0.4/src/m4/octave-forge.m40000644000000000000000000000576014153136030014742 0ustar0000000000000000# Copyright (C) 2017-2018 Olaf Till # Modifications to print what is searching for by JohnD # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . # arguments of OF_OCTAVE_ALT_SYMS (see also description of # OF_OCTAVE_LIST_ALT_SYMS below): # # $1: symbol version 1 # $2: symbol version 2 # $3: test for symbol version 2 # $4: macro name to access alternative symbols # $5: include directives for symbol version 1 # $6: include directives for symbol version 2 # (a list of lists of args 1--6 is $1 of OF_OCTAVE_LIST_ALT_SYMS) # $7: name of generated include file with alternatives of Octave headers # (arg7 is $2 of OF_OCTAVE_LIST_ALT_SYMS) AC_DEFUN([OF_OCTAVE_ALT_SYMS], [ AC_MSG_CHECKING([$1 or $2]) AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([[#include ] $6], [$3])], [AC_DEFINE($4, [[$2]], [macro for alternative Octave symbols]) AC_MSG_RESULT([$2]) echo '$6' >> $7], [AC_DEFINE($4, [[$1]], [macro for alternative Octave symbols]) AC_MSG_RESULT([$1]) echo '$5' >> $7] ) ]) # OF_OCTAVE_LIST_ALT_SYMS is called in the following way: # # OF_OCTAVE_LIST_ALT_SYMS([ # [dnl # [old_octave_symbol], # [new_octave_symbol], # [[compilation test] # [for new_octave_symbol]], # [NAME_OF_GENERATED_MACRO____WILL_EXPAND_TO_OLD_OR_NEW_SYMBOL], # [[include directives] # [except #include ] # [necessary to compile with old_octave_symbol]], # [[include directives] # [except #include ] # [nessary to compile with new_octave_symbol] # [and to compile the test]] # ], # # ... further such lists as the above # # ], # # [name-of-header-file-for-alternative-octave-iclude-directives.h]) # # # This file should be put into src/m4/, and the line # # AC_CONFIG_MACRO_DIRS([m4]) # # should be put into src/configure.ac. The package should use # autoheader to generate config.h.in (src/bootstrap should contain the # lines 'aclocal', 'autoconf', and 'autoheader -f'). Package code # should include config.h and use the generated macros to access the # alternative symbols of Octave. An example of a call to # OF_OCTAVE_LIST_ALT_SYMS in src/configure.ac is available together # with this file. AC_DEFUN([OF_OCTAVE_LIST_ALT_SYMS], [ echo '/* generated by configure */' > $2 m4_foreach([it], [$1], [m4_apply([OF_OCTAVE_ALT_SYMS], [it, $2])]) AH_BOTTOM([#include "$2"]) ]) audio-2.0.4/src/midi.cc0000644000000000000000000001120414153136030013016 0ustar0000000000000000// Copyright (C) 2019 John Donoghue // // This program is free software; you can redistribute it and/or modify it under // the terms of the GNU General Public License as published by the Free Software // Foundation; either version 3 of the License, or (at your option) any later // version. // // This program is distributed in the hope that it will be useful, but WITHOUT // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more // details. // // You should have received a copy of the GNU General Public License along with // this program; if not, see . #include #include #include "midi.h" #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 midi_device { public: RtMidiIn *in; RtMidiOut *out; midi_device_info in_info; midi_device_info out_info; midi_device () { in = 0; out = 0; out = new RtMidiOut(); in = new RtMidiIn(); } virtual ~midi_device () { if(in) delete in; if(out) delete out; } private: midi_device (const midi_device &d) {} midi_device & operator== (const midi_device &d) { return *this; } }; 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 (); 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); if (dev->out_info.isvalid ()) dev->out->openPort (dev->out_info.devid); return dev; } bool send_midi (midi_device *dev, const unsigned char *data, size_t sz) { if (dev && dev->out) { try { std::vector message (data, data+sz); dev->out->sendMessage (&message); return true; } catch (const RtMidiError &err) { error ("Error getting midi info: '%s'", err.getMessage ().c_str ()); } } return false; } int recv_midi (midi_device *dev, double *ts, unsigned char *data, size_t sz) { if (dev && dev->in) { try { std::vector message; double stamp = dev->in->getMessage (&message); if (message.size() > 0) { for (size_t i=0;igetPortCount(); size_t numoutput = midiout->getPortCount(); for (size_t i=0; igetPortName(i).c_str(); inf.driver = api_name(midiout->getCurrentApi()); inf.id = i; inf.devid = i; inf.output = true; devs.push_back(inf); } for (size_t i=0; igetPortName(i).c_str(); inf.driver = api_name(midiin->getCurrentApi()); inf.id = numoutput + i; inf.devid = i; inf.output = false; devs.push_back(inf); } ok = true; } catch (const RtMidiError &err) { error ("Error getting midi info: '%s'", err.getMessage ().c_str ()); } if(midiout) delete midiout; if(midiin) delete midiin; return ok; } audio-2.0.4/src/midi.h0000644000000000000000000000361714153136030012671 0ustar0000000000000000// Copyright (C) 2019 John Donoghue // // This program is free software; you can redistribute it and/or modify it under // the terms of the GNU General Public License as published by the Free Software // Foundation; either version 3 of the License, or (at your option) any later // version. // // This program is distributed in the hope that it will be useful, but WITHOUT // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more // details. // // You should have received a copy of the GNU General Public License along with // this program; if not, see . #ifndef MIDI_H #define MIDI_H #include class midi_device; class midi_device_info { public: midi_device_info() { id=-1; devid=-1; }; virtual ~midi_device_info() {} bool isvalid() const { return id!= -1; } int id; std::string name; bool output; std::string driver; int devid; }; class midi_device_list : public std::vector { public: midi_device_info get_id(int id) const { for(size_t i=0; i // // This program is free software; you can redistribute it and/or modify it under // the terms of the GNU General Public License as published by the Free Software // Foundation; either version 3 of the License, or (at your option) any later // version. // // This program is distributed in the hope that it will be useful, but WITHOUT // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more // details. // // You should have received a copy of the GNU General Public License along with // this program; if not, see . // Octave Includes #include #ifdef HAVE_CONFIG_H # include "config.h" #endif #include "midi_object.h" DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA (octave_midi, "octave_midi", "octave_midi"); octave_midi::octave_midi () : fieldnames(4) { fieldnames[0] = "Input"; fieldnames[1] = "Output"; fieldnames[2] = "InputID"; fieldnames[3] = "OutputID"; 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 true; } 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); } 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) { count++; return this; } void octave_midi::print (std::ostream& os, bool pr_as_read_syntax) const { print_raw (os, pr_as_read_syntax); newline (os); } void octave_midi::print (std::ostream& os, bool pr_as_read_syntax) { print_raw (os, pr_as_read_syntax); newline (os); } void octave_midi::print_raw (std::ostream& os, bool pr_as_read_syntax) const { os << " mididevice connected to"; newline (os); midi_device_info in = get_midi_info(dev, false); midi_device_info out = get_midi_info(dev, true); if (in.isvalid ()) { os << " input: '" << in.name << "' (" << in.id << ")"; newline(os); } if (out.isvalid ()) { os << " output: '" << out.name << "' (" << out.id << ")"; newline(os); } } octave_value_list octave_midi::subsref (const std::string& type, const std::list& idx, int nargout) { octave_value_list retval; int skip = 1; switch (type[0]) { default: error ("octave_midi object cannot be indexed with %c", type[0]); break; case '.': { std::string propname = (((idx.front()) (0)).string_value ()); if (propname == "Input") retval(0) = get_midi_info(dev, false).name; else if (propname == "Output") retval(0) = get_midi_info(dev, true).name; else if (propname == "InputID") retval(0) = get_midi_info(dev, false).id; else if (propname == "OutputID") retval(0) = get_midi_info(dev, true).id; else error ("octave_midi object unknown property '%s'", propname.c_str()); } break; } if (idx.size () > 1 && type.length () > 1) retval = retval (0).next_subsref (nargout, type, idx, skip); return retval; } octave_value octave_midi::subsasgn (const std::string& type, const std::list& idx, const octave_value& rhs) { octave_value retval; error ("octave_midi object cannot be indexed with %c", type[0]); return retval; } static bool type_loaded = false; void init_types(void) { if (!type_loaded) { octave_midi::register_type (); type_loaded = true; } } audio-2.0.4/src/midi_object.h0000644000000000000000000000515014153136030014211 0ustar0000000000000000// Copyright (C) 2019 John Donoghue // // This program is free software; you can redistribute it and/or modify it under // the terms of the GNU General Public License as published by the Free Software // Foundation; either version 3 of the License, or (at your option) any later // version. // // This program is distributed in the hope that it will be useful, but WITHOUT // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more // details. // // You should have received a copy of the GNU General Public License along with // this program; if not, see . #ifndef MIDI_OBJECT_H #define MIDI_OBJECT_H // Octave Includes #include #include #include #include #include "midi.h" void init_types(void); class octave_midi : public octave_base_value { 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); void close(); /** * Various properties of the octave_base_value datatype. */ bool is_constant (void) const { return true;} bool is_defined (void) const { return true;} bool is_object (void) const { return true; } bool isobject (void) const { return true; } // required to use subsasn string_vector map_keys (void) const { return fieldnames; } dim_vector dims (void) const { static dim_vector dv(1, 1); return dv; } octave_base_value * clone (void) const; octave_base_value * empty_clone (void) const; octave_base_value * unique_clone (void); /** * Overloaded methods to print sock as the zeromq id */ void print (std::ostream& os, bool pr_as_read_syntax = false) const; void print (std::ostream& os, bool pr_as_read_syntax = false); void print_raw (std::ostream& os, bool pr_as_read_syntax) const; /** * overloaded methods to get properties */ octave_value_list subsref (const std::string& type, const std::list& idx, int nargout); octave_value subsref (const std::string& type, const std::list& idx) { octave_value_list retval = subsref (type, idx, 1); return (retval.length () > 0 ? retval(0) : octave_value ()); } octave_value subsasgn (const std::string& type, const std::list& idx, const octave_value& rhs); private: octave_midi(const octave_midi &); midi_device * dev; string_vector fieldnames; DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA }; #endif // MIDI_OBJECT_H audio-2.0.4/src/mididevice.cc0000644000000000000000000000401514153136030014200 0ustar0000000000000000// Copyright (C) 2019 John Donoghue // // This program is free software; you can redistribute it and/or modify it under // the terms of the GNU General Public License as published by the Free Software // Foundation; either version 3 of the License, or (at your option) any later // version. // // This program is distributed in the hope that it will be useful, but WITHOUT // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more // details. // // You should have received a copy of the GNU General Public License along with // this program; if not, see . // Octave Includes #include #include #include #include #include #if defined (HAVE_CONFIG_H) # include "config.h" #endif #include "midi_object.h" #include "midi.h" // PKG_ADD: autoload ("__midi__", "__midi__.oct"); DEFUN_DLD (__midi__, args, nargout, "-*- texinfo -*-\n\ @deftypefn {Package} {@var{dev} = } __midi__()\n \ private stub for octave midi\n \ \n \ @seealso{audio}\n \ @end deftypefn") { return octave_value (); } // PKG_ADD: autoload ("__mididevice__", "__midi__.oct"); DEFUN_DLD (__mididevice__, args, nargout, "-*- texinfo -*-\n\ @deftypefn {Package} {@var{dev} = } __mididevice__(inputdev, outputdev)\n \ private function to create a midi device\n \ \n \ @seealso{mididevice}\n \ @end deftypefn") { if ( 2 != args.length ()) { print_usage(); return octave_value (); } octave_value in_dev = args (0); octave_value out_dev = args (1); std::string in_dev_name = in_dev.is_string () ? in_dev.string_value () : ""; std::string out_dev_name = out_dev.is_string () ? out_dev.string_value () : ""; init_types (); octave_midi * retvalue = new octave_midi (); if ( retvalue->create (in_dev_name, out_dev_name) == false ) { delete retvalue; return octave_value (); } return octave_value (retvalue); } audio-2.0.4/src/mididevinfo.cc0000644000000000000000000000367714153136030014410 0ustar0000000000000000// Copyright (C) 2019 John Donoghue // // This program is free software; you can redistribute it and/or modify it under // the terms of the GNU General Public License as published by the Free Software // Foundation; either version 3 of the License, or (at your option) any later // version. // // This program is distributed in the hope that it will be useful, but WITHOUT // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more // details. // // You should have received a copy of the GNU General Public License along with // this program; if not, see . // Octave Includes #include #include #include #include #include #include #if defined (HAVE_CONFIG_H) # include "config.h" #endif #include "midi.h" // PKG_ADD: autoload ("__mididevinfo__", "__midi__.oct"); DEFUN_DLD (__mididevinfo__, args, nargout, "-*- texinfo -*-\n\ @deftypefn {Package} {} __mididevinfo__ ()\n \ Internal function to retieve midi devices\n \ @end deftypefn") { octave_value retval; midi_device_list devs; if (get_midi_devices(devs)) { Cell name (dim_vector (1, devs.size())); Cell driver (dim_vector (1, devs.size())); Cell id (dim_vector (1, devs.size())); Cell dir (dim_vector (1, devs.size())); for(size_t i=0; i // // This program is free software; you can redistribute it and/or modify it under // the terms of the GNU General Public License as published by the Free Software // Foundation; either version 3 of the License, or (at your option) any later // version. // // This program is distributed in the hope that it will be useful, but WITHOUT // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more // details. // // You should have received a copy of the GNU General Public License along with // this program; if not, see . // Octave Includes #include #include #include #include #include #if defined (HAVE_CONFIG_H) # include "config.h" #endif #include "midi_object.h" #include "midi.h" // PKG_ADD: autoload ("__midirecv__", "__midi__.oct"); DEFUN_DLD (__midirecv__, args, nargout, "-*- texinfo -*-\n\ @deftypefn {Package} {} midirecv ()\n \ iNternal function for midirecv\n \ \n \ @end deftypefn") { octave_value_list retval; if (0 == args.length()) { print_usage(); return retval; } if (1 < args.length ()) { error ("Expected midi device "); return retval; } if (args (0).type_id () != octave_midi::static_type_id ()) { error ("Expected midi device"); return retval; } octave_midi * dev = dynamic_cast(args (0).internal_rep ()); unsigned char buf[1024]; double ts; int ret = dev->recv (&ts, buf, 1024); if(ret > 0) { uint8NDArray data ( dim_vector (1,ret) ); for (int i=0; i // // This program is free software; you can redistribute it and/or modify it under // the terms of the GNU General Public License as published by the Free Software // Foundation; either version 3 of the License, or (at your option) any later // version. // // This program is distributed in the hope that it will be useful, but WITHOUT // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more // details. // // You should have received a copy of the GNU General Public License along with // this program; if not, see . // Octave Includes #include #include #include #include #include #if defined (HAVE_CONFIG_H) # include "config.h" #endif #include "midi_object.h" #include "midi.h" // PKG_ADD: autoload ("__midisend__", "__midi__.oct"); DEFUN_DLD (__midisend__, args, nargout, "-*- texinfo -*-\n\ @deftypefn {Package} {} midisend ()\n \ Internal function for midisend\n \ \n \ @end deftypefn") { octave_value retval; if (0 == args.length()) { print_usage(); return retval; } if (3 < args.length ()) { error ("Expected midi device and timestamp and data"); return retval; } if (args (0).type_id () != octave_midi::static_type_id ()) { error ("Expected midi device"); return retval; } octave_midi * dev = dynamic_cast(args (0).internal_rep ()); octave_value ts = args(1); octave_value data = args(2); uint8NDArray v = data.uint8_array_value(); OCTAVE_LOCAL_BUFFER (uint8_t, buf, v.numel ()); if (!buf) error ("zeromq: could allocate memory for send message.\n"); else { for(int i=0; isend (buf, data.numel ()); } return retval; } audio-2.0.4/src/pkglock.cc0000644000000000000000000000265614153136030013541 0ustar0000000000000000// Copyright (C) 2020 John Donoghue // // This program is free software; you can redistribute it and/or modify it under // the terms of the GNU General Public License as published by the Free Software // Foundation; either version 3 of the License, or (at your option) any later // version. // // This program is distributed in the hope that it will be useful, but WITHOUT // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more // details. // // You should have received a copy of the GNU General Public License along with // this program; if not, see . #include #include #include #ifdef HAVE_CONFIG_H # include "config.h" #endif // PKG_ADD: autoload ("__audio_pkg_lock__", "__midi__.oct"); // PKG_ADD: __audio_pkg_lock__(1); // PKG_DEL: __audio_pkg_lock__(0); #ifdef DEFMETHOD_DLD DEFMETHOD_DLD (__audio_pkg_lock__, interp, args, , "internal function") { octave_value retval; if (args.length () >= 1) { if (args(0).int_value () == 1) interp.mlock(); else if (args(0).int_value () == 0 && interp.mislocked("__audio_pkg_lock__")) interp.munlock("__audio_pkg_lock__"); } return retval; } #else DEFUN_DLD(__audio_pkg_lock__, args, , "internal function") { octave_value retval; return retval; } #endif audio-2.0.4/src/undef-ah-octave.h0000644000000000000000000000070614153136030014711 0ustar0000000000000000/* To be included at the top of config.h (by autoheader). Avoid warnings for redefining AH-generated preprocessor symbols of Octave. */ #ifdef PACKAGE_BUGREPORT #undef PACKAGE_BUGREPORT #endif #ifdef PACKAGE_NAME #undef PACKAGE_NAME #endif #ifdef PACKAGE_STRING #undef PACKAGE_STRING #endif #ifdef PACKAGE_TARNAME #undef PACKAGE_TARNAME #endif #ifdef PACKAGE_URL #undef PACKAGE_URL #endif #ifdef PACKAGE_VERSION #undef PACKAGE_VERSION #endif