Auto complete poetry experiment

With the first time is the first time to see what you are. By the way to the way you can do some of the way to do. As a little more than happy to be great. Day of this email. Each other than the next weekend. Of my resume. Get a few days. His own understanding of the way. In a great news. Just wanted to be. King of the whole. Life is the first time. Me know when you are you can you are you are you are you. In the first place. Once you’ve been a chance. Part of the first time. Quiet day and they are you. Run into your email. Us immediately by the most beautiful. The way you would like a great weekend so much more time. Used when the way you are you. Value of the new. Was not sure if we can do something about the first time. A few days and may need to the first time. By a great to be used for your help. Zone of my mom said he said he said that they want to go down the rest is the first time.

The Holiday Rush Is On!

If you’re like me, you’ve barely started your Christmas shopping. I know it’s naughty to put it off so long, but sometimes it takes me a while to think of just the right gift. And sometimes I need deadlines for motivation. And, this is really a bit of a personality flaw. I was on a first name basis with the person responsible for assessing late fees at my uni when I was 20.
If you were thinking of getting a bespoke noise music for a Christmas gift this year, fear not, fellow procrastinator! I can deliver two more noise pieces in time for the holidays! If you want a physical disk, be warned I send them via first class post from London, so I can no longer guarantee arrivals of physical disks in time for Christmas for anyone overseas. It will probably get around England in time.
If you are ordering a digital delivery gift and aren’t sure how to give it, you could try burning your own disk or using other physical media such as a memory stick. Or I could generate a QR code you could put into a card.
Don’t delay too much longer, as I need a bit of time to make the piece and to do my own Christmas shopping!
Noise music doesn’t end with Christmas, so if you need to give a gift in January or for Valentines Day, I’ll be here to help. I’m working on some exciting plans for noise in 2015!
Bespoke noise music makes a great gift. There are only two order left in time for Christmas! Get yours in NOW!

Do you love noise music? Do you have fashion? Drop me an email if you’d like your image to be in forthcoming posts about noise and fashion

Advertising

I decided this weekend that what would really be a good idea would be a photo of my puppy wearing a Holiday jumper and headphones. It turns out that it’s really difficult to put things on puppies and then get them to sit still. Especially if they’re teething. My pinkie got caught in a futile attempt to prevent the jumper from being shredded and the headphone cables now need to be re-soldered. I hope that professional photographers that work with puppies are well-paid, because they certainly deserve to be.

Advertisement

I got one photo that came out more or less ok, and adding to my frustration, graphic design is also really hard. Really, my creative skills are almost entirely musical in nature.
Finally, I decided to give up and instead give my dog a nice long walk, as a thanks for (sort of) putting up with being made to wear strange things. As we went by Hackney’s medieval tower, I noticed they had a ‘Santa’s Grotto’. Aha!

Noise Advert!

My graphic design skills are still rubbish, but it helps to start out with a really good photo.
Sonia’s dad is involved with the Hackney Historic Buildings Trust, which runs open days at the Tower and both her and I have volunteered there, so we chatted with the elves and gave mulled apple juice to queuing families, until finally there was a lull and no children were waiting. Father Christmas turned out, fortunately, to love dogs and was happy to pose for a photo. (It also helped that he didn’t notice that the puppy was actually chewing on his beard at the moment this was snapped.)
If even adorable puppies want noise music, maybe your friends and family do too!
I have an idea for some puppy themed, music, actually. He likes to race around my living room for a bit, and while doing proper tracking on a webcam is somewhat difficult, detecting pixels that have changed massively from frame to frame is kind of trivial. So I could have a sound process controlled by the paths chosen by an excite-able puppy. It would be fun to do and make his excesses of energy something other than distracting – at least for one piece!
Do you want to give a gift of puppy-generated music this Christmas or Hanukkah? Order now to beat the rush!

Do you love noise music? Do you have fashion? Drop me an email if you’d like your image to be in forthcoming posts about noise and fashion

Noisy Week

