pymappergui-debian/0000755000175000017500000000000012437432227013636 5ustar tiagotiagopymappergui-debian/LICENSE0000644000175000017500000010446112437421545014652 0ustar tiagotiagoGNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. {one line to give the program's name and a brief idea of what it does.} Copyright (C) {year} {name of author} This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: {project} Copyright (C) {year} {fullname} This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . pymappergui-debian/pymappergui/0000755000175000017500000000000012437421545016201 5ustar tiagotiagopymappergui-debian/pymappergui/images/0000755000175000017500000000000012437431365017447 5ustar tiagotiagopymappergui-debian/pymappergui/images/expand.png0000644000175000017500000000036012437421606021430 0ustar tiagotiagoPNG  IHDRasBIT|d pHYs%%IR$tEXtSoftwarewww.inkscape.org<mIDAT8c?6o߾FFr(wc6uLXuF ```ܷo r P]=000a2c$L[ߎUhJc()IgIENDB`pymappergui-debian/pymappergui/images/pymappergui.svg0000644000175000017500000004602512437421606022536 0ustar tiagotiago 2010-12-09 20:30Z image/svg+xml Canvas 1 Layer 1 pyMapperGUI pymappergui-debian/pymappergui/images/collapse.png0000644000175000017500000000023112437421606021750 0ustar tiagotiagoPNG  IHDRTsBIT|d pHYs%%IR$tEXtSoftwarewww.inkscape.org<IDATcܷo %bo%?O4IENDB`pymappergui-debian/pymappergui/images/view-refresh.png0000644000175000017500000000251112437421606022557 0ustar tiagotiagoPNG  IHDRĴl;sBIT|d pHYs B(xtEXtSoftwarewww.inkscape.org<IDAT8[lEƿ33n--UTƘ$P|'#&6$j"1CD֤""iт e.vR(|3s3\ߖILMXCJNl.َ]Ok`{~F֋rAo>8TY(O#Fp䂿ݳ~4q?Yu՛\^^m^aDb0VgK028ߕ/Aw6.q}9ݼ}*AAfU/VV)'uՕNygu OV9 ܙĄOgB Pb(xa]Fθٻ] ec>:L>Bz܃ %&#lL.T K^"xa<'=#,?/i" y~(+@BkTS$*]2Q\H$=TԴQ~$1"@֋c\Ǧhzs!GlےJnΏ$d#Nμy4.&BS fGzG+3X)8u1=L-FH ^f 褄`GJ{С] sg3 ºusNFcoa?:C/~y[G; ,%Qֺ[ozmDTS[^^! ֚Y#6Xѿz ݷr\ZAi@5hMY9QsW ǭV/N#Er16T^V2%=?+tx7c -]jW>|-~:iێkro(nzJ?9w싶O 0sZkuBDSfVopSOn:Sp7*e/^xܷzx\d0 ) 2%cmgޙyOyk"w{9sEUَpm u sMqj3YU):*/p<>K&K@WI `,fkllo#\`wkƇB~x3:nVUDSdz Jdhkk;N\&VW/~aƶniUT,;`ߙ&˚&Mw{: \Q.h^:~EpV_;kևJ-W+b7L,ۆmPpC-XHD`˲$}7 Y@ tTysv^D~+E./544؂]|)>[O릺ѩד}'8 Fkkk@ ]NUU\cO`c+%9M_4`08D޳cl@d8:`LUoـrG'!%[IENDB`pymappergui-debian/pymappergui/images/connect.png0000644000175000017500000000146112437421606021605 0ustar tiagotiagoPNG  IHDRĴl;sBIT|d pHYs B(xtEXtSoftwarewww.inkscape.org<IDAT8_HSqǿ?s=̭A7c _`PAf8A!ejPCLA$ø2X&q0rҼMN2Ilc8/~ߏr(1f`Q twwCιž ptqӉDBGd2/KjA\pX,F,GM& -Dj"ssssmccCoGQ|KͻP"1p8h44M+>l[[-,ީM睍t:9/qQ[lI#o^W30.0Ʈgff a?_%2B l STFQ_CC= c]%2)"'IZYY!UU)Axzjgg(.>W `0$鶦iuQjN0ADFyxTjOQup S"(acLTWAKSvLP0?8>>>rU`Ƙnr\oքN\nkll,0888 CDJE'X:::E"@ @###fW\uYZ,.ָRq% ŧhhhHD3`0꺮9OD=E*!"Z \ڸarIENDB`pymappergui-debian/pymappergui/images/disconnect.png0000644000175000017500000000166112437421606022307 0ustar tiagotiagoPNG  IHDRr ߔsBIT|d pHYs@@rEtEXtSoftwarewww.inkscape.org<.IDATH[hWvvfo1fԵ E UE -BO}*i -J> POw\M:$i0s9|_ψ %y80}xN0HXԖ;S)k^;?Z@w#b>@ײ0x) |.4 \ Y)V0* C`=B% .04T@/ 4 SLW :]T0,IavDE$"+Օ0{EJt6n AKE j^U͉qZӋ?.<Äq\Ka=jDw,k:}47Gc#U5=;l:~ 0 ,}؅~ʒOn4T3`'7t14Clq[siS%ѯ/u\;<}4pK$g:y=w;skp*?P"rz_>Wekf;QГ#~ћ=3zp"r淂6\4}՛=PI?9=,lZWɤ'xOK6am,m)Y#(0An#"__͸T6%k ]bM`O4nZYpJ_rmkKa,=2691QTukj*pie~s9_N Y%i;3ף1 XK.? t' =]] }iT2ǓRUբ;Zwtr"IENDB`pymappergui-debian/pymappergui/images/document-save-as.png0000644000175000017500000000126212437421606023326 0ustar tiagotiagoPNG  IHDRĴl;sBIT|d pHYs B(xtEXtSoftwarewww.inkscape.org</IDAT8NA5wB@ Ȗc,‘WixqW8פ@ EVrcX8#tw?͞0ptp{{[*5al|j8333`w| < k>5{{U'YeR `PP,qgbxT*c&_ggg}ZvQ.a 8fsx "1`nnJ2Rc!^J)<Z:OI7}+?g\jeT~ADJ q뺜@P*N$xG%Nyzz鰲"q06֚L&C.CJ:Z#$ˑNZ[-1aH)㼔l62aX8bEE3[[[񑻻؊uR#֭M6Ơ"vy0D)^dhAbOuAlN1n7Tv+ΎNYIENDB`pymappergui-debian/pymappergui/images/document-open.png0000644000175000017500000000101312437421606022722 0ustar tiagotiagoPNG  IHDRĴl;sBIT|d pHYs B(xtEXtSoftwarewww.inkscape.org<IDAT8?nT1cϾ&8@:d4H\#sn@G"&%({z)le7yzO؟XJ)x DDXFF-mnD||`\~J)xPy $1FuأK3;0#dM۞olZ>BZź8jc&zs"lM1<ӀLfuʣbju /whO49Jm A t4ћ2b%edz$f3G(AP,d!sGt16bD$ (m3u軛lxQ=oS! }CULSy?o +!?IENDB`pymappergui-debian/pymappergui/images/process-stop.png0000644000175000017500000000260012437421606022611 0ustar tiagotiagoPNG  IHDRĴl;sBIT|d pHYs B(xtEXtSoftwarewww.inkscape.org<IDAT8}k\?սZZ$iB֨BHCv! JB^Mȋ!@H"ЧBi0m҈lQ+Vmkwsa7m0( <ʧNiWut=ۻA7=zNO #$6ٝ-ݸ$kkk?Fⵓ3udɫxp`8%"!ab/G%8׈NsQkǟ_&}5PBy"'s־ɮd+r IFFǿ$+xo%}b'`ME8u4(.hc3\z:5bϷvh5clae1obUSSVϮ9G ji|~!nl`g-›Wx08Lc g1Yx -3t76_ jiy~~D[cNq%Xlap9|jVԥu٩yUf瘻p[Xaqe9 ðRp +,yn ip}J4hcj}Inc+~=v l_(MVu&jy?ʜC}ʍE/K&F3<Ɖf?\&jY";"rzj.`A /"^^i2hpVYX(:"E~Po 8$/v4_3ۈ E]D18d /,ה4+AE!h A=<J;{qf̏3~~F& CB!8Q5R^uI7翼CMx/ 0^((CDVu<AƑu?ϗ<*R,eP* @[wc}ҝ7Ɵ:jih+ryn7%q |jz|t~$SJ8:-"JU',ɯ]jeoV !dY.IENDB`pymappergui-debian/pymappergui/panels.py0000644000175000017500000003307412437421545020044 0ustar tiagotiagoimport wx import wx.gizmos import mymapper import math class ConnectionsPanel(wx.Panel): def __init__(self, parent): wx.Panel.__init__(self, parent, style=wx.SUNKEN_BORDER) self.SetBackgroundColour("white") self.Bind(wx.EVT_PAINT, self.OnPaint) self.Bind(wx.EVT_SIZE, self.OnSize) self.my_mapper = mymapper.MyMapper() def OnSize(self, evt): wx.CallAfter(self.Refresh) def OnPaint(self, evt): self.DrawConnectionsLines() def Clear(self): self.dc.Clear() def DrawConnectionsLines(self): # loop source and dest trees to get y from each item connected conn_ids = [] for c in self.my_mapper.getConnections(): src = c["src_name"] dest = c["dest_name"] src_item_id = self.GetParent().GetParent().sources_panel.GetItemByLabel(src, self.GetParent().GetParent().sources_panel.GetRootItem()) dest_item_id = self.GetParent().GetParent().destinations_panel.GetItemByLabel(dest, self.GetParent().GetParent().destinations_panel.GetRootItem()) conn_ids.append((src_item_id, dest_item_id)) w,h = self.GetSize() self.dc = wx.PaintDC(self) gc = wx.GraphicsContext_Create(self.dc) self.dc.Clear() gc.SetPen(wx.Pen("blue", 1)) for conn in conn_ids: y1 = self.GetParent().GetParent().sources_panel.getItemPos(conn[0]) y2 = self.GetParent().GetParent().destinations_panel.getItemPos(conn[1]) # +30 to compensate for the header row l = [] y1 = y1[1]+y1[3]/2+26 y2 = y2[1]+y2[3]/2+26 for i in range(w): mu = float(i)/w mu2 = (1-math.cos(mu*math.pi))/2 l.append([i, y1*(1-mu2)+y2*mu2]) gc.DrawLines(l) #wx.CallAfter(self.Refresh) class MyTreeList(wx.Panel): def __init__(self, parent, id, which): wx.Panel.__init__(self, parent, -1, style=wx.SUNKEN_BORDER) self.my_mapper = mymapper.MyMapper() # sources or destinations tree self.which = which # Create the tree self.tree = wx.gizmos.TreeListCtrl(self, style = wx.TR_DEFAULT_STYLE | wx.TR_FULL_ROW_HIGHLIGHT | wx.TR_HAS_BUTTONS + wx.TR_HIDE_ROOT, size=(530, 400)) self.tree.Bind(wx.EVT_TREE_ITEM_ACTIVATED, self.OnActivate, self.tree) self.tree.Bind(wx.EVT_TREE_ITEM_EXPANDED, self.changed, self.tree) self.tree.Bind(wx.EVT_TREE_ITEM_COLLAPSED, self.changed, self.tree) self.tree.Bind(wx.EVT_TREE_SEL_CHANGED, self.OnItemChanged, self.tree) self.Bind(wx.EVT_SIZE, self.OnSize) # self.tree.SetSize(self.GetSize()) self.devices_list = [] ### expand all expand_icon = wx.ArtProvider.GetBitmap(wx.ART_UNDO, wx.ART_TOOLBAR, (16,16)) expand_button = wx.BitmapButton(self, -1, expand_icon, (20, 20), (expand_icon.GetWidth()+10, expand_icon.GetHeight()+10)) expand_button.SetToolTipString("This is a bitmap button.") self.Bind(wx.EVT_BUTTON, self.OnExpand, expand_button) box = wx.BoxSizer(wx.VERTICAL) box.Add(self.tree, 1) # create some columns self.tree.AddColumn("Devices & signals") self.tree.AddColumn("type") self.tree.AddColumn("lengh") self.tree.AddColumn("units") self.tree.AddColumn("minimum") self.tree.AddColumn("maximum") self.tree.SetMainColumn(0) # the one with the tree in it... self.tree.SetColumnWidth(0, 200) self.tree.SetColumnWidth(1, 50) self.tree.SetColumnWidth(2, 50) self.tree.SetColumnWidth(3, 50) self.tree.SetColumnWidth(4, 80) # load the tree nodes self.RefreshAll() # Expand the first level by default # FIXME: breaks if there's no item in the list #self.tree.ExpandAll(self.root) def OnItemChanged(self, evt): # show the connection expression and src/dest min/max in the toolbar src = self.GetParent().GetParent().sources_panel.GetSignalAddress() dest = self.GetParent().GetParent().destinations_panel.GetSignalAddress() if src == None or dest == None: connection_data = None else: #FIXME: gizmos module seems to have a bug here connection_data = self.my_mapper.getConnectionBySignalFullNames(src, dest) if connection_data is None: # disable controls self.GetParent().GetParent().mode_choice.Disable() self.GetParent().GetParent().mute_tool.Disable() self.GetParent().GetParent().expression_input.Disable() self.GetParent().GetParent().expression_y.Disable() self.GetParent().GetParent().arrow_range.Disable() self.GetParent().GetParent().arrow_range2.Disable() self.GetParent().GetParent().src_range_label.Disable() self.GetParent().GetParent().src_range_min.Disable() self.GetParent().GetParent().src_range_max.Disable() self.GetParent().GetParent().dest_range_label.Disable() self.GetParent().GetParent().dest_range_min.Disable() self.GetParent().GetParent().dest_range_max.Disable() self.GetParent().GetParent().expression_input.SetValue("") # set default values in the control panel # self.GetParent().GetParent().expression_input.Clear() #for i in range(self.GetParent().GetParent().expression_input.GetCount()): # self.GetParent().GetParent().expression_input.Delete(i) self.GetParent().GetParent().src_range_min.SetToDefaultValue() self.GetParent().GetParent().src_range_max.SetToDefaultValue() self.GetParent().GetParent().dest_range_min.SetToDefaultValue() self.GetParent().GetParent().dest_range_max.SetToDefaultValue() else: # enable controls self.GetParent().GetParent().mode_choice.Enable() self.GetParent().GetParent().mute_tool.Enable() if connection_data["mode"] == self.my_mapper.mo_expression: self.GetParent().GetParent().expression_input.Enable() self.GetParent().GetParent().expression_y.Enable() else: self.GetParent().GetParent().expression_input.Disable() self.GetParent().GetParent().expression_y.Disable() self.GetParent().GetParent().arrow_range.Enable() self.GetParent().GetParent().arrow_range2.Enable() self.GetParent().GetParent().src_range_label.Enable() self.GetParent().GetParent().src_range_min.Enable() self.GetParent().GetParent().src_range_max.Enable() self.GetParent().GetParent().dest_range_label.Enable() self.GetParent().GetParent().dest_range_min.Enable() self.GetParent().GetParent().dest_range_max.Enable() # set connection values in the control panel src_min = connection_data["src_min"] src_max = connection_data["src_max"] dest_min = connection_data["dest_min"] dest_max = connection_data["dest_max"] if connection_data["muted"] == 1: self.GetParent().GetParent().mute_tool.SetValue(True) elif connection_data["muted"] == 0: self.GetParent().GetParent().mute_tool.SetValue(False) # we need to match connection mode index with the choice index in the control panel: mode = int(connection_data["mode"]) mode_choice_index = self.GetParent().GetParent().modes_list.index(self.my_mapper.modes_dict_rev[mode]) self.GetParent().GetParent().mode_choice.SetSelection(mode_choice_index) self.GetParent().GetParent().expression_input.SetValue(connection_data["expression"].split('=')[1]) self.GetParent().GetParent().src_range_min.SetValue(src_min) self.GetParent().GetParent().src_range_max.SetValue(src_max) self.GetParent().GetParent().dest_range_min.SetValue(dest_min) self.GetParent().GetParent().dest_range_max.SetValue(dest_max) def changed(self, event): self.GetParent().GetParent().redraw() def getAllItems(self): pass def getItemPos(self, item): while not self.tree.IsVisible(item): item = self.tree.GetItemParent(item) return self.tree.GetBoundingRect(item) def getCurrentItem(self): return self.tree.GetCurrentItem() def OnActivate(self, event): self.NewConnection() self.GetParent().GetParent().connections_panel.DrawConnectionsLines() def NewConnection(self): # set link and connection with libmapper source_sig = self.GetParent().GetParent().sources_panel.GetSignalAddress() dest_sig = self.GetParent().GetParent().destinations_panel.GetSignalAddress() if source_sig != None and dest_sig != None: conns = self.my_mapper.getConnectionBySignalFullNames(source_sig, dest_sig) if conns is None: self.my_mapper.setLink("/"+source_sig.split("/")[1], "/"+dest_sig.split("/")[1], {}) self.my_mapper.Connect(source_sig, dest_sig, options={}) else: self.my_mapper.Disconnect(source_sig, dest_sig) def OnSize(self, event): self.tree.SetSize(self.GetSize()) def AddTreeNodes(self, parentItem, items): for item in items: bg_color = 0 if self.which == "destinations" and self.my_mapper.getInputsFromDevice(item): newItem = self.tree.AppendItem(parentItem, item) self.tree.SetItemBackgroundColour(newItem, "#D3D3D3") self.tree.SetItemBold(newItem) for i in self.my_mapper.getInputsFromDevice(item): s_input = self.tree.AppendItem(newItem, i["name"]) if bg_color % 2 == 0: self.tree.SetItemBackgroundColour(s_input, "#F5F5F5") bg_color += 1 self.tree.SetItemText(s_input, i["type"], 1) self.tree.SetItemText(s_input, str(i["length"]), 2) self.tree.SetItemText(s_input, "", 3) self.tree.SetItemText(s_input, str(i["min"]), 4) self.tree.SetItemText(s_input, str(i["max"]), 5) elif self.which == "sources" and self.my_mapper.getOutputsFromDevice(item): newItem = self.tree.AppendItem(parentItem, item) self.tree.SetItemBackgroundColour(newItem, "#D3D3D3") self.tree.SetItemBold(newItem) for o in self.my_mapper.getOutputsFromDevice(item): s_output = self.tree.AppendItem(newItem, o["name"]) if bg_color % 2 == 0: self.tree.SetItemBackgroundColour(s_output, "#F5F5F5") bg_color += 1 self.tree.SetItemText(s_output, o["type"], 1) self.tree.SetItemText(s_output, str(o["length"]), 2) self.tree.SetItemText(s_output, "", 3) self.tree.SetItemText(s_output, str(o["min"]), 4) self.tree.SetItemText(s_output, str(o["max"]), 5) def RefreshAll(self): # Add nodes (devices and their signals) to the trees self.new_devices_list = [] self.new_devices = self.my_mapper.getAllDevices() if self.new_devices != self.devices_list: self.tree.DeleteAllItems() # Hidden tree root node self.root = self.tree.AddRoot("") self.AddTreeNodes(self.root, self.new_devices) self.tree.Refresh() self.ExpandAll() self.devices_list = self.new_devices def OnExpand(self, event): self.ExpandAll() def ExpandAll(self): self.tree.ExpandAll(self.root) def GetRootItem(self): return self.tree.GetRootItem() def CollapseAll(self): self.tree.Collapse(self.tree.GetRootItem()) def OnCollapse(self, event): self.CollapseAll() def GetSelection(self): return self.tree.GetSelection() def GetSignalAddress(self): try: ret = str(self.tree.GetItemText(self.tree.GetItemParent(self.tree.GetSelection())) + self.tree.GetItemText(self.tree.GetSelection())) except: ret = None return ret def GetItemText(self, item): if item: return self.tree.GetItemText(item) else: return "" def OnItemExpanded(self, evt): pass def OnItemCollapsed(self, evt): pass # HACK: better to store a dict{item_name: item_id} ?? def GetItemByLabel(self, search_text, root_item): # receives as search_text a full libmapper address (ex: /device/signal) item, cookie = self.tree.GetFirstChild(root_item) while item.IsOk(): text = self.tree.GetItemText(item) if text.lower() == search_text.lower(): return item if self.tree.ItemHasChildren(item) and len(search_text.split("/")) > 2: string = "/"+"/".join(search_text.split("/")[2:]) match = self.GetItemByLabel(string, item) # if parent is the device, since we can have same signal name for different devices if match.IsOk() and self.tree.GetItemText(self.tree.GetItemParent(match)) == "/"+search_text.split("/")[1]: return match item, cookie = self.tree.GetNextChild(root_item, cookie) return wx.TreeItemId() pymappergui-debian/pymappergui/__init__.py0000644000175000017500000000000012437421545020300 0ustar tiagotiagopymappergui-debian/pymappergui/mymapper.py0000644000175000017500000001104212437421545020403 0ustar tiagotiagoimport mapper class MyMapper(): def __init__(self): self.mon = mapper.monitor(autosubscribe_flags=mapper.SUB_DEVICE) self.initMonitor() self.mo_calibrate = mapper.MO_CALIBRATE self.mo_expression = mapper.MO_EXPRESSION self.mo_reverse = mapper.MO_REVERSE self.mo_linear = mapper.MO_LINEAR self.mo_bypass = mapper.MO_BYPASS self.ba_none = mapper.BA_NONE self.ba_mute = mapper.BA_MUTE self.ba_clamp = mapper.BA_CLAMP self.ba_fold = mapper.BA_FOLD self.ba_wrap = mapper.BA_WRAP self.modes_dict = {'Bypass': mapper.MO_BYPASS, 'Calibrate': mapper.MO_CALIBRATE, 'Reverse': mapper.MO_REVERSE, 'Linear': mapper.MO_LINEAR, 'Expression': mapper.MO_EXPRESSION} self.boundaries_dict = {'None': mapper.BA_NONE, 'Mute': mapper.BA_MUTE, 'Clamp': mapper.BA_CLAMP, 'Fold': mapper.BA_FOLD, 'Wrap': mapper.BA_WRAP} # we often need to fetch reversed info from the dictionaries above: self.modes_dict_rev = dict((v,k) for k, v in self.modes_dict.iteritems()) self.boundaries_dict_rev = dict((v,k) for k, v in self.boundaries_dict.iteritems()) self.OSC_devices = [] def initMonitor(self): self.mon.request_devices() def poll(self, time): self.mon.poll(time) def setNetworkInterface(self, iface): self.admin = mapper.admin(iface=iface) self.mon = mapper.monitor(self.admin, autorequest=0) self.initMonitor() def setLink(self, source, dest, options={}): self.mon.link(source, dest, options) def Connect(self, src, dest, options=None): if not options: options = dict(mode=mapper.MO_LINEAR, bound_min=mapper.BA_WRAP, bound_max=mapper.BA_CLAMP) self.mon.poll(20) self.mon.connect(src, dest, options) def Disconnect(self, src, dest): self.mon.disconnect(src, dest) def Link(self): pass def Unlink(self): pass def getInputOutputDevices(self): "This is needed by storage code. Should return {sources: [/dev1, /dev2, /etc], destinations:[/dev3, /dev1]}" sources = [] destinations = [] devices = self.getAllDevices() for d in devices: if len(self.getInputsFromDevice(d)) != 0: # if device contains at least one input destinations.append(d) if len(self.getOutputsFromDevice(d)) != 0: # if device contains at least one output sources.append(d) in_out_devices = {'sources': sources, 'destinations': destinations} #print in_out_devices return in_out_devices def Modify(self, src, dest, options=None): self.mon.modify_connection(src, dest, options) self.mon.poll(5) print self.getConnections() def getConnectionBySignalFullNames(self, src, dest): self.mon.poll(5) return self.mon.db.get_connection_by_signal_full_names(src, dest) def getSignalObjectBySignalFullName(self, dest, which): device = "/" + dest.split("/")[1] signal = "/" + "/".join(dest.split("/")[2:]) if which == "input": return self.mon.db.get_input_by_device_and_signal_name(device, signal) elif which == "output": return self.mon.db.get_output_by_device_and_signal_name(device, signal) def getConnections(self): self.mon.poll(50) self.connections = [i for i in self.mon.db.all_connections()] return self.connections def getAllDevices(self): self.mon.poll(50) self.devices = [i["name"] for i in self.mon.db.all_devices()] return self.devices def getInputsFromDevice(self, device_name): self.getAllDevices() inputs_list = [i for i in self.mon.db.inputs_by_device_name(device_name)] return inputs_list def getOutputsFromDevice(self, device_name): self.getAllDevices() outputs_list = [i for i in self.mon.db.outputs_by_device_name(device_name)] return outputs_list def createDevice(self, device_name): self.OSC_dev = mapper.device(device_name) self.OSC_dev.add_output("/x", 1, 'f', None, -1000, 1000) self.OSC_dev.poll(100) self.OSC_devices.append(self.OSC_dev) return self.OSC_dev # petit debug if __name__ == "__main__": m = MyMapper() # print m.getAllDevices() # print m.getInputsFromDevice('/om.1') # print m.getOutputsFromDevice('/om.1') # print m.Connect("/om.1", "/om.2") print m.getConnections() pymappergui-debian/pymappergui/dialogs.py0000644000175000017500000001515112437421545020200 0ustar tiagotiagoimport wx import wx.grid as gridlib import mymapper class CustomDataTable(gridlib.PyGridTableBase): def __init__(self, connections): gridlib.PyGridTableBase.__init__(self) # there's at least one connection, let's use it for now to create indexes self.colLabels = connections[0].keys() self.dataTypes = [ gridlib.GRID_VALUE_FLOAT, gridlib.GRID_VALUE_FLOAT, gridlib.GRID_VALUE_STRING, gridlib.GRID_VALUE_NUMBER, gridlib.GRID_VALUE_FLOAT, gridlib.GRID_VALUE_NUMBER, gridlib.GRID_VALUE_FLOAT, gridlib.GRID_VALUE_STRING, gridlib.GRID_VALUE_FLOAT, gridlib.GRID_VALUE_NUMBER, gridlib.GRID_VALUE_FLOAT, gridlib.GRID_VALUE_STRING, gridlib.GRID_VALUE_STRING, gridlib.GRID_VALUE_BOOL, gridlib.GRID_VALUE_STRING ] self.data = [] for c in connections: self.data.append(c.values()) #-------------------------------------------------- # required methods for the wxPyGridTableBase interface def GetNumberRows(self): return len(self.data) def GetNumberCols(self): return len(self.data[0]) def IsEmptyCell(self, row, col): try: return not self.data[row][col] except IndexError: return True # Get/Set values in the table. The Python version of these # methods can handle any data-type, (as long as the Editor and # Renderer understands the type too,) not just strings as in the # C++ version. def GetValue(self, row, col): try: return self.data[row][col] except IndexError: return '' def SetValue(self, row, col, value): self.data[row][col] = value #-------------------------------------------------- # Some optional methods # Called when the grid needs to display labels def GetColLabelValue(self, col): return self.colLabels[col] # Called to determine the kind of editor/renderer to use by # default, doesn't necessarily have to be the same type used # natively by the editor/renderer if they know how to convert. def GetTypeName(self, row, col): return self.dataTypes[col] # Called to determine how the data can be fetched and stored by the # editor and renderer. This allows you to enforce some type-safety # in the grid. def CanGetValueAs(self, row, col, typeName): colType = self.dataTypes[col].split(':')[0] if typeName == colType: return True else: return False def CanSetValueAs(self, row, col, typeName): return self.CanGetValueAs(row, col, typeName) #--------------------------------------------------------------------------- class CustTableGrid(gridlib.Grid): def __init__(self, parent, connections): gridlib.Grid.__init__(self, parent, -1) table = CustomDataTable(connections) # The second parameter means that the grid is to take ownership of the # table and will destroy it when done. Otherwise you would need to keep # a reference to it and call it's Destroy method later. self.SetTable(table, True) self.SetRowLabelSize(0) self.SetMargins(0,0) self.AutoSizeColumns(False) #--------------------------------------------------------------------------- class EditConnections(wx.Dialog): def __init__( self, parent, ID, title, size=wx.DefaultSize, pos=wx.DefaultPosition, style=wx.DEFAULT_DIALOG_STYLE, useMetal=False): self.my_mapper = mymapper.MyMapper() self.connections = self.my_mapper.getConnections() pre = wx.PreDialog() pre.SetExtraStyle(wx.DIALOG_EX_CONTEXTHELP) pre.Create(parent, ID, title, pos, size, style) self.PostCreate(pre) p = wx.Panel(self, -1, style=0) grid = CustTableGrid(p, self.connections) bs = wx.BoxSizer(wx.VERTICAL) bs.Add(grid, 1, wx.EXPAND|wx.ALL, 5) p.SetSizer(bs) bs.Fit(self) #--------------------------------------------------------------------------- class AddOSCDevice(wx.Dialog): def __init__( self, parent, ID, title, size=wx.DefaultSize, pos=wx.DefaultPosition, style=wx.DEFAULT_DIALOG_STYLE, useMetal=False, ): # Instead of calling wx.Dialog.__init__ we precreate the dialog # so we can set an extra style that must be set before # creation, and then we create the GUI object using the Create # method. pre = wx.PreDialog() pre.SetExtraStyle(wx.DIALOG_EX_CONTEXTHELP) pre.Create(parent, ID, title, pos, size, style) # This next step is the most important, it turns this Python # object into the real wrapper of the dialog (instead of pre) # as far as the wxPython extension is concerned. self.PostCreate(pre) # Now continue with the normal construction of the dialog # contents sizer = wx.BoxSizer(wx.VERTICAL) label = wx.StaticText(self, -1, "Enter the OSC host info:") sizer.Add(label, 0, wx.ALIGN_CENTRE|wx.ALL, 5) box = wx.BoxSizer(wx.HORIZONTAL) label = wx.StaticText(self, -1, "IP address:") box.Add(label, 0, wx.ALIGN_CENTRE|wx.ALL, 5) text = wx.TextCtrl(self, -1, "", size=(80,-1)) box.Add(text, 1, wx.ALIGN_CENTRE|wx.ALL, 5) sizer.Add(box, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5) box = wx.BoxSizer(wx.HORIZONTAL) label = wx.StaticText(self, -1, "Port: ") box.Add(label, 0, wx.ALIGN_CENTRE|wx.ALL, 5) text = wx.TextCtrl(self, -1, "", size=(80,-1)) box.Add(text, 1, wx.ALIGN_CENTRE|wx.ALL, 5) sizer.Add(box, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5) line = wx.StaticLine(self, -1, size=(20,-1), style=wx.LI_HORIZONTAL) sizer.Add(line, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.RIGHT|wx.TOP, 5) btnsizer = wx.StdDialogButtonSizer() btn = wx.Button(self, wx.ID_OK) btn.SetDefault() btnsizer.AddButton(btn) btn = wx.Button(self, wx.ID_CANCEL) btnsizer.AddButton(btn) btnsizer.Realize() sizer.Add(btnsizer, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5) self.SetSizer(sizer) sizer.Fit(self) #--------------------------------------------------------------------------- pymappergui-debian/pymappergui/storage.py0000644000175000017500000001172212437421545020222 0ustar tiagotiagoimport json import mapper class Storage: def __init__(self): pass # This code is based on webmapper code (https://github.com/radarsat1/webmapper) def serialise(self, monitor, devices_list): sources = {} destinations = {} connections = {} new_connections = [] next_src = 0 next_dest = 0 next_connection = 0 modeStr = {mapper.MO_BYPASS: 'bypass', mapper.MO_LINEAR: 'linear', mapper.MO_CALIBRATE: 'calibrate', mapper.MO_EXPRESSION: 'expression'} boundStr = {mapper.BA_NONE: 'none', mapper.BA_MUTE: 'mute', mapper.BA_CLAMP: 'clamp', mapper.BA_FOLD: 'fold', mapper.BA_WRAP: 'wrap'} for device in devices_list: for c in monitor.db.connections_by_device_name(device): this_connection = { 'src': [ c['src_name'] ], 'dest': [ c['dest_name'] ], 'mute': c['muted'], 'mode': modeStr[c['mode']], 'srcMin': c['src_min'], 'srcMax': c['src_max'], 'destMin': c['dest_min'], 'destMax': c['dest_max'], 'expression': c['expression'], 'boundMin': boundStr[c['bound_min']], 'boundMax': boundStr[c['bound_max']] } # To get proper expression nomenclature # dest[0] = src[0] NOT y = x this_connection['expression'] = this_connection['expression'].replace('y', 'dest[0]').replace('x', 'src[0]') new_connections.append(this_connection); contents = {"fileversion": "2.1", "mapping": { "connections": new_connections } } return json.dumps(contents, indent=4) def deserialise(self, monitor, mapping_json, devices): js = json.loads(mapping_json) #The version we're currently working with version = ''; if 'fileversion' in js: version = js['fileversion'] elif 'mapping' in js and 'fileversion' in js['mapping']: version = js['mapping']['fileversion'] modeIdx = {'bypass': mapper.MO_BYPASS, 'linear': mapper.MO_LINEAR, 'calibrate': mapper.MO_CALIBRATE, 'expression': mapper.MO_EXPRESSION} boundIdx = {'none': mapper.BA_NONE, 'mute': mapper.BA_MUTE, 'clamp': mapper.BA_CLAMP, 'fold': mapper.BA_FOLD, 'wrap': mapper.BA_WRAP} m = js['mapping'] # sources and destinations are lists, devices are split from the second '/' character srcdevs = devices['sources'] destdevs = devices['destinations'] links = [( str(x), str(y) ) for x in srcdevs for y in destdevs] for l in links: monitor.link(l[0], l[1], {}) monitor.poll(10) for c in m['connections']: #The name of the source signal (without device, assuming 1 to 1 for now) srcsig = str(c['src'][0]).split('/')[2] #And the destination destsig = str(c['dest'][0]).split('/')[2] args = (str(c['src'][0]), str(c['dest'][0]), {}) if 'mode' in c: args[2]['mode'] = modeIdx[c['mode']] if 'expression' in c: args[2]['expression'] = str(c['expression'] .replace('src[0]', 'x') .replace('dest[0]', 'y')) if 'srcMin' in c: args[2]['src_min'] = c['srcMin'] if 'srcMax' in c: args[2]['src_max'] = c['srcMax'] if 'destMin' in c: args[2]['dest_min'] = c['destMin'] if 'destMax' in c: args[2]['dest_max'] = c['destMax'] if 'boundMin' in c: args[2]['bound_min'] = boundIdx[c['boundMin']] if 'boundMax' in c: args[2]['bound_max'] = boundIdx[c['boundMax']] if 'mute' in c: args[2]['muted'] = c['mute'] # If connection already exists, use 'modify', otherwise 'connect'. # Assumes 1 to 1, again cs = list(monitor.db.connections_by_device_and_signal_names( (l[0]).split('/')[1], srcsig, (l[1]).split('/')[1], destsig) ) if len(cs) > 0: monitor.modify_connection(args[0], args[1], args[2]) else: monitor.connect(*args) if __name__ == "__main__": m = mapper.monitor(autosubscribe_flags=mapper.SUB_DEVICE) m.request_devices() m.poll(100) devices = [i["name"] for i in m.db.all_devices()] s = Storage() for d in devices: print s.serialise(m, d) pymappergui-debian/TODO0000644000175000017500000000436312437421545014335 0ustar tiagotiagoTODO: - explore interesting expressions and add them in the default preset - add config file for default connections setup (mode=mapper.MO_LINEAR, bound_min=mapper.BA_WRAP, bound_max=mapper.BA_CLAMP) - supports more than one level hierarchy for signals (ex. /dev1/signal/x) - possible connection to Zyne synth ? (may have a 'create mapper device' option in Zyne) - selected/modify connection info (right click, maybe selecting connection line) - add pure OSC support - build on Mac - build on Win - auto-refresh should list new found devices (hard) - network interface selection (coded, but doesn't seem to work, needs debug) - add mute icon - set increment offset automatically based on current min/max values - clean code at OnSetSourceMin and AddTreeNodes (avoid duplication) - refactore code for mapper instances, use only one monitor for everything - set menubar values when loading a state file - create a logo and make an icon - add class/methods documentation - add dialog to edit expression presets Next: ==== - FIX collapse all (added, but wx method doesn't work, needs debug) - FIX first floatspin is reversed! - make Debian package for pyMapperGUI (50%) - add a sort of realtime visualization from input/output data (une line simple comme option dans une column, how to insert a line into ctrlList?) - add option to change connection mode (done 50%) - update expression field and other parameters once it loads a new state file Recently DONE: ============== - Try to connect only if both src and dest are selected. - auto draw, using callafter (1s) - Center main frame - FIX layout after resizing search input - FIX: gizmos tree list (segfault) - FIX: wx3.0 window issues ------------ - fix missing decimals when loading state files - signal and devices search - FIX: line appended in the full connections grid OK - define new project name, should be a bit disconnected to libmapper? (dmi...) = pyMapperGUI OK - fix double connection in state file OK - Fix expanding tree elements when there's no device OK - update to wxpython3 OK - add menu options for saving/loading state - add expression presets load/save - update to new mapper API - save/load state files - push it to Debian - add save as / save current menu - calibrate ok pymappergui-debian/setup.py0000644000175000017500000000074112437421545015353 0ustar tiagotiago# -*- coding: utf-8 -*- import os from distutils.core import setup setup( name = "pyMapperGUI", author = "Tiago Bortoletto Vaz", author_email = "tiago@acaia.ca", version = "0.1", description = "Cross-platform GUI for libmapper", url = "https://github.com/tiagovaz/pyMapperGUI", license = "GPLv3", packages = ["pymappergui"], package_data = {"pymappergui": ["images/*.png"]}, scripts = ['pyMapperGUI.py'] ) pymappergui-debian/testing/0000755000175000017500000000000012437421545015314 5ustar tiagotiagopymappergui-debian/testing/mapper_input.py0000644000175000017500000000353212437421545020374 0ustar tiagotiagofrom pyo import * import mapper from Audio import DarkAtmosphere, Wind, MyFM s = Server(audio="jack", sr=44100, buffersize=512) s.boot() s.start() dark1 = DarkAtmosphere() dark2 = DarkAtmosphere() dark3 = DarkAtmosphere() dark4 = DarkAtmosphere() wind = Wind(.5) myfm = MyFM() dark1.out() dark2.out() dark3.out() dark4.out() wind.out() myfm.out() dev1 = mapper.device("Dark") dev2 = mapper.device("Dark") dev3 = mapper.device("Dark") dev4 = mapper.device("Dark") # dev input 1 dev1.add_input( "/pitch1", 1, "f", "Hz", 0, 1, lambda s, i, f, t: dark1.setPitch(f, f*1.01) ) dev1.add_input( "/pitch2", 1, "f", "Hz", 0, 1, lambda s, i, f, t: dark1.setPitch(f, f*1.10) ) dev2.add_input( "/pitch1", 1, "f", "Hz", 0, 1, lambda s, i, f, t: dark2.setPitch(f, f*1.01) ) dev2.add_input( "/pitch2", 1, "f", "Hz", 0, 1, lambda s, i, f, t: dark2.setPitch(f, f*1.10) ) dev3.add_input( "/pitch1", 1, "f", "Hz", 0, 1, lambda s, i, f, t: dark3.setPitch(f, f*1.01) ) dev3.add_input( "/pitch2", 1, "f", "Hz", 0, 1, lambda s, i, f, t: dark3.setPitch(f, f*1.10) ) dev4.add_input( "/pitch1", 1, "f", "Hz", 0, 1, lambda s, i, f, t: dark4.setPitch(f, f*1.01) ) dev4.add_input( "/pitch2", 1, "f", "Hz", 0, 1, lambda s, i, f, t: dark4.setPitch(f, f*1.10) ) # dev input 2 #dev2.add_input( "/feedback", 1, "f", "Hz", 0, 1, lambda s, i, f, t: dark2.setFeedback(f) ) # dev input 3 #dev3.add_input( "/amp", 1, "f", None, 0, 1, lambda s, i, f, t: wind.setAmp(f) ) # #dev4.add_input( "/index", 1, "f", None, 0, 20, lambda s, i, f, t: myfm.setIndex(f) ) #dev4.add_input( "/ratio", 1, "f", None, 0.01, 4, lambda s, i, f, t: myfm.setRatio(f) ) #dev4.add_input( "/amp", 1, "f", None, 0, 1, lambda s, i, f, t: myfm.setAmp(f) ) #dev4.add_input( "/pitch", 1, "f", None, 100, 600, lambda s, i, f, t: myfm.setPitch(f) ) # dev input 4 while True: dev1.poll(1) dev2.poll(1) dev3.poll(1) dev4.poll(1) pymappergui-debian/testing/test2.py0000644000175000017500000000112612437421545016727 0ustar tiagotiagofrom pyo import * import mapper from random import uniform import time s = Server(audio='jack').boot() s.start() a = BrownNoise() b = Biquadx(a, freq=[200, 400, 800, 1600, 3200, 6400], q=10, type=2).out() def freq_handler(sig, id, val, timetag): try: b.setFreq( val ) except: print 'exception' print sig, val def setup(d): dev_input = dev.add_input( "/Q", 1, "f", None, 1, 5, lambda s, i, f, t: b.setQ(f) ) dev_input = dev.add_input( "/pitch", 1, "f", None, 20, 15000, freq_handler ) dev = mapper.device("biquad") setup(dev) while 1: dev.poll(10) pymappergui-debian/testing/serial/0000755000175000017500000000000012437421545016573 5ustar tiagotiagopymappergui-debian/testing/serial/test.py0000644000175000017500000000037712437421545020133 0ustar tiagotiagoimport serial import mapper dev = mapper.device("test") sensor1 = dev.add_output("/outsig", 1, "i", None, 0, 1023) ser = serial.Serial("/dev/ttyACM0", 115200) while True: dev.poll(0) v1 = int(ser.readline()) print v1 sensor1.update(v1) pymappergui-debian/testing/serial/testSLIP.py0000644000175000017500000000037612437421545020622 0ustar tiagotiagoimport serial import mapper #dev = mapper.device("test") #sensor1 = dev.add_output("/outsig", 1, "i", None, 0, 1023) ser = serial.Serial("/dev/ttyACM0", 115200) while True: # dev.poll(0) v1 = ser.readline() print v1 # sensor1.update(v1) pymappergui-debian/testing/mapper_output.py0000644000175000017500000000226512437421545020577 0ustar tiagotiago#!/usr/bin/env python # encoding: utf-8 from pyo import * import mapper s = Server(audio="jack", sr=44100, buffersize=512).boot() osc_bundle = ['/om1/x', '/om1/y', '/om1/z', '/om2/x', '/om2/y', '/om2/z'] s.start() om1_dev = mapper.device("om") om2_dev = mapper.device("om") om1_x = om1_dev.add_output("/x", 1, 'f', None, -1000, 1000) om1_y = om1_dev.add_output("/y", 1, 'f', None, -1000, 1000) om1_z = om1_dev.add_output("/z", 1, 'f', None, -1000, 1000) om2_x = om2_dev.add_output("/x", 1, 'f', None, -1000, 1000) om2_y = om2_dev.add_output("/y", 1, 'f', None, -1000, 1000) om2_z = om2_dev.add_output("/z", 1, 'f', None, -1000, 1000) def osc_handler(address, args): if address == '/om1/x': print args om1_x.update(args) elif address == '/om1/y': om1_y.update(args) elif address == '/om1/z': om1_z.update(args) if address == '/om2/x': om2_x.update(args) elif address == '/om2/y': om2_y.update(args) elif address == '/om2/z': om2_z.update(args) a = OscDataReceive(9000, osc_bundle, osc_handler) while True: om1_dev.poll(1) om2_dev.poll(1) pymappergui-debian/testing/test.py0000644000175000017500000000424112437421545016646 0ustar tiagotiagofrom pyo import * from pyolib._wxwidgets import ControlSlider, BACKGROUND_COLOUR import wx import mapper class MyFrame(wx.Frame): def __init__(self, parent, title, size, colour="#DDDDE7"): wx.Frame.__init__(self, parent, -1, title=title, size=size) sizer = wx.BoxSizer(wx.VERTICAL) self.dev = mapper.device("test") pos_y = 20 # y position for labels & slides s_label = 0 # integer which will generate incremented labels signal_id = 0 # this will be used to set the proper mapper signal #TODO: generate list of outputs and get their 'real' names to create the labels - duhhh for i in range(10): # generating lables & slides list self.slider = MyControlSlider(self, -1000, 1000, 0, pos=(45, pos_y), backColour=colour, signal_id=signal_id) sizer.Add(wx.StaticText(self, -1, str(s_label)+".", pos =(20, pos_y)), 0, wx.ALIGN_CENTRE|wx.ALL, 5) s_label += 1 pos_y += 25 signal_id += 1 # mapper poll self.timer = wx.Timer(self) self.Bind(wx.EVT_TIMER, self.OnTimer) self.timer.Start(milliseconds=10, oneShot=False) def OnTimer(self, evt): self.dev.poll(1) class MyControlSlider(ControlSlider): def __init__(self, parent, minvalue, maxvalue, init=None, pos=(0,0), size=(200,16), log=False, integer=False, powoftwo=False, backColour=None, signal_id=None): ControlSlider.__init__(self, parent=parent, minvalue=minvalue, maxvalue=maxvalue, init=init, pos=pos, size=size, log=log, outFunction=self.setMapper, integer=integer, powoftwo=powoftwo, backColour=backColour) self.signal_id = signal_id self.mon = mapper.monitor() self.dev = self.GetParent().dev self.output = self.dev.add_output("/"+str(self.signal_id), 1, 'f', None, -1000, 1000) while not self.dev.ready(): self.dev.poll(10) self.mon.poll() def setMapper(self, value): self.output.update(value) app = wx.App(False) frame = MyFrame(None, title="testing pymapper", size=(280, 300)) frame.Show() app.MainLoop() pymappergui-debian/testing/accel-fake.py0000755000175000017500000000043212437421545017643 0ustar tiagotiago#!/usr/bin/python from pyo import * s = Server(audio="jack").boot() osc = OscSend(Randi(-1000, 1000), port=9000, address=['/om1/x'], host='127.0.0.1') #osc = OscSend(Randi(500, 1500), port=8000, address=['/wacom/1/pen/O/button/1'], host='127.0.0.1') #s.start() s.gui(locals()) pymappergui-debian/testing/Audio.py0000644000175000017500000001575112437421545016740 0ustar tiagotiagofrom pyo import * from random import * class DarkAtmosphere: def __init__(self, p1=.2054, p2=[.3966, .3933], chaos=.025, feedback=.5, mul=.5): self.r1 = Rossler(pitch=p1, chaos=.4038, stereo=True, mul=mul, add=.2) self.r2 = Rossler(pitch=p2, chaos=.0769, mul=self.r1*.8) self.amp = Fader(fadein=5, fadeout=5, dur=0) self.d = Delay(self.r2, feedback=.5, mul=self.amp) def setFeedback(self, feedback): self.d.feedback = feedback return self def setPitch(self, p1, p2): self.r1.pitch = p1 self.r2.pitch = p2 return self def setChaos(self, chaos): self.r1.chaos = chaos return self def out(self): self.d.out() self.amp.play() return self def tail(self): self.amp.stop() def sig(self): return self.d def stop(self): self.d.stop() self.r1.stop() self.r2.stop() return self def getOut(self): return self.amp def setInput(self, x, fadetime=.001): self.input.setInput(x, fadetime) class MyDelay: """A sensor controls delay/reverb of an audio stream - audio1 being an Input() signal - audio2 being a sensor output (audio stream) from 0 to 1 - audio3 being a sensor output (audio stream) from 40 to 800 """ #TODO: no mess, take fadein/out as argument def __init__(self, audio1, audio2=.01, audio3=40, mul=.7): self.lfd = Sine([.4,.3], mul=.2, add=.5) self.supersaw = SuperSaw(freq=[ audio3*uniform(0.94, 1.04) for i in range(10) ], detune=self.lfd, bal=0.7, mul=.1) self.r = Freeverb(self.supersaw, size=.94, damp=.87, bal=.9, mul=1) self.d2 = Delay(self.r, delay=audio2, feedback=uniform(0.95, 1), mul=.4) self.d2.ctrl() self.d3 = Delay(self.d2, delay=[.05, .1, .25, .5], feedback=.25, mul=.4) self.d3.ctrl() #self.c = Chorus(audio1, depth=[1.5,1.6], feedback=0.5, bal=0.5) self.r2 = Freeverb(audio1, size=.74, damp=.87, bal=.5, mul=1) self.d4 = Delay(self.r2, delay=audio2, feedback=uniform(0.95, 1), mul=.6) self.d4.ctrl() #self.mix = Freeverb(Mix(self.d2 + self.d3 + self.r2 + self.d4, mul=.7), size=.34, damp=.37, bal=.9, mul=.9) self.amp = Fader(fadein=20, fadeout=20) self.mix = Mix(self.d2 + self.d3 + self.r2 + self.d4, mul=self.amp*mul).out() def setSawFreq(self, freq): self.supersaw = SuperSaw(freq=[ freq*uniform(0.94, 1.04) for i in range(10) ], detune=self.lfd, bal=0.7, mul=.1) def setDelay(self, delay): self.d4.delay = delay def out(self): self.amp.play() return self def stop(self): self.amp.stop() return self def getOut(self): return self.amp def setInput(self, x, fadetime=.001): self.input.setInput(x, fadetime) class SmoothNoise(): def __init__(self, dur=1.3): self.amp = Fader(fadein=.1, fadeout=.01, dur=dur) self.noise = PinkNoise(self.amp*.01).mix(2).out() def setDur(self, dur): self.amp.dur = dur return self def out(self): self.amp.play() return self def stop(self): self.amp.stop() return self def getOut(self): return self.amp def setInput(self, x, fadetime=.001): self.input.setInput(x, fadetime) class HighFreq(): def __init__(self, freq=[11200, 11202], dur=.3): self.amp = Fader(fadein=.01, fadeout=.01, dur=dur) self.sine = SineLoop(freq=freq, mul=self.amp*.05).out() self.rev = Freeverb(self.sine, size=.84, damp=.87, bal=.9, mul=self.amp*.2).out() def setDur(self, dur): self.amp.dur = dur return self def out(self): self.amp.play() return self def stop(self): self.amp.stop() return self def getOut(self): return self.amp #TODO: give random Randi freqs class Wind(): """Simple wind generator with Pyo""" def __init__(self, mul): # Brown noise to have less high frequency to cutoff self.noise = BrownNoise(mul=Randi(0.5,1)) # This gives a factor for both the wind intensity and frequency. Intensity # and frequency go together in the two first filters in order to generate a # more natural wind. Q variation gives a kind of wind blows. self.j = Randi(1,1.4,Randi(.5,1)) # Filter 1 - sort of continuos bass wind self.freqs1 = Randi(150, 300) self.q1 = Randi(1, 6) self.f1 = ButBP(self.noise, freq=self.freqs1, q=self.q1, mul=.2*self.j) # Filter 2 - main wind frequency with slow variation, following wind intensity self.freqs2 = [Randi(300, 400)*self.j for i in range(3)] self.q2 = Randi(40, 300) self.f2 = ButBP(self.noise, freq=self.freqs2, q=self.q2, mul=self.j*1.5) # Filter 3 - very high component, almost fixed in frequency self.freqs3 = [Randi(2990, 3000)*self.j for i in range(2)] self.q3 = Randi(1, 33) self.f3 = ButBP(self.noise, freq=self.freqs3, q=self.q3, mul=.01) # Filter 4 - the highest frequency wind component, also quite fixed self.freqs4 = [Randi(10000, 10100)*self.j for i in range(2)] self.q4 = Randi(10, 33) self.f4 = ButBP(self.noise, freq=self.freqs4, q=self.q4, mul=.01) # Player self.amp = Fader(fadein=5, fadeout=5) self.mix = Mix([self.f1, self.f2, self.f3, self.f4],voices=2, mul=self.amp*mul).out() def setAmp(self, amp): self.mix.mul = amp def out(self): self.amp.play() return self def stop(self): self.amp.stop() return self def getOut(self): return self.amp class MyFM(): def __init__(self, index=1, ratio=1, amp=.1, pitch=300): self.amp = amp self.pitch = pitch self.ratio = ratio self.index = index self.fm1 = FM(carrier=self.pitch, ratio=self.ratio, index=self.index, mul=self.amp*0.1).mix(1) self.fm2 = FM(carrier=self.pitch*1.01, ratio=self.ratio, index=self.index, mul=self.amp*0.1).mix(1) self.fm3 = FM(carrier=self.pitch*0.99, ratio=self.ratio, index=self.index, mul=self.amp*0.1).mix(1) self.fm4 = FM(carrier=self.pitch*1.04, ratio=self.ratio, index=self.index, mul=self.amp*0.1).mix(1) self.outmix = Mix([self.fm1, self.fm2, self.fm3, self.fm4], voices=2).out() def setRatio(self, r): self.ratio = r self.ratio = r self.ratio = r self.ratio = r def setIndex(self, index): self.index = self.index = self.index = self.index = index def setAmp(self, mul): self.fm1.mul = self.fm2.mul = self.fm3.mul = self.fm4.mul = mul def setAmp(self, pitch): self.pitch = pitch * random.uniform(0.97, 1.03) self.pitch = pitch * random.uniform(0.97, 1.03) self.pitch = pitch * random.uniform(0.97, 1.03) self.pitch = pitch * random.uniform(0.97, 1.03) def out(self): self.outmix.out() def stop(self): self.outmix.stop() pymappergui-debian/testing/in_out.py0000644000175000017500000000070312437421545017163 0ustar tiagotiagoimport mapper def freq_handler(sig, id, val, timetag): pass def setup(d): dev_input = dev.add_input( "/Q", 1, "f", None, 1, 500, lambda s, i, f, t: freq_handler ) dev_input = dev.add_input( "/pitch", 1, "f", None, 20, 15000, freq_handler ) dev_output = dev.add_output( "/x", 1, "f", None, 20, 15000) dev_output = dev.add_output( "/y", 1, "f", None, 20, 15000) dev = mapper.device("device") setup(dev) while 1: dev.poll(10) pymappergui-debian/testing/audio.py0000644000175000017500000000150712437421545016772 0ustar tiagotiagofrom pyo import * class FreqMod: def __init__(self, carrier=150): self.ratio = SigTo(0.5, time=0.05, init=0.5) self.index = SigTo(5, time=0.05, init=5) self.fm1 = FM(carrier=carrier, ratio=self.ratio, index=self.index, mul=0.3) self.fm2 = FM(carrier=carrier*1.01, ratio=self.ratio, index=self.index, mul=0.3) self.fmst = Mix([self.fm1, self.fm2], voices=2) def out(self): self.fmst.out() return self def sig(self): return self.fmst def setRatio(self, x): xx = x * 1.999 + 0.001 self.ratio.value = xx def setIndex(self, x): xx = x * 20 self.index.value = xx if __name__ == "__main__": s = Server(audio="jack").boot() fm = FreqMod(150).out() harm = Harmonizer(fm.sig(), transpo=2).out() s.gui(locals()) pymappergui-debian/README.md0000644000175000017500000000025412437421545015117 0ustar tiagotiagopyMapperGUI ======== Cross-platform GUI for libmapper [![pymappergui](http://acaia.ca/~tiago/images/pymapper.png "pymappergui")](https://github.com/tiagovaz/pymappergui) pymappergui-debian/pymapper.png0000644000175000017500000025624512437421545016220 0ustar tiagotiagoPNG  IHDRECXfgAMA asRGB cHRMz&u0`:pQ<bKGD pHYsHHFk>IDATxw\I [½™9 SOw@43IfffeQ̖A2H2UY.JR,ٲqvmȝ;3pv8ޛge_ykV `0 `xϏq;cfQ*Qn0 `0 >>>>??;o~, cU`0 `0 meϏ/ʪ'RǬ|yo^xgnqzU`0 `0 _.l<-/OȐ;dج2̮aVO8$^f/`0 `0 7V<{DCCμ_/&jB}9>?01@x~;,ؙ-ʢ9hgH:U!oNjf\z㲤۴ru!7dwrN̊<$,̒ $#$I/S%Cz\@|c׍F CթEFB?>|>sQe.L;"M:urɩ)'䃰s6iQ#\ݴby}IzWǥ2)+XʤоŬ^wJ3pOg?ON7`0 >ʰ$Y%=^瞓Mg(q2tA9}K+cg%J~>`W=@cOeǤ],H/ WnޓQ+SؕR"ݓ;nFpMywA# AVȯFe{r|SRZyESg3S6e➱5SR *#7YRr:#g.]#gd"UiNqCj-SNVJZQ_[ך)MʪPtV2J.HɲzxQ2xY+yIwsN¦ty81ǕVeUH`~y9&5 CǍza#]~ z,~ܺPeVȟG%3ZȒKɔu'zl /?O^F8]d4 [vT:ȵ[ecȣϏJ0r5zJR0 CCʞS%od2vq569gޫԙv_QG>}DLpB(Vb-Ui˧ЅdcΙ*ݑ_X"+fߋ;>M-9,q9Q祒Z(Ϻd,#EڐWQC9{hYx嶼=rL.=']f& `0tl`vXVɒc9gUNY{\N䝓7n(NuʔF c右f.J$oƥ{wȥ`NF1*ؓX^$EAMh0 DĔgܗG? ..Pgصrl<'57eºS[dso}(9i@ޯ |g( &K74SgƝ")[}XޟK^]r/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G׬[ʝWF.^.5.Yk+x.^K<`|{EDl3rm_-\ؿSQ۷hJ9_tk;Z_Q :E ?y2z C"-͆ 3>*u6ofu0 0 0 KI@Krjskiw=sq@d߸v@um]_,qo/ﺖLU`P{+bd.>caaa)-<]'I,(?Ƅ"!A !0 0 0 ð6lSq0 0 0 0,MבwW_}e0 0 0 0-+W=0 0 0 ðcr/ <0 0 0 `*2ߪ0 0 0 0Xmgw?R0 0 0 0 [&__-%tEXtdate:create2014-03-23T13:31:17-04:00~%tEXtdate:modify2014-03-23T13:31:06-04:00e)IENDB`pymappergui-debian/.gitignore0000644000175000017500000000047312437421545015633 0ustar tiagotiago*.py[cod] # C extensions *.so # Packages *.egg *.egg-info dist build eggs parts bin var sdist develop-eggs .installed.cfg lib lib64 __pycache__ # Installer logs pip-log.txt # Unit test / coverage reports .coverage .tox nosetests.xml # Translations *.mo # Mr Developer .mr.developer.cfg .project .pydevproject pymappergui-debian/pyMapperGUI.py0000755000175000017500000006531212437421545016365 0ustar tiagotiago#! /usr/bin/env python # encoding: utf-8 """ Copyright 2014 Tiago Bortoletto Vaz This file is part of pyMapperGUI. pyMapperGUI is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. pyMapperGUI 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 pyMapperGUI. If not, see . """ import wx import netifaces from wx.lib.mixins.inspection import InspectionMixin from pymappergui.mymapper import MyMapper # float spin for setting min/max values: try: from agw import floatspin as FS except ImportError: # if it's not there locally, try the wxPython lib. import wx.lib.agw.floatspin as FS from pymappergui.panels import * from pymappergui.dialogs import * from pymappergui.storage import * import os from distutils.sysconfig import get_python_lib class MyFrame(wx.Frame): def __init__(self, parent, title, size): wx.Frame.__init__(self, parent, -1, title=title, size=size) self.SetMinSize((1300, 600)) # connections and expr preset files self.currentFile = None self.currentPresetFile = None # mapper object self.my_mapper = mymapper.MyMapper() self.modes_list = self.my_mapper.modes_dict.keys() self.boundaries_list = self.my_mapper.boundaries_dict.keys() # storage object self.mapper_storage = Storage() # network interfaces self.ifaces = netifaces.interfaces() ############### widgets & bindings ########################################3 ## main panel self.main_panel = wx.Panel(self) ## connections panel self.connections_panel = ConnectionsPanel(parent=self.main_panel) ## signal trees panels self.sources_panel = MyTreeList(parent=self.main_panel, id=-1, which="sources") self.destinations_panel = MyTreeList(parent=self.main_panel, id=-1, which="destinations") ## Static texts sources_label = wx.StaticText(self.main_panel, -1, " Sources ") sources_label.SetFont(wx.Font(14, wx.SWISS, wx.NORMAL, wx.BOLD)) sources_label.SetForegroundColour("grey") destinations_label = wx.StaticText(self.main_panel, -1, " Destinations ") destinations_label.SetFont(wx.Font(14, wx.SWISS, wx.NORMAL, wx.BOLD)) destinations_label.SetForegroundColour("grey") conn_label = wx.StaticText(self.main_panel, -1, "Connections") conn_label.SetFont(wx.Font(14, wx.SWISS, wx.NORMAL, wx.BOLD)) conn_label.SetForegroundColour("grey") ## toolbar installed_icons_folder = get_python_lib() + "/pymappergui/images/" if os.path.exists(installed_icons_folder): icons_folder = installed_icons_folder else: icons_folder = "pymappergui/images/" self.toolbar = self.CreateToolBar(wx.TB_FLAT) self.toolbar.SetToolBitmapSize((22, 22)) # sets icon size load_ico = wx.Bitmap(icons_folder + 'document-open.png') load_tool = self.toolbar.AddSimpleTool(wx.ID_ANY, load_ico, "Open state file", "Open a state file") self.Bind(wx.EVT_MENU, self.OnOpen, load_tool) save_ico = wx.Bitmap(icons_folder + 'document-save-as.png') save_tool = self.toolbar.AddSimpleTool(wx.ID_ANY, save_ico, "Save state file", "Saves the current connections") self.Bind(wx.EVT_MENU, self.OnSave, save_tool) self.toolbar.AddSeparator() ### refresh all refresh_ico = wx.Bitmap(icons_folder + 'view-refresh.png') refresh_tool = self.toolbar.AddSimpleTool(wx.ID_ANY, refresh_ico, "Refresh", "Refresh all devices, signals and connections.") self.Bind(wx.EVT_MENU, self.OnRefresh, refresh_tool) ### disconnect all disconnect_all_ico = wx.Bitmap(icons_folder + 'process-stop.png') disconnect_all_tool = self.toolbar.AddSimpleTool(wx.ID_ANY, disconnect_all_ico, "Disconnect all", "Disconnects everything!") self.Bind(wx.EVT_MENU, self.OnDisconnectAll, disconnect_all_tool) self.toolbar.AddSeparator() # connections setup self.mode_choice = wx.Choice(self.toolbar, -1, (100, 50), choices=self.modes_list) self.mode_choice.SetToolTipString('Set the connection mode') self.mode_choice.Disable() self.toolbar.AddControl(self.mode_choice) self.Bind(wx.EVT_CHOICE, self.OnSetMode, self.mode_choice) # expression for mapping self.expression_y = wx.StaticText(self.toolbar, -1, " y = ") #self.expression_input = wx.TextCtrl(self.toolbar, -1, "", style=wx.TE_PROCESS_ENTER, size=(220, 26)) #self.expr_list = ['x - x{-1}', 'x + y{-1}', 'x * 0.01 + y{-1} * 0.99', 'y{-1} + 1'] self.expr_list = [] self.expression_input = wx.ComboBox(self.toolbar, -1, "", size=(220, 26), choices=self.expr_list, style=wx.CB_DROPDOWN | wx.TE_PROCESS_ENTER) self.expression_input.SetToolTipString('Type ENTER after writing your new expression') self.Bind(wx.EVT_TEXT_ENTER, self.OnSetExpr, self.expression_input) self.expression_y.Disable() self.expression_input.Disable() self.toolbar.AddControl(self.expression_y) self.toolbar.AddControl(self.expression_input) # edit other connection parameters from a dialog self.edit_tool = wx.Button(self.toolbar, -1, "Edit all...", size=(60, 26)) self.edit_tool.SetToolTipString('Edit connection parameters...') self.Bind(wx.EVT_BUTTON, self.OnEdit, self.edit_tool) # mute_ico = wx.Bitmap(icons_folder + 'audio-volume-muted-blocked-panel.png') self.mute_tool = wx.ToggleButton(self.toolbar, -1, "Mute", size=(50, 26)) self.mute_tool.SetToolTipString('Mute/Unmute a connection') self.mute_tool.Disable() self.Bind(wx.EVT_TOGGLEBUTTON, self.OnMute, self.mute_tool) self.toolbar.AddControl(self.mute_tool) self.arrow_range = wx.StaticText(self.toolbar, -1, " - ") self.arrow_range.Disable() self.arrow_range2 = wx.StaticText(self.toolbar, -1, " - ") self.arrow_range2.Disable() # source / dest range input self.toolbar.AddSeparator() self.src_range_label = wx.StaticText(self.toolbar, -1, " Src. range: ") self.src_range_label.Disable() self.src_range_min = FS.FloatSpin(self.toolbar, -1, increment=0.01, agwStyle=FS.FS_CENTRE, size=(100, 26)) self.src_range_min.Disable() self.src_range_min.SetFormat("%f") self.src_range_min.SetDigits(2) self.src_range_max = FS.FloatSpin(self.toolbar, -1, increment=0.01, agwStyle=FS.FS_CENTRE, size=(100, 26)) self.src_range_max.Disable() self.src_range_max.SetFormat("%f") self.src_range_max.SetDigits(2) self.Bind(FS.EVT_FLOATSPIN, self.OnSetSourceMin, self.src_range_min) self.Bind(FS.EVT_FLOATSPIN, self.OnSetSourceMax, self.src_range_max) self.toolbar.AddControl(self.src_range_label) self.toolbar.AddControl(self.src_range_min) self.toolbar.AddControl(self.arrow_range) self.toolbar.AddControl(self.src_range_max) self.dest_range_label = wx.StaticText(self.toolbar, -1, " Dest. range: ") self.dest_range_label.Disable() self.dest_range_min = FS.FloatSpin(self.toolbar, -1, increment=0.01, agwStyle=FS.FS_CENTRE, size=(100, 26)) self.dest_range_min.Disable() self.dest_range_min.SetFormat("%f") self.dest_range_min.SetDigits(2) self.dest_range_max = FS.FloatSpin(self.toolbar, -1, increment=0.01, agwStyle=FS.FS_CENTRE, size=(100, 26)) self.dest_range_max.Disable() self.dest_range_max.SetFormat("%f") self.dest_range_max.SetDigits(2) self.Bind(FS.EVT_FLOATSPIN, self.OnSetDestMin, self.dest_range_min) self.Bind(FS.EVT_FLOATSPIN, self.OnSetDestMax, self.dest_range_max) self.toolbar.AddControl(self.dest_range_label) self.toolbar.AddControl(self.dest_range_min) self.toolbar.AddControl(self.arrow_range2) self.toolbar.AddControl(self.dest_range_max) self.toolbar.AddSeparator() self.toolbar.AddControl(self.edit_tool) ## statusbar self.statusbar = self.CreateStatusBar() ## menubar menu_bar = wx.MenuBar() menu1 = wx.Menu() menu1.Append(wx.ID_OPEN, "Open\tCtrl+O", "Open state file...") self.Bind(wx.EVT_MENU, self.OnOpen, id=wx.ID_OPEN) menu1.Append(wx.ID_SAVE, "Save\tCtrl+S", "Save current state file") self.Bind(wx.EVT_MENU, self.OnSave, id=wx.ID_SAVE) menu1.Append(wx.ID_SAVEAS, "Save as...\tShift+Ctrl+S", "Save state file") self.Bind(wx.EVT_MENU, self.OnSaveAs, id=wx.ID_SAVEAS) menu1.AppendSeparator() menu1.Append(wx.ID_EXIT, "&Close", "Close application") self.Bind(wx.EVT_MENU, self.OnQuit, id=wx.ID_EXIT) menu_bar.Append(menu1, "&File") menu2 = wx.Menu() submenu_ifaces = wx.Menu() submenu_idx = 2011 for i in self.ifaces: submenu_ifaces.Append(submenu_idx, i, "", wx.ITEM_RADIO) self.Bind(wx.EVT_MENU, self.OnIfaceMenu, id=submenu_idx) submenu_idx += 1 menu2.AppendMenu(201, "Network interfaces", submenu_ifaces) menu2.Append(202, "Add OSC device", "Add OSC device") menu_bar.Append(menu2, "&Options") self.Bind(wx.EVT_MENU, self.OnAddOSCDevice, id=202) menu_expression = wx.Menu() menu_expression.Append(301, "Load preset...", "Open expression preset file...") self.Bind(wx.EVT_MENU, self.OnOpenPreset, id=301) menu_expression.Append(302, "Save preset...", "Save current expressions as a preset...") self.Bind(wx.EVT_MENU, self.OnSavePreset, id=302) menu_expression.Append(303, "Save preset as...", "Save current expressions as a new preset...") self.Bind(wx.EVT_MENU, self.OnSaveAsPreset, id=303) menu_bar.Append(menu_expression, "&Expressions") menu3 = wx.Menu() menu3.Append(401, "&Docs", "Documentation") menu3.Append(402, "&About", "About") menu_bar.Append(menu3, "&Help",) self.Bind(wx.EVT_MENU, self.OnAboutBox, id=402) self.SetMenuBar(menu_bar) ## source/destination search self.sources_search = wx.SearchCtrl(self.main_panel, size=(240, 21), style=wx.TE_PROCESS_ENTER) self.destinations_search = wx.SearchCtrl(self.main_panel, size=(240, 21), style=wx.TE_PROCESS_ENTER) self.Bind(wx.EVT_TEXT, self.OnSourcesSearch, self.sources_search) self.Bind(wx.EVT_TEXT, self.OnDestinationsSearch, self.destinations_search) ## expand/collapse controls expand_icon = wx.Bitmap(icons_folder + 'expand.png') collapse_icon = wx.Bitmap(icons_folder + 'collapse.png') ### expand all src expand_src_button = wx.BitmapButton(self.main_panel, -1, expand_icon, (16, 16), (expand_icon.GetWidth() + 5, expand_icon.GetHeight() + 5)) expand_src_button.SetToolTipString("Expand all") self.Bind(wx.EVT_BUTTON, self.sources_panel.OnExpand, expand_src_button) ### expand all dest expand_dest_button = wx.BitmapButton(self.main_panel, -1, expand_icon, (16, 16), (expand_icon.GetWidth() + 5, expand_icon.GetHeight() + 5)) expand_dest_button.SetToolTipString("Expand all") self.Bind(wx.EVT_BUTTON, self.destinations_panel.OnExpand, expand_dest_button) ### collapse all src collapse_src_button = wx.BitmapButton(self.main_panel, -1, collapse_icon, (16, 16), (collapse_icon.GetWidth() + 5, collapse_icon.GetHeight() + 18)) collapse_src_button.SetToolTipString("Collapse all") self.Bind(wx.EVT_BUTTON, self.sources_panel.OnCollapse, collapse_src_button) ### collapse all dest collapse_dest_button = wx.BitmapButton(self.main_panel, -1, collapse_icon, (16, 16), (collapse_icon.GetWidth() + 5, collapse_icon.GetHeight() + 18)) collapse_dest_button.SetToolTipString("Collapse all") self.Bind(wx.EVT_BUTTON, self.destinations_panel.OnCollapse, collapse_dest_button) ################ layout ######################################### ## sizers main_box = wx.BoxSizer(wx.VERTICAL) h_box = wx.BoxSizer(wx.HORIZONTAL) main_box.Add(wx.StaticLine(self.main_panel, ), 0, wx.ALL | wx.EXPAND, 5) main_box.Add(h_box, 1, wx.EXPAND) sources_label_box = wx.BoxSizer(wx.HORIZONTAL) destinations_label_box = wx.BoxSizer(wx.HORIZONTAL) connections_label_box = wx.BoxSizer(wx.HORIZONTAL) sources_label_box.Add(sources_label, 1, wx.ALL | wx.ALIGN_CENTER_HORIZONTAL) sources_label_box.Add(expand_src_button, 0, wx.ALL | wx.ALIGN_CENTER_HORIZONTAL) sources_label_box.Add(collapse_src_button, 0, wx.ALL | wx.ALIGN_CENTER_HORIZONTAL) sources_label_box.Add((10, 10)) sources_label_box.Add(self.sources_search, 1, wx.ALL | wx.ALIGN_CENTER_HORIZONTAL) connections_label_box.Add(conn_label, 1, wx.ALL | wx.ALIGN_CENTER_HORIZONTAL) destinations_label_box.Add(destinations_label, 1, wx.ALL | wx.ALIGN_CENTER_HORIZONTAL) destinations_label_box.Add(expand_dest_button, 0, wx.ALL | wx.ALIGN_CENTER_HORIZONTAL) destinations_label_box.Add(collapse_dest_button, 0, wx.ALL | wx.ALIGN_CENTER_HORIZONTAL) destinations_label_box.Add((10, 10)) destinations_label_box.Add(self.destinations_search, 1, wx.ALL | wx.ALIGN_CENTER_HORIZONTAL) ## trees col1_box = wx.BoxSizer(wx.VERTICAL) col2_box = wx.BoxSizer(wx.VERTICAL) col3_box = wx.BoxSizer(wx.VERTICAL) h_box.Add(col1_box, 2, wx.ALL | wx.EXPAND) h_box.Add(col2_box, 1, wx.ALL | wx.EXPAND) h_box.Add(col3_box, 2, wx.ALL | wx.EXPAND) ## labels sizer col1_box.Add(sources_label_box, 0, wx.ALL | wx.ALIGN_CENTER_HORIZONTAL) col1_box.Add((5, 5)) col2_box.Add(connections_label_box, 0, wx.ALL | wx.ALIGN_CENTER_HORIZONTAL) col2_box.Add((5, 5)) col3_box.Add(destinations_label_box, 0, wx.ALL | wx.ALIGN_CENTER_HORIZONTAL) col3_box.Add((5, 5)) ## trees sizer col1_box.Add(self.sources_panel, 1, wx.EXPAND) col2_box.Add(self.connections_panel, 1, wx.EXPAND) col3_box.Add(self.destinations_panel, 1, wx.EXPAND) self.main_panel.SetSizerAndFit(main_box) # mapper poll self.timer = wx.Timer(self) self.Bind(wx.EVT_TIMER, self.OnTimer) self.timer.Start(milliseconds=1000, oneShot=False) self.Centre() self.Show() def OnSourcesSearch(self, event): text = event.GetString() root = self.sources_panel.tree.GetRootItem() item = self.sources_panel.GetItemByLabel(text, root) self.sources_panel.tree.EnsureVisible(item) try: self.sources_panel.tree.SelectItem(item) except: pass #FIXME: do something def OnDestinationsSearch(self, event): text = event.GetString() root = self.destinations_panel.tree.GetRootItem() item = self.destinations_panel.GetItemByLabel(text, root) self.destinations_panel.tree.EnsureVisible(item) try: self.destinations_panel.tree.SelectItem(item) except: pass #FIXME: do something def OnMute(self, event): if self.mute_tool.GetValue() is True: is_muted = True else: is_muted = False self.my_mapper.Modify(self.sources_panel.GetSignalAddress(), self.destinations_panel.GetSignalAddress(), options={'muted': is_muted}) def OnEdit(self, event): if len(self.my_mapper.getConnections()) == 0: wx.MessageBox('No connection found', 'Info', wx.OK | wx.ICON_ERROR) else: dlg = EditConnections(self, -1, "Edit connection parameters", size=(450, 300), #style=wx.CAPTION | wx.SYSTEM_MENU | wx.THICK_FRAME, style=wx.DEFAULT_DIALOG_STYLE, # & ~wx.CLOSE_BOX, useMetal=False, ) dlg.CenterOnScreen() # this does not return until the dialog is closed. val = dlg.ShowModal() dlg.Destroy() def OnSetExpr(self, event): expression = 'y=' + self.expression_input.GetValue() self.my_mapper.Modify(self.sources_panel.GetSignalAddress(), self.destinations_panel.GetSignalAddress(), options={'expression': str(expression)}) def OnSetMode(self, event): mode_str = event.GetString() mode_mapper_index = self.my_mapper.modes_dict[mode_str] self.my_mapper.Modify(self.sources_panel.GetSignalAddress(), self.destinations_panel.GetSignalAddress(), options={'mode': mode_mapper_index}) if mode_mapper_index == self.my_mapper.mo_expression: self.expression_input.Enable() self.expression_y.Enable() # self.set_expr_tool.Enable() else: self.expression_input.Disable() self.expression_y.Disable() # self.set_expr_tool.Disable() # update expression after changing mode connection_data = self.my_mapper.getConnectionBySignalFullNames(self.sources_panel.GetSignalAddress(), self.destinations_panel.GetSignalAddress()) self.expression_input.SetValue(connection_data["expression"].split('=')[1]) def OnSetSourceMin(self, event): f = event.GetEventObject().GetValue() print f self.my_mapper.Modify(self.sources_panel.GetSignalAddress(), self.destinations_panel.GetSignalAddress(), options={'src_min': f}) def OnSetSourceMax(self, event): f = event.GetEventObject().GetValue() print f self.my_mapper.Modify(self.sources_panel.GetSignalAddress(), self.destinations_panel.GetSignalAddress(), options={'src_max': f}) def OnSetDestMin(self, event): f = event.GetEventObject().GetValue() self.my_mapper.Modify(self.sources_panel.GetSignalAddress(), self.destinations_panel.GetSignalAddress(), options={'dest_min': f}) def OnSetDestMax(self, event): f = event.GetEventObject().GetValue() self.my_mapper.Modify(self.sources_panel.GetSignalAddress(), self.destinations_panel.GetSignalAddress(), options={'dest_max': f}) def OnAboutBox(self, e): description = """PyMapperGUI is a cross-platform graphical interface for managing libmapper sessions (http://libmapper.github.io/)""" licence = """PyMapperGUI is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. PyMapper 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 PyMapper; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA""" info = wx.AboutDialogInfo() # info.SetIcon(wx.Icon('pymapper.png', wx.BITMAP_TYPE_PNG)) info.SetName('PyMapperGUI') info.SetVersion('1.0beta1') info.SetDescription(description) info.SetCopyright('(C) 2014 Tiago Bortoletto Vaz ') info.SetWebSite('https://github.com/tiagovaz/pymapper') info.SetLicence(licence) #info.AddDeveloper('Tiago Bortoletto Vaz') #info.AddDocWriter('') #info.AddArtist('') #info.AddTranslator('') wx.AboutBox(info) def OnAddOSCDevice(self, evt): dlg = AddOSCDevice(self, -1, "Sample Dialog", size=(350, 200), #style=wx.CAPTION | wx.SYSTEM_MENU | wx.THICK_FRAME, style=wx.DEFAULT_DIALOG_STYLE, # & ~wx.CLOSE_BOX, useMetal=False, ) dlg.CenterOnScreen() # this does not return until the dialog is closed. val = dlg.ShowModal() #FIXME: broken if val == wx.ID_OK: self.t = self.my_mapper.createDevice("test") dlg.Destroy() def RefreshAll(self): wx.CallAfter(self.sources_panel.RefreshAll) wx.CallAfter(self.destinations_panel.RefreshAll) # wx.CallAfter(self.sources_panel.ExpandAll) # wx.CallAfter(self.destinations_panel.ExpandAll) self.redraw() # redraw the connections # try to call inside a Timer def redraw(self): wx.CallAfter(self.connections_panel.Refresh) def OnTimer(self, event): statusbar_text = str(len(self.my_mapper.getConnections())) + " connection(s)" self.statusbar.SetStatusText(statusbar_text) self.RefreshAll() self.my_mapper.poll(10) def OnSaveAs(self, event): wildcard = "PyMapper file (.pym)|*.pym" dlg = wx.FileDialog(self, "Save file as...", os.path.expanduser("~"), "connections.pym", wildcard=wildcard, style=wx.FD_SAVE) if dlg.ShowModal() == wx.ID_OK: path = dlg.GetPath() self.currentFile = path # useful for OnSave() self.SetTitle("pyMapper - %s" % path) f = open(path, "w") f.write(str(self.mapper_storage.serialise(self.my_mapper.mon, self.my_mapper.getAllDevices()))) f.close() dlg.Destroy() def OnSave(self, event): if self.currentFile == None: self.OnSaveAs(event) else: f = open(self.currentFile, "w") f.write(str(self.mapper_storage.serialise(self.my_mapper.mon, self.my_mapper.getAllDevices()))) f.close() def OnOpen(self, event): wildcard = "pyMapper file (.pym)|*.pym" dlg = wx.FileDialog(self, "Open pyMapper file...", os.path.expanduser("~"), wildcard=wildcard, style=wx.FD_OPEN) if dlg.ShowModal() == wx.ID_OK: path = dlg.GetPath() if path == "": return self.currentFile = path self.SetTitle("pyMapper - %s" % os.path.split(path)[1]) f = open(path, "r") text = f.read() f.close() devices_list = self.my_mapper.getInputOutputDevices() self.mapper_storage.deserialise(self.my_mapper.mon, text, devices_list) dlg.Destroy() def OnOpenPreset(self, event): wildcard = "pyMapper file (.pre)|*.pre" dlg = wx.FileDialog(self, "Open preset file...", os.path.expanduser("~"), wildcard=wildcard, style=wx.FD_OPEN) if dlg.ShowModal() == wx.ID_OK: path = dlg.GetPath() if path == "": return self.currentPresetFile = path self.SetTitle("pyMapper - %s" % os.path.split(path)[1]) f = open(path, "r") text = f.read() f.close() self.expr_list = eval(text) self.expression_input.Clear() self.expression_input.AppendItems(self.expr_list) dlg.Destroy() def OnSavePreset(self, event): if self.currentPresetFile == None: self.OnSaveAsPreset(event) else: f = open(self.currentPresetFile, "w") f.write(str(self.expr_list)) f.close() def OnSaveAsPreset(self, event): wildcard = "PyMapper expression preset file (.pre)|*.pre" dlg = wx.FileDialog(self, "Save file as...", os.path.expanduser("~"), "expressions.pre", wildcard=wildcard, style=wx.FD_SAVE) if dlg.ShowModal() == wx.ID_OK: path = dlg.GetPath() self.currentFile = path # useful for OnSave() self.SetTitle("pyMapper - %s" % path) f = open(path, "w") f.write(str(self.expr_list)) f.close() dlg.Destroy() def OnDelete(self, event): pass def OnConnect(self, event): self.my_mapper.setLink("/" + self.sources_panel.GetSignalAddress().split("/")[1], "/" + self.destinations_panel.GetSignalAddress().split("/")[1], {}) self.my_mapper.Connect(self.sources_panel.GetSignalAddress(), self.destinations_panel.GetSignalAddress()) self.connections_panel.DrawConnectionsLines() def OnDisconnect(self, event): self.my_mapper.Disconnect(self.sources_panel.GetSignalAddress(), self.destinations_panel.GetSignalAddress()) self.connections_panel.DrawConnectionsLines() def OnDisconnectAll(self, event): for c in self.my_mapper.getConnections(): self.my_mapper.Disconnect(c["src_name"], c["dest_name"]) self.connections_panel.DrawConnectionsLines() def OnRefresh(self, event): self.RefreshAll() def OnExpandAll(self, event): self.sources_panel.ExpandAll() self.destinations_panel.ExpandAll() def OnCollapseAll(self, event): #FIXME: for some reason it doesnt work :\ self.sources_panel.CollapseAll() self.destinations_panel.CollapseAll() def OnIfaceMenu(self, event): e = event.GetEventObject() i = event.GetId() self.my_mapper.setNetworkInterface(iface=str(e.GetLabel(i))) #FIXME: doesn't refresh properly def OnQuit(self, event): self.Close(True) class TestApp(wx.App, InspectionMixin): def OnInit(self): self.Init() mainFrame = MyFrame(None, title="pyMapperGUI") self.SetTopWindow(mainFrame) mainFrame.Show() return 1 #app = TestApp(0) #app.MainLoop() app = wx.App(False) frame = MyFrame(None, title="pyMapperGUI", size=(1300, 600)) app.MainLoop()