Merge branch 'master' of git.xpub.nl:/var/www/git.xpub.nl/repos/tgc3

master
Nadine Rotem-Stibbe 8 years ago
commit 8e56bdb847

51
.gitignore vendored

@ -1,11 +1,45 @@
/* /*
!.gitignore !.gitignore
!/boot
/boot/*
!/boot/config.txt
!/etc !/etc
/etc/* /etc/*
!/etc/apt/
/etc/apt/*
!/etc/apt/apt.conf.d/
/etc/apt/apt.conf.d/*
!/etc/apt/apt.conf.d/90norecommend
!/etc/asound.state
!/etc/default/
/etc/default/*
!/etc/default/hostapd
!/etc/dnsmasq.conf
!/etc/hostapd/
/etc/hostapd/*
!/etc/hostapd/hostapd.conf
!/etc/hostname !/etc/hostname
!/etc/modprobe.d/
/etc/modprobe.d/*
!/etc/modprobe.d/alsa-base.conf
!/etc/network/
/etc/network/*
!/etc/network/interfaces
!/etc/nginx/sites-available/ !/etc/nginx/sites-available/
!/etc/rc.local
!/floppies/ !/floppies/
/floppies/*/ /floppies/*/
@ -13,5 +47,22 @@
/usr/* /usr/*
!/usr/local/ !/usr/local/
/usr/local/* /usr/local/*
!/usr/local/lib/
/usr/local/lib/*
!/usr/local/lib/pd-externals/
!/usr/local/lib/python2.7/
!/usr/local/sbin/ !/usr/local/sbin/
/usr/local/sbin/*/ /usr/local/sbin/*/
!/var/
/var/*
!/var/www/
/var/www/*
!/var/www/static/
/var/www/static/*
!/var/www/static/404-floppy-not-found.html
!/var/www/static/404-style.css
*.pyc
.DS_Store

@ -0,0 +1,2 @@
gpu_mem=16
start_x=1

@ -0,0 +1,2 @@
APT::Install-Recommends "0";
APT::Install-Suggests "0";

@ -0,0 +1,85 @@
state.Device {
control.1 {
iface PCM
name 'Playback Channel Map'
value.0 0
value.1 0
comment {
access read
type INTEGER
count 2
range '0 - 36'
}
}
control.2 {
iface PCM
name 'Capture Channel Map'
value 0
comment {
access read
type INTEGER
count 1
range '0 - 36'
}
}
control.3 {
iface MIXER
name 'PCM Playback Switch'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.4 {
iface MIXER
name 'PCM Playback Volume'
value.0 97
value.1 97
comment {
access 'read write'
type INTEGER
count 2
range '0 - 151'
dbmin -2837
dbmax -6
dbvalue.0 -1019
dbvalue.1 -1019
}
}
control.5 {
iface MIXER
name 'Mic Capture Switch'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.6 {
iface MIXER
name 'Mic Capture Volume'
value 0
comment {
access 'read write'
type INTEGER
count 1
range '0 - 16'
dbmin 0
dbmax 2381
dbvalue.0 0
}
}
control.7 {
iface MIXER
name 'Auto Gain Control'
value false
comment {
access 'read write'
type BOOLEAN
count 1
}
}
}

@ -0,0 +1,20 @@
# Defaults for hostapd initscript
#
# See /usr/share/doc/hostapd/README.Debian for information about alternative
# methods of managing hostapd.
#
# Uncomment and set DAEMON_CONF to the absolute path of a hostapd configuration
# file and hostapd will be started during system boot. An example configuration
# file can be found at /usr/share/doc/hostapd/examples/hostapd.conf.gz
#
DAEMON_CONF="/etc/hostapd/hostapd.conf"
# Additional daemon options to be appended to hostapd command:-
# -d show more debug messages (-dd for even more)
# -K include key data in debug messages
# -t include timestamps in some debug messages
#
# Note that -B (daemon mode) and -P (pidfile) options are automatically
# configured by the init.d script and must not be added to DAEMON_OPTS.
#
#DAEMON_OPTS=""

@ -0,0 +1,4 @@
interface=wlan0
dhcp-range=10.10.10.11,10.10.10.254,12h
address=/#/10.10.10.10
no-resolv

@ -0,0 +1,6 @@
interface=wlan0
driver=nl80211
ssid=TGC #3
hw_mode=g
channel=6

@ -0,0 +1,2 @@
options snd-usb-audio index=0
options snd_bcm2835 index=1

@ -0,0 +1,10 @@
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
auto wlan0
iface wlan0 inet static
address 10.10.10.10
netmask 255.255.255.0

@ -2,7 +2,6 @@ server {
listen 80 default_server; listen 80 default_server;
listen [::]:80 default_server; listen [::]:80 default_server;
#root /var/www/html;
root /media/floppy/noweb; root /media/floppy/noweb;
# Add index.php to the list if you are using PHP # Add index.php to the list if you are using PHP
@ -10,9 +9,9 @@ server {
server_name _; server_name _;
error_page 404 /insert.html; error_page 404 /404-floppy-not-found.html;
location = /insert.html { location = /404-floppy-not-found.html {
root /var/www/static; root /var/www/static;
internal; internal;
} }

@ -0,0 +1,20 @@
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
/usr/bin/printf " My IP address is\033[0;31m `/sbin/ifconfig | grep "inet addr" | grep -v "127.0.0.1" | awk '{ print $2 }' | awk -F: '{ print $2 }'` \033[0m\n" > /dev/console
# Restore audio levels
alsactl --file /etc/asound.state restore
exit 0

@ -0,0 +1 @@
FLOPPYLEFT - 2017

@ -0,0 +1,11 @@
Author: Kimmy Spreeuwenberg
Date: 2017
Title: Rest
Description:
Make a silence.
“There is no such thing as an empty space or an empty time.
There is always something to see, something to hear. In fact,
try as we may to make a silence, we cannot.”
(John Cage, Silence: Lectures and Writings)

@ -1,8 +1,7 @@
#N canvas 280 23 912 793 10; #N canvas 166 23 912 793 10;
#X obj 98 109 adc~; #X obj 98 109 adc~;
#X obj 167 267 tabwrite~ noise; #X obj 167 267 tabwrite~ noise;
#X obj 98 131 +~; #X obj 98 131 +~;
#X obj 143 205 /~ 2;
#X msg 209 208 bang; #X msg 209 208 bang;
#X obj 214 136 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 #X obj 214 136 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1; 1;
@ -15,10 +14,10 @@
#X coords 0 1 88200 -1 200 140 1 0 0; #X coords 0 1 88200 -1 200 140 1 0 0;
#X restore 428 114 graph; #X restore 428 114 graph;
#X obj 313 193 env~; #X obj 313 193 env~;
#X floatatom 325 233 5 0 0 0 - - -, f 5; #X floatatom 369 228 5 0 0 0 - - -, f 5;
#X obj 161 302 phasor~ 0.5; #X obj 161 302 phasor~ 0.5;
#X obj 172 564 +~; #X obj 175 525 +~;
#X floatatom 291 263 5 0 0 0 - - -, f 5; #X floatatom 306 267 5 0 0 0 - - -, f 5;
#X obj 132 240 *~; #X obj 132 240 *~;
#X obj 274 322 line~; #X obj 274 322 line~;
#X obj 393 306 env~; #X obj 393 306 env~;
@ -38,97 +37,99 @@
#X obj 742 417 sel 1; #X obj 742 417 sel 1;
#X obj 211 658 delwrite~ fd 4000; #X obj 211 658 delwrite~ fd 4000;
#X msg 379 442 1800; #X msg 379 442 1800;
#X obj 580 368 > 60;
#X obj 534 370 <= 60;
#X obj 500 368 > 55;
#X obj 454 370 <= 55;
#X obj 420 368 > 50; #X obj 420 368 > 50;
#X obj 379 369 <= 50; #X obj 379 369 <= 50;
#X obj 742 369 > 75;
#X obj 698 370 <= 75;
#X obj 663 370 > 65;
#X obj 614 370 <= 65;
#X obj 318 523 vd~ fd 100;
#X obj 299 39 loadbang; #X obj 299 39 loadbang;
#X msg 299 68 \; pd dsp 1; #X msg 299 68 \; pd dsp 1;
#X obj 98 176 *~ 1; #X obj 173 564 /~ 2;
#X obj 98 151 lop~ 1000; #X obj 98 151 lop~ 2500;
#X msg 274 300 \$1 40; #X msg 422 442 1830;
#X obj 660 623 pack f f;
#X obj 649 658 print;
#X obj 284 238 >= 80;
#X msg 744 442 1900; #X msg 744 442 1900;
#X msg 502 442 1830; #X msg 664 442 1875;
#X msg 582 442 1850; #X msg 582 442 1865;
#X msg 422 442 1810; #X msg 502 442 1850;
#X msg 664 442 1880; #X obj 742 369 > 90;
#X obj 318 549 *~ 0.7; #X obj 698 370 <= 90;
#X obj 663 370 > 80;
#X obj 614 370 <= 80;
#X obj 580 368 > 70;
#X obj 534 370 <= 70;
#X obj 500 368 > 60;
#X obj 454 370 <= 60;
#X obj 273 269 &&;
#X msg 274 300 \$1 40;
#X obj 271 238 > 60;
#X obj 98 176 *~ 20;
#X obj 324 238 <= 80;
#X obj 318 523 vd~ fd 200;
#X obj 288 552 *~ 0.95;
#X connect 0 0 2 0; #X connect 0 0 2 0;
#X connect 0 1 2 1; #X connect 2 0 39 0;
#X connect 2 0 48 0; #X connect 3 0 1 0;
#X connect 4 0 1 0; #X connect 4 0 8 0;
#X connect 5 0 9 0; #X connect 5 0 13 0;
#X connect 6 0 14 0; #X connect 7 0 5 0;
#X connect 8 0 6 0; #X connect 8 0 1 0;
#X connect 9 0 1 0; #X connect 10 0 11 0;
#X connect 11 0 12 0; #X connect 10 0 55 0;
#X connect 11 0 51 0; #X connect 10 0 57 0;
#X connect 11 0 53 0; #X connect 12 0 7 0;
#X connect 13 0 8 0; #X connect 13 0 38 0;
#X connect 14 0 33 0; #X connect 15 0 1 0;
#X connect 14 0 7 0; #X connect 16 0 15 1;
#X connect 14 0 7 1; #X connect 17 0 19 0;
#X connect 14 0 18 0; #X connect 17 0 34 0;
#X connect 16 0 1 0; #X connect 17 0 35 0;
#X connect 17 0 16 1; #X connect 17 0 45 0;
#X connect 18 0 20 0; #X connect 17 0 46 0;
#X connect 18 0 35 0; #X connect 17 0 47 0;
#X connect 18 0 36 0; #X connect 17 0 48 0;
#X connect 18 0 37 0; #X connect 17 0 49 0;
#X connect 18 0 38 0; #X connect 17 0 50 0;
#X connect 18 0 39 0; #X connect 17 0 51 0;
#X connect 18 0 40 0; #X connect 17 0 52 0;
#X connect 18 0 41 0; #X connect 18 0 58 0;
#X connect 18 0 42 0; #X connect 20 0 30 0;
#X connect 18 0 43 0; #X connect 21 0 33 0;
#X connect 18 0 44 0; #X connect 22 0 40 0;
#X connect 18 0 51 1; #X connect 23 0 22 0;
#X connect 19 0 45 0; #X connect 24 0 44 0;
#X connect 21 0 31 0; #X connect 25 0 24 0;
#X connect 22 0 34 0; #X connect 26 0 43 0;
#X connect 23 0 57 0; #X connect 27 0 26 0;
#X connect 24 0 23 0; #X connect 28 0 42 0;
#X connect 25 0 55 0; #X connect 29 0 28 0;
#X connect 26 0 25 0; #X connect 30 0 18 0;
#X connect 27 0 56 0; #X connect 31 0 41 0;
#X connect 28 0 27 0; #X connect 33 0 30 0;
#X connect 29 0 58 0; #X connect 34 0 23 0;
#X connect 30 0 29 0; #X connect 35 0 21 0;
#X connect 31 0 19 0; #X connect 36 0 37 0;
#X connect 32 0 54 0; #X connect 36 0 8 0;
#X connect 34 0 31 0; #X connect 38 0 6 0;
#X connect 35 0 28 0; #X connect 38 0 6 1;
#X connect 36 0 26 1; #X connect 38 0 32 0;
#X connect 37 0 26 0; #X connect 38 0 17 0;
#X connect 38 0 24 1; #X connect 39 0 56 0;
#X connect 39 0 24 0; #X connect 40 0 30 0;
#X connect 40 0 22 0; #X connect 41 0 30 0;
#X connect 41 0 32 0; #X connect 42 0 30 0;
#X connect 42 0 30 1;
#X connect 43 0 30 0; #X connect 43 0 30 0;
#X connect 44 0 28 1; #X connect 44 0 30 0;
#X connect 45 0 59 0; #X connect 45 0 31 0;
#X connect 46 0 47 0; #X connect 46 0 29 1;
#X connect 46 0 9 0; #X connect 47 0 29 0;
#X connect 48 0 11 0; #X connect 48 0 27 1;
#X connect 48 0 16 0; #X connect 49 0 27 0;
#X connect 50 0 17 0; #X connect 50 0 25 1;
#X connect 51 0 52 0; #X connect 51 0 25 0;
#X connect 53 0 15 0; #X connect 52 0 23 1;
#X connect 53 0 50 0; #X connect 53 0 54 0;
#X connect 54 0 31 0; #X connect 54 0 16 0;
#X connect 55 0 31 0; #X connect 55 0 14 0;
#X connect 56 0 31 0; #X connect 55 0 53 0;
#X connect 57 0 31 0; #X connect 56 0 10 0;
#X connect 58 0 31 0; #X connect 56 0 15 0;
#X connect 59 0 14 1; #X connect 57 0 53 1;
#X connect 58 0 59 0;
#X connect 59 0 13 1;

@ -0,0 +1,135 @@
#N canvas 166 23 912 793 10;
#X obj 98 109 adc~;
#X obj 167 267 tabwrite~ noise;
#X obj 98 131 +~;
#X msg 209 208 bang;
#X obj 214 136 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 161 361 tabread4~ noise;
#X obj 154 696 dac~;
#X obj 161 334 *~ 88200;
#X obj 198 170 metro 2000;
#N canvas 0 22 450 278 (subpatch) 0;
#X array noise 88200 float 2;
#X coords 0 1 88200 -1 200 140 1 0 0;
#X restore 428 114 graph;
#X obj 313 193 env~;
#X floatatom 369 228 5 0 0 0 - - -, f 5;
#X obj 161 302 phasor~ 0.5;
#X obj 175 525 +~;
#X floatatom 306 267 5 0 0 0 - - -, f 5;
#X obj 132 240 *~;
#X obj 274 322 line~;
#X obj 393 306 env~;
#X obj 318 499 line~;
#X floatatom 497 321 5 0 0 0 - - -, f 5;
#X floatatom 280 453 5 0 0 0 - - -, f 5;
#X obj 379 419 sel 1;
#X obj 420 417 sel 1;
#X obj 421 395 &&;
#X obj 500 417 sel 1;
#X obj 501 395 &&;
#X obj 580 417 sel 1;
#X obj 581 395 &&;
#X obj 662 417 sel 1;
#X obj 663 395 &&;
#X msg 318 477 \$1 2000;
#X obj 742 417 sel 1;
#X obj 211 658 delwrite~ fd 4000;
#X msg 379 442 1800;
#X obj 420 368 > 50;
#X obj 379 369 <= 50;
#X obj 299 39 loadbang;
#X msg 299 68 \; pd dsp 1;
#X obj 173 564 /~ 2;
#X obj 98 151 lop~ 2500;
#X msg 422 442 1830;
#X msg 744 442 1900;
#X msg 664 442 1875;
#X msg 582 442 1865;
#X msg 502 442 1850;
#X obj 742 369 > 90;
#X obj 698 370 <= 90;
#X obj 663 370 > 80;
#X obj 614 370 <= 80;
#X obj 580 368 > 70;
#X obj 534 370 <= 70;
#X obj 500 368 > 60;
#X obj 454 370 <= 60;
#X obj 273 269 &&;
#X obj 271 238 > 60;
#X obj 98 176 *~ 20;
#X obj 324 238 <= 80;
#X obj 318 523 vd~ fd 200;
#X obj 288 552 *~ 0.95;
#X msg 274 300 \$1 200;
#X connect 0 0 2 0;
#X connect 2 0 39 0;
#X connect 3 0 1 0;
#X connect 4 0 8 0;
#X connect 5 0 13 0;
#X connect 7 0 5 0;
#X connect 8 0 1 0;
#X connect 10 0 11 0;
#X connect 10 0 54 0;
#X connect 10 0 56 0;
#X connect 12 0 7 0;
#X connect 13 0 38 0;
#X connect 15 0 1 0;
#X connect 16 0 15 1;
#X connect 17 0 19 0;
#X connect 17 0 34 0;
#X connect 17 0 35 0;
#X connect 17 0 45 0;
#X connect 17 0 46 0;
#X connect 17 0 47 0;
#X connect 17 0 48 0;
#X connect 17 0 49 0;
#X connect 17 0 50 0;
#X connect 17 0 51 0;
#X connect 17 0 52 0;
#X connect 18 0 57 0;
#X connect 20 0 30 0;
#X connect 21 0 33 0;
#X connect 22 0 40 0;
#X connect 23 0 22 0;
#X connect 24 0 44 0;
#X connect 25 0 24 0;
#X connect 26 0 43 0;
#X connect 27 0 26 0;
#X connect 28 0 42 0;
#X connect 29 0 28 0;
#X connect 30 0 18 0;
#X connect 31 0 41 0;
#X connect 33 0 30 0;
#X connect 34 0 23 0;
#X connect 35 0 21 0;
#X connect 36 0 37 0;
#X connect 36 0 8 0;
#X connect 38 0 6 0;
#X connect 38 0 6 1;
#X connect 38 0 32 0;
#X connect 38 0 17 0;
#X connect 39 0 55 0;
#X connect 40 0 30 0;
#X connect 41 0 30 0;
#X connect 42 0 30 0;
#X connect 43 0 30 0;
#X connect 44 0 30 0;
#X connect 45 0 31 0;
#X connect 46 0 29 1;
#X connect 47 0 29 0;
#X connect 48 0 27 1;
#X connect 49 0 27 0;
#X connect 50 0 25 1;
#X connect 51 0 25 0;
#X connect 52 0 23 1;
#X connect 53 0 59 0;
#X connect 54 0 14 0;
#X connect 54 0 53 0;
#X connect 55 0 10 0;
#X connect 55 0 15 0;
#X connect 56 0 53 1;
#X connect 57 0 58 0;
#X connect 58 0 13 1;
#X connect 59 0 16 0;

File diff suppressed because it is too large Load Diff

@ -0,0 +1,5 @@
Copyright <2017> <a_cAt> <http://www.aaaaa.cat>
You may do anything with this work that copyright law would normally
restrict. There is no warranty. Anyway, we are going to die.
Free yourself!

@ -0,0 +1,9 @@
Author: Clàudia Giralt Monedero, a_cAt
Date: 2017
Title: The fine line
Description:
“The fine line between everything matters and nothing matters”
The idea of this project is to represent this line digitally and sonorously, and let the audience play with it. seeking balance and breaking it. Harmonious sounds and the disruption of those. Experiencing how close from each other opposites can be.

Binary file not shown.

@ -4,10 +4,10 @@
<script language="javascript" type="text/javascript" src="libraries/p5.js"></script> <script language="javascript" type="text/javascript" src="libraries/p5.min.js"></script>
<!-- uncomment lines below to include extra p5 libraries --> <!-- uncomment lines below to include extra p5 libraries -->
<script language="javascript" src="libraries/p5.dom.js"></script> <script language="javascript" src="libraries/p5.dom.min.js"></script>
<script language="javascript" src="libraries/p5.sound.js"></script> <script language="javascript" src="libraries/p5.sound.min.js"></script>
<script language="javascript" type="text/javascript" src="sketch.js"></script> <script language="javascript" type="text/javascript" src="sketch.js"></script>
<!-- this line removes any default padding and style. you might only need one of these values set. --> <!-- this line removes any default padding and style. you might only need one of these values set. -->
<style> body {padding: 0; margin: 0;} </style> <style> body {padding: 0; margin: 0;} </style>

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

Binary file not shown.

@ -2,16 +2,20 @@
<html> <html>
<head> <head>
<link rel="stylesheet" type="text/css" href="style.css"> <link rel="stylesheet" type="text/css" href="style.css">
<title>The fine line - Explanation of the project</title> <title>The fine line - Presentation of the fine line</title>
</head> </head>
<body> <body>
<div id="canvasp5"></div>
<div id="wrap"> <div id="wrap" style="line-height: 2;">
</div> <p>This is a conceptual project based on a reflection around the sentence “The <b>FINE LINE</b> between <b>NOTHING MATTERS</b> and <b>EVERYTHING MATTERS</b>”. It took me a while to figure out how to translate this sentence into something. At the beginning, everything had to make perfect sense and had to have a reason to be. Among mind maps, research, crazy complicated ideas, and loads of thought, it became obvious that the concept was being explored from an “EVERYTHING MATTERS” perspective. Half of the sentence, “<b>NOTHING MATTERS</b>”, was being left behind. But, how to make a project based on meaninglessness? Suddenly, it clicked: <b>ANYWAY, WE ARE GOING TO DIE.</b> This sentence vanished all meaning this project could have, placing myself to the other side of the line. And then a process began: my mind tried to <b>MAKE SENSE</b> of everything saying words like: “If everyone thought this way, society would be aimless”. Then, on propose, I jumped to the other side: “Yes whatever, even though, we are going to die”. Quickly my mind tried to fix it again with other excuses in order to find meaning. And rushing, again on purpose, I shifted the side. It happened several times. I could feel the <b>TENSION</b>, the <b>POLARITIES</b>, the <b>OPPOSITION</b>: I was feeling the line between everything matters and nothing matters. </p>
<p style="margin-bottom:30px;">The idea of this project is to represent this line digitally and sonorously, and let the audience play with it. <b>SEEKING BALANCE AND BREAKING IT</b>. <b>HARMONIOUS</b> sounds and the <b>DISRUPTION</b> of those. Experiencing how close from each other <b>OPPOSITES</b> can be. </p>
<ul><a href="../fine-line/index.html" style="font-size:30px">EXPLORE THE LINE</a></ul>
</div>
</body> </body>
</html> </html>

@ -4,9 +4,9 @@
<link rel="stylesheet" type="text/css" href="style.css"> <link rel="stylesheet" type="text/css" href="style.css">
<script language="javascript" type="text/javascript" src="libraries/p5.js"></script> <script language="javascript" type="text/javascript" src="../fine-line/libraries/p5.min.js"></script>
<script language="javascript" src="libraries/p5.dom.js"></script> <script language="javascript" src="../fine-line/libraries/p5.dom.min.js"></script>
<script language="javascript" src="libraries/p5.sound.js"></script> <script language="javascript" src="../fine-line/libraries/p5.sound.min.js"></script>
<script language="javascript" type="text/javascript" src="sketch.js"></script> <script language="javascript" type="text/javascript" src="sketch.js"></script>
<title>The fine line</title> <title>The fine line</title>
@ -14,6 +14,7 @@
<body> <body>
<div id="canvasp5"></div> <div id="canvasp5"></div>
<div id="wrap"> <div id="wrap">
@ -24,10 +25,10 @@
<div class="links"> <div class="links">
<li> <li>
<ul><a href="">Existencialism and Spirituality</a></ul> <!--<ul><a href="essay.html">Existencialism and Spirituality</a></ul>-->
<ul><a href="">Explanation of the project</a></ul> <ul><a href="explanation.html">Presentation of the line</a></ul>
<ul><a href="">Score to find the line</a></ul> <!--<ul><a href="score.html">Score to find the line</a></ul>-->
<ul><a href="../fine-line/index.html">The fine line</a></ul> <ul><a href="../fine-line/index.html" style="font-size:30px">THE FINE LINE</a></ul>
</li> </li>

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -0,0 +1,112 @@
var carrier; // this is the carrierillator we will hear
var modulator; // this carrierillator will modulate the amplitude of the carrier
var fft; // we'll visualize the waveform
var opac;
var carrier;
function getRandomArbitrary(min, max) {
return Math.random() * (max - min) + min;
}
function setup() {
var myCanvas = createCanvas(innerWidth,100);
myCanvas.parent("canvasp5");
noFill();
//SETING FIRST OSCILLATOR: CARRIER
// EXPLANATION FROM WEBSITE: The carrier is typically set at an audible frequency (i.e. 440 Hz) and connected to master output by default. The carrier.amp is set to zero because we will have the modulator control its amplitude.
var randomnumb = getRandomArbitrary(0, 20);
console.log(randomnumb);
carrier = new p5.Oscillator(); // connects to master output by default
carrier.freq(200 + randomnumb); // it sets the frequency of the carrier. AN AUDIBLE ONE.
carrier.amp(1);
// carrier's amp is 0 by default, giving our modulator total control
carrier.start();
// create an fft to analyze the audio
//an FFT (fast Fourier transform) converts a signal from its original domain (often time or space) to a representation in the frequency domain and vice versa
fft = new p5.FFT();
}
function draw() {
var modAmp= 1;
// si el mouseY és igual o el mateix que la meitat de l'altura, fes aixo. ((DEFINEIX LA AMPLITUD.))
/* if(mouseY <= height) {
var modAmp = map(mouseY, 0, height, 0.01, 2.02);
}else{
var modAmp = map(mouseY, height, 0, 0.01, 2.02);
}
*/
carrier.amp(modAmp, 0.01); // fade time of 0.1 for smooth fading
// analyze the waveform
waveform = fft.waveform();
background(255,255,255,50); // alpha
// draw the shape of the waveform
drawWaveform();
}
function drawWaveform() {
stroke(0,0,0,100);
strokeWeight(0.5);
beginShape();
for (var i = 0; i<waveform.length; i++){
var x = map(i, 0, (waveform.length)/8, 0, width/2);
var y = map((waveform[i])/8, -1, 1, height/2, -height/2);
vertex(x, y + 100);
}
endShape();
}

