Mits's's Hackpact: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
Line 8: Line 8:


'''who has a body?'''
'''who has a body?'''
<p>
<br>
</br>
'''Python script: Re-using the prototype that joseph and manetta made for getting sounds from the freesound.org library. Obtaining all the sounds with the entry point "body"'''
'''Python script: Re-using the prototype that joseph and manetta made for getting sounds from the freesound.org library. Obtaining all the sounds with the entry point "body"'''


Line 18: Line 19:
client = freesound.FreesoundClient()
client = freesound.FreesoundClient()
client.set_token("I9hnJgZKfaxnWEz0YEwPcjjVYLYYuqBDnBBPUv5R","wZupevhDwA6jIfOgzUgn")
client.set_token("I9hnJgZKfaxnWEz0YEwPcjjVYLYYuqBDnBBPUv5R","wZupevhDwA6jIfOgzUgn")
<br></br>


def slowly(s):
def slowly(s):

Revision as of 15:29, 27 September 2022

It is just a toy .. phew

Scattered thoughts, desires and gestures that need to be united (a bit)

Reading and annotating Situated knowleges by Donna Harraway

pad experiment with body and embodiment in python

who has a body?

Python script: Re-using the prototype that joseph and manetta made for getting sounds from the freesound.org library. Obtaining all the sounds with the entry point "body"

import freesound import IPython.display as display import time import sys

client = freesound.FreesoundClient() client.set_token("I9hnJgZKfaxnWEz0YEwPcjjVYLYYuqBDnBBPUv5R","wZupevhDwA6jIfOgzUgn")



def slowly(s):

   for l in s + '\n':
       sys.stdout.write(l)
       sys.stdout.flush()
       time.sleep(1./100)

slowly("""

             ,---------------------------,
             |  /---------------------\  |
             | |  Hello,               | |
             | |  I am the famous      | |
             | |  foley artist bot!    | |
             | |  What should I play   | |
             | |  for you. Pls type!   | |
             |  \_____________________/  |
             |___________________________|
           ,---\_____     []     _______/------,
         /         /______________\           /|
       /___________________________________ /  | ___
       |                                   |   |    )
       |  _ _ _                 [-------]  |   |   (
       |  o o o                 [-------]  |  /    _)_
       |__________________________________ |/     /  /
   /-------------------------------------/|      ( )/
 /-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/ /

/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/ / 15:29, 27 September 2022 (CEST)15:29, 27 September 2022 (CEST)15:29, 27 September 2022 (CEST)15:29, 27 September 2022 (CEST)15:29, 27 September 2022 (CEST)15:29, 27 September 2022 (CEST)15:29, 27 September 2022 (CEST)Mitsa (talk) 15:29, 27 September 2022 (CEST) """)


search=input()

print("""

             ,---------------------------,
             |  /---------------------\  |
             | |  Great,               | |
             | |  I will play for you: | |
             | |  """+search[:20]+" "*(20-len(search))+"""  | |
             | |  BTW: Robots of the   | | 
             | |  the world unite <3   | |
             |  \_____________________/  |
             |___________________________|
           ,---\_____     []     _______/------,
         /         /______________\           /|
       /___________________________________ /  | ___
       |                                   |   |    )
       |  _ _ _                 [-------]  |   |   (
       |  o o o                 [-------]  |  /    _)_
       |__________________________________ |/     /  /
   /-------------------------------------/|      ( )/
 /-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/ /

/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/ / 15:29, 27 September 2022 (CEST)15:29, 27 September 2022 (CEST)15:29, 27 September 2022 (CEST)15:29, 27 September 2022 (CEST)15:29, 27 September 2022 (CEST)15:29, 27 September 2022 (CEST)15:29, 27 September 2022 (CEST)Mitsa (talk) 15:29, 27 September 2022 (CEST) """)


results = client.text_search(query=search,fields="id,name,previews,url") print(results) counter = 0 for sound in results:

   counter = counter + 1
   if counter == 20:
       break
   print("I will play for you: "+sound.name)
   sound.retrieve_preview("./sounds",sound.name.replace('/','_')+".mp3")
   print(sound.url)
   time.sleep(1)
   display.display(display.Audio("./sounds/"+sound.name.replace('/','_')+".mp3", autoplay=True))

A reflection diagram of past important project and a diffractive reading through them

1. Occupations in P-P, creating an archive or oral narrations to reconstruct spatial memory. Important matter the use of verbal language. What if it is equally important the non-verbal use of sounds, as body movement, timbre, tempo, silences, tone of voice

Editing sound