Arduino synthesiser with leds

Hi, I would like to build this famous project:

http://code.google.com/p/tinkerit/wiki/Auduino

, but adding the LEDs to obtain this result:

http://www.youtube.com/watch?v=UJqY6U8fSmY

Is there anyone who can help me for the changes? I tried to look for the project, but I have not found information.

I thank you for your help.

Hi,
The leds are only showing the values of the analogReads so you just need to add the following -

  // read in the inputs
  syncPhaseInc = mapPentatonic(analogRead(SYNC_CONTROL));

  grainPhaseInc  = mapPhaseInc(analogRead(GRAIN_FREQ_CONTROL)) / 2;
  grainDecay     = analogRead(GRAIN_DECAY_CONTROL) / 8;
  grain2PhaseInc = mapPhaseInc(analogRead(GRAIN2_FREQ_CONTROL)) / 2;
  grain2Decay    = analogRead(GRAIN2_DECAY_CONTROL) / 4;
  
  // write out the outputs use 5,6,9,10,11 assuming its and UNO
  analogWrite(5,syncPhaseInc);
  analogWrite(6,grainPhaseInc);
  analogWrite(9,grainDecay);
  analogWrite(10,grain2PhaseInc);
  analogWrite(11,grain2Decay);

That should work although I have not tested it.

The Auduino is a great project, lots of people have developed it further by replacing some of the potentiometers with other analog sensors. I have a few examples collected in this post -

Auduino’s

This project is an idea for a modular synthesiser that uses exactly the same hardware as Auduino so if you have an Auduino built, try this code for a different synth, the just upload the Auduino again when you get tired of this one

If your into light and sound these might also be interesting to you -

And the must build Illutron B -

Duane B
rcarduino.blogspot.com

DuaneB, I thank you very much for the code. If I have the file auduino_v5.pde, can I add your code before the end of this?

And how are the LEDs physically connected? Have You a simple scheme that I can do?

Thanks a lot for the link that you gave me. I want to make a preamp-synthesizer (using LM386) with the following scheme:

https://www.box.com/s/h0xogyyc66bkm8ktgzdp

Is it correct?

Thank you very much!

Hi, You should connect the LEDs through 500 Ohm to 1K Ohm resistors to the digital pins numbered - 5,6,9,10,11 one resistor and one led per pin.

The code goes at the end of your loop function.

Duane B

Thank you very much, Duane B.

Last question: could you tell me the name of the actions of the individual potentiometers (examples: musical note, wave, frequency, ecc.)? The reference scheme is this: http://code.google.com/p/tinkerit/wiki/Auduino.

Thank you very, very, very much.

Writing something up now, will let you know when its done.

Duane B

Can you tell me? =(

New section in the middle of this post, its too long and needs to be rewritten to be shorter and clearer, but it might answer your question, if not let me know and I will take it into account when I rewrite the section -

http://rcarduino.blogspot.com/2012/08/adding-audio-to-arduino-projects.html

Duane B

rcarduino.blogspot.com

Thanks Duane B, but I wanted to know the name of the 5 controls (http://code.google.com/p/tinkerit/wiki/Auduino). I need it to write the names on the box of the synthesizer.

A pot, for example, I think it's the pitch, but what input corresponds in arduino (0, 1, 2, 3, or 4)? And what is the name of the other 4 controls? Ad what are the corresponding Arduino input?

Thank you very, very, very much.

Its already there in the code -

  syncPhaseInc = mapPentatonic(analogRead(SYNC_CONTROL)); // pitch
    
  grainPhaseInc  = mapPhaseInc(analogRead(GRAIN_FREQ_CONTROL)) / 2; // grain/triangle wave 1 frequency
  grainDecay     = analogRead(GRAIN_DECAY_CONTROL) / 8;                   // grain/triangle wave 1 decay 
  grain2PhaseInc = mapPhaseInc(analogRead(GRAIN2_FREQ_CONTROL)) / 2; // grain/triangle wave 2 frequency
  grain2Decay    = analogRead(GRAIN2_DECAY_CONTROL) / 4;                    // grain/triangle wave 2 decay
}

Duane B

Thank you very much Duane B!

I would like to achieve, with a button and a LED display, a switch of musical scales. The switch practically initializes syncPhaseInc as mapPentatonic(analogRead(SYNC_CONTROL)) or mapMidi(analogRead(SYNC_CONTROL)); or mapPhaseInc(analogRead(SYNC_CONTROL)) / 4;.

Are there other types of musical scales that I can enter?

Thank you very much!

Why not just plug in a cheap kids keyboard and play whatever you want. This is not running Auduino yet, but I plan to have it running Auduino at some point this week -

http://rcarduino.blogspot.com/2012/10/five-dollar-synthesiser.html

Duane B

rcarduino.blogspot.com

I have a cheap keyboard at home, but I'm not so good with electronics :) For this reason, I would like to change the arduino synth adding other scales / shades.

You can explain how to obtain them?

Thank you very much.

Not me, you need a musician for that, but you will find that the original pentatonic is the best sounding, the others are all very plain in comparison.

Duane.