From 5b2b24c0579f5fbf03bd6bd6e7b1e9efd2433764 Mon Sep 17 00:00:00 2001 From: margreetriphagen Date: Fri, 24 Mar 2017 10:53:41 +0100 Subject: [PATCH] latest files margreet --- .DS_Store | Bin 0 -> 6148 bytes floppies/.DS_Store | Bin 0 -> 6148 bytes floppies/margreet/.DS_Store | Bin 0 -> 8196 bytes floppies/margreet/LICENSE.txt | 23 +++ floppies/margreet/README.txt | 17 ++ floppies/margreet/main.pd | 123 ++++++++++++++ floppies/margreet/main.py | 68 ++++++++ floppies/margreet/noweb/.DS_Store | Bin 0 -> 6148 bytes floppies/margreet/noweb/index.html | 236 ++++++++++++++++++++++++++ floppies/margreet/noweb/stemicoon.svg | 1 + 10 files changed, 468 insertions(+) create mode 100644 .DS_Store create mode 100644 floppies/.DS_Store create mode 100644 floppies/margreet/.DS_Store create mode 100644 floppies/margreet/LICENSE.txt create mode 100644 floppies/margreet/README.txt create mode 100644 floppies/margreet/main.pd create mode 100644 floppies/margreet/main.py create mode 100644 floppies/margreet/noweb/.DS_Store create mode 100644 floppies/margreet/noweb/index.html create mode 100644 floppies/margreet/noweb/stemicoon.svg diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..05d4c53a2c4abba10a30a6b9af47d5bffaf9464f GIT binary patch literal 6148 zcmeHKyG{c^3>-s>lW0;>?l15Mt0;Uyejo)TiWDUX1oc&X7oV2#Lx|`?6Nv_mC3|+g zo;}?Z=Q99Xygxkva{vR~5uYBW=I8DcyQz#3>Ad3wJ3Qm-z0V(jW6tLNHwOsI(s<%#F&UbS>(K_wwH#g!~!FGyM;t?dS5&^ZrL zO8+0DP}(QxrH_(ZXMbXnDy6ql%8Z!(W@l$c?6+c9O9-L;S=1%OC4@Mj3L7nGE)g}Z zv?dMf*#xAzMnPhDWVk5vS~NQTMF!N`IV2?kDaZtLy?$XLLKr&@^MseO)A>Og8_g?M zH=WisE$+=*&;6-b_%e{QvL6)BbdN`IXzgJjr)Tz4A(FKng!?>RjNChWB9j5n;^JKD z(E-mQvFM9g7L`Z7sdvC5IUTuohebSx)M1dt`@G~KPq;j8X&Jd&%Vl?GyUn`0y;Ykn zd%aGZ?QHL^R_g3Jacke%Z{Pg9kSq%ywu9n*t&)^#vHDZ!U*B^`2 zeB3ty zJRT?MToph;29N<{z%XF9KIb|Tf(#%7$iOcQsQrO~D)cN?2KCkfjlKc^Ho>h0Y;~7V zIn1JGu`&oFAk?G+np6ruFUGIa!Ov{pvsf84>4e(L2eoge_J%@DI-yL56Y3en78yVW zE;6uTx~@9^AOHUTe=!Mr$N)0%Uok+N1AowmDcQ5NHaT_HGSC;GN>p5BaGe5%K8hh$ e9mQLqTENeg0q9w*41xy)e*`oQ*dPOcm4Tn`YmgEE literal 0 HcmV?d00001 diff --git a/floppies/margreet/.DS_Store b/floppies/margreet/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..2c7195aceecf853e86af5f1f6f4d17919837c988 GIT binary patch literal 8196 zcmeHM%}(1u5FQsO0WR*JgxW)Wt%N8k6s{p82P8mIU7)B`sg2!aCC9en4S}Lax%AS9 z=%N3QQK@R5pqD-hw|=|pAVUZT4pmBbqTLzK&+g9W>^kERkx^`Ud7^0|%ApBvPN6%8 zgk7{gx|V88a0Br~8)Q?NW{J~5pSM?y+)RG{JazMmbDKDhFt2itmLxqB?P$Mld3>6N&mHHJ@ z-c?+MlaUr5Mmn>RRw#y?9phWlos5Fwy4MJ31o{yW+hvN@Xq8q_xo7Kl9&>lCmGCA! zmT8j`@~MgbA$mqJ)u{pb8C75_Lb4&1G0G~u#dtP8o6tO>DlBWz?%?VPJZp&O;2hE( z%|m)c0Yw-yhQ*h2G|0g`H8dX|;eF9MH_~+u$ON(DSgnK6L%f}c>2TtA0lr!yAh zGKMT7Y6BP7Z6~oCL@u<)ZXB?L&&~Zdu8oY2T_4X)OiD6u+y`)b!M!irKPzUYhiw|(=os0a`zrQUS8jc zJ8$2A`1tAbm#^P{AUTkcp8Rx6U7z$nA!Q&5YI%DvYQ)OE@aD9&5tT|_i|-NrI(~Ow z`eb4ok#~VLu4hLsh~P}@(0!#&udVlW%4koof8TC~K@`@Y6-ZBFtCq28OSBHIUg-_r zkuYeLy=>35BfGmeQrhwu;@C#wSc|Z!7!D$aBgui4NzE*-652=p2lRUA?(k)^=%I6| zc%Y~0N+2+zvX~b2e|hlx|0|KJPC_G~5jY&5VV!jowYG)!5>1fs>nbio w(8+QfT$bbDCw~}1w%{sa3Mua@4h`t /tmp/twittersonification.csv') #floppydisk +os.system('xzcat twittersonification.csv.xz > /tmp/twittersonification.csv') #lokaal + + + +then = None +with open('/tmp/twittersonification.csv', 'rU') as csvfile: + file = csv.DictReader(csvfile) + print ("2.opening file stderr", file=sys.stderr) + + #csv.DictReader(csvfile)(["time"] + ['time']) + i=0 + sleep_time=1 + for row in file: + print ("3.row stderr", file=sys.stderr) + + i+=1 + t = row['time'] + print ("4.time stderr", file=sys.stderr) + t = float(t) + now = datetime.fromtimestamp(t) #[]dictreader reads the rowheader + #print now, row + if then: + ti = (now-then).total_seconds() + #print ti/100 + sleep_time = ti/1000 + print ("5.msg stderr", file=sys.stderr) + + + #msg.append( row['text'].lower() ) + #client.send(msg) + #msg.clearData() + + if "#ikstem" in row['text'].lower() and '#gestemd' in row['text'].lower(): + msg.append( ['both', str(now)] ) + elif '#ikstem' in row['text'].lower(): + msg.append( ['#ikstem', str(now) ]) + elif '#gestemd' in row['text'].lower(): + msg.append( ['#gestemd', str(now)] ) + + # msg.append( [ str(row['text']) ] ) + + # send an osc message to pd + #print msg#[ i, row['text'], str(now)] + sleep(sleep_time) + client.send(msg) + msg.clearData() + then = now + print ("6.last print stderr", file=sys.stderr) diff --git a/floppies/margreet/noweb/.DS_Store b/floppies/margreet/noweb/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 GIT binary patch literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0 + + + + +twitter sonification + + +Sonification of the Dutch elections 2017 + + + +
+

