From 972e30e5f3cd2d88fb2de1276cb3c0b0dab8a0de Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sun, 21 Feb 2010 06:00:49 +0000 Subject: ported mjlib to template Makefile and debian stuff svn path=/trunk/externals/mjlib/; revision=13186 --- COPYING | 340 ----------------- LICENSE.txt | 340 +++++++++++++++++ README.txt | 86 +++++ about-help.pd | 23 ++ config.cache | 16 - configure | 965 ------------------------------------------------ configure.in | 15 - configure.scan | 15 - convolve~-help.pd | 4 + debian/changelog | 5 + debian/compat | 1 + debian/control | 13 + debian/copyright | 13 + debian/rules | 16 + doc/about-help.pd | 23 -- doc/metroplus-help.pd | 37 -- doc/monorhythm-help.pd | 63 ---- doc/morse-help.pd | 111 ------ doc/n2m-help.pd | 21 -- doc/pin~-help.pd | 41 -- doc/polyexample.pd | 46 --- doc/prob-help.pd | 34 -- examples/polyexample.pd | 46 +++ makefile | 59 --- makefile.darwin | 53 --- makefile.in | 59 --- makefile.linux | 54 --- metroplus-help.pd | 37 ++ mjlib-meta.pd | 8 + monorhythm-help.pd | 63 ++++ morse-help.pd | 111 ++++++ n2m-help.pd | 21 ++ pin~-help.pd | 41 ++ prob-help.pd | 34 ++ readme.txt | 86 ----- synapseA~-help.pd | 4 + 36 files changed, 866 insertions(+), 2038 deletions(-) delete mode 100644 COPYING create mode 100644 LICENSE.txt create mode 100644 README.txt create mode 100644 about-help.pd delete mode 100755 config.cache delete mode 100755 configure delete mode 100644 configure.in delete mode 100644 configure.scan create mode 100644 convolve~-help.pd create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules delete mode 100644 doc/about-help.pd delete mode 100644 doc/metroplus-help.pd delete mode 100644 doc/monorhythm-help.pd delete mode 100644 doc/morse-help.pd delete mode 100644 doc/n2m-help.pd delete mode 100644 doc/pin~-help.pd delete mode 100644 doc/polyexample.pd delete mode 100644 doc/prob-help.pd create mode 100644 examples/polyexample.pd delete mode 100644 makefile delete mode 100644 makefile.darwin delete mode 100644 makefile.in delete mode 100644 makefile.linux create mode 100644 metroplus-help.pd create mode 100644 mjlib-meta.pd create mode 100644 monorhythm-help.pd create mode 100644 morse-help.pd create mode 100644 n2m-help.pd create mode 100644 pin~-help.pd create mode 100644 prob-help.pd delete mode 100644 readme.txt create mode 100644 synapseA~-help.pd diff --git a/COPYING b/COPYING deleted file mode 100644 index 7f87ef8..0000000 --- a/COPYING +++ /dev/null @@ -1,340 +0,0 @@ - - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc. - 675 Mass Ave, Cambridge, MA 02139, USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Library General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR PDP.LICENSE, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - - Appendix: How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) 19yy - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - -Also add information on how to contact you by electronic and paper mail. - -If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: - - Gnomovision version 69, Copyright (C) 19yy name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, the commands you use may -be called something other than `show w' and `show c'; they could even be -mouse-clicks or menu items--whatever suits your program. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the program - `Gnomovision' (which makes passes at compilers) written by James Hacker. - - , 1 April 1989 - Ty Coon, President of Vice - -This General Public License does not permit incorporating your program into -proprietary programs. If your program is a subroutine library, you may -consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the GNU Library General -Public License instead of this License. diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..7f87ef8 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,340 @@ + + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 675 Mass Ave, Cambridge, MA 02139, USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR PDP.LICENSE, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + Appendix: How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) 19yy + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) 19yy name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. diff --git a/README.txt b/README.txt new file mode 100644 index 0000000..83c9ec5 --- /dev/null +++ b/README.txt @@ -0,0 +1,86 @@ +mjLib + +by +mark williamson +mailto:mark@junklight.com +http://www.junklight.com + +The code is free for anyone to use under the GNU GPL. But if you use it, +please mention me somewhere - its not like its going to cost you anything +:-). If you need support you can try mailing me at the address above - I +can be quite busy but I will try and deal with any queries. + + +GNU/Linux + +Run: "make -f makefile.linux" and all of the objects will be compiled individually. + + +MacOS X + +Run: "make -f makefile.darwin" and all of the objects will be compiled individually. + + +Windows + +There is a VC++ 6 project file included an it builds fine with that. I haven't +tried anyother tools as yet. However there is a binary version included +in case you haven't got the compiler. + +To install - add mjLib.dll to your pd library path: + + -lib C:\pd\mjLib\mjLib + +and copy the contents of doc\mjLib into + + [pd home]\docs\5.reference\mjLib + +that should be you done. + + +General notes + +This library will grow a bit - there are a few more objects that I want to +put into it. + +There are currently five objects: + + pin~ - randomly delivers the input signal to either the right or left outlet with a given probability + metroplus - allows complex timing bangs to be delivered + prob - generates random events with a given probability + monorhythm - basic rhythm pattern building blocks that allows polyrhthms to be generated quickly and easily + about - delivers a number that is "about" the same as the input number. + + +mark williamson +January 2002 + +___________________________________________________________ + +history: + +6th April 2004 + + added code to the Pd CVS and made all of the objects compile on +MacOS X and GNU/Linux. + +1st February release 2 + +added new mode to monorhythm (exclusive - allows the beat and accent bangs to be mutually exclusive) +added about object + +1st february release 1 + +added linux build files - not properly tested + +31st January 2002 + +added prob and monorythm + +30th January 2002 + +mods to metroplus to allow it to work just like metro is complex time mode not needed + +29th january 2002 + +first release containing pin~ and metroplus diff --git a/about-help.pd b/about-help.pd new file mode 100644 index 0000000..d44221a --- /dev/null +++ b/about-help.pd @@ -0,0 +1,23 @@ +#N canvas 123 239 657 440 12; +#X floatatom 215 277 5 0 0 0 of_this_number---> - -; +#X floatatom 217 374 5 0 0 0 here---> - -; +#X obj 218 172 bng 35 250 50 0 empty empty empty 20 8 0 8 -262144 -1 +-1; +#X floatatom 325 214 5 0 0 0 - - -; +#X obj 219 323 about 10; +#X text 24 16 about; +#X text 25 34 by mark williamson; +#X text 22 56 (mark@junklight.com); +#X text 26 92 about makes numbers that are + or - a percenage error +from a given value. That is it makes numbers that are "about" the given +value.; +#X text 67 168 click here --->; +#X text 88 194 and get; +#X text 258 192 a number which is within; +#X text 377 215 %; +#X text 319 340 %age as a parameter; +#X text 304 322 note: you can set the default; +#X connect 0 0 4 0; +#X connect 2 0 0 0; +#X connect 3 0 4 1; +#X connect 4 0 1 0; diff --git a/config.cache b/config.cache deleted file mode 100755 index 705372a..0000000 --- a/config.cache +++ /dev/null @@ -1,16 +0,0 @@ -# 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. It is not useful on other systems. -# If it contains results you don't want to keep, you may remove or edit it. -# -# By default, configure uses ./config.cache as the cache file, -# creating it if it does not exist already. You can give configure -# the --cache-file=FILE option to use a different cache file; that is -# what configure does when it calls configure scripts in -# subdirectories, so they share the cache. -# Giving --cache-file=/dev/null disables caching, for debugging configure. -# config.status only pays attention to the cache file if you give it the -# --recheck option to rerun configure. -# -ac_cv_header_stdc=${ac_cv_header_stdc=yes} -ac_cv_prog_CPP=${ac_cv_prog_CPP='cc -E'} diff --git a/configure b/configure deleted file mode 100755 index 9432f4d..0000000 --- a/configure +++ /dev/null @@ -1,965 +0,0 @@ -#! /bin/sh - -# Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version 2.13 -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. -# -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. - -# Defaults: -ac_help= -ac_default_prefix=/usr/local -# Any additions from configure.in: - -# Initialize some variables set by options. -# The variables have the same names as the options, with -# dashes changed to underlines. -build=NONE -cache_file=./config.cache -exec_prefix=NONE -host=NONE -no_create= -nonopt=NONE -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -target=NONE -verbose= -x_includes=NONE -x_libraries=NONE -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datadir='${prefix}/share' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -libdir='${exec_prefix}/lib' -includedir='${prefix}/include' -oldincludedir='/usr/include' -infodir='${prefix}/info' -mandir='${prefix}/man' - -# Initialize some other variables. -subdirs= -MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} -# Maximum number of lines to put in a shell here document. -ac_max_here_lines=12 - -ac_prev= -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=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; - *) ac_optarg= ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case "$ac_option" in - - -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 ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build="$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" ;; - - -datadir | --datadir | --datadi | --datad | --data | --dat | --da) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ - | --da=*) - datadir="$ac_optarg" ;; - - -disable-* | --disable-*) - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - eval "enable_${ac_feature}=no" ;; - - -enable-* | --enable-*) - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "enable_${ac_feature}='$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) - # 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 << EOF -Usage: configure [options] [host] -Options: [defaults in brackets after descriptions] -Configuration: - --cache-file=FILE cache test results in FILE - --help print this message - --no-create do not create output files - --quiet, --silent do not print \`checking...' messages - --version print the version of autoconf that created configure -Directory and file names: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [same as prefix] - --bindir=DIR user executables in DIR [EPREFIX/bin] - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] - --libexecdir=DIR program executables in DIR [EPREFIX/libexec] - --datadir=DIR read-only architecture-independent data in DIR - [PREFIX/share] - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data in DIR - [PREFIX/com] - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] - --libdir=DIR object code libraries in DIR [EPREFIX/lib] - --includedir=DIR C header files in DIR [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] - --infodir=DIR info documentation in DIR [PREFIX/info] - --mandir=DIR man documentation in DIR [PREFIX/man] - --srcdir=DIR find the sources in DIR [configure dir or ..] - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM - run sed PROGRAM on installed program names -EOF - cat << EOF -Host type: - --build=BUILD configure for building on BUILD [BUILD=HOST] - --host=HOST configure for HOST [guessed] - --target=TARGET configure for TARGET [TARGET=HOST] -Features and packages: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --x-includes=DIR X include files are in DIR - --x-libraries=DIR X library files are in DIR -EOF - if test -n "$ac_help"; then - echo "--enable and --with options recognized:$ac_help" - fi - exit 0 ;; - - -host | --host | --hos | --ho) - ac_prev=host ;; - -host=* | --host=* | --hos=* | --ho=*) - host="$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" ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst \ - | --locals | --local | --loca | --loc | --lo) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) - 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) - 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" ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir="$ac_optarg" ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir="$ac_optarg" ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site="$ac_optarg" ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir="$ac_optarg" ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir="$ac_optarg" ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target="$ac_optarg" ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 2.13" - exit 0 ;; - - -with-* | --with-*) - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "with_${ac_package}='$ac_optarg'" ;; - - -without-* | --without-*) - ac_package=`echo $ac_option|sed -e 's/-*without-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - eval "with_${ac_package}=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" ;; - - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } - ;; - - *) - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then - echo "configure: warning: $ac_option: invalid host type" 1>&2 - fi - if test "x$nonopt" != xNONE; then - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } - fi - nonopt="$ac_option" - ;; - - esac -done - -if test -n "$ac_prev"; then - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } -fi - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -# File descriptor usage: -# 0 standard input -# 1 file creation -# 2 errors and warnings -# 3 some systems may open it to /dev/tty -# 4 used on the Kubota Titan -# 6 checking for... messages and results -# 5 compiler messages saved in config.log -if test "$silent" = yes; then - exec 6>/dev/null -else - exec 6>&1 -fi -exec 5>./config.log - -echo "\ -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. -" 1>&5 - -# Strip out --no-create and --no-recursion so they do not pile up. -# Also quote any args containing shell metacharacters. -ac_configure_args= -for ac_arg -do - case "$ac_arg" in - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) ;; - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) - ac_configure_args="$ac_configure_args '$ac_arg'" ;; - *) ac_configure_args="$ac_configure_args $ac_arg" ;; - esac -done - -# NLS nuisances. -# Only set these to C if already set. These must not be set unconditionally -# because not all systems understand e.g. LANG=C (notably SCO). -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! -# Non-C LC_CTYPE values break the ctype check. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -rf conftest* confdefs.h -# AIX cpp loses on an empty file, so make sure it contains at least a newline. -echo > confdefs.h - -# A filename unique to this package, relative to the directory that -# configure is in, which we can look for to find out if srcdir is correct. -ac_unique_file=metroplus.c - -# 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 its parent. - ac_prog=$0 - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. - 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 - if test "$ac_srcdir_defaulted" = yes; then - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } - else - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } - fi -fi -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` - -# Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" - fi -fi -for ac_site_file in $CONFIG_SITE; do - if test -r "$ac_site_file"; then - echo "loading site script $ac_site_file" - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - echo "loading cache $cache_file" - . $cache_file -else - echo "creating cache $cache_file" - > $cache_file -fi - -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -ac_exeext= -ac_objext=o -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then - ac_n= ac_c=' -' ac_t=' ' - else - ac_n=-n ac_c= ac_t= - fi -else - ac_n= ac_c='\c' ac_t= -fi - - - - - -echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 -echo "configure:529: checking how to run the C preprocessor" >&5 -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then -if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - # This must be in double quotes, not single quotes, because CPP may get - # substituted into the Makefile and "${CC-cc}" will confuse make. - CPP="${CC-cc} -E" - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. - cat > conftest.$ac_ext < -Syntax Error -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - : -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - CPP="${CC-cc} -E -traditional-cpp" - cat > conftest.$ac_ext < -Syntax Error -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - : -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - CPP="${CC-cc} -nologo -E" - cat > conftest.$ac_ext < -Syntax Error -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - : -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - CPP=/lib/cpp -fi -rm -f conftest* -fi -rm -f conftest* -fi -rm -f conftest* - ac_cv_prog_CPP="$CPP" -fi - CPP="$ac_cv_prog_CPP" -else - ac_cv_prog_CPP="$CPP" -fi -echo "$ac_t""$CPP" 1>&6 - -echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 -echo "configure:609: checking for ANSI C header files" >&5 -if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#include -#include -#include -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - ac_cv_header_stdc=yes -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_header_stdc=no -fi -rm -f conftest* - -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. -cat > conftest.$ac_ext < -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "memchr" >/dev/null 2>&1; then - : -else - rm -rf conftest* - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. -cat > conftest.$ac_ext < -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "free" >/dev/null 2>&1; then - : -else - rm -rf conftest* - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. -if test "$cross_compiling" = yes; then - : -else - cat > conftest.$ac_ext < -#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int main () { int i; for (i = 0; i < 256; i++) -if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); -exit (0); } - -EOF -if { (eval echo configure:689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - : -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_header_stdc=no -fi -rm -fr conftest* -fi - -fi -fi - -echo "$ac_t""$ac_cv_header_stdc" 1>&6 -if test $ac_cv_header_stdc = yes; then - cat >> confdefs.h <<\EOF -#define STDC_HEADERS 1 -EOF - -fi - - - - -trap '' 1 2 15 -cat > confcache <<\EOF -# 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. It is not useful on other systems. -# If it contains results you don't want to keep, you may remove or edit it. -# -# By default, configure uses ./config.cache as the cache file, -# creating it if it does not exist already. You can give configure -# the --cache-file=FILE option to use a different cache file; that is -# what configure does when it calls configure scripts in -# subdirectories, so they share the cache. -# Giving --cache-file=/dev/null disables caching, for debugging configure. -# config.status only pays attention to the cache file if you give it the -# --recheck option to rerun configure. -# -EOF -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, don't put newlines in cache variables' values. -# 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. -(set) 2>&1 | - case `(ac_space=' '; set | grep ac_space) 2>&1` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote substitution - # turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - -e "s/'/'\\\\''/g" \ - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' - ;; - esac >> confcache -if cmp -s $cache_file confcache; then - : -else - if test -w $cache_file; then - echo "updating cache $cache_file" - cat confcache > $cache_file - else - echo "not updating unwritable cache $cache_file" - fi -fi -rm -f confcache - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# Any assignment to VPATH causes Sun make to only execute -# the first set of double-colon rules, so remove it if not needed. -# If there is a colon in the path, we need to keep it. -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' -fi - -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 - -# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -cat > conftest.defs <<\EOF -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g -s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g -s%\[%\\&%g -s%\]%\\&%g -s%\$%$$%g -EOF -DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` -rm -f conftest.defs - - -# Without the "./", some shells look in PATH for config.status. -: ${CONFIG_STATUS=./config.status} - -echo creating $CONFIG_STATUS -rm -f $CONFIG_STATUS -cat > $CONFIG_STATUS </dev/null | sed 1q`: -# -# $0 $ac_configure_args -# -# Compiler output produced by configure, useful for debugging -# configure, is in ./config.log if it exists. - -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" -for ac_option -do - case "\$ac_option" in - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; - -version | --version | --versio | --versi | --vers | --ver | --ve | --v) - echo "$CONFIG_STATUS generated by autoconf version 2.13" - exit 0 ;; - -help | --help | --hel | --he | --h) - echo "\$ac_cs_usage"; exit 0 ;; - *) echo "\$ac_cs_usage"; exit 1 ;; - esac -done - -ac_given_srcdir=$srcdir - -trap 'rm -fr `echo "makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 -EOF -cat >> $CONFIG_STATUS < conftest.subs <<\\CEOF -$ac_vpsub -$extrasub -s%@SHELL@%$SHELL%g -s%@CFLAGS@%$CFLAGS%g -s%@CPPFLAGS@%$CPPFLAGS%g -s%@CXXFLAGS@%$CXXFLAGS%g -s%@FFLAGS@%$FFLAGS%g -s%@DEFS@%$DEFS%g -s%@LDFLAGS@%$LDFLAGS%g -s%@LIBS@%$LIBS%g -s%@exec_prefix@%$exec_prefix%g -s%@prefix@%$prefix%g -s%@program_transform_name@%$program_transform_name%g -s%@bindir@%$bindir%g -s%@sbindir@%$sbindir%g -s%@libexecdir@%$libexecdir%g -s%@datadir@%$datadir%g -s%@sysconfdir@%$sysconfdir%g -s%@sharedstatedir@%$sharedstatedir%g -s%@localstatedir@%$localstatedir%g -s%@libdir@%$libdir%g -s%@includedir@%$includedir%g -s%@oldincludedir@%$oldincludedir%g -s%@infodir@%$infodir%g -s%@mandir@%$mandir%g -s%@CPP@%$CPP%g - -CEOF -EOF - -cat >> $CONFIG_STATUS <<\EOF - -# Split the substitutions into bite-sized pieces for seds with -# small command number limits, like on Digital OSF/1 and HP-UX. -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. -ac_file=1 # Number of current file. -ac_beg=1 # First line for current file. -ac_end=$ac_max_sed_cmds # Line after last line for current file. -ac_more_lines=: -ac_sed_cmds="" -while $ac_more_lines; do - if test $ac_beg -gt 1; then - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file - else - sed "${ac_end}q" conftest.subs > conftest.s$ac_file - fi - if test ! -s conftest.s$ac_file; then - ac_more_lines=false - rm -f conftest.s$ac_file - else - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f conftest.s$ac_file" - else - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" - fi - ac_file=`expr $ac_file + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_cmds` - fi -done -if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat -fi -EOF - -cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case "$ac_file" in - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - *) ac_file_in="${ac_file}.in" ;; - esac - - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. - - # Remove last slash and all that follows it. Not all systems have dirname. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - # The file is in a subdirectory. - test ! -d "$ac_dir" && mkdir "$ac_dir" - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" - # A "../" for each directory in $ac_dir_suffix. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` - else - ac_dir_suffix= ac_dots= - fi - - case "$ac_given_srcdir" in - .) srcdir=. - if test -z "$ac_dots"; then top_srcdir=. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; - *) # Relative path. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" - top_srcdir="$ac_dots$ac_given_srcdir" ;; - esac - - - echo creating "$ac_file" - rm -f "$ac_file" - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." - case "$ac_file" in - *Makefile*) ac_comsub="1i\\ -# $configure_input" ;; - *) ac_comsub= ;; - esac - - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` - sed -e "$ac_comsub -s%@configure_input@%$configure_input%g -s%@srcdir@%$srcdir%g -s%@top_srcdir@%$top_srcdir%g -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file -fi; done -rm -f conftest.s* - -EOF -cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF - -exit 0 -EOF -chmod +x $CONFIG_STATUS -rm -fr confdefs* $ac_clean_files -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 - diff --git a/configure.in b/configure.in deleted file mode 100644 index d512b99..0000000 --- a/configure.in +++ /dev/null @@ -1,15 +0,0 @@ -dnl Process this file with autoconf to produce a configure script. -AC_INIT(metroplus.c) - -dnl Checks for programs. - -dnl Checks for libraries. - -dnl Checks for header files. -AC_HEADER_STDC - -dnl Checks for typedefs, structures, and compiler characteristics. - -dnl Checks for library functions. - -AC_OUTPUT(makefile) diff --git a/configure.scan b/configure.scan deleted file mode 100644 index d512b99..0000000 --- a/configure.scan +++ /dev/null @@ -1,15 +0,0 @@ -dnl Process this file with autoconf to produce a configure script. -AC_INIT(metroplus.c) - -dnl Checks for programs. - -dnl Checks for libraries. - -dnl Checks for header files. -AC_HEADER_STDC - -dnl Checks for typedefs, structures, and compiler characteristics. - -dnl Checks for library functions. - -AC_OUTPUT(makefile) diff --git a/convolve~-help.pd b/convolve~-help.pd new file mode 100644 index 0000000..fc820bd --- /dev/null +++ b/convolve~-help.pd @@ -0,0 +1,4 @@ +#N canvas 3 48 450 300 10; +#X obj 162 123 convolve~; +#X text 120 178 placeholder help patch; +#X text 147 62 from mjlib; diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..be29cfd --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +pd-mjlib (0.1-1) unstable; urgency=low + + * Initial release (Closes: #nnnn) + + -- Hans-Christoph Steiner Thu, 21 Jan 2010 23:27:04 -0500 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..19fda48 --- /dev/null +++ b/debian/control @@ -0,0 +1,13 @@ +Source: pd-mjlib +Section: sound +Priority: optional +Maintainer: Paul Brossier +Build-Depends: debhelper (>= 7.0.50~), puredata +Standards-Version: 3.8.3 +Homepage: http://puredata.info + +Package: pd-mjlib +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, pd +Description: library of objects for composing music + A library of objects for composing music written by Mark Williamson. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..8fcc4a4 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,13 @@ +Debianized-By: Hans-Christoph Steiner +Debianized-Date: Tue, 9 Feb 2010 17:14:25 -0400 +Files: * +Copyright: 2002-2004, mark williamson + +License: GPL-2+ + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + . + On Debian systems, the complete text of the GNU General Public License + version 2 can be found in file "/usr/share/common-licenses/GPL-2". diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..b72f5ac --- /dev/null +++ b/debian/rules @@ -0,0 +1,16 @@ +#!/usr/bin/make -f + +LIBRARY_NAME = mjlib +PACKAGE = pd-$(LIBRARY_NAME) +pkglibdir = /usr/lib/pd/extra + +%: + dh $@ + +override_dh_auto_install: + make DESTDIR=$(CURDIR)/debian/$(PACKAGE) pkglibdir=$(pkglibdir) install + +override_dh_shlibdeps: + dpkg-shlibdeps $(CURDIR)/debian/$(PACKAGE)$(pkglibdir)/$(LIBRARY_NAME)/*.pd_linux \ + -T$(CURDIR)/debian/$(PACKAGE).substvars + diff --git a/doc/about-help.pd b/doc/about-help.pd deleted file mode 100644 index d44221a..0000000 --- a/doc/about-help.pd +++ /dev/null @@ -1,23 +0,0 @@ -#N canvas 123 239 657 440 12; -#X floatatom 215 277 5 0 0 0 of_this_number---> - -; -#X floatatom 217 374 5 0 0 0 here---> - -; -#X obj 218 172 bng 35 250 50 0 empty empty empty 20 8 0 8 -262144 -1 --1; -#X floatatom 325 214 5 0 0 0 - - -; -#X obj 219 323 about 10; -#X text 24 16 about; -#X text 25 34 by mark williamson; -#X text 22 56 (mark@junklight.com); -#X text 26 92 about makes numbers that are + or - a percenage error -from a given value. That is it makes numbers that are "about" the given -value.; -#X text 67 168 click here --->; -#X text 88 194 and get; -#X text 258 192 a number which is within; -#X text 377 215 %; -#X text 319 340 %age as a parameter; -#X text 304 322 note: you can set the default; -#X connect 0 0 4 0; -#X connect 2 0 0 0; -#X connect 3 0 4 1; -#X connect 4 0 1 0; diff --git a/doc/metroplus-help.pd b/doc/metroplus-help.pd deleted file mode 100644 index 9d88602..0000000 --- a/doc/metroplus-help.pd +++ /dev/null @@ -1,37 +0,0 @@ -#N canvas 155 70 632 505 12; -#X obj 166 441 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1 --1; -#X msg 170 249 start; -#X msg 123 351 stop; -#X floatatom 460 286 5 0 0 0 - - -; -#X obj 173 393 metroplus 1000 500 1000 200; -#X msg 269 309 500 1000 200; -#X text 28 13 metroplus; -#X text 27 32 by mark williamson (mark@junklight.com); -#X obj 182 279 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1 --1; -#X text 27 65 metroplus is a variation on the metro object. Instead -of providing a steady pulse however it can provide an irregular beat. -It takes as its control a list of numbers representing intervals in -milliseconds. These are the time between each "pulse". So for example -with the initial setting below (in the metroplus object itself) - the -first pulse comes after 1 second the second after 500ms the third after -1 second and the fourth after 200ms - the next beat comming a second -after that because the sequence starts again.; -#X text 19 243 start with; -#X text 18 257 a start message; -#X text 18 274 or a 'bang'---->; -#X text 12 321 stop with a; -#X text 11 338 stop; -#X text 13 352 message--->; -#X text 245 286 set a new sequence; -#X text 457 322 it still works; -#X text 455 338 like a metro; -#X text 428 355 object if you want; -#X text 518 372 it to; -#X connect 1 0 4 0; -#X connect 2 0 4 0; -#X connect 3 0 4 1; -#X connect 4 0 0 0; -#X connect 5 0 4 1; -#X connect 8 0 4 0; diff --git a/doc/monorhythm-help.pd b/doc/monorhythm-help.pd deleted file mode 100644 index 2d8886b..0000000 --- a/doc/monorhythm-help.pd +++ /dev/null @@ -1,63 +0,0 @@ -#N canvas 153 22 644 746 12; -#X obj 292 684 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1 --1; -#X msg 115 505 start; -#X obj 219 680 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1 --1; -#X obj 373 685 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1 --1; -#X msg 41 494 stop; -#X obj 210 507 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1 --1; -#X msg 353 526 1 2 1 1; -#X msg 452 538 2000; -#X msg 261 491 1 2 0 1; -#X obj 219 611 monorhythm 2000 2 1 1; -#X text 23 38 by mark williamson; -#X text 25 13 monorhythm; -#X text 23 62 (mark@junklight.com); -#X text 28 97 The monorhythm object is designed to allow simple rythms -to be generated. It is also constructed in such away so as to create -more complex polyrhythms quickly and easily.; -#X text 28 154 The monorhythm object is given a time interval and a -rhythm pattern. It divides the interval into the number of beats in -the pattern and outputs bangs as defined by the pattern. The performance -time of the entire pattern is given by the time interval.; -#X text 30 242 The pattern consists of strings of the symbols 0 \, -1 and 2 0 is a rest \, 1 is a normal beat and 2 is an accented beat. -A rest produces no output. A 1 produces a bang on the leftmost outlet. -A 2 produces a bang on the left most outlet and a bang on the middle -outlet (the accent outlet).; -#X text 30 331 In order to synchronise multiple monorhythms there is -a third outlet - the sync outlet. This does a bang at the start of -every bar - which can be fed to the left most inlet of a second (or -Nth) monorhythm.; -#X text 29 412 for an example of a polyrhythm see:; -#X obj 380 412 polyexample; -#X text 199 701 beat; -#X text 278 702 accent; -#X text 362 704 sync; -#X text 449 568 time interval; -#X text 278 459 pattern; -#X text 37 466 stop; -#X text 104 467 start or bang; -#X text 105 483 sets it going; -#X msg 25 559 exclusive; -#X msg 27 654 nonexclusive; -#X text 22 590 beat and accent; -#X text 21 607 bangs are mutually; -#X text 20 622 exclusive; -#X text 23 682 accent bang; -#X text 23 697 supplements; -#X text 22 715 the beat bang; -#X connect 1 0 9 0; -#X connect 4 0 9 0; -#X connect 5 0 9 0; -#X connect 6 0 9 1; -#X connect 7 0 9 2; -#X connect 8 0 9 1; -#X connect 9 0 2 0; -#X connect 9 1 0 0; -#X connect 9 2 3 0; -#X connect 27 0 9 0; -#X connect 28 0 9 0; diff --git a/doc/morse-help.pd b/doc/morse-help.pd deleted file mode 100644 index af5fc86..0000000 --- a/doc/morse-help.pd +++ /dev/null @@ -1,111 +0,0 @@ -#N canvas 68 34 884 712 12; -#X obj 274 213 morse; -#X obj 274 243 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 --1; -#X obj 296 243 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 --1; -#X obj 319 243 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 --1; -#X msg 61 73 1; -#X msg 121 47 stop; -#X msg 303 165 msg this is a test message; -#X obj 87 119 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 --1; -#X msg 303 139 msg 1 2 3 4 8; -#X obj 106 117 metro 100; -#X obj 129 615 dac~; -#X obj 137 574 *~; -#X obj 165 549 hsl 128 22 0.01 1 1 0 empty empty volume 9 9 1 10 -262144 --1 -1 10000 0; -#X obj 137 524 *~; -#X obj 62 297 osc~ 440; -#X obj 65 269 hsl 128 22 10 6000 0 0 empty empty frequency 9 9 1 10 --262144 -1 -1 1900 1; -#X obj 183 484 line~; -#X obj 197 390 delay 50; -#X obj 197 370 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 --1; -#X floatatom 286 392 5 0 0 0 - - -; -#X floatatom 7 298 5 0 0 0 - - -; -#X msg 62 241 906.1; -#X obj 62 214 loadbang; -#X obj 382 389 delay 50; -#X obj 382 369 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 --1; -#X floatatom 468 390 5 0 0 0 - - -; -#X obj 355 657 writesf~ 2; -#X msg 358 596 start; -#X msg 421 596 stop; -#X msg 428 627 open mouts.wav; -#X msg 157 430 1 1; -#X msg 197 430 0 1; -#X msg 342 429 1 1; -#X msg 384 429 0 1; -#X obj 683 155 hsl 128 15 10 1000 0 0 empty empty empty -2 -6 0 8 -262144 --1 -1 513 1; -#X text 714 129 speed; -#X floatatom 681 185 5 0 0 0 - - -; -#X obj 643 276 s dot; -#X obj 735 276 s dash; -#X obj 191 91 r dot; -#X obj 272 364 r dot; -#X obj 457 362 r dash; -#X obj 735 224 * 3; -#X msg 680 93 50; -#X obj 680 64 loadbang; -#X text 230 333 dot; -#X text 387 337 dash; -#X text 188 528 volume - don't forget to set!; -#X msg 61 47 start; -#X text 335 684 you can record to a file.; -#X text 11 4 convert text to Morse Code; -#X text 223 36 On UNIX and MacOS X systems \, its case-sensitive \, -on Windows \, its not.; -#X connect 0 0 1 0; -#X connect 0 1 2 0; -#X connect 0 2 3 0; -#X connect 1 0 18 0; -#X connect 2 0 24 0; -#X connect 4 0 9 0; -#X connect 5 0 9 0; -#X connect 6 0 0 0; -#X connect 8 0 0 0; -#X connect 9 0 0 0; -#X connect 9 0 7 0; -#X connect 11 0 10 0; -#X connect 11 0 10 1; -#X connect 11 0 26 0; -#X connect 11 0 26 1; -#X connect 12 0 11 1; -#X connect 13 0 11 0; -#X connect 14 0 13 0; -#X connect 15 0 14 0; -#X connect 15 0 20 0; -#X connect 16 0 13 1; -#X connect 17 0 31 0; -#X connect 18 0 17 0; -#X connect 18 0 30 0; -#X connect 21 0 15 0; -#X connect 22 0 21 0; -#X connect 23 0 33 0; -#X connect 24 0 23 0; -#X connect 24 0 32 0; -#X connect 27 0 26 0; -#X connect 28 0 26 0; -#X connect 29 0 26 0; -#X connect 30 0 16 0; -#X connect 31 0 16 0; -#X connect 32 0 16 0; -#X connect 33 0 16 0; -#X connect 34 0 36 0; -#X connect 36 0 37 0; -#X connect 36 0 42 0; -#X connect 39 0 9 1; -#X connect 40 0 17 1; -#X connect 40 0 19 0; -#X connect 41 0 23 1; -#X connect 41 0 25 0; -#X connect 42 0 38 0; -#X connect 43 0 34 0; -#X connect 44 0 43 0; -#X connect 48 0 4 0; diff --git a/doc/n2m-help.pd b/doc/n2m-help.pd deleted file mode 100644 index f3960e2..0000000 --- a/doc/n2m-help.pd +++ /dev/null @@ -1,21 +0,0 @@ -#N canvas 227 128 645 441 12; -#X obj 104 320 n2m; -#X obj 95 378 print; -#X text 32 13 n2m - note to midi; -#X text 32 36 by mark williamson (http://www.junklight.com); -#X text 33 75 n2m converts note names in the form -to a midi number. It copes with single notes or chords.; -#X msg 109 174 note C5 d#7 c3; -#X msg 67 128 note c6; -#X msg 146 220 note D; -#X msg 182 270 note 7; -#X text 174 129 output note C6; -#X text 271 174 output a chord; -#X text 244 218 Octave defaults to 4; -#X text 266 268 note defaults to C; -#X text 191 343 on Windows \, its not case sensitive; -#X connect 0 0 1 0; -#X connect 5 0 0 0; -#X connect 6 0 0 0; -#X connect 7 0 0 0; -#X connect 8 0 0 0; diff --git a/doc/pin~-help.pd b/doc/pin~-help.pd deleted file mode 100644 index 0b8efed..0000000 --- a/doc/pin~-help.pd +++ /dev/null @@ -1,41 +0,0 @@ -#N canvas 146 80 623 617 12; -#X obj 210 485 dac~; -#X obj 159 395 osc~; -#X msg 159 282 69; -#X obj 159 327 mtof; -#X floatatom 159 304 0 0 0 0 - - -; -#X floatatom 159 349 0 0 0 0 - - -; -#X obj 159 371 sig~; -#X floatatom 238 314 5 0 1 0 - - -; -#X floatatom 312 359 5 0 0 0 - - -; -#X text 19 13 pin~; -#X text 20 55 the pin~ object can be considered to be similar to the -pin in a bagatelle game. The ball upon hitting it has a random probability -of falling to one side or the other. The pin~ object takes a single -signal input and outputs it to the left or right output at random based -on the probability set (right most input). The interval at which the -outlet is choosen can be set by the right most input. Setting this -to 0 or less means a different output is choosen for every call of -the dsp routine. A higher value means that the output is choosen every -so many milliseconds.; -#X obj 159 250 loadbang; -#X text 19 314 test signal; -#X text 19 327 generator---->; -#X text 226 289 probability to choose left; -#X text 304 307 (between 0 and 1); -#X text 325 338 choice interval; -#X obj 181 437 pin~ 0.5 100; -#X text 25 523 note that no panning or envelopes are applied and therefore -low choice intervals will add "switching" noise to the output.; -#X text 19 30 by mark williamson (mark@junklight.com); -#X connect 1 0 17 0; -#X connect 2 0 4 0; -#X connect 3 0 5 0; -#X connect 4 0 3 0; -#X connect 5 0 6 0; -#X connect 6 0 1 0; -#X connect 7 0 17 1; -#X connect 8 0 17 2; -#X connect 11 0 2 0; -#X connect 17 0 0 0; -#X connect 17 1 0 1; diff --git a/doc/polyexample.pd b/doc/polyexample.pd deleted file mode 100644 index 878d6a0..0000000 --- a/doc/polyexample.pd +++ /dev/null @@ -1,46 +0,0 @@ -#N canvas 488 354 600 357 12; -#X obj 120 193 monorhythm; -#X obj 157 270 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1 --1; -#X msg 155 91 start; -#X obj 111 274 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1 --1; -#X obj 200 228 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1 --1; -#X msg 228 91 stop; -#X msg 220 160 2000; -#X obj 286 194 monorhythm; -#X obj 323 271 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1 --1; -#X obj 277 275 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1 --1; -#X obj 358 226 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1 --1; -#X msg 374 161 2000; -#X text 42 16 An example of a polyrhythm ( 2 against 3) built with -2 monorhythm's; -#X obj 321 121 loadbang; -#X msg 305 160 2 1 1; -#X msg 170 159 2 1; -#X text 89 294 beat; -#X text 148 292 accent; -#X text 250 293 beat; -#X text 313 295 accent; -#X connect 0 0 3 0; -#X connect 0 1 1 0; -#X connect 0 2 4 0; -#X connect 0 2 7 0; -#X connect 2 0 0 0; -#X connect 5 0 7 0; -#X connect 5 0 0 0; -#X connect 6 0 0 2; -#X connect 7 0 9 0; -#X connect 7 1 8 0; -#X connect 7 2 10 0; -#X connect 11 0 7 2; -#X connect 13 0 11 0; -#X connect 13 0 14 0; -#X connect 13 0 15 0; -#X connect 13 0 6 0; -#X connect 14 0 7 1; -#X connect 15 0 0 1; diff --git a/doc/prob-help.pd b/doc/prob-help.pd deleted file mode 100644 index 85ea41c..0000000 --- a/doc/prob-help.pd +++ /dev/null @@ -1,34 +0,0 @@ -#N canvas 144 132 614 505 12; -#X obj 235 384 prob; -#X obj 235 448 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1 --1; -#X msg 134 317 start; -#X msg 192 304 stop; -#X floatatom 249 276 5 0 0 0 - - -; -#X floatatom 294 348 5 0 1 0 - - -; -#X text 221 254 time interval; -#X text 271 314 probability; -#X text 260 330 between 0 and 1; -#X text 25 15 prob; -#X text 25 36 by mark williamson; -#X text 23 56 (mark@junklight.com); -#X text 26 84 prob is designed to generate a random event with a given -probability at a given interval. Every clock tick (set by time) it -generates a random number and compares it against the probability to -see if an event should occur. If so a bang is output at the outlet. -; -#X text 25 174 The probability is set as a value between 0 and 1 Time -is measured in milliseconds. The messages start and stop - start and -stop events being generated. The prob object can also be started with -a bang.; -#X obj 103 350 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1 --1; -#X text 64 372 bang has the; -#X text 64 389 same effect; -#X text 64 405 as start; -#X connect 0 0 1 0; -#X connect 2 0 0 0; -#X connect 3 0 0 0; -#X connect 4 0 0 1; -#X connect 5 0 0 2; -#X connect 14 0 0 0; diff --git a/examples/polyexample.pd b/examples/polyexample.pd new file mode 100644 index 0000000..878d6a0 --- /dev/null +++ b/examples/polyexample.pd @@ -0,0 +1,46 @@ +#N canvas 488 354 600 357 12; +#X obj 120 193 monorhythm; +#X obj 157 270 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1 +-1; +#X msg 155 91 start; +#X obj 111 274 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1 +-1; +#X obj 200 228 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1 +-1; +#X msg 228 91 stop; +#X msg 220 160 2000; +#X obj 286 194 monorhythm; +#X obj 323 271 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1 +-1; +#X obj 277 275 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1 +-1; +#X obj 358 226 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1 +-1; +#X msg 374 161 2000; +#X text 42 16 An example of a polyrhythm ( 2 against 3) built with +2 monorhythm's; +#X obj 321 121 loadbang; +#X msg 305 160 2 1 1; +#X msg 170 159 2 1; +#X text 89 294 beat; +#X text 148 292 accent; +#X text 250 293 beat; +#X text 313 295 accent; +#X connect 0 0 3 0; +#X connect 0 1 1 0; +#X connect 0 2 4 0; +#X connect 0 2 7 0; +#X connect 2 0 0 0; +#X connect 5 0 7 0; +#X connect 5 0 0 0; +#X connect 6 0 0 2; +#X connect 7 0 9 0; +#X connect 7 1 8 0; +#X connect 7 2 10 0; +#X connect 11 0 7 2; +#X connect 13 0 11 0; +#X connect 13 0 14 0; +#X connect 13 0 15 0; +#X connect 13 0 6 0; +#X connect 14 0 7 1; +#X connect 15 0 0 1; diff --git a/makefile b/makefile deleted file mode 100644 index 46259b5..0000000 --- a/makefile +++ /dev/null @@ -1,59 +0,0 @@ - -EXT = pd_linux -DEFS = -DHAVE_LIBC=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_STRERROR=1 -DPD_VERSION_MINOR=32 -CC = gcc -CXX = c++ -LD = ld -AFLAGS = -LFLAGS = --export-dynamic -shared -WFLAGS = -IFLAGS = -I./include -I../src -INSTALL_PREFIX=/usr/local - -VERSION = \"$(shell cat VERSION)\" - -.SUFFIXES: .$(EXT) - -PDCFLAGS = -g -O2 $(DEFS) $(IFLAGS) $(WFLAGS) $(LFLAGS) $(AFLAGS) -DVERSION=$(VERSION) -CFLAGS = -g -O2 $(DEFS) $(IFLAGS) $(WFLAGS) -DVERSION=$(VERSION) -CXXFLAGS = $(CFLAGS) - -#LIBS = -lc -lm -LIBS = -lpthread -lm -lc -SOURCES = pin~.c mjLib.c metroplus.c monorythm.c prob.c about.c synapseA~.c convolve.c -TARGETS = $(SOURCES:.c=.$(EXT)) - -all: $(TARGETS) - -mjLib: $(TARGETS) - cc -c $(CFLAGS) -DPD mjLib.c - $(LD) --export-dynamic -shared -o mjLib.pd_linux *.o $(LIBS) - strip --strip-unneeded mjLib.pd_linux - -clean:: - -rm *.$(EXT) *.o - -distclean: clean - -rm config.cache config.log config.status makefile - - - -.c.o: - $(CC) -c -o $@ $(CFLAGS) -DPD $*.c - -# cp $@ $*_stat.o - -.o.pd_linux: - $(CC) -o $@ $(PDCFLAGS) -DPD $*.o - - - -install:: - install -d $(INSTALL_PREFIX)/pd/externs - install -m 644 *.$(EXT) $(INSTALL_PREFIX)/pd/externs - -install -m 644 mjLib.pd_linux $(INSTALL_PREFIX)/pd/externs - install -m 644 doc/*.pd $(INSTALL_PREFIX)/pd/doc/5.reference - - -dist: distclean - (cd ..;tar czvf mjLib.tar.gz mjLib) diff --git a/makefile.darwin b/makefile.darwin deleted file mode 100644 index 20d3d50..0000000 --- a/makefile.darwin +++ /dev/null @@ -1,53 +0,0 @@ - -EXT = pd_darwin -DEFS = -DHAVE_LIBC=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_STRERROR=1 -DPD_VERSION_MINOR=32 -CC = gcc -CXX = c++ -LD = ld -AFLAGS = -LFLAGS = -bundle -bundle_loader ../../pd/bin/pd -flat_namespace -WFLAGS = -IFLAGS = -I./include -I../src -INSTALL_PREFIX=/usr/local - -VERSION = \"$(shell cat VERSION)\" - -.SUFFIXES: .$(EXT) - -PDCFLAGS = -g -O2 $(DEFS) $(IFLAGS) $(WFLAGS) $(LFLAGS) $(AFLAGS) -DVERSION=$(VERSION) -CFLAGS = -g -O2 $(DEFS) $(IFLAGS) $(WFLAGS) -DVERSION=$(VERSION) -CXXFLAGS = $(CFLAGS) - -#LIBS = -lc -lm -LIBS = -lpthread -lm -lc -SOURCES = about.c convolve~.c pin~.c metroplus.c monorhythm.c morse.c n2m.c prob.c synapseA~.c -TARGETS = $(SOURCES:.c=.$(EXT)) - -all: $(TARGETS) - -clean:: - -rm *.$(EXT) *.o - -distclean: clean - -rm config.cache config.log config.status makefile - - -.c.o: - $(CC) -c -o $@ $(CFLAGS) -DPD $*.c - -# cp $@ $*_stat.o - -.o.pd_darwin: - $(CC) -o $@ $(PDCFLAGS) -DPD $*.o - - - -install:: - install -d $(INSTALL_PREFIX)/pd/externs - install -m 644 *.$(EXT) $(INSTALL_PREFIX)/pd/externs - -install -m 644 mjLib.pd_darwin $(INSTALL_PREFIX)/pd/externs - install -m 644 doc/*.pd $(INSTALL_PREFIX)/pd/doc/5.reference - - -dist: distclean - (cd ..;tar czvf mjLib.tar.gz mjLib) diff --git a/makefile.in b/makefile.in deleted file mode 100644 index 46259b5..0000000 --- a/makefile.in +++ /dev/null @@ -1,59 +0,0 @@ - -EXT = pd_linux -DEFS = -DHAVE_LIBC=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_STRERROR=1 -DPD_VERSION_MINOR=32 -CC = gcc -CXX = c++ -LD = ld -AFLAGS = -LFLAGS = --export-dynamic -shared -WFLAGS = -IFLAGS = -I./include -I../src -INSTALL_PREFIX=/usr/local - -VERSION = \"$(shell cat VERSION)\" - -.SUFFIXES: .$(EXT) - -PDCFLAGS = -g -O2 $(DEFS) $(IFLAGS) $(WFLAGS) $(LFLAGS) $(AFLAGS) -DVERSION=$(VERSION) -CFLAGS = -g -O2 $(DEFS) $(IFLAGS) $(WFLAGS) -DVERSION=$(VERSION) -CXXFLAGS = $(CFLAGS) - -#LIBS = -lc -lm -LIBS = -lpthread -lm -lc -SOURCES = pin~.c mjLib.c metroplus.c monorythm.c prob.c about.c synapseA~.c convolve.c -TARGETS = $(SOURCES:.c=.$(EXT)) - -all: $(TARGETS) - -mjLib: $(TARGETS) - cc -c $(CFLAGS) -DPD mjLib.c - $(LD) --export-dynamic -shared -o mjLib.pd_linux *.o $(LIBS) - strip --strip-unneeded mjLib.pd_linux - -clean:: - -rm *.$(EXT) *.o - -distclean: clean - -rm config.cache config.log config.status makefile - - - -.c.o: - $(CC) -c -o $@ $(CFLAGS) -DPD $*.c - -# cp $@ $*_stat.o - -.o.pd_linux: - $(CC) -o $@ $(PDCFLAGS) -DPD $*.o - - - -install:: - install -d $(INSTALL_PREFIX)/pd/externs - install -m 644 *.$(EXT) $(INSTALL_PREFIX)/pd/externs - -install -m 644 mjLib.pd_linux $(INSTALL_PREFIX)/pd/externs - install -m 644 doc/*.pd $(INSTALL_PREFIX)/pd/doc/5.reference - - -dist: distclean - (cd ..;tar czvf mjLib.tar.gz mjLib) diff --git a/makefile.linux b/makefile.linux deleted file mode 100644 index 5a5ca8e..0000000 --- a/makefile.linux +++ /dev/null @@ -1,54 +0,0 @@ - -EXT = pd_linux -DEFS = -DHAVE_LIBC=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_STRERROR=1 -DPD_VERSION_MINOR=32 -CC = gcc -CXX = c++ -LD = ld -AFLAGS = -LFLAGS = --export-dynamic -shared -WFLAGS = -IFLAGS = -I./include -I../src -INSTALL_PREFIX=/usr/local - -VERSION = \"$(shell cat VERSION)\" - -.SUFFIXES: .$(EXT) - -PDCFLAGS = -g -O2 $(DEFS) $(IFLAGS) $(WFLAGS) $(LFLAGS) $(AFLAGS) -DVERSION=$(VERSION) -CFLAGS = -g -O2 $(DEFS) $(IFLAGS) $(WFLAGS) -DVERSION=$(VERSION) -CXXFLAGS = $(CFLAGS) - -#LIBS = -lc -lm -LIBS = -lpthread -lm -lc -SOURCES = about.c convolve~.c pin~.c metroplus.c monorhythm.c morse.c n2m.c prob.c synapseA~.c -TARGETS = $(SOURCES:.c=.$(EXT)) - -all: $(TARGETS) - -clean:: - -rm *.$(EXT) *.o - -distclean: clean - -rm config.cache config.log config.status makefile - - - -.c.o: - $(CC) -c -o $@ $(CFLAGS) -DPD $*.c - -# cp $@ $*_stat.o - -.o.pd_linux: - $(CC) -o $@ $(PDCFLAGS) -DPD $*.o - - - -install:: - install -d $(INSTALL_PREFIX)/pd/externs - install -m 644 *.$(EXT) $(INSTALL_PREFIX)/pd/externs - -install -m 644 mjLib.pd_linux $(INSTALL_PREFIX)/pd/externs - install -m 644 doc/*.pd $(INSTALL_PREFIX)/pd/doc/5.reference - - -dist: distclean - (cd ..;tar czvf mjLib.tar.gz mjLib) diff --git a/metroplus-help.pd b/metroplus-help.pd new file mode 100644 index 0000000..9d88602 --- /dev/null +++ b/metroplus-help.pd @@ -0,0 +1,37 @@ +#N canvas 155 70 632 505 12; +#X obj 166 441 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1 +-1; +#X msg 170 249 start; +#X msg 123 351 stop; +#X floatatom 460 286 5 0 0 0 - - -; +#X obj 173 393 metroplus 1000 500 1000 200; +#X msg 269 309 500 1000 200; +#X text 28 13 metroplus; +#X text 27 32 by mark williamson (mark@junklight.com); +#X obj 182 279 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1 +-1; +#X text 27 65 metroplus is a variation on the metro object. Instead +of providing a steady pulse however it can provide an irregular beat. +It takes as its control a list of numbers representing intervals in +milliseconds. These are the time between each "pulse". So for example +with the initial setting below (in the metroplus object itself) - the +first pulse comes after 1 second the second after 500ms the third after +1 second and the fourth after 200ms - the next beat comming a second +after that because the sequence starts again.; +#X text 19 243 start with; +#X text 18 257 a start message; +#X text 18 274 or a 'bang'---->; +#X text 12 321 stop with a; +#X text 11 338 stop; +#X text 13 352 message--->; +#X text 245 286 set a new sequence; +#X text 457 322 it still works; +#X text 455 338 like a metro; +#X text 428 355 object if you want; +#X text 518 372 it to; +#X connect 1 0 4 0; +#X connect 2 0 4 0; +#X connect 3 0 4 1; +#X connect 4 0 0 0; +#X connect 5 0 4 1; +#X connect 8 0 4 0; diff --git a/mjlib-meta.pd b/mjlib-meta.pd new file mode 100644 index 0000000..93b5174 --- /dev/null +++ b/mjlib-meta.pd @@ -0,0 +1,8 @@ +#N canvas 10 10 200 200 10; +#N canvas 20 20 420 300 META 0; +#X text 10 10 META this is a prototype of a libdir meta file; +#X text 10 30 NAME mjlib; +#X text 10 50 AUTHOR mark williamson ; +#X text 10 70 LICENSE GNU GPL; +#X text 10 90 VERSION 0.1; +#X restore 10 10 pd META; diff --git a/monorhythm-help.pd b/monorhythm-help.pd new file mode 100644 index 0000000..2d8886b --- /dev/null +++ b/monorhythm-help.pd @@ -0,0 +1,63 @@ +#N canvas 153 22 644 746 12; +#X obj 292 684 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1 +-1; +#X msg 115 505 start; +#X obj 219 680 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1 +-1; +#X obj 373 685 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1 +-1; +#X msg 41 494 stop; +#X obj 210 507 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1 +-1; +#X msg 353 526 1 2 1 1; +#X msg 452 538 2000; +#X msg 261 491 1 2 0 1; +#X obj 219 611 monorhythm 2000 2 1 1; +#X text 23 38 by mark williamson; +#X text 25 13 monorhythm; +#X text 23 62 (mark@junklight.com); +#X text 28 97 The monorhythm object is designed to allow simple rythms +to be generated. It is also constructed in such away so as to create +more complex polyrhythms quickly and easily.; +#X text 28 154 The monorhythm object is given a time interval and a +rhythm pattern. It divides the interval into the number of beats in +the pattern and outputs bangs as defined by the pattern. The performance +time of the entire pattern is given by the time interval.; +#X text 30 242 The pattern consists of strings of the symbols 0 \, +1 and 2 0 is a rest \, 1 is a normal beat and 2 is an accented beat. +A rest produces no output. A 1 produces a bang on the leftmost outlet. +A 2 produces a bang on the left most outlet and a bang on the middle +outlet (the accent outlet).; +#X text 30 331 In order to synchronise multiple monorhythms there is +a third outlet - the sync outlet. This does a bang at the start of +every bar - which can be fed to the left most inlet of a second (or +Nth) monorhythm.; +#X text 29 412 for an example of a polyrhythm see:; +#X obj 380 412 polyexample; +#X text 199 701 beat; +#X text 278 702 accent; +#X text 362 704 sync; +#X text 449 568 time interval; +#X text 278 459 pattern; +#X text 37 466 stop; +#X text 104 467 start or bang; +#X text 105 483 sets it going; +#X msg 25 559 exclusive; +#X msg 27 654 nonexclusive; +#X text 22 590 beat and accent; +#X text 21 607 bangs are mutually; +#X text 20 622 exclusive; +#X text 23 682 accent bang; +#X text 23 697 supplements; +#X text 22 715 the beat bang; +#X connect 1 0 9 0; +#X connect 4 0 9 0; +#X connect 5 0 9 0; +#X connect 6 0 9 1; +#X connect 7 0 9 2; +#X connect 8 0 9 1; +#X connect 9 0 2 0; +#X connect 9 1 0 0; +#X connect 9 2 3 0; +#X connect 27 0 9 0; +#X connect 28 0 9 0; diff --git a/morse-help.pd b/morse-help.pd new file mode 100644 index 0000000..af5fc86 --- /dev/null +++ b/morse-help.pd @@ -0,0 +1,111 @@ +#N canvas 68 34 884 712 12; +#X obj 274 213 morse; +#X obj 274 243 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X obj 296 243 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X obj 319 243 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X msg 61 73 1; +#X msg 121 47 stop; +#X msg 303 165 msg this is a test message; +#X obj 87 119 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X msg 303 139 msg 1 2 3 4 8; +#X obj 106 117 metro 100; +#X obj 129 615 dac~; +#X obj 137 574 *~; +#X obj 165 549 hsl 128 22 0.01 1 1 0 empty empty volume 9 9 1 10 -262144 +-1 -1 10000 0; +#X obj 137 524 *~; +#X obj 62 297 osc~ 440; +#X obj 65 269 hsl 128 22 10 6000 0 0 empty empty frequency 9 9 1 10 +-262144 -1 -1 1900 1; +#X obj 183 484 line~; +#X obj 197 390 delay 50; +#X obj 197 370 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X floatatom 286 392 5 0 0 0 - - -; +#X floatatom 7 298 5 0 0 0 - - -; +#X msg 62 241 906.1; +#X obj 62 214 loadbang; +#X obj 382 389 delay 50; +#X obj 382 369 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X floatatom 468 390 5 0 0 0 - - -; +#X obj 355 657 writesf~ 2; +#X msg 358 596 start; +#X msg 421 596 stop; +#X msg 428 627 open mouts.wav; +#X msg 157 430 1 1; +#X msg 197 430 0 1; +#X msg 342 429 1 1; +#X msg 384 429 0 1; +#X obj 683 155 hsl 128 15 10 1000 0 0 empty empty empty -2 -6 0 8 -262144 +-1 -1 513 1; +#X text 714 129 speed; +#X floatatom 681 185 5 0 0 0 - - -; +#X obj 643 276 s dot; +#X obj 735 276 s dash; +#X obj 191 91 r dot; +#X obj 272 364 r dot; +#X obj 457 362 r dash; +#X obj 735 224 * 3; +#X msg 680 93 50; +#X obj 680 64 loadbang; +#X text 230 333 dot; +#X text 387 337 dash; +#X text 188 528 volume - don't forget to set!; +#X msg 61 47 start; +#X text 335 684 you can record to a file.; +#X text 11 4 convert text to Morse Code; +#X text 223 36 On UNIX and MacOS X systems \, its case-sensitive \, +on Windows \, its not.; +#X connect 0 0 1 0; +#X connect 0 1 2 0; +#X connect 0 2 3 0; +#X connect 1 0 18 0; +#X connect 2 0 24 0; +#X connect 4 0 9 0; +#X connect 5 0 9 0; +#X connect 6 0 0 0; +#X connect 8 0 0 0; +#X connect 9 0 0 0; +#X connect 9 0 7 0; +#X connect 11 0 10 0; +#X connect 11 0 10 1; +#X connect 11 0 26 0; +#X connect 11 0 26 1; +#X connect 12 0 11 1; +#X connect 13 0 11 0; +#X connect 14 0 13 0; +#X connect 15 0 14 0; +#X connect 15 0 20 0; +#X connect 16 0 13 1; +#X connect 17 0 31 0; +#X connect 18 0 17 0; +#X connect 18 0 30 0; +#X connect 21 0 15 0; +#X connect 22 0 21 0; +#X connect 23 0 33 0; +#X connect 24 0 23 0; +#X connect 24 0 32 0; +#X connect 27 0 26 0; +#X connect 28 0 26 0; +#X connect 29 0 26 0; +#X connect 30 0 16 0; +#X connect 31 0 16 0; +#X connect 32 0 16 0; +#X connect 33 0 16 0; +#X connect 34 0 36 0; +#X connect 36 0 37 0; +#X connect 36 0 42 0; +#X connect 39 0 9 1; +#X connect 40 0 17 1; +#X connect 40 0 19 0; +#X connect 41 0 23 1; +#X connect 41 0 25 0; +#X connect 42 0 38 0; +#X connect 43 0 34 0; +#X connect 44 0 43 0; +#X connect 48 0 4 0; diff --git a/n2m-help.pd b/n2m-help.pd new file mode 100644 index 0000000..f3960e2 --- /dev/null +++ b/n2m-help.pd @@ -0,0 +1,21 @@ +#N canvas 227 128 645 441 12; +#X obj 104 320 n2m; +#X obj 95 378 print; +#X text 32 13 n2m - note to midi; +#X text 32 36 by mark williamson (http://www.junklight.com); +#X text 33 75 n2m converts note names in the form +to a midi number. It copes with single notes or chords.; +#X msg 109 174 note C5 d#7 c3; +#X msg 67 128 note c6; +#X msg 146 220 note D; +#X msg 182 270 note 7; +#X text 174 129 output note C6; +#X text 271 174 output a chord; +#X text 244 218 Octave defaults to 4; +#X text 266 268 note defaults to C; +#X text 191 343 on Windows \, its not case sensitive; +#X connect 0 0 1 0; +#X connect 5 0 0 0; +#X connect 6 0 0 0; +#X connect 7 0 0 0; +#X connect 8 0 0 0; diff --git a/pin~-help.pd b/pin~-help.pd new file mode 100644 index 0000000..0b8efed --- /dev/null +++ b/pin~-help.pd @@ -0,0 +1,41 @@ +#N canvas 146 80 623 617 12; +#X obj 210 485 dac~; +#X obj 159 395 osc~; +#X msg 159 282 69; +#X obj 159 327 mtof; +#X floatatom 159 304 0 0 0 0 - - -; +#X floatatom 159 349 0 0 0 0 - - -; +#X obj 159 371 sig~; +#X floatatom 238 314 5 0 1 0 - - -; +#X floatatom 312 359 5 0 0 0 - - -; +#X text 19 13 pin~; +#X text 20 55 the pin~ object can be considered to be similar to the +pin in a bagatelle game. The ball upon hitting it has a random probability +of falling to one side or the other. The pin~ object takes a single +signal input and outputs it to the left or right output at random based +on the probability set (right most input). The interval at which the +outlet is choosen can be set by the right most input. Setting this +to 0 or less means a different output is choosen for every call of +the dsp routine. A higher value means that the output is choosen every +so many milliseconds.; +#X obj 159 250 loadbang; +#X text 19 314 test signal; +#X text 19 327 generator---->; +#X text 226 289 probability to choose left; +#X text 304 307 (between 0 and 1); +#X text 325 338 choice interval; +#X obj 181 437 pin~ 0.5 100; +#X text 25 523 note that no panning or envelopes are applied and therefore +low choice intervals will add "switching" noise to the output.; +#X text 19 30 by mark williamson (mark@junklight.com); +#X connect 1 0 17 0; +#X connect 2 0 4 0; +#X connect 3 0 5 0; +#X connect 4 0 3 0; +#X connect 5 0 6 0; +#X connect 6 0 1 0; +#X connect 7 0 17 1; +#X connect 8 0 17 2; +#X connect 11 0 2 0; +#X connect 17 0 0 0; +#X connect 17 1 0 1; diff --git a/prob-help.pd b/prob-help.pd new file mode 100644 index 0000000..85ea41c --- /dev/null +++ b/prob-help.pd @@ -0,0 +1,34 @@ +#N canvas 144 132 614 505 12; +#X obj 235 384 prob; +#X obj 235 448 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1 +-1; +#X msg 134 317 start; +#X msg 192 304 stop; +#X floatatom 249 276 5 0 0 0 - - -; +#X floatatom 294 348 5 0 1 0 - - -; +#X text 221 254 time interval; +#X text 271 314 probability; +#X text 260 330 between 0 and 1; +#X text 25 15 prob; +#X text 25 36 by mark williamson; +#X text 23 56 (mark@junklight.com); +#X text 26 84 prob is designed to generate a random event with a given +probability at a given interval. Every clock tick (set by time) it +generates a random number and compares it against the probability to +see if an event should occur. If so a bang is output at the outlet. +; +#X text 25 174 The probability is set as a value between 0 and 1 Time +is measured in milliseconds. The messages start and stop - start and +stop events being generated. The prob object can also be started with +a bang.; +#X obj 103 350 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1 +-1; +#X text 64 372 bang has the; +#X text 64 389 same effect; +#X text 64 405 as start; +#X connect 0 0 1 0; +#X connect 2 0 0 0; +#X connect 3 0 0 0; +#X connect 4 0 0 1; +#X connect 5 0 0 2; +#X connect 14 0 0 0; diff --git a/readme.txt b/readme.txt deleted file mode 100644 index 83c9ec5..0000000 --- a/readme.txt +++ /dev/null @@ -1,86 +0,0 @@ -mjLib - -by -mark williamson -mailto:mark@junklight.com -http://www.junklight.com - -The code is free for anyone to use under the GNU GPL. But if you use it, -please mention me somewhere - its not like its going to cost you anything -:-). If you need support you can try mailing me at the address above - I -can be quite busy but I will try and deal with any queries. - - -GNU/Linux - -Run: "make -f makefile.linux" and all of the objects will be compiled individually. - - -MacOS X - -Run: "make -f makefile.darwin" and all of the objects will be compiled individually. - - -Windows - -There is a VC++ 6 project file included an it builds fine with that. I haven't -tried anyother tools as yet. However there is a binary version included -in case you haven't got the compiler. - -To install - add mjLib.dll to your pd library path: - - -lib C:\pd\mjLib\mjLib - -and copy the contents of doc\mjLib into - - [pd home]\docs\5.reference\mjLib - -that should be you done. - - -General notes - -This library will grow a bit - there are a few more objects that I want to -put into it. - -There are currently five objects: - - pin~ - randomly delivers the input signal to either the right or left outlet with a given probability - metroplus - allows complex timing bangs to be delivered - prob - generates random events with a given probability - monorhythm - basic rhythm pattern building blocks that allows polyrhthms to be generated quickly and easily - about - delivers a number that is "about" the same as the input number. - - -mark williamson -January 2002 - -___________________________________________________________ - -history: - -6th April 2004 - - added code to the Pd CVS and made all of the objects compile on -MacOS X and GNU/Linux. - -1st February release 2 - -added new mode to monorhythm (exclusive - allows the beat and accent bangs to be mutually exclusive) -added about object - -1st february release 1 - -added linux build files - not properly tested - -31st January 2002 - -added prob and monorythm - -30th January 2002 - -mods to metroplus to allow it to work just like metro is complex time mode not needed - -29th january 2002 - -first release containing pin~ and metroplus diff --git a/synapseA~-help.pd b/synapseA~-help.pd new file mode 100644 index 0000000..57e2901 --- /dev/null +++ b/synapseA~-help.pd @@ -0,0 +1,4 @@ +#N canvas 3 48 450 300 10; +#X text 120 178 placeholder help patch; +#X text 147 62 from mjlib; +#X obj 162 123 synapseA~; -- cgit v1.2.1