merged to local machine

master
karina 8 years ago
commit ae519ff817

43
.gitignore vendored

@ -3,9 +3,39 @@
!/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/*/
@ -15,3 +45,16 @@
/usr/local/* /usr/local/*
!/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 @@
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.

@ -4,14 +4,18 @@
<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;">
<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>
</div> <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>
@ -15,6 +15,7 @@
<div id="canvasp5"></div> <div id="canvasp5"></div>
<div id="wrap"> <div id="wrap">
<div id="fine-line"> <div id="fine-line">
@ -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.

@ -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",
@ -17,33 +19,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,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>
Loading…
Cancel
Save