├── .classpath ├── .gitignore ├── .project ├── .settings └── org.eclipse.jdt.core.prefs ├── LICENSE ├── README.md ├── pdp5.zip └── pdp5 ├── .classpath ├── .project ├── data └── .keep ├── examples └── HelloPd │ ├── AndroidManifest.xml │ ├── HelloPd.pde │ └── data │ └── test.tar ├── lib ├── armeabi-v7a │ ├── libbob_tilde.so │ ├── libbonk_tilde.so │ ├── libchoice.so │ ├── libexpr.so │ ├── libexpr_tilde.so │ ├── libfexpr_tilde.so │ ├── libfiddle_tilde.so │ ├── libloop_tilde.so │ ├── liblrshift_tilde.so │ ├── libpd.so │ ├── libpdnative.so │ ├── libpdnativeopensl.so │ ├── libpique.so │ ├── libsigmund_tilde.so │ └── libstdout.so ├── armeabi │ ├── libbob_tilde.so │ ├── libbonk_tilde.so │ ├── libchoice.so │ ├── libexpr.so │ ├── libexpr_tilde.so │ ├── libfexpr_tilde.so │ ├── libfiddle_tilde.so │ ├── libloop_tilde.so │ ├── liblrshift_tilde.so │ ├── libpd.so │ ├── libpdnative.so │ ├── libpdnativeopensl.so │ ├── libpique.so │ ├── libsigmund_tilde.so │ └── libstdout.so ├── commons-compress-1.12.jar ├── libpd.jar ├── linux-armv6hf │ └── libpdnative.so ├── linux32 │ ├── .keep │ └── libportaudio.so ├── linux64 │ ├── .keep │ ├── libpdnative.so │ └── libportaudio.so ├── macosx │ ├── .keep │ ├── libpdnative.jnilib │ └── libportaudio.2.dylib ├── windows32 │ ├── .keep │ └── pthreadGC2.dll ├── windows64 │ ├── .keep │ └── pthreadGC2.dll └── x86 │ ├── libbob_tilde.so │ ├── libbonk_tilde.so │ ├── libchoice.so │ ├── libexpr.so │ ├── libexpr_tilde.so │ ├── libfexpr_tilde.so │ ├── libfiddle_tilde.so │ ├── libloop_tilde.so │ ├── liblrshift_tilde.so │ ├── libpd.so │ ├── libpdnative.so │ ├── libpdnativeopensl.so │ ├── libpique.so │ ├── libsigmund_tilde.so │ └── libstdout.so ├── resources ├── README.md ├── build.properties ├── build.xml ├── code │ ├── ExampleTaglet.class │ ├── ExampleTaglet.java │ ├── ant-contrib-1.0b3.jar │ └── doc.sh ├── library.properties └── stylesheet.css ├── src └── org │ └── puredata │ └── processing │ └── PureData.java └── web ├── index.html └── stylesheet.css /.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | bin 2 | tmp 3 | distribution 4 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | PureDataP5 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=1.8 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 11 | org.eclipse.jdt.core.compiler.source=1.8 12 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Lesser General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | {description} 294 | Copyright (C) {year} {fullname} 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License along 307 | with this program; if not, write to the Free Software Foundation, Inc., 308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 | 310 | Also add information on how to contact you by electronic and paper mail. 311 | 312 | If the program is interactive, make it output a short notice like this 313 | when it starts in an interactive mode: 314 | 315 | Gnomovision version 69, Copyright (C) year name of author 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 | This is free software, and you are welcome to redistribute it 318 | under certain conditions; type `show c' for details. 319 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate 321 | parts of the General Public License. Of course, the commands you use may 322 | be called something other than `show w' and `show c'; they could even be 323 | mouse-clicks or menu items--whatever suits your program. 324 | 325 | You should also get your employer (if you work as a programmer) or your 326 | school, if any, to sign a "copyright disclaimer" for the program, if 327 | necessary. Here is a sample; alter the names: 328 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 | 332 | {signature of Ty Coon}, 1 April 1989 333 | Ty Coon, President of Vice 334 | 335 | This General Public License does not permit incorporating your program into 336 | proprietary programs. If your program is a subroutine library, you may 337 | consider it more useful to permit linking proprietary applications with the 338 | library. If this is what you want to do, use the GNU Lesser General 339 | Public License instead of this License. 340 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Tentative Processing support for libpd 2 | 3 | **This library is still very experimental; proceed at your own risk.** 4 | 5 | The directory PureDataP5 contains the source code and dependencies, configured 6 | for development on Mac OS. You won't need to look at this unless you want to 7 | participate in the development of this library. 8 | 9 | If you just want to use libpd with Processing, then you can unpack the file 10 | pdp5.zip into the libraries folder of Processing. On my Mac, that folder is 11 | Documents/Processing/libraries. 12 | 13 | -------------------------------------------------------------------------------- /pdp5.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5.zip -------------------------------------------------------------------------------- /pdp5/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /pdp5/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | processing-library-template 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /pdp5/data/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/data/.keep -------------------------------------------------------------------------------- /pdp5/examples/HelloPd/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | android:theme="@android:style/Theme.NoTitleBar"> -------------------------------------------------------------------------------- /pdp5/examples/HelloPd/HelloPd.pde: -------------------------------------------------------------------------------- 1 | /** 2 | * A sample Processing applet using libpd, illustrating all major features. 3 | * 4 | * Based on RJ Marsan's YayProcessingPD (https://github.com/rjmarsan/YayProcessingPD). 5 | * 6 | * @author Peter Brinkmann (peter.brinkmann@gmail.com) 7 | */ 8 | 9 | import org.puredata.processing.PureData; 10 | 11 | PureData pd; 12 | 13 | void setup() { 14 | fullScreen(); 15 | ellipseMode(CENTER); 16 | pd = new PureData(this, 44100, 0, 2); 17 | pd.unpackAndOpenPatch("test.tar", "test.pd"); 18 | // pd.subscribe("foo"); // Uncomment if you want to receive messages sent to the receive symbol "foo" in Pd. 19 | pd.start(); 20 | } 21 | 22 | void draw() { 23 | background(0); 24 | ellipse(mouseX, mouseY, 20, 20); 25 | pd.sendFloat("pitch", (float)mouseX / (float)width); // Send float message to symbol "pitch" in Pd. 26 | pd.sendFloat("volume", (float)mouseY / (float)height); 27 | } 28 | 29 | /* 30 | // Implement methods like the following if you want to receive messages from Pd. 31 | // You'll also need to subscribe to receive symbols you're interested if you want 32 | // to receive messages. 33 | // 34 | // Note that invocations of these methods will occur before the draw method, and 35 | // so you can't use any graphics commands in here. 36 | 37 | void pdPrint(String s) { 38 | // Handle string s, printed by Pd 39 | } 40 | 41 | void receiveBang(String source) { 42 | // Handle bang sent to symbol source in Pd 43 | } 44 | 45 | void receiveFloat(String source, float x) { 46 | // Handle float x sent to symbol source in Pd 47 | } 48 | 49 | void receiveSymbol(String source, String sym) { 50 | // Handle symbol sym sent to symbol source in Pd 51 | } 52 | */ 53 | -------------------------------------------------------------------------------- /pdp5/examples/HelloPd/data/test.tar: -------------------------------------------------------------------------------- 1 | test.pd000644 000765 000024 00000001405 13011514423 013476 0ustar00brinkmannstaff000000 000000 #N canvas 689 132 480 414 10; 2 | #X obj 187 182 osc~; 3 | #X obj 162 159 mtof; 4 | #X obj 186 285 dac~; 5 | #X obj 203 232 *~ 0; 6 | #X obj 109 90 r pitch; 7 | #X obj 309 87 r volume; 8 | #X text 248 58 And this inlet controls volume; 9 | #X text 101 319 Audio finally comes out here and is played out your 10 | phones speakers; 11 | #X text 45 70 This inlet controls the pitch; 12 | #X obj 125 115 * 50; 13 | #X obj 139 136 + 40; 14 | #X obj 344 140 loadbang; 15 | #X obj 344 232 print; 16 | #X obj 344 209 realtime; 17 | #X obj 344 162 metro 1000; 18 | #X obj 344 185 t b b; 19 | #X connect 0 0 3 0; 20 | #X connect 1 0 0 0; 21 | #X connect 3 0 2 0; 22 | #X connect 3 0 2 1; 23 | #X connect 4 0 9 0; 24 | #X connect 5 0 3 1; 25 | #X connect 9 0 10 0; 26 | #X connect 10 0 1 0; 27 | #X connect 11 0 14 0; 28 | #X connect 13 0 12 0; 29 | #X connect 14 0 15 0; 30 | #X connect 15 0 13 0; 31 | #X connect 15 1 13 1; 32 | -------------------------------------------------------------------------------- /pdp5/lib/armeabi-v7a/libbob_tilde.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/armeabi-v7a/libbob_tilde.so -------------------------------------------------------------------------------- /pdp5/lib/armeabi-v7a/libbonk_tilde.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/armeabi-v7a/libbonk_tilde.so -------------------------------------------------------------------------------- /pdp5/lib/armeabi-v7a/libchoice.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/armeabi-v7a/libchoice.so -------------------------------------------------------------------------------- /pdp5/lib/armeabi-v7a/libexpr.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/armeabi-v7a/libexpr.so -------------------------------------------------------------------------------- /pdp5/lib/armeabi-v7a/libexpr_tilde.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/armeabi-v7a/libexpr_tilde.so -------------------------------------------------------------------------------- /pdp5/lib/armeabi-v7a/libfexpr_tilde.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/armeabi-v7a/libfexpr_tilde.so -------------------------------------------------------------------------------- /pdp5/lib/armeabi-v7a/libfiddle_tilde.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/armeabi-v7a/libfiddle_tilde.so -------------------------------------------------------------------------------- /pdp5/lib/armeabi-v7a/libloop_tilde.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/armeabi-v7a/libloop_tilde.so -------------------------------------------------------------------------------- /pdp5/lib/armeabi-v7a/liblrshift_tilde.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/armeabi-v7a/liblrshift_tilde.so -------------------------------------------------------------------------------- /pdp5/lib/armeabi-v7a/libpd.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/armeabi-v7a/libpd.so -------------------------------------------------------------------------------- /pdp5/lib/armeabi-v7a/libpdnative.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/armeabi-v7a/libpdnative.so -------------------------------------------------------------------------------- /pdp5/lib/armeabi-v7a/libpdnativeopensl.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/armeabi-v7a/libpdnativeopensl.so -------------------------------------------------------------------------------- /pdp5/lib/armeabi-v7a/libpique.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/armeabi-v7a/libpique.so -------------------------------------------------------------------------------- /pdp5/lib/armeabi-v7a/libsigmund_tilde.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/armeabi-v7a/libsigmund_tilde.so -------------------------------------------------------------------------------- /pdp5/lib/armeabi-v7a/libstdout.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/armeabi-v7a/libstdout.so -------------------------------------------------------------------------------- /pdp5/lib/armeabi/libbob_tilde.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/armeabi/libbob_tilde.so -------------------------------------------------------------------------------- /pdp5/lib/armeabi/libbonk_tilde.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/armeabi/libbonk_tilde.so -------------------------------------------------------------------------------- /pdp5/lib/armeabi/libchoice.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/armeabi/libchoice.so -------------------------------------------------------------------------------- /pdp5/lib/armeabi/libexpr.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/armeabi/libexpr.so -------------------------------------------------------------------------------- /pdp5/lib/armeabi/libexpr_tilde.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/armeabi/libexpr_tilde.so -------------------------------------------------------------------------------- /pdp5/lib/armeabi/libfexpr_tilde.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/armeabi/libfexpr_tilde.so -------------------------------------------------------------------------------- /pdp5/lib/armeabi/libfiddle_tilde.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/armeabi/libfiddle_tilde.so -------------------------------------------------------------------------------- /pdp5/lib/armeabi/libloop_tilde.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/armeabi/libloop_tilde.so -------------------------------------------------------------------------------- /pdp5/lib/armeabi/liblrshift_tilde.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/armeabi/liblrshift_tilde.so -------------------------------------------------------------------------------- /pdp5/lib/armeabi/libpd.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/armeabi/libpd.so -------------------------------------------------------------------------------- /pdp5/lib/armeabi/libpdnative.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/armeabi/libpdnative.so -------------------------------------------------------------------------------- /pdp5/lib/armeabi/libpdnativeopensl.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/armeabi/libpdnativeopensl.so -------------------------------------------------------------------------------- /pdp5/lib/armeabi/libpique.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/armeabi/libpique.so -------------------------------------------------------------------------------- /pdp5/lib/armeabi/libsigmund_tilde.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/armeabi/libsigmund_tilde.so -------------------------------------------------------------------------------- /pdp5/lib/armeabi/libstdout.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/armeabi/libstdout.so -------------------------------------------------------------------------------- /pdp5/lib/commons-compress-1.12.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/commons-compress-1.12.jar -------------------------------------------------------------------------------- /pdp5/lib/libpd.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/libpd.jar -------------------------------------------------------------------------------- /pdp5/lib/linux-armv6hf/libpdnative.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/linux-armv6hf/libpdnative.so -------------------------------------------------------------------------------- /pdp5/lib/linux32/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/linux32/.keep -------------------------------------------------------------------------------- /pdp5/lib/linux32/libportaudio.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/linux32/libportaudio.so -------------------------------------------------------------------------------- /pdp5/lib/linux64/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/linux64/.keep -------------------------------------------------------------------------------- /pdp5/lib/linux64/libpdnative.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/linux64/libpdnative.so -------------------------------------------------------------------------------- /pdp5/lib/linux64/libportaudio.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/linux64/libportaudio.so -------------------------------------------------------------------------------- /pdp5/lib/macosx/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/macosx/.keep -------------------------------------------------------------------------------- /pdp5/lib/macosx/libpdnative.jnilib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/macosx/libpdnative.jnilib -------------------------------------------------------------------------------- /pdp5/lib/macosx/libportaudio.2.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/macosx/libportaudio.2.dylib -------------------------------------------------------------------------------- /pdp5/lib/windows32/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/windows32/.keep -------------------------------------------------------------------------------- /pdp5/lib/windows32/pthreadGC2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/windows32/pthreadGC2.dll -------------------------------------------------------------------------------- /pdp5/lib/windows64/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/windows64/.keep -------------------------------------------------------------------------------- /pdp5/lib/windows64/pthreadGC2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/windows64/pthreadGC2.dll -------------------------------------------------------------------------------- /pdp5/lib/x86/libbob_tilde.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/x86/libbob_tilde.so -------------------------------------------------------------------------------- /pdp5/lib/x86/libbonk_tilde.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/x86/libbonk_tilde.so -------------------------------------------------------------------------------- /pdp5/lib/x86/libchoice.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/x86/libchoice.so -------------------------------------------------------------------------------- /pdp5/lib/x86/libexpr.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/x86/libexpr.so -------------------------------------------------------------------------------- /pdp5/lib/x86/libexpr_tilde.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/x86/libexpr_tilde.so -------------------------------------------------------------------------------- /pdp5/lib/x86/libfexpr_tilde.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/x86/libfexpr_tilde.so -------------------------------------------------------------------------------- /pdp5/lib/x86/libfiddle_tilde.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/x86/libfiddle_tilde.so -------------------------------------------------------------------------------- /pdp5/lib/x86/libloop_tilde.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/x86/libloop_tilde.so -------------------------------------------------------------------------------- /pdp5/lib/x86/liblrshift_tilde.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/x86/liblrshift_tilde.so -------------------------------------------------------------------------------- /pdp5/lib/x86/libpd.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/x86/libpd.so -------------------------------------------------------------------------------- /pdp5/lib/x86/libpdnative.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/x86/libpdnative.so -------------------------------------------------------------------------------- /pdp5/lib/x86/libpdnativeopensl.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/x86/libpdnativeopensl.so -------------------------------------------------------------------------------- /pdp5/lib/x86/libpique.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/x86/libpique.so -------------------------------------------------------------------------------- /pdp5/lib/x86/libsigmund_tilde.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/x86/libsigmund_tilde.so -------------------------------------------------------------------------------- /pdp5/lib/x86/libstdout.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/lib/x86/libstdout.so -------------------------------------------------------------------------------- /pdp5/resources/README.md: -------------------------------------------------------------------------------- 1 | ## How to install ##library.name## 2 | 3 | ### Install with the Contribution Manager 4 | 5 | Add contributed libraries by selecting the menu item _Sketch_ → _Import Library..._ → _Add Library..._ This will open the Contribution Manager, where you can browse for ##library.name##, or any other library you want to install. 6 | 7 | Not all available libraries have been converted to show up in this menu. If a library isn't there, it will need to be installed manually by following the instructions below. 8 | 9 | ### Manual Install 10 | 11 | Contributed libraries may be downloaded separately and manually placed within the `libraries` folder of your Processing sketchbook. To find (and change) the Processing sketchbook location on your computer, open the Preferences window from the Processing application (PDE) and look for the "Sketchbook location" item at the top. 12 | 13 | By default the following locations are used for your sketchbook folder: 14 | * For Mac users, the sketchbook folder is located inside `~/Documents/Processing` 15 | * For Windows users, the sketchbook folder is located inside `My Documents/Processing` 16 | 17 | Download ##library.name## from ##library.url## 18 | 19 | Unzip and copy the contributed library's folder into the `libraries` folder in the Processing sketchbook. You will need to create this `libraries` folder if it does not exist. 20 | 21 | The folder structure for library ##library.name## should be as follows: 22 | 23 | ``` 24 | Processing 25 | libraries 26 | ##library.name## 27 | examples 28 | library 29 | ##library.name##.jar 30 | reference 31 | src 32 | ``` 33 | 34 | Some folders like `examples` or `src` might be missing. After library ##library.name## has been successfully installed, restart the Processing application. 35 | 36 | ### Troubleshooting 37 | 38 | If you're having trouble, have a look at the [Processing Wiki](https://github.com/processing/processing/wiki/How-to-Install-a-Contributed-Library) for more information, or contact the author [Peter Brinkmann](https://github.com/nettoyeurny). 39 | -------------------------------------------------------------------------------- /pdp5/resources/build.properties: -------------------------------------------------------------------------------- 1 | # Create libraries for the Processing open source programming language and 2 | # environment (http://www.processing.org) 3 | # 4 | # Customize the build properties to make the ant-build-process work for your 5 | # environment. How? Please read the comments below. 6 | # 7 | # The default properties are set for OS X. Please refer to comments for Windows 8 | # settings. 9 | 10 | 11 | # Where is your Processing sketchbook located? 12 | # If you are not sure, check the sketchbook location in your Processing 13 | # application preferences. 14 | # ${user.home} points the compiler to your home directory. 15 | # For windows the default path to your sketchbook would be 16 | # ${user.home}/My Documents/Processing (make adjustments below) 17 | 18 | #sketchbook.location=${user.home}/My Documents/Processing 19 | sketchbook.location=${user.home}/Documents/Processing 20 | 21 | 22 | # Where are the jar files located that are required for compiling your library 23 | # such as e.g. core.jar? 24 | # By default the local classpath location points to folder libs inside Eclipse's 25 | # workspace (by default found in your home directory). 26 | # For Windows, the default path would be 27 | # ${user.home}/Documents/workspace/libs (make adjustments below) 28 | # For OS X,the following path will direct you into Processing's application 29 | # package, in case you put Processing inside your Applications folder. 30 | 31 | #classpath.local.location=${user.home}/Documents/workspace/libs 32 | classpath.local.location=/Applications/Processing.app/Contents/Java/core/library 33 | 34 | 35 | # Add all jar files that are required for compiling your project to the local 36 | # and project classpath. Use a comma as delimiter. These jar files must be 37 | # inside your classpath.local.location folder. 38 | 39 | classpath.local.include=core.jar 40 | 41 | 42 | # Add processing's libraries folder to the classpath. 43 | # If you don't need to include the libraries folder to your classpath, comment 44 | # out the following line. 45 | 46 | classpath.libraries.location=${sketchbook.location}/libraries 47 | 48 | 49 | # Set the java version that should be used to compile your library. 50 | 51 | java.target.version=1.7 52 | 53 | 54 | # Set the description of the Ant build.xml file. 55 | 56 | ant.description=Processing Library Ant build file. 57 | 58 | 59 | # Give your library a name. The name must not contain spaces or special 60 | # characters. 61 | 62 | project.name=PureData 63 | 64 | 65 | # The name as the user will see it. This can contain spaces and special 66 | # characters. 67 | 68 | project.prettyName=PureData for Processing 69 | 70 | 71 | # Use 'normal' or 'fast' as value for project.compile. 72 | # 'fast' will only compile the project into your sketchbook. 73 | # 'normal' will compile the distribution including the javadoc-reference and all 74 | # web-files (the compile process here takes longer). 75 | # All files compiled with project.compile=normal are stored in the distribution 76 | # folder. 77 | 78 | project.compile=normal 79 | 80 | 81 | # Set your name and URL, used for the web page and properties file. 82 | 83 | author.name=Peter Brinkmann 84 | author.url=https://github.com/nettoyeurny 85 | 86 | 87 | # Set the web page for your library. 88 | # This is NOT a direct link to where to download it. 89 | 90 | library.url=https://github.com/libpd/puredatap5 91 | 92 | 93 | # Set the category (or categories) of your library from the following list: 94 | # "3D" "Animation" "Compilations" "Data" 95 | # "Fabrication" "Geometry" "GUI" "Hardware" 96 | # "I/O" "Language" "Math" "Simulation" 97 | # "Sound" "Utilities" "Typography" "Video & Vision" 98 | # 99 | # If a value other than those listed is used, your library will listed as 100 | # "Other". Many categories must be comma-separated. 101 | 102 | library.categories=Sound 103 | 104 | 105 | # A short sentence (or fragment) to summarize the library's function. This will 106 | # be shown from inside the PDE when the library is being installed. Avoid 107 | # repeating the name of your library here. Also, avoid saying anything redundant 108 | # like mentioning that it's a library. This should start with a capitalized 109 | # letter, and end with a period. 110 | 111 | library.sentence=Pure Data for Processing. 112 | 113 | 114 | # Additional information suitable for the Processing website. The value of 115 | # 'sentence' always will be prepended, so you should start by writing the 116 | # second sentence here. If your library only works on certain operating systems, 117 | # mention it here. 118 | 119 | library.paragraph= 120 | 121 | 122 | # Set the source code repository for your project. 123 | # Recommendations for storing your source code online are GitHub or Google Code. 124 | 125 | source.host=GitHub 126 | source.url=https://github.com/libpd/puredatap5 127 | source.repository=https://github.com/libpd/puredatap5.git 128 | 129 | 130 | # The current version of your library. 131 | # This number must be parsable as an int. It increments once with each release. 132 | # This is used to compare different versions of the same library, and check if 133 | # an update is available. 134 | 135 | library.version=2 136 | 137 | 138 | # The version as the user will see it. 139 | 140 | library.prettyVersion=0.2 141 | 142 | 143 | # The min and max revision of Processing compatible with your library. 144 | # Note that these fields use the revision and not the version of Processing, 145 | # parsable as an int. For example, the revision number for 2.2.1 is 227. 146 | # You can find the revision numbers in the change log: https://raw.githubusercontent.com/processing/processing/master/build/shared/revisions.txt 147 | # Only use maxRevision (or minRevision), when your library is known to 148 | # break in a later (or earlier) release. Otherwise, use the default value 0. 149 | 150 | compatible.minRevision=0 151 | compatible.maxRevision=0 152 | 153 | 154 | # The platforms and Processing version that the library has been tested 155 | # against. This information is only used in the generated webpage. 156 | 157 | tested.platform=osx,android 158 | tested.processingVersion=3.0 159 | 160 | 161 | # Additional information for the generated webpage. 162 | 163 | library.copyright=(c) 2016 164 | library.dependencies=? 165 | library.keywords=? 166 | 167 | 168 | # Include javadoc references into your project's javadocs. 169 | 170 | javadoc.java.href=http://docs.oracle.com/javase/7/docs/api/ 171 | javadoc.processing.href=http://processing.org/reference/javadoc/core/ 172 | -------------------------------------------------------------------------------- /pdp5/resources/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | ${ant.description} 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | ${line} 81 | Building the Processing library ${project.name} ${library.version} 82 | ${line} 83 | src path ${project.src} 84 | bin path ${project.bin} 85 | classpath.local ${classpath.local.location} 86 | sketchbook ${sketchbook.location} 87 | java version ${java.target.version} 88 | ${line} 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | ${exampleDir} 342 | 348 | 349 | 355 | 356 | 357 | 358 | 359 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | ${line} 378 | Name ${project.name} 379 | Version ${library.prettyVersion} (${library.version}) 380 | Compiled ${project.compile} 381 | Sketchbook ${sketchbook.location} 382 | ${line} 383 | done, finished. 384 | ${line} 385 | 386 | 387 | 388 | 389 | 390 | -------------------------------------------------------------------------------- /pdp5/resources/code/ExampleTaglet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/resources/code/ExampleTaglet.class -------------------------------------------------------------------------------- /pdp5/resources/code/ExampleTaglet.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2002 Sun Microsystems, Inc. All Rights Reserved. 3 | * 4 | * Redistribution and use in source and binary forms, with or 5 | * without modification, are permitted provided that the following 6 | * conditions are met: 7 | * 8 | * -Redistributions of source code must retain the above copyright 9 | * notice, this list of conditions and the following disclaimer. 10 | * 11 | * -Redistribution in binary form must reproduce the above copyright 12 | * notice, this list of conditions and the following disclaimer in 13 | * the documentation and/or other materials provided with the 14 | * distribution. 15 | * 16 | * Neither the name of Sun Microsystems, Inc. or the names of 17 | * contributors may be used to endorse or promote products derived 18 | * from this software without specific prior written permission. 19 | * 20 | * This software is provided "AS IS," without a warranty of any 21 | * kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND 22 | * WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, 23 | * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY 24 | * EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY 25 | * DAMAGES OR LIABILITIES SUFFERED BY LICENSEE AS A RESULT OF OR 26 | * RELATING TO USE, MODIFICATION OR DISTRIBUTION OF THE SOFTWARE OR 27 | * ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE 28 | * FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, 29 | * SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER 30 | * CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF 31 | * THE USE OF OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN 32 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 33 | * 34 | * You acknowledge that Software is not designed, licensed or 35 | * intended for use in the design, construction, operation or 36 | * maintenance of any nuclear facility. 37 | */ 38 | 39 | import com.sun.tools.doclets.Taglet; 40 | import com.sun.javadoc.*; 41 | import java.util.Map; 42 | import java.io.*; 43 | /** 44 | * A sample Taglet representing @example. This tag can be used in any kind of 45 | * {@link com.sun.javadoc.Doc}. It is not an inline tag. The text is displayed 46 | * in yellow to remind the developer to perform a task. For 47 | * example, "@example Hello" would be shown as: 48 | *
49 | *
50 | * To Do: 51 | *
Fix this! 52 | *
53 | *
54 | * 55 | * @author Jamie Ho 56 | * @since 1.4 57 | */ 58 | 59 | public class ExampleTaglet implements Taglet { 60 | 61 | private static final String NAME = "example"; 62 | private static final String HEADER = "example To Do:"; 63 | 64 | /** 65 | * Return the name of this custom tag. 66 | */ 67 | public String getName() { 68 | return NAME; 69 | } 70 | 71 | /** 72 | * Will return true since @example 73 | * can be used in field documentation. 74 | * @return true since @example 75 | * can be used in field documentation and false 76 | * otherwise. 77 | */ 78 | public boolean inField() { 79 | return true; 80 | } 81 | 82 | /** 83 | * Will return true since @example 84 | * can be used in constructor documentation. 85 | * @return true since @example 86 | * can be used in constructor documentation and false 87 | * otherwise. 88 | */ 89 | public boolean inConstructor() { 90 | return true; 91 | } 92 | 93 | /** 94 | * Will return true since @example 95 | * can be used in method documentation. 96 | * @return true since @example 97 | * can be used in method documentation and false 98 | * otherwise. 99 | */ 100 | public boolean inMethod() { 101 | return true; 102 | } 103 | 104 | /** 105 | * Will return true since @example 106 | * can be used in method documentation. 107 | * @return true since @example 108 | * can be used in overview documentation and false 109 | * otherwise. 110 | */ 111 | public boolean inOverview() { 112 | return true; 113 | } 114 | 115 | /** 116 | * Will return true since @example 117 | * can be used in package documentation. 118 | * @return true since @example 119 | * can be used in package documentation and false 120 | * otherwise. 121 | */ 122 | public boolean inPackage() { 123 | return true; 124 | } 125 | 126 | /** 127 | * Will return true since @example 128 | * can be used in type documentation (classes or interfaces). 129 | * @return true since @example 130 | * can be used in type documentation and false 131 | * otherwise. 132 | */ 133 | public boolean inType() { 134 | return true; 135 | } 136 | 137 | /** 138 | * Will return false since @example 139 | * is not an inline tag. 140 | * @return false since @example 141 | * is not an inline tag. 142 | */ 143 | 144 | public boolean isInlineTag() { 145 | return false; 146 | } 147 | 148 | /** 149 | * Register this Taglet. 150 | * @param tagletMap the map to register this tag to. 151 | */ 152 | public static void register(Map tagletMap) { 153 | ExampleTaglet tag = new ExampleTaglet(); 154 | Taglet t = (Taglet) tagletMap.get(tag.getName()); 155 | if (t != null) { 156 | tagletMap.remove(tag.getName()); 157 | } 158 | tagletMap.put(tag.getName(), tag); 159 | } 160 | 161 | /** 162 | * Given the Tag representation of this custom 163 | * tag, return its string representation. 164 | * @param tag the Tag representation of this custom tag. 165 | */ 166 | public String toString(Tag tag) { 167 | return createHTML(readFile(tag.text())); 168 | } 169 | 170 | 171 | /** 172 | * Given an array of Tags representing this custom 173 | * tag, return its string representation. 174 | * @param tags the array of Tags representing of this custom tag. 175 | */ 176 | public String toString(Tag[] tags) { 177 | if (tags.length == 0) { 178 | return null; 179 | } 180 | return createHTML(readFile(tags[0].text())); 181 | } 182 | 183 | 184 | 185 | String createHTML(String theString) { 186 | if(theString!=null) { 187 | String dd = ""; 193 | 194 | return dd+"\n
" + 195 | "
+Example
" + 196 | "
"+theString+"
" + 197 | "
"; 198 | } 199 | return ""; 200 | } 201 | 202 | 203 | /** 204 | * check if the examples directory exists and return the example as given in the tag. 205 | * @param theExample the name of the example 206 | */ 207 | String readFile(String theExample) { 208 | String record = ""; 209 | String myResult = ""; 210 | int recCount = 0; 211 | String myDir = "../examples"; 212 | File file=new File(myDir); 213 | if(file.exists()==false) { 214 | myDir = "./examples"; 215 | } 216 | try { 217 | FileReader fr = new FileReader(myDir+"/"+theExample+"/"+theExample+".pde"); 218 | BufferedReader br = new BufferedReader(fr); 219 | record = new String(); 220 | while ((record = br.readLine()) != null) { 221 | myResult += record+"\n"; 222 | } 223 | } catch (IOException e) { 224 | System.out.println(e); 225 | return null; 226 | } 227 | return myResult; 228 | } 229 | } 230 | 231 | 232 | -------------------------------------------------------------------------------- /pdp5/resources/code/ant-contrib-1.0b3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libpd/puredatap5/ae2b32f15d080ae8c7cfc59fab3dd4c65ef782ca/pdp5/resources/code/ant-contrib-1.0b3.jar -------------------------------------------------------------------------------- /pdp5/resources/code/doc.sh: -------------------------------------------------------------------------------- 1 | # a shell script to create a java documentation 2 | # for a processing library. 3 | # 4 | # make changes to the variables below so they 5 | # fit the structure of your library 6 | 7 | # the package name of your library 8 | package=template; 9 | 10 | # source folder location 11 | src=../src; 12 | 13 | # the destination folder of your documentation 14 | dest=../documentation; 15 | 16 | 17 | # compile the java documentation 18 | javadoc -d $dest -stylesheetfile ./stylesheet.css -sourcepath ${src} ${package} 19 | -------------------------------------------------------------------------------- /pdp5/resources/library.properties: -------------------------------------------------------------------------------- 1 | # More on this file here: https://github.com/processing/processing/wiki/Library-Basics 2 | # UTF-8 supported. 3 | 4 | # The name of your library as you want it formatted. 5 | name = ##library.name## 6 | 7 | # List of authors. Links can be provided using the syntax [author name](url). 8 | authors = [##author.name##](##author.url##) 9 | 10 | # A web page for your library, NOT a direct link to where to download it. 11 | url = ##library.url## 12 | 13 | # The category (or categories) of your library, must be from the following list: 14 | # "3D" "Animation" "Compilations" "Data" 15 | # "Fabrication" "Geometry" "GUI" "Hardware" 16 | # "I/O" "Language" "Math" "Simulation" 17 | # "Sound" "Utilities" "Typography" "Video & Vision" 18 | # 19 | # If a value other than those listed is used, your library will listed as 20 | # "Other". Many categories must be comma-separated. 21 | categories = ##library.categories## 22 | 23 | # A short sentence (or fragment) to summarize the library's function. This will 24 | # be shown from inside the PDE when the library is being installed. Avoid 25 | # repeating the name of your library here. Also, avoid saying anything redundant 26 | # like mentioning that it's a library. This should start with a capitalized 27 | # letter, and end with a period. 28 | sentence = ##library.sentence## 29 | 30 | # Additional information suitable for the Processing website. The value of 31 | # 'sentence' always will be prepended, so you should start by writing the 32 | # second sentence here. If your library only works on certain operating systems, 33 | # mention it here. 34 | paragraph = ##library.paragraph## 35 | 36 | # Links in the 'sentence' and 'paragraph' attributes can be inserted using the 37 | # same syntax as for authors. 38 | # That is, [here is a link to Processing](http://processing.org/) 39 | 40 | # A version number that increments once with each release. This is used to 41 | # compare different versions of the same library, and check if an update is 42 | # available. You should think of it as a counter, counting the total number of 43 | # releases you've had. 44 | version = ##library.version## # This must be parsable as an int 45 | 46 | # The version as the user will see it. If blank, the version attribute will be 47 | # used here. This should be a single word, with no spaces. 48 | prettyVersion = ##library.prettyVersion## # This is treated as a String 49 | 50 | # The min and max revision of Processing compatible with your library. 51 | # Note that these fields use the revision and not the version of Processing, 52 | # parsable as an int. For example, the revision number for 2.2.1 is 227. 53 | # You can find the revision numbers in the change log: https://raw.githubusercontent.com/processing/processing/master/build/shared/revisions.txt 54 | # Only use maxRevision (or minRevision), when your library is known to 55 | # break in a later (or earlier) release. Otherwise, use the default value 0. 56 | minRevision = ##compatible.minRevision## 57 | maxRevision = ##compatible.maxRevision## 58 | -------------------------------------------------------------------------------- /pdp5/resources/stylesheet.css: -------------------------------------------------------------------------------- 1 | /* Javadoc style sheet */ 2 | /* Define colors, fonts and other style attributes here to override the defaults */ 3 | /* processingLibs style by andreas schlegel, sojamo */ 4 | 5 | 6 | body { 7 | margin : 0; 8 | padding : 0; 9 | padding-left : 10px; 10 | padding-right : 8px; 11 | background-color : #FFFFFF; 12 | font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; 13 | font-size : 100%; 14 | font-size : 0.7em; 15 | font-weight : normal; 16 | line-height : normal; 17 | margin-bottom:30px; 18 | } 19 | 20 | 21 | 22 | 23 | /* Headings */ 24 | h1, h2, h3, h4, h5, th { 25 | font-family :Arial, Helvetica, sans-serif; 26 | font-size:1.2em; 27 | } 28 | 29 | 30 | p { 31 | font-size : 1em; 32 | width:80%; 33 | } 34 | 35 | pre, code { 36 | font-family : "Courier New", Courier, monospace; 37 | font-size : 12px; 38 | line-height : normal; 39 | } 40 | 41 | 42 | 43 | table { 44 | border:0; 45 | margin-bottom:10px; 46 | margin-top:10px; 47 | } 48 | 49 | 50 | tr, td { 51 | border-top: 0px solid; 52 | border-left: 0px solid; 53 | padding-top:8px; 54 | padding-bottom:8px; 55 | } 56 | 57 | 58 | 59 | hr { 60 | border:0; 61 | height:1px; 62 | padding:0; 63 | margin:0; 64 | margin-bottom:4px; 65 | 66 | } 67 | 68 | 69 | 70 | dd, th, td, font { 71 | font-size:1.0em; 72 | line-height:1.0em; 73 | } 74 | 75 | 76 | 77 | dt { 78 | margin-bottom:0px; 79 | } 80 | 81 | 82 | 83 | dd { 84 | margin-top:2px; 85 | margin-bottom:4px; 86 | } 87 | 88 | 89 | 90 | a { 91 | text-decoration: underline; 92 | font-weight: normal; 93 | } 94 | 95 | a:hover, 96 | a:active { 97 | text-decoration: underline; 98 | font-weight: normal; 99 | } 100 | 101 | a:visited, 102 | a:link:visited { 103 | text-decoration: underline; 104 | font-weight: normal; 105 | } 106 | 107 | 108 | img { 109 | border: 0px solid #000000; 110 | } 111 | 112 | 113 | 114 | /* Navigation bar fonts */ 115 | .NavBarCell1 { 116 | border:0; 117 | } 118 | 119 | .NavBarCell1Rev { 120 | border:0; 121 | } 122 | 123 | .NavBarFont1 { 124 | font-family: Arial, Helvetica, sans-serif; 125 | font-size:1.1em; 126 | } 127 | 128 | 129 | .NavBarFont1 b { 130 | font-weight:normal; 131 | } 132 | 133 | 134 | 135 | .NavBarFont1:after, .NavBarFont1Rev:after { 136 | font-weight:normal; 137 | content: " \\"; 138 | } 139 | 140 | 141 | .NavBarFont1Rev { 142 | font-family: Arial, Helvetica, sans-serif; 143 | font-size:1.1em; 144 | } 145 | 146 | .NavBarFont1Rev b { 147 | font-family: Arial, Helvetica, sans-serif; 148 | font-size:1.1em; 149 | font-weight:normal; 150 | } 151 | 152 | .NavBarCell2 { 153 | font-family: Arial, Helvetica, sans-serif; 154 | } 155 | 156 | .NavBarCell3 { 157 | font-family: Arial, Helvetica, sans-serif; 158 | } 159 | 160 | 161 | 162 | font.FrameItemFont { 163 | font-family: Helvetica, Arial, sans-serif; 164 | font-size:1.1em; 165 | line-height:1.1em; 166 | } 167 | 168 | font.FrameHeadingFont { 169 | font-family: Helvetica, Arial, sans-serif; 170 | line-height:32px; 171 | } 172 | 173 | /* Font used in left-hand frame lists */ 174 | .FrameTitleFont { 175 | font-family: Helvetica, Arial, sans-serif 176 | } 177 | 178 | 179 | .toggleList { 180 | padding:0; 181 | margin:0; 182 | margin-top:12px; 183 | } 184 | 185 | .toggleList dt { 186 | font-weight:bold; 187 | font-size:12px; 188 | font-family:arial,sans-serif; 189 | padding:0px; 190 | margin:10px 0px 10px 0px; 191 | } 192 | 193 | .toggleList dt span { 194 | font-family: monospace; 195 | padding:0; 196 | margin:0; 197 | } 198 | 199 | 200 | .toggleList dd { 201 | margin:0; 202 | padding:0; 203 | } 204 | 205 | html.isjs .toggleList dd { 206 | display: none; 207 | } 208 | 209 | .toggleList pre { 210 | padding: 4px 4px 4px 4px; 211 | } 212 | 213 | 214 | 215 | 216 | 217 | /* COLORS */ 218 | 219 | pre, code { 220 | color: #000000; 221 | } 222 | 223 | 224 | body { 225 | color : #333333; 226 | background-color :#FFFFFF; 227 | } 228 | 229 | 230 | h1, h2, h3, h4, h5, h6 { 231 | color:#555; 232 | } 233 | 234 | a, 235 | .toggleList dt { 236 | color: #1a7eb0; 237 | } 238 | 239 | a:hover, 240 | a:active { 241 | color: #1a7eb0; 242 | } 243 | 244 | a:visited, 245 | a:link:visited { 246 | color: #1a7eb0; 247 | } 248 | 249 | td,tr { 250 | border-color: #999999; 251 | } 252 | 253 | hr { 254 | color:#999999; 255 | background:#999999; 256 | } 257 | 258 | 259 | .TableHeadingColor { 260 | background: #dcdcdc; 261 | color: #555; 262 | } 263 | 264 | 265 | .TableSubHeadingColor { 266 | background: #EEEEFF 267 | } 268 | 269 | .TableRowColor { 270 | background: #FFFFFF 271 | } 272 | 273 | 274 | .NavBarCell1 { 275 | background-color:#dcdcdc; 276 | color:#000; 277 | } 278 | 279 | .NavBarCell1 a { 280 | color:#333; 281 | } 282 | 283 | 284 | .NavBarCell1Rev { 285 | background-color:transparent; 286 | } 287 | 288 | .NavBarFont1 { 289 | color:#333; 290 | } 291 | 292 | 293 | .NavBarFont1Rev { 294 | color:#fff; 295 | } 296 | 297 | .NavBarCell2 { 298 | background-color:#999; 299 | } 300 | 301 | .NavBarCell2 a { 302 | color:#fff; 303 | } 304 | 305 | 306 | 307 | .NavBarCell3 { 308 | background-color:#dcdcdc; 309 | } 310 | 311 | -------------------------------------------------------------------------------- /pdp5/src/org/puredata/processing/PureData.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * For information on usage and redistribution, and for a DISCLAIMER OF ALL WARRANTIES, see the 4 | * file, "LICENSE.txt," in this distribution. 5 | * 6 | */ 7 | 8 | package org.puredata.processing; 9 | 10 | 11 | import java.io.IOException; 12 | import java.lang.reflect.Method; 13 | import java.util.HashMap; 14 | import java.util.Map; 15 | 16 | import org.apache.commons.compress.archivers.tar.TarArchiveEntry; 17 | import org.apache.commons.compress.archivers.tar.TarArchiveInputStream; 18 | import org.puredata.core.PdBase; 19 | import org.puredata.core.PdMidiReceiver; 20 | import org.puredata.core.PdReceiver; 21 | 22 | import processing.core.PApplet; 23 | 24 | 25 | /** 26 | * libpd for Processing. 27 | * 28 | * @author Peter Brinkmann (peter.brinkmann@gmail.com) 29 | */ 30 | public class PureData implements PdReceiver, PdMidiReceiver { 31 | 32 | private final PApplet parent; 33 | 34 | private final Method pdPrintCallback; 35 | private final Method receiveBangCallback; 36 | private final Method receiveFloatCallback; 37 | private final Method receiveSymbolCallback; 38 | private final Method receiveListCallback; 39 | private final Method receiveMessageCallback; 40 | 41 | private final Method receiveNoteOnCallback; 42 | private final Method receivePolyAftertouchCallback; 43 | private final Method receiveControlChangeCallback; 44 | private final Method receiveProgramChangeCallback; 45 | private final Method receiveAftertouchCallback; 46 | private final Method receivePitchBendCallback; 47 | 48 | /** 49 | * @param parent owner 50 | * @param int sampleRate sample rate 51 | * @param int inputChannels number of input channels 52 | * @param int outputChannels number of output channels 53 | */ 54 | public PureData(PApplet parent, int sampleRate, int inputChannels, int outputChannels) { 55 | this.parent = parent; 56 | parent.registerMethod("dispose", this); 57 | parent.registerMethod("pre", this); 58 | if (!PdBase.implementsAudio()) { 59 | throw new RuntimeException("PdBase does not implement audio!"); 60 | } 61 | if (PdBase.openAudio(inputChannels, outputChannels, sampleRate) != 0) { 62 | throw new RuntimeException("Bad audio parameters: " + inputChannels + ", " + outputChannels 63 | + ", " + sampleRate); 64 | } 65 | PdBase.setReceiver(this); 66 | PdBase.setMidiReceiver(this); 67 | PdBase.computeAudio(true); 68 | PdBase.clearSearchPath(); 69 | PdBase.addToSearchPath(parent.dataPath("")); 70 | PdBase.addToSearchPath(parent.savePath("")); 71 | Map methods = extractMethods(parent.getClass()); 72 | pdPrintCallback = methods.get("pdPrint"); 73 | receiveBangCallback = methods.get("receiveBang"); 74 | receiveFloatCallback = methods.get("receiveFloat"); 75 | receiveSymbolCallback = methods.get("receiveSymbol"); 76 | receiveListCallback = methods.get("receiveList"); 77 | receiveMessageCallback = methods.get("receiveMessage"); 78 | receiveNoteOnCallback = methods.get("receiveNoteOn"); 79 | receivePolyAftertouchCallback = methods.get("receivePolyAftertouch"); 80 | receiveControlChangeCallback = methods.get("receiveControlChange"); 81 | receiveProgramChangeCallback = methods.get("receiveProgramChange"); 82 | receiveAftertouchCallback = methods.get("receiveAftertouch"); 83 | receivePitchBendCallback = methods.get("receivePitchBend"); 84 | } 85 | 86 | private Map extractMethods(Class clazz) { 87 | Map result = new HashMap(); 88 | Method[] methods = clazz.getMethods(); 89 | for (Method method : methods) { 90 | result.put(method.getName(), method); 91 | } 92 | return result; 93 | } 94 | 95 | /** 96 | * Processing dispose callback, automatically registered in the constructor. 97 | */ 98 | public void dispose() { 99 | stop(); 100 | PdBase.release(); 101 | } 102 | 103 | /** 104 | * Processing pre-draw callback, automatically registered in the constructor. 105 | */ 106 | public void pre() { 107 | PdBase.pollMidiQueue(); 108 | PdBase.pollPdMessageQueue(); 109 | } 110 | 111 | /** 112 | * Start audio. 113 | */ 114 | public void start() { 115 | PdBase.startAudio(); 116 | } 117 | 118 | /** 119 | * Stop audio. 120 | */ 121 | public void stop() { 122 | PdBase.pauseAudio(); 123 | } 124 | 125 | /** 126 | * Delegates to the corresponding method in {@link PdBase}. 127 | */ 128 | public int subscribe(String sym) { 129 | return PdBase.subscribe(sym); 130 | } 131 | 132 | /** 133 | * Delegates to the corresponding method in {@link PdBase}. 134 | */ 135 | public void unsubscribe(String sym) { 136 | PdBase.unsubscribe(sym); 137 | } 138 | 139 | /** 140 | * Delegates to the corresponding method in {@link PdBase}. 141 | */ 142 | public int openPatch(String file) { 143 | try { 144 | return PdBase.openPatch(parent.dataPath(file)); 145 | } catch (IOException e) { 146 | throw new RuntimeException(e); 147 | } 148 | } 149 | 150 | /** 151 | * Unpacks a flat tar archive (just files, no directories) containing a patch 152 | * and auxiliary files and opens the patch. 153 | */ 154 | public int unpackAndOpenPatch(String archive, String patch) { 155 | TarArchiveInputStream tar = 156 | new TarArchiveInputStream(parent.createInput(archive)); 157 | try { 158 | TarArchiveEntry entry; 159 | while ((entry = tar.getNextTarEntry()) != null) { 160 | int n = (int)entry.getSize(); 161 | byte[] content = new byte[n]; 162 | int m = 0; 163 | while (n > m) { 164 | m += tar.read(content, m, n - m); 165 | } 166 | parent.saveBytes(entry.getName(), content); 167 | } 168 | tar.close(); 169 | return PdBase.openPatch(parent.savePath(patch)); 170 | } catch (IOException e) { 171 | throw new RuntimeException(e); 172 | } 173 | } 174 | 175 | /** 176 | * Delegates to the corresponding method in {@link PdBase}. 177 | */ 178 | public void closePatch(int handle) { 179 | PdBase.closePatch(handle); 180 | } 181 | 182 | /** 183 | * Delegates to the corresponding method in {@link PdBase}. 184 | */ 185 | public int arraySize(String name) { 186 | return PdBase.arraySize(name); 187 | } 188 | 189 | /** 190 | * Delegates to the corresponding method in {@link PdBase}. 191 | */ 192 | public int readArray(float[] to, int toOffset, String fromArray, int fromOffset, int n) { 193 | return PdBase.readArray(to, toOffset, fromArray, fromOffset, n); 194 | } 195 | 196 | /** 197 | * Delegates to the corresponding method in {@link PdBase}. 198 | */ 199 | public int writeArray(String toArray, int toOffset, float[] fromArray, int fromOffset, int n) { 200 | return PdBase.writeArray(toArray, toOffset, fromArray, fromOffset, n); 201 | } 202 | 203 | /** 204 | * Delegates to the corresponding method in {@link PdBase}. 205 | */ 206 | public void sendBang(String recv) { 207 | PdBase.sendBang(recv); 208 | } 209 | 210 | /** 211 | * Delegates to the corresponding method in {@link PdBase}. 212 | */ 213 | public void sendFloat(String recv, float x) { 214 | PdBase.sendFloat(recv, x); 215 | } 216 | 217 | /** 218 | * Delegates to the corresponding method in {@link PdBase}. 219 | */ 220 | public void sendSymbol(String recv, String sym) { 221 | PdBase.sendSymbol(recv, sym); 222 | } 223 | 224 | /** 225 | * Delegates to the corresponding method in {@link PdBase}. 226 | */ 227 | public void sendList(String recv, Object... args) { 228 | PdBase.sendList(recv, args); 229 | } 230 | 231 | /** 232 | * Delegates to the corresponding method in {@link PdBase}. 233 | */ 234 | public void sendMessage(String recv, String mesg, Object... args) { 235 | PdBase.sendMessage(recv, mesg, args); 236 | } 237 | 238 | /** 239 | * Delegates to the corresponding method in {@link PdBase}. 240 | */ 241 | public void sendNoteOn(int channel, int note, int velocity) { 242 | PdBase.sendNoteOn(channel, note, velocity); 243 | } 244 | 245 | /** 246 | * Delegates to the corresponding method in {@link PdBase}. 247 | */ 248 | public void sendPolyAftertouch(int channel, int note, int velocity) { 249 | PdBase.sendPolyAftertouch(channel, note, velocity); 250 | } 251 | 252 | /** 253 | * Delegates to the corresponding method in {@link PdBase}. 254 | */ 255 | public void sendControlChange(int channel, int controller, int value) { 256 | PdBase.sendControlChange(channel, controller, value); 257 | } 258 | 259 | /** 260 | * Delegates to the corresponding method in {@link PdBase}. 261 | */ 262 | public void sendAftertouch(int channel, int value) { 263 | PdBase.sendAftertouch(channel, value); 264 | } 265 | 266 | /** 267 | * Delegates to the corresponding method in {@link PdBase}. 268 | */ 269 | public void sendPitchBend(int channel, int value) { 270 | PdBase.sendPitchBend(channel, value); 271 | } 272 | 273 | /** 274 | * Delegates to the corresponding method in {@link PdBase}. 275 | */ 276 | public void sendProgramChange(int channel, int value) { 277 | PdBase.sendProgramChange(channel, value); 278 | } 279 | 280 | /** 281 | * Delegates to parent's pdPrint method, if it exists; no-op otherwise. 282 | */ 283 | @Override 284 | public void print(String s) { 285 | if (pdPrintCallback != null) { 286 | try { 287 | pdPrintCallback.invoke(parent, s); 288 | } catch (Exception e) { 289 | // Do nothing. 290 | } 291 | } 292 | } 293 | 294 | /** 295 | * Delegates to parent's receiveBang method, if it exists; no-op otherwise. 296 | */ 297 | @Override 298 | public void receiveBang(String source) { 299 | if (receiveBangCallback != null) { 300 | try { 301 | receiveBangCallback.invoke(parent, source); 302 | } catch (Exception e) { 303 | // Do nothing. 304 | } 305 | } 306 | } 307 | 308 | /** 309 | * Delegates to parent's receiveFloat method, if it exists; no-op otherwise. 310 | */ 311 | @Override 312 | public void receiveFloat(String source, float x) { 313 | if (receiveFloatCallback != null) { 314 | try { 315 | receiveFloatCallback.invoke(parent, source, x); 316 | } catch (Exception e) { 317 | // Do nothing. 318 | } 319 | } 320 | } 321 | 322 | /** 323 | * Delegates to parent's receiveSymbol method, if it exists; no-op otherwise. 324 | */ 325 | @Override 326 | public void receiveSymbol(String source, String symbol) { 327 | if (receiveSymbolCallback != null) { 328 | try { 329 | receiveSymbolCallback.invoke(parent, source, symbol); 330 | } catch (Exception e) { 331 | // Do nothing. 332 | } 333 | } 334 | } 335 | 336 | /** 337 | * Delegates to parent's receiveList method, if it exists; no-op otherwise. 338 | */ 339 | @Override 340 | public void receiveList(String source, Object... args) { 341 | if (receiveListCallback != null) { 342 | try { 343 | receiveListCallback.invoke(parent, source, args); 344 | } catch (Exception e) { 345 | // Do nothing. 346 | } 347 | } 348 | } 349 | 350 | /** 351 | * Delegates to parent's receiveMessage method, if it exists; no-op otherwise. 352 | */ 353 | @Override 354 | public void receiveMessage(String source, String symbol, Object... args) { 355 | if (receiveMessageCallback != null) { 356 | try { 357 | receiveMessageCallback.invoke(parent, source, symbol, args); 358 | } catch (Exception e) { 359 | // Do nothing. 360 | } 361 | } 362 | } 363 | 364 | @Override 365 | public boolean beginBlock() { 366 | return false; 367 | } 368 | 369 | @Override 370 | public void endBlock() { 371 | // Do nothing. 372 | } 373 | 374 | @Override 375 | public void receiveAftertouch(int c, int v) { 376 | if (receiveAftertouchCallback != null) { 377 | try { 378 | receiveAftertouchCallback.invoke(parent, c, v); 379 | } catch (Exception e) { 380 | // Do nothing. 381 | } 382 | } 383 | } 384 | 385 | @Override 386 | public void receiveControlChange(int c, int k, int v) { 387 | if (receiveControlChangeCallback != null) { 388 | try { 389 | receiveControlChangeCallback.invoke(parent, c, k, v); 390 | } catch (Exception e) { 391 | // Do nothing. 392 | } 393 | } 394 | } 395 | 396 | @Override 397 | public void receiveNoteOn(int c, int k, int v) { 398 | if (receiveNoteOnCallback != null) { 399 | try { 400 | receiveNoteOnCallback.invoke(parent, c, k, v); 401 | } catch (Exception e) { 402 | // Do nothing. 403 | } 404 | } 405 | } 406 | 407 | @Override 408 | public void receivePitchBend(int c, int v) { 409 | if (receivePitchBendCallback != null) { 410 | try { 411 | receivePitchBendCallback.invoke(parent, c, v); 412 | } catch (Exception e) { 413 | // Do nothing. 414 | } 415 | } 416 | } 417 | 418 | @Override 419 | public void receivePolyAftertouch(int c, int k, int v) { 420 | if (receivePolyAftertouchCallback != null) { 421 | try { 422 | receivePolyAftertouchCallback.invoke(parent, c, k, v); 423 | } catch (Exception e) { 424 | // Do nothing. 425 | } 426 | } 427 | } 428 | 429 | @Override 430 | public void receiveProgramChange(int c, int v) { 431 | if (receiveProgramChangeCallback != null) { 432 | try { 433 | receiveProgramChangeCallback.invoke(parent, c, v); 434 | } catch (Exception e) { 435 | // Do nothing. 436 | } 437 | } 438 | } 439 | 440 | @Override 441 | public void receiveMidiByte(int p, int b) { 442 | // Do nothing; we don't support this low-level functionality in Processing. 443 | } 444 | } 445 | -------------------------------------------------------------------------------- /pdp5/web/index.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | ##library.name## 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 25 | 26 | 38 | 39 |
40 | 41 |
42 |

##library.name##

43 |

44 | A library by ##author.name## for the Processing programming environment.
45 | Last update, ##date##. 46 |

47 |

48 | ##library.sentence##
49 | ##library.paragraph##
50 | Feel free to replace this paragraph with a description of the library.
51 | Contributed libraries are developed, documented, and maintained by members of the Processing community. Further directions are included with each library. For feedback and support, please post to the Discourse. We strongly encourage all libraries to be open source, but not all of them are. 52 |

53 |
54 | 55 | 56 | 57 |
58 |

Download

59 |

60 | Download ##library.name## version ##library.prettyVersion## (##library.version##) in 61 | .zip format. 62 |

63 |

Installation

64 |

65 | Unzip and put the extracted ##project.name## folder into the libraries folder of your Processing sketches. Reference and examples are included in the ##project.name## folder. 66 |

67 |
68 | 69 | 70 |
71 |

Keywords. ##library.keywords##

72 |

Reference. Have a look at the javadoc reference here. A copy of the reference is included in the .zip as well.

73 |

Source. The source code of ##library.name## is available at ##source.host##, and its repository can be browsed here.

74 |
75 | 76 | 77 |
78 |

Examples

79 |

Find a list of examples in the current distribution of ##library.name##, or have a look at them by following the links below.

80 |
    81 | ##examples## 82 |
83 |
84 | 85 | 86 |
87 |

Tested

88 |

89 | 90 | Platform ##tested.platform## 91 | 92 | 93 |
Processing ##tested.processingVersion## 94 | 95 | 96 |
Dependencies ##library.dependencies## 97 |

98 |
99 | 100 | 101 | 102 | 114 | 115 | 116 | 121 | 122 | 123 | 127 | 128 | 129 |
130 |
131 | 132 | 135 |
136 | 137 | -------------------------------------------------------------------------------- /pdp5/web/stylesheet.css: -------------------------------------------------------------------------------- 1 | /* processingLibs style by andreas schlegel, sojamo. */ 2 | 3 | 4 | * { 5 | margin:0; 6 | padding:0; 7 | border:0; 8 | } 9 | 10 | 11 | body { 12 | font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; 13 | font-size : 100%; 14 | font-size : 0.70em; 15 | font-weight : normal; 16 | line-height : normal; 17 | } 18 | 19 | 20 | 21 | #container { 22 | margin-left:64px; 23 | background-color:#fff; 24 | } 25 | 26 | #header { 27 | float:left; 28 | padding-top:24px; 29 | padding-bottom:48px; 30 | } 31 | 32 | #menu { 33 | margin-top:16px; 34 | float:left; 35 | margin-bottom:64px; 36 | } 37 | 38 | 39 | #about, 40 | #download, 41 | #examples, 42 | #demos, 43 | #misc { 44 | width:480px; 45 | float:left; 46 | margin-right:24px; 47 | } 48 | 49 | 50 | #resources, #info { 51 | width:320px; 52 | float:left; 53 | } 54 | 55 | 56 | .clear { 57 | clear:both; 58 | } 59 | 60 | #footer { 61 | margin-top:300px; 62 | height:20px; 63 | margin-bottom:32px; 64 | } 65 | 66 | 67 | ul { 68 | list-style:none; 69 | padding:0; 70 | margin:0; 71 | } 72 | 73 | 74 | #menu ul li, #subMenu ul li { 75 | float:left; 76 | padding-right:6px; 77 | } 78 | 79 | 80 | 81 | 82 | 83 | 84 | /* Headings */ 85 | 86 | h1 { 87 | font-size:2em; 88 | font-weight:normal; 89 | } 90 | 91 | 92 | h2, h3, h4, h5, th { 93 | font-size:1.3em; 94 | font-weight:normal; 95 | margin-bottom:4px; 96 | } 97 | 98 | 99 | 100 | p { 101 | font-size:1em; 102 | width:90%; 103 | margin-bottom:32px; 104 | } 105 | 106 | 107 | pre, code { 108 | font-family:"Courier New", Courier, monospace; 109 | font-size:1em; 110 | line-height:normal; 111 | } 112 | 113 | 114 | 115 | 116 | hr { 117 | border:0; 118 | height:1px; 119 | margin-bottom:24px; 120 | } 121 | 122 | 123 | a { 124 | text-decoration: underline; 125 | font-weight: normal; 126 | } 127 | 128 | 129 | a:hover, 130 | a:active { 131 | text-decoration: underline; 132 | font-weight: normal; 133 | } 134 | 135 | 136 | a:visited, 137 | a:link:visited { 138 | text-decoration: underline; 139 | font-weight: normal; 140 | } 141 | 142 | 143 | 144 | img { 145 | border: 0px solid #000000; 146 | } 147 | 148 | 149 | 150 | 151 | 152 | /* COLORS */ 153 | 154 | 155 | body { 156 | color : #333; 157 | background-color :#fff; 158 | } 159 | 160 | 161 | #header { 162 | background-color:#fff; 163 | color:#333; 164 | } 165 | 166 | 167 | 168 | h1, h2, h3, h4, h5, h6 { 169 | color:#666; 170 | } 171 | 172 | 173 | pre, code { 174 | color: #000000; 175 | } 176 | 177 | 178 | a,strong { 179 | color: #333; 180 | } 181 | 182 | 183 | a:hover, 184 | a:active { 185 | color: #333; 186 | } 187 | 188 | 189 | a:visited, 190 | a:link:visited { 191 | color: #333; 192 | } 193 | 194 | 195 | #footer, #menu { 196 | background-color:#fff; 197 | color:#333; 198 | } 199 | 200 | 201 | #footer a, #menu a { 202 | color:#333; 203 | } 204 | --------------------------------------------------------------------------------