I’ve posted TWO noise music commissions this week and sent a third to the patron who commissioned me. I’ll post it as soon as she gives me a title.
The first one was in honour of the birthday / retirement of Paul Berg from Sonology. One of his former students organised a large number of short commissions, which were compiled together in something they called ‘The AC Jukebox’, titled for the software that Paul developed. I talked a lot about the piece on my podcast, where you can read the notes of how it was assembled and some reminiscences on having Paul as a teacher.
The next piece I posted was commissioned by Lauren Redhead in honour of her friend, Caroline, who had a birthday. The party was last night and I have not yet heard how it went down as a gift, so here’s hoping it was well-received!
This was a digital piece and since it was my first digital piece in this series, I went a bit overboard with the processing. I wrote a SuperCollider script to generate 10 short source sounds and then used other scripts to manipulate the files as if there were images. I set up a lot of batch processing to go through them. I like this processing method a lot, and so will have more to say about my scripts shortly. I’m calling the suite of tools autoglitch!
Lauren told me that Caroline likes harsh noise, so this piece is a lot of glitching with no reverb. It’s dry digitalism! I did have to run it through a short SuperCollider script to remove DC bias, which was very helpful to make it speaker safe without changing the perceptual sound. You can give it a listen on my podcast.

Making that piece created a load of weird, glitchy images, which are also nice. The ideas that lead to this piece and this way of working are very much from talking to Antonio Roberts, who had lots of helpful suggestions and who posted his own tutorials on glitch art. His stuff is great.
As for the piece awaiting a title, I don’t want to say too much about it yet, but I will say that the commissioner had a bit of a poppy sensibility, so I used some compression and faux plate reverb.
If you’ve got a friend with an upcoming birthday or want to give something really original for the holidays, consider giving the gift of noise! If you order now, delivery is guaranteed in time for Hanukkah or Christmas!

Do you love noise music? Do you have fashion? Drop me an email if you’d like your image to be in forthcoming posts about noise and fashion

What is a commission?

When you commission me to write a piece, of music, you essentially pay me to write one minute of noise music. After I write it, you get to come up with the title. You are then a patron of the arts, causing new art works to come into being!
Afterwards, you get a copy of the music, which you are free to share with friends (under the terms of a Share Music License). I retain copyright of the work.
This makes a great gift – you can title the work to honour the recipient, or have a dedication attached. Your friend gets a copy of the piece of music and has their name tied to the music. So If you title the piece, say, ‘Happy Birthday to Susan Jones’, that would be attached to the music as the title, whenever anybody listened to it. (If Susan Jones feels overwhelmed by this, it can be re-titled.)
And I will do my best to try to make sure that people do listen, by posting it to my website and eventually compiling all the commissions into an album and publishing it.
Let’s say you decide to do this, how would it work?

The Process

  1. If your delivery date is less than two weeks away, please contact me before ordering. Depending on my schedule, etc, I will probably be able to accommodate you, but it’s a good idea to make sure!
  2. You would then order the commission and I would get to work making it. Do you want a physical CD posted to you or not? When you order, check that you’ve picked the right item in the shop. One comes with a CD. The other doesn’t.
  3. Within a few days, I will send you via email a link to a high quality audio file.
  4. After you listen to the file and decide on a tile, you would send me back the title and dedication.
  5. If you ordered a physical CD, I would then post it to you via first or second class post.
  6. If you would like an MP3 with the correct metadata (including title, etc), I can send that to you via email.
  7. I normally would then post the MP3 online to my website. However, if this is a gift, I’m happy to hold off until after you give the person a file or disk. Or post it right away so you can link them to the site. Whichever works best for you!

Who might this make a good gift for?

Do people really like this?

All my customers have been happy so far!

Will it arrive in time for Christmas or Hanukkah?

Yes, if you order soon!

Music commissions make great gifts. Order now for this holiday season!

Glitching Sound: how to data bend with imagemagick

Inspired by Antonio Roberts’s excellent tutorial on how to databend with Audacity, and following on from my previous tutorial on how to data bend audio, this post explores how to glitch audio using image software. Many of the required tools use the command line. This will work with linux, unix and mac. If you want to use windows, you will need to edit the autobmp.sh bash script so that it does not use the /tmp directory.

You will need

  • The autobmp.sh script
  • Imagemagick (You probably already have this if you use linux.)
  • BASH (you already have this if you use linux or if you have a terminal on your mac)
  • A utility to convert between audio formats that supports the .au format. I use sox, which is cross-platform and available via apt-get.
  • Audacity

Why these formats?

.au and .bmp are both uncompressed formats, so every sample of audio becomes the R, G or B value of a pixel. AIFF and WAV files are also uncompressed, but the files have more structure to them that is not sound data, so .au seems easier.

