Once I had the basic parsing working for my project I was able to begin coding in the sound elements that would turn the posts into sound. The RSS library that I found alread listed out each individual post on the page so my task was to take these and develop the code that would build my project. The first thing I did was to create the code that would give the length of each word in the post from which the sound would be produced. By using the space character in a string of text I was able to count how many characters had come before that and so calculate how long each word was. Once this was in place I had to have some sounds to apply to the word lengths.
In order for the audio produced from the project to be in some way understandable I felt that the best sounds to use would be notes from a piano, each note resembling a different length of word. I therefore recorded a set of 12 piano notes from F below Middle C to C above Middle C not including any black keys. I chose not to include the black keys as the audio being generated from the text would mean that there may be a lot of clashes between notes, and with black keys this would be especially recognisable. Therefore in order to make the generated audio as musical as possible I left the black keys out, making whatever tune is produced in the key of C. I chose to only record 12 notes in total as I felt that it would be unlikely for most words used to be any longer than this, mainly homing around 4 or 5 characters, especially being that text speak is often used on platforms like Facebook. Therefore any words included in the text above 12 characters long will not be played in the audio.
Once I had my sound files I was able to begin coding in the link between the word lengths and the notes played. Each note is played one after the other, but I have chosen not to include any other transforms so as not to make the audio too complicated.
Sunday, 25 April 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment