Show Posts
Pages: [1] 2
1  Using Arduino / Audio / Re: How to send SysEx Messages with Midi Library on: April 14, 2014, 03:21:39 am
Great, i works! capicoso, i love your pragmatic approach! Its possible now to send CC-values from a new synth to an old synth and the arduino converts the cc-values to syses messages.

Code:
byte Sysexvalue[14] = {240, 67, 16, 38, 2, 6, 1, 0, 33, 1, 127, 0, 127, 247};
...
CC = 127 * 1,9448; // 127 is written manually for testing issues. Multiply to get scaling 0-127 > 0-247
Sysexvalue[12] = CC;
MIDI.sendSysEx(14, Sysexvalue, true);

Maybe there is a better way to convert CC Values 0-127 > 0-247 than multiply?

And I'll put a little delay to the sysex part not to flood the old synth.
2  Using Arduino / Audio / Re: How to send SysEx Messages with Midi Library on: April 11, 2014, 11:30:36 am
Oooh you mean instead of F0, 43, 10 etc the corresponding decimals? Wow this would be awesome... I'll check this out next week when I'll be back.

This would be so easy.

Too easy.
3  Using Arduino / Audio / Re: How to send SysEx Messages with Midi Library on: April 10, 2014, 08:41:57 am
Are you sure this is correct? If i just ignore it then the array would look at the 12th value like

Code:
byte sysexArray[14] = {0xF0, 0x43, 0x10, 0x26, 0x02, 0x06, 0x01, 0x00, 0x21, 0x01, 0x7F, 0x00, 127, 0xF7};

And will of course be ignored by the Synth...
4  Using Arduino / Audio / Re: How to send SysEx Messages with Midi Library on: April 09, 2014, 04:16:42 am
It helped a lot and it's almost finished. There is one thing i don't get:

How to convert incoming values e.g. 127 into 0x7F (with leading 0x) on the fly? It works if I send the HEX value manually:

Code:
sysexArray[12] = (0x7F);
MIDI.sendSysEx(14, sysexArray, true);

The final array has to look like this:

Code:
byte sysexArray[14] = {0xF0, 0x43, 0x10, 0x26, 0x02, 0x06, 0x01, 0x00, 0x21, 0x01, 0x7F, 0x00, 0x7F, 0xF7};

If I just use string(127,HEX) it returns it without the leading 0x.
 
I tried sprintf, but well.... hm. help  smiley-sad
5  Using Arduino / Audio / Re: How to send SysEx Messages with Midi Library on: March 29, 2014, 02:04:37 pm
This sounds very right! At first I have to write the array correctly, then send a hard programmed sequence to the synth to test it. Will post it soon!
6  Using Arduino / Audio / Re: Basic Midi Control Change Question on: March 25, 2014, 05:36:36 pm
Where are the midi messages come from? Try to disable midi thru in the setup!
7  Using Arduino / Audio / How to send SysEx Messages with Midi Library on: March 25, 2014, 04:04:24 pm
Hey guys,

I'm pretty lucky with using the Midi Library and I want to use it further. I'm looking after a simple how-to about sending sysex with the midi library, in order to control an old synth by different events like incoming CC-Values into the arduino.

Lets say the sysex message has to be like this (14 bits), where XX is the value:

Code:
F0 43 10 26 02 06 01 00 1F 01 78 00 XX F7

How to write the code properly while it should be controlled by Midi CC 3:

Code:
#include <MIDI.h>

void setup() {
  MIDI.begin();
}

void loop() {
  if (MIDI.getType() == midi::ControlChange && MIDI.getData1() == 3) {  // only responds to values from Midi CC 3
       MIDI.sendSysEx(14, F0 43 10 26 02 06 01 00 1F 01 78 00 HEXVALUEFROMMIDICC3 F7); //this is crap
    }
}

Any ideas? Thanks!!