@ -17,7 +17,7 @@ function getRandomArbitrary(min, max) {
function setup() { function setup() {
var myCanvas = createCanvas(innerWidth,200); var myCanvas = createCanvas(innerWidth,100);
myCanvas.parent("canvasp5"); myCanvas.parent("canvasp5");

@ -5,6 +5,7 @@
body{ body{
font-family: 'FjallaOne', sans-serif; font-family: 'FjallaOne', sans-serif;
margin: 0;
} }
@ -19,6 +20,14 @@ h1{
font-size: 70px; font-size: 70px;
}
a{
text-decoration: none;
color:black;
} }
#wrap{ #wrap{
@ -34,7 +43,7 @@ font-size: 70px;
padding-top: 300px; padding-top: 300px;
width:200px; width:200px;
margin:auto; margin:auto;
text-align: left; /*text-align: left;*/
} }
@ -52,6 +61,12 @@ position:absolute;
} }
.explanation p{
margin-bottom: 300px;
}
/* Smartphones (portrait) ----------- */ /* Smartphones (portrait) ----------- */

Binary file not shown.

Binary file not shown.

@ -1,4 +1,4 @@
#N canvas 145 161 897 545 10; #N canvas 143 176 897 545 10;
#X floatatom 166 153 5 0 0 0 - - -, f 5; #X floatatom 166 153 5 0 0 0 - - -, f 5;
#X floatatom 282 159 5 0 0 0 - - -, f 5; #X floatatom 282 159 5 0 0 0 - - -, f 5;
#X obj 190 121 unpack f f; #X obj 190 121 unpack f f;

Binary file not shown.

@ -0,0 +1 @@
<svg id="step_S_" data-name="step (S)" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150"><defs><style>.cls-1{fill:#fff;}.cls-2,.cls-3{fill:none;stroke-miterlimit:10;stroke-width:4px;}.cls-2{stroke:#2e3192;}.cls-3{stroke:#c1272d;}</style></defs><title>choreology-Bump</title><g id="_1_Basic_Turn-2" data-name="1 Basic Turn"><rect class="cls-1" width="150" height="150"/><polyline id="A2_basic_turn" data-name="A2 basic turn" class="cls-2" points="17.48 48.21 32.95 61 71 61"/><path id="A2_basic_turn-2" data-name="A2 basic turn" class="cls-3" d="M17.75,100.64l15-12.74,42.37,2.43s6,0.25,6,6-6,6-6,6-6-.21-6-6,6-6,6-6l42.31-2.47L132.5,75.07"/></g></svg>

After

Width:  |  Height:  |  Size: 658 B

@ -0,0 +1 @@
<svg id="step_S_" data-name="step (S)" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150"><defs><style>.cls-1{fill:#fff;}.cls-2,.cls-4{fill:none;stroke-miterlimit:10;stroke-width:4px;}.cls-2{stroke:#c1272d;}.cls-3{fill:#c1272d;}.cls-4{stroke:#2e3192;}.cls-5{fill:#2e3192;}</style></defs><title>choreology-Bump</title><g id="_10_Chicken_Walks-2" data-name="10 Chicken Walks"><rect class="cls-1" width="150" height="150"/><path id="A2_basic_turn" data-name="A2 basic turn" class="cls-2" d="M75.05,132.5l12.82-15L90.3,75s0.25-6,6-6,6,6,6,6-0.21,6-6,6-6-6-6-6L87.83,32.61,75,17.5"/><circle class="cls-3" cx="88.5" cy="45.95" r="4"/><polyline class="cls-2" points="71.01 53.53 88.72 45.95 106.35 53.53 88.63 45.95"/><polyline id="A2_basic_turn-2" data-name="A2 basic turn" class="cls-4" points="62 58 62 101.91 61.65 102 46.56 89.47"/><circle class="cls-5" cx="62" cy="79.35" r="4"/><polyline class="cls-4" points="79.27 71.77 61.55 79.35 43.93 71.77 61.64 79.35"/></g></svg>

After

Width:  |  Height:  |  Size: 976 B

@ -0,0 +1 @@
<svg id="step_S_" data-name="step (S)" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150"><defs><style>.cls-1{fill:#fff;}.cls-2,.cls-3{fill:none;stroke-miterlimit:10;stroke-width:4px;}.cls-2{stroke:#c1272d;}.cls-3{stroke:#2e3192;}</style></defs><title>choreology-Bump</title><g id="_2_Follow-2" data-name="2 Follow"><rect class="cls-1" width="150" height="150"/><path id="A3_follow" data-name="A3 follow" class="cls-2" d="M103.87,132.9l-12.77-15L93.53,75.4s0.25-6,6-6,6,6,6,6-0.21,6-6,6-6-6-6-6L91.05,33,78.24,17.9"/><path id="A3_follow-2" data-name="A3 follow" class="cls-3" d="M46.13,132.9l12.77-15L56.47,75.4s-0.25-6-6-6-6,6-6,6,0.21,6,6,6,6-6,6-6L58.95,33,71.76,17.9"/></g></svg>

After

Width:  |  Height:  |  Size: 689 B

@ -0,0 +1 @@
<svg id="step_S_" data-name="step (S)" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150"><defs><style>.cls-1{fill:#fff;}.cls-2,.cls-3,.cls-4{fill:none;stroke-miterlimit:10;}.cls-2,.cls-4{stroke:#c1272d;}.cls-2,.cls-3{stroke-width:4px;}.cls-3{stroke:#2e3192;}.cls-4{stroke-width:3px;}</style></defs><title>choreology-Bump</title><g id="_3_American_Spin-2" data-name="3 American Spin"><rect class="cls-1" width="150" height="150"/><path id="A2_basic_turn" data-name="A2 basic turn" class="cls-2" d="M17.56,100.24l15-12.77L75.06,89.9s6,0.25,6,6-6,6-6,6-6-.21-6-6,6-6,6-6l42.4-2.47,15.11-12.81"/><polyline id="A2_basic_turn-2" data-name="A2 basic turn" class="cls-3" points="17.82 48.18 32.79 61 72 61"/><path class="cls-4" d="M97.81,99.11a8.63,8.63,0,1,0-4.44-3.66"/><polyline class="cls-4" points="101.57 103.27 97.89 99.11 102.55 95.99"/></g></svg>

After

Width:  |  Height:  |  Size: 854 B

@ -0,0 +1 @@
<svg id="step_S_" data-name="step (S)" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150"><defs><style>.cls-1{fill:#fff;}.cls-2{fill:#c1272d;}.cls-3,.cls-5{fill:none;stroke-miterlimit:10;stroke-width:4px;}.cls-3{stroke:#c1272d;}.cls-4{fill:#2e3192;}.cls-5{stroke:#2e3192;}</style></defs><title>choreology-Bump</title><g id="_4_Bump-2" data-name="4 Bump"><rect class="cls-1" width="150" height="150"/><circle class="cls-2" cx="70" cy="80.41" r="4"/><polyline id="A2_basic_turn" data-name="A2 basic turn" class="cls-3" points="82.82 134.25 70 119.33 70 80"/><circle class="cls-4" cx="70" cy="69.6" r="4"/><polyline id="A2_basic_turn-2" data-name="A2 basic turn" class="cls-5" points="82.82 15.26 70 30.68 70 69"/></g></svg>

After

Width:  |  Height:  |  Size: 727 B

@ -0,0 +1 @@
<svg id="step_S_" data-name="step (S)" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150"><defs><style>.cls-1{fill:#fff;}.cls-2,.cls-5{fill:none;stroke-miterlimit:10;stroke-width:4px;}.cls-2{stroke:#c1272d;}.cls-3{fill:#c1272d;}.cls-4{fill:#2e3192;}.cls-5{stroke:#2e3192;}</style></defs><title>choreology-Bump</title><g id="_5_Stop_and_Go-2" data-name="5 Stop and Go"><rect class="cls-1" width="150" height="150"/><path id="A2_basic_turn" data-name="A2 basic turn" class="cls-2" d="M17.59,100.31l15-12.76L75,90s6,0.25,6,6-6,6-6,6-6-.21-6-6,6-6,6-6l42.36-2.47,15.09-12.8"/><circle class="cls-3" cx="55.7" cy="89.04" r="4"/><circle class="cls-4" cx="56.65" cy="61" r="4"/><polyline id="A2_basic_turn-2" data-name="A2 basic turn" class="cls-5" points="17.26 48.19 32.8 61 56 61"/></g></svg>

After

Width:  |  Height:  |  Size: 793 B

@ -0,0 +1 @@
<svg id="step_S_" data-name="step (S)" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150"><defs><style>.cls-1{fill:#fff;}.cls-2,.cls-3{fill:none;stroke-miterlimit:10;stroke-width:4px;}.cls-2{stroke:#c1272d;}.cls-3{stroke:#2e3192;}</style></defs><title>choreology-Bump</title><g id="_6_Windmill-2" data-name="6 Windmill"><rect class="cls-1" width="150" height="150"/><path id="A2_basic_turn" data-name="A2 basic turn" class="cls-2" d="M48.81,102L36.08,86.87s0-39,38.87-38.87"/><path id="A2_basic_turn-2" data-name="A2 basic turn" class="cls-3" d="M113.92,48.1l-12.35,15s0,39-38.87,38.87"/></g></svg>