Getting Started

10 seconds of a sawtooth wave

Using sox to convert between uncompressed audio formats is really easy. To convert a file called foo.wav to an au file, you would just type: sox foo.wav foo.au  It looks at the extension and does the right thing.
Put the script in a directory in your path, OR just put it in your current working directory.
Once you’ve got foo.au, to convert it to a bmp, you’d type: ./autobmp.sh foo.au foo.bmp  This will give you a file called foo.bmp, which is the bmp image of your audio.
Let’s say, you’ve done a bunch of transformations and now have a file called bar.bmp. To turn that back into audio, you would type: convert -depth 16 bar.bmp rgb:bar.pcm  It is now back in an audio format, but the header has gotten slightly tweaked, so we’re not done. Open Audacity, and under the File mean, select, ‘import’ and then ‘raw audio’. Pick bar.pcm in the file chooser. On the popup window, tell it that the file is ’16-bit linear’ and ‘little endian’. There will be a few samples of crap at the beginning of the imported audio. That’s what’s left of your old .au header. you can delete it if you want. there will also be a bit of silence at the end of the file. This was padding added to make the image rectangular. To convert this into AIFF or WAV or MP3 or whatever, select ‘Export’ from the file menu.
If you have ended up with a different image format, such as jpeg or whatever, you don’t need to first convert back to bmp. To get from baz.jpeg back to audio, use convert directly and carry on as above. convert -depth 16 baz.jpeg rgb:baz.pcm

What to do while it’s a graphics file?

This is the creative bit! Converting to a lossy graphics format, such as jpeg adds some noise, so that might be fun. If you do that, you can glitch the jpeg by opening it in a text editor and doing a bit of typing at various points in the file. This causes weird visual distortions, which will become audio distortions when you convert back.
You can also try opening the graphics file in a graphics program. Some of the graphics effects may make interesting sound changes, although many won’t. Experimentation is needed. You can also try drawing on the image. Wide lines of a solid colour will create weird DC offsets, so if you want to avoid that, consider either using very thin lines or else setting an opacity of under 100%.
Have fun!

Music commissions make great gifts. Order now for this holiday season!

Working bmp converter

This is fun you can try at home, if you are on a unix or linux system or on OS X. You must have imagemagick installed, as well as the bash shell. For best results, install sox also.

This script has just been shown to work and prints out too many debugging statements and deals with a weird bug in bash on my system. Cut and paste the code at the bottom and save to a file called autobmp.sh

  1. Open your favourite audio tool, such as audacity and generate a sawtooth wave.
  2. Save it in the same directory as the script as a wav file: saw.wav
  3. Open a terminal, and cd to the directory you saved your wav file in
  4. Type sox saw.wav saw.au
  5. Type autobmp.sh saw.au
  6. Open saw.au.bmp in an image viewer. Isn’t it amazing?
  7. Type convert saw.au.bmp saw.jpg
  8. Open saw.jpg in a text editor, like emacs
  9. Scroll down to random points in the file and type a few characters. Do this a few times.
  10. Save the file as glitch.jpg
  11. Open glitch.jpb in an image viewer. Isn’t it amazing?
  12. Type convert glitch.jpg -depth 16 rgb:glitch.au
  13. Open audacity (or your favourite robust audio editor) and tell it to import raw data (under the File menu in audacity)
  14. Treat the data as 16 bit little endian
  15. Play it back. Isn’t it amazing?

You get a little glitch at the start of the file, whenever you import an au file as raw data. That’s the au header. You can delete the glitch and re-save. There is probably an automated fix for this, but there aren’t enough hours in the day. You’ll also get a little bit of silence appended to the end of the file. This is so the number of samples makes a square image size for the bmp.
Try out other ways of messing with the image, such as drawing on it, especially with less than full opacity or otherwise transforming it. Have fun times! The script is below the sales pitch.
I figured out how to do this and posted it here because I was commissioned to write a noise piece. When you commission music, you not only cause a new piece of music to exist, but you might cause some new tools to become available to other composers. Music commissions make great gifts for birthdays or other holidays. Order now to make sure your commission arrives in time for Christmas or Hanukkah.


#!/bin/bash

file=$1

size=`wc -c $1 | cut -f 1 -d ' '`
ints=`expr $size / 6`
root=`echo "sqrt($ints)" | bc`

x=$root
y=$root
echo "$x x $y"
squared=`echo "$x * $y" | bc`
    echo "squared is $squared"

while [ $squared -lt $ints ];do
    x=`expr $x + 1`
    squared=`echo "$x * $y" | bc`
    echo "squared is $squared"
done

echo "expr $squared - $ints"
diff=`expr $squared - $ints`
diff=`echo "$diff * 6" |bc`

echo "diff is $diff"

base=`basename $file`
temp=`echo "/tmp/$base"`
cp $file $temp

truncate -s +$diff $temp


size=$x
size+="x"
size+=$y

echo $size
command=`echo "convert -size $size -depth 16 rgb:$temp $file.bmp"`
echo $command
`$command`

Broken bmp converter

I’ve spent all evening trying to convert from .au files to bmp, and I’ve realised I’m really doing this the wrong way. This realisation partly brought about becase the conversion is obviously not working. The images are kind of pretty, though, so I thought I’d post the script. It runs in Processing, which is a simplified version of java.
How this code works is that it opens a file dialogue, in which the user is expected to select an .au audio file, but it doesn’t enforce this, so try data bending any file if you want. It then prints the file out onto the screen as if it were made up of integers giving pixel colours. Then, it saves that as a bmp.
What it should do is just put a bmp header at the top of an existing file, but I thought I was being smart.
the code is below. This was developed for a new commission I’m trying to get done. Hopefully, I’ll sort this out properly tomorrow, or if not, it will have to wait for the next digital commission (which could be yours!).
Commissions make excellent gifts! Order now and delivery is guaranteed in time for Christmas or Hanukkah.


// look at au header
// get the offset (32 bit word #1 (starting from 0))
// get the size (32 bit word #2) -- nevermind that
// set the sketch to that size, roughly square
// write from the the offset to the end to all the pixels
// save as bmp


import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.DataInputStream;

int x, y;
long length;

DataInputStream din;
FileInputStream fin;

String name;


void setup()
{
  x = 100; y = 100;
  size(4410, 600); // 1 minute
  selectInput("Select a file to process:", "fileSelected");
  frame.setResizable(true);
  noLoop();

}

void fileSelected(File file){
  
    try {
    //File file = new File("/home/celesteh/Documents/inProgress/shorts/rh/auToBmp/data/sine.au");
    name = file.getName();
    
    fin = new FileInputStream(file);
    din = new DataInputStream(fin);
    din.readInt(); // magic number
    int offset = din.readInt();
    System.out.println(offset);
    int skipTo = 16;//offset-8;// (32 bits + 32 bits) / 8
    din.skipBytes(skipTo);
    length = file.length() /*864*/ - skipTo;
    length = length /4; // 32 bit ints
    System.out.println(length);
    float root = sqrt(length);
    x = ceil(root);
    y = floor(root);
    while( (x * y) < length)
      x++;
    System.out.println(x);
    frame.setSize(x, y);
    redraw();
  } catch (IOException fe)
  {  exit();
  }
  

  
  //redraw();
  //redraw();
}

void draw() {
    int b;
    
    frame.setSize(x, y);
    
    if (din != null) {
      try {
        loadPixels();
        for (int i = 0; (i < length) && (i < pixels.length); i++)  {
          pixels[i] = din.readInt(); //readByte();
          //din.readByte(); din.readByte();
        }
        //updatePixels();
        din.close(); 
      } catch (IOException fe) {
        
      } finally {
        updatePixels();
        saveFrame(name.concat(".bmp"));
        
      }
              
     

    }
}

How do commissions work?

Let’s say your friend has a birthday next week. Would I be able to do something? How does the commissioning process work?

  1. If your delivery date is less than two weeks away, please contact me before ordering. Depending on my schedule, etc, I will probably be able to accommodate you, but it’s a good idea to make sure!
  2. You would then order the commission and I would get to work making it. Do you want a physical CD posted to you or not? When you order, check that you’ve picked the right item in the shop. One comes with a CD. The other doesn’t.
  3. Within a few days, I will send you via email a link to a high quality audio file.
  4. After you listen to the file and decide on a tile, you would send me back the title and dedication.
  5. If you ordered a physical CD, I would then post it to you via first or second class post.
  6. If you would like an MP3 with the correct metadata (including title, etc), I can send that to you via email.
  7. I normally would then post the audio online to my website. However, if this is a gift, I’m happy to hold off until after you give the person a file or disk. Or post it right away so you can link them to the site. Whichever works best for you!

