Show Posts
Pages: [1] 2 3
1  Using Arduino / General Electronics / Re: DFROBOT MIDISHIELD on: May 03, 2013, 04:22:35 pm
Does this have anything to do with the midi board or the uno? Or is it just with the arduino pro?

Quote
Note: When using this shield with the Arduino Pro you will have to bypass the TX/RX resistors on the Pro to get enough current to the shield.
2  Using Arduino / General Electronics / Re: DFROBOT MIDISHIELD on: April 20, 2013, 07:54:49 pm
the uno turns on but the midi shield is not sending midi I can confirm this. I have a USB to midi cable.
3  Using Arduino / General Electronics / DFROBOT MIDISHIELD on: April 20, 2013, 05:21:50 pm
hello

  smiley

I have a arduino uno and a DFROBOT midi shield. I and I'm using it as a midi controller.
it works as long as I use a USB cable to my computer but it won't run on a 9V battery.
I have the battery connected to the uno on the bottom (direct 9V) it powers the uno but not the DFROBOT midi shield.
4  Using Arduino / Programming Questions / Re: openpipe with fluxamasynth on: February 18, 2013, 12:49:08 pm
sorry grumpy mike for annoying you.

my consin ben will help me now
5  Using Arduino / Programming Questions / Re: openpipe with fluxamasynth on: February 17, 2013, 07:23:48 pm
In this code I see methods for Fluxamasynth libraries but no relation to the code I am using
Code:
#include "Fluxamasynth.h" //will I need this?

Fluxamasynth synth; //will I need this?

#define c3 48                // define our notes to their midi values
#define e3 52
#define g3 55
#define c4 60

void setup() {
  Serial.begin(31250);
  synth.programChange(0, 0, 40);
  synth.programChange(0, 1, 0);
}

void loop()
{
  synth.noteOn(0, c4, 127);  // play 1 note (C4) on channel 0

  delay(1000);
  synth.noteOff(0, c4);

  synth.noteOn(1, c3, 127);
  synth.noteOn(1, e3, 127);  // play 3 notes (C3, E3, G3) on channel 1
  synth.noteOn(1, g3, 127);

  delay(1000);
  synth.noteOff(1, c3);
  synth.noteOff(1, e3);
  synth.noteOff(1, g3);
}

and does these work with synth.noteOn and synth.noteOff
Code:
#define MIDI_COMMAND_NOTE_OFF       0x80
#define MIDI_COMMAND_NOTE_ON        0x90
#define MIDI_COMMAND_SOUNDS_OFF     0xB0//I see no methods for these.
And This...how do I set it up as a instrumtent with out playing notes automaticaly and keeping the parameters.
Code:
synth.noteOn(0, c4, 127);  // play 1 note (C4) on channel 0
6  Using Arduino / Programming Questions / Re: openpipe with fluxamasynth on: February 17, 2013, 06:48:16 pm
instead of
Code:
int MIDI_sounds_off(void){
   t_midiMsg midiMsg;
   midiMsg.msg.command = MIDI_COMMAND_SOUNDS_OFF;
   midiMsg.msg.channel = MIDI_DEFAULT_CHANNEL;
   midiMsg.msg.data2   = 120;
   midiMsg.msg.data3   = 0; /* Velocity */
   
   Serial.write(midiMsg.raw, sizeof(midiMsg));
}

int note_on(int note, int vel){
    t_midiMsg midiMsg;
   
    midiMsg.msg.command = MIDI_COMMAND_NOTE_ON;
    midiMsg.msg.channel = MIDI_DEFAULT_CHANNEL;
    midiMsg.msg.data2   = note;
    midiMsg.msg.data3   = vel; /* Velocity */
   
    Serial.write(midiMsg.raw, sizeof(midiMsg));
}

int note_off(int note, int vel){
    t_midiMsg midiMsg;
   
    midiMsg.msg.command = MIDI_COMMAND_NOTE_OFF;
    midiMsg.msg.channel = MIDI_DEFAULT_CHANNEL;
    midiMsg.msg.data2   = note;
    midiMsg.msg.data3   = vel; /* Velocity */
   
    Serial.write(midiMsg.raw, sizeof(midiMsg));
}

maybe just