After

Width:  |  Height:  |  Size: 604 B

@ -0,0 +1 @@
<svg id="step_S_" data-name="step (S)" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150"><defs><style>.cls-1{fill:#fff;}.cls-2,.cls-3{fill:none;stroke-miterlimit:10;stroke-width:4px;}.cls-2{stroke:#2e3192;}.cls-3{stroke:#c1272d;}</style></defs><title>choreology-Bump</title><g id="_7_Spanish_Arms-2" data-name="7 Spanish Arms"><rect class="cls-1" width="150" height="150"/><polyline id="A2_basic_turn" data-name="A2 basic turn" class="cls-2" points="95.81 25.14 83 40.25 83 125"/><path id="A2_basic_turn-2" data-name="A2 basic turn" class="cls-3" d="M66.6,124.91l-12.76-15,2.43-42.43s0.25-6,6-6,6,6,6,6-0.21,6-6,6-6-6-6-6L53.8,25.09"/></g></svg>

After

Width:  |  Height:  |  Size: 652 B

@ -0,0 +1 @@
<svg id="step_S_" data-name="step (S)" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150"><defs><style>.cls-1{fill:#fff;}.cls-2{fill:#c1272d;}.cls-3,.cls-5{fill:none;stroke-miterlimit:10;stroke-width:4px;}.cls-3{stroke:#c1272d;}.cls-4{fill:#2e3192;}.cls-5{stroke:#2e3192;}</style></defs><title>choreology-Bump</title><g id="_8_Hucklebuck-2" data-name="8 Hucklebuck"><rect class="cls-1" width="150" height="150"/><circle class="cls-2" cx="74.96" cy="86.82" r="4"/><polyline class="cls-3" points="57.33 94.4 75.04 86.82 92.67 94.4 74.96 86.82"/><circle class="cls-4" cx="74.96" cy="63.18" r="4"/><polyline class="cls-5" points="92.67 55.6 74.96 63.18 57.33 55.6 75.04 63.18"/></g></svg>

After

Width:  |  Height:  |  Size: 690 B

@ -0,0 +1 @@
<svg id="step_S_" data-name="step (S)" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150"><defs><style>.cls-1{fill:#fff;}.cls-2,.cls-3,.cls-4,.cls-5{fill:none;stroke-miterlimit:10;}.cls-2,.cls-4{stroke:#c1272d;}.cls-2,.cls-3{stroke-width:3px;}.cls-3,.cls-5{stroke:#2e3192;}.cls-3{stroke-dasharray:30 30;}.cls-4,.cls-5{stroke-width:4px;}</style></defs><title>choreology-Bump</title><g id="_9_Whip-2" data-name="9 Whip"><rect class="cls-1" width="150" height="150"/><path class="cls-2" d="M95.18,82.63L95.7,82.8a8.51,8.51,0,0,0,6.75-.81,8.62,8.62,0,1,0-12-3.5c0.16,0.31.26,0.47,0.26,0.47"/><path class="cls-3" d="M95.22,82.64s0.18,0.07.51,0.17a8.6,8.6,0,0,0,1.5.3A8.69,8.69,0,0,0,102.47,82a8.62,8.62,0,1,0-12-3.51l0.26,0.47"/><polyline class="cls-2" points="98.78 86.79 95.11 82.63 99.76 79.51"/><polyline class="cls-3" points="98.78 86.78 95.11 82.63 99.75 79.51"/><polyline id="A2_basic_turn" data-name="A2 basic turn" class="cls-4" points="43.51 94.8 58.31 82 85 82"/><polyline id="A2_basic_turn-2" data-name="A2 basic turn" class="cls-5" points="43.45 55.2 58.39 68 85 68"/></g></svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

@ -1,13 +1,28 @@
<html> <html>
<head> <head>
<title></title> <title></title>
<style> <style>
body {
margin-left: 20;
margin-right: 20;
padding: 0;
color: grey;
}
form.buttons {
}
form.buttons input { form.buttons input {
width: 160px; width: 150px;
height: 160px; height: 150px;
/*hide the labels*/ /*hide the labels*/
font-size: 0; font-size: 0;
line-height: 0; line-height: 0;
border: 0;
margin: ;
} }
</style> </style>
@ -15,18 +30,27 @@ form.buttons input {
<body> <body>
<form action="cgi-bin/play.cgi" class="buttons"> <form action="cgi-bin/play.cgi" class="buttons">
<input type="submit" name="p" value="BasicTurn.mp3" style="background:url(images/Choreology-BasicTurn.png) no-repeat;" /> <input type="submit" name="p" value="BasicTurn.mp3" style="background:url(images/choreology1-BasicTurn.svg) no-repeat;" />
<input type="submit" name="p" value="Follow.mp3" /> <input type="submit" name="p" value="Follow.mp3" style="background:url(images/choreology2-Follow.svg) no-repeat;" />
<input type="submit" name="p" value="AmericanSpin.mp3" /> <br>
<input type="submit" name="p" value="Bump.mp3" /> <input type="submit" name="p" value="AmericanSpin.mp3" style="background:url(images/choreology3-AmericanSpin.svg) no-repeat;" />
<input type="submit" name="p" value="StopAndGo.mp3" /> <input type="submit" name="p" value="Bump.mp3" style="background:url(images/choreology4-Bump.svg) no-repeat;" />
<input type="submit" name="p" value="Windmill.mp3" /> <br>
<input type="submit" name="p" value="SpanishArms.mp3" /> <input type="submit" name="p" value="StopAndGo.mp3" style="background:url(images/choreology5-StopAndGo.svg) no-repeat;" />
<input type="submit" name="p" value="Hucklebuck.mp3" /> <input type="submit" name="p" value="Windmill.mp3" style="background:url(images/choreology6-Windmill.svg) no-repeat;" />
<input type="submit" name="p" value="TheWhip.mp3" /> <br>
<input type="submit" name="p" value="Whip.mp3" /> <input type="submit" name="p" value="SpanishArms.mp3" style="background:url(images/choreology7-SpanishArms.svg) no-repeat;" />
<input type="submit" name="p" value="ChickenWalks.mp3" /> <input type="submit" name="p" value="Hucklebuck.mp3" style="background:url(images/choreology8-Hucklebuck.svg) no-repeat;" />
<br>
<!-- "Whip" of "The Whip" options - needs testing with music playing in the background
<input type="submit" name="p" value="TheWhip.mp3" style="background:url(images/choreology9-Whip.svg) no-repeat;" />
-->
<input type="submit" name="p" value="Whip.mp3" style="background:url(images/choreology9-Whip.svg) no-repeat;" />
<input type="submit" name="p" value="ChickenWalks.mp3" style="background:url(images/choreology10-ChickenWalks.svg) no-repeat;" />
<div class="tempo"> <div class="tempo">
<br>
<br>
<br>
<input id="slider3" type="range" min ="100" max="180" step ="1" style="width: 640px" /> <input id="slider3" type="range" min ="100" max="180" step ="1" style="width: 640px" />
<!-- <input id="slider3" type="range" min ="100" max="180" step ="1" orient="vertical" style="-webkit-appearance: slider-vertical; writing-mode: bt-lr" /> <!-- <input id="slider3" type="range" min ="100" max="180" step ="1" orient="vertical" style="-webkit-appearance: slider-vertical; writing-mode: bt-lr" />
--> -->

@ -1,8 +1,10 @@
#! /usr/bin/env python #! /usr/bin/env python
import re, subprocess, random import re, subprocess, random, os
from time import sleep from time import sleep
# requires: espeak to be installed devnull = open(os.devnull, 'w')
# requires: espeak and aplay (alsa-utils) to be installed
dic={ dic={
"narrator": "en-us", "narrator": "en-us",
@ -20,33 +22,25 @@ f=open("transcripts-drone-attack.txt","r")
txt=f.readlines() txt=f.readlines()
p= re.compile(r"^(\d\d\:\d\d) \((.*?)\)\: (.*)") # regex for capturing groups: time, character, sentence p= re.compile(r"^(\d\d\:\d\d) \((.*?)\)\: (.*)") # regex for capturing groups: time, character, sentence
for line in txt: for line in txt:
print line
if p.findall(line): if p.findall(line):
time,char,sentence = (p.findall(line))[0] time,char,sentence = (p.findall(line))[0]
print char.upper()
voice=dic[char] voice=dic[char]
# play time # play time
subprocess.call(["espeak", time +" "+char, "-v", dic['narrator'], "-p", "20"]) # narrator speaks: time and character subprocess.call(["espeak", time +" "+char, "-v", dic['narrator'], "-p", "20"], stdout=devnull, stderr=devnull) # narrator speaks: time and character
sleep(0.5) #short pause before sentence sleep(0.5) #short pause before sentence
print sentence
if "*expletive*" in sentence: #"*expletive*" in sentence is True: if "*expletive*" in sentence: #"*expletive*" in sentence is True:
sentence_parts=re.split(r"(\*\w+\*)", sentence) sentence_parts=re.split(r"(\*\w+\*)", sentence)
print sentence_parts
for part in sentence_parts: for part in sentence_parts:
if part == '*expletive*': if part == '*expletive*':
print 'EXPLETIVE', part subprocess.call(["aplay", 'swear.wav'], stdout=devnull, stderr=devnull)
subprocess.call(["aplay", 'swear.wav'])
else: else:
print 'SPEECH', part subprocess.call(["espeak", part, "-v", voice], stdout=devnull, stderr=devnull) # character speaks: his
subprocess.call(["espeak", part, "-v", voice]) # character speaks: his
sleep(float(random.randint(1,10))/100) sleep(float(random.randint(1,10))/100)
else: else:
subprocess.call(["espeak", sentence, "-v", voice]) # character speaks: his subprocess.call(["espeak", sentence, "-v", voice], stdout=devnull, stderr=devnull) # character speaks: his
# #
else: # line w/out time or character (narrator) else: # line w/out time or character (narrator)
print "NARRATOR" subprocess.call(["espeak", line, "-v", dic['narrator'], "-p", "20"], stdout=devnull, stderr=devnull)
subprocess.call(["espeak", line, "-v", dic['narrator'], "-p", "20"])
sleep(1) # make pause after each text line sleep(1) # make pause after each text line

@ -0,0 +1,676 @@
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/>.
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>.

@ -0,0 +1,7 @@
A collection of network objects for Pure Data.
For more info see http://puredata.org
or
http://sourceforge.net/projects/pure-data/
Bugs and feature requests should be filed at http://sourceforge.net/tracker/?group_id=55736
Send questions to the mailing list at http://lists.puredata.info/listinfo/pd-list

@ -0,0 +1,104 @@
#N canvas 525 51 712 894 10;
#X obj 119 146 httpreq;
#X obj 44 56 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X msg 84 94 GET http://132.205.142.12/index.php;
#X obj 136 309 unpack 0 0 0 0;
#X floatatom 136 332 3 0 0 0 - - -;
#X floatatom 163 332 3 0 0 0 - - -;
#X floatatom 190 332 3 0 0 0 - - -;
#X floatatom 217 332 3 0 0 0 - - -;
#X text 81 350 from;
#X obj 119 257 tcpclient;
#X obj 153 283 tgl 15 0 empty empty connected 18 7 0 8 -24198 -13381
-1 0 1;
#X text 190 256 tcpclient opens a tcp socket to send and receive bytes
on;
#X floatatom 270 342 9 0 0 0 - - -;
#X floatatom 313 320 9 0 0 0 - - -;
#X text 382 319 Size of the send buffer;
#X obj 270 274 route sent buf blocked;
#X text 340 341 Number of bytes sent;
#X obj 356 298 print sender_blocked!;
#X msg 85 206 connect 132.205.142.12 80;
#X obj 119 450 httpreceive;
#X floatatom 182 483 5 0 0 0 - - -;
#X symbolatom 150 642 10 0 0 0 - - -;
#X obj 150 620 prepend set;
#X symbolatom 216 600 50 0 0 0 - - -;
#X obj 216 578 prepend set;
#X obj 150 526 route reason Date Content-Length Content-Type;
#X symbolatom 350 568 50 0 0 0 - - -;
#X obj 350 546 prepend set;
#X floatatom 283 558 5 0 0 0 - - -;
#X msg 64 74 GET http://132.205.142.12/nothing;
#X msg 44 165 dump \$1;
#X obj 44 139 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 37 328 tgl 15 0 empty empty empty 17 7 0 10 -4034 -257985 -1
0 1;
#X msg 37 351 verbosity \$1;
#X obj 457 543 print more_status;
#X obj 76 392 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X text 515 726 Author: Martin Peach;
#X text 515 743 Date: 2011/01/13;
#X text 224 481 The right outlet is the status code.;
#X text 166 693 The left outlet is the message body as a list of bytes
;
#X text 154 505 The middle outlet is the status header as name/value
pairs;
#X obj 119 693 spigot;
#X obj 119 723 print message_body;
#X obj 152 671 tgl 15 0 empty empty printing_long_messages_can_hang_Pd
17 7 0 10 -4034 -257985 -1 0 1;
#X text 175 147 [httpreq] sends an HTTP/1.1 request as a list of bytes
(actually float atoms) \, suitable for [tcpclient];
#X text 195 444 [htpreceive] expects an HTTP/1.1 response as one or
more lists of bytes.;
#X text 187 557 message length:;
#X obj 27 14 tgl 15 0 empty empty empty 17 7 0 10 -4034 -257985 -1
1 1;
#X msg 27 37 verbosity \$1;
#X msg 105 115 HEAD http://132.205.142.12/index.php;
#X text 175 185 So far only GET and HEAD requests are supported;
#X text 274 73 should return 404 not found;
#X text 306 93 should return a web page;
#X text 332 114 should return only the metainformation;
#X connect 0 0 9 0;
#X connect 1 0 0 0;
#X connect 2 0 0 0;
#X connect 3 0 4 0;
#X connect 3 1 5 0;
#X connect 3 2 6 0;
#X connect 3 3 7 0;
#X connect 9 0 19 0;
#X connect 9 1 3 0;
#X connect 9 2 10 0;
#X connect 9 3 15 0;
#X connect 15 0 12 0;
#X connect 15 1 13 0;
#X connect 15 2 17 0;
#X connect 18 0 9 0;
#X connect 19 0 41 0;
#X connect 19 1 25 0;
#X connect 19 2 20 0;
#X connect 22 0 21 0;
#X connect 24 0 23 0;
#X connect 25 0 22 0;
#X connect 25 1 24 0;
#X connect 25 2 28 0;
#X connect 25 3 27 0;
#X connect 25 4 34 0;
#X connect 27 0 26 0;
#X connect 29 0 0 0;
#X connect 30 0 9 0;
#X connect 31 0 30 0;
#X connect 32 0 33 0;
#X connect 33 0 19 0;
#X connect 35 0 19 0;
#X connect 41 0 42 0;
#X connect 43 0 41 1;
#X connect 47 0 48 0;
#X connect 48 0 0 0;
#X connect 49 0 0 0;

@ -0,0 +1,104 @@
#N canvas 525 51 712 894 10;
#X obj 119 146 httpreq;
#X obj 44 56 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X msg 84 94 GET http://132.205.142.12/index.php;
#X obj 136 309 unpack 0 0 0 0;
#X floatatom 136 332 3 0 0 0 - - -;
#X floatatom 163 332 3 0 0 0 - - -;
#X floatatom 190 332 3 0 0 0 - - -;
#X floatatom 217 332 3 0 0 0 - - -;
#X text 81 350 from;
#X obj 119 257 tcpclient;
#X obj 153 283 tgl 15 0 empty empty connected 18 7 0 8 -24198 -13381
-1 0 1;
#X text 190 256 tcpclient opens a tcp socket to send and receive bytes
on;
#X floatatom 270 342 9 0 0 0 - - -;
#X floatatom 313 320 9 0 0 0 - - -;
#X text 382 319 Size of the send buffer;
#X obj 270 274 route sent buf blocked;
#X text 340 341 Number of bytes sent;
#X obj 356 298 print sender_blocked!;
#X msg 85 206 connect 132.205.142.12 80;
#X obj 119 450 httpreceive;
#X floatatom 182 483 5 0 0 0 - - -;
#X symbolatom 150 642 10 0 0 0 - - -;
#X obj 150 620 prepend set;
#X symbolatom 216 600 50 0 0 0 - - -;
#X obj 216 578 prepend set;
#X obj 150 526 route reason Date Content-Length Content-Type;
#X symbolatom 350 568 50 0 0 0 - - -;
#X obj 350 546 prepend set;
#X floatatom 283 558 5 0 0 0 - - -;
#X msg 64 74 GET http://132.205.142.12/nothing;
#X msg 44 165 dump \$1;
#X obj 44 139 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 37 328 tgl 15 0 empty empty empty 17 7 0 10 -4034 -257985 -1
0 1;
#X msg 37 351 verbosity \$1;
#X obj 457 543 print more_status;
#X obj 76 392 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X text 515 726 Author: Martin Peach;
#X text 515 743 Date: 2011/01/13;
#X text 224 481 The right outlet is the status code.;
#X text 166 693 The left outlet is the message body as a list of bytes
;
#X text 154 505 The middle outlet is the status header as name/value
pairs;
#X obj 119 693 spigot;
#X obj 119 723 print message_body;
#X obj 152 671 tgl 15 0 empty empty printing_long_messages_can_hang_Pd
17 7 0 10 -4034 -257985 -1 0 1;
#X text 175 147 [httpreq] sends an HTTP/1.1 request as a list of bytes
(actually float atoms) \, suitable for [tcpclient];
#X text 195 444 [htpreceive] expects an HTTP/1.1 response as one or
more lists of bytes.;
#X text 187 557 message length:;
#X obj 27 14 tgl 15 0 empty empty empty 17 7 0 10 -4034 -257985 -1
1 1;
#X msg 27 37 verbosity \$1;
#X msg 105 115 HEAD http://132.205.142.12/index.php;
#X text 175 185 So far only GET and HEAD requests are supported;
#X text 274 73 should return 404 not found;
#X text 306 93 should return a web page;
#X text 332 114 should return only the metainformation;
#X connect 0 0 9 0;
#X connect 1 0 0 0;
#X connect 2 0 0 0;
#X connect 3 0 4 0;
#X connect 3 1 5 0;
#X connect 3 2 6 0;
#X connect 3 3 7 0;
#X connect 9 0 19 0;
#X connect 9 1 3 0;
#X connect 9 2 10 0;
#X connect 9 3 15 0;
#X connect 15 0 12 0;
#X connect 15 1 13 0;
#X connect 15 2 17 0;
#X connect 18 0 9 0;
#X connect 19 0 41 0;
#X connect 19 1 25 0;
#X connect 19 2 20 0;
#X connect 22 0 21 0;
#X connect 24 0 23 0;
#X connect 25 0 22 0;
#X connect 25 1 24 0;
#X connect 25 2 28 0;
#X connect 25 3 27 0;
#X connect 25 4 34 0;
#X connect 27 0 26 0;
#X connect 29 0 0 0;
#X connect 30 0 9 0;
#X connect 31 0 30 0;
#X connect 32 0 33 0;
#X connect 33 0 19 0;
#X connect 35 0 19 0;
#X connect 41 0 42 0;
#X connect 43 0 41 1;
#X connect 47 0 48 0;
#X connect 48 0 0 0;
#X connect 49 0 0 0;

@ -0,0 +1,6 @@
#N canvas 17 107 200 200 10;
#N canvas 486 145 761 300 META 1;
#X text 10 5 VERSION 0.1;
#X text 11 25 NAME net;
#X text 9 45 AUTHOR Martin Peach martin.peach@sympatico.ca;
#X restore 10 10 pd META;

@ -0,0 +1,123 @@
#N canvas 1 53 1096 649 12;
#X msg -112 56 disconnect;
#X obj 219 439 unpack 0 0 0 0;
#X floatatom 219 462 3 0 0 0 - - -;
#X floatatom 250 462 3 0 0 0 - - -;
#X floatatom 282 462 3 0 0 0 - - -;
#X floatatom 314 462 3 0 0 0 - - -;
#X text 179 461 from;
#X obj 199 387 tcpclient;
#X obj 239 413 tgl 15 0 empty empty connected 18 7 0 8 -24198 -13381
-1 0 1;
#X msg -88 80 dump \$1;
#X obj -140 65 tgl 15 0 empty empty empty 0 -6 0 8 -4034 -13381 -1
0 1;
#X text -59 -58 connect with an IP address and port number;
#X msg -200 -32 connect www.concordia.ca 80;
#X text -17 79 print received messages to main window in hexdump format
;
#X text 270 386 tcpclient opens a tcp socket to send and receive bytes
on;
#X text -217 305 See also:;
#X obj -212 329 netclient;
#X msg -225 -57 connect 127.0.0.1 9997;
#X obj -212 352 tcpreceive;
#X text -214 374 can receive messages from tcpclient;
#X text -136 328 is what tcpclient is based on;
#X text 250 513 Received messages are output as a list of bytes;
#X msg 83 251 send 49 127 128 51 59;
#X obj -84 352 tcpserver;
#X text -118 351 and;
#X text 347 -55 tcpclient can connect to a server and send and receive
messages as lists of bytes. Any integer value between 0 and 255 can
be transmitted or received.;
#X msg -63 105 send examples/test.txt;
#X obj -15 129 openpanel;
#X msg -15 153 send \$1;
#X obj -101 114 bng 15 250 50 0 empty empty empty 17 7 0 10 -4034 -13381
-1;
#X text 172 105 send a file;
#X text 62 128 ...any file;
#X msg 122 274 71 69 84 32 104 116 116 112 58 47 47 47 105 110 100
101 120 46 104 116 109 108 13 10;
#X text 545 281 'send' prefix is optional;
#X obj 199 514 spigot;
#X obj 238 491 tgl 15 0 empty empty enable_print 18 7 0 8 -24198 -13381
-1 0 1;
#X obj 199 543 print >>>;
#X text 272 24 GET http:///index.phpCRLF;
#X floatatom 374 483 9 0 0 0 - - -;
#X text 196 314 set send-buffer size;
#X floatatom 424 457 9 0 0 0 - - -;
#X text 493 456 Size of the send buffer;
#X msg 170 338 buf;
#X text 200 337 get send-buffer size;
#X msg 146 314 buf 10;
#X msg 194 362 verbosity \$1;
#X obj 139 347 tgl 15 1 empty empty empty 0 -6 0 8 -4034 -13381 -1
0 1;
#X text 289 362 print connection status messages to main window (default)
;
#X msg -136 16 send 71 69 84 32 104 116 116 112 58 47 47 47 105 110
100 101 120 46 112 104 112 13 10 13 10;
#X text 271 542 Attempting to print long messages can hang Pd!;
#X msg 11 179 unblock;
#X obj 374 407 route sent buf blocked;
#X text -208 540 2010/03/26 Martin Peach;
#X msg -175 -7 connect 132.205.142.11 9997;
#X msg -34 207 hello \;;
#X obj 59 227 str to_list;
#X text 158 225 semicolon-terminated strings for netserver or netreceive
;
#X text 73 175 if the tcpclient sender blocks for any reason \, it
must be unblocked manually;
#X text 444 482 Number of bytes sent;
#X obj 474 433 print sender_blocked!;
#N canvas 529 268 494 344 META 0;
#X text 12 215 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan
Wilkes for Pd version 0.42.;
#X text 12 195 AUTHOR Martin Peach;
#X text 12 45 DESCRIPTION connect to a server and send and receive
messages as lists of bytes;
#X text 12 25 LICENSE GPL v2 or later;
#X text 12 85 INLET_0 list buf verbosity connect send disconnect dump
unblock;
#X text 12 115 OUTLET_0 list;
#X text 12 5 KEYWORDS control network;
#X text 12 135 OUTLET_1 list;
#X text 12 155 OUTLET_2 float;
#X text 12 175 OUTLET_3 sent buf blocked;
#X restore 733 551 pd META;
#X connect 0 0 7 0;
#X connect 1 0 2 0;
#X connect 1 1 3 0;
#X connect 1 2 4 0;
#X connect 1 3 5 0;
#X connect 7 0 34 0;
#X connect 7 1 1 0;
#X connect 7 2 8 0;
#X connect 7 3 51 0;
#X connect 9 0 7 0;
#X connect 10 0 9 0;
#X connect 12 0 7 0;
#X connect 17 0 7 0;
#X connect 22 0 7 0;
#X connect 26 0 7 0;
#X connect 27 0 28 0;
#X connect 28 0 7 0;
#X connect 29 0 27 0;
#X connect 32 0 7 0;
#X connect 34 0 36 0;
#X connect 35 0 34 1;
#X connect 42 0 7 0;
#X connect 44 0 7 0;
#X connect 45 0 7 0;
#X connect 46 0 45 0;
#X connect 48 0 7 0;
#X connect 50 0 7 0;
#X connect 51 0 38 0;
#X connect 51 1 40 0;
#X connect 51 2 59 0;
#X connect 53 0 7 0;
#X connect 54 0 55 0;
#X connect 55 0 7 0;

@ -0,0 +1,34 @@
#N canvas 1 53 478 294 12;
#X floatatom 206 144 3 0 0 0 - - -;
#X floatatom 233 144 3 0 0 0 - - -;
#X floatatom 260 144 3 0 0 0 - - -;
#X floatatom 287 144 3 0 0 0 - - -;
#X text 163 143 from;
#X obj 155 185 print message;
#X obj 155 57 tcpreceive 9997;
#X floatatom 257 96 5 0 0 0 - - -;
#X text 303 94 connections;
#X text 32 16 tcpreceive receives bytes over a tcp connection.;
#X floatatom 315 144 5 0 0 0 - - -;
#X obj 206 117 unpack 0 0 0 0 0;
#X text 265 235 Martin Peach 2008/11/05;
#N canvas 529 268 494 344 META 0;
#X text 12 145 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan
Wilkes for Pd version 0.42.;
#X text 12 125 AUTHOR Martin Peach;
#X text 12 25 LICENSE GPL v2 or later;
#X text 12 5 KEYWORDS control network;
#X text 12 45 DESCRIPTION tcpreceive receives bytes over a tcp connection
;
#X text 12 65 OUTLET_0 anything;
#X text 12 85 OUTLET_1 list;
#X text 12 105 OUTLET_2 float;
#X restore 421 264 pd META;
#X connect 6 0 5 0;
#X connect 6 1 11 0;
#X connect 6 2 7 0;
#X connect 11 0 0 0;
#X connect 11 1 1 0;
#X connect 11 2 2 0;
#X connect 11 3 3 0;
#X connect 11 4 10 0;

@ -0,0 +1,41 @@
#N canvas 1 53 559 320 12;
#X msg 85 175 disconnect;
#X msg 13 59 connect 127.0.0.1 9997;
#X obj 60 253 tgl 15 0 empty empty connected 20 7 0 8 -24198 -241291
-1 0 1;
#X obj 60 230 tcpsend;
#X text 217 60 <--first;
#X msg 32 83 send 0 1 2 3;
#X text 8 7 tcpsend sends bytes over a tcp connection.;
#X text 8 30 Used in conjunction with packOSC will send OSC over tcp
;
#X msg 50 106 send examples/test.txt;
#X obj 385 144 openpanel;
#X msg 385 168 send \$1;
#X obj 385 125 bng 15 250 50 0 empty empty empty 17 7 0 10 -24198 -241291
-1;
#X text 344 105 send a file;
#X text 407 124 ...any file;
#X text 148 84 send raw data;
#X text 137 134 'send' prefix is optional;
#X msg 61 133 99 98 97;
#X text 291 260 Martin Peach 2007/06/20;
#N canvas 507 340 494 344 META 0;
#X text 12 125 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan
Wilkes for Pd version 0.42.;
#X text 12 25 LICENSE GPL v2 or later;
#X text 12 105 AUTHOR Martin Peach;
#X text 12 45 DESCRIPTION send bytes over a tcp connection;
#X text 12 65 INLET_0 connect send list disconnect;
#X text 12 85 OUTLET_0 float;
#X text 12 5 KEYWORDS control network;
#X restore 490 290 pd META;
#X connect 0 0 3 0;
#X connect 1 0 3 0;
#X connect 3 0 2 0;
#X connect 5 0 3 0;
#X connect 8 0 3 0;
#X connect 9 0 10 0;
#X connect 10 0 3 0;
#X connect 11 0 9 0;
#X connect 16 0 3 0;

@ -0,0 +1,209 @@
#N canvas 4 103 1272 816 12;
#X msg 39 -10 print;
#X floatatom 404 376 5 0 0 0 - - -;
#X floatatom 428 426 5 0 0 0 - - -;
#X obj 452 377 unpack 0 0 0 0;
#X floatatom 452 400 3 0 0 0 - - -;
#X floatatom 483 400 3 0 0 0 - - -;
#X floatatom 515 400 3 0 0 0 - - -;
#X floatatom 549 400 3 0 0 0 - - -;
#X text 409 399 from;
#X text 320 376 connections;
#X obj 381 501 print received;
#X msg 135 86 client 1 1 2 3;
#X msg 63 14 broadcast 1 2 3;
#X text 91 -9 list of connections;
#X text 186 14 send to all clients;
#X text 358 426 on socket;
#X msg -11 -60 send 504 1 2 3;
#X text 100 -65 send to client on socket 504;
#X msg 647 -209 client 1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
18 19;
#X msg 647 -186 client 1 20 21 22 23 24 25 26 27 28 29 30 31 32 33
34 35 36 37 38 39;
#X msg 647 -148 client 1 40 41 42 43 44 45 46 47 48 49 50 51 52 53
54 55 56 57 58 59;
#X msg 647 -110 client 1 60 61 62 63 64 65 66 67 68 69 70 71 72 73
74 75 76 77 78 79;
#X msg 647 -72 client 1 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
95 96 97 98 99;
#X msg 647 -34 client 1 100 101 102 103 104 105 106 107 108 109 110
111 112 113 114 115 116 117 118 119;
#X msg 647 4 client 1 120 121 122 123 124 125 126 127 138 139 140 141
142 143 144 145 146 147 148 149;
#X msg 647 42 client 1 150 151 152 153 154 155 156 157 158 159 160
161 162 163 164 165 166 167 168 169;
#X msg 647 80 client 1 170 171 172 173 174 175 176 177 178 179 180
181 182 183 184 185 186 187 188 189;
#X msg 647 118 client 1 190 191 192 193 194 195 196 197 198 199 200
201 202 203 204 205 206 207 208 209;
#X msg 647 156 client 1 210 211 212 213 214 215 216 217 218 219 220
221 222 223 224 225 226 227 228 229;
#X msg 647 194 client 1 230 231 232 233 234 235 236 237 238 239 240
241 242 243 244 245 246 247 248 249;
#X msg 647 232 client 1 250 251 252 253 254 255;
#X obj 40 -177 openpanel;
#X obj 40 -196 bng 15 250 50 0 empty empty choose_a_file 17 7 0 10
-24198 -241291 -1;
#X text 24 -157 ...any file;
#X msg -108 -157 client 1 \$1;
#X msg 14 -35 10 1 2 43;
#X text 98 -48 'send' prefix is optional;
#X text 88 -31 (the first number is socket number);
#X msg -41 -90 disconnectsocket \$1;
#X msg -84 -133 disconnectclient \$1;
#X obj 647 257 s toserver;
#X obj 376 327 r toserver;
#X floatatom 143 -172 5 0 0 0 - - -;
#X obj 121 -153 f;
#X obj 121 -172 bng 15 250 50 0 empty empty empty 17 7 0 10 -258699
-241291 -1;
#X floatatom 185 -129 5 0 0 0 - - -;
#X obj 163 -110 f;
#X obj 163 -129 bng 15 250 50 0 empty empty empty 17 7 0 10 -258699
-241291 -1;
#X text -109 -110 disconnect by socket or client number;
#X text 488 351 argument is port number;
#X text 52 353 Received messages are output as lists of bytes;
#X text -9 457 ***WARNING*** Attempting to print long messages can
hang pd!;
#X obj 381 479 spigot;
#X obj 420 459 tgl 15 0 empty empty enable_print 17 7 0 10 -24198 -258699
-45076 0 1;
#X msg 159 110 dump \$1;
#X obj -17 95 tgl 15 0 empty empty enable_dump 17 7 0 10 -4034 -257985
-1 0 1;
#X text -85 45 dump received;
#X text -85 61 characters to main;
#X text -85 76 window in hexdump;
#X text -85 92 format:;
#X obj 381 352 tcpserver 9997;
#X msg -132 -181 client 1 test.txt;
#X text 647 -234 [tcpserver] sends and receives bytes on [0...255]
;
#X text 158 -217 [tcpserver] waits for clients to connect to its port.
;
#X text -137 -202 send a file to client 1;
#X msg 183 134 client 1 72 101 108 108 111 13 10;
#X floatatom 638 437 9 0 0 0 - - -;
#X obj 770 396 print status;
#X floatatom 598 460 5 0 0 0 - - -;
#X text 528 459 to_client;
#X msg 111 62 client;
#X msg 88 39 client 1;
#X text 156 38 get state of client 1;
#X text 249 86 send (binary) 1 2 3 to client 1;
#X floatatom 772 529 5 0 0 0 - - -;
#X symbolatom 804 502 20 0 0 0 - - -;
#X floatatom 741 502 5 0 0 0 - - -;
#X text 705 436 bytes;
#X text 598 436 sent;
#X msg 209 160 clientbuf 1 65536;
#X obj 741 478 unpack 0 0 s 0;
#X floatatom 836 550 7 0 0 0 - - -;
#X text 681 550 length of send buffer:;
#X text 721 528 socket:;
#X text 690 501 client:;
#X text 781 501 ip:;
#X text 339 159 set send-buffer size for client 1;
#X text 163 62 get state of all clients (list on right outlet);
#X obj 598 411 unpack 0 0 0;
#X floatatom 679 478 5 0 0 0 - - -;
#X text 609 477 on_socket;
#X msg 233 184 send;
#X msg 258 209 1156;
#X text 276 183 output 'client' message for all sockets;
#X text 298 209 output 'client' message for socket 1156;
#X msg 283 234 unblock;
#X obj 598 372 route sent client blocked;
#X text -143 233 If sending too many messages blocks the system \,
tcpserver will stop sending until it receives an unblock message;
#X obj 712 419 print blocked;
#N canvas 530 81 494 344 META 0;
#X text 12 225 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan
Wilkes for Pd version 0.42.;
#X text 12 205 AUTHOR Martin Peach;
#X text 12 25 LICENSE GPL v2 or later;
#X text 12 5 KEYWORDS control network;
#X text 12 45 DESCRIPTION wait for clients to connect to its port;
#X text 12 65 INLET_0 float list client disconnectclient disconnectsocket
send print broadcast dump clientbuf unblock;
#X text 12 105 OUTLET_0 anything;
#X text 12 125 OUTLET_1 float;
#X text 12 145 OUTLET_2 float;
#X text 12 165 OUTLET_3 list;
#X text 12 185 OUTLET_4 sent client blocked;
#X restore 899 458 pd META;
#X msg 354 305 port 12345;
#X text 436 304 change listening port (only if no connections are active)
;
#X msg 332 283 verbosity \$1;
#X obj 332 263 hradio 15 1 0 4 empty empty empty 0 -8 0 10 -1 -4034
-1 0;
#X text 425 281 set verbosity level;
#X text -9 536 2014/02/13 Martin Peach;
#X connect 0 0 60 0;
#X connect 3 0 4 0;
#X connect 3 1 5 0;
#X connect 3 2 6 0;
#X connect 3 3 7 0;
#X connect 11 0 60 0;
#X connect 12 0 60 0;
#X connect 16 0 60 0;
#X connect 18 0 40 0;
#X connect 19 0 40 0;
#X connect 20 0 40 0;
#X connect 21 0 40 0;
#X connect 22 0 40 0;
#X connect 23 0 40 0;
#X connect 24 0 40 0;
#X connect 25 0 40 0;
#X connect 26 0 40 0;
#X connect 27 0 40 0;
#X connect 28 0 40 0;
#X connect 29 0 40 0;
#X connect 30 0 40 0;
#X connect 31 0 34 0;
#X connect 32 0 31 0;
#X connect 34 0 60 0;
#X connect 35 0 60 0;
#X connect 38 0 60 0;
#X connect 39 0 60 0;
#X connect 41 0 60 0;
#X connect 42 0 43 1;
#X connect 43 0 39 0;
#X connect 44 0 43 0;
#X connect 45 0 46 1;
#X connect 46 0 38 0;
#X connect 47 0 46 0;
#X connect 52 0 10 0;
#X connect 53 0 52 1;
#X connect 54 0 60 0;
#X connect 55 0 54 0;
#X connect 60 0 52 0;
#X connect 60 1 1 0;
#X connect 60 2 2 0;
#X connect 60 3 3 0;
#X connect 60 4 96 0;
#X connect 61 0 60 0;
#X connect 65 0 60 0;
#X connect 70 0 60 0;
#X connect 71 0 60 0;
#X connect 79 0 60 0;
#X connect 80 0 76 0;
#X connect 80 1 74 0;
#X connect 80 2 75 0;
#X connect 80 3 81 0;
#X connect 88 0 68 0;
#X connect 88 1 66 0;
#X connect 88 2 89 0;
#X connect 91 0 60 0;
#X connect 92 0 60 0;
#X connect 95 0 60 0;
#X connect 96 0 88 0;
#X connect 96 1 80 0;
#X connect 96 2 98 0;
#X connect 96 3 67 0;
#X connect 100 0 60 0;
#X connect 102 0 60 0;
#X connect 103 0 102 0;

@ -0,0 +1,4 @@
#N canvas 171 298 450 300 10;
#X text 79 81 This is a support object for;
#X obj 252 81 pddp/helplink tcpsocketserver;
#X obj 178 123 tcpsocket.FUDI;

@ -0,0 +1,166 @@
#N canvas 585 75 446 533 10;
#X obj 50 49 == \$2;
#X obj 7 28 route in socket;
#X obj 7 76 spigot;
#N canvas 622 183 512 335 reset 0;
#X obj 23 41 route \$2;
#X obj 23 63 route reset;
#X obj 23 83 t b b;
#X msg 55 170 done;
#X obj 23 113 outlet;
#X text 161 33 this is used to:;
#X text 87 114 a) reset the sockethandler on a new connection;
#X text 88 129 (for instance \, if the previous connection was quitted
in the middle of a packet).;
#X text 55 213 b) check for the socketserver \, if a sockethandler
on specified socket already exists.;
#X obj 55 191 s \$1.TCPSOCKET;
#X obj 23 19 r \$1.TCPSOCKET;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 2 0 4 0;
#X connect 2 1 3 0;
#X connect 3 0 9 0;
#X connect 10 0 0 0;
#X restore 46 102 pd reset;
#X obj 105 279 route socket ip;
#X obj 41 367 list append;
#X obj 58 323 list append;
#X obj 7 299 t a b b b;
#X obj 7 414 list prepend out;
#X obj 41 391 list prepend socket.out;
#X obj 58 345 list prepend ip.out;
#X obj 7 442 list trim;
#X text 16 220 the lower part makes [tcpsocketserver] behave like [tcpserver]
;
#X obj -2 136 cnv 15 450 70 empty empty empty 20 12 0 14 -204786 -66577
0;
#N canvas 385 67 606 479 FUDI 0;
#X obj 23 6 inlet;
#X obj 23 400 outlet;
#N canvas 389 242 191 341 serialize 0;
#X obj 5 100 t a a;
#X obj 37 122 list prepend 0;
#X obj 37 143 s \$0.inbuffer;
#X obj 5 174 list length;
#X obj 5 218 until;
#X obj 5 195 t a b;
#X obj 5 241 f;
#X obj 50 244 + 1;
#X msg 49 218 0;
#X obj 5 267 tabread \$0.inbuffer;
#X obj 5 50 inlet;
#X obj 5 289 outlet;
#X obj 5 12 table \$0.inbuffer 8192;
#N canvas 294 258 396 232 list_serialize_raw 0;
#X obj 13 73 until;
#X obj 13 97 list append;
#X obj 13 47 t b a;
#X obj 13 23 inlet;
#X obj 13 169 outlet;
#X obj 13 121 list split 8192;
#X obj 141 106 b;
#X text 12 190 cut incoming list into pieces of a maximum of the buffersize.
;
#X connect 0 0 1 0;
#X connect 1 0 5 0;
#X connect 2 0 0 0;
#X connect 2 1 1 1;
#X connect 3 0 2 0;
#X connect 5 0 4 0;
#X connect 5 1 1 1;
#X connect 5 2 6 0;
#X connect 5 2 4 0;
#X connect 6 0 0 1;
#X restore 5 74 pd list_serialize_raw;
#X connect 0 0 3 0;
#X connect 0 1 1 0;
#X connect 1 0 2 0;
#X connect 3 0 5 0;
#X connect 4 0 6 0;
#X connect 5 0 4 0;
#X connect 5 1 8 0;
#X connect 6 0 7 0;
#X connect 6 0 9 0;
#X connect 7 0 6 1;
#X connect 8 0 6 1;
#X connect 9 0 11 0;
#X connect 10 0 13 0;
#X connect 13 0 0 0;
#X restore 23 30 pd serialize;
#X obj 23 109 t a a;
#X obj 97 297 list prepend;
#X obj 195 296 t a;
#X obj 23 327 list append;
#X obj 23 350 t a b;
#X obj 160 56 inlet;
#X text 210 56 reset;
#X obj 23 53 sel 10 13;
#X msg 23 76 32;
#X obj 23 219 sel 59;
#X obj 178 264 b;
#X obj 23 373 list append 10;
#X obj 23 149 sel 92;
#X msg 23 171 -1;
#X obj 62 171 t a a;
#X msg 62 193 59;
#X text 119 182 <-;
#X text 144 176 separate by 59 (semicolon) \, but ignore semicolons
prepended by 92 (backslash);
#X connect 0 0 2 0;
#X connect 2 0 10 0;
#X connect 3 0 15 0;
#X connect 3 1 4 0;
#X connect 4 0 5 0;
#X connect 4 0 6 1;
#X connect 5 0 4 1;
#X connect 6 0 7 0;
#X connect 7 0 14 0;
#X connect 7 1 6 1;
#X connect 7 1 4 1;
#X connect 8 0 13 0;
#X connect 10 0 11 0;
#X connect 10 1 11 0;
#X connect 10 2 3 0;
#X connect 11 0 3 0;
#X connect 12 0 6 0;
#X connect 13 0 4 1;
#X connect 13 0 6 1;
#X connect 14 0 1 0;
#X connect 15 0 16 0;
#X connect 15 1 17 0;
#X connect 16 0 12 1;
#X connect 17 0 18 0;
#X connect 17 1 12 0;
#X connect 18 0 12 1;
#X restore 7 161 pd FUDI;
#X text 70 162 <- PUT HERE THE PROTOCOL SPECIFIC DELIMITER CODE;
#X text 15 197 --------------------------------------------------------
;
#X text 12 129 --------------------------------------------------------
;
#X obj 7 6 r \$1.TCPSOCKET;
#X obj 7 465 s \$1.TCPSOCKET;
#X obj 105 255 r \$1.TCPSOCKET;
#X text 200 454 Author: Roman Haefeli;
#X text 50 74 <- only pass stream of own socket;
#X text 201 474 Version: 2009-02-02;
#X connect 0 0 2 1;
#X connect 1 0 2 0;
#X connect 1 1 0 0;
#X connect 2 0 14 0;
#X connect 3 0 14 1;
#X connect 4 0 5 1;
#X connect 4 1 6 1;
#X connect 5 0 9 0;
#X connect 6 0 10 0;
#X connect 7 0 8 0;
#X connect 7 2 5 0;
#X connect 7 3 6 0;
#X connect 8 0 11 0;
#X connect 9 0 11 0;
#X connect 10 0 11 0;
#X connect 11 0 19 0;
#X connect 14 0 7 0;
#X connect 18 0 1 0;
#X connect 20 0 4 0;

@ -0,0 +1,4 @@
#N canvas 171 298 450 300 10;
#X obj 178 123 tcpsocket.OSC;
#X text 79 81 This is a support object for;
#X obj 252 81 pddp/helplink tcpsocketserver;

@ -0,0 +1,89 @@
#N canvas 636 71 455 534 10;
#X obj 50 49 == \$2;
#X obj 7 28 route in socket;
#X obj 7 76 spigot;
#N canvas 622 183 512 335 reset 0;
#X obj 23 41 route \$2;
#X obj 23 63 route reset;
#X obj 23 83 t b b;
#X msg 55 170 done;
#X obj 23 113 outlet;
#X text 161 33 this is used to:;
#X text 87 114 a) reset the sockethandler on a new connection;
#X text 88 129 (for instance \, if the previous connection was quitted
in the middle of a packet).;
#X text 55 213 b) check for the socketserver \, if a sockethandler
on specified socket already exists.;
#X obj 55 191 s \$1.TCPSOCKET;
#X obj 23 19 r \$1.TCPSOCKET;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 2 0 4 0;
#X connect 2 1 3 0;
#X connect 3 0 9 0;
#X connect 10 0 0 0;
#X restore 40 102 pd reset;
#X obj 104 280 route socket ip;
#X obj 41 367 list append;
#X obj 58 323 list append;
#X obj 7 299 t a b b b;
#X obj 7 414 list prepend out;
#X obj 41 391 list prepend socket.out;
#X obj 58 345 list prepend ip.out;
#X obj 7 442 list trim;
#X text 16 220 the lower part makes [tcpsocketserver] behave like [tcpserver]
;
#X obj -2 136 cnv 15 450 70 empty empty empty 20 12 0 14 -204786 -66577
0;
#X text 70 162 <- PUT HERE THE PROTOCOL SPECIFIC DELIMITER CODE;
#X text 15 197 --------------------------------------------------------
;
#X text 13 129 --------------------------------------------------------
;
#X obj 7 6 r \$1.TCPSOCKET;
#X obj 7 465 s \$1.TCPSOCKET;
#X obj 104 256 r \$1.TCPSOCKET;
#X text 200 454 Author: Roman Haefeli;
#X text 55 75 <- only pass stream of own socket;
#N canvas 389 116 266 236 OSC 0;
#X obj 27 18 inlet;
#X obj 27 186 outlet;
#X obj 144 23 inlet;
#X text 194 23 reset;
#X obj 27 123 mrpeach/slipdec 16384;
#X obj 27 151 spigot 1;
#X obj 144 45 t b b b;
#X msg 163 67 192 192;
#X msg 183 99 0;
#X msg 144 100 1;
#X connect 0 0 4 0;
#X connect 2 0 6 0;
#X connect 4 0 5 0;
#X connect 5 0 1 0;
#X connect 6 0 9 0;
#X connect 6 1 7 0;
#X connect 6 2 8 0;
#X connect 7 0 4 0;
#X connect 8 0 5 1;
#X connect 9 0 5 1;
#X restore 7 161 pd OSC;
#X text 201 474 Version: 2011-01-05;
#X connect 0 0 2 1;
#X connect 1 0 2 0;
#X connect 1 1 0 0;
#X connect 2 0 22 0;
#X connect 3 0 22 1;
#X connect 4 0 5 1;
#X connect 4 1 6 1;
#X connect 5 0 9 0;
#X connect 6 0 10 0;
#X connect 7 0 8 0;
#X connect 7 2 5 0;
#X connect 7 3 6 0;
#X connect 8 0 11 0;
#X connect 9 0 11 0;
#X connect 10 0 11 0;
#X connect 11 0 18 0;
#X connect 17 0 1 0;
#X connect 19 0 4 0;
#X connect 22 0 7 0;

@ -0,0 +1,299 @@
#N canvas 361 252 878 523 10;
#X declare -stdpath extra/mrpeach;
#X declare -stdpath extra/mrpeach;
#X declare -lib moocow;
#X declare -stdpath extra/mrpeach;
#X declare -lib moocow;
#X msg 471 74 print;
#X text 521 75 list of connections;
#X text 627 103 send to all clients;
#X text 629 132 send to client 1;
#X text 615 155 send to client on socket 504;
#X text 613 28 'send' prefix is optional;
#X text 474 48 (the first number is socket number);
#X msg 556 257 disconnectsocket \$1;
#X msg 484 284 disconnectclient \$1;
#X floatatom 506 215 5 0 0 0 - - -;
#X obj 484 235 f;
#X obj 484 216 bng 15 250 50 0 empty empty empty 17 7 0 10 -258699
-241291 -1;
#X floatatom 578 216 5 0 0 0 - - -;
#X obj 556 235 f;
#X obj 556 216 bng 15 250 50 0 empty empty empty 17 7 0 10 -258699
-241291 -1;
#X text 483 197 disconnect by socket or client number;
#X obj 618 335 unpack 0 0 0 0;
#X floatatom 618 355 3 0 0 0 - - -;
#X floatatom 649 355 3 0 0 0 - - -;
#X floatatom 681 356 3 0 0 0 - - -;
#X floatatom 715 356 3 0 0 0 - - -;
#X text 616 372 IP;
#X floatatom 569 355 5 0 0 0 - - -;
#X text 566 371 socket;
#X floatatom 520 376 5 0 0 0 - - -;
#X text 520 391 number of connections;
#X obj 471 433 spigot;
#X obj 510 413 tgl 15 0 empty empty enable_print 17 7 0 10 -24198 -258699
-258699 0 1;
#X text 15 37 [tcpsocketserver <protocol> <port>];
#X obj 469 311 cnv 15 185 22 empty empty empty 20 12 0 14 -204786 -66577
0;
#X obj 471 314 tcpsocketserver FUDI 2468;
#X text 15 115 [tcpsocketserver] is able to handle multiple sockets
of a packet oriented protocol correctly \, unlike [tcpserver] \, which
might mix up packets from different sockets.;
#X text 24 308 - OSC;
#X text 16 245 each protocol requires its own specific socket handler
abstraction \, which should be named [tcpsocket.PROTOCOL]. currently
available are the protocols:;
#X text 23 293 - FUDI;
#N canvas 702 157 472 356 EXTENDABILITY 0;
#X text 3 39 Support for more protocols can easily be added. In order
to do so:;
#X text 5 10 EXTENDABILITY;
#X text 6 105 - open tcpsocket.NEWPROTOCOL.pd;
#X text 7 127 - edit the green-marked subpatch;
#X text 10 208 - save it;
#X text 12 227 - in order to use it \, instantiate:;
#X text 46 247 [tcpsocketserver NEWPROTOCOL <port>];
#X text 8 148 - replace code with code \, that creates proper packets
out of the incoming stream for the desired protocol. don't forget to
implement a reset mechanism \, in case a socket is closed in the middle
of packet transmission.;
#X text 5 83 - copy tcpsocket.FUDI.pd to tcpsocket.NEWPROTOCOL.pd;
#X restore 21 387 pd EXTENDABILITY;
#X text 17 453 Author: Roman Haefeli;
#X text 16 468 Version: 2009-01-11;
#X text 15 65 [tcpsocketserver] is meant to be a protocol-aware drop-in
replacement for [tcpserver]. it uses same the same inlet and outlet
configuration as [tcpserver].;
#X text 469 478 only well-formed FUDI messages are received here.;
#N canvas 463 454 147 274 EXAMPLES 0;
#N canvas 705 77 571 769 FUDI 0;
#X obj 8 52 cnv 15 550 240 empty empty client_1 20 12 0 14 -249661
-66577 0;
#X obj 24 206 tcpclient;
#X msg 368 107 connect localhost 11001;
#X msg 392 128 disconnect;
#X obj 368 85 sel 1 0;
#X obj 368 64 tgl 15 0 empty empty empty 17 7 0 10 -261234 -1 -1 0
1;
#X obj 24 272 print CLIENT_1;
#X msg 24 83 one two;
#X obj 24 104 any2string 0 -1;
#X msg 68 164 59 10;
#X msg 32 130 32 116 104 114 101 101 23;
#X obj 8 299 cnv 15 550 150 empty empty client_2 20 12 0 14 -249661
-66577 0;
#X msg 368 354 connect localhost 11001;
#X msg 392 375 disconnect;
#X obj 368 332 sel 1 0;
#X obj 368 311 tgl 15 0 empty empty empty 17 7 0 10 -261234 -1 -1 0
1;
#X obj 24 227 string2any 0 59;
#X obj 24 247 route bang;
#X obj 24 386 netclient;
#X obj 24 415 print CLIENT_2;
#X text 168 337 <- send FUDI message;
#X obj 9 457 cnv 15 550 300 empty empty FUDI_server 20 12 0 14 -241408
-66577 0;
#X obj 11 613 tcpsocketserver FUDI 11001;
#X obj 11 687 string2any 0 59;
#X obj 11 708 route bang;
#X obj 190 633 unpack 0 0 0 0;
#X floatatom 190 653 3 0 0 0 - - -;
#X floatatom 221 653 3 0 0 0 - - -;
#X floatatom 253 654 3 0 0 0 - - -;
#X floatatom 287 654 3 0 0 0 - - -;
#X text 188 670 IP;
#X floatatom 130 653 5 0 0 0 - - -;
#X floatatom 70 654 5 0 0 0 - - -;
#X text 59 669 clients;
#X text 126 669 socket;
#X text 131 688 <--;
#X text 164 688 [tcpsocketserver FUDI] does _not_ remove the trailing
' \; ';
#X text 164 83 1) start a FUDI message;
#X text 231 131 2) continue;
#X text 117 165 3) finish FUDI message (with semicolon - newline);
#X text 390 65 connect;
#X text 389 309 connect;
#X text 19 488 [tcpsocketserver FUDI] doesn't take care of building
FUDI-compliant messages. this should be done by the user.;
#X text 153 229 4) try sending a message from client_2 during composing
a message with client_1 and see \, how the server behaves.;
#X text 278 535 <- this doesn't work;
#X text 314 562 <- this should;
#X msg 24 336 send four five six;
#X msg 42 563 client 2 115 101 118 101 110 32 59 10;
#X msg 41 534 client 2 115 101 118 101 110 32;
#X obj 11 733 print SERVER;
#X obj 20 32 import moocow;
#X connect 1 0 16 0;
#X connect 2 0 1 0;
#X connect 3 0 1 0;
#X connect 4 0 2 0;
#X connect 4 1 3 0;
#X connect 5 0 4 0;
#X connect 7 0 8 0;
#X connect 8 0 1 0;
#X connect 9 0 1 0;
#X connect 10 0 1 0;
#X connect 12 0 18 0;
#X connect 13 0 18 0;
#X connect 14 0 12 0;
#X connect 14 1 13 0;
#X connect 15 0 14 0;
#X connect 16 0 17 0;
#X connect 17 1 6 0;
#X connect 18 0 19 0;
#X connect 22 0 23 0;
#X connect 22 1 32 0;
#X connect 22 2 31 0;
#X connect 22 3 25 0;
#X connect 23 0 24 0;
#X connect 24 1 49 0;
#X connect 25 0 26 0;
#X connect 25 1 27 0;
#X connect 25 2 28 0;
#X connect 25 3 29 0;
#X connect 46 0 18 0;
#X connect 47 0 22 0;
#X connect 48 0 22 0;
#X restore 23 25 pd FUDI;
#N canvas 697 77 579 756 OSC 0;
#X obj 9 39 cnv 15 550 240 empty empty client_1 20 12 0 14 -249661
-66577 0;
#X obj 25 211 tcpclient;
#X msg 357 229 disconnect;
#X obj 333 186 sel 1 0;
#X obj 333 165 tgl 15 0 empty empty empty 17 7 0 10 -261234 -1 -1 0
1;
#X obj 25 259 print CLIENT_1;
#X obj 9 286 cnv 15 550 150 empty empty client_2 20 12 0 14 -249661
-66577 0;
#X msg 393 362 disconnect;
#X obj 369 319 sel 1 0;
#X obj 369 298 tgl 15 0 empty empty empty 17 7 0 10 -261234 -1 -1 0
1;
#X obj 25 417 print CLIENT_2;
#X obj 10 444 cnv 15 550 300 empty empty OSC_server 20 12 0 14 -241408
-66577 0;
#X obj 188 636 unpack 0 0 0 0;
#X floatatom 188 656 3 0 0 0 - - -;
#X floatatom 219 656 3 0 0 0 - - -;
#X floatatom 251 657 3 0 0 0 - - -;
#X floatatom 285 657 3 0 0 0 - - -;
#X text 186 673 IP;
#X floatatom 130 656 5 0 0 0 - - -;
#X floatatom 73 657 5 0 0 0 - - -;
#X text 62 672 clients;
#X text 126 672 socket;
#X text 355 166 connect;
#X text 390 296 connect;
#X obj 16 616 tcpsocketserver OSC 11002;
#X obj 16 694 unpackOSC;
#X obj 16 720 print SERVER;
#X msg 333 208 connect localhost 11002;
#X msg 369 341 connect localhost 11002;
#X obj 25 234 unpackOSCstream;
#X obj 25 373 tcpclient;
#X obj 25 395 unpackOSCstream;
#X msg 49 498 /synth1/tone3/freq 440;
#X msg 25 79 0 0 0 16 47 102 114 101 113;
#X msg 41 104 0 0 0 44 105 0 0 0 0 1 184;
#X text 155 324 send OSC message;
#X msg 25 323 /amplitude 0.78;
#X obj 25 347 packOSCstream;
#X obj 16 522 packOSCstream;
#X obj 16 594 list trim;
#X msg 16 473 /synth3/tone4/amplitude 0.36;
#X obj 180 555 hradio 15 1 0 2 empty empty empty 0 -8 0 10 -4034 -1
-1 0;
#X obj 180 573 + 1;
#X text 221 555 client;
#X obj 16 551 list prepend 1;
#X obj 16 573 list prepend client;
#X text 236 80 1) start sending an OSC packet;
#X text 247 106 2) complete the OSC packet;
#X text 59 137 also try sending an OSC packet from client_2 between
1) and 2);
#X text 124 520 <- use [packOSCstream] in order to create OSC packets
suitable for tcp transport.;
#X text 238 486 send to clients;
#X text 93 695 <---;
#X text 139 694 CAUTION: not [unpackOSCstream] is used here \, since
[tcpsocket.OSC] already unwraps the OSC message;
#X obj 8 9 import moocow;
#X connect 1 0 29 0;
#X connect 2 0 1 0;
#X connect 3 0 27 0;
#X connect 3 1 2 0;
#X connect 4 0 3 0;
#X connect 7 0 30 0;
#X connect 8 0 28 0;
#X connect 8 1 7 0;
#X connect 9 0 8 0;
#X connect 12 0 13 0;
#X connect 12 1 14 0;
#X connect 12 2 15 0;
#X connect 12 3 16 0;
#X connect 24 0 25 0;
#X connect 24 1 19 0;
#X connect 24 2 18 0;
#X connect 24 3 12 0;
#X connect 25 0 26 0;
#X connect 27 0 1 0;
#X connect 28 0 30 0;
#X connect 29 0 5 0;
#X connect 30 0 31 0;
#X connect 31 0 10 0;
#X connect 32 0 38 0;
#X connect 33 0 1 0;
#X connect 34 0 1 0;
#X connect 36 0 37 0;
#X connect 37 0 30 0;
#X connect 38 0 44 0;
#X connect 39 0 24 0;
#X connect 40 0 38 0;
#X connect 41 0 42 0;
#X connect 42 0 44 1;
#X connect 44 0 45 0;
#X connect 45 0 39 0;
#X restore 23 49 pd OSC;
#X restore 21 365 pd EXAMPLES;
#X obj 471 455 print FUDI;
#X msg 471 101 broadcast 97 98 99 59 10;
#X msg 471 128 client 1 97 98 99 59 10;
#X msg 471 155 send 504 97 98 99 59 10;
#X msg 471 28 10 97 98 99 59 10;
#X text 17 8 TCPSOCKETSERVER - a protocol-aware wrapper aroun [tcpserver]
;
#X text 13 167 [tcpsocketserver] dynamically creates (internally) an
instance of a socket handler abstraction [tcpsocket.PROTOCOL] for each
opened socket. every socket handler creates proper packets from the
incoming stream and sends them to the left outlet of [tcpsocketserver].
;
#X connect 0 0 30 0;
#X connect 7 0 30 0;
#X connect 8 0 30 0;
#X connect 9 0 10 1;
#X connect 10 0 8 0;
#X connect 11 0 10 0;
#X connect 12 0 13 1;
#X connect 13 0 7 0;
#X connect 14 0 13 0;
#X connect 16 0 17 0;
#X connect 16 1 18 0;
#X connect 16 2 19 0;
#X connect 16 3 20 0;
#X connect 26 0 41 0;
#X connect 27 0 26 1;
#X connect 30 0 26 0;
#X connect 30 1 24 0;
#X connect 30 2 22 0;
#X connect 30 3 16 0;
#X connect 42 0 30 0;
#X connect 43 0 30 0;
#X connect 44 0 30 0;
#X connect 45 0 30 0;