Commissions make excellent birthday gifts. In fact, this is the most popular use of commissions! However, they can also be used to mark other dates or events, like the holidays! Although I can usually do last minute commissions for birthdays, with larger holidays, its safer to plan in advance! If you order in November, delivery is guaranteed in time for Hanukkah or Christmas!

Do you love noise music? Do you have fashion? Drop me an email if you’d like your image to be in forthcoming posts about noise and fashion

Holdays!

Really really really the wrong bicycle for touring

I took most of this week off. I went to the New Forest with my puppy, my wife and a couple of bicycles. She rode my touring bike and I rode my delivery bike, with a dog trailer attached. The kit I was carrying definitely outweighed me. Fortunately, the New Forest is only slightly hilly.
It is full of wild horses! These are not like the wild Mustangs of Nevada, but are sort of fat, large ponies that mill around and eat, but they very nice looking and unafraid of people. This is probably because the term ‘national park’ in Britain means an area where you are allowed to build houses and have farms and it not actually a park as I know the term. Although the new forest does have little pockets of land that have trees on them.
We were staying in kind of an odd cabin. Upon arrival, it became clear that the ‘kitchen’ was a bit of an optical illusion. It had lots of kitchen cabinets and a cutting board and a tea kettle and a surprisingly large supply of wooden spoons, but was missing some details like a sink or any kind of cooker. It turned out that a microwave and a tiny oven were located in an outdoor shed that had a combination lock and no lighting. Which is how I came to be standing outside a shed in the pouring rain checking if a ready meal was done. I very strongly suspect that the cabin was registered with the local authority as a shed or something. As there was no kitchen, then it obviously isn’t meant for human habitation, right?
After returning from the fun but slightly shambolic holiday, it was time to prepare for Thanksgiving. One of the advantages of being abroad is that all the shops are open as normal, so its completely reasonable to stroll into a shop Thanksgiving morning (or even evening) and get what you need. My menu this year was:

  • boiled brussel sprouts
  • sweet potatoes
  • garlic mashed potatoes
  • nutloaf
  • roast carrots and spuds
  • american-style stuffing
  • mushroom gravy

My mother in law got very enthusiastic about everything and contacted her American friends for some recipes and so turned up with a wild ride with sausages, a green bean casserole and cranberry sorbet. She had a bit of a comical adventure trying to find ingredients, not realising that ‘frozen orange juice’ meant concentrated. Also, she read that an American cup measure was half a pint, and so was using British pint, which is significantly larger. I’ve never seen so much cranberry in my life.
My wife also made some lovely pumpkin bread and my friend Irene brought rice pudding. I made a pumpkin pie, which went terribly wrong and will not be mentioned again.
Around 12 people came over and fortunately, I made enough food that nobody left hungry. It was a lovely evening, at the end of which, I was too tired to move.
Now that this little break is over, when my hangover wears off, I will quickly be back hard at work at making noise commissions. I brought my recorder to the New Forest, but I learned that English forests are extremely quiet in November. The horses made some nice sounds, but my dog was acting strange and untrustworthy around them, so I didn’t get any recordings. Indeed, I was so exhausted from pedalling such a heavy bicycle that I barely took any pictures.
In my home country, this weekend has been taken over by a million holiday sales in shops and finally with ‘Cyber Monday’ which is the big day for online sales. All of it filled with desperate searching for the perfect gift for friends and family.
My dad is really hard to shop for. He doesn’t want much and what he does want, he just buys for himself. However, he is interested in arts and culture. A few years ago he had season tickets to the San Francisco Symphony and even managed to get me an introduction to the conductor!
For people like my dad, noise music commissions make fantastic gifts. The physical CD from the commission can be wrapped up for under the tree or other exchange. It’s something unexpected, with cultural capital and his name attached as the honouree of the actual piece of music. It’s a great conversation piece. The music is short, so he can store it on his phone and play it for his Square Dancing buddies before the dance starts.
Do you have somebody like my dad in your family, who is hard to shop for, but loves a good conversational started and has an interest in arts or music? This would make a thoughtful gift – something they’ll mention for years afterwards. Get a commission today and the CD will arrive in time for Christmas or Hanukkah. The price goes up after Cyber Monday so get it now!