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 #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 
|
|
|
|
|
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... #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(  ; } 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 }
|
|
|
|
|
6
|
Community / Exhibition / Gallery / Re: Auduino Fix + Delay
|
on: January 28, 2013, 06:12:12 am
|
oh shit I understand now!!!  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 
|
|
|
|
|
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 #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  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..
|
|
|
|
|
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????  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
|
|
|
|
|