@ -0,0 +1,111 @@
#N canvas 332 53 333 552 10;
#X obj 13 9 inlet;
#X obj 13 464 outlet;
#X obj 71 463 outlet;
#X obj 129 463 outlet;
#X obj 187 462 outlet;
#X obj 30 207 list trim;
#X obj 47 165 list trim;
#X obj 47 144 list prepend socket;
#X obj 30 186 list prepend num_of_clients;
#X obj 64 123 list trim;
#X obj 64 102 list prepend ip;
#N canvas 816 227 247 348 \$0.TCPSOCKETCONTAINER 0;
#X restore 14 372 pd \$0.TCPSOCKETCONTAINER;
#N canvas 491 218 502 504 socketmanager 0;
#X msg 24 196 \$1 reset;
#X obj 25 259 route done;
#X obj 5 175 t a a b;
#X msg 25 280 0;
#X msg 44 280 1;
#X obj 5 303 spigot;
#X obj 44 344 f;
#X obj 76 344 + 20;
#X obj 5 323 t a b b;
#X obj 24 365 list append \$1;
#X obj 24 388 list append;
#X obj 5 412 list append;
#X obj 5 476 s pd-\$0.TCPSOCKETCONTAINER;
#X obj 5 432 list append \$0;
#X obj 5 24 route socket num_of_clients;
#X obj 84 46 t a a;
#X obj 69 73 -;
#X obj 69 94 == 1;
#X obj 5 122 spigot;
#X obj 5 3 r \$0.TCPSOCKET;
#X obj 24 217 s \$0.TCPSOCKET;
#X obj 25 238 r \$0.TCPSOCKET;
#X msg 5 454 obj 10 \$3 tcpsocket.\$2 \$4 \$1 \, loadbang;
#X obj 5 148 t a b;
#X msg 65 132 0;
#X text 116 78 when a new client connects (num_of_clients: +1);
#X text 119 197 send a 'reset' to the according socket handler;
#X text 114 266 and if it doesn't respond (which means \, there is
no socket handler on specified socket) \,;
#X text 119 368 create one (into pd-\$0.TCPSOCKETCONTAINER).;
#X connect 0 0 20 0;
#X connect 1 0 3 0;
#X connect 2 0 5 0;
#X connect 2 1 0 0;
#X connect 2 2 4 0;
#X connect 3 0 5 1;
#X connect 4 0 5 1;
#X connect 5 0 8 0;
#X connect 6 0 7 0;
#X connect 6 0 10 1;
#X connect 7 0 6 1;
#X connect 8 0 11 0;
#X connect 8 1 9 0;
#X connect 8 2 6 0;
#X connect 9 0 10 0;
#X connect 10 0 11 1;
#X connect 11 0 13 0;
#X connect 13 0 22 0;
#X connect 14 0 18 0;
#X connect 14 1 15 0;
#X connect 15 0 16 1;
#X connect 15 1 16 0;
#X connect 16 0 17 0;
#X connect 17 0 18 1;
#X connect 18 0 23 0;
#X connect 19 0 14 0;
#X connect 21 0 1 0;
#X connect 22 0 12 0;
#X connect 23 0 2 0;
#X connect 23 1 24 0;
#X connect 24 0 18 1;
#X restore 14 349 pd socketmanager;
#X obj 13 30 tcpserver \$2;
#X obj 13 417 r \$0.TCPSOCKET;
#X obj 13 228 list prepend in;
#X obj 13 250 list trim;
#X obj 82 316 s \$0.TCPSOCKET;
#X text 23 501 Author: Roman Haefeli;
#X text 94 292 [tcpsocketserver <protocol> <port>];
#X obj 82 78 list trim;
#X obj 82 57 list prepend status;
#X obj 13 440 route out num_of_clients socket.out ip.out status;
#X text 24 518 Version: 2012-04-13;
#X obj 245 461 outlet;
#X connect 0 0 13 0;
#X connect 5 0 17 0;
#X connect 6 0 17 0;
#X connect 7 0 6 0;
#X connect 8 0 5 0;
#X connect 9 0 17 0;
#X connect 10 0 9 0;
#X connect 13 0 15 0;
#X connect 13 1 8 0;
#X connect 13 2 7 0;
#X connect 13 3 10 0;
#X connect 13 4 21 0;
#X connect 14 0 22 0;
#X connect 15 0 16 0;
#X connect 16 0 17 0;
#X connect 20 0 17 0;
#X connect 21 0 20 0;
#X connect 22 0 1 0;
#X connect 22 1 2 0;
#X connect 22 2 3 0;
#X connect 22 3 4 0;
#X connect 22 4 24 0;

