Show Posts
Pages: [1]
1  Forum 2005-2010 (read only) / Bugs & Suggestions / [m by=mellis destboard=programming dest=1242565580]: Problem with example in Getting Started Manual on: May 30, 2009, 04:28:10 pm
[moved] [link=http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1242565580/0]Syntax & Programs[/link] [move by] mellis.
2  Forum 2005-2010 (read only) / Syntax & Programs / Problem with example in Getting Started Manual on: May 17, 2009, 08:06:20 am
Today I just started using Arduino. It is really great. But forgive me when I am asking something totally stupid.
I am using the manual Getting started with Arduino. I am making the last example 'Arduino Networked Lamp'. In this project I need Processing and Arduino IDE working together. So I have two sketches. In the sketch for processing it says:
font = loadFont("HelveticaNeue-Bold-32.vlw");

The book explains that the font in processing should be like this otherwise Arduino ide can't read it. The problem is that processing hasn't got a helvetica font. And I searched internet about this problem but can't find a solution.
Does anybody know a solution?
Thnx!! smiley
3  Forum 2005-2010 (read only) / Interfacing / Re: problem using arduino as midi on: July 07, 2009, 04:26:40 am
I want to make a midi-controller. It seems that this midi-library is only useful if I want to use arduino as midi-input? Or do I misunderstand?
4  Forum 2005-2010 (read only) / Interfacing / Re: problem using arduino as midi on: July 06, 2009, 07:12:46 am
I want to use an infrared sensor to control a knob on my virtual soft synth. So I am experimenting with the midi language. But I still don't get it yet. The midi-output I build is not stable, it keeps on giving messages. I have to understand better what this midi-signal consists of. It is hard to find proper info on the internet. Then I have to understand the arduino langauge better. Well enough work to do. If you got any idea where or how.... smiley

5  Forum 2005-2010 (read only) / Interfacing / Re: problem using arduino as midi on: July 06, 2009, 03:07:25 am
Thanx for the reactions. smiley
I described the making of the midi jack wrongly but corrected it.
I just built the Midi output from roguescience.... and this one worked:))
So finally I make connection. So it seems there was something wrong in the code .
6  Forum 2005-2010 (read only) / Interfacing / Re: problem using arduino as midi on: July 05, 2009, 04:17:51 pm
I use 5v and the gnd.
from 5v to the button then from the other side of the button one cable to the ground and one cable to 10Kohm resistor and from the resistor to digital 8.

The midi jack. Looking from the back with the pins under (like a smile)
The TX is connected to the fourth pin from the left.
The gnd in the middle
5v on the second pin from the left

This midi jack I put in the midi-input of my soundcard
7  Forum 2005-2010 (read only) / Interfacing / problem using arduino as midi on: July 05, 2009, 03:06:11 pm
Hi folks!
This is my first arduino project, zo I am a novice to using the arduino. I want to use arduino as an interface for midi-control. I made I really simple setup. I use a piezobutton and connect a midi cable to the arduino board. This goes in the midi-in from my emu 0404 pci soundcard.
In reason, cubase, FM7 or midi ox it isn't showing any signal.
It would be great if someone could help me out!

In arduino I  used the following code:
/*
 * Convert Arduino to a MIDI controller using 1 digital input.
 *
 * This sketch is set up to send 1 MIDI notes on MIDI channel 1,

 */

// define the pins we use
int switchPin1 = 8;      

// general midi notes
char note1 = 60; //Middle C
char note2 = 62; //D
char note3 = 64; //E
char note4 = 65; //F
char note5 = 67; //G
char note6 = 69; //A

// Variables
int switchState1 = LOW;

int currentSwitchState1 = LOW;



void setup() {

  // set the states of the I/O pins:
  pinMode(switchPin1, INPUT);
  
  // set MIDI baud rate :
  Serial.begin(31250);

}

void loop() {

  //switchPin1
  currentSwitchState1 = digitalRead(switchPin1);
  if( currentSwitchState1 == LOW && switchState1 == HIGH ) // push
    //Note on channel 1 (0x90), some note value (note), middle velocity (0x45):
    noteOn(0x90, note1, 0x45);
  if( currentSwitchState1 == HIGH && switchState1 == LOW ) // release
    //Note on channel 1 (0x90), some note value (note), silent velocity (0x00):
    noteOn(0x90, note1, 0x00);
  switchState1 = currentSwitchState1;

}

// Send a MIDI note-on/off message.  
void noteOn(char cmd, char data1, char data2) {
  Serial.print(cmd, BYTE);
  Serial.print(data1, BYTE);
  Serial.print(data2, BYTE);
}


Pages: [1]