8  Using Arduino / Audio / Re: Mix or merge MIDI IN signals with internal MIDI messages / midi library on: March 20, 2014, 06:19:09 pm
We'll, almost after a year I decided to move away from the arduino in this case.
The overall timing was too bad, and I think the best way would be to write the code from scratch.
Merging two large libraries wasn't the best idea smiley-grin

For my case ( shruthi-1 control ) I found a solution that was dedicated for the shruthi with its own pcb.

9  Using Arduino / Audio / Re: MIDI library filter on: March 20, 2014, 06:05:33 pm
I was searching for a way for filtering out some midi CC values that were messing another gear.  It's mid CC 112-120 that I has to filter out.

In fact, it is possible and works like a charm just with very little effort  smiley

- use omni channel in the setup
- Disabling midi thru in the setup
- write a rule like: "if not midi cc number then midi send"
- done

I am using it after a little help from Francois Best and will have an eye on timing if more than some rules are set.
10  Using Arduino / Audio / Re: Mix or merge MIDI IN signals with internal MIDI messages / midi library on: May 08, 2013, 03:45:21 am
Great! Can't wait to check this out  smiley-cool
11  Using Arduino / Audio / Mix or merge MIDI IN signals with internal MIDI messages / midi library on: May 07, 2013, 07:58:01 am
I'm using the midi library 3.2 for a midi controller and it is working very well. It is for changing CC values of a synth, but i want to play it on a keyboard, too. So I'm curious about mixing the Keyboard signals with the arduino MIDI messages somehow...
Well, I could go and buy an hardware merger, or maybe there is a way to listen to the incoming MIDI messages and send them inside my loop along with the internal MIDI messages?

This simplified part is working, I couldn't find any proper "AllTheIncomingMidiMessage" function in the library:

Code:
void loop() {
  // Work with the input
  sensorValue = analogRead(sensorPin) / 8;
 
  // Send MIDI cc74 example on channel 1
  if(sensorValue != sensorValue_old) {                   // only if value has changed
    MIDI.send(ControlChange,74,sensorValue,1);
    sensorValue_old = sensorValue;                        // compare and change if not the same
  }
 
  //Read and send all incoming MIDI messages
  //MIDI.send(AllTheIncomingMidiMessageSomehow,1);

It would be great to get a hint!
12  Using Arduino / LEDs and Multiplexing / Re: 40 channel 4051 multiplexer analog ins affect neighbours values – help... on: March 07, 2013, 05:52:19 pm
thank you guys! everything works like a charm! no errors, no bleedings. the values are accurate, even with 100k pots and 4051 multiplexers.

it took some time, i had to resolder the pot matrix, somewhere there was a tiny bugs messing up the whole thing... now i can go further to the next step: playing around with midi values by turning a knob in the matrix.
13  Using Arduino / LEDs and Multiplexing / Re: 40 channel 4051 multiplexer analog ins affect neighbours values – help... on: February 26, 2013, 03:45:03 am
thank you both guys. step by step i'm getting into it. i'll post the results later!
14  Using Arduino / LEDs and Multiplexing / Re: 40 channel 4051 multiplexer analog ins affect neighbours values – help... on: February 25, 2013, 06:40:12 pm
Checked it. It really doesn't matter if its an 100k or 10k pot, I've tested them both.
The solution was so simple: I tested the 40 analog ins each only with one pot. Connecting all pots to the 40 inputs has removed the affection on the other neighbour inputs by approx 99%... Oh my.
15  Using Arduino / LEDs and Multiplexing / Re: 40 channel 4051 multiplexer analog ins affect neighbours values – help... on: February 25, 2013, 09:15:16 am
Quote
What you can try is reading each channel twice and only using the second result. This allows extra sample acquisition time.
this i will check out back at home!

Quote
However why on earth you are using a library like <analogmuxdemux.h> I don't know, it is simple enough to write code for this, and it might stop this fix from working.
thought it would be faster then writing a own buggy one smiley so ok, i'm going to write it from scratch if this fix^^ isn't wiring.
Pages: [1] 2