@ -0,0 +1,59 @@
#N canvas 1 53 742 431 12;
#X floatatom 414 304 3 0 0 0 - - -;
#X floatatom 441 304 3 0 0 0 - - -;
#X floatatom 468 304 3 0 0 0 - - -;
#X floatatom 495 304 3 0 0 0 - - -;
#X obj 191 160 udpreceive 9997;
#X floatatom 522 305 5 0 0 0 - - -;
#X obj 414 278 unpack 0 0 0 0 0;
#X msg 191 90 status;
#X floatatom 293 225 9 0 0 0 - - -;
#X obj 474 251 tgl 15 0 empty empty empty 17 7 0 10 -4034 -1 -1 0 1
;
#X floatatom 353 251 9 0 0 0 - - -;
#X text -10 90 get status on right outlet:;
#X text 186 225 bytes received:;
#X text 201 249 total bytes received:;
#X text 371 303 from:;
#X text 293 78 Specify a multicast address (from 224.0.0.0 to 239.255.255.255)
to use multicasting;
#X text 36 38 Creation arguments: port number to listen on (required)
;
#X obj 191 294 spigot;
#X obj 230 274 tgl 15 0 empty empty enable_print: -77 8 0 10 -4034
-1 -1 0 1;
#X obj 191 319 print received;
#X obj 293 192 route received total from multicast;
#X text 175 56 IP address to listen on (optional);
#X msg 202 129 port 9998;
#X text 276 127 change port to listen on;
#X text 486 360 Martin Peach 2010/10/15;
#X text -12 3 [udpreceive] receives datagrams over a udp connection
and outputs them as raw bytes.;
#N canvas 529 53 494 344 META 0;
#X text 12 155 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan
Wilkes for Pd version 0.42.;
#X text 12 25 LICENSE GPL v2 or later;
#X text 12 135 AUTHOR Martin Peach;
#X text 12 5 KEYWORDS control network;
#X text 12 45 DESCRIPTION receive datagrams over a udp connection and
outputs them as raw bytes;
#X text 12 75 INLET_0 status port;
#X text 12 95 OUTLET_0 anything;
#X text 12 115 OUTLET_1 received total from multicast;
#X restore 657 396 pd META;
#X connect 4 0 17 0;
#X connect 4 1 20 0;
#X connect 6 0 0 0;
#X connect 6 1 1 0;
#X connect 6 2 2 0;
#X connect 6 3 3 0;
#X connect 6 4 5 0;
#X connect 7 0 4 0;
#X connect 17 0 19 0;
#X connect 18 0 17 1;
#X connect 20 0 8 0;
#X connect 20 1 10 0;
#X connect 20 2 6 0;
#X connect 20 3 9 0;
#X connect 22 0 4 0;