Code:
void noteOn(byte channel, byte pitch, byte velocity);
  void noteOff(byte channel, byte pitch);
void midiReset();
think it will work?
7  Using Arduino / Programming Questions / Re: openpipe with fluxamasynth on: February 16, 2013, 06:06:47 pm
will some of these work??
Code:
void noteOn(byte channel, byte pitch, byte velocity);
  void noteOff(byte channel, byte pitch);
  void programChange (byte bank, byte channel, byte value);
  void pitchBend(byte channel, int value);
  void pitchBendRange(byte channel, byte value);
  void midiReset();
  void setChannelVolume(byte channel, byte level);
  void allNotesOff(byte channel);
  void setMasterVolume(byte level);
  void setReverb(byte channel, byte program, byte level, byte delayFeedback);
  void setChorus(byte channel, byte program, byte level, byte feedback, byte chorusDelay);

Please please pretty please. tell me what to enter.
8  Using Arduino / Programming Questions / Re: openpipe with fluxamasynth on: February 14, 2013, 03:47:53 pm
grumpy mike

If you would please show me the right code to use. smiley-wink

this code was ment for the spark fun music instrument code.
9  Using Arduino / Programming Questions / Re: openpipe with fluxamasynth on: February 11, 2013, 06:06:41 pm
Code:
[code   uint8_t raw[4];
} t_midiMsg;
]
should I delete this to?

the question really is, should I add any thing?

Code:
Serial.write(midiMsg.raw, sizeof(midiMsg));
every part where this was I deleted it and it still didn't work.
10  Using Arduino / Programming Questions / Re: openpipe with fluxamasynth on: February 11, 2013, 05:21:10 pm
Code:

Code:

Serial.write(midiMsg.raw, sizeof(midiMsg));
Quote
Then look at every function that ends in

did so... still don't know how to add a function that will work. I know you want me to learn this my self.
Can you give  me a link of functions that I can use?
11  Using Arduino / Programming Questions / Re: openpipe with fluxamasynth on: February 11, 2013, 06:05:42 am
I didn't write the code but i have lillte or no understanding of the code.
12  Using Arduino / Programming Questions / Re: openpipe with fluxamasynth on: February 10, 2013, 07:05:24 pm
????

I don't know what you mean.

should I get rid of

Code:
midiMsg.msg.data3 = vel; /* Velocity */

Or program the code to handle it.

How much of this code do I have to change?

Oh I see merge command with channel..... but how?

Maybe every part where command and channel is piece it two gether. I still don't know how.
13  Using Arduino / Programming Questions / Re: openpipe with fluxamasynth on: February 10, 2013, 05:23:18 pm
The code is too long for the forum.. smiley-mr-green

I will give you a link to the code.

https://github.com/openpipelabs/openpipe-breakout/tree/master/openpipe_breakout_music_instrument_shield

here is a better link.....sorry

https://github.com/openpipelabs/openpipe-breakout/blob/master/openpipe_breakout_music_instrument_shield/openpipe_breakout_music_instrument_shield.ino
14  Using Arduino / Programming Questions / openpipe with fluxamasynth on: February 10, 2013, 04:18:07 pm
Hi again!  smiley smiley smiley

Remember my crying about the fluxamasynth bagpipe....well I am almost done with that project and it will be very simple fix
what I have for you all.

The openpipe works with the fluxamasynth, I programed the instrument to be set as 109 (bagpipe) but when I do some notes
it changes to 0 (piano).

this is what I think is the problem.

Code:
[
//byte note = 0; //The MIDI note value to be played
byte resetMIDI = 4; //Tied to VS1053 Reset line
byte ledPin = 13; //MIDI traffic inidicator
int instrument = 0;
/code]

the code was made for a music instrument shield from sparkfun dot com.
I had to change the rx (1) and tx (4) numbers for this code to get sound out of the fluxamasynth.
I think the problem lies in the VS1053 Reset line.
15  Using Arduino / Programming Questions / Re: using a fluxamasynth with midi controller shield on: January 16, 2013, 05:51:57 pm
sorry, do you mean jumper settings on the three boards? or code? computer settings? smiley-razz
Quote
Stack them up just make sure that they all use different pins so you don't get conflicts.

Do I have have to use two sketches in one upload? Or mix the two codes as one sketch.
Pages: [1] 2 3