# Algorithmic noise machine

This project is a part of experiments done while doing an artist in residence at Instructables. You can see the other projects here.

You can use bit-shifting as an alternative way of creating "music". This principle enables you to squeeze as much processing power as possible out of the Arduino while creating novel and interesting effects. The challenge lies in composing through bitshifting.  This is an example of how such composition could look like:

OCR0A = ((-t&4095)*(255&t*(t&t>>13))>>12)+(127&t*(234&t>>8&t>>3)>>(3&t>>14)); // by tejeez

I have made this box to explore the consequences of changing the different parameters in the pieces. This enables me to see how they effect the overall sound qualities and enables me to prototype new compositions. The different parameters are changed through the 4 potentiometers. One potentiometer to choose the current algoritm and the other potentiometers to change the parameters of it. Although the sounds can be considered crude, it is quite engaging to experiment and play with.

Credits:
This project is based on Duane Banks code. He does a good job on crediting his sources, I want to embed them here for reference: The original tunes were produced by Viznut and by others in response to his original blog post here - The original Arduino port was completed by Arduino Forum user Stimmer. Duane Banks used the synth schematic found in this instructable plus a customized version of the timing functions found in the code. I adopted his code and modified the different algorithms so you can play around with their parameters and get a sense of how it affects the sounds.

Remove these ads by Signing Up

## Step 1: Components needed

You will need to following components:
• Arduino board
• Prototyping shield.
• 4 10kOhm potentiometers.
• 2.2k Resistor.
• 100n Capacitor.
• 100u Capacitor.
• Jack connector.
• A pair of computer speakers.

If you want to make the enclosure you would need:
• 3mm black acrylic.
• A wooden box (I got mine from the container store in SF).
I used a lasercutter to cut the acrylic, you could use a piece of plywood and cut the 4 holes manually.

a.palos1 month ago

I'm new to arduino so I can't tell what I'm doing wrong

I keep getting this message:

onelineSynthGuino.ino: In function 'void paramChanged(int*, int)':

onelineSynthGuino:131: error: 'gUpdateValue' was not declared in this scope

onelineSynthGuino.ino: In function 'void setup()':

onelineSynthGuino:151: error: 'gBegin' was not declared in this scope

onelineSynthGuino.ino: In function 'void loop()':

onelineSynthGuino:160: error: 'guino_update' was not declared in this scope

onelineSynthGuino:172: error: 'gUpdateValue' was not declared in this scope

onelineSynthGuino.ino: In function 'void gInit()':

onelineSynthGuino:183: error: 'gAddLabel' was not declared in this scope

onelineSynthGuino:184: error: 'gAddSpacer' was not declared in this scope

onelineSynthGuino:185: error: 'gAddSlider' was not declared in this scope

onelineSynthGuino:190: error: 'gAddToggle' was not declared in this scope

onelineSynthGuino:192: error: 'gAddColumn' was not declared in this scope

onelineSynthGuino:198: error: 'gAddMovingGraph' was not declared in this scope

Any help is much appreciated.

EpicGeekPoetry1 year ago
I am trying to upload the code for this into an UNO, but I am getting an error with the EasyTransfer ET create object part of the code. I am new to coding so any help would be much appreciated. Here are the error messages:

Guino_libray:64: error: 'EasyTransfer' does not name a type
Guino_libray.ino: In function 'void guino_update()':
Guino_libray:93: error: 'ET' was not declared in this scope
Guino_libray.ino: In function 'void gBegin(int)':
Guino_libray:172: error: 'ET' was not declared in this scope
Guino_libray:172: error: 'details' was not declared in this scope
Guino_libray.ino: In function 'void gSendCommand(byte, byte, int)':
Guino_libray:390: error: 'ET' was not declared in this scope

1 year ago
I figured it out. I shouldn't have glossed over the transferring libraries to the libraries folder tutorials :D
5 months ago

i had this problem too. i read the tutorial, but i'm not sure what im doing wrong. what did you do?

denialpolez1 year ago
Ever wonder how to made one on this noise machines but made them independent from a computer and guino ? and have more flexibility overall. Try this code http://forum.arduino.cc/index.php/topic,77884.0.html

like all the same without the above mentioned stuff, override the leds and stuff. keep it minimal :)
North881 year ago
Can you buy the prototyping shield online. I am in Australia and can't find that specific model in store
1 year ago
u can make easily the shield on very basic Phenolic prototyping board. i made mine in one morning, and it works great...
denialpolez1 year ago
Hi, I build one and is great. It just run when GUINO in on, or it is a way to override Guino to make it independent from a computer? I can´t find it how.
jknetl1 year ago
Or it is possible make another scheme for people who know how to solder, but have just basic knowledge about wires connections ? Thanks a lot !
jknetl1 year ago
Hi, I really like this project but I am total "noob" with Prototyping shield and i dont know, how to design scheme for jack with this model of ProtoType Shield :( can you help me

it is different model then you have.
Beergnome1 year ago
I got the thing working and it is quite awesome. :)

how does one go about altering the code to change the composition? is there a repository for variations that can be plugged in?
EpicGeekPoetry1 year ago
Me again. Anyway just a warning to anyone using this schematic. A connection is shown between pin GND and pin 6 on the right hand side of the arduino. If you do this your circuit will not function properly. The schematic should have no connection where the two nets cross one another in that area.

Anyway once you get this thing working it sounds freaking amazing! Thanks for this!

hmm you migh be right. This is the right diagram for the synth:

http://www.instructables.com/file/FFG1P35H1PISZD9
the new voodoo1 year ago
I have a 2x16 serial backlit LCD-how would I add to this so that it could display and perhaps with 2 buttons (#up, #down) change the values of the "line"?
Im asking cause I know jack about coding, but have built about 20 analog synths so am imagining I can handle the physical elements of this...just FYI
Blast Master2 years ago
Awesome noise maker and so much fun! Thank you for this great instructable! I built one in just about an hour. One mod I made that might prove useful to some is adding or replacing control over the rate to one of the pots.

here is what mine looks/sounds like if you're interested:
madshobye (author)  Blast Master2 years ago
Awesome thanks for sharing. If you come up with new compositions I would love to hear them :)
Timotheus2 years ago
I'm getting the parts to make this here in the next day or two, I have my own idea for how to do the enclosure but I'll let you know how it goes via photos when it's done.

Thanks for the write-up, only question is how are you powering the arduino? Battery? Plug? Or what. (I might of missed it)