Show Posts
Pages: [1] 2 3
1  Using Arduino / Audio / Re: Potentiometer Send MIDI CC on: February 02, 2013, 05:12:31 am
this the code I've modify

Quote
#include <MIDI.h>
#define MIDI_ENABLE 12

// Variables:
int cc = 0;
int AnalogValue = 0; // define variables for the controller data
int lastAnalogValue = 0; // define the "lastValue" variables

void setup() {
 
   
  //  launch MIDI
  MIDI.begin(4)
}

void loop() {
  AnalogValue = analogRead(0);
  //  convert to a range from 0 to 127:
  cc = AnalogValue/8;
  // check if analog input has changed
  if (lastAnalogValue != cc) {
    MIDI.sendControlChange(16,cc,1);
    // update lastAnalogValue variable
    lastAnalogValue = cc;
 
AnalogValue = analogRead(1);
  //  convert to a range from 0 to 127:
  cc = AnalogValue/8;
  // check if analog input has changed
  if (lastAnalogValue != cc) {
    MIDI.sendControlChange(17,cc,1);
    // update lastAnalogValue variable
    lastAnalogValue = cc;
  }   //  endif

AnalogValue = analogRead(2);
  //  convert to a range from 0 to 127:
  cc = AnalogValue/8;
  // check if analog input has changed
  if (lastAnalogValue != cc) {
    MIDI.sendControlChange(18,cc,1);
    // update lastAnalogValue variable
    lastAnalogValue = cc;
  }   //  endif
 
}

I'm not a programmer, i'm not an electronic guru, i'm just a poor musician with a few of nerd skills smiley
2  Using Arduino / Audio / Re: Potentiometer Send MIDI CC on: February 02, 2013, 05:09:17 am
Hi i'm also trying to build up a controller with 8 pots using an arduino 2009 and a IC 4051 for multiplexing, i'm following this tutorial from littlescale

http://little-scale.blogspot.it/2008/07/eight-pots-to-midi-cc-data.html


don't know why (maybe the pots) for me this circuit don't go. After that I've tested another circuit and code here it is

http://arduino.cc/forum/index.php/topic,122378.0.html

With that code and circuit I can hook up 6 pots (or analog sensor) and read their value, no latency, great response etc...

the problem is the mapping, when you select your parameter e.g. in ableton, until they are two it works than everything start flickering and its hard to get the solution....

3  Community / Exhibition / Gallery / Re: Musical floppy drives on: January 30, 2013, 09:33:19 am
coool project man!!
4  Using Arduino / Audio / Re: Still unable to send CC using MIDI Library on: January 28, 2013, 07:17:38 am
I can't put another pots on the arduino using the same code...

here's the code...

Quote
#include <MIDI.h>
#define MIDI_ENABLE 12

// Variables:
int cc = 0;
int AnalogValue = 0; // define variables for the controller data
int lastAnalogValue = 0; // define the "lastValue" variables

void setup() {
 
   
  //  launch MIDI
  MIDI.begin(smiley-cool;
}

void loop() {
  AnalogValue = analogRead(0);
  //  convert to a range from 0 to 127:
  cc = AnalogValue/8;
  // check if analog input has changed
  if (lastAnalogValue != cc) {
    MIDI.sendControlChange(16,cc,1);
    // update lastAnalogValue variable
    lastAnalogValue = cc;
  }
AnalogValue = analogRead(3);
  //  convert to a range from 0 to 127:
  cc = AnalogValue/8;
  // check if analog input has changed
  if (lastAnalogValue != cc) {
    MIDI.sendControlChange(17,cc,1);
    // update lastAnalogValue variable
    lastAnalogValue = cc;
  }   //  endif
 
}


5  International / Hardware / Re: Controllo audio e amplificazione x Arduino Synth (LM386-N4) on: January 28, 2013, 06:16:06 am
stò usando un lineare.. parlando con il ragazzo che ha fatto il circuito effettivamente mi ha fatto notare che non è un pot per il volume piuttosto è per il gain.... quindi possiamo considerare la faccenda risolta smiley-grin

grazie a tutti per l'aiuto
6  Community / Exhibition / Gallery / Re: Auduino Fix + Delay on: January 28, 2013, 06:12:12 am
oh shit I understand now!!!  smiley-money

I've notice a sort of colored sound....  yes the volume works good but iI would like to have less noise signal.... before solder all together I liked the filter "cut off"...


have you find a solution for the delay??? I would like to help you but I'm very bad in coding  smiley-sad-blue
7  Using Arduino / Audio / Re: Still unable to send CC using MIDI Library on: January 28, 2013, 06:07:10 am
Hi following the post I finally got a solution!!!

I'm using the first code posting by Yan_g

Quote
#include <MIDI.h>

// Variables:
int cc = 0;
int AnalogValue = 0; // define variables for the controller data
int lastAnalogValue = 0; // define the "lastValue" variables

void setup() {
  //  launch MIDI
  MIDI.begin(4);
}

void loop() {
  AnalogValue = analogRead(0);
  //  convert to a range from 0 to 127:
  cc = AnalogValue/8;
  // check if analog input has changed
  if (lastAnalogValue != cc) {
    MIDI.sendControlChange(16,cc,1);
    // update lastAnalogValue variable
    lastAnalogValue = cc;
  }  //  endif
}


and I've just made a modify th circuit puttin a 220ohm resistor between MIDI din port  pin4 to digital input 1 on my arduino 2009

I've tested a 10k , 100k and 1m pots and all works fine...
8  Community / Exhibition / Gallery / Re: Auduino Fix + Delay on: January 27, 2013, 01:30:40 pm
Ok the amp circuit works!

Thanks Duane for your tutorial smiley-wink

I don't know why but the volume pot doesnt seems to work in the right way... is like a switch, you have to turn it until he reach a sort of treshold.... after that limit the volume start to pump...
9  Using Arduino / Audio / Re: Groovesizer: auduino with 16-step sequencer on: January 27, 2013, 01:25:34 pm
cool man i'm testin varous code for sending midi cc from pots via a midi port... if I can find  a solution i will you send you the code.. maybe together we can figure out... there's not so much documentation about sending midi ccs via arduino..
10  Using Arduino / Audio / Re: Groovesizer: auduino with 16-step sequencer on: January 27, 2013, 08:18:09 am
Hi great project very cool!

I'm tring understand how does it work the midi out?

are you sending midi cc from the pots, or "just" the note out from the step sequencer???
11  Community / Exhibition / Gallery / Re: 64 knob MIDI controller prototype on: January 27, 2013, 08:09:47 am
What kind of pots did you use???

100k??? 10k??? 1m???

nice work man smiley
12  International / Hardware / Re: Controllo audio e amplificazione x Arduino Synth (LM386-N4) on: January 27, 2013, 08:03:21 am
ho notato che il pot del volume, non ha un crescendo esponenziale, si comporta quasi come un interrutore... cosa ne pensate invece di un logaritimico???

non si usano quellli di solito??


 
13  International / Hardware / Re: Controllo audio e amplificazione x Arduino Synth (LM386-N4) on: January 26, 2013, 07:29:55 am
perchè dici sia meglio un pot digitale???


ok oggi faccio un paio di prove alimentando sia a batteria che tramite l'arduino...

grazie per le risposte

 smiley-cool
14  International / Hardware / Controllo audio e amplificazione x Arduino Synth (LM386-N4) on: January 25, 2013, 02:21:06 pm
Ciao a tutti,


sto costruendo un synth utilizzando un arduino mega il progetto che seguo si chiama Auduino e potete dargli un occhiata a questo link

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

alla ricerca di una soluzione per poter ottenere un controllo sul volume e una maggiore amplificazione mi sono imbatutto in questo tutorial

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

il circuito è molto semplice il mio problema però , da inesperto quale sono, è il seguente..

Come faccio ad alimentare l'integrato???

 all'interno del tutorial nella foto dello schematico dice di non alimentarli dalla stessa sorgente...

io però non stò alimentando arduino&co tramite una batteria ma tramite il cavo usb....

a me verrebbe naturale portare l'alimentazione tramite la 5v dell arduino...

G

15  Community / Exhibition / Gallery / Re: Auduino Fix + Delay on: January 25, 2013, 09:13:21 am
Ok now I can feel the delay!!!!

want to show me how I can merge this two scketches now????    smiley-mr-green


I'm tryng to build even the LM386-N4 circuit amp, but I can't figure out how to power the IC... in the schematics you say its better to separate the power...

but how could do this? For my Auduino I use an arduino mega powered via usb.... I prefer not to use a battery... have you some advice for this?

Its a stupid idea try to power the circuit with the  arduino mega??

G

Pages: [1] 2 3