@ -0,0 +1,88 @@
#N canvas 221 129 767 415 10;
#N canvas 874 257 494 344 META 0;
#X text 12 155 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan
Wilkes for Pd version 0.42.;
#X text 12 25 LICENSE GPL v2 or later;
#X text 12 135 AUTHOR Martin Peach;
#X text 12 5 KEYWORDS control network;
#X text 12 45 DESCRIPTION receive datagrams over a udp connection and
outputs them as a signal;
#X restore 695 379 pd META;
#X obj 522 267 print udpreceive~;
#X symbolatom 177 354 10 0 0 0 - - -;
#X floatatom 211 288 5 0 0 0 - - -;
#X floatatom 246 267 7 0 0 0 - - -;
#X floatatom 280 332 9 0 0 0 - - -;
#X obj 177 313 prepend set;
#X text 147 287 channels:;
#X text 131 353 format:;
#X text 231 331 bitrate:;
#X text 182 266 framesize:;
#X floatatom 315 289 9 0 0 0 - - -;
#X floatatom 349 267 9 0 0 0 - - -;
#X floatatom 384 310 5 0 0 0 - - -;
#X floatatom 418 289 5 0 0 0 - - -;
#X text 258 288 overflow:;
#X text 289 266 underflow:;
#X text 323 309 queuesize:;
#X text 370 288 average:;
#X msg 35 58 info;
#X msg 15 38 reset;
#X text 68 57 status info to rightmost outlet;
#X text 53 37 reset underflow & overflow counters;
#X floatatom 210 169 3 0 0 0 - - -;
#X floatatom 233 169 3 0 0 0 - - -;
#X floatatom 256 169 3 0 0 0 - - -;
#X floatatom 279 169 3 0 0 0 - - -;
#X floatatom 303 169 5 0 0 0 - - -;
#X obj 210 143 unpack 0 0 0 0 0;
#X text 173 168 from:;
#X obj 82 152 dac~ 1 2;
#X floatatom 453 332 9 0 0 0 - - -;
#X text 401 331 packets:;
#X text 348 142 To communicate \, a [udpreceive~] and [udpsend~] pair
must have the same number of channels and the same blocksize. Also
[udpsend~] must [connect( to the port on which [udpreceive~] is listening.
;
#X msg 56 79 buffer 2;
#X text 118 78 set number of frames to buffer before playback;
#X obj 177 230 route format channels framesize bitrate overflow underflow
queuesize average packets tag_errors;
#X floatatom 487 310 9 0 0 0 - - -;
#X text 421 309 tag errors:;
#X obj 144 181 env~;
#X floatatom 144 204 9 0 0 0 - - -;
#X text 204 193 The rightmost signal outlet outputs 1 if the stream
is valid \, else 0;
#X text 420 77 Arguments: port \, channels \, blocksize \, multicast_address.
Blocksize should match [udpsend~]. multicast_address is optional. Arguments
must be in that order.;
#X obj 81 121 udpreceive~ 9999 2 512;
#X text 221 120 receives 2 channels on port 9999 Same blocksize as
udpsend~;
#X connect 6 0 2 0;
#X connect 19 0 43 0;
#X connect 20 0 43 0;
#X connect 28 0 23 0;
#X connect 28 1 24 0;
#X connect 28 2 25 0;
#X connect 28 3 26 0;
#X connect 28 4 27 0;
#X connect 34 0 43 0;
#X connect 36 0 6 0;
#X connect 36 1 3 0;
#X connect 36 2 4 0;
#X connect 36 3 5 0;
#X connect 36 4 11 0;
#X connect 36 5 12 0;
#X connect 36 6 13 0;
#X connect 36 7 14 0;
#X connect 36 8 31 0;
#X connect 36 9 37 0;
#X connect 36 10 1 0;
#X connect 39 0 40 0;
#X connect 43 0 30 0;
#X connect 43 1 30 1;
#X connect 43 2 39 0;
#X connect 43 3 36 0;
#X connect 43 4 28 0;

@ -0,0 +1,72 @@
#N canvas 1 53 898 550 12;
#X msg 198 118 disconnect;
#X msg 17 -63 connect 127.0.0.1 9997;
#X obj 455 418 tgl 15 0 empty empty connected 20 7 0 8 -24198 -241291
-1 0 1;
#X msg 39 -41 send 0 1 2 3;
#X text 150 395 udpsend sends bytes over a udp connection.;
#X text 227 445 Used in conjunction with packOSC will send OSC over
udp;
#X obj 455 395 udpsend;
#X msg 61 -19 send examples/test.txt;
#X obj 131 27 openpanel;
#X msg 131 51 send \$1;
#X obj 131 8 bng 15 250 50 0 empty empty empty 17 7 0 10 -24198 -241291
-1;
#X text -28 -18 send a file;
#X text 137 -42 send raw data;
#X text 151 7 ...any file;
#X msg 164 84 99 98 97;
#X text 229 84 'send' prefix is optional;
#X msg 301 221 multicast_interface 192.168.0.88;
#X msg 276 196 multicast_interface eth1;
#X msg 228 148 connect 239.200.200.200 9977;
#X text 181 -64 <--first connect to a host and port;
#X text 279 117 <--disconnect before connecting to another address
;
#X text 439 147 send to a multicast address;
#X text 411 172 specify an interface to use with multicast;
#X msg 253 173 multicast_interface 1;
#X text 461 195 by index \, name or address;
#X floatatom 393 246 5 0 256 0 - - -;
#X obj 375 269 f 1;
#X obj 375 249 bng 15 250 50 0 empty empty empty 17 7 0 10 -4034 -1
-1;
#X text 240 270 set multicast ttl:;
#X msg 375 295 multicast_ttl \$1;
#X text 645 408 Martin Peach 2010/08/02;
#X msg 425 345 multicast_loopback \$1;
#X obj 425 323 tgl 15 0 empty empty empty 20 7 0 8 -24198 -241291 -1
0 1;
#X text 236 321 enable multicast loopback:;
#N canvas 529 111 494 344 META 0;
#X text 12 155 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan
Wilkes for Pd version 0.42.;
#X text 12 25 LICENSE GPL v2 or later;
#X text 12 135 AUTHOR Martin Peach;
#X text 12 5 KEYWORDS control network;
#X text 12 115 OUTLET_0 float;
#X text 12 45 DESCRIPTION used in conjunction with packOSC - will send
OSC over udp;
#X text 12 75 INLET_0 connect send list disconnect multicast_interface
multicast_ttl multicast_loopback;
#X restore 798 452 pd META;
#X connect 0 0 6 0;
#X connect 1 0 6 0;
#X connect 3 0 6 0;
#X connect 6 0 2 0;
#X connect 7 0 6 0;
#X connect 8 0 9 0;
#X connect 9 0 6 0;
#X connect 10 0 8 0;
#X connect 14 0 6 0;
#X connect 16 0 6 0;
#X connect 17 0 6 0;
#X connect 18 0 6 0;
#X connect 23 0 6 0;
#X connect 25 0 26 1;
#X connect 26 0 29 0;
#X connect 27 0 26 0;
#X connect 29 0 6 0;
#X connect 31 0 6 0;
#X connect 32 0 31 0;

@ -0,0 +1,225 @@
#N canvas 1 53 785 621 10;
#X obj -178 225 osc~ 440;
#X msg -398 60 disconnect;
#X msg -353 105 format float;
#X msg -332 126 format 16bit;
#X msg -311 147 format 8bit;
#X msg -440 18 connect localhost 8008;
#X text -244 103 float is the most expensive with the best resolution
(32bit) \, default is float;
#X msg -419 39 connect 255.255.255.255 8008;
#X obj 52 687 print udpreceive~;
#X obj 224 369 print udpsend~;
#X obj -178 320 tgl 15 0 empty empty empty 17 7 0 10 -4034 -1 -1 0
1;
#X symbolatom -97 435 10 0 0 0 - - -;
#X floatatom -44 369 5 0 0 0 - - -;
#X floatatom 10 391 9 0 0 0 - - -;
#X floatatom 63 411 9 0 0 0 - - -;
#X symbolatom 117 390 10 0 0 0 - - -;
#X obj -97 411 prepend set;
#X obj 117 367 prepend set;
#X text -102 368 channels:;
#X text -144 442 format:;
#X text 13 411 bitrate:;
#X text -51 391 framesize:;
#X text 98 389 to:;
#X msg -216 242 info;
#X symbolatom -293 774 10 0 0 0 - - -;
#X floatatom -259 708 5 0 0 0 - - -;
#X floatatom -224 687 7 0 0 0 - - -;
#X floatatom -190 752 9 0 0 0 - - -;
#X obj -293 733 prepend set;
#X text -323 707 channels:;
#X text -339 773 format:;
#X text -239 751 bitrate:;
#X text -288 686 framesize:;
#X floatatom -155 709 9 0 0 0 - - -;
#X floatatom -121 687 9 0 0 0 - - -;
#X floatatom -86 730 5 0 0 0 - - -;
#X floatatom -52 709 5 0 0 0 - - -;
#X text -212 708 overflow:;
#X text -181 686 underflow:;
#X text -147 729 queuesize:;
#X text -100 708 average:;
#X msg -435 478 info;
#X text -237 34 broadcast to everybody on your local subnet listening
on the specified port;
#X msg -455 458 reset;
#X text -402 477 status info to rightmost outlet;
#X text -415 241 status info to rightmost outlet;
#X text -417 457 reset underflow & overflow counters;
#X floatatom -260 589 3 0 0 0 - - -;
#X floatatom -237 589 3 0 0 0 - - -;
#X floatatom -214 589 3 0 0 0 - - -;
#X floatatom -191 589 3 0 0 0 - - -;
#X floatatom -167 589 5 0 0 0 - - -;
#X obj -260 563 unpack 0 0 0 0 0;
#X text -297 588 from:;
#X obj -179 268 *~;
#X floatatom -124 150 5 0 0 0 - - -;
#X text -66 148 Framesize = (blocksize) X (number of channels) X (bytes
per sample);
#X obj -97 339 route format channels framesize bitrate ipaddr vecsize
;
#X floatatom 170 430 9 0 0 0 - - -;
#X text 70 430 dsp vector size:;
#X msg -258 200 channels \$1;
#X obj -412 185 hradio 15 1 0 4 empty empty empty 0 -8 0 10 -4034 -1
-1 0;
#X obj -178 297 udpsend~ 2 512;
#X text -88 296 sends 2 dsp-channels using 512-sample blocks;
#X obj -388 572 dac~ 1 2;
#X text 68 448 (blocksize must be a multiple of this);
#X text -160 318 1 = transmitting;
#X obj -97 246 noise~;
#X obj -98 268 *~;
#X obj -124 170 / 100;
#X text -455 343 Based on: [netreceive~] and [netsend~]by Olaf Matthes
;
#X floatatom -17 752 9 0 0 0 - - -;
#X text -69 751 packets:;
#X text -50 177 Default blocksize is 2048 The number of samples per
block must be an integer multiple of the number of samples in one signal
vector.;
#X text -28 225 Arguments: (1st required \, 2nd optional) 1:number
of channels to send. 2:blocksize = number of samples per channel per
frame. (Blocksize of sender and receiver must be the same.);
#X text -122 562 To communicate \, a [udpreceive~] and [udpsend~] pair
must have the same number of channels and the same blocksize. Also
[udpsend~] must [connect( to the port on which [udpreceive~] is listening.
;
#X text -329 59 stop transmitting;
#X text -355 76 format defines the resolution of the sent signal and
may be changed on-the-fly;
#X text -450 200 number of channels to transmit;
#X msg -414 499 buffer 2;
#X text -352 498 set number of frames to buffer before playback;
#X text -458 368 [udpsend~] transmits dsp vectors ("audio") via UDP.
UDP is a connectionless protocol \, so [udpsend~] will transmit even
if nothing is receiving.;
#X text -299 18 connect to <hostname> <port> and begin transmitting
;
#X text -456 313 [udpreceive~] and [udpsend~];
#X text -249 540 receives 2 channels on port 8008 Same blocksize as
udpsend~;
#X floatatom -412 216 5 0 0 0 - - -;
#X obj -288 172 tgl 15 0 empty empty toggle_connection 17 7 0 10 -4034
-1 -1 0 1;
#X obj -293 650 route format channels framesize bitrate overflow underflow
queuesize average packets tag_errors;
#X floatatom 17 730 9 0 0 0 - - -;
#X text -49 729 tag errors:;
#X obj -326 601 env~;
#X floatatom -326 624 9 0 0 0 - - -;
#X text -266 613 The rightmost signal outlet outputs 1 if the stream
is valid \, else 0;
#N canvas 27 271 657 334 multicast 0;
#X msg 91 87 multicast_interface 192.168.0.88;
#X msg 66 62 multicast_interface eth1;
#X text 229 13 send to a multicast address;
#X text 201 38 specify an interface to use with multicast;
#X msg 43 39 multicast_interface 1;
#X text 251 61 by index \, name or address;
#X floatatom 183 112 5 0 256 0 - - -;
#X obj 165 135 f 1;
#X obj 165 115 bng 15 250 50 0 empty empty empty 17 7 0 10 -4034 -1
-1;
#X text 17 136 set multicast ttl:;
#X msg 165 161 multicast_ttl \$1;
#X msg 215 211 multicast_loopback \$1;
#X obj 215 189 tgl 15 0 empty empty empty 20 7 0 8 -24198 -241291 -1
0 1;
#X text 26 187 enable multicast loopback:;
#X obj 244 257 outlet;
#X msg 18 14 connect 239.200.200.200 8008;
#X text 262 278 [udpreceive~ 8008 2 512 239.200.200.200];
#X text -70 278 Will be received by any udpreceive~ declared like this:
;
#X text 347 295 (2 and 512 may be changed);
#X connect 0 0 14 0;
#X connect 1 0 14 0;
#X connect 4 0 14 0;
#X connect 6 0 7 1;
#X connect 7 0 10 0;
#X connect 8 0 7 0;
#X connect 10 0 14 0;
#X connect 11 0 14 0;
#X connect 12 0 11 0;
#X connect 15 0 14 0;
#X restore -347 280 pd multicast;
#X obj -389 541 udpreceive~ 8008 2 512;
#X text -50 497 Arguments: port \, channels \, blocksize \, multicast_address.
Blocksize should match [udpsend~]. multicast_address is optional. Arguments
must be in that order.;
#X text -455 328 Author: Martin Peach 2010/10/28;
#N canvas 529 111 494 344 META 0;
#X text 12 175 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan
Wilkes for Pd version 0.42.;
#X text 12 25 LICENSE GPL v2 or later;
#X text 12 155 AUTHOR Martin Peach;
#X text 12 5 KEYWORDS control network;
#X text 12 45 DESCRIPTION transmit dsp vectors ("audio") via UDP;
#X text 12 65 INLET_0 signal connect disconnect format channels info
multicast_interface multicast_ttl multicast_loopback;
#X text 12 95 INLET_1 signal;
#X text 12 115 OUTLET_0 float;
#X text 12 135 OUTLET_1 format channels framesize bitrate ipaddr vecsize
;
#X restore 248 760 pd META;
#X connect 0 0 54 0;
#X connect 1 0 62 0;
#X connect 2 0 62 0;
#X connect 3 0 62 0;
#X connect 4 0 62 0;
#X connect 5 0 62 0;
#X connect 7 0 62 0;
#X connect 16 0 11 0;
#X connect 17 0 15 0;
#X connect 23 0 62 0;
#X connect 28 0 24 0;
#X connect 41 0 94 0;
#X connect 43 0 94 0;
#X connect 52 0 47 0;
#X connect 52 1 48 0;
#X connect 52 2 49 0;
#X connect 52 3 50 0;
#X connect 52 4 51 0;
#X connect 54 0 62 0;
#X connect 55 0 69 0;
#X connect 57 0 16 0;
#X connect 57 1 12 0;
#X connect 57 2 13 0;
#X connect 57 3 14 0;
#X connect 57 4 17 0;
#X connect 57 5 58 0;
#X connect 57 6 9 0;
#X connect 60 0 62 0;
#X connect 61 0 60 0;
#X connect 61 0 85 0;
#X connect 62 0 10 0;
#X connect 62 1 57 0;
#X connect 67 0 68 0;
#X connect 68 0 62 1;
#X connect 69 0 54 1;
#X connect 69 0 68 1;
#X connect 79 0 94 0;
#X connect 86 0 62 0;
#X connect 87 0 28 0;
#X connect 87 1 25 0;
#X connect 87 2 26 0;
#X connect 87 3 27 0;
#X connect 87 4 33 0;
#X connect 87 5 34 0;
#X connect 87 6 35 0;
#X connect 87 7 36 0;
#X connect 87 8 71 0;
#X connect 87 9 88 0;
#X connect 87 10 8 0;
#X connect 90 0 91 0;
#X connect 93 0 62 0;
#X connect 94 0 64 0;
#X connect 94 1 64 1;
#X connect 94 2 90 0;
#X connect 94 3 87 0;
#X connect 94 4 52 0;

@ -0,0 +1,16 @@
OpenSoundControl for Pure data
Copyright (C) 2006-2011 Martin Peach
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.

@ -0,0 +1,38 @@
OpenSoundControl (OSC) for Pd
=============================
a collection of Pd objectclasses for OSC-messages.
these objects only convert between Pd-messages and OSC-messages (binary format),
so you will need a separate set of objects that implement the transport
(OSI-Layer 4), for instance [udpsend]/[udpreceive] for sending OSC over UDP.
Author: Martin Peach
objectclasses
- [packOSC]
convert a Pd-message to an OSC (binary) message
(useful if you want to transmit OSC over UDP or other protocols that
have the concept of variable length packets)
- [unpackOSC]
convert an OSC (binary) message to a Pd-message
(useful if you want to transmit OSC over UDP or other protocols that
have the concept of variable length packets)
- [routeOSC]
route OSC-like Pd-messages according to the first element in the path
- [pipelist]
delay lists
(useful if you want to respect timestamps)
- [packOSCstream]
convert a Pd-message to an OSC (binary) message suitable for streaming transport
(useful if you want to transmit OSC over TCP/IP or a serial line)
- [unpackOSCstream]
convert an OSC (binary) message suitable for streaming transport to a Pd-message
(useful if you want to transmit OSC over TCP/IP or a serial line)

@ -0,0 +1,7 @@
#N canvas 18 212 200 200 10;
#N canvas 28 50 420 300 META 1;
#X text 13 61 NAME OSC;
#X text 13 85 VERSION 0.2;
#X text 13 129 AUTHOR Martin Peach;
#X text 19 189 NOTE:;
#X restore 10 10 pd META;

@ -0,0 +1,113 @@
#N canvas 1 53 1141 651 12;
#X obj 301 434 cnv 15 100 40 empty empty empty 20 12 0 14 -4034 -66577
0;
#X obj 330 548 udpsend;
#X msg 323 521 disconnect;
#X msg 301 499 connect 127.0.0.1 9997;
#X obj 330 447 packOSC;
#X obj 330 583 tgl 15 0 empty empty 1=connected 20 8 0 8 -4034 -257985
-1 0 1;
#X msg -130 -33 send /test/one/two/three zz 88 T;
#X msg -84 13 send /test 1 2 3;
#X msg -107 -10 send /west 35;
#X msg -38 59 send /*/left 22;
#X msg -13 84 send /?est/ 1;
#X text 293 13 packOSC is like sendOSC except that it outputs a list
of floats instead of directly connecting to the network;
#X text 103 -33 send a type-guessed message;
#X obj 515 541 routeOSC;
#X text 436 540 see also:;
#X msg 318 415 typetags \$1;
#X obj 318 397 tgl 15 0 empty empty empty 17 7 0 10 -257985 -258113
-1 0 1;
#X text 401 414 typetags are on by default;
#X text 529 107 Useable types are:;
#X text 529 125 i: 32 bit integer;
#X text 529 143 f: 32-bit float;
#X text 529 161 s: string;
#X text 310 107 send a type-forced message;
#X msg 10 107 sendtyped /test/one/two/three sis zz 88 T;
#X msg 33 130 sendtyped /left/right TTiTIFNfisf 1.1 2.1 3.1 4.1 5.1
;
#X text 529 179 T: true (no argument);
#X text 529 197 F: false (no argument);
#X text 529 215 I: infinitum (no argument);
#X text 529 232 N: Nil (no argument);
#X msg 277 374 bufsize 100;
#X text 364 374 set buffer size (default is 64000 bytes);
#X msg 79 176 prefix /test;
#X text 174 175 set the OSC path prefix for subsequent messages;
#X msg -61 36 /left one two;
#X msg 56 153 /right 88;
#X text 129 153 'send' prefix is not required;
#X msg 55 209 [;
#X msg 9 210 ];
#X text -81 211 close bundle;
#X msg 157 254 timetagoffset 0;
#X msg 180 277 timetagoffset -1;
#X text 270 254 send current time as timetag;
#X text 135 229 (timetags are sent in bundle messages only);
#X obj 9 186 t b a b;
#X msg -90 166 /test 5 6 7;
#X text 301 277 immediate time tag (default);
#X floatatom 376 476 5 0 0 0 - - -;
#X text 426 476 bundle depth;
#X obj 469 499 cnv 15 380 30 empty empty empty 20 12 0 14 -24198 -66577
0;
#X text 597 540 and http://opensoundcontrol.org/cnmat;
#X msg 203 300 timetagoffset 1e+06;
#X text 473 506 <- First open routeOSC-help \, then connect;
#X text 85 210 open a bundle (and generate time tag);
#X obj 418 568 packOSCstream;
#X text 383 567 see:;
#X text 518 568 for a way to send OSC over TCP or serial connections.
;
#X text 353 299 current time plus 1 second (delay is in microseconds)
;
#X text -75 570 2009_06_08 Martin Peach;
#X text 529 248 b: blob (a list of bytes \, or floats on [0..255])
;
#X text 659 341 send a blob;
#X msg 253 334 sendtyped /left b 0 1 2 3 124 125 126 127 128 129 255
254 253 252 -14 -15 -16 17 18 19 20 21 22 23 24 25 26 27 28;
#N canvas 497 62 494 344 META 0;
#X text 12 185 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan
Wilkes for Pd version 0.42.;
#X text 12 25 LICENSE GPL v2 or later;
#X text 12 165 AUTHOR Martin Peach;
#X text 12 5 KEYWORDS control network;
#X text 12 45 DESCRIPTION packOSC is like sendOSC except it outputs
a list of floats instead of directly connecting to the network;
#X text 12 85 INLET_0 anything send sendtyped prefix timetagoffset
bufsize typetags;
#X text 12 125 OUTLET_0 anything;
#X text 12 145 OUTLET_1 float;
#X restore 832 595 pd META;
#X connect 1 0 5 0;
#X connect 2 0 1 0;
#X connect 3 0 1 0;
#X connect 4 0 1 0;
#X connect 4 1 46 0;
#X connect 6 0 4 0;
#X connect 7 0 4 0;
#X connect 8 0 4 0;
#X connect 9 0 4 0;
#X connect 10 0 4 0;
#X connect 15 0 4 0;
#X connect 16 0 15 0;
#X connect 23 0 4 0;
#X connect 24 0 4 0;
#X connect 29 0 4 0;
#X connect 31 0 4 0;
#X connect 33 0 4 0;
#X connect 34 0 4 0;
#X connect 36 0 4 0;
#X connect 37 0 4 0;
#X connect 39 0 4 0;
#X connect 40 0 4 0;
#X connect 43 0 37 0;
#X connect 43 1 4 0;
#X connect 43 2 36 0;
#X connect 44 0 43 0;
#X connect 50 0 4 0;
#X connect 60 0 4 0;

@ -0,0 +1,56 @@
#N canvas 1 53 609 569 10;
#X obj 69 119 packOSCstream;
#X obj 69 451 tcpsend;
#X text -24 496 check also:;
#X obj -22 513 unpackOSCstream;
#X obj 93 513 packOSC;
#X msg 38 403 connect localhost 9995;
#X obj 208 513 tcpreceive;
#X obj 151 513 tcpsend;
#X obj 286 513 tcpserver;
#X obj 357 513 tcpclient;
#X msg 58 423 disconnect;
#X obj 69 473 tgl 15 0 empty empty empty 17 7 0 10 -4034 -257985 -1
0 1;
#X obj 181 403 cnv 15 380 30 empty empty empty 20 12 0 14 -24198 -66577
0;
#X text 196 408 <- First open unpackOSCstream-help \, then connect
;
#X text 440 501 Author: Roman Haefeli;
#X text 440 517 Version: 2008-09-09;
#X text 74 254 [packOSCstream] uses the same methods as [packOSC].
Please consult packOSC-help.pd for the complete documentation.;
#X text 75 189 [packOSstream] puts a frame length header (int32) in
front of every OSC packet or bundle \, so that the receiving side knows
\, how to split the incoming stream into OSC packets again.;
#X msg -24 9 /first/message 1 \, /second/message 2;
#X text 79 330 reference:;
#X text 80 347 http://archive.cnmat.berkeley.edu/OpenSoundControl/OSC-spec.html
: Section "OSC Packets";
#X msg -4 29 send /test/one/two/three zz 88 T;
#X msg 16 49 sendtyped /test/one/two/three sis zz 88 T;
#X msg 36 69 prefix /test;
#X msg 56 89 [ \, /previous/page 666 \, /next/page 999 \, ];
#X text 72 142 [packOSCstream] is meant to be a replacement for [packOSC]
\, when sending over a stream based protocol \, such as TCP.;
#N canvas 499 120 494 344 META 0;
#X text 12 135 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan
Wilkes for Pd version 0.42.;
#X text 12 25 LICENSE GPL v2 or later;
#X text 12 115 AUTHOR Roman Haefeli;
#X text 12 75 INLET_0 anything send sendtyped prefix connect disconnect
;
#X text 12 45 DESCRIPTION meant to be a replacement for [packOSC] \,
when sending over a stream based protocol \, such as TCP;
#X text 12 95 OUTLET_0 float;
#X text 12 5 KEYWORDS control network abstraction;
#X restore 532 544 pd META;
#X connect 0 0 1 0;
#X connect 1 0 11 0;
#X connect 5 0 1 0;
#X connect 10 0 1 0;
#X connect 18 0 0 0;
#X connect 21 0 0 0;
#X connect 22 0 0 0;
#X connect 23 0 0 0;
#X connect 24 0 0 0;

@ -0,0 +1,12 @@
#N canvas 642 471 204 215 10;
#X obj 9 35 packOSC;
#X obj 9 14 inlet;
#X obj 9 139 outlet;
#X text 36 157 Author: Roman Haefeli;
#X obj 135 139 outlet;
#X obj 9 80 mrpeach/slipenc 65536;
#X text 36 173 version: 2011-02-01;
#X connect 0 0 5 0;
#X connect 0 1 4 0;
#X connect 1 0 0 0;
#X connect 5 0 2 0;

@ -0,0 +1,50 @@
#N canvas 1 53 558 300 10;
#X obj 112 129 pipelist 1000;
#X msg 198 83 5000;
#X floatatom 198 107 5 0 0 0 - - -;
#X floatatom 222 42 5 0 0 0 - - -;
#X floatatom 181 42 5 0 0 0 - - -;
#X obj 112 62 pack s s 3 4 5;
#X obj 112 0 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X msg 135 -1 tik;
#X msg 57 13 alpha;
#X msg 50 41 beta;
#X floatatom 63 90 5 0 0 0 - - -;
#X obj 112 196 print;
#X obj 130 107 symbol;
#X msg 135 83 bb;
#X text 195 1 pipelist delays lists.;
#X text 237 106 Delay time is in milliseconds.;
#X text 208 131 Argument sets initial delay time.;
#X text 242 218 2007/07/11 Martin Peach;
#X text 229 182 see also:;
#X obj 305 183 pipe;
#X obj 339 183 delay;
#X obj 379 183 timer;
#X obj 135 21 symbol;
#N canvas 500 149 494 344 META 0;
#X text 12 145 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan
Wilkes for Pd version 0.42.;
#X text 12 25 LICENSE GPL v2 or later;
#X text 12 125 AUTHOR Roman Haefeli;
#X text 12 5 KEYWORDS control list_op;
#X text 12 45 DESCRIPTION delay lists;
#X text 12 65 INLET_0 anything;
#X text 12 85 INLET_1 float;
#X text 12 105 OUTLET_0 list;
#X restore 492 265 pd META;
#X connect 0 0 11 0;
#X connect 1 0 2 0;
#X connect 2 0 0 1;
#X connect 3 0 5 4;
#X connect 4 0 5 3;
#X connect 5 0 0 0;
#X connect 6 0 5 0;
#X connect 7 0 22 0;
#X connect 8 0 5 0;
#X connect 9 0 5 0;
#X connect 10 0 0 0;
#X connect 12 0 0 0;
#X connect 13 0 12 0;
#X connect 22 0 5 1;

@ -0,0 +1,112 @@
#N canvas 156 138 996 758 12;
#X declare -lib mrpeach;
#X obj -34 554 cnv 15 820 130 empty empty empty 20 12 0 14 -261207
-66577 0;
#X obj -76 40 udpreceive 9997;
#X floatatom 91 111 3 0 0 0 - - -;
#X floatatom 118 111 3 0 0 0 - - -;
#X floatatom 145 111 3 0 0 0 - - -;
#X floatatom 172 111 3 0 0 0 - - -;
#X text 51 110 from;
#X obj -76 164 unpackOSC;
#X text 324 108 see also:;
#X obj 396 109 packOSC;
#X floatatom 483 184 10 0 0 1 millisecond_delay - -;
#X obj -76 191 pipelist;
#X text 484 559 arguments are OSC addresses to be routed;
#X text 43 707 see:;
#X text 190 708 for a way to send OSC over TCP or serial connections.
;
#X obj 78 708 unpackOSCstream;
#X obj -110 218 print unpacked;
#X obj 91 87 unpack 0 0 0 0 0;
#X floatatom 200 111 8 0 0 0 - - -;
#X obj 26 64 route received from;
#X floatatom 26 132 5 0 0 0 - - -;
#X text 66 132 bytes;
#X text 43 40 Open [packOSC-help] to send packets to this patch.;
#X text -6 186 If the OSC packet has a timetag \, [pipelist] will delay
it until the time occurs;
#X obj 272 653 print match_1;
#X obj 338 631 print match_2;
#X obj 472 587 print no_match;
#N canvas 500 255 494 344 META 0;
#X text 12 155 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan
Wilkes for Pd version 0.42.;
#X text 12 25 LICENSE GPL v2 or later;
#X text 12 5 KEYWORDS control list_op;
#X text 12 75 INLET_0 list verbosity paths set;
#X text 12 95 OUTLET_N list;
#X text 12 115 OUTLET_R list;
#X text 12 135 AUTHOR Martin Peach;
#X text 12 45 DESCRIPTION routes lists as OSC packets.;
#X restore 788 685 pd META;
#X obj -7 8 import mrpeach;
#X text 612 657 2012/03/13 Martin Peach;
#X text -5 149 [unpackOSC] parses lists of floats (only integers on
[0..255]) as OSC packets.;
#X obj -34 249 cnv 15 600 160 empty empty empty 20 12 0 14 -204786
-66577 0;
#X obj 127 412 cnv 15 600 140 empty empty empty 20 12 0 14 -261234
-66577 0;
#X msg 76 343 set /left;
#X msg 53 320 set /left /right;
#X text 181 341 (but new outlets can't be created);
#X msg 27 294 paths;
#X msg 4 271 verbosity \$1;
#X obj 4 253 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1 1
;
#X text 22 249 set to 1 for debugging;
#X text 233 365 routeOSC will match deep paths;
#X text 177 319 [set( reassigns outputs from left to right;
#X text 81 294 [paths( will print the current OSC addresses to Pd console
;
#X msg 145 412 /test any2 4 5;
#X msg 257 524 1 2 3;
#X msg 99 366 set /one/two/three;
#X msg 122 389 set /*;
#X text 175 388 this will match any OSC message;
#X msg 212 479 /* zap!;
#X msg 235 502 zorro trope;
#X text 323 502 not a valid OSC message;
#X text 301 523 not a valid OSC message;
#X text 260 412 input is a message whose selector is an OSC path;
#X text 352 434 or a list whose first element is an OSC path;
#X obj 405 609 print match_3;
#X obj 272 559 routeOSC /test /west /one/two;
#X msg 189 456 /one/two/three yikes!;
#X msg 167 434 list /west/rate any1 2 3;
#X text -34 586 [routeOSC] routes Open Sound Control* messages \, or
lists of anything beginning with a /path;
#X text -32 629 *See http://opensoundcontrol.org/spec-1_0;
#X connect 1 0 7 0;
#X connect 1 1 19 0;
#X connect 7 0 11 0;
#X connect 7 0 16 0;
#X connect 7 1 10 0;
#X connect 7 1 11 1;
#X connect 11 0 55 0;
#X connect 17 0 2 0;
#X connect 17 1 3 0;
#X connect 17 2 4 0;
#X connect 17 3 5 0;
#X connect 17 4 18 0;
#X connect 19 0 20 0;
#X connect 19 1 17 0;
#X connect 33 0 55 0;
#X connect 34 0 55 0;
#X connect 36 0 55 0;
#X connect 37 0 55 0;
#X connect 38 0 37 0;
#X connect 43 0 55 0;
#X connect 44 0 55 0;
#X connect 45 0 55 0;
#X connect 46 0 55 0;
#X connect 48 0 55 0;
#X connect 49 0 55 0;
#X connect 55 0 24 0;
#X connect 55 1 25 0;
#X connect 55 2 54 0;
#X connect 55 3 26 0;
#X connect 56 0 55 0;
#X connect 57 0 55 0;

@ -0,0 +1,38 @@
#N canvas 1 53 638 435 10;
#X text 8 369 check also:;
#X obj 240 386 tcpreceive;
#X obj 183 386 tcpsend;
#X obj 318 386 tcpserver;
#X obj 389 386 tcpclient;
#X text 472 374 Author: Roman Haefeli;
#X text 472 390 Version: 2008-09-09;
#X text 158 65 [unpackOSCstream] is meant to be a replacement for [unpackOSC]
\, when receiving from a stream based protocol \, such as TCP.;
#X obj 18 197 unpackOSCstream;
#X obj 18 17 tcpreceive 9995;
#X obj 18 222 print;
#X floatatom 105 221 5 0 0 0 - - -;
#X text 159 283 reference:;
#X obj 10 386 packOSCstream;
#X obj 110 386 unpackOSC;
#X text 160 300 http://archive.cnmat.berkeley.edu/OpenSoundControl/OSC-spec.html
: Section "OSC Packets";
#X text 141 221 milliseconds delay;
#X text 158 119 [unpackOSCstream] will only be able to decode OSC packets
or bundles created by [packOSCstream]. OSC packets that were generated
by [packOSC] will cause errors or wrong output.;
#N canvas 507 340 494 344 META 0;
#X text 12 155 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan
Wilkes for Pd version 0.42.;
#X text 12 25 LICENSE GPL v2 or later;
#X text 12 5 KEYWORDS control network abstraction;
#X text 12 46 DESCRIPTION meant to be a replacement for [unpackOSC]
\, when receiving from a stream based protocol \, such as TCP.;
#X text 12 75 INLET_0 anything;
#X text 12 95 OUTLET_0 anything;
#X text 12 115 OUTLET_1 float;
#X text 12 135 AUTHOR Roman Haefeli;
#X restore 591 413 pd META;
#X connect 8 0 10 0;
#X connect 8 1 11 0;
#X connect 9 0 8 0;

@ -0,0 +1,12 @@
#N canvas 693 326 361 208 10;
#X obj 9 7 inlet;
#X obj 9 135 unpackOSC;
#X obj 9 158 outlet;
#X obj 60 158 outlet;
#X text 172 144 Author: Roman Haefeli;
#X text 172 160 Version: 2011-02-01;
#X obj 9 71 mrpeach/slipdec 65536;
#X connect 0 0 6 0;
#X connect 1 0 2 0;
#X connect 1 1 3 0;
#X connect 6 0 1 0;

File diff suppressed because it is too large Load Diff

@ -0,0 +1,32 @@
Metadata-Version: 1.1
Name: pyOSC
Version: 0.3.6-6382
Summary: Simple OpenSoundControl module in Pure Python
Home-page: http://trac.v2.nl/wiki/pyOSC
Author: Stock
Author-email: stock@v2.nl
License: GNU Lesser General Public License
Download-URL: http://pypi.python.org/packages/source/p/pyOSC
Description: Simple OpenSoundControl module in Pure Python. Replaces the 'SimpleOSC' module.
This implementation is intended to still be 'Simple' to the user, but much more complete
(with OSCServer & OSCClient classes) and much more powerful
(the OSCMultiClient supports subscriptions & message-filtering,
OSCMessage & OSCBundle are now proper container-types)
This is a 'Pure Python' implementation, intended to be simple and transparent.
If you ar looking for a FAST OSC-implementaion, try the 'pyliblo' package
Keywords: OSC,OpenSoundControl
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Artistic Software
Classifier: Topic :: Communications
Classifier: Topic :: Other/Nonlisted Topic
Classifier: Topic :: Scientific/Engineering :: Human Machine Interfaces
Classifier: Topic :: Scientific/Engineering :: Interface Engine/Protocol Translator
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: System :: Networking
Obsoletes: SimpleOSC

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>INSERT FLOPPY!!!</title>
<meta http-equiv="refresh" content="1; url=/" >
<link rel="stylesheet" href="404-style.css">
</head>
<body>
<h1>404 - FLOPPY NOT FOUND</h1>
</body>
</html>

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save