Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • jwilkes/purr-data
  • aggraef/purr-data
  • samthursfield/purr-data
  • prakhar/purr-data
  • yadu05/purr-data
  • NegiAkash890/purr-data
  • prateekpardeshi/purr-data
  • Shruti3004/purr-data
  • hidimpu/purr-data
  • Atseosi/purr-data
  • piyushjasaiwal/purr-data
  • deveshprasad/purr-data
  • skm_7/purr-data
  • sankt/purr-data
  • ashim_tom/purr-data
  • dineshsoni02/purr-data
  • chaitanya1-coder/purr-data
  • Nitish0007/purr-data
  • nitin/purr-data
  • shuvam09/purr-data
  • gabrielabittencourt/purr-data
  • sivasai/purr-data
  • flachyjoe/purr-data
  • ishankaler/purr-data
  • prateek/purr-data
  • RukshanJS/purr-data
  • rajatshrm648/purr-data
  • Srashti/purr-data
  • Paarth/purr-data
  • AniruddhaGawali/purr-data
  • brittneyjuliet/purr-data
  • prakharagarwal1/purr-data
  • Shreyanshpaliwalcmsmn/purr-data
  • k_amrut/purr-data
  • AyushAnand/purr-data
  • Va16hav07/purr-data
36 results
Show changes
Commits on Source (2488)
Showing
with 3831 additions and 738 deletions
name: Makefile CI
on:
push:
branches: [ master, release, testing ]
tags: [ '*' ]
pull_request:
branches: [ master ]
jobs:
macos-build:
runs-on: macos-13
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- name: install dependencies
run: |
brew install automake
brew install fftw
brew install fluidsynth
brew install faac
brew install jpeg
brew install speex
brew install gsl
brew install libquicktime
brew install sdl2
pip3 install markdown
- name: version
run: |
echo "version=$(git describe --tags)" >> $GITHUB_ENV
- name: make
run: |
echo version: $version
make V=0
- name: check
run: make check
- name: upload
uses: actions/upload-artifact@v3
with:
name: purr-data-${{ env.version }}-macos-x86_64
path: Purr-Data-*.dmg
retention-days: 2
ubuntu-build:
runs-on: ubuntu-latest
env:
DEBEMAIL: "Albert Graef <aggraef@gmail.com>"
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- name: install dependencies
run: |
# dance around Azure connectivity issues
sudo apt-get update && sudo apt-get -o Acquire::Retries=3 install -q -y debhelper devscripts autoconf automake libtool pkg-config bison flex libgtk2.0-dev libgtk-3-dev dh-python ladspa-sdk libasound2-dev libjack-dev libbluetooth-dev libcairo2-dev libgl-dev libglew-dev libgsl-dev libmagick++-dev libavifile-0.7-dev libdc1394-dev libfftw3-dev libfluidsynth-dev libftgl-dev libgsm1-dev libjpeg-dev libmp3lame-dev libmpeg3-dev libquicktime-dev libraw1394-dev libsmpeg-dev libspeex-dev libstk-dev libtiff5-dev libv4l-dev libdv4-dev libiec61883-dev libxv-dev libxxf86vm-dev libvorbis-dev zlib1g-dev rsync libgconf2-dev libnss3-dev libxtst-dev libxss-dev
pip install markdown
- name: version
run: |
echo "version=$(git describe --tags)" >> $GITHUB_ENV
- name: make
run: |
echo version: $version
cd debuild
make debchange
make deb-us
- name: check
run: echo handled by debuild
- name: upload
uses: actions/upload-artifact@v3
with:
name: purr-data-${{ env.version }}-ubuntu-x86_64
path: debuild/purr-data*.deb
retention-days: 2
windows-build:
runs-on: windows-2022
defaults:
run:
shell: msys2 {0}
env:
CC: gcc
CXX: g++
steps:
- uses: msys2/setup-msys2@v2
- uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- name: install innosetup
run: |
wget https://jrsoftware.org/download.php/is.exe -O innosetup.exe
./innosetup.exe //SILENT //CURRENTUSER
- name: install dependencies
run: |
pacman --noconfirm --disable-download-timeout -S autoconf automake git libtool make mingw-w64-x86_64-dlfcn mingw-w64-x86_64-fftw mingw-w64-x86_64-fluidsynth mingw-w64-x86_64-SDL2 mingw-w64-x86_64-ftgl mingw-w64-x86_64-fribidi mingw-w64-x86_64-ladspa-sdk mingw-w64-x86_64-lame mingw-w64-x86_64-libsndfile mingw-w64-x86_64-libvorbis mingw-w64-x86_64-lua mingw-w64-x86_64-toolchain mingw-w64-x86_64-libjpeg-turbo mingw-w64-x86_64-speex mingw-w64-x86_64-python mingw-w64-x86_64-python-markdown rsync unzip wget
- name: version
run: |
echo "version=$(git describe --tags)" >> $GITHUB_ENV
- name: make
run: |
echo version: $version
echo UNAME: `uname -s`
make V=0
- name: check
run: make check
- name: upload
uses: actions/upload-artifact@v3
with:
name: purr-data-${{ env.version }}-mingw-x86_64
path: Purr-Data-*.exe
retention-days: 2
release:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
needs: [macos-build, ubuntu-build, windows-build]
steps:
- uses: actions/download-artifact@v3
- name: ziptie
run: |
mkdir dist
for x in purr-data-*; do (cd $x && zip -r ../dist/$x.zip *); done
- name: release
uses: softprops/action-gh-release@v1
with:
prerelease: true
draft: true
files: dist/*.zip
......@@ -30,5 +30,11 @@ pd.pc
.svn
packages/linux_make/build/
pd/src/makefile
pd/src/config.h
pd/src/s_version.h
pd/nw/nw/
l2ork_addons/cwiid/defs.mak
CVS
.DS_Store
*.dmg
.vscode/
\ No newline at end of file
before_script:
- apt-get update -qq && apt-get upgrade -qq
# This file creates automated tests on GitLab CI for Purr Data.
# See https://docs.gitlab.com/ee/ci/yaml/README.html for details of the format.
build_package:
# These are script snippets used in the jobs defined below.
.debian_image_preparation: &debian_image_preparation
- echo "" | sudo -S apt-get -qq purge -y pd-l2ork > /dev/null || echo "couldn't purge..."
- echo "" | sudo -S DEBIAN_FRONTEND=noninteractive apt-get -qq -y update > /dev/null
- echo "" | sudo -S DEBIAN_FRONTEND=noninteractive apt-get -qq -y upgrade > /dev/null
.build_all: &build_all
- echo -e "section_start:`date +%s`:build_all\r\e[0KBuilding Purr Data"
- cd l2ork_addons
- export V=0
- ./tar_em_up.sh $BUILD_TYPE_FLAG
- cd ..
- echo -e "section_end:`date +%s`:build_all\r\e[0K"
.test_linux: &test_linux
- echo -e "section_start:`date +%s`:test_linux\r\e[0KTesting Purr Data for Linux"
- echo "" | sudo -S DEBIAN_FRONTEND=noninteractive dpkg --force-all -i pd-l2ork*.deb > /dev/null
- valgrind pd-l2ork -noprefs -nogui -nrt -noaudio -send "init dollarzero \$0" scripts/regression_tests.pd
- valgrind pd-l2ork -noprefs -nostdpath -nogui -nrt -noaudio scripts/external-tests.pd
- echo -e "section_end:`date +%s`:text_linux\r\e[0K"
.test_osx: &test_osx
- echo -e "section_start:`date +%s`:test_osx\r\e[0KTesting Purr Data for Mac OSX"
- cd scripts
- ../packages/darwin_app/build/*.app/Contents/Resources/app.nw/bin/pd-l2ork -noprefs -nogui -noaudio -send "init dollarzero \$0" regression_tests.pd
- ../packages/darwin_app/build/*.app/Contents/Resources/app.nw/bin/pd-l2ork -noprefs -nostdpath -nogui -noaudio external-tests.pd
- echo -e "section_end:`date +%s`:text_osx\r\e[0K"
.test_windows: &test_windows
- echo -e "section_start:`date +%s`:test_windows\r\e[0KTesting Purr Data for Windows"
- cd scripts
- ../packages/win64_inno/build/bin/pd.com -noprefs -nogui -noaudio -send "init dollarzero \$0" regression_tests.pd
- ../packages/win64_inno/build/bin/pd.com -noprefs -nostdpath -nogui -noaudio external-tests.pd
- echo -e "section_end:`date +%s`:text_windows\r\e[0K"
debian_stretch_x86_64_deb:
tags:
- debian
- stretch
- x86_64
variables:
BUILD_TYPE_FLAG: -B
before_script:
- *debian_image_preparation
script:
- *build_all
- *test_linux
artifacts:
name: "$CI_RUNNER_DESCRIPTION"
expire_in: 1 day
paths:
- pd*.deb
ubuntu_16.04_x86_64_deb:
tags:
- ubuntu
- v16.04
- x86_64
variables:
BUILD_TYPE_FLAG: -B
before_script:
- *debian_image_preparation
script:
- *build_all
- *test_linux
artifacts:
name: "$CI_RUNNER_DESCRIPTION"
expire_in: 1 day
paths:
- pd*.deb
osx_10.11_x86_64_dmg:
tags:
- osx
- v10.11
- dmg
variables:
BUILD_TYPE_FLAG: -X
script:
- echo `pwd`
- *build_all
- *test_osx
artifacts:
name: "$CI_RUNNER_DESCRIPTION"
expire_in: 1 day
paths:
- Purr*.dmg
osx_10.8_x86_64_dmg:
tags:
- osx
- v10.8
- dmg
variables:
BUILD_TYPE_FLAG: -X
osx_version: "10.8"
script:
- echo `pwd`
- *build_all
- *test_osx
artifacts:
name: "$CI_RUNNER_DESCRIPTION"
expire_in: 1 day
paths:
- Purr*.dmg
windows_x86_64_innosetup:
tags:
- windows
- x86_64
variables:
BUILD_TYPE_FLAG: -Z
script:
- echo `pwd`
- cd l2ork_addons
- ./tar_em_up.sh -B
- *build_all
- *test_windows
artifacts:
name: "$CI_RUNNER_DESCRIPTION"
expire_in: 1 day
paths:
- Purr*.exe
raspbian_stretch_armv7l_deb:
tags:
- raspbian
- arm
- stretch
variables:
BUILD_TYPE_FLAG: -r
before_script:
- *debian_image_preparation
script:
- echo `pwd`
- *build_all
- *test_linux
artifacts:
name: "$CI_RUNNER_DESCRIPTION"
expire_in: 1 day
paths:
- pd*.deb
[submodule "Gem"]
path = Gem
url = git://git.code.sf.net/p/pd-gem/gem
[submodule "l2ork_addons/rtcmix-in-pd"]
path = externals/rtcmix-in-pd
url = https://github.com/jwmatthys/rtcmix-in-pd.git
[submodule "l2ork_addons/cwiid"]
path = externals/disis/cwiid
url = https://github.com/pd-l2ork/cwiid
[submodule "l2ork_addons/lyonpotpourri"]
path = externals/lyonpotpourri
url = https://github.com/pd-projects/lyonpotpourri
[submodule "l2ork_addons/fftease3.0-32bit"]
path = externals/fftease
url = https://github.com/ericlyon/fftease3.0-32bit
[submodule "Gem"]
path = Gem
url = https://github.com/agraef/Gem.git
[submodule "l2ork_addons/raspberry_pi/disis_gpio/wiringPi"]
path = l2ork_addons/raspberry_pi/disis_gpio/wiringPi
url = git://git.drogon.net/wiringPi
url = https://git.purrdata.net/jwilkes/wiringPi.git
[submodule "externals/pd-lua"]
path = externals/pd-lua
url = https://github.com/agraef/pd-lua.git
Subproject commit 374f71368f4a54e8d0f7887460a178e9020a1ba4
Subproject commit 0d5f10cc9166ce8971c6fde32fa0d2d47ab33fa0
<h1 id="purr-data-copyright-and-terms-of-use">Purr-Data Copyright and
Terms of Use</h1>
<p>Pd, as well as this compilation of Pd-related software known as
Purr-Data a.k.a. Pd-l2ork 2.x, is copyrighted software by various
authors, but it is distributed as open-source software, which means that
it can be used freely and without any costs under the appropriate
license terms, as detailed below.</p>
<p>THIS SOFTWARE IS PROVIDED BY THE AUTHORS “AS IS” AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.</p>
<h2 id="pd-license">Pd License</h2>
<p>Copyright (c) by Miller S. Puckette and others</p>
<p>Pd (the core system including the main program and the built-in
objects, i.e., everything that lives in the pd subdirectory of the
sources) is licensed under a 3-clause BSD license, please check the <a
href="pd/LICENSE.txt">LICENSE.txt</a> file for details.</p>
<h2 id="bundled-software">Bundled Software</h2>
<p>Copyright (c) by various authors, please see the included license
files for details</p>
<p>Purr-Data includes a large number of bundled abstractions and
externals by various authors. These can be found in the abstractions,
externals and Gem subdirectories in the source, and in the extra
subdirectory of the Purr-Data library directory of the installed
application. Each of these items has its own open-source license under
which it is distributed (mostly different variations of the BSD license
or the GPL), so please check the corresponding license files in the
source or the extra directory of the installed package for license
information pertaining to each of the different software modules.</p>
<h2 id="purr-data-license">Purr-Data License</h2>
<p>Copyright (c) by Hans-Christoph Steiner, Ico Bukvic, Jonathan Wilkes
and others</p>
<p>Purr-Data (by Jonathan Wilkes) is based on Pd-l2ork (by Ico Bukvic)
which in turn is based on Pd-extended (by Hans-Christoph Steiner), which
is licensed under the GPL (GNU Public License) version 3, replicated
below. Please note that this license applies to all parts of this
package which are <em>not</em> accompanied by their own license
conditions (such as the Pd core and the bundled software, as detailed
above).</p>
<h1 id="gnu-general-public-license">GNU GENERAL PUBLIC LICENSE</h1>
<p>Version 3, 29 June 2007</p>
<p>Copyright (C) 2007 <a href="http://fsf.org/">Free Software
Foundation, Inc.</a></p>
<p>Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.</p>
<h2 id="preamble">Preamble</h2>
<p>The GNU General Public License is a free, copyleft license for
software and other kinds of works.</p>
<p>The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program–to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.</p>
<p>When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.</p>
<p>To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.</p>
<p>For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.</p>
<p>Developers that use the GNU GPL protect your rights with two
steps:</p>
<ol type="1">
<li>assert copyright on the software, and</li>
<li>offer you this License giving you legal permission to copy,
distribute and/or modify it.</li>
</ol>
<p>For the developers’ and authors’ protection, the GPL clearly explains
that there is no warranty for this free software. For both users’ and
authors’ sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.</p>
<p>Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of protecting
users’ freedom to change the software. The systematic pattern of such
abuse occurs in the area of products for individuals to use, which is
precisely where it is most unacceptable. Therefore, we have designed
this version of the GPL to prohibit the practice for those products. If
such problems arise substantially in other domains, we stand ready to
extend this provision to those domains in future versions of the GPL, as
needed to protect the freedom of users.</p>
<p>Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.</p>
<p>The precise terms and conditions for copying, distribution and
modification follow.</p>
<h2 id="terms-and-conditions">TERMS AND CONDITIONS</h2>
<h3 id="definitions.">0. Definitions.</h3>
<p><em>This License</em> refers to version 3 of the GNU General Public
License.</p>
<p><em>Copyright</em> also means copyright-like laws that apply to other
kinds of works, such as semiconductor masks.</p>
<p><em>The Program</em> refers to any copyrightable work licensed under
this License. Each licensee is addressed as <em>you</em>.
<em>Licensees</em> and <em>recipients</em> may be individuals or
organizations.</p>
<p>To <em>modify</em> a work means to copy from or adapt all or part of
the work in a fashion requiring copyright permission, other than the
making of an exact copy. The resulting work is called a <em>modified
version</em> of the earlier work or a work <em>based on</em> the earlier
work.</p>
<p>A <em>covered work</em> means either the unmodified Program or a work
based on the Program.</p>
<p>To <em>propagate</em> a work means to do anything with it that,
without permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.</p>
<p>To <em>convey</em> a work means any kind of propagation that enables
other parties to make or receive copies. Mere interaction with a user
through a computer network, with no transfer of a copy, is not
conveying.</p>
<p>An interactive user interface displays <em>Appropriate Legal
Notices</em> to the extent that it includes a convenient and prominently
visible feature that</p>
<ol type="1">
<li>displays an appropriate copyright notice, and</li>
<li>tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the work
under this License, and how to view a copy of this License.</li>
</ol>
<p>If the interface presents a list of user commands or options, such as
a menu, a prominent item in the list meets this criterion.</p>
<h3 id="source-code.">1. Source Code.</h3>
<p>The <em>source code</em> for a work means the preferred form of the
work for making modifications to it. <em>Object code</em> means any
non-source form of a work.</p>
<p>A <em>Standard Interface</em> means an interface that either is an
official standard defined by a recognized standards body, or, in the
case of interfaces specified for a particular programming language, one
that is widely used among developers working in that language.</p>
<p>The <em>System Libraries</em> of an executable work include anything,
other than the work as a whole, that (a) is included in the normal form
of packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that Major
Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
<em>Major Component</em>, in this context, means a major essential
component (kernel, window system, and so on) of the specific operating
system (if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.</p>
<p>The <em>Corresponding Source</em> for a work in object code form
means all the source code needed to generate, install, and (for an
executable work) run the object code and to modify the work, including
scripts to control those activities. However, it does not include the
work’s System Libraries, or general-purpose tools or generally available
free programs which are used unmodified in performing those activities
but which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for the
work, and the source code for shared libraries and dynamically linked
subprograms that the work is specifically designed to require, such as
by intimate data communication or control flow between those subprograms
and other parts of the work.</p>
<p>The Corresponding Source need not include anything that users can
regenerate automatically from other parts of the Corresponding
Source.</p>
<p>The Corresponding Source for a work in source code form is that same
work.</p>
<h3 id="basic-permissions.">2. Basic Permissions.</h3>
<p>All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright
law.</p>
<p>You may make, run and propagate covered works that you do not convey,
without conditions so long as your license otherwise remains in force.
You may convey covered works to others for the sole purpose of having
them make modifications exclusively for you, or provide you with
facilities for running those works, provided that you comply with the
terms of this License in conveying all material for which you do not
control copyright. Those thus making or running the covered works for
you must do so exclusively on your behalf, under your direction and
control, on terms that prohibit them from making any copies of your
copyrighted material outside their relationship with you.</p>
<p>Conveying under any other circumstances is permitted solely under the
conditions stated below. Sublicensing is not allowed; section 10 makes
it unnecessary.</p>
<h3 id="protecting-users-legal-rights-from-anti-circumvention-law.">3.
Protecting Users’ Legal Rights From Anti-Circumvention Law.</h3>
<p>No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article 11
of the WIPO copyright treaty adopted on 20 December 1996, or similar
laws prohibiting or restricting circumvention of such measures.</p>
<p>When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to the
covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work’s
users, your or third parties’ legal rights to forbid circumvention of
technological measures.</p>
<h3 id="conveying-verbatim-copies.">4. Conveying Verbatim Copies.</h3>
<p>You may convey verbatim copies of the Program’s source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice; keep
intact all notices stating that this License and any non-permissive
terms added in accord with section 7 apply to the code; keep intact all
notices of the absence of any warranty; and give all recipients a copy
of this License along with the Program.</p>
<p>You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.</p>
<h3 id="conveying-modified-source-versions.">5. Conveying Modified
Source Versions.</h3>
<p>You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the terms
of section 4, provided that you also meet all of these conditions:</p>
<ul>
<li><ol type="a">
<li>The work must carry prominent notices stating that you modified it,
and giving a relevant date.</li>
</ol></li>
<li><ol start="2" type="a">
<li>The work must carry prominent notices stating that it is released
under this License and any conditions added under section 7. This
requirement modifies the requirement in section 4 to <em>keep intact all
notices</em>.</li>
</ol></li>
<li><ol start="3" type="a">
<li>You must license the entire work, as a whole, under this License to
anyone who comes into possession of a copy. This License will therefore
apply, along with any applicable section 7 additional terms, to the
whole of the work, and all its parts, regardless of how they are
packaged. This License gives no permission to license the work in any
other way, but it does not invalidate such permission if you have
separately received it.</li>
</ol></li>
<li><ol start="4" type="a">
<li>If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your work need
not make them do so.</li>
</ol></li>
</ul>
<p>A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work, and
which are not combined with it such as to form a larger program, in or
on a volume of a storage or distribution medium, is called an
<em>aggregate</em> if the compilation and its resulting copyright are
not used to limit the access or legal rights of the compilation’s users
beyond what the individual works permit. Inclusion of a covered work in
an aggregate does not cause this License to apply to the other parts of
the aggregate.</p>
<h3 id="conveying-non-source-forms.">6. Conveying Non-Source Forms.</h3>
<p>You may convey a covered work in object code form under the terms of
sections 4 and 5, provided that you also convey the machine-readable
Corresponding Source under the terms of this License, in one of these
ways:</p>
<ul>
<li><ol type="a">
<li>Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium customarily used
for software interchange.</li>
</ol></li>
<li><ol start="2" type="a">
<li>Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a written
offer, valid for at least three years and valid for as long as you offer
spare parts or customer support for that product model, to give anyone
who possesses the object code either</li>
</ol>
<ol type="1">
<li>a copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical medium
customarily used for software interchange, for a price no more than your
reasonable cost of physically performing this conveying of source,
or</li>
<li>access to copy the Corresponding Source from a network server at no
charge.</li>
</ol></li>
<li><ol start="3" type="a">
<li>Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This alternative is
allowed only occasionally and noncommercially, and only if you received
the object code with such an offer, in accord with subsection 6b.</li>
</ol></li>
<li><ol start="4" type="a">
<li>Convey the object code by offering access from a designated place
(gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to copy
the object code is a network server, the Corresponding Source may be on
a different server operated by you or a third party) that supports
equivalent copying facilities, provided you maintain clear directions
next to the object code saying where to find the Corresponding Source.
Regardless of what server hosts the Corresponding Source, you remain
obligated to ensure that it is available for as long as needed to
satisfy these requirements.</li>
</ol></li>
<li><ol start="5" type="a">
<li>Convey the object code using peer-to-peer transmission, provided you
inform other peers where the object code and Corresponding Source of the
work are being offered to the general public at no charge under
subsection 6d.</li>
</ol></li>
</ul>
<p>A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be included
in conveying the object code work.</p>
<p>A <em>User Product</em> is either</p>
<ol type="1">
<li>a <em>consumer product</em>, which means any tangible personal
property which is normally used for personal, family, or household
purposes, or</li>
<li>anything designed or sold for incorporation into a dwelling.</li>
</ol>
<p>In determining whether a product is a consumer product, doubtful
cases shall be resolved in favor of coverage. For a particular product
received by a particular user, <em>normally used</em> refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.</p>
<p><em>Installation Information</em> for a User Product means any
methods, procedures, authorization keys, or other information required
to install and execute modified versions of a covered work in that User
Product from a modified version of its Corresponding Source. The
information must suffice to ensure that the continued functioning of the
modified object code is in no case prevented or interfered with solely
because modification has been made.</p>
<p>If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied by
the Installation Information. But this requirement does not apply if
neither you nor any third party retains the ability to install modified
object code on the User Product (for example, the work has been
installed in ROM).</p>
<p>The requirement to provide Installation Information does not include
a requirement to continue to provide support service, warranty, or
updates for a work that has been modified or installed by the recipient,
or for the User Product in which it has been modified or installed.
Access to a network may be denied when the modification itself
materially and adversely affects the operation of the network or
violates the rules and protocols for communication across the
network.</p>
<p>Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in source
code form), and must require no special password or key for unpacking,
reading or copying.</p>
<h3 id="additional-terms.">7. Additional Terms.</h3>
<p><em>Additional permissions</em> are terms that supplement the terms
of this License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by this
License without regard to the additional permissions.</p>
<p>When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own removal
in certain cases when you modify the work.) You may place additional
permissions on material, added by you to a covered work, for which you
have or can give appropriate copyright permission.</p>
<p>Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders
of that material) supplement the terms of this License with terms:</p>
<ul>
<li><ol type="a">
<li>Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or</li>
</ol></li>
<li><ol start="2" type="a">
<li>Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal Notices
displayed by works containing it; or</li>
</ol></li>
<li><ol start="3" type="a">
<li>Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or</li>
</ol></li>
<li><ol start="4" type="a">
<li>Limiting the use for publicity purposes of names of licensors or
authors of the material; or</li>
</ol></li>
<li><ol start="5" type="a">
<li>Declining to grant rights under trademark law for use of some trade
names, trademarks, or service marks; or</li>
</ol></li>
<li><ol start="6" type="a">
<li>Requiring indemnification of licensors and authors of that material
by anyone who conveys the material (or modified versions of it) with
contractual assumptions of liability to the recipient, for any liability
that these contractual assumptions directly impose on those licensors
and authors.</li>
</ol></li>
</ul>
<p>All other non-permissive additional terms are considered <em>further
restrictions</em> within the meaning of section 10. If the Program as
you received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains a
further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms of
that license document, provided that the further restriction does not
survive such relicensing or conveying.</p>
<p>If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the additional
terms that apply to those files, or a notice indicating where to find
the applicable terms.</p>
<p>Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions; the above
requirements apply either way.</p>
<h3 id="termination.">8. Termination.</h3>
<p>You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).</p>
<p>However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated</p>
<ul>
<li><ol type="a">
<li>provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and</li>
</ol></li>
<li><ol start="2" type="a">
<li>permanently, if the copyright holder fails to notify you of the
violation by some reasonable means prior to 60 days after the
cessation.</li>
</ol></li>
</ul>
<p>Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after your
receipt of the notice.</p>
<p>Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.</p>
<h3 id="acceptance-not-required-for-having-copies.">9. Acceptance Not
Required for Having Copies.</h3>
<p>You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission to
receive a copy likewise does not require acceptance. However, nothing
other than this License grants you permission to propagate or modify any
covered work. These actions infringe copyright if you do not accept this
License. Therefore, by modifying or propagating a covered work, you
indicate your acceptance of this License to do so.</p>
<h3 id="automatic-licensing-of-downstream-recipients.">10. Automatic
Licensing of Downstream Recipients.</h3>
<p>Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.</p>
<p>An <em>entity transaction</em> is a transaction transferring control
of an organization, or substantially all assets of one, or subdividing
an organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that transaction
who receives a copy of the work also receives whatever licenses to the
work the party’s predecessor in interest had or could give under the
previous paragraph, plus a right to possession of the Corresponding
Source of the work from the predecessor in interest, if the predecessor
has it or can get it with reasonable efforts.</p>
<p>You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may not
impose a license fee, royalty, or other charge for exercise of rights
granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that any
patent claim is infringed by making, using, selling, offering for sale,
or importing the Program or any portion of it.</p>
<h3 id="patents.">11. Patents.</h3>
<p>A <em>contributor</em> is a copyright holder who authorizes use under
this License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor’s <em>contributor
version</em>.</p>
<p>A contributor’s <em>essential patent claims</em> are all patent
claims owned or controlled by the contributor, whether already acquired
or hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a consequence
of further modification of the contributor version. For purposes of this
definition, <em>control</em> includes the right to grant patent
sublicenses in a manner consistent with the requirements of this
License.</p>
<p>Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor’s essential patent claims, to make,
use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.</p>
<p>In the following three paragraphs, a <em>patent license</em> is any
express agreement or commitment, however denominated, not to enforce a
patent (such as an express permission to practice a patent or covenant
not to sue for patent infringement). To <em>grant</em> such a patent
license to a party means to make such an agreement or commitment not to
enforce a patent against the party.</p>
<p>If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone to
copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either</p>
<ol type="1">
<li>cause the Corresponding Source to be so available, or</li>
<li>arrange to deprive yourself of the benefit of the patent license for
this particular work, or</li>
<li>arrange, in a manner consistent with the requirements of this
License, to extend the patent license to downstream recipients.</li>
</ol>
<p><em>Knowingly relying</em> means you have actual knowledge that, but
for the patent license, your conveying the covered work in a country, or
your recipient’s use of the covered work in a country, would infringe
one or more identifiable patents in that country that you have reason to
believe are valid.</p>
<p>If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify or
convey a specific copy of the covered work, then the patent license you
grant is automatically extended to all recipients of the covered work
and works based on it.</p>
<p>A patent license is <em>discriminatory</em> if it does not include
within the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is in
the business of distributing software, under which you make payment to
the third party based on the extent of your activity of conveying the
work, and under which the third party grants, to any of the parties who
would receive the covered work from you, a discriminatory patent
license</p>
<ul>
<li><ol type="a">
<li>in connection with copies of the covered work conveyed by you (or
copies made from those copies), or</li>
</ol></li>
<li><ol start="2" type="a">
<li>primarily for and in connection with specific products or
compilations that contain the covered work, unless you entered into that
arrangement, or that patent license was granted, prior to 28 March
2007.</li>
</ol></li>
</ul>
<p>Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may otherwise
be available to you under applicable patent law.</p>
<h3 id="no-surrender-of-others-freedom.">12. No Surrender of Others’
Freedom.</h3>
<p>If conditions are imposed on you (whether by court order, agreement
or otherwise) that contradict the conditions of this License, they do
not excuse you from the conditions of this License. If you cannot convey
a covered work so as to satisfy simultaneously your obligations under
this License and any other pertinent obligations, then as a consequence
you may not convey it at all. For example, if you agree to terms that
obligate you to collect a royalty for further conveying from those to
whom you convey the Program, the only way you could satisfy both those
terms and this License would be to refrain entirely from conveying the
Program.</p>
<h3 id="use-with-the-gnu-affero-general-public-license.">13. Use with
the GNU Affero General Public License.</h3>
<p>Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.</p>
<h3 id="revised-versions-of-this-license.">14. Revised Versions of this
License.</h3>
<p>The Free Software Foundation may publish revised and/or new versions
of the GNU General Public License from time to time. Such new versions
will be similar in spirit to the present version, but may differ in
detail to address new problems or concerns.</p>
<p>Each version is given a distinguishing version number. If the Program
specifies that a certain numbered version of the GNU General Public
License <em>or any later version</em> applies to it, you have the option
of following the terms and conditions either of that numbered version or
of any later version published by the Free Software Foundation. If the
Program does not specify a version number of the GNU General Public
License, you may choose any version ever published by the Free Software
Foundation.</p>
<p>If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy’s
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.</p>
<p>Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.</p>
<h3 id="disclaimer-of-warranty.">15. Disclaimer of Warranty.</h3>
<p>THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM <em>AS IS</em> WITHOUT
WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF
THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.</p>
<h3 id="limitation-of-liability.">16. Limitation of Liability.</h3>
<p>IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR
CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES
ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT
NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES
SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE
WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN
ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.</p>
<h3 id="interpretation-of-sections-15-and-16.">17. Interpretation of
Sections 15 and 16.</h3>
<p>If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates an
absolute waiver of all civil liability in connection with the Program,
unless a warranty or assumption of liability accompanies a copy of the
Program in return for a fee.</p>
<h2 id="end-of-terms-and-conditions">END OF TERMS AND CONDITIONS</h2>
<h3 id="how-to-apply-these-terms-to-your-new-programs">How to Apply
These Terms to Your New Programs</h3>
<p>If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these
terms.</p>
<p>To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least the
<em>copyright</em> line and a pointer to where the full notice is
found.</p>
<pre><code>&lt;one line to give the program&#39;s name and a brief idea of what it does.&gt;
Copyright (C) &lt;year&gt; &lt;name of author&gt;
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see &lt;http://www.gnu.org/licenses/&gt;.</code></pre>
<p>Also add information on how to contact you by electronic and paper
mail.</p>
<p>If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:</p>
<pre><code>&lt;program&gt; Copyright (C) &lt;year&gt; &lt;name of author&gt;
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w&#39;.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c&#39; for details.</code></pre>
<p>The hypothetical commands <code>show w</code> and <code>show c</code>
should show the appropriate parts of the General Public License. Of
course, your program’s commands might be different; for a GUI interface,
you would use an <em>about box</em>.</p>
<p>You should also get your employer (if you work as a programmer) or
school, if any, to sign a <em>copyright disclaimer</em> for the program,
if necessary. For more information on this, and how to apply and follow
the GNU GPL, see <a
href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>.</p>
<p>The GNU General Public License does not permit incorporating your
program into proprietary programs. If your program is a subroutine
library, you may consider it more useful to permit linking proprietary
applications with the library. If this is what you want to do, use the
GNU Lesser General Public License instead of this License. But first,
please read <a
href="http://www.gnu.org/philosophy/why-not-lgpl.html">http://www.gnu.org/philosophy/why-not-lgpl.html</a>.</p>
# Purr-Data Copyright and Terms of Use
Pd, as well as this compilation of Pd-related software known as Purr-Data
a.k.a. Pd-l2ork 2.x, is copyrighted software by various authors, but it is
distributed as open-source software, which means that it can be used freely
and without any costs under the appropriate license terms, as detailed below.
THIS SOFTWARE IS PROVIDED BY THE AUTHORS "AS IS" AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.
## Pd License
Copyright (c) by Miller S. Puckette and others
Pd (the core system including the main program and the built-in objects, i.e.,
everything that lives in the pd subdirectory of the sources) is licensed under
a 3-clause BSD license, please check the [LICENSE.txt](pd/LICENSE.txt) file
for details.
## Bundled Software
Copyright (c) by various authors, please see the included license files for
details
Purr-Data includes a large number of bundled abstractions and externals by
various authors. These can be found in the abstractions, externals and Gem
subdirectories in the source, and in the extra subdirectory of the Purr-Data
library directory of the installed application. Each of these items has its
own open-source license under which it is distributed (mostly different
variations of the BSD license or the GPL), so please check the corresponding
license files in the source or the extra directory of the installed package
for license information pertaining to each of the different software modules.
## Purr-Data License
Copyright (c) by Hans-Christoph Steiner, Ico Bukvic, Jonathan Wilkes and
others
Purr-Data (by Jonathan Wilkes) is based on Pd-l2ork (by Ico Bukvic) which in
turn is based on Pd-extended (by Hans-Christoph Steiner), which is licensed
under the GPL (GNU Public License) version 3, replicated below. Please note
that this license applies to all parts of this package which are *not*
accompanied by their own license conditions (such as the Pd core and the
bundled software, as detailed above).
# GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 [Free Software Foundation, Inc.](http://fsf.org/)
Everyone is permitted to copy and distribute verbatim copies of this license
document, but changing it is not allowed.
## Preamble
The GNU General Public License is a free, copyleft license for software and
other kinds of works.
The licenses for most software and other practical works are designed to take
away your freedom to share and change the works. By contrast, the GNU General
Public License is intended to guarantee your freedom to share and change all
versions of a program--to make sure it remains free software for all its users.
We, the Free Software Foundation, use the GNU General Public License for most
of our software; it applies also to any other work released this way by its
authors. You can apply it to your programs, too.
When we speak of free software, we are referring to freedom, not price. Our
General Public Licenses are designed to make sure that you have the freedom to
distribute copies of free software (and charge for them if you wish), that you
receive source code or can get it if you want it, that you can change the
software or use pieces of it in new free programs, and that you know you can do
these things.
To protect your rights, we need to prevent others from denying you these rights
or asking you to surrender the rights. Therefore, you have certain
responsibilities if you distribute copies of the software, or if you modify it:
responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether gratis or for
a fee, you must pass on to the recipients the same freedoms that you received.
You must make sure that they, too, receive or can get the source code. And you
must show them these terms so they know their rights.
Developers that use the GNU GPL protect your rights with two steps:
1. assert copyright on the software, and
2. offer you this License giving you legal permission to copy, distribute
and/or modify it.
For the developers' and authors' protection, the GPL clearly explains that
there is no warranty for this free software. For both users' and authors' sake,
the GPL requires that modified versions be marked as changed, so that their
problems will not be attributed erroneously to authors of previous versions.
Some devices are designed to deny users access to install or run modified
versions of the software inside them, although the manufacturer can do so. This
is fundamentally incompatible with the aim of protecting users' freedom to
change the software. The systematic pattern of such abuse occurs in the area of
products for individuals to use, which is precisely where it is most
unacceptable. Therefore, we have designed this version of the GPL to prohibit
the practice for those products. If such problems arise substantially in other
domains, we stand ready to extend this provision to those domains in future
versions of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents. States
should not allow patents to restrict development and use of software on
general-purpose computers, but in those that do, we wish to avoid the special
danger that patents applied to a free program could make it effectively
proprietary. To prevent this, the GPL assures that patents cannot be used to
render the program non-free.
The precise terms and conditions for copying, distribution and modification
follow.
## TERMS AND CONDITIONS
### 0. Definitions.
*This License* refers to version 3 of the GNU General Public License.
*Copyright* also means copyright-like laws that apply to other kinds of works,
such as semiconductor masks.
*The Program* refers to any copyrightable work licensed under this License.
Each licensee is addressed as *you*. *Licensees* and *recipients* may be
individuals or organizations.
To *modify* a work means to copy from or adapt all or part of the work in a
fashion requiring copyright permission, other than the making of an exact copy.
The resulting work is called a *modified version* of the earlier work or a work
*based on* the earlier work.
A *covered work* means either the unmodified Program or a work based on the
Program.
To *propagate* a work means to do anything with it that, without permission,
would make you directly or secondarily liable for infringement under applicable
copyright law, except executing it on a computer or modifying a private copy.
Propagation includes copying, distribution (with or without modification),
making available to the public, and in some countries other activities as well.
To *convey* a work means any kind of propagation that enables other parties to
make or receive copies. Mere interaction with a user through a computer
network, with no transfer of a copy, is not conveying.
An interactive user interface displays *Appropriate Legal Notices* to the
extent that it includes a convenient and prominently visible feature that
1. displays an appropriate copyright notice, and
2. tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the work
under this License, and how to view a copy of this License.
If the interface presents a list of user commands or options, such as a menu, a
prominent item in the list meets this criterion.
### 1. Source Code.
The *source code* for a work means the preferred form of the work for making
modifications to it. *Object code* means any non-source form of a work.
A *Standard Interface* means an interface that either is an official standard
defined by a recognized standards body, or, in the case of interfaces specified
for a particular programming language, one that is widely used among developers
working in that language.
The *System Libraries* of an executable work include anything, other than the
work as a whole, that (a) is included in the normal form of packaging a Major
Component, but which is not part of that Major Component, and (b) serves only
to enable use of the work with that Major Component, or to implement a Standard
Interface for which an implementation is available to the public in source code
form. A *Major Component*, in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system (if any) on
which the executable work runs, or a compiler used to produce the work, or an
object code interpreter used to run it.
The *Corresponding Source* for a work in object code form means all the source
code needed to generate, install, and (for an executable work) run the object
code and to modify the work, including scripts to control those activities.
However, it does not include the work's System Libraries, or general-purpose
tools or generally available free programs which are used unmodified in
performing those activities but which are not part of the work. For example,
Corresponding Source includes interface definition files associated with source
files for the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require, such as
by intimate data communication or control flow between those subprograms and
other parts of the work.
The Corresponding Source need not include anything that users can regenerate
automatically from other parts of the Corresponding Source.
The Corresponding Source for a work in source code form is that same work.
### 2. Basic Permissions.
All rights granted under this License are granted for the term of copyright on
the Program, and are irrevocable provided the stated conditions are met. This
License explicitly affirms your unlimited permission to run the unmodified
Program. The output from running a covered work is covered by this License only
if the output, given its content, constitutes a covered work. This License
acknowledges your rights of fair use or other equivalent, as provided by
copyright law.
You may make, run and propagate covered works that you do not convey, without
conditions so long as your license otherwise remains in force. You may convey
covered works to others for the sole purpose of having them make modifications
exclusively for you, or provide you with facilities for running those works,
provided that you comply with the terms of this License in conveying all
material for which you do not control copyright. Those thus making or running
the covered works for you must do so exclusively on your behalf, under your
direction and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under the
conditions stated below. Sublicensing is not allowed; section 10 makes it
unnecessary.
### 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological measure
under any applicable law fulfilling obligations under article 11 of the WIPO
copyright treaty adopted on 20 December 1996, or similar laws prohibiting or
restricting circumvention of such measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention is
effected by exercising rights under this License with respect to the covered
work, and you disclaim any intention to limit operation or modification of the
work as a means of enforcing, against the work's users, your or third parties'
legal rights to forbid circumvention of technological measures.
### 4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you receive it,
in any medium, provided that you conspicuously and appropriately publish on
each copy an appropriate copyright notice; keep intact all notices stating that
this License and any non-permissive terms added in accord with section 7 apply
to the code; keep intact all notices of the absence of any warranty; and give
all recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey, and you may
offer support or warranty protection for a fee.
### 5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to produce it
from the Program, in the form of source code under the terms of section 4,
provided that you also meet all of these conditions:
- a) The work must carry prominent notices stating that you modified it, and
giving a relevant date.
- b) The work must carry prominent notices stating that it is released under
this License and any conditions added under section 7. This requirement
modifies the requirement in section 4 to *keep intact all notices*.
- c) You must license the entire work, as a whole, under this License to
anyone who comes into possession of a copy. This License will therefore
apply, along with any applicable section 7 additional terms, to the whole
of the work, and all its parts, regardless of how they are packaged. This
License gives no permission to license the work in any other way, but it
does not invalidate such permission if you have separately received it.
- d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your work need
not make them do so.
A compilation of a covered work with other separate and independent works,
which are not by their nature extensions of the covered work, and which are not
combined with it such as to form a larger program, in or on a volume of a
storage or distribution medium, is called an *aggregate* if the compilation and
its resulting copyright are not used to limit the access or legal rights of the
compilation's users beyond what the individual works permit. Inclusion of a
covered work in an aggregate does not cause this License to apply to the other
parts of the aggregate.
### 6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms of sections 4
and 5, provided that you also convey the machine-readable Corresponding Source
under the terms of this License, in one of these ways:
- a) Convey the object code in, or embodied in, a physical product (including
a physical distribution medium), accompanied by the Corresponding Source
fixed on a durable physical medium customarily used for software
interchange.
- b) Convey the object code in, or embodied in, a physical product (including
a physical distribution medium), accompanied by a written offer, valid for
at least three years and valid for as long as you offer spare parts or
customer support for that product model, to give anyone who possesses the
object code either
1. a copy of the Corresponding Source for all the software in the product
that is covered by this License, on a durable physical medium
customarily used for software interchange, for a price no more than your
reasonable cost of physically performing this conveying of source, or
2. access to copy the Corresponding Source from a network server at no
charge.
- c) Convey individual copies of the object code with a copy of the written
offer to provide the Corresponding Source. This alternative is allowed only
occasionally and noncommercially, and only if you received the object code
with such an offer, in accord with subsection 6b.
- d) Convey the object code by offering access from a designated place
(gratis or for a charge), and offer equivalent access to the Corresponding
Source in the same way through the same place at no further charge. You
need not require recipients to copy the Corresponding Source along with the
object code. If the place to copy the object code is a network server, the
Corresponding Source may be on a different server operated by you or a
third party) that supports equivalent copying facilities, provided you
maintain clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the Corresponding
Source, you remain obligated to ensure that it is available for as long as
needed to satisfy these requirements.
- e) Convey the object code using peer-to-peer transmission, provided you
inform other peers where the object code and Corresponding Source of the
work are being offered to the general public at no charge under subsection
6d.
A separable portion of the object code, whose source code is excluded from the
Corresponding Source as a System Library, need not be included in conveying the
object code work.
A *User Product* is either
1. a *consumer product*, which means any tangible personal property which is
normally used for personal, family, or household purposes, or
2. anything designed or sold for incorporation into a dwelling.
In determining whether a product is a consumer product, doubtful cases shall be
resolved in favor of coverage. For a particular product received by a
particular user, *normally used* refers to a typical or common use of that
class of product, regardless of the status of the particular user or of the way
in which the particular user actually uses, or expects or is expected to use,
the product. A product is a consumer product regardless of whether the product
has substantial commercial, industrial or non-consumer uses, unless such uses
represent the only significant mode of use of the product.
*Installation Information* for a User Product means any methods, procedures,
authorization keys, or other information required to install and execute
modified versions of a covered work in that User Product from a modified
version of its Corresponding Source. The information must suffice to ensure
that the continued functioning of the modified object code is in no case
prevented or interfered with solely because modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as part of a
transaction in which the right of possession and use of the User Product is
transferred to the recipient in perpetuity or for a fixed term (regardless of
how the transaction is characterized), the Corresponding Source conveyed under
this section must be accompanied by the Installation Information. But this
requirement does not apply if neither you nor any third party retains the
ability to install modified object code on the User Product (for example, the
work has been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates for a
work that has been modified or installed by the recipient, or for the User
Product in which it has been modified or installed. Access to a network may be
denied when the modification itself materially and adversely affects the
operation of the network or violates the rules and protocols for communication
across the network.
Corresponding Source conveyed, and Installation Information provided, in accord
with this section must be in a format that is publicly documented (and with an
implementation available to the public in source code form), and must require
no special password or key for unpacking, reading or copying.
### 7. Additional Terms.
*Additional permissions* are terms that supplement the terms of this License by
making exceptions from one or more of its conditions. Additional permissions
that are applicable to the entire Program shall be treated as though they were
included in this License, to the extent that they are valid under applicable
law. If additional permissions apply only to part of the Program, that part may
be used separately under those permissions, but the entire Program remains
governed by this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option remove any
additional permissions from that copy, or from any part of it. (Additional
permissions may be written to require their own removal in certain cases when
you modify the work.) You may place additional permissions on material, added
by you to a covered work, for which you have or can give appropriate copyright
permission.
Notwithstanding any other provision of this License, for material you add to a
covered work, you may (if authorized by the copyright holders of that material)
supplement the terms of this License with terms:
- a) Disclaiming warranty or limiting liability differently from the terms of
sections 15 and 16 of this License; or
- b) Requiring preservation of specified reasonable legal notices or author
attributions in that material or in the Appropriate Legal Notices displayed
by works containing it; or
- c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in reasonable
ways as different from the original version; or
- d) Limiting the use for publicity purposes of names of licensors or authors
of the material; or
- e) Declining to grant rights under trademark law for use of some trade
names, trademarks, or service marks; or
- f) Requiring indemnification of licensors and authors of that material by
anyone who conveys the material (or modified versions of it) with
contractual assumptions of liability to the recipient, for any liability
that these contractual assumptions directly impose on those licensors and
authors.
All other non-permissive additional terms are considered *further restrictions*
within the meaning of section 10. If the Program as you received it, or any
part of it, contains a notice stating that it is governed by this License along
with a term that is a further restriction, you may remove that term. If a
license document contains a further restriction but permits relicensing or
conveying under this License, you may add to a covered work material governed
by the terms of that license document, provided that the further restriction
does not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you must place,
in the relevant source files, a statement of the additional terms that apply to
those files, or a notice indicating where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the form of a
separately written license, or stated as exceptions; the above requirements
apply either way.
### 8. Termination.
You may not propagate or modify a covered work except as expressly provided
under this License. Any attempt otherwise to propagate or modify it is void,
and will automatically terminate your rights under this License (including any
patent licenses granted under the third paragraph of section 11).
However, if you cease all violation of this License, then your license from a
particular copyright holder is reinstated
- a) provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and
- b) permanently, if the copyright holder fails to notify you of the
violation by some reasonable means prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is reinstated
permanently if the copyright holder notifies you of the violation by some
reasonable means, this is the first time you have received notice of violation
of this License (for any work) from that copyright holder, and you cure the
violation prior to 30 days after your receipt of the notice.
Termination of your rights under this section does not terminate the licenses
of parties who have received copies or rights from you under this License. If
your rights have been terminated and not permanently reinstated, you do not
qualify to receive new licenses for the same material under section 10.
### 9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or run a copy
of the Program. Ancillary propagation of a covered work occurring solely as a
consequence of using peer-to-peer transmission to receive a copy likewise does
not require acceptance. However, nothing other than this License grants you
permission to propagate or modify any covered work. These actions infringe
copyright if you do not accept this License. Therefore, by modifying or
propagating a covered work, you indicate your acceptance of this License to do
so.
### 10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically receives a
license from the original licensors, to run, modify and propagate that work,
subject to this License. You are not responsible for enforcing compliance by
third parties with this License.
An *entity transaction* is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered work
results from an entity transaction, each party to that transaction who receives
a copy of the work also receives whatever licenses to the work the party's
predecessor in interest had or could give under the previous paragraph, plus a
right to possession of the Corresponding Source of the work from the
predecessor in interest, if the predecessor has it or can get it with
reasonable efforts.
You may not impose any further restrictions on the exercise of the rights
granted or affirmed under this License. For example, you may not impose a
license fee, royalty, or other charge for exercise of rights granted under this
License, and you may not initiate litigation (including a cross-claim or
counterclaim in a lawsuit) alleging that any patent claim is infringed by
making, using, selling, offering for sale, or importing the Program or any
portion of it.
### 11. Patents.
A *contributor* is a copyright holder who authorizes use under this License of
the Program or a work on which the Program is based. The work thus licensed is
called the contributor's *contributor version*.
A contributor's *essential patent claims* are all patent claims owned or
controlled by the contributor, whether already acquired or hereafter acquired,
that would be infringed by some manner, permitted by this License, of making,
using, or selling its contributor version, but do not include claims that would
be infringed only as a consequence of further modification of the contributor
version. For purposes of this definition, *control* includes the right to grant
patent sublicenses in a manner consistent with the requirements of this
License.
Each contributor grants you a non-exclusive, worldwide, royalty-free patent
license under the contributor's essential patent claims, to make, use, sell,
offer for sale, import and otherwise run, modify and propagate the contents of
its contributor version.
In the following three paragraphs, a *patent license* is any express agreement
or commitment, however denominated, not to enforce a patent (such as an express
permission to practice a patent or covenant not to sue for patent
infringement). To *grant* such a patent license to a party means to make such
an agreement or commitment not to enforce a patent against the party.
If you convey a covered work, knowingly relying on a patent license, and the
Corresponding Source of the work is not available for anyone to copy, free of
charge and under the terms of this License, through a publicly available
network server or other readily accessible means, then you must either
1. cause the Corresponding Source to be so available, or
2. arrange to deprive yourself of the benefit of the patent license for this
particular work, or
3. arrange, in a manner consistent with the requirements of this License, to
extend the patent license to downstream recipients.
*Knowingly relying* means you have actual knowledge that, but for the patent
license, your conveying the covered work in a country, or your recipient's use
of the covered work in a country, would infringe one or more identifiable
patents in that country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or arrangement, you
convey, or propagate by procuring conveyance of, a covered work, and grant a
patent license to some of the parties receiving the covered work authorizing
them to use, propagate, modify or convey a specific copy of the covered work,
then the patent license you grant is automatically extended to all recipients
of the covered work and works based on it.
A patent license is *discriminatory* if it does not include within the scope of
its coverage, prohibits the exercise of, or is conditioned on the non-exercise
of one or more of the rights that are specifically granted under this License.
You may not convey a covered work if you are a party to an arrangement with a
third party that is in the business of distributing software, under which you
make payment to the third party based on the extent of your activity of
conveying the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory patent
license
- a) in connection with copies of the covered work conveyed by you (or copies
made from those copies), or
- b) primarily for and in connection with specific products or compilations
that contain the covered work, unless you entered into that arrangement, or
that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting any implied
license or other defenses to infringement that may otherwise be available to
you under applicable patent law.
### 12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not excuse
you from the conditions of this License. If you cannot convey a covered work so
as to satisfy simultaneously your obligations under this License and any other
pertinent obligations, then as a consequence you may not convey it at all. For
example, if you agree to terms that obligate you to collect a royalty for
further conveying from those to whom you convey the Program, the only way you
could satisfy both those terms and this License would be to refrain entirely
from conveying the Program.
### 13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have permission to
link or combine any covered work with a work licensed under version 3 of the
GNU Affero General Public License into a single combined work, and to convey
the resulting work. The terms of this License will continue to apply to the
part which is the covered work, but the special requirements of the GNU Affero
General Public License, section 13, concerning interaction through a network
will apply to the combination as such.
### 14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of the GNU
General Public License from time to time. Such new versions will be similar in
spirit to the present version, but may differ in detail to address new problems
or concerns.
Each version is given a distinguishing version number. If the Program specifies
that a certain numbered version of the GNU General Public License *or any later
version* applies to it, you have the option of following the terms and
conditions either of that numbered version or of any later version published by
the Free Software Foundation. If the Program does not specify a version number
of the GNU General Public License, you may choose any version ever published by
the Free Software Foundation.
If the Program specifies that a proxy can decide which future versions of the
GNU General Public License can be used, that proxy's public statement of
acceptance of a version permanently authorizes you to choose that version for
the Program.
Later license versions may give you additional or different permissions.
However, no additional obligations are imposed on any author or copyright
holder as a result of your choosing to follow a later version.
### 15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE
LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER
PARTIES PROVIDE THE PROGRAM *AS IS* WITHOUT WARRANTY OF ANY KIND, EITHER
EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE
QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE
DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR
CORRECTION.
### 16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY
COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS
PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL,
INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE
THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED
INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE
PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY
HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
### 17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided above cannot
be given local legal effect according to their terms, reviewing courts shall
apply local law that most closely approximates an absolute waiver of all civil
liability in connection with the Program, unless a warranty or assumption of
liability accompanies a copy of the Program in return for a fee.
## END OF TERMS AND CONDITIONS ###
### How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest possible
use to the public, the best way to achieve this is to make it free software
which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest to attach
them to the start of each source file to most effectively state the exclusion
of warranty; and each file should have at least the *copyright* line and a
pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short notice like
this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w` and `show c` should show the appropriate
parts of the General Public License. Of course, your program's commands might
be different; for a GUI interface, you would use an *about box*.
You should also get your employer (if you work as a programmer) or school, if
any, to sign a *copyright disclaimer* for the program, if necessary. For more
information on this, and how to apply and follow the GNU GPL, see
[http://www.gnu.org/licenses/](http://www.gnu.org/licenses/).
The GNU General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may consider
it more useful to permit linking proprietary applications with the library. If
this is what you want to do, use the GNU Lesser General Public License instead
of this License. But first, please read
[http://www.gnu.org/philosophy/why-not-lgpl.html](http://www.gnu.org/philosophy/why-not-lgpl.html).
# Toplevel Makefile for Purr Data. Please note that at present this is just a
# thin wrapper around l2ork_addons/tar_em_up.sh, the traditional Pd-l2ork
# build script.
# The Pd-l2ork build system is very arcane and intricate. Its main purpose is
# putting together a staging area with a complete Pd-l2ork installation and
# then building installers for the supported platforms from that, pulling
# together a bunch of separate packages, each with their own build system.
# Compiling sources is just one of the tasks that the builder does. Therefore
# you'll notice that, unlike with other less complicated source packages,
# `make` will rebuild lots of things even if you just finished another build.
# The available build targets are:
# all: produce a native installer for the host platform (equivalent to
# `tar_em_up.sh -Tk`); note that in order to force a complete rebuild (like
# what `tar_em_up.sh -T` does), you'll have to run `make clean` first
# incremental: like `all`, but does an "incremental build" (equivalent to
# `tar_em_up.sh -tk`), bypassing Gem which takes an eternity to compile; please
# check the tar_em_up.sh script for details
# light: like `incremental`, but does a light build (equivalent to
# `tar_em_up.sh -tkl`) which only includes the most essential externals;
# please check the tar_em_up.sh script for details
# checkout: convenience target to check out all submodules in preparation for
# a subsequent build (the `all`, `incremental` and `dist` targets also do this
# automatically when needed)
# clean: does something similar to what `tar_em_up.sh` does in order to start
# from a clean slate, so that a subsequent build starts from scratch again
# realclean: put the sources into pristine state again (WARNING: this will get
# rid of any uncommitted source changes, too); use this as a last resort to
# get the sources into a compilable state again after things have gone awry
# dist: create a self-contained distribution tarball of the source
# NOTES:
# The realclean and dist targets use git commands and thus only work in a
# working copy of the git repo, not in the static tarball snapshots produced
# by the dist target.
# On Linux systems running `make` will try to produce a Debian package. On
# Linux distributions like Arch which are no Debian derivatives, the Debian
# packaging tools are not available. In this case, `make` will stop right
# before creating the actual package and leave the ready-made staged
# installation tree under `packages/linux_make/build` from where it can be
# copied or packaged up in any desired way.
# The incremental and light builds assume an existing staging area
# (packages/*/build directory) which is *not* cleaned before installing. This
# makes it possible to update the existing staging area after recompiling just
# a part of the system (all but Gem in the case of "incremental", only the
# Pd core and a few essential externals in the case of "light"). Use `make
# clean` beforehand if you want to install into a clean staging area.
# When doing a `light` build, which only includes the most essential
# externals, it may be desirable to manually include additional abstractions
# and externals in the build. To these ends, after running `make light` you
# can run `make` with the `foo_abs` or `foo_ext` target, where `foo` is the
# name of the desired abstraction or external, respectively. E.g., you can run
# `make light memento_abs pdlua_ext` to get a light build with the `memento`
# abstraction and the `pdlua` external included. (This will not rebuild the
# Debian package, though, so you'll have to install manually with `make
# install` instead.) The names of the desired addons must be specified as
# given in abstractions/Makefile and externals/Makefile, respectively (look
# for targets looking like `foo_install`). Also note that even though a
# subsequent `make install` will then include your addons, they won't be
# enabled by default, so you'll have to do that manually in Purr Data's
# `Startup` dialog. Simply adding the name of the addon in the `Libraries`
# list should normally do the trick. Or you can add an option like `-lib foo`
# when running Purr Data from the command line.
.PHONY: all incremental checkout clean realclean dist
# Target platform (OSX/macOS only): On Mojave (10.14 with Xcode 10) this needs
# to be at least 10.9, which is the default now. With older Xcode versions you
# can try earlier versions (>= 10.4) if you need to compile for legacy OSX
# versions.
export macos_target = 10.9
# Installation prefix under which Pd-l2ork is installed (Linux only). If this
# isn't set, a default location will be used (usually /usr/local). NOTE: We
# *always* assume that this variable is set properly in the install targets,
# as well as the (Linux) check target (see below).
prefix = /usr
ifneq ($(prefix),)
env = inst_dir="$(prefix)"
endif
install_vars = DESTDIR=$(firstword $(wildcard $(CURDIR)/packages/*/build)) prefix=$(prefix)
# You can set the nwjsver variable to indicate the nw.js version to build
# against. This will also clear out any cached nw.js binaries beforehand.
# Note that some nw.js versions for certain platforms have to be hard-coded,
# so the nwjsver variable won't affect these, but it will still cause the
# cache to be cleared and the binaries to be downloaded. See the tar_em_up.sh
# script for details.
ifneq ($(nwjsver),)
env += nwjsver="$(nwjsver)"
endif
# You can set CFLAGS to whatever special compile options are needed. E.g., to
# build the double precision version: CFLAGS = -DPD_FLOATSIZE=64
CFLAGS =
export CFLAGS
# For the light build only, you can add externals to be included in the build.
addons =
export addons
# You can also set this variable to specify externals NOT to be built. E.g.,
# to prevent building Gem (which takes an eternity to build): blacklist = gem
blacklist =
export blacklist
all:
cd l2ork_addons && $(env) ./tar_em_up.sh -Tk
incremental:
cd l2ork_addons && $(env) ./tar_em_up.sh -tk
light:
cd l2ork_addons && $(env) ./tar_em_up.sh -tkl
# Convenience targets to build the double precision version.
# Blacklist of externals which don't work with double precision yet.
double_blacklist = autotune smlib
# These are dubious, passing float* for t_float* pointers, and so are most
# likely broken, even though they compile with double precision.
double_blacklist += cyclone lyonpotpourri
all-double:
cd l2ork_addons && $(env) CFLAGS=-DPD_FLOATSIZE=64 blacklist="$(double_blacklist)" ./tar_em_up.sh -Tk
incremental-double:
cd l2ork_addons && $(env) CFLAGS=-DPD_FLOATSIZE=64 blacklist="$(double_blacklist)" ./tar_em_up.sh -tk
light-double:
cd l2ork_addons && $(env) CFLAGS=-DPD_FLOATSIZE=64 blacklist="$(double_blacklist)" ./tar_em_up.sh -tkl
%_abs:
make -C abstractions $(@:%_abs=%) $(@:%_abs=%_install) $(install_vars)
%_ext:
make -C externals $(@:%_ext=%) $(@:%_ext=%_install) $(install_vars)
checkout:
git submodule update --init --recursive
clean:
test "$(shell uname -s)" = "Darwin" && make -C packages/darwin_app clean || true
cd pd/src && aclocal && autoconf && make clean || true
cd externals/miXed && make clean || true
cd Gem/src/ && test -f Makefile && make distclean || true
cd Gem/src/ && rm -rf ./.libs && rm -rf ./*/.libs || true
cd Gem/ && test -f Makefile && make distclean || true
cd Gem/ && rm -f gemglutwindow.pd_linux Gem.pd_linux || true
rm -rf packages/*/build/
realclean:
# This requires a working copy of the git repo.
@test -d .git || (echo "Not a git repository, bailing out." && false)
git submodule deinit --all -f
git checkout .
git clean -dffx -e pd/nw/nw/
# Check targets. These run the regression tests in scripts.
# Requires a full build.
os = $(shell uname|sed 's/^\(MINGW[0-9]*\)_NT.*/\1/')
ifeq ($(os),Linux)
# Linux (all flavors)
pdprog = packages/linux_make/build$(prefix)/bin/pd-l2ork
else ifeq ($(os),Darwin)
# Mac
pdprog = packages/darwin_app/build/*.app/Contents/Resources/app.nw/bin/pd-l2ork
else ifeq ($(os),MINGW64)
# Msys2 mingw64
pdprog = packages/win64_inno/build/bin/pd.exe
else ifeq ($(os),MINGW32)
# Msys2 mingw32
pdprog = packages/win32_inno/build/bin/pd.exe
endif
ifneq ($(pdprog),)
# This runs just a quick regression test, useful to see whether the program
# works at all.
check1:
$(pdprog) -noprefs -nogui -noaudio -send 'init dollarzero $$0' scripts/regression_tests.pd
# This runs the full test suite, including the test of the externals.
check:
$(pdprog) -noprefs -nogui -noaudio -send 'init dollarzero $$0' scripts/regression_tests.pd
$(pdprog) -noprefs -nostdpath -nogui -noaudio scripts/external-tests.pd
else
check1 check:
@echo "Target $(os) not recognized, can't run 'make $@'!"; false
endif
# Installation targets. These don't work on Mac and Windows right now, you
# should use the generated installers on these systems instead. Also,
# $(prefix) must be set. $(DESTDIR) is supported as well, so you can do staged
# installs (but then again presumably you already have a staged install
# sitting in packages/*/build, so you might as well use that instead).
# Note that these targets simply (un)install whatever is in the
# packages/*/build directory at the time they're invoked. If no build
# directory is present then nothing will happen, so you need to run `make` (or
# `make incremental`, etc.) before running these targets. Also note that some
# old cruft under build/etc (all but the bash auto-completions) isn't
# installed as it isn't needed on modern Linux systems any more.
builddir = $(firstword $(wildcard packages/*/build))
ifneq ($(builddir),)
manifest = etc/bash_completion.d/pd-l2ork $(prefix:/%=%)/include/pd-l2ork $(prefix:/%=%)/lib/pd-l2ork $(patsubst $(builddir)/%,%, $(wildcard $(builddir)/$(prefix:/%=%)/bin/*) $(shell find $(builddir)/usr/share -type f))
endif
ifneq ($(manifest),)
install:
test -z "$(DESTDIR)" || (rm -rf "$(DESTDIR)" && mkdir -p "$(DESTDIR)")
tar -c -C $(builddir) $(manifest) | tar -x -C $(DESTDIR)/
# Edit the library paths in the default user.settings file so that it matches
# our installation prefix.
test -f "$(DESTDIR)"$(prefix)/lib/pd-l2ork/default.settings && cd "$(DESTDIR)"$(prefix)/lib/pd-l2ork && sed -e "s!/usr/lib/pd-l2ork!$(prefix)/lib/pd-l2ork!g" -i default.settings || true
uninstall:
rm -rf $(addprefix $(DESTDIR)/, $(manifest))
else
install:
@echo "no build directory, run make first" && false
uninstall:
@echo "no build directory, run make first" && false
endif
# Build a self-contained distribution tarball (snapshot). This is pretty much
# the same as in debuild/Makefile and must be run in a working copy of the git
# repo.
# The Debian version gets derived from the date and serial number of the last
# commit.
debversion = $(shell grep PD_L2ORK_VERSION pd/src/m_pd.h | sed 's|^.define *PD_L2ORK_VERSION *"\(.*\)".*|\1|')+git$(shell test -d .git && git rev-list --count HEAD)+$(shell test -d .git && git rev-parse --short HEAD)
# Source tarball and folder.
debsrc = purr-data_$(debversion).orig.tar.gz
debdist = purr-data-$(debversion)
# Submodules (Gem, etc.).
submodules = $(sort $(shell test -d .git && (git config --file .gitmodules --get-regexp path | awk '{ print $$2 }')))
dist: $(debsrc)
# Determine the version number of this build. We get this from m_pd.h.
PD_L2ORK_VERSION := $(shell grep PD_L2ORK_VERSION pd/src/m_pd.h | sed 's|^.define *PD_L2ORK_VERSION *"\(.*\)".*|\1|')
# Determine the build version which needs git to be computed, so we can't do
# it in a stand-alone build from a tarball.
PD_BUILD_VERSION := $(shell test -d .git && (git log -1 --format=%cd --date=short | sed -e 's/-//g'))-rev.$(shell test -d .git && git rev-parse --short HEAD)
$(debsrc):
@test -d .git || (echo "Not a git repository, bailing out." && false)
rm -rf $(debdist)
# Make sure that the submodules are initialized.
git submodule update --init
# Grab the main source.
git archive --format=tar.gz --prefix=$(debdist)/ HEAD | tar xfz -
# Grab the submodules.
for x in $(submodules); do (cd $(debdist) && rm -rf $$x && git -C ../$$x archive --format=tar.gz --prefix=$$x/ HEAD | tar xfz -); done
# Pre-generate and put s_version.h into the tarball (see above; the build
# version is generated using git which can't be done outside the git repo).
sed 's|^\(#define PD_BUILD_VERSION "\).*"|\1$(PD_BUILD_VERSION)"|' pd/src/s_version.h.in > $(debdist)/pd/src/s_version.h
# Pre-generate the markdown and html docs so that they will be included in the
# source. This means that we don't need any special tools as a build
# dependency, which makes live a lot easier.
make -C packages/gendoc version="$(PD_L2ORK_VERSION)" build_version="$(PD_BUILD_VERSION)"
mv packages/gendoc/{ReadMe,Welcome}-*.{md,html} $(debdist)/packages/gendoc
make -C packages/gendoc clean
# Create the source tarball.
tar cfz $(debsrc) $(debdist)
rm -rf $(debdist)
## Pd-L2Ork
## Purr-Data
maintainer: Ivica Ico Bukvic <ico@vt.edu>
Maintainers:
maintainer: Albert Graef <aggraef@gmail.com>
* Ivica Ico Bukvic <ico@vt.edu> (Pd-l2ork)
* Jonathan Wilkes <jancsika@yahoo.com> (Purr Data)
* Albert Graef <aggraef@gmail.com> (GitHub Mirror, JGU Packages)
maintainer: Jonathan Wilkes <jancsika@yahoo.com>
Contact: [DISIS mailing list](http://disis.music.vt.edu/cgi-bin/mailman/listinfo/l2ork-dev)
**GitLab Repository:** <https://git.purrdata.net/jwilkes/purr-data>
Official Purr Data source code in the "master" branch.
**GitHub Mirror:** <https://github.com/agraef/purr-data>
Mirrors the GitLab "master" branch, and also has "release" and "testing"
branches, binary packages, a website, and a wiki (WIP).
Contents:
* [Downloads](#downloads)
* [One Paragraph Overview](#one-paragraph-overview)
* [Flavors of Pure Data](#flavors-of-pure-data)
* [Three Paragraph Overview](#three-paragraph-overview)
* [Goals](#goals)
* [Installation Guide](#installation-guide)
* [User Guide](#user-guide)
* [Relationship of Purr Data to Pure Data](#relationship-of-purr-data-to-pure-data)
* [Build Guide](#build-guide)
* [Gnu/Linux](#linux)
* [OSX](#osx-64-bit-using-homebrew)
* [Windows](#windows-64-bit-using-msys2)
* [Code of Conduct](#code-of-conduct)
* [Project Governance](#project-governance)
* [Contributor Guide](#contributor-guide)
* [Human Interface Guidelines](#human-interface-guidelines)
* [Core Pd Notes](#core-pd-notes)
......@@ -19,23 +38,11 @@ maintainer: Jonathan Wilkes <jancsika@yahoo.com>
### One Paragraph Overview
Pure Data (aka Pd) is a visual programming language. That means you can use it to
create software graphically by drawing diagrams instead of writing lines of
Pure Data (aka Pd) is a visual programming language. That means you can use it
to create software graphically by drawing diagrams instead of writing lines of
code. These diagrams show how data flows through the software, displaying on
the screen what text-based languages require you to piece together in your mind.
### Flavors of Pure Data
There are currently three main distributions of Pure Data:
1. Pd-L2Ork. Version used by Ivica Bukvic for his laptop orchestra. This
guide is for Pd-L2Ork.
2. Pure Data "Vanilla". Miller Puckette's personal version which he hosts on
his website and maintains. It doesn't include external libraries like
objects for doing graphics, video, etc.
2. Pure Data Extended. A monolithic distribution which ships with lots of
external libraries. As of August 2015 it hasn't been updated since January 2014.
### Three Paragraph Overview
Pd has been designed with an emphasis on generating sound, video,
......@@ -56,7 +63,7 @@ methods, as well as for realizing complex systems for large-scale projects.
### Goals
Pd-L2ork has the following goals:
Purr-Data has the following goals:
1. Documentation. We like documentation. It's like code, except friendly.
2. Be reliable. Binary releases must be usable for performances and
......@@ -66,76 +73,242 @@ Pd-L2ork has the following goals:
bugs. Patches for new functionality that lack documentation are spam.
4. Be consistent. Consistent interfaces are themselves a kind of
documentation. We like documentation, so it follows that we like consistent
interfaces
interfaces.
### User Guide and Weblinks
For a more in-depth look at Purr Data for new users and developers, see:
<https://agraef.github.io/purr-data-intro/Purr-Data-Intro.html>
For more resources see:
<https://agraef.github.io/purr-data/>
For Ico Bukvic's original Pd-l2ork website see:
<http://l2ork.music.vt.edu/main/make-your-own-l2ork/software/>
### Relationship of Purr Data to Pure Data
At the time of this writing, there are four maintained distributions of Pure
Data, two of which (Purr Data, Pd-l2ork) belong to the Pd-extended lineage.
1. Purr Data. This started out as the 2.0 version of Pd-l2ork. It ships with
lots of external libraries and uses a modern GUI written using HTML5.
2. Pd-l2ork is the version used by Ivica Bukvic for his laptop orchestra.
Pd-l2ork 1.0 used tcl/tk (and tkpath) for the GUI. Pd-l2ork 2.x is a fork
of an earlier Purr Data version which is developed separately. You can find
these [here](http://l2ork.music.vt.edu/main/make-your-own-l2ork/software/).
3. Pure Data "Vanilla". Miller Puckette's personal version which he hosts on
his website and maintains. It doesn't come with external libraries
pre-installed, but it does include an interface you can use to search
and install external libraries maintained and packaged by other developers.
4. Plugdata. A new libpd-based distribution of Pure Data which can be run as a
plugin. See <https://plugdata.org/>.
### Installation Guide
### Downloads
**Windows, Ubuntu, and Mac OSX:**
Releases are done on Albert Gräf's GitHub mirror, which also provides a
website, wiki, additional documentation, and an up-to-date mirror of the
source code repository.
<https://github.com/agraef/purr-data/releases>
**More Linux packages:**
Packages for various Linux distributions (including Arch, Debian, Ubuntu, and
Fedora) are available through the JGU package repositories maintained by
Albert Gräf on the OBS (Open Build System). Detailed instructions can be found
[here](https://github.com/agraef/purr-data/wiki/Installation#linux).
You can also just go to the [OBS Download](https://software.opensuse.org/download/package?package=purr-data&project=home%3Aaggraef%3Apurr-data-jgu), pick your Linux system, and follow
the instructions.
### Build Guide
Purr Data is usually built by just running `make` in the toplevel source
directory after checking out the sources from its git repository. This works
across all supported platforms (Linux, Mac and Windows at this time).
The Makefile also offers the customary targets to clean (`make clean`, or
`make realclean` to put the sources in pristine state again) and to roll a
self-contained distribution tarball (`make dist`), as well as some other
convenience targets (please check the comments at the beginning of the Makefile
for more information).
However, to make this work, you will most likely have to install some
prerequisites first: *build tools* such as a C/C++ compiler and the make
program itself, as well as *dependencies*, the libraries that Purr Data needs.
Detailed instructions for each of the supported platforms are given below.
#### Linux
To install using a pre-compiled binary, follow these instructions:
http://l2ork.music.vt.edu/main/?page_id=56
To set up a development environment, first make sure you have the following
package dependencies listed here:
http://l2ork.music.vt.edu/main/?page_id=56
Then follow the steps outlined here:
http://l2ork.music.vt.edu/main/?page_id=56#install-dev
#### Windows 32-bit Using msys2
Time to build: *roughly 1.5 hours-- 30 minutes of this is for Gem alone*
Important note: check the name of your Windows user account. If it has a space
in it-- like "My Home Computer" or "2nd Laptop", then **stop**. You may not
use this guide. (Actually you can probably just install everything in ~/.. in
that case, but I haven't tested doing it like that. Sorry. Get a better OS...)
1. Download and install [msys2](https://msys2.github.io/) *(5 minutes)*
There are two installers-- one for 32-bit Windows systems (i386) and one for
64-bit Windows (x_64). Be sure you know which
[version](http://windows.microsoft.com/en-us/windows/32-bit-and-64-bit-windows#1TC=windows-7)
of Windows you are running and download the appropriate installer.
Note: don't run it after it installs. You'll open it manually in the next step.
2. Run MinGW-w64 Win32 Shell *(less than a minute)*
msys2 adds three Start Menu items for different "flavors" of shell:
+ MinGW-w64 __Win32__ Shell <- click this one!
+ MinGW-w64 Win64 Shell
+ MSYS Shell
3. Install the dependencies *(5-10 minutes)*
Once the shell opens, we need to install the dependencies for building
Purr Data. Issue the following command:<code>
pacman -S autoconf automake git libtool \
make mingw-w64-i686-dlfcn mingw-w64-i686-fftw \
mingw-w64-i686-fluidsynth \
mingw-w64-i686-ftgl mingw-w64-i686-fribidi \
mingw-w64-i686-ladspa-sdk mingw-w64-i686-lame \
mingw-w64-i686-libsndfile mingw-w64-i686-libvorbis \
mingw-w64-i686-lua mingw-w64-i686-toolchain \
rsync unzip wget</code>
4. Download the source code *(3-6 minutes)*
Issue the following command to create a new directory "purr-data" and clone
the repository to it:<code>
git clone https://git.purrdata.net/jwilkes/purr-data.git</code>
5. Enter the purr-data/l2ork_addons directory *(less than a minute)*<code>
cd purr-data/l2ork_addons</code>
6. Finally, build Purr-Data *(45-50 minutes)*<code>
./tar_em_up.sh -Z</code>
7. Look in purr-data/packages/win32_inno/Output and click the setup file to
start installing Purr Data to your machine.
Time to build: *10 minutes light install, 45 minutes to 1.5 hours full install*
Hard drive space required: *roughly 2.5 GB*
0. Remember to update your packages:
sudo apt-get update && sudo apt-get upgrade
1. Install the dependencies:
sudo apt-get install bison flex automake libasound2-dev \
libjack-jackd2-dev libtool libbluetooth-dev libgl1-mesa-dev \
libglu1-mesa-dev libglew-dev libmagick++-dev libftgl-dev \
libgmerlin-dev libgmerlin-avdec-dev libavifile-0.7-dev \
libmpeg3-dev libquicktime-dev libv4l-dev libraw1394-dev \
libdc1394-22-dev libfftw3-dev libvorbis-dev ladspa-sdk \
dssi-dev tap-plugins invada-studio-plugins-ladspa blepvco \
swh-plugins mcp-plugins cmt blop slv2-jack omins rev-plugins \
libslv2-dev dssi-utils vco-plugins wah-plugins fil-plugins \
mda-lv2 libmp3lame-dev libspeex-dev libgsl0-dev \
portaudio19-dev liblua5.3-dev python-dev libsmpeg0 libjpeg62-turbo \
libgsm1-dev libgtk2.0-dev git libstk0-dev \
libfluidsynth-dev fluid-soundfont-gm byacc \
python3-markdown
**Note:** The given package names are for a generic Debian/Ubuntu system.
However, package names and versions vary *a lot* between different Linux
distributions and releases, thus it's impossible to give a definitive and
up-to-date package list here. Please consult your distribution's
documentation and package manager to find the exact package names for your
system.
2. The gui toolkit may require installing the following extra dependencies
sudo apt-get install gconf2 libnss3
3. Clone the Purr-Data repository *(2 to 10 minutes)*
git clone https://git.purrdata.net/jwilkes/purr-data.git
4. Compile the code *(5 minutes [light] to 1.5 hours [full])*
* to build only the core: `make light` *(5 minutes)*
* to build the core and all externals: `make all` *(20 minutes to 1.5 hours)*
* to build everything *except* Gem: `make incremental` *(10 to 20 minutes)*
5. If you're using an apt-based Linux distribution and you have the necessary
Debian packaging tools installed, there should now be an installer file in
the main source directory, which can be installed as usual. Otherwise, run
`make install` to install the software, and `make uninstall` to remove it
again.
#### OSX 64-bit using Homebrew
Time to build: *50 minutes to 1.5 hours*
Hard drive space required: *roughly 2 GB*
1. Install [Homebrew](https://brew.sh) *(15 minutes)*
(asks for password twice-- once for command line tools, once for homebrew)
2. Install the dependencies *(10 minutes)*:
brew install wget
brew install autoconf
brew install automake
brew install libtool
brew install fftw
brew install python
brew install lua
brew install fluidsynth
brew install faac
brew install jpeg
brew install lame
brew install libvorbis
brew install speex
brew install gsl
brew install libquicktime
brew install sdl2
brew install pkg-config
You'll also need to install the python markdown module to generate the
platform-specific release notes (ReadMe.html, Welcome.html):
pip3 install markdown
**Note:** Depending on your macOS and Xcode version, the 10 minutes
estimate for this step may be a overly optimistic. Some build dependencies
may require recompilation which can take a long time (up to several hours,
if it includes a complete build of, e.g., gcc and cmake).
3. Clone the Purr-Data repository *(10 minutes)*
git clone https://git.purrdata.net/jwilkes/purr-data.git
4. Change to the source directory
cd purr-data
5. Build the OSX app and the installer disk image (.dmg file) *(15 minutes)*
make
6. There should now be a .dmg file in your current directory, which lets you
install the app in the usual way
#### Windows 64-bit Using msys2
Time to build: *roughly 1.5 hours-- 30 minutes of this is for Gem alone*
Hard drive space required to build: *rougly 2.5 GB*
**Important note:** We recommend doing the build under your msys2 home
directory (usually /home/username in the msys2 shell). This directory should
not have any spaces in it, which would otherwise cause trouble during the
build. Never try using your Windows home directory for this purpose instead,
since it will usually contain spaces, making the build fail.
1. In a browser, navigate to: `https://git.purrdata.net/jwilkes/ci-runner-setup/-/raw/master/win64_install_build_deps.ps1`
2. Select all with `<control-a>`
3. Right-click and choose "Copy"
4. In the Start menu type `PowerShell ISE` and click the "Windows Powershell ISE" app that pops up.
5. In the Powershell ISE window menu, choose File -> New
6. In the area with the white background, right-click and choose "Paste"
7. Click the `Run Script` arrow in the toolbar *(20 minutes)*
8. If there were no errors in the script, msys2 and Inno Setup are now installed.
9. Open the directory "C:\msys64" and click `mingw64.exe`
10. Download the source code *(3-6 minutes)*
In the msys terminal window, issue the following command to create a new directory "purr-data" and clone the repository to it:
git clone https://git.purrdata.net/jwilkes/purr-data.git
6. Enter the source directory *(less than a minute)*
cd purr-data
7. Finally, build Purr-Data *(45-80 minutes)*
make
8. Look in the top level source directory and double-click the setup file to
start installing Purr Data on your system or run `./"setup file name"` in MSYS2 shell.
### Code of Conduct
1. No sarcasm
2. Don't appear to lack empathy
1. No sarcasm, please.
2. Don't appear to lack empathy.
3. You can't live here. If you're spending hours a day writing Purr Data
code or-- worse-- spending hours a day *writing emails about* code that
has yet to be written, you're doing it wrong
4. If working on something for the first time, ask to be mentored
5. If no one asked you to mentor them, don't teach
6. It is better to let small things go then to risk taking time away from
solving bigger problems
has yet to be written, you're doing it wrong.
4. If working on something for the first time, ask to be mentored.
5. If no one asked you to mentor them, don't teach.
6. It is better to let small things go than to risk taking time away from
solving bigger problems.
It is a bad idea to break this Code of Conduct *even if* no one complains
about your behavior.
about your behaviour.
### Project Governance
* The three maintainers listed at the top of this document are the ones in
charge of this project.
* Unanimous decisions are preferred.
* 2 out of 3 can break a disagreement.
* There will only ever be three maintainers of this project at any given time.
If you'd like to temporarily step in as one of the three,
send an inquiry to the list and we can discuss it.
### Contributor Guide
......@@ -143,41 +316,79 @@ Contributing is easy:
1. Join the development list:
http://disis.music.vt.edu/cgi-bin/mailman/listinfo/l2ork-dev
2. Tell us what you'd like to work on. Unfortunately there are _lots_ of
externals and even core features that are poorly documented. We can help
make sure you aren't duplicating functionality (or that you at least know
what's already been implemented).
3. Send us your patch and we'll try it out. If it's well-documented and
there aren't any bugs we'll add it to the software.
4. If you want to do regular development and have commit access, just request
it, then follow the Pd-L2Ork goals above.
2. Fork Purr Data using the gitlab UI and then try to build it from source
for your own platform using the [Build Guide](#build-guide) above.
If you run into problems ask on the development list for help.
3. Once you have successfully built Purr Data, install it and make sure it
runs correctly.
4. Start making changes to the code with brief, clear commit messages. If you
want some practice you can try fixing one of the bugs on the issue tracker
labeled
["good-first-bug"](https://git.purrdata.net/jwilkes/purr-data/issues?label_name%5B%5D=good-first-bug)
5. One you are done fixing the bug or adding your feature, make a merge request
in the Gitlab UI so we can merge the fix for the next release.
A few guidelines:
* There should be a short and clear commit message for each merge request.
* Short and clear title and description are required for each merge request.
* There should be a short branch name related to the issue, like "update-readme".
* _No prototypes, please_. Purr Data's biggest strength is that users can
turn an idea into working code very quickly. But a prototyping language that
is itself a prototype isn't very useful. That means Purr Data's core code
and libraries must be stable, consistent, well-documented, and easy to use.
* Develop incrementally. Small, solid improvements to the software are
preferable to large, disruptive ones.
* Try not to duplicate existing functionality.
For backwards compatibility Purr Data ships many legacy
libraries which unfortunately duplicate the same functionality. This makes
it harder to learn how to use Pd, and makes it burdensome to read patches
and keep track of all the disparate implementations.
* Keep dependencies to a minimum. Cross-platform dependency handling is
unfortunately still an open research problem. In the even that you need
an external library dependency, please mirror it at git.purrdata.net
so that the build system doesn't depend on the availability of external
infrastructure.
Here are some of the current tasks:
* writing small audio/visual Pd games or demos to include in the next release
* skills needed: ability to write Pd programs
* status: I wrote a little sprite-based game that will ship with the next
* Writing small audio/visual Pd games or demos to include in the next release
* Skills needed: Ability to write Pd programs
* Status: I wrote a little sprite-based game that will ship with the next
version of Pd-L2Ork. In it, the character walks around in an actual
Pd diagram shoots at the objects to progress, and to make realtime
changes to the music.
What I'd like is to include a new, smallish game with each release
that has a link in the Pd console. It can be a little demo or game,
just something fun that shows off what can be done using Pure Data.
* designing/implementing regression test template
* skills needed: knowledge about... regression tests. :) But also some
* Designing/Implementing regression test template
* Skills needed: Knowledge about... regression tests. :) But also some
expertise in using Pd so that the tests themselves can
be written in Pure Data. At the same time, they should
be able to be run as part of the automated packaging
process (i.e., in -nogui mode).
* status: some externals have their own testing environments, but they are
* Status: Some externals have their own testing environments, but they are
limited as they require manual intervention to run and read the
results inside a graphical window.
We currently have a crude test system that at least ensures that each
external library instantiates without crashing.
Here's an email thread with Katja Vetter's design, which looks to
be automatable:
http://markmail.org/message/t7yitfc55anus76i#query:+page:1+mid:chb56ve7kea2qumn+state:results
And Mathieu Bouchard's "pure unity" (not sure if this is the most
recent link...):
http://sourceforge.net/p/pure-data/svn/HEAD/tree/tags/externals/pureunity/pureunity-0.0/
* Adding support for double precision to the external libraries that ship with purr-data
* Skills needed: Knowledge about data types in C language(specially float and double)
* Status: The core classes of purr data and the freeverb~ external library
have been changed to support both float and double but still the remaining
external libraries only have support for single precision.
The task ahead is to add double precision support to these external libraries.
As per the current resources we have the merge requests that have been used to add double
precision support to the core libraries:
https://git.purrdata.net/jwilkes/purr-data/merge_requests?scope=all&utf8=%E2%9C%93&state=merged&author_username=pranay_36
And Katja Vetter's double precision patches to the pd-double project which were
actually used for adding double precision support to the core libraries of purr-data.
https://github.com/pd-projects/pd-double/commit/982ad1aa1a82b9bcd29c5b6a6e6b597675d5f300
### Human Interface Guidelines
......@@ -229,7 +440,7 @@ The following is adapted from Pd Vanilla's original source notes. (Found
in pd/src/CHANGELOG.txt for some reason...)
Sections 2-3 below are quite old. Someone needs to check whether they even
hold true for Pd Vanilla any more.
hold true for Pd Vanilla anymore.
#### Structure definition roadmap.
......@@ -239,19 +450,19 @@ and t_graph and t_canvas, should be unified...)
BEFORE 0.35:
m_pd.h t_pd anything with a class
t_gobj "graphic object"
t_text text object
g_canvas.h
t_glist list of graphic objects
g_canvas.c t_canvas Pd "document"
m_pd.h t_pd anything with a class
t_gobj "graphic object"
t_text text object
g_canvas.h
t_glist list of graphic objects
g_canvas.c t_canvas Pd "document"
AFTER 0.35:
m_pd.h t_pd anything with a class
t_gobj "graphic object"
t_text patchable object, AKA t_object
g_canvas.h t_glist list of graphic objects, AKA t_canvas
m_pd.h t_pd anything with a class
t_gobj "graphic object"
t_text patchable object, AKA t_object
g_canvas.h t_glist list of graphic objects, AKA t_canvas
Other structures:
......@@ -265,25 +476,31 @@ Other structures:
#### 1. Coding Style
1.0 C coding style. The source should pass most "warnings" of C compilers
(-Wall on linux, for instance; see the makefile.) Some informalities
(-Wall on Linux, for instance-- see the makefile.) Some informalities
are intentional, for instance the loose use of function prototypes (see
below) and uncast conversions from longer to shorter numerical formats.
The code doesn't respect "const" yet.
1.1. Prefixes in structure elements. The names of structure elements always
have a K&R-style prefix, as in ((t_atom)x)->a_type, where the "a_" prefix
have a K&R-style prefix, as in `((t_atom)x)->a_type`, where the `a_` prefix
indicates "atom." This is intended to enhance readability (although the
convention arose from a limitation of early C compilers.) Common prefixes are
"w_" (word), "a_" (atom), "s_" (symbol), "ob_" (object), "te_" (text object),
"g_" (graphical object), and "gl_" (glist, a list of graphical objects). Also,
global symbols sometimes get prefixes, as in "s_float" (the symbol whose string
is "float). Typedefs are prefixed by "t_". Most _private_ structures, i.e.,
structures whose definitions appear in a ".c" file, are prefixed by "x_".
convention arose from a limitation of early C compilers.) Common prefixes are:
* `w_` (word)
* `a_` (atom)
* `s_` (symbol)
* `ob_` (object)
* `te_` (text object)
* `g_` (graphical object)
* `gl_` (glist, a list of graphical objects).
Also, global symbols sometimes get prefixes, as in `s_float` (the symbol whose
string is "float"). Typedefs are prefixed by `t_`. Most _private_ structures,
i.e., structures whose definitions appear in a ".c" file, are prefixed by `x_`.
1.2. Function arguments. Many functions take as their first
argument a pointer named "x", which is a pointer to a structure suggested
by the function prefix; e.g., canvas_dirty(x, n) where "x" points to a canvas
(t_canvas *x).
argument a pointer named `x`, which is a pointer to a structure suggested
by the function prefix; e.g., `canvas_dirty(x, n)` where `x` points to a canvas
`(t_canvas *x)`.
1.3. Function Prototypes. Functions which are used in at least two different
files (besides where they originate) are prototyped in the appropriate include
......@@ -328,6 +545,7 @@ char * or void * instead.
3.2. Pd passes true single-precision floating-point arguments to methods;
Max uses double.
Typedefs are provided:
t_floatarg, t_intarg for arguments passed by the message system
t_float, t_int for the "word" union (in atoms, for example.)
......@@ -349,8 +567,9 @@ to. The exceptions are:
post, error, bug (s_print.c)
which are all frequently called and which don't fit into simple categories.
Important packages are:
(pd-gui:) pdgui -- everything
(pd:) pd -- functions common to all "pd" objects
(pd:) pd -- functions common to all "pd" objects
obj -- fuctions common to all "patchable" objects ala Max
sys -- "system" level functions
binbuf -- functions manipulating binbufs
......@@ -360,16 +579,25 @@ Important packages are:
#### 5. Source file prefixes
5.0. Source file prefixes.
PD:
s system interface
m message system
g graphics stuff
d DSP objects
x control objects
z other
s system interface
m message system
g graphics stuff
d DSP objects
x control objects
z other
PD-GUI:
t TK front end
gui GUI front end
#### 6. Javascript style
1. Brackets on the same line as declaration or expression: `if (a) {`.
2. Single line comments only: `//`.
3. Use double-quotes for strings.
4. Use underscores to separate words of function names and variables.
### GUI Messaging Specification
#### Public GUI interface
......@@ -388,13 +616,13 @@ The public interface consists of the following:
gui_vmess(const char *msg, const char *format, ...);
```
where const char *format consists of zero or more of the following:
where `const char *format` consists of zero or more of the following:
* f - floating point value (t_float)
* i - integer (int)
* s - c string (char*)
* f - floating point value (`t_float`)
* i - integer (`int`)
* s - c string (`char* )
* x - hexadecimal integer value, with a precision of at least six digits.
(hex value is preceded by an 'x', like "x123456")
(hex value is preceded by an 'x', like `x123456`)
For some of Pd's internals like array visualization, the message length may
vary. For these _special_ cases, the following functions allow the developer
......
......@@ -126,9 +126,6 @@ memento_install:
--author "Frank Barknecht" \
--license "GNU GPL" \
--description "a collection of objects for managing state saving"
install -d $(DESTDIR)$(manualsdir)/$(MEMENTO_NAME)
install -p $(abstractions_src)/rradical/memento/tutorial/*.* \
$(DESTDIR)$(manualsdir)/$(MEMENTO_NAME)
install -d $(DESTDIR)$(objectsdir)/$(MEMENTO_NAME)/manual
install -p $(abstractions_src)/rradical/memento/tutorial/*.* \
$(DESTDIR)$(objectsdir)/$(MEMENTO_NAME)/manual
......@@ -236,11 +233,6 @@ pixeltango_install:
install -d $(DESTDIR)$(examplesdir)/$(PIXELTANGO_NAME)
install -p $(abstractions_src)/pixelTANGO/Example-Patches/*.* \
$(DESTDIR)$(examplesdir)/$(PIXELTANGO_NAME)
install -d $(DESTDIR)$(manualsdir)/$(PIXELTANGO_NAME)
install -p $(abstractions_src)/pixelTANGO/*.txt \
$(DESTDIR)$(manualsdir)/$(PIXELTANGO_NAME)
install -p $(abstractions_src)/pixelTANGO/dev-notes/*.txt \
$(DESTDIR)$(manualsdir)/$(PIXELTANGO_NAME)
install -d $(DESTDIR)$(objectsdir)/$(PIXELTANGO_NAME)/manual
install -p $(abstractions_src)/pixelTANGO/*.txt \
$(DESTDIR)$(objectsdir)/$(PIXELTANGO_NAME)/manual
......@@ -352,10 +344,6 @@ timestretch_install:
# install -d $(DESTDIR)$(manualsdir)/$(TIMESTRETCH_NAME)
# install -p $(abstractions_src)/timestretch/doc/*.txt \
# $(DESTDIR)$(manualsdir)/$(TIMESTRETCH_NAME)
# install -d $(DESTDIR)$(readmesdir)
# install -p $(abstractions_src)/timestretch/README \
# $(DESTDIR)$(readmesdir)/$(TIMESTRETCH_NAME).txt
#-------------------------------------------------------------------------------
......@@ -369,42 +357,15 @@ pd-wavelet_install:
$(DESTDIR)$(objectsdir)/$(PDWAVELET_NAME)
install -p $(abstractions_src)/pd-wavelet/main.pd \
$(DESTDIR)$(objectsdir)/$(PDWAVELET_NAME)
install -p $(abstractions_src)/pd-wavelet/README.txt \
$(DESTDIR)$(objectsdir)/$(PDWAVELET_NAME)
$(scripts_src)/generate-libdir-metafile.sh $(DESTDIR)$(objectsdir) $(PDWAVELET_NAME) \
--author "Raul Diaz Poblete" \
--description "manipulation of audio in the wavelet domain" \
--license "GNU GPL v2" \
--version ""
install -d $(DESTDIR)$(readmesdir)
install -p $(abstractions_src)/pd-wavelet/README.txt \
$(DESTDIR)$(readmesdir)/$(PDWAVELET_NAME).txt
#==============================================================================#
#
# DEVELOPER'S TARGETS
#
#==============================================================================#
# make the symlinks necessary to simulate the installed environment
devsymlinks:
# make symlinks for help patches
test -e $(abstractions_src)/../2.control.examples || \
ln -s $(pd_src)/doc/2.control.examples \
$(abstractions_src)/../2.control.examples
test -e $(abstractions_src)/../3.audio.examples || \
ln -s $(pd_src)/doc/3.audio.examples \
$(abstractions_src)/../3.audio.examples
# pd <= 0.38-4 has 4.fft.examples
test -e $(abstractions_src)/../4.fft.examples || \
ln -s $(pd_src)/doc/4.fft.examples $(abstractions_src)/../4.fft.examples
# pd > 0.38-4 has 4.data.structures
test -e $(abstractions_src)/../4.data.structures || \
ln -s $(pd_src)/doc/4.data.structures \
$(abstractions_src)/../4.data.structures
test -e $(abstractions_src)/../7.stuff || \
ln -s $(pd_src)/doc/7.stuff $(abstractions_src)/../7.stuff
test -e $(abstractions_src)/../sound || \
ln -s $(pd_src)/doc/sound $(abstractions_src)/../sound
#==============================================================================#
#
......
......@@ -41,6 +41,10 @@ LIBS =
#
#------------------------------------------------------------------------------#
ifeq ($(macos_target),)
macos_target = 10.9
endif
# get library version from meta file
LIBRARY_VERSION = $(shell sed -n 's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' $(LIBRARY_NAME)-meta.pd)
......@@ -92,13 +96,13 @@ ifeq ($(UNAME),Darwin)
OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast
# build universal 32-bit on 10.4 and 32/64 on newer
ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8)
FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4
FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=$(macos_target)
else
FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4
FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target)
SOURCES += $(SOURCES_iphoneos)
endif
CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include
LDFLAGS += $(FAT_FLAGS) -bundle -undefined dynamic_lookup -L/sw/lib
CFLAGS += $(FAT_FLAGS) -fPIC
LDFLAGS += $(FAT_FLAGS) -bundle -undefined dynamic_lookup
# if the 'pd' binary exists, check the linking against it to aid with stripping
LDFLAGS += $(shell test -e $(PD_PATH)/bin/pd && echo -bundle_loader $(PD_PATH)/bin/pd)
LIBS += -lc
......
Abstractions from Joo Pais
Version 0.46
Version 0.47
(c) 2005-2016 Joo Pais - jmmmpais@gmail.com
Released under the BSD license (more information in each abstraction).
......@@ -25,6 +25,7 @@ dsp01 - DSP switch
f+ - Counter with variable increment
gui-edit - edit standard GUI objects fast
jp.menu - Dropdown menu programmed with data structures
jp.preset - Dropdown preset saver programmed with data structures
lbang - loadbang which can be triggered more often
liner~ - practical implementation of [line~]
liner+~ - practical implementation of signal envelopping
......@@ -53,9 +54,9 @@ tastin - Gate for keyboard input
uhr - Shows the time
It is recomended to use these abstractions with Pd-extended, since I don't keep track of which externals are used. Some abstractions use other ones of this package, so it is also better to have always the whole package together.
The jmmmp library is dependent from the following libraries: cyclone, ext13, ggee, iemlib, iemmatrix, jmmmp, zexy 2.2.6.
2016.05.27
2016.06.30
Non-working or discarded abstractions:
......
#N canvas 457 189 505 304 10;
#X obj 15 72 inlet;
#X obj 15 222 outlet;
#X obj 34 92 inlet;
#X obj 58 112 inlet;
#X obj 15 182 f \$1;
#X obj 72 192 +;
#X obj 108 152 expr if($f1 == 0 \, 1 \, $f1);
#X obj 15 52 inlet;
#X obj 15 202 outlet;
#X obj 34 72 inlet;
#X obj 58 92 inlet;
#X obj 15 162 f \$1;
#X obj 72 172 +;
#X obj 108 132 expr if($f1 == 0 \, 1 \, $f1);
#N canvas 0 0 426 446 license 0;
#X text 8 47 All rights reserved.;
#X text 8 227 The names of its contributors may not be used to endorse
......@@ -39,15 +39,15 @@ in the documentation and/or other materials provided with the distribution.
#X text 279 168 - Set increment;
#X text 279 198 Outlets;
#X text 279 218 - Float;
#X obj 34 162 \$1;
#X obj 34 132 route bang;
#X obj 34 142 \$1;
#X obj 34 112 route bang;
#X text 279 148 - Bang reset / Float (next count);
#X obj 15 202 t f f;
#X obj 15 182 t f f;
#X text 12 257 (C) 2006-2012 João Pais - jmmmpais@googlemail.com;
#X text 278 58 - Initial number (default 0);
#X text 279 78 - Increment (default 1);
#X obj 108 132 \$2;
#X obj 108 112 initbang;
#X obj 108 112 \$2;
#X obj 108 92 iemlib/init;
#X connect 0 0 4 0;
#X connect 2 0 16 0;
#X connect 3 0 5 1;
......
#N canvas 268 142 382 289 10;
#X text 16 6 NAME jmmmp;
#X text 16 26 AUTHOR Joo Pais <jmmmpais@googlemail.com>;
#X text 16 76 LICENSE GPL;
#X text 16 96 VERSION 0.46;
#X text 16 46 DESCRIPTION this library has several utilities with different
functions. It is composed of abstractions only.;
#N canvas 10 10 200 164 10;
#N canvas 20 20 420 300 META 0;
#X text 10 10 META this is a prototype of a libdir meta file;
#X text 10 30 NAME jmmmp;
#X text 10 90 LICENSE BSD;
#X text 10 110 VERSION 0.47;
#X text 10 50 AUTHOR Joo Pais <jmmmpais@googlemail.com>;
#X text 10 70 DESCRIPTION Several useful abstractions;
#X restore 10 10 pd META;
#N struct 1012-color float x float y float farbe;
#N struct 1012-color-display float x float y float farbe;
#N struct 1015-color float x float y float farbe;
#N struct 1015-color-display float x float y float farbe;
#N struct 1007-element float x float y symbol menu float lenght float
#N struct 1087-color float x float y float farbe;
#N struct 1087-color-display float x float y float farbe;
#N struct 1090-color float x float y float farbe;
#N struct 1090-color-display float x float y float farbe;
#N struct 1082-element float x float y symbol menu float lenght float
height float selection float ypos float col-back float col-lab;
#N struct 1025-color float x float y float farbe;
#N struct 1025-color-display float x float y float farbe;
#N struct 1028-color float x float y float farbe;
#N struct 1028-color-display float x float y float farbe;
#N struct 1020-element float x float y symbol menu float lenght float
#N struct 1183-color float x float y float farbe;
#N struct 1183-color-display float x float y float farbe;
#N struct 1186-color float x float y float farbe;
#N struct 1186-color-display float x float y float farbe;
#N struct 1178-element float x float y symbol menu float lenght float
height float selection float ypos float col-back float col-lab;
#N canvas 40 80 738 476 10;
#X floatatom 19 206 5 0 0 0 - - -;
#N canvas 0 0 426 446 license 0;
#N canvas 106 113 779 512 10;
#X floatatom 19 216 5 0 0 0 - - -;
#N canvas 0 0 393 422 license 0;
#X text 8 47 All rights reserved.;
#X text 8 227 The names of its contributors may not be used to endorse
or promote products derived from this software without specific prior
......@@ -37,9 +37,9 @@ in the documentation and/or other materials provided with the distribution.
;
#X text 8 7 Copyright 2016 \, João Pais;
#X text 8 27 jmmmpais@gmail.com;
#X restore 431 446 pd license;
#X text 429 341 Outlets;
#X text 429 251 - bang - outputs current setting;
#X restore 421 486 pd license;
#X text 419 401 Outlets;
#X text 419 291 - bang - outputs current setting;
#N canvas 564 268 494 344 META 0;
#X text 12 95 LICENSE BSD;
#X text 12 75 LIBRARY jmmmp;
......@@ -49,139 +49,154 @@ in the documentation and/or other materials provided with the distribution.
#X text 12 36 KEYWORDS menu GOP data-structures;
#X text 12 55 AUTHOR João Pais <jmmmpais@gmail.com>;
#X text 12 135 VERSION 2016;
#X restore 521 446 pd META;
#X restore 511 486 pd META;
#X text 11 11 [jp.menu] - Dropdown menu programmed with data structures
;
#X text 429 41 Arguments - ALWAYS USE THE FIRST THREE ARGUMENTS;
#X text 429 61 - name of configuration file;
#X text 428 81 - lenght (pixels);
#X text 429 101 - height (pixels);
#N canvas 451 243 394 363 configuration 0;
#X text 19 17 HOW TO FORMAT THE CONFIGURATION FILE FOR [jp.menu];
#X text 19 87 Name;
#X text 19 167 Content;
#X text 19 187 The content consists of as many lines as items in the
menu. In each line is be the label that appears.;
#X text 19 47 The configuration file must be a .txt file \, stored
in the same folder as the main patch where [jp.menu] is being used.
;
#X text 19 227 Load new file;
#X text 19 247 To load a new file \, send the message "load \$1" with
#X text 419 61 - name of configuration file;
#N canvas 312 426 384 356 configuration 0;
#X text 9 7 HOW TO FORMAT THE CONFIGURATION FILE FOR [jp.menu];
#X text 9 77 Name;
#X text 9 157 Content;
#X text 9 37 The configuration file must be a .txt file \, stored in
the same folder as the main patch where [jp.menu] is being used.;
#X text 9 217 Load new file;
#X text 9 237 To load a new file \, send the message "load \$1" with
the symbol as argument.;
#X obj 19 337 s \$0-country-i;
#X msg 19 288 load audio;
#X msg 29 308 load country;
#X text 19 107 The file must be named jp.menu-NAME.txt.;
#X text 19 127 The NAME will be used as the first argument for [jp.menu].
#X obj 9 327 s \$0-country-i;
#X msg 9 278 load audio;
#X msg 19 298 load country;
#X text 9 97 The file must be named jp.menu-NAME.txt.;
#X text 9 117 The NAME will be used as the first argument for [jp.menu].
;
#X connect 8 0 7 0;
#X connect 9 0 7 0;
#X restore 222 251 pd configuration;
#X text 430 426 (C) 2016 João Pais - jmmmpais@gmail.com;
#X text 429 211 - integer - select item number. From 0 upwards.;
#X obj 19 111 hradio 15 1 0 4 empty empty empty 0 -8 0 10 -262144 -1
#X text 9 177 The content consists of as many lines as items in the
menu. In each line is be the label that appears in the menu.;
#X connect 7 0 6 0;
#X connect 8 0 6 0;
#X restore 262 281 pd configuration;
#X text 420 466 (C) 2016 João Pais - jmmmpais@gmail.com;
#X text 419 211 - integer - select item number. From 0 upwards.;
#X obj 19 121 hradio 15 1 0 4 empty empty empty 0 -8 0 10 -262144 -1
-1 0;
#X text 429 121 - identifier for receive/send names;
#X text 15 91 This menu has 4 items;
#X text 429 361 - integer - chosen item number;
#X msg 29 131 open;
#X text 429 191 Input messages;
#X text 429 231 - open - opens full menu;
#X text 12 356 Limitations of data structures;
#X text 12 416 - the message "drawnumber_motion: symbol" appears in
#X text 439 121 - identifier for receive/send names;
#X text 419 421 - integer - chosen item number;
#X msg 29 141 open;
#X text 419 191 Input messages;
#X text 419 271 - open - opens full menu;
#X text 12 416 Limitations of data structures;
#X text 12 476 - the message "drawnumber_motion: symbol" appears in
the console when instead of clicking \, the user drags the menu;
#X text 12 396 - the size of the text can't be changed;
#N canvas 467 689 450 300 zutun 0;
#X text 25 215 ## dizer ao puckette para eliminar drawnumbermotion
das mensagens;
#X text 26 174 ## saida da direita com símbolo de label. para isso
\, só tem que apanhar o símbolo apenas quando entra float \, nao
quando há open.;
#X text 17 138 ## editar e gravar configuracao usando mensagens? funciona
com text \, ou tem que se usar a nova versao?;
#X text 21 244 ## modo and \, com várias opcoes ligadas/desligadas?
;
#X text 26 48 ## depois de load \, tamanho volta ao normal;
#X restore 584 446 pd zutun;
#X text 14 251 Formatting the configuration file;
#X text 14 291 Color configuration;
#X text 14 271 You can use send/receive variables;
#N canvas 497 71 396 209 send/receive 0;
#X text 19 17 SEND/RECEIVE VARIABLES;
#X text 19 47 [jp.menu] lets you define an internal variable to use
with send and receive objects. You can send and receive any messages
to it.;
#X text 19 87 The variables are formated as:;
#X text 19 107 - the 3rd argument gives the send name;
#X text 19 127 - the receive name adds "-i" to the 3rd argument;
#X text 19 157 For example \, if the 3rd argument is "menusend" \,
the receive name will be "menusend-i". You can use also dollarsigns
as symbols: \$0 \, \$1 \, etc. \, as in the following example:;
#X restore 228 271 pd send/receive;
#X text 12 41 [jp.menu] creates a dropdown menu based on a text file.
This abstraction is a development of the concept used by Gilberto Bernardes
in his earGram software.;
#X msg 199 131 open;
#X obj 189 151 s \$0-country-i;
#X obj 189 181 r \$0-country;
#X floatatom 189 111 5 0 0 0 - - -;
#X floatatom 189 201 5 0 0 0 - - -;
#X obj 169 131 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
#X msg 299 171 open;
#X obj 289 191 s \$0-country-i;
#X obj 289 221 r \$0-country;
#X floatatom 289 151 5 0 0 0 - - -;
#X floatatom 289 241 5 0 0 0 - - -;
#X obj 269 171 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X text 429 271 - color \$1 \$2 - change colors;
#X text 170 91 Use send/receive to control the menu;
#X text 429 141 - background color;
#X text 429 161 - label / border color;
#X obj 289 111 jp.menu country 100 22 \$0-country 89 9;
#X text 429 291 - size x y - change menu size;
#N canvas 331 210 386 167 size 0;
#X msg 29 47 size 60 70;
#X msg 39 67 size 120 20;
#X msg 19 27 size 80 15;
#X text 19 7 Change menu size;
#X obj 19 97 s \$0-country-i;
#X text 19 127 !! Mind \, for "size" the object doesn't get saved with
#X text 419 311 - color \$1 \$2 - change colors;
#X text 150 131 Use send/receive to control the menu;
#X text 439 141 - background color;
#X text 439 161 - label / border color;
#X text 419 351 - size x y - change menu size;
#X text 12 436 The following limitations are built in to Pure Data:
;
#X text 15 91 This menu has 4 items \, Click on it or send a number
or message.;
#X text 419 31 Arguments - Always use the first argument \, others
are facultative;
#X text 14 281 Formatting/loading a configuration file;
#N canvas 38 162 445 466 display 0;
#X msg 19 47 size 60 70;
#X msg 29 67 size 120 20;
#X msg 9 27 size 80 15;
#X text 9 7 Change menu size;
#X obj 9 87 s \$0-country-i;
#X text 9 107 !! Mind \, for "size" the object doesn't get saved with
the new parameters !! You must edit the object itself.;
#X connect 0 0 4 0;
#X connect 1 0 4 0;
#X connect 2 0 4 0;
#X restore 121 311 pd size;
#X text 14 311 Change menu size;
#N canvas 438 53 442 335 color 0;
#X msg 21 157 color 57 600;
#X text 10 7 Change colors:;
#X obj 373 67 pd-colors;
#X msg 11 257 color;
#X text 11 237 Or send only the message "color" to open a color selector.
#X msg 20 307 color 57 600;
#X text 9 167 Change colors:;
#X obj 372 227 pd-colors;
#X msg 10 387 color;
#X text 10 367 Or send only the message "color" to open a color selector.
;
#X text 11 67 The colors follow the data structures color scheme. Look
at;
#X text 11 81 for a complete palette.;
#X text 11 97 If both color arguments are 0 \, default colors will
#X text 10 227 The colors follow the data structures color scheme.
Look at;
#X text 10 241 for a complete palette.;
#X text 10 257 If both color arguments are 0 \, default colors will
be used.;
#X obj 11 206 s \$0-country-i;
#X obj 11 277 s \$0-country-i;
#X msg 11 127 color 999 0;
#X text 91 127 default values;
#X text 11 47 \$1 = background color \, \$2 = label+border color;
#X text 11 27 Send the message "color \$1 \$2" to set the menu colors.
#X obj 10 347 s \$0-country-i;
#X obj 10 407 s \$0-country-i;
#X msg 10 287 color 999 0;
#X text 90 287 default values;
#X text 10 207 \$1 = background color \, \$2 = label+border color;
#X text 10 187 Send the message "color \$1 \$2" to set the menu colors.
;
#X msg 31 177 color 60 999;
#X text 11 297 !! Mind \, for "color" the object doesn't get saved
#X msg 30 327 color 60 999;
#X text 10 427 !! Mind \, for "color" the object doesn't get saved
with the new parameters !! You must edit the object itself.;
#X connect 0 0 8 0;
#X connect 3 0 9 0;
#X connect 10 0 8 0;
#X connect 14 0 8 0;
#X restore 138 290 pd color;
#X text 429 311 - load \$1 - load other configuration;
#X obj 19 151 jp.menu audio 85 13 \$0-aud;
#X text 12 376 The following limitations are built in to Pure Data:
#X connect 0 0 4 0;
#X connect 1 0 4 0;
#X connect 2 0 4 0;
#X connect 6 0 14 0;
#X connect 9 0 15 0;
#X connect 16 0 14 0;
#X connect 20 0 14 0;
#X restore 164 361 pd display;
#X text 14 361 Display configuration;
#N canvas 38 28 396 209 send/receive 0;
#X text 9 7 SEND/RECEIVE VARIABLES;
#X text 9 77 The variables are formated as:;
#X text 9 147 For example \, if the 3rd argument is "menusend" \, the
receive name will be "menusend-i". You can use also dollarsigns as
symbols: \$0 \, \$1 \, etc. \, as in the example in the main patch.
;
#X text 9 97 - the 4th argument gives the send name;
#X text 9 117 - the receive name adds "-i" to the 4th argument;
#X text 9 37 [jp.menu] lets you define an internal variable to use
with send and receive objects. You can send and receive any messages
to it.;
#X restore 164 341 pd send/receive;
#X text 14 341 Send/receive variables;
#X text 14 321 Select items;
#N canvas 500 61 386 239 select 0;
#X msg 22 91 next;
#X msg 32 111 previous;
#X floatatom 12 71 5 0 0 0 - - -;
#X text 12 7 To select an item;
#X text 12 27 You can send an integer to select an item. The strings
"next" and "previous" also move between the elements of the menu.;
#X text 12 167 The message "open" shows the full menu.;
#X msg 12 187 open;
#X obj 12 131 s \$0-country-i;
#X obj 12 207 s \$0-country-i;
#X connect 0 0 7 0;
#X connect 1 0 7 0;
#X connect 2 0 7 0;
#X connect 6 0 8 0;
#X restore 164 321 pd select;
#X text 12 456 - the size and font of the label can't be changed;
#X text 419 231 - next - outputs next item;
#X text 419 251 - previous - outputs previous item;
#X text 419 331 - color - open color selector;
#X text 419 371 - load \$1 - load other configuration from the same
folder;
#X obj 19 161 jp.menu audio;
#X text 438 81 - lenght (pixels) \, set to 100 if not used;
#X text 439 101 - height (pixels) \, set to 17 if not used;
#X obj 149 151 jp.menu country 100 22 \$0-country 89 9;
#N canvas 491 72 386 146 edit 0;
#X text 12 7 For now \, the only way to delete a preset is by editing
the text file with the data. At a later point \, it might be possible
to integrate editing features into this abstraction. For a more powerful
abstraction \, check out [jmmmp/jp.preset].;
#X restore 164 301 pd edit;
#X text 14 301 Edit presets;
#X connect 10 0 45 0;
#X connect 13 0 45 0;
#X connect 17 0 45 0;
#X connect 29 0 30 0;
#X connect 31 0 33 0;
#X connect 32 0 30 0;
#X connect 34 0 30 0;
#X connect 19 0 20 0;
#X connect 21 0 23 0;
#X connect 22 0 20 0;
#X connect 24 0 20 0;
#X connect 45 0 0 0;
#N struct 1008-color float x float y float farbe;
#N struct 1008-color-display float x float y float farbe;
#N struct 1011-color float x float y float farbe;
#N struct 1011-color-display float x float y float farbe;
#N canvas 628 409 330 217 10;
#N canvas 1088 161 379 353 \$0-element 0;
#X obj 8 94 route click;
#X obj 35 134 tgl 15 0 \$0-open/close \$0-open/close-i empty 17 7 0
10 -262144 -1 -1 1 1;
#X obj 8 182 unpack pointer f;
#X obj 8 242 / 1;
#X obj 23 222 r \$0-ypos;
#X obj 8 262 outlet;
#X obj 8 152 spigot;
#X obj 8 114 t l b;
#X text 8 14 Data structures template and click interaction;
#X obj 8 202 get \$0-element ypos;
#X obj 8 44 struct \$0-element float x float y symbol menu float lenght
float height float selection float ypos float col-back float col-lab
;
#X obj 8 313 filledpolygon -v selection col-back col-lab 1 0 0 0 height
lenght height lenght 0;
#X obj 8 293 drawsymbol -v selection menu 4 2 col-lab;
#X connect 0 0 7 0;
#X connect 1 0 6 1;
#X connect 2 0 9 0;
#X connect 3 0 5 0;
#X connect 4 0 3 1;
#X connect 6 0 2 0;
#X connect 7 0 6 0;
#X connect 7 1 1 0;
#X connect 9 0 3 0;
#X connect 10 0 0 0;
#X restore 128 40 pd \$0-element;
#X obj 128 20 namecanvas \$0-menu;
#N canvas 299 122 616 576 patch 0;
#X obj 286 250 textfile;
#X obj 306 230 until;
#X msg 424 90 clear;
#X obj 424 110 s pd-\$0-paint;
#X obj 315 510 s pd-\$0-paint;
#X obj 353 150 symbol \$0-element;
#X obj 358 320 l2s;
#X obj 192 360 + 0;
#X obj 161 550 s \$0-menu;
#X msg 171 480 donecanvasdialog 1 1 2 0 0 \$3 \$2 \$3 \$2 0 0 \, dirty
0;
#X msg 17 400 0 \$1;
#X obj 351 250 0;
#X obj 17 340 r \$0-open/close;
#X obj 387 130 s \$0-ypos;
#X obj 99 360 r \$0-ypos;
#X obj 330 370 r \$0-ypos;
#X obj 207 340 r \$0-ypos;
#X obj 17 380 expr if ($f1 == 1 \, $f2 \, $f3);
#X obj 161 430 pack f f \$2;
#X obj 387 110 \$3;
#X msg 286 210 read \$1 cr \, rewind;
#X msg 161 530 donecanvasdialog 1 -1 2 0 -1 1 1 \$3 \$2 0 0 \, dirty
0;
#X obj 315 390 * 1;
#X obj 315 340 f+ 0 1;
#X obj 405 390 s \$0-sellist;
#X obj 405 370 f;
#X obj 326 30 loadbang;
#X text 18 10 Reads configuration file and creates the menu scalars.
;
#X msg 315 430 scalar \$2 0 0 \$3 \$4 \$5 0 \$1 \$6 \$7;
#X obj 315 410 pack f s s \$2 \$3 \$5 \$6;
#X obj 422 290 sel 1;
#X obj 422 320 999;
#X obj 450 320 0;
#X text 432 230 Sets default colors;
#X obj 422 270 expr if($i1 + $i2 == 0 \, 1 \, 0);
#X obj 422 250 list \$5 \$6;
#X obj 351 270 outlet;
#X obj 222 410 r \$0-lenght;
#X obj 315 300 t b a;
#X text 253 450 scalar parameters: x y menu lenght height selection
ypos col-back col-lab;
#X obj 182 300 r \$0-gop-height;
#X text 153 280 New height after "size";
#X obj 326 50 t b b;
#X obj 353 70 t b b b b;
#X obj 306 90 t b b b;
#X obj 257 130 r \$0-load;
#X obj 257 150 t b s b;
#N canvas 424 551 297 172 path+file 0;
#X obj 12 66 symbol jp.menu-\$1.txt;
#X obj 12 106 list;
#X msg 12 126 read \$2/\$1 cr \, rewind;
#X obj 12 46 t b b;
#X obj 12 26 inlet;
#X obj 12 146 outlet;
#X text 12 6 Gets path of parent patch and opens file;
#X obj 33 86 getdir 3;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 2 0 5 0;
#X connect 3 0 0 0;
#X connect 3 1 7 0;
#X connect 4 0 3 0;
#X connect 7 0 1 1;
#X restore 325 180 pd path+file;
#X connect 0 0 38 0;
#X connect 0 1 1 1;
#X connect 0 1 11 0;
#X connect 0 1 25 0;
#X connect 1 0 0 0;
#X connect 2 0 3 0;
#X connect 5 0 29 1;
#X connect 6 0 29 2;
#X connect 7 0 17 2;
#X connect 7 0 18 1;
#X connect 9 0 4 0;
#X connect 10 0 18 0;
#X connect 11 0 36 0;
#X connect 12 0 17 0;
#X connect 14 0 17 1;
#X connect 15 0 22 1;
#X connect 16 0 7 1;
#X connect 17 0 10 0;
#X connect 18 0 9 0;
#X connect 18 0 21 0;
#X connect 19 0 13 0;
#X connect 20 0 0 0;
#X connect 21 0 8 0;
#X connect 22 0 7 0;
#X connect 22 0 29 0;
#X connect 23 0 22 0;
#X connect 23 0 25 1;
#X connect 25 0 24 0;
#X connect 26 0 42 0;
#X connect 28 0 4 0;
#X connect 29 0 28 0;
#X connect 30 0 32 0;
#X connect 30 0 31 0;
#X connect 31 0 29 5;
#X connect 32 0 29 6;
#X connect 34 0 30 0;
#X connect 35 0 34 0;
#X connect 37 0 18 2;
#X connect 38 0 23 0;
#X connect 38 1 6 0;
#X connect 40 0 17 2;
#X connect 42 0 44 0;
#X connect 42 1 43 0;
#X connect 43 0 5 0;
#X connect 43 1 35 0;
#X connect 43 2 19 0;
#X connect 43 3 2 0;
#X connect 44 0 1 0;
#X connect 44 1 47 0;
#X connect 44 2 23 1;
#X connect 45 0 46 0;
#X connect 46 0 1 0;
#X connect 46 1 20 0;
#X connect 46 2 23 1;
#X connect 47 0 0 0;
#X restore 197 110 pd patch;
#X obj 138 70 inlet;
#X obj 128 180 outlet;
#N canvas 537 83 484 364 selection 0;
#X obj 202 22 inlet;
#X obj 301 212 symbol \$0-paint;
#X obj 301 272 pointer;
#X msg 252 252 next;
#X msg 301 232 traverse pd-\$1;
#X msg 265 102 1 0;
#X obj 265 142 list-rot;
#X obj 310 122 * -1;
#X obj 265 162 list-drip;
#X obj 225 232 t f b;
#X msg 158 212 1 1;
#X obj 275 62 outlet;
#X obj 265 82 t b f b b;
#X obj 225 332 set \$0-element selection y;
#X obj 356 162 s \$0-open/close-i;
#X obj 158 122 r \$0-open/close;
#X obj 158 182 t b b;
#X obj 158 142 t f f;
#X msg 356 142 1;
#X obj 301 312 expr if ($f2 == 0 \, $f1 \, 0);
#X obj 158 162 sel 0;
#X obj 14 48 r \$0-sellist;
#X msg 68 108 set \, add2 1;
#X obj 41 128 until;
#X msg 51 148 add2 1;
#X msg 41 168 add2 0;
#X obj 41 88 t f b;
#X obj 14 68 sel 0;
#N canvas 927 111 288 144 messages 0;
#X obj 11 27 inlet;
#X text 12 7 Messages accepted by [jp.menu];
#X obj 11 87 outlet;
#X obj 58 107 outlet;
#X obj 11 67 0;
#N canvas 843 386 300 290 color 0;
#X obj 16 52 route bang;
#X obj 16 242 s pd-\$0-color-selector;
#X msg 16 222 vis 1;
#N canvas 423 741 518 243 \$0-color-selector 0;
#N canvas 298 464 528 328 color-sel-gui 0;
#X obj 12 59 ds-color-sel;
#X obj 12 154 ds-color-sel;
#X obj 425 25 bng 15 250 50 0 \$0-send-colors \$0-send-colors-i empty
17 7 0 10 -228856 -1 -1;
#X text 442 23 Send colors;
#X obj 12 258 pack s f f;
#X msg 12 238 symbol color;
#X obj 12 298 s \$0-color-reset;
#X msg 12 278 \$2 \$3;
#X text 12 41 Background color;
#X text 12 136 Label and border color;
#X text 12 13 Click the desired color for the fields \, and click the
"send" button when you're finished.;
#X connect 0 0 4 1;
#X connect 1 0 4 2;
#X connect 2 0 5 0;
#X connect 4 0 7 0;
#X connect 5 0 4 0;
#X connect 7 0 6 0;
#X coords 0 -1 1 1 506 217 2 10 10;
#X restore 5 14 pd color-sel-gui;
#X restore 16 262 pd \$0-color-selector;
#X obj 83 72 r \$0-color-reset;
#X obj 16 32 inlet;
#X msg 92 142 traverse \$1;
#X obj 92 122 symbol pd-\$0-paint;
#X obj 92 162 pointer \$0-element;
#X msg 54 142 next;
#X obj 54 122 until;
#X obj 92 202 set \$0-element col-back col-lab;
#X obj 92 182 list prepend;
#X obj 73 92 t b b a;
#X text 17 12 Sets color scheme;
#X connect 0 0 2 0;
#X connect 0 1 13 0;
#X connect 2 0 1 0;
#X connect 4 0 13 0;
#X connect 5 0 0 0;
#X connect 6 0 8 0;
#X connect 7 0 6 0;
#X connect 8 0 12 0;
#X connect 8 2 10 1;
#X connect 9 0 8 0;
#X connect 10 0 9 0;
#X connect 12 0 11 0;
#X connect 13 0 10 0;
#X connect 13 1 7 0;
#X connect 13 2 12 1;
#X restore 120 87 pd color;
#X obj 58 87 i;
#N canvas 949 107 426 490 size 0;
#X obj 99 74 s pd-\$0-paint;
#X obj 82 114 s \$0-menu;
#X obj 48 14 inlet;
#X msg 99 54 donecanvasdialog 1 1 2 0 0 \$1 \$2 \$1 \$2 0 0 \, dirty
0;
#X msg 82 94 donecanvasdialog 1 -1 2 0 -1 1 1 \$1 \$2 0 0 \, dirty
0;
#X msg 65 374 traverse \$1;
#X obj 65 234 symbol pd-\$0-paint;
#X obj 65 394 pointer \$0-element;
#X msg 27 374 next;
#X obj 27 234 until;
#X obj 65 464 set \$0-element lenght height ypos;
#X obj 122 154 s \$0-ypos;
#X obj 65 134 unpack f f;
#X obj 65 174 s \$0-lenght;
#X obj 103 304 r \$0-ypos;
#X obj 88 324 * 1;
#X obj 88 284 f+ 0 1;
#X obj 48 204 t b b b a;
#X obj 27 254 t b b;
#X obj 65 424 pack p f f f;
#X msg 65 444 \$3 \$4 \$2 \$1;
#X obj 48 34 t l l l l;
#X obj 111 254 unpack f f;
#X obj 98 344 s \$0-gop-height;
#X connect 2 0 21 0;
#X connect 3 0 0 0;
#X connect 4 0 1 0;
#X connect 5 0 7 0;
#X connect 6 0 5 0;
#X connect 7 0 19 0;
#X connect 7 2 9 1;
#X connect 8 0 7 0;
#X connect 9 0 18 0;
#X connect 12 0 13 0;
#X connect 12 1 11 0;
#X connect 14 0 15 1;
#X connect 15 0 19 1;
#X connect 15 0 23 0;
#X connect 16 0 15 0;
#X connect 17 0 9 0;
#X connect 17 1 6 0;
#X connect 17 2 16 1;
#X connect 17 3 22 0;
#X connect 18 0 8 0;
#X connect 18 1 16 0;
#X connect 19 0 20 0;
#X connect 20 0 10 0;
#X connect 21 0 17 0;
#X connect 21 1 12 0;
#X connect 21 2 4 0;
#X connect 21 3 3 0;
#X connect 22 0 19 2;
#X connect 22 1 19 3;
#X restore 157 67 pd size;
#X obj 11 47 route open float bang color size load;
#N canvas 1157 204 292 160 load 0;
#X obj 14 13 inlet;
#X msg 41 53 clear;
#X obj 41 73 s pd-\$0-paint;
#X obj 14 133 s \$0-load;
#X obj 14 33 t a b;
#X msg 14 113 symbol jp.menu-\$1.txt;
#X obj 14 93 symbol;
#X connect 0 0 4 0;
#X connect 1 0 2 0;
#X connect 4 0 6 0;
#X connect 4 1 1 0;
#X connect 5 0 3 0;
#X connect 6 0 5 0;
#X restore 193 87 pd load;
#X connect 0 0 8 0;
#X connect 4 0 2 0;
#X connect 6 0 3 0;
#X connect 8 0 4 0;
#X connect 8 1 6 0;
#X connect 8 2 6 0;
#X connect 8 3 5 0;
#X connect 8 4 7 0;
#X connect 8 5 9 0;
#X restore 202 42 pd messages;
#X obj 301 292 get \$0-element ypos menu;
#X obj 282 22 inlet;
#X connect 0 0 28 0;
#X connect 1 0 4 0;
#X connect 2 0 13 2;
#X connect 2 0 29 0;
#X connect 3 0 2 0;
#X connect 4 0 2 0;
#X connect 5 0 6 0;
#X connect 6 0 8 0;
#X connect 7 0 6 1;
#X connect 8 0 9 0;
#X connect 9 0 13 0;
#X connect 9 1 3 0;
#X connect 10 0 8 0;
#X connect 12 0 5 0;
#X connect 12 1 7 0;
#X connect 12 2 1 0;
#X connect 12 3 18 0;
#X connect 15 0 17 0;
#X connect 16 0 10 0;
#X connect 16 1 1 0;
#X connect 17 0 20 0;
#X connect 17 1 19 1;
#X connect 18 0 14 0;
#X connect 19 0 13 1;
#X connect 20 0 16 0;
#X connect 21 0 27 0;
#X connect 22 0 5 0;
#X connect 22 0 10 0;
#X connect 23 0 24 0;
#X connect 23 0 25 0;
#X connect 24 0 10 0;
#X connect 25 0 5 0;
#X connect 26 0 23 0;
#X connect 26 1 22 0;
#X connect 27 1 26 0;
#X connect 28 0 14 0;
#X connect 28 1 12 0;
#X connect 28 1 11 0;
#X connect 29 0 19 0;
#X connect 30 0 12 0;
#X restore 128 130 pd selection;
#X obj 147 90 receive \$4-i;
#X obj 137 160 send \$4;
#N canvas 125 353 450 300 \$0-paint 0;
#X coords 0 0 80 16 80 16 2 0 0;
#X restore 0 0 pd \$0-paint;
#X connect 0 0 5 0;
#X connect 2 0 5 1;
#X connect 3 0 5 0;
#X connect 5 0 4 0;
#X connect 5 0 7 0;
#X connect 6 0 5 0;
#X coords 0 -1 1 1 80 16 2 0 0;
#N struct 1087-color float x float y float farbe;
#N struct 1087-color-display float x float y float farbe;
#N struct 1090-color float x float y float farbe;
#N struct 1090-color-display float x float y float farbe;
#N struct 1082-element float x float y symbol menu float lenght float
height float selection float ypos float col-back float col-lab;
#N canvas 628 409 330 217 10;
#N canvas 1088 161 379 353 \$0-element 0;
#X obj 8 94 route click;
#X obj 35 134 tgl 15 0 \$0-open/close \$0-open/close-i empty 17 7 0
10 -262144 -1 -1 1 1;
#X obj 8 182 unpack pointer f;
#X obj 8 242 / 1;
#X obj 23 222 r \$0-ypos;
#X obj 8 262 outlet;
#X obj 8 152 spigot;
#X obj 8 114 t l b;
#X text 8 14 Data structures template and click interaction;
#X obj 8 202 get \$0-element ypos;
#X obj 8 44 struct \$0-element float x float y symbol menu float lenght
float height float selection float ypos float col-back float col-lab
;
#X obj 8 313 filledpolygon -v selection col-back col-lab 1 0 0 0 height
lenght height lenght 0;
#X obj 8 293 drawsymbol -v selection menu 4 2 col-lab;
#X connect 0 0 7 0;
#X connect 1 0 6 1;
#X connect 2 0 9 0;
#X connect 3 0 5 0;
#X connect 4 0 3 1;
#X connect 6 0 2 0;
#X connect 7 0 6 0;
#X connect 7 1 1 0;
#X connect 9 0 3 0;
#X connect 10 0 0 0;
#X restore 128 40 pd \$0-element;
#X obj 128 20 namecanvas \$0-menu;
#N canvas 110 254 616 633 patch 0;
#X obj 286 250 textfile;
#X obj 306 230 until;
#X msg 424 90 clear;
#X obj 424 110 s pd-\$0-paint;
#X obj 315 560 s pd-\$0-paint;
#X obj 353 150 symbol \$0-element;
#X obj 358 320 l2s;
#X obj 192 410 + 0;
#X obj 161 600 s \$0-menu;
#X msg 171 530 donecanvasdialog 1 1 2 0 0 \$3 \$2 \$3 \$2 0 0 \, dirty
0;
#X msg 17 450 0 \$1;
#X obj 351 250 0;
#X obj 17 390 r \$0-open/close;
#X obj 99 410 r \$0-ypos;
#X obj 340 420 r \$0-ypos;
#X obj 207 390 r \$0-ypos;
#X obj 17 430 expr if ($f1 == 1 \, $f2 \, $f3);
#X obj 161 480 pack f f \$2;
#X msg 286 210 read \$1 cr \, rewind;
#X msg 161 580 donecanvasdialog 1 -1 2 0 -1 1 1 \$3 \$2 0 0 \, dirty
0;
#X obj 315 440 * 1;
#X obj 315 340 f+ 0 1;
#X obj 405 390 s \$0-sellist;
#X obj 405 370 f;
#X obj 326 30 loadbang;
#X text 18 10 Reads configuration file and creates the menu scalars.
;
#X msg 315 480 scalar \$2 0 0 \$3 \$4 \$5 0 \$1 \$6 \$7;
#X obj 422 290 sel 1;
#X obj 422 320 999;
#X obj 450 320 0;
#X text 432 230 Sets default colors;
#X obj 422 270 expr if($i1 + $i2 == 0 \, 1 \, 0);
#X obj 422 250 list \$5 \$6;
#X obj 351 270 outlet;
#X obj 222 460 r \$0-lenght;
#X obj 315 300 t b a;
#X text 233 500 scalar parameters: x y menu lenght height selection
ypos col-back col-lab;
#X obj 182 350 r \$0-gop-height;
#X text 153 330 New height after "size";
#X obj 326 50 t b b;
#X obj 353 70 t b b b b;
#X obj 306 90 t b b b;
#X obj 257 130 r \$0-load;
#X obj 257 150 t b s b;
#N canvas 424 551 297 172 path+file 0;
#X obj 12 66 symbol jp.menu-\$1.txt;
#X obj 12 106 list;
#X msg 12 126 read \$2/\$1 cr \, rewind;
#X obj 12 46 t b b;
#X obj 12 26 inlet;
#X obj 12 146 outlet;
#X text 12 6 Gets path of parent patch and opens file;
#X obj 33 86 getdir 3;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 2 0 5 0;
#X connect 3 0 0 0;
#X connect 3 1 7 0;
#X connect 4 0 3 0;
#X connect 7 0 1 1;
#X restore 325 180 pd path+file;
#N canvas 75 90 370 149 dimensions 0;
#X obj 11 109 s \$0-ypos;
#X obj 11 39 inlet;
#X obj 11 69 f \$3;
#X obj 11 89 expr if($i1 == 0 \, 17 \, $i1);
#X text 11 9 Checks if arguments for lenght and height are there. If
not \, takes 100 + 17 as default values.;
#X obj 181 69 f \$2;
#X obj 181 89 expr if($i1 == 0 \, 100 \, $i1);
#X obj 181 109 s \$0-lenght;
#X connect 1 0 2 0;
#X connect 1 0 5 0;
#X connect 2 0 3 0;
#X connect 3 0 0 0;
#X connect 5 0 6 0;
#X connect 6 0 7 0;
#X restore 387 130 pd dimensions;
#X obj 315 460 pack f s s f f \$5 \$6;
#X obj 373 440 r \$0-lenght;
#X connect 0 0 35 0;
#X connect 0 1 1 1;
#X connect 0 1 11 0;
#X connect 0 1 23 0;
#X connect 1 0 0 0;
#X connect 2 0 3 0;
#X connect 5 0 46 1;
#X connect 6 0 46 2;
#X connect 7 0 16 2;
#X connect 7 0 17 1;
#X connect 9 0 4 0;
#X connect 10 0 17 0;
#X connect 11 0 33 0;
#X connect 12 0 16 0;
#X connect 13 0 16 1;
#X connect 14 0 20 1;
#X connect 14 0 46 4;
#X connect 15 0 7 1;
#X connect 16 0 10 0;
#X connect 17 0 9 0;
#X connect 17 0 19 0;
#X connect 18 0 0 0;
#X connect 19 0 8 0;
#X connect 20 0 7 0;
#X connect 20 0 46 0;
#X connect 21 0 20 0;
#X connect 21 0 23 1;
#X connect 23 0 22 0;
#X connect 24 0 39 0;
#X connect 26 0 4 0;
#X connect 27 0 29 0;
#X connect 27 0 28 0;
#X connect 28 0 46 5;
#X connect 29 0 46 6;
#X connect 31 0 27 0;
#X connect 32 0 31 0;
#X connect 34 0 17 2;
#X connect 35 0 21 0;
#X connect 35 1 6 0;
#X connect 37 0 16 2;
#X connect 39 0 41 0;
#X connect 39 1 40 0;
#X connect 40 0 5 0;
#X connect 40 1 32 0;
#X connect 40 2 45 0;
#X connect 40 3 2 0;
#X connect 41 0 1 0;
#X connect 41 1 44 0;
#X connect 41 2 21 1;
#X connect 42 0 43 0;
#X connect 43 0 1 0;
#X connect 43 1 18 0;
#X connect 43 2 21 1;
#X connect 44 0 0 0;
#X connect 46 0 26 0;
#X connect 47 0 46 3;
#X restore 197 110 pd patch;
#X obj 138 70 inlet;
#X obj 128 180 outlet;
#N canvas 537 83 484 364 selection 0;
#X obj 202 22 inlet;
#X obj 301 212 symbol \$0-paint;
#X obj 301 272 pointer;
#X msg 252 252 next;
#X msg 301 232 traverse pd-\$1;
#X msg 265 102 1 0 0 0;
#X obj 265 142 list-rot;
#X obj 310 122 * -1;
#X obj 265 162 list-drip;
#X obj 225 232 t f b;
#X msg 158 212 1 1 1 1;
#X obj 275 62 outlet;
#X obj 265 82 t b f b b;
#X obj 225 332 set \$0-element selection y;
#X obj 356 162 s \$0-open/close-i;
#X obj 158 122 r \$0-open/close;
#X obj 158 182 t b b;
#X obj 158 142 t f f;
#X msg 356 142 1;
#X obj 301 312 expr if ($f2 == 0 \, $f1 \, 0);
#X obj 158 162 sel 0;
#X obj 14 48 r \$0-sellist;
#X msg 68 108 set \, add2 1;
#X obj 41 128 until;
#X msg 51 148 add2 1;
#X msg 41 168 add2 0;
#X obj 41 88 t f b;
#X obj 14 68 sel 0;
#N canvas 927 111 462 171 messages 0;
#X obj 11 27 inlet;
#X text 12 7 Messages accepted by [jp.menu];
#X obj 11 87 outlet;
#X obj 58 147 outlet;
#X obj 11 67 0;
#N canvas 843 386 300 290 color 0;
#X obj 16 52 route bang;
#X obj 16 242 s pd-\$0-color-selector;
#X msg 16 222 vis 1;
#N canvas 423 741 518 243 \$0-color-selector 0;
#N canvas 298 464 528 328 color-sel-gui 0;
#X obj 12 59 ds-color-sel;
#X obj 12 154 ds-color-sel;
#X obj 425 25 bng 15 250 50 0 \$0-send-colors \$0-send-colors-i empty
17 7 0 10 -228856 -1 -1;
#X text 442 23 Send colors;
#X obj 12 258 pack s f f;
#X msg 12 238 symbol color;
#X obj 12 298 s \$0-color-reset;
#X msg 12 278 \$2 \$3;
#X text 12 41 Background color;
#X text 12 136 Label and border color;
#X text 12 13 Click the desired color for the fields \, and click the
"send" button when you're finished.;
#X connect 0 0 4 1;
#X connect 1 0 4 2;
#X connect 2 0 5 0;
#X connect 4 0 7 0;
#X connect 5 0 4 0;
#X connect 7 0 6 0;
#X coords 0 -1 1 1 506 217 2 10 10;
#X restore 5 14 pd color-sel-gui;
#X restore 16 262 pd \$0-color-selector;
#X obj 83 72 r \$0-color-reset;
#X obj 16 32 inlet;
#X msg 92 142 traverse \$1;
#X obj 92 122 symbol pd-\$0-paint;
#X obj 92 162 pointer \$0-element;
#X msg 54 142 next;
#X obj 54 122 until;
#X obj 92 202 set \$0-element col-back col-lab;
#X obj 92 182 list prepend;
#X obj 73 92 t b b a;
#X text 17 12 Sets color scheme;
#X connect 0 0 2 0;
#X connect 0 1 13 0;
#X connect 2 0 1 0;
#X connect 4 0 13 0;
#X connect 5 0 0 0;
#X connect 6 0 8 0;
#X connect 7 0 6 0;
#X connect 8 0 12 0;
#X connect 8 2 10 1;
#X connect 9 0 8 0;
#X connect 10 0 9 0;
#X connect 12 0 11 0;
#X connect 13 0 10 0;
#X connect 13 1 7 0;
#X connect 13 2 12 1;
#X restore 120 87 pd color;
#N canvas 949 107 426 490 size 0;
#X obj 99 74 s pd-\$0-paint;
#X obj 82 114 s \$0-menu;
#X obj 48 14 inlet;
#X msg 99 54 donecanvasdialog 1 1 2 0 0 \$1 \$2 \$1 \$2 0 0 \, dirty
0;
#X msg 82 94 donecanvasdialog 1 -1 2 0 -1 1 1 \$1 \$2 0 0 \, dirty
0;
#X msg 65 374 traverse \$1;
#X obj 65 234 symbol pd-\$0-paint;
#X obj 65 394 pointer \$0-element;
#X msg 27 374 next;
#X obj 27 234 until;
#X obj 65 464 set \$0-element lenght height ypos;
#X obj 122 154 s \$0-ypos;
#X obj 65 134 unpack f f;
#X obj 65 174 s \$0-lenght;
#X obj 103 304 r \$0-ypos;
#X obj 88 324 * 1;
#X obj 88 284 f+ 0 1;
#X obj 48 204 t b b b a;
#X obj 27 254 t b b;
#X obj 65 424 pack p f f f;
#X msg 65 444 \$3 \$4 \$2 \$1;
#X obj 48 34 t l l l l;
#X obj 111 254 unpack f f;
#X obj 98 344 s \$0-gop-height;
#X connect 2 0 21 0;
#X connect 3 0 0 0;
#X connect 4 0 1 0;
#X connect 5 0 7 0;
#X connect 6 0 5 0;
#X connect 7 0 19 0;
#X connect 7 2 9 1;
#X connect 8 0 7 0;
#X connect 9 0 18 0;
#X connect 12 0 13 0;
#X connect 12 1 11 0;
#X connect 14 0 15 1;
#X connect 15 0 19 1;
#X connect 15 0 23 0;
#X connect 16 0 15 0;
#X connect 17 0 9 0;
#X connect 17 1 6 0;
#X connect 17 2 16 1;
#X connect 17 3 22 0;
#X connect 18 0 8 0;
#X connect 18 1 16 0;
#X connect 19 0 20 0;
#X connect 20 0 10 0;
#X connect 21 0 17 0;
#X connect 21 1 12 0;
#X connect 21 2 4 0;
#X connect 21 3 3 0;
#X connect 22 0 19 2;
#X connect 22 1 19 3;
#X restore 157 67 pd size;
#N canvas 1157 204 292 160 load 0;
#X obj 14 13 inlet;
#X msg 41 53 clear;
#X obj 41 73 s pd-\$0-paint;
#X obj 14 133 s \$0-load;
#X obj 14 33 t a b;
#X msg 14 113 symbol jp.menu-\$1.txt;
#X obj 14 93 symbol;
#X connect 0 0 4 0;
#X connect 1 0 2 0;
#X connect 4 0 6 0;
#X connect 4 1 1 0;
#X connect 5 0 3 0;
#X connect 6 0 5 0;
#X restore 193 87 pd load;
#X msg 314 87 Error: wrong command;
#X obj 314 107 print jp.menu-\$1;
#N canvas 517 402 403 243 input 0;
#X obj 10 50 inlet;
#X obj 10 70 i;
#X obj 10 140 moses 0;
#X obj 49 210 outlet;
#X text 9 11 Filters selection input. Selecting last element creates
new preset.;
#X msg 109 170 Error - outside preset range;
#X obj 70 50 inlet;
#X obj 210 50 inlet;
#X obj 70 100 +;
#X obj 70 70 1;
#X obj 210 100 +;
#X obj 210 70 -1;
#X obj 210 120 moses 0;
#X obj 70 120 moses 0;
#X obj 109 50 r \$0-sellist;
#X obj 109 190 print jp.menu-\$1;
#X obj 109 100 + 1;
#X obj 49 190 moses;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 1 0 8 1;
#X connect 1 0 10 1;
#X connect 2 0 5 0;
#X connect 2 1 17 0;
#X connect 5 0 15 0;
#X connect 6 0 9 0;
#X connect 7 0 11 0;
#X connect 8 0 13 0;
#X connect 9 0 8 0;
#X connect 10 0 12 0;
#X connect 11 0 10 0;
#X connect 12 0 5 0;
#X connect 12 1 1 0;
#X connect 13 0 1 0;
#X connect 13 1 5 0;
#X connect 14 0 16 0;
#X connect 16 0 13 1;
#X connect 16 0 17 1;
#X connect 17 0 3 0;
#X connect 17 1 5 0;
#X restore 58 127 pd input;
#X obj 11 47 route open float bang color size load next previous;
#X connect 0 0 11 0;
#X connect 4 0 2 0;
#X connect 8 0 9 0;
#X connect 10 0 3 0;
#X connect 11 0 4 0;
#X connect 11 1 10 0;
#X connect 11 2 10 0;
#X connect 11 3 5 0;
#X connect 11 4 6 0;
#X connect 11 5 7 0;
#X connect 11 6 10 1;
#X connect 11 7 10 2;
#X connect 11 8 8 0;
#X restore 202 42 pd messages;
#X obj 301 292 get \$0-element ypos menu;
#X obj 282 22 inlet;
#X connect 0 0 28 0;
#X connect 1 0 4 0;
#X connect 2 0 13 2;
#X connect 2 0 29 0;
#X connect 3 0 2 0;
#X connect 4 0 2 0;
#X connect 5 0 6 0;
#X connect 6 0 8 0;
#X connect 7 0 6 1;
#X connect 8 0 9 0;
#X connect 9 0 13 0;
#X connect 9 1 3 0;
#X connect 10 0 8 0;
#X connect 12 0 5 0;
#X connect 12 1 7 0;
#X connect 12 2 1 0;
#X connect 12 3 18 0;
#X connect 15 0 17 0;
#X connect 16 0 10 0;
#X connect 16 1 1 0;
#X connect 17 0 20 0;
#X connect 17 1 19 1;
#X connect 18 0 14 0;
#X connect 19 0 13 1;
#X connect 20 0 16 0;
#X connect 21 0 27 0;
#X connect 22 0 5 0;
#X connect 22 0 10 0;
#X connect 23 0 24 0;
#X connect 23 0 25 0;
#X connect 24 0 10 0;
#X connect 25 0 5 0;
#X connect 26 0 23 0;
#X connect 26 1 22 0;
#X connect 27 1 26 0;
#X connect 28 0 14 0;
#X connect 28 1 12 0;
#X connect 28 1 11 0;
#X connect 29 0 19 0;
#X connect 30 0 12 0;
#X restore 128 130 pd selection;
#X obj 147 90 receive \$4-i;
#X obj 137 160 send \$4;
#N canvas 125 353 450 300 \$0-paint 0;
#X scalar 1082-element 0 0 Click 100 17 1 0 999 0 \;;
#X scalar 1082-element 0 0 Voice + Click 100 17 0 17 999 0 \;;
#X scalar 1082-element 0 0 Voice 100 17 0 34 999 0 \;;
#X scalar 1082-element 0 0 Voice B+B 100 17 0 51 999 0 \;;
#X coords 0 0 100 17 100 17 2 0 0;
#X restore 0 0 pd \$0-paint;
#N canvas 436 171 450 300 zutun 0;
#X text 26 88 ## saida da direita com símbolo de label. para isso
\, só tem que apanhar o símbolo apenas quando entra float \, nao
quando há open.;
#X text 26 58 ## editar e gravar configuracao usando mensagens? funciona
com text \, ou tem que se usar a nova versao?;
#X restore 258 180 pd zutun;
#X connect 0 0 5 0;
#X connect 2 0 5 1;
#X connect 3 0 5 0;
#X connect 5 0 4 0;
#X connect 5 0 7 0;
#X connect 6 0 5 0;
#X coords 0 -1 1 1 100 17 2 0 0;
#N struct 1036-color float x float y float farbe;
#N struct 1036-color-display float x float y float farbe;
#N struct 1039-color float x float y float farbe;
#N struct 1039-color-display float x float y float farbe;
#N struct 1034-element float x float y symbol menu float lenght float
height float selection float ypos float col-back float col-lab;
#N struct 1132-color float x float y float farbe;
#N struct 1132-color-display float x float y float farbe;
#N struct 1135-color float x float y float farbe;
#N struct 1135-color-display float x float y float farbe;
#N struct 1130-element float x float y symbol menu float lenght float
height float selection float ypos float col-back float col-lab;
#N canvas 217 63 770 565 10;
#N canvas 0 0 396 419 license 0;
#X text 8 47 All rights reserved.;
#X text 8 227 The names of its contributors may not be used to endorse
or promote products derived from this software without specific prior
written permission.;
#X text 8 87 Redistribution and use in source and binary forms \, with
or without modification \, are permitted provided that the following
conditions are met:;
#X text 8 127 Redistributions of source code must retain the above
copyright notice \, this list of conditions and the following disclaimer.
;
#X text 8 297 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES \, INCLUDING
\, BUT NOT LIMITED TO \, THE IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT \, INDIRECT
\, INCIDENTAL \, SPECIAL \, EXEMPLARY \, OR CONSEQUENTIAL DAMAGES (INCLUDING
\, BUT NOT LIMITED TO \, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES
;
#X text 8 167 Redistributions in binary form must reproduce the above
copyright notice \, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the distribution.
;
#X text 8 7 Copyright 2016 \, João Pais;
#X text 8 27 jmmmpais@gmail.com;
#X restore 411 536 pd license;
#X text 409 441 Outlets;
#X text 409 291 - bang - outputs current setting;
#N canvas 564 268 494 344 META 0;
#X text 12 95 LICENSE BSD;
#X text 12 75 LIBRARY jmmmp;
#X text 13 115 WEBSITE http://puredata.info/Members/jmmmp;
#X text 12 6 DESCRIPTION Dropdown menu programmed with data structures
;
#X text 12 36 KEYWORDS menu GOP data-structures;
#X text 12 55 AUTHOR João Pais <jmmmpais@gmail.com>;
#X text 12 135 VERSION 2016;
#X restore 501 536 pd META;
#X text 409 61 - name of configuration file;
#N canvas 403 54 381 365 configuration 0;
#X text 9 87 Name;
#X text 9 157 Content;
#X text 9 227 Load new file;
#X text 9 247 To load a new file \, send the message "load \$1" with
the symbol as argument.;
#X text 9 7 HOW TO FORMAT THE CONFIGURATION FILE FOR [jp.preset];
#X text 9 37 The configuration file must be a .txt file \, stored in
the same folder as the main patch where [jp.preset] is being used.
;
#X text 9 107 The file must be named jp.preset-NAME.txt.;
#X text 9 127 The NAME will be used as the first argument for [jp.preset].
;
#X text 9 177 The content consists of as many lines as items in the
menu. At the start of each line is the preset's label \, followed by
the parameters.;
#X msg 9 288 load test1;
#X msg 19 308 load test2;
#X obj 9 337 s \$0-test2-i;
#X connect 9 0 11 0;
#X connect 10 0 11 0;
#X restore 262 341 pd configuration;
#X text 410 516 (C) 2016 João Pais - jmmmpais@gmail.com;
#X text 409 211 - integer - select item number. From 0 upwards.;
#X obj 18 111 hradio 15 1 0 4 empty empty empty 0 -8 0 10 -262144 -1
-1 0;
#X text 429 121 - identifier for receive/send names;
#X msg 28 131 open;
#X text 409 191 Input messages;
#X text 409 271 - open - opens full menu;
#X text 12 466 Limitations of data structures;
#X text 12 526 - the message "drawnumber_motion: symbol" appears in
the console when instead of clicking \, the user drags the menu;
#N canvas 204 57 396 209 send/receive 0;
#X text 9 7 SEND/RECEIVE VARIABLES;
#X text 9 77 The variables are formated as:;
#X text 9 147 For example \, if the 3rd argument is "menusend" \, the
receive name will be "menusend-i". You can use also dollarsigns as
symbols: \$0 \, \$1 \, etc. \, as in the example in the main patch.
;
#X text 9 37 [jp.preset] lets you define an internal variable to use
with send and receive objects. You can send and receive any messages
to it.;
#X text 9 97 - the 4th argument gives the send name;
#X text 9 117 - the receive name adds "-i" to the 4th argument;
#X restore 164 401 pd send/receive;
#X text 409 351 - color \$1 \$2 - change colors;
#X text 429 141 - background color;
#X text 429 161 - label / border color;
#X text 409 391 - size x y - change menu size;
#X text 12 486 The following limitations are built in to Pure Data:
;
#X obj 18 171 print PRESET;
#X msg 238 301 1 2 3;
#X obj 238 281 prepend set;
#X text 409 311 - save \$1 ... - replaces current preset;
#X text 409 331 - rename - open input window to rename current preset
;
#X text 409 371 - color - open color selector;
#X text 409 411 - load \$1 - load other configuration from the same
folder;
#X text 14 381 Select items;
#N canvas 500 61 386 239 select 0;
#X msg 22 91 next;
#X msg 32 111 previous;
#X floatatom 12 71 5 0 0 0 - - -;
#X text 12 7 To select an item;
#X text 12 27 You can send an integer to select an item. The strings
"next" and "previous" also move between the elements of the menu.;
#X text 12 167 The message "open" shows the full menu.;
#X msg 12 187 open;
#X obj 12 131 s \$0-test2-i;
#X obj 12 207 s \$0-test2-i;
#X connect 0 0 7 0;
#X connect 1 0 7 0;
#X connect 2 0 7 0;
#X connect 6 0 8 0;
#X restore 164 381 pd select;
#X text 409 231 - next - outputs next item;
#X text 409 251 - previous - outputs previous item;
#X text 14 401 Send/receive variables;
#N canvas 491 72 386 554 edit 0;
#X text 12 337 You can edit the configuration file in anyway you want.
Or you can use the GUI:;
#X text 12 387 - the name window appears \, you will be prompted to
give it a name;
#X text 12 417 - the new preset slot is created. You can write data
to it by sending the message "save \$1 ...";
#X text 12 367 - click the last preset slot \, called "NEW";
#X text 12 447 - the preset file is automatically saved after you add
some content to it.;
#X text 12 317 To add a new preset;
#X text 12 37 To write a preset;
#X text 12 57 - select a preset \, making it active;
#X text 12 77 - send the message "save \$1 ..." to [jp.preset]. It
overwrites the active preset and saves the file.;
#X text 12 207 - select a preset \, making it active;
#X text 12 227 - send the message "save \$1 ..." to [jp.preset]. It
overwrites the active preset and saves the file.;
#X text 12 187 To rename a preset;
#X msg 11 107 save ano soa apdp aospd;
#X msg 21 127 save 1 23 aa xpto -5;
#X msg 11 257 rename;
#X text 12 7 All content operations save the preset file immediately.
;
#X text 12 497 To delete a preset;
#X text 12 517 For now \, the only way to delete a preset is by editing
the text file with the data.;
#X obj 11 147 s \$0-test2-i;
#X obj 11 277 s \$0-test2-i;
#X connect 12 0 18 0;
#X connect 13 0 18 0;
#X connect 14 0 19 0;
#X restore 164 361 pd edit;
#X text 14 361 Edit presets;
#X text 14 421 Display configuration;
#N canvas 509 163 442 464 display 0;
#X msg 21 307 color 57 600;
#X text 10 167 Change colors:;
#X obj 373 227 pd-colors;
#X msg 11 387 color;
#X text 11 367 Or send only the message "color" to open a color selector.
;
#X text 11 227 The colors follow the data structures color scheme.
Look at;
#X text 11 241 for a complete palette.;
#X text 11 257 If both color arguments are 0 \, default colors will
be used.;
#X msg 11 287 color 999 0;
#X text 91 287 default values;
#X text 11 207 \$1 = background color \, \$2 = label+border color;
#X text 11 187 Send the message "color \$1 \$2" to set the menu colors.
;
#X msg 31 327 color 60 999;
#X text 11 427 !! Mind \, for "color" the object doesn't get saved
with the new parameters !! You must edit the object itself.;
#X msg 20 47 size 60 70;
#X msg 30 67 size 120 20;
#X msg 10 27 size 80 15;
#X text 10 7 Change menu size;
#X text 10 107 !! Mind \, for "size" the object doesn't get saved with
the new parameters !! You must edit the object itself.;
#X obj 10 87 s \$0-test2-i;
#X obj 11 347 s \$0-test2-i;
#X obj 11 407 s \$0-test2-i;
#X connect 0 0 20 0;
#X connect 3 0 21 0;
#X connect 8 0 20 0;
#X connect 12 0 20 0;
#X connect 14 0 19 0;
#X connect 15 0 19 0;
#X connect 16 0 19 0;
#X restore 164 421 pd display;
#X text 19 211 This object is controlled by the send/receive variables
defined as arguments.;
#X text 14 91 This preset has 4 items;
#X text 428 81 - lenght (pixels) \, set to 100 if not used;
#X text 429 101 - height (pixels) \, set to 17 if not used;
#X text 409 31 Arguments - Always use the first argument \, others
are facultative;
#X obj 138 261 hradio 15 1 0 5 empty empty empty 0 -8 0 10 -262144
-1 -1 0;
#X text 139 241 Send:;
#X text 239 241 Receive:;
#X text 12 41 [jp.preset] can be used to store and recall lists of
values. You can connect it with another object \, or use configurable
send/receive variables.;
#X text 11 11 [jp.preset] - Dropdown preset saver programmed with data
structures;
#X text 409 461 - list of elements;
#X obj 18 151 jp.preset test1;
#X obj 138 281 s \$0-test2-i;
#X obj 238 261 r \$0-test2;
#X text 14 341 Formatting/loading a configuration file;
#X text 12 506 - the size and font of the label can't be changed;
#X obj 18 241 jp.preset test2 100 22 \$0-test2 89 9;
#X connect 8 0 48 0;
#X connect 10 0 48 0;
#X connect 23 0 22 0;
#X connect 42 0 49 0;
#X connect 48 0 21 0;
#X connect 50 0 23 0;
test1 1 2 3
test2 -1 -2 -3 -4 -5
test3 0.1 0.2 0.3 0.4
othertest a b 1 2 c 3 d e f -4 -5 -6
item1 1 2 3
something -1 -2 -3 -4 -5
else 0.1 0.2 0.3 0.4
list a b 1 2 c 3 d e f -4 -5 -6
a_symbol symb
\ No newline at end of file
#N struct 1036-color float x float y float farbe;
#N struct 1036-color-display float x float y float farbe;
#N struct 1039-color float x float y float farbe;
#N struct 1039-color-display float x float y float farbe;
#N canvas 558 47 375 250 10;
#X declare -stdlib zexy;
#N canvas 156 50 442 365 \$0-element 0;
#X obj 8 94 route click;
#X obj 35 134 tgl 15 0 \$0-open/close \$0-open/close-i empty 17 7 0
10 -262144 -1 -1 1 1;
#X obj 8 182 unpack pointer f;
#X obj 8 242 / 1;
#X obj 23 222 r \$0-ypos;
#X obj 8 262 outlet;
#X obj 8 152 spigot;
#X obj 8 114 t l b;
#X text 8 14 Data structures template and click interaction;
#X obj 8 202 get \$0-element ypos;
#X obj 8 44 struct \$0-element float x float y symbol menu float lenght
float height float selection float ypos float col-back float col-lab
;
#X obj 8 313 filledpolygon -v selection col-back col-lab 1 0 0 0 height
lenght height lenght 0;
#X obj 8 293 drawsymbol -v selection menu 4 2 col-lab;
#X connect 0 0 7 0;
#X connect 1 0 6 1;
#X connect 2 0 9 0;
#X connect 3 0 5 0;
#X connect 4 0 3 1;
#X connect 6 0 2 0;
#X connect 7 0 6 0;
#X connect 7 1 1 0;
#X connect 9 0 3 0;
#X connect 10 0 0 0;
#X restore 128 40 pd \$0-element;
#X obj 128 20 namecanvas \$0-menu;
#N canvas 800 113 691 659 patch 0;
#X msg 408 90 clear;
#X obj 408 110 s pd-\$0-paint;
#X obj 309 590 s pd-\$0-paint;
#X obj 357 150 symbol \$0-element;
#X obj 352 360 l2s;
#X obj 183 440 + 0;
#X obj 155 630 s \$0-menu;
#X msg 165 560 donecanvasdialog 1 1 2 0 0 \$3 \$2 \$3 \$2 0 0 \, dirty
0;
#X msg 8 480 0 \$1;
#X obj 350 250 0;
#X obj 8 420 r \$0-open/close;
#X obj 90 440 r \$0-ypos;
#X obj 198 420 r \$0-ypos;
#X obj 8 460 expr if ($f1 == 1 \, $f2 \, $f3);
#X msg 155 610 donecanvasdialog 1 -1 2 0 -1 1 1 \$3 \$2 0 0 \, dirty
0;
#X obj 309 470 * 1;
#X obj 309 380 f+ 0 1;
#X obj 401 430 s \$0-sellist;
#X obj 401 410 f;
#X text 22 10 Reads configuration file and creates the menu scalars.
;
#X msg 309 510 scalar \$2 0 0 \$3 \$4 \$5 0 \$1 \$6 \$7;
#X obj 496 270 sel 1;
#X obj 496 300 999;
#X obj 524 300 0;
#X text 496 210 Sets default colors;
#X obj 350 270 outlet;
#X obj 212 490 r \$0-lenght;
#X obj 309 340 t b a;
#X text 317 530 scalar parameters: x y menu lenght height selection
ypos col-back col-lab;
#X obj 173 400 r \$0-gop-height;
#X text 124 380 New height after "size";
#X obj 330 50 t b b;
#X obj 357 70 t b b b b;
#X obj 261 150 r \$0-load;
#X obj 261 170 t b s b;
#N canvas 133 417 276 172 path+file 0;
#X obj 12 106 list;
#X obj 12 46 t b b;
#X obj 12 26 inlet;
#X text 12 6 Gets path of parent patch and opens file;
#X obj 12 66 symbol jp.preset-\$1.txt;
#X msg 12 126 symbol \$2/\$1;
#X obj 12 146 s \$0-load;
#X obj 33 86 ggee/getdir 3;
#X connect 0 0 5 0;
#X connect 1 0 4 0;
#X connect 1 1 7 0;
#X connect 2 0 1 0;
#X connect 4 0 0 0;
#X connect 5 0 6 0;
#X connect 7 0 0 1;
#X restore 280 90 pd path+file;
#X obj 280 300 list split 1;
#X obj 280 230 msgfile;
#X obj 261 210 until;
#X msg 280 190 read \$1 cr \, rewind;
#X obj 303 35 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 401 290 symbol NEW;
#X obj 350 230 t b b b b;
#X obj 411 270 r \$0-addNEW;
#X obj 401 310 t b s;
#X obj 330 30 loadbang;
#X obj 496 230 pack \$5 \$6;
#X obj 496 250 expr if($i1 + $i2 == 0 \, 1 \, 0);
#X text 436 491 pack f s s \$2 \$3 \$5 \$6;
#X obj 309 490 pack f s s f f \$5 \$6;
#X obj 155 510 pack f f f;
#X obj 337 440 r \$0-ypos;
#X obj 367 470 r \$0-lenght;
#N canvas 75 90 370 149 dimensions 0;
#X obj 11 109 s \$0-ypos;
#X obj 11 39 inlet;
#X obj 11 69 f \$3;
#X obj 11 89 expr if($i1 == 0 \, 17 \, $i1);
#X text 11 9 Checks if arguments for lenght and height are there. If
not \, takes 100 + 17 as default values.;
#X obj 181 69 f \$2;
#X obj 181 89 expr if($i1 == 0 \, 100 \, $i1);
#X obj 181 109 s \$0-lenght;
#X connect 1 0 2 0;
#X connect 1 0 5 0;
#X connect 2 0 3 0;
#X connect 3 0 0 0;
#X connect 5 0 6 0;
#X connect 6 0 7 0;
#X restore 391 130 pd dimensions;
#X connect 0 0 1 0;
#X connect 3 0 49 1;
#X connect 4 0 49 2;
#X connect 5 0 13 2;
#X connect 5 0 50 1;
#X connect 7 0 2 0;
#X connect 8 0 50 0;
#X connect 9 0 25 0;
#X connect 10 0 13 0;
#X connect 11 0 13 1;
#X connect 12 0 5 1;
#X connect 13 0 8 0;
#X connect 14 0 6 0;
#X connect 15 0 5 0;
#X connect 15 0 49 0;
#X connect 16 0 15 0;
#X connect 16 0 18 1;
#X connect 18 0 17 0;
#X connect 20 0 2 0;
#X connect 21 0 23 0;
#X connect 21 0 22 0;
#X connect 22 0 49 5;
#X connect 23 0 49 6;
#X connect 26 0 50 2;
#X connect 27 0 16 0;
#X connect 27 1 4 0;
#X connect 29 0 13 2;
#X connect 31 0 35 0;
#X connect 31 1 32 0;
#X connect 32 0 3 0;
#X connect 32 1 46 0;
#X connect 32 2 53 0;
#X connect 32 3 0 0;
#X connect 33 0 34 0;
#X connect 34 0 38 0;
#X connect 34 1 39 0;
#X connect 34 2 16 1;
#X connect 36 0 27 0;
#X connect 37 0 36 0;
#X connect 37 1 42 0;
#X connect 38 0 37 0;
#X connect 39 0 37 0;
#X connect 40 0 31 0;
#X connect 41 0 44 0;
#X connect 42 0 9 0;
#X connect 42 2 38 1;
#X connect 42 3 41 0;
#X connect 43 0 41 0;
#X connect 44 0 18 0;
#X connect 44 1 27 0;
#X connect 45 0 31 0;
#X connect 46 0 47 0;
#X connect 47 0 21 0;
#X connect 49 0 20 0;
#X connect 50 0 7 0;
#X connect 50 0 14 0;
#X connect 51 0 49 4;
#X connect 51 0 15 1;
#X connect 52 0 49 3;
#X restore 197 110 pd patch;
#X obj 138 70 inlet;
#X obj 128 180 outlet;
#N canvas 77 301 547 364 selection 0;
#X obj 234 22 inlet;
#X obj 301 212 symbol \$0-paint;
#X obj 301 272 pointer;
#X msg 252 252 next;
#X msg 301 232 traverse pd-\$1;
#X msg 265 102 1 0 0 0 0;
#X obj 364 122 * -1;
#X obj 225 232 t f b;
#X msg 158 212 1 1 1 1 1;
#X obj 297 62 outlet;
#X obj 265 82 t b f b b;
#X obj 225 332 set \$0-element selection y;
#X obj 396 162 s \$0-open/close-i;
#X obj 158 122 r \$0-open/close;
#X obj 158 182 t b b;
#X obj 158 142 t f f;
#X msg 396 142 1;
#X obj 301 312 expr if ($f2 == 0 \, $f1 \, 0);
#X obj 158 162 sel 0;
#X obj 14 48 r \$0-sellist;
#X msg 68 108 set \, add2 1;
#X obj 41 128 until;
#X msg 51 148 add2 1;
#X msg 41 168 add2 0;
#X obj 41 88 t f b;
#X obj 14 68 sel 0;
#N canvas 184 50 479 211 messages 0;
#X obj 11 27 inlet;
#X obj 11 107 outlet;
#X obj 170 177 outlet;
#X obj 11 87 0;
#N canvas 506 305 300 290 color 0;
#X obj 16 52 route bang;
#X obj 16 242 s pd-\$0-color-selector;
#X msg 16 222 vis 1;
#N canvas 423 741 518 243 \$0-color-selector 0;
#N canvas 298 464 528 328 color-sel-gui 0;
#X obj 12 59 ds-color-sel;
#X obj 12 154 ds-color-sel;
#X obj 425 25 bng 15 250 50 0 \$0-send-colors \$0-send-colors-i empty
17 7 0 10 -228856 -1 -1;
#X text 442 23 Send colors;
#X obj 12 258 pack s f f;
#X msg 12 238 symbol color;
#X obj 12 298 s \$0-color-reset;
#X msg 12 278 \$2 \$3;
#X text 12 41 Background color;
#X text 12 136 Label and border color;
#X text 12 13 Click the desired color for the fields \, and click the
"send" button when you're finished.;
#X connect 0 0 4 1;
#X connect 1 0 4 2;
#X connect 2 0 5 0;
#X connect 4 0 7 0;
#X connect 5 0 4 0;
#X connect 7 0 6 0;
#X coords 0 -1 1 1 506 217 2 10 10;
#X restore 5 14 pd color-sel-gui;
#X restore 16 262 pd \$0-color-selector;
#X obj 83 72 r \$0-color-reset;
#X obj 16 32 inlet;
#X msg 92 142 traverse \$1;
#X obj 92 122 symbol pd-\$0-paint;
#X obj 92 162 pointer \$0-element;
#X msg 54 142 next;
#X obj 54 122 until;
#X obj 92 202 set \$0-element col-back col-lab;
#X obj 92 182 list prepend;
#X obj 73 92 t b b a;
#X text 17 12 Sets color scheme;
#X connect 0 0 2 0;
#X connect 0 1 13 0;
#X connect 2 0 1 0;
#X connect 4 0 13 0;
#X connect 5 0 0 0;
#X connect 6 0 8 0;
#X connect 7 0 6 0;
#X connect 8 0 12 0;
#X connect 8 2 10 1;
#X connect 9 0 8 0;
#X connect 10 0 9 0;
#X connect 12 0 11 0;
#X connect 13 0 10 0;
#X connect 13 1 7 0;
#X connect 13 2 12 1;
#X restore 100 107 pd color;
#N canvas 471 174 426 490 size 0;
#X obj 99 74 s pd-\$0-paint;
#X obj 82 114 s \$0-menu;
#X obj 48 14 inlet;
#X msg 99 54 donecanvasdialog 1 1 2 0 0 \$1 \$2 \$1 \$2 0 0 \, dirty
0;
#X msg 82 94 donecanvasdialog 1 -1 2 0 -1 1 1 \$1 \$2 0 0 \, dirty
0;
#X msg 65 374 traverse \$1;
#X obj 65 234 symbol pd-\$0-paint;
#X obj 65 394 pointer \$0-element;
#X msg 27 374 next;
#X obj 27 234 until;
#X obj 65 464 set \$0-element lenght height ypos;
#X obj 122 154 s \$0-ypos;
#X obj 65 134 unpack f f;
#X obj 65 174 s \$0-lenght;
#X obj 103 304 r \$0-ypos;
#X obj 88 324 * 1;
#X obj 88 284 f+ 0 1;
#X obj 48 204 t b b b a;
#X obj 27 254 t b b;
#X obj 65 424 pack p f f f;
#X msg 65 444 \$3 \$4 \$2 \$1;
#X obj 48 34 t l l l l;
#X obj 111 254 unpack f f;
#X obj 98 344 s \$0-gop-height;
#X connect 2 0 21 0;
#X connect 3 0 0 0;
#X connect 4 0 1 0;
#X connect 5 0 7 0;
#X connect 6 0 5 0;
#X connect 7 0 19 0;
#X connect 7 2 9 1;
#X connect 8 0 7 0;
#X connect 9 0 18 0;
#X connect 12 0 13 0;
#X connect 12 1 11 0;
#X connect 14 0 15 1;
#X connect 15 0 19 1;
#X connect 15 0 23 0;
#X connect 16 0 15 0;
#X connect 17 0 9 0;
#X connect 17 1 6 0;
#X connect 17 2 16 1;
#X connect 17 3 22 0;
#X connect 18 0 8 0;
#X connect 18 1 16 0;
#X connect 19 0 20 0;
#X connect 20 0 10 0;
#X connect 21 0 17 0;
#X connect 21 1 12 0;
#X connect 21 2 4 0;
#X connect 21 3 3 0;
#X connect 22 0 19 2;
#X connect 22 1 19 3;
#X restore 126 87 pd size;
#N canvas 129 204 270 175 load 0;
#X obj 14 13 inlet;
#X msg 41 53 clear;
#X obj 41 73 s pd-\$0-paint;
#X obj 14 133 s \$0-load;
#X obj 14 33 t a b;
#X obj 14 93 symbol;
#X msg 14 113 symbol jp.preset-\$1.txt;
#X connect 0 0 4 0;
#X connect 1 0 2 0;
#X connect 4 0 5 0;
#X connect 4 1 1 0;
#X connect 5 0 6 0;
#X connect 6 0 3 0;
#X restore 162 107 pd load;
#X text 12 7 Messages accepted by [jp.preset];
#X obj 57 157 outlet;
#N canvas 347 312 450 300 store 0;
#X obj 16 28 inlet;
#X text 67 28 guarda um outro preset \, primeiro envia-se o nr;
#X restore 297 21 pd store;
#N canvas 517 402 493 387 input 0;
#X obj 10 50 inlet;
#X obj 10 70 i;
#X obj 10 180 moses 0;
#X obj 49 200 moses;
#X obj 96 170 r \$0-sellist;
#X obj 106 200 + 1;
#X obj 29 330 outlet;
#X text 9 11 Filters selection input. Selecting last element creates
new preset.;
#X obj 79 220 moses;
#X msg 106 240 Error - outside preset range;
#X obj 106 260 print jp.preset-\$1;
#X msg 98 320 vis 1;
#X obj 98 340 s pd-RENAME-\$0;
#X text 138 289 clicking on "NEW" selects it \, renames it and makes
a new "NEW" preset;
#X obj 79 290 t b b f;
#X obj 79 360 s \$0-addNEW;
#X obj 70 50 inlet;
#X obj 210 50 inlet;
#X obj 70 100 +;
#X obj 70 70 1;
#X obj 210 100 +;
#X obj 210 70 -1;
#X obj 210 120 moses 0;
#X obj 70 120 moses 0;
#X obj 109 100 r \$0-sellist;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 1 0 18 1;
#X connect 1 0 20 1;
#X connect 2 0 9 0;
#X connect 2 1 3 0;
#X connect 3 0 6 0;
#X connect 3 1 8 0;
#X connect 4 0 5 0;
#X connect 4 0 3 1;
#X connect 5 0 8 1;
#X connect 8 0 14 0;
#X connect 8 1 9 0;
#X connect 9 0 10 0;
#X connect 11 0 12 0;
#X connect 14 0 15 0;
#X connect 14 1 11 0;
#X connect 14 2 6 0;
#X connect 16 0 19 0;
#X connect 17 0 21 0;
#X connect 18 0 23 0;
#X connect 19 0 18 0;
#X connect 20 0 22 0;
#X connect 21 0 20 0;
#X connect 22 0 9 0;
#X connect 22 1 1 0;
#X connect 23 0 1 0;
#X connect 23 1 9 0;
#X connect 24 0 23 1;
#X restore 57 127 pd input;
#N canvas 56 193 582 437 edit 0;
#X obj 61 307 outlet;
#X obj 37 137 r \$0-load;
#X msg 37 157 read \$1 cr;
#X obj 27 267 list split 1;
#X obj 27 247 msgfile;
#X msg 27 117 goto \$1 \, this;
#X obj 206 117 list prepend;
#X obj 206 137 list prepend replace;
#X obj 206 157 list trim;
#X obj 179 177 symbol;
#X msg 179 197 write \$1 cr;
#X obj 179 97 t b l;
#X obj 61 287 demux 0 1;
#X obj 356 247 1;
#X msg 322 267 this;
#X obj 305 227 t b b s b;
#X obj 305 247 0;
#X obj 454 337 symbol \$0-paint;
#X obj 454 377 pointer;
#X msg 405 357 next;
#X msg 454 357 traverse pd-\$1;
#X obj 295 397 set -symbol \$0-element menu;
#X obj 405 337 until;
#X obj 405 317 + 1;
#X obj 405 297 t f b;
#N canvas 494 50 387 83 RENAME-\$0 0;
#X symbolatom 9 56 50 0 0 0 - #0-renamesymb-i #0-renamesymb;
#X text 8 6 Click on the field below to input the new name for the
current preset. Must be a symbol (in one word) \, with any characters.
To finish typing \, press return.;
#X restore 395 267 pd RENAME-\$0;
#X obj 295 197 r \$0-renamesymb;
#X msg 395 227 vis 1;
#X obj 395 247 s pd-RENAME-\$0;
#X msg 435 227 vis 0;
#X obj 27 357 s \$0-renamesymb-i;
#X msg 27 337 set \$1;
#X text 70 337 updates name window;
#X obj 27 57 inlet;
#X text 7 97 stores file for edition;
#X obj 179 57 inlet;
#X text 178 37 saves preset;
#X obj 395 197 inlet;
#X text 324 177 renames preset;
#X text 28 17 Commands for edition \, saving \, rename;
#X obj 179 77 list prepend list;
#X text 231 57 to make sure that lists beginning with symbols are read
;
#X msg 228 315 add \$1;
#X connect 1 0 2 0;
#X connect 1 0 9 1;
#X connect 2 0 4 0;
#X connect 3 0 6 1;
#X connect 3 0 31 0;
#X connect 3 1 12 0;
#X connect 4 0 3 0;
#X connect 5 0 4 0;
#X connect 6 0 7 0;
#X connect 7 0 8 0;
#X connect 8 0 4 0;
#X connect 9 0 10 0;
#X connect 10 0 4 0;
#X connect 11 0 9 0;
#X connect 11 1 6 0;
#X connect 12 0 0 0;
#X connect 12 1 11 0;
#X connect 13 0 12 1;
#X connect 14 0 4 0;
#X connect 15 0 16 0;
#X connect 15 1 14 0;
#X connect 15 2 6 1;
#X connect 15 3 13 0;
#X connect 16 0 12 1;
#X connect 17 0 20 0;
#X connect 18 0 21 1;
#X connect 19 0 18 0;
#X connect 20 0 18 0;
#X connect 22 0 19 0;
#X connect 23 0 22 0;
#X connect 24 0 23 0;
#X connect 24 1 17 0;
#X connect 26 0 15 0;
#X connect 26 0 21 0;
#X connect 26 0 29 0;
#X connect 27 0 28 0;
#X connect 29 0 28 0;
#X connect 31 0 30 0;
#X connect 33 0 5 0;
#X connect 33 0 24 0;
#X connect 35 0 40 0;
#X connect 37 0 27 0;
#X connect 40 0 11 0;
#X restore 170 157 pd edit;
#X obj 11 47 route open float bang color size load save rename store
next previous;
#X msg 338 80 Error: wrong command;
#X obj 338 100 print jp.preset-\$1;
#X connect 0 0 12 0;
#X connect 3 0 1 0;
#X connect 10 0 8 0;
#X connect 10 0 11 0;
#X connect 11 0 2 0;
#X connect 12 0 3 0;
#X connect 12 1 10 0;
#X connect 12 2 10 0;
#X connect 12 3 4 0;
#X connect 12 4 5 0;
#X connect 12 5 6 0;
#X connect 12 6 11 1;
#X connect 12 7 11 2;
#X connect 12 9 10 1;
#X connect 12 10 10 2;
#X connect 12 11 13 0;
#X connect 13 0 14 0;
#X restore 234 42 pd messages;
#X obj 301 292 get \$0-element ypos menu;
#X obj 314 22 inlet;
#X obj 265 142 list-abs/list-rot;
#X obj 265 162 list-abs/list-drip;
#X connect 0 0 26 0;
#X connect 1 0 4 0;
#X connect 2 0 11 2;
#X connect 2 0 27 0;
#X connect 3 0 2 0;
#X connect 4 0 2 0;
#X connect 5 0 29 0;
#X connect 6 0 29 1;
#X connect 7 0 11 0;
#X connect 7 1 3 0;
#X connect 8 0 30 0;
#X connect 10 0 5 0;
#X connect 10 1 6 0;
#X connect 10 2 1 0;
#X connect 10 3 16 0;
#X connect 13 0 15 0;
#X connect 14 0 8 0;
#X connect 14 1 1 0;
#X connect 15 0 18 0;
#X connect 15 1 17 1;
#X connect 16 0 12 0;
#X connect 17 0 11 1;
#X connect 18 0 14 0;
#X connect 19 0 25 0;
#X connect 20 0 5 0;
#X connect 20 0 8 0;
#X connect 21 0 22 0;
#X connect 21 0 23 0;
#X connect 22 0 8 0;
#X connect 23 0 5 0;
#X connect 24 0 21 0;
#X connect 24 1 20 0;
#X connect 25 1 24 0;
#X connect 26 0 12 0;
#X connect 26 1 10 0;
#X connect 26 2 9 0;
#X connect 27 0 17 0;
#X connect 28 0 10 0;
#X connect 29 0 30 0;
#X connect 30 0 7 0;
#X restore 128 130 pd selection;
#X obj 147 90 receive \$4-i;
#X obj 137 160 send \$4;
#N canvas 125 353 450 300 \$0-paint 0;
#X coords 0 0 100 17 100 17 2 0 0;
#X restore 0 0 pd \$0-paint;
#N canvas 322 55 450 240 zutun 0;
#X text 26 18 ## ver questoes em aberto em jp.menu;
#X text 28 48 suggestion for commands;
#X text 28 68 - reload;
#X text 28 108 - flush (right outlet);
#X text 28 88 - delete;
#X text 28 128 - close (oposto de open);
#X text 28 148 - enviar comandos através do ficheiro de config (tamanho
\, cor \, etc);
#X restore 248 180 pd zutun;
#X obj 128 201 declare -stdlib zexy;
#X connect 0 0 5 0;
#X connect 2 0 5 1;
#X connect 3 0 5 0;
#X connect 5 0 4 0;
#X connect 5 0 7 0;
#X connect 6 0 5 0;
#X coords 0 -1 1 1 100 17 2 0 0;