Sonification of the Dutch elections 2017

+ +

In the run up to the 2017 general elections in the Netherlands last Wednesday, the 15 of March 2017, a lot of Twitter1 traffic was generated. Literally millions of tweets were send that day over the Internet.

+

+
+

The online political battle

+ +

En meteen is daar de tweet: #waarwasBuma2 +(And right after there was the tweet: #wherewasBuma)

+ +

This research is inspired on an article in the NRC (27 februari 2017) about the online political battle. Just like in the United States, parties attempt to reach voters through social media and to frame political opponents. The parties use social media more than ever this year’s elections. They try to convey their message to the unprecedented number of undecided voters and they try to frame opponents with catchy slogans or hashtags.

+ +

Seeing all these tweets passing so quickly it reminds me of a cascade of data, the starting point of a sonification3 to perceptualize this huge amount of data in a score.

+
+ +

Pushing the score

+ +

This sonifiction entails three kinds of scores; a) for the whole tweet, b) for the hashtag ikstem (#ikstem), and c) for the hashtag gestemd (#gestemd).

+ +

a) It captures tweets sed during the day of the elections, between 07.30 and 21.00, when the polling stations were open. In total there are 47613 tweets captured. Some examples of tweets send:

+ +

Ik wist niet wat ik moest stemmen, dus heb ik uiteindelijk maar een bootje gevouwen van het stembiljet #ikstem #tk2017 #gestemd https://t.co/KBqLBkYrpV

+ +

Grappig! RT @Mvan_berkel: In Leiden is rekening gehouden met zwevende kiezers. #ikstem #TweedeKamerverkiezingen https://t.co/Un8uJfNZ0v

+ +

Met volle trotst en vrolijkheid voor de eerste keer gaan stemmen vandaag #ikstem

+ +

b + c) A hash tag is used to streamline relevant topics by keyword or phrase by grouping them together to make it easier to find and follow tweets from people who are talking about the same thing. In this sonificatoin I used #ikstem and #gestemd. Both are given a different kind of sound.

+
+
+

Used hardware and software

+ +

Python , specific libraries: csv, os and OSC

+ +

Pure Data

+ +

RaspberryPi and Pi skin conductivity

+ +

Flyer: https://issue.xpub.nl/02/

+
+ +

References

+
+
+
    +
  1. +

    Twitter is an online news and social networking service where users post and interact with messages, “tweets,” restricted to 140 characters, (http://twitter.com).

  2. +
  3. +

    En meteen is daar de tweet: #waarwasBuma, De politieke strijd online, door Andreas Kouwenhoven & Hugo Logtenberg, 27 februari 2017, 21:05 (https://www.nrc.nl/nieuws/2017/02/27/en-meteen-is-daar-de-tweet-waarwasbuma-7033073-a1547979).

  4. +
  5. +

    Sonification is the use of non-speech audio to convey information or perceptualize data. Auditory perception (the sensory system for the sense of hearing) has advantages in temporal, spatial, amplitude, and frequency resolution that open possibilities as an alternative to visualization techniques.

  6. +
+
+ + + \ No newline at end of file diff --git a/floppies/margreet/noweb/stemicoon.svg b/floppies/margreet/noweb/stemicoon.svg new file mode 100644 index 0000000..3048c7e --- /dev/null +++ b/floppies/margreet/noweb/stemicoon.svg @@ -0,0 +1 @@ +Asset 11 \ No newline at end of file