Show Posts
Pages: 1 [2] 3
16  Using Arduino / Programming Questions / using a fluxamasynth with midi controller shield on: January 15, 2013, 10:39:47 pm
Do I have to program them one at a time or do I stack them three shields high and add more code?

Oh I use the uno to program my boards.  smiley-razz
17  Using Arduino / Programming Questions / Re: Fluxamasynth bagpipe chanter on: January 13, 2013, 05:58:55 pm
What I'm trying to ask is what code do I add to define a note as a spot on the fluxamasynth board.
A0 to A5.
D0 to D13.
http://shieldlist.org/moderndevice/fluxamasynth

I am tring to make touch senitive controls. maybe with a pressure switch?
And most definitely an midi control board for changing instruments and hooking it up to another midi device.
https://www.sparkfun.com/products/9595 <------Much like this one.
code like this.
Code:
#define

Any code suggestion? smiley-confuse smiley-confuse
Now I have my arduino compatible midi controler shield!
Can I program it with the uno on bottom, fluxamasynth, middle, midi shield on top?
18  Using Arduino / Programming Questions / Fluxamasynth bagpipe chanter on: January 13, 2013, 05:25:38 pm
 smiley
Hello all

I am working on writing code for a fluxamasynth bagpipe chanter.

Here are my boards, fluxamasynth, arduino un, arduino (compatible) midi controler.
Don't worry, I have the Fluxamasynth libraries.

My question is how do I define notes as leds on the fluxamasynth board?
http://shieldlist.org/moderndevice/fluxamasynth  <------This shows the board.

Do I have to program the midi controler?

I will post the code I have for the sake of it.
Code:
#include <Fluxamasynth.h>
#include <NewSoftSerial.h>
#include <PgmChange.h>



  Fluxamasynth = Fluxamasynth();
 
 
19  Using Arduino / Audio / Re: Fluxamasynth Bagpipe chanter on: January 11, 2013, 07:51:20 pm
 smiley
Ok, now I have the right libraries for fluxamasynth and I can compile a sketch.
I will now work to make this an instrument. bagpipe chanter.
Please send links for code on and things that may help.

Thanks marco. Sorry if I wasted your time.
20  Using Arduino / Programming Questions / Re: Writing code for fluxamasynth in 1.03 arduino on: January 11, 2013, 07:33:22 pm
Problem solved, it compiled smiley smiley smiley smiley smiley smiley smiley smiley smiley
And uploaded!!! smiley
Thank you Paul! I feel so dumb. smiley-razz
Hey does anyone have code for fluxamasynth to make it an instrument? I need to know where to start. smiley-mr-green
21  Using Arduino / Programming Questions / Re: Writing code for fluxamasynth in 1.03 arduino on: January 11, 2013, 03:49:12 pm
Can you send me an link to the latest versions?  smiley-money
22  Using Arduino / Programming Questions / Re: Writing code for fluxamasynth in 1.03 arduino on: January 10, 2013, 07:50:48 pm
Code:
#include <SoftwareSerial.h>

#include <Fluxamasynth.h>

#include <PgmChange.h>

#include <fluxamasynth_nss.h>


#if (ARDUINO >= 100)
#include <Arduino.h>
#else
#include <WProgram.h>
#endif


Fluxamasynth synth;

#define byte uint8_t

C:\arduino\arduino-1.0.3\libraries\Fluxamasynth/Fluxamasynth.h:21
:22: error: WProgram.h: No such file or directory
in file included from
C:\arduino\arduino-1.0.3\libraries\Fluxamasynth/Fluxamasynth.h:22
,

conflicting return type specifed for 'virtual void
NewSoftSerial::write(uint8_t)'


I got the Fluxamasynth libraries from
http://wiki.moderndevice.com/pmwiki.php?n=MD.ListMethods
i couldn't get the libraries from github, no download link just printed.

Please help!  smiley-cry smiley-cry smiley-cry smiley-cry smiley-cry smiley-cry
23  Using Arduino / Programming Questions / Re: Writing code for fluxamasynth in 1.03 arduino on: January 10, 2013, 07:27:49 pm
c:\arduino\arduino-1.0.3\libraries\Fluxamasynth/NewSoftSerial.h:7
0: error: conflicting return type specified for 'virual void
NewSoftSerial:write(uint8_t)'
C:\arduino\arduino-1.0.3\hardware\arduino\cores\arduino/Print.h:4
8: error:   overriding 'virual size_t Print::wite(uint8_t'
in file included from newtest2.ino:1:
C:\arduino\arduino-1.0.3\libraries\Fluxamasynth\Fluxamasynth.h:32
: error: 'byte' does not name a type
24  Using Arduino / Programming Questions / Re: Writing code for fluxamasynth in 1.03 arduino on: January 10, 2013, 06:29:18 pm
It came with arduino 1.0.3

Where do I get a ide that will work?

Once arduino released 1.0 Wprogram.h was renamed as arduino.h.
25  Using Arduino / Programming Questions / Writing code for fluxamasynth in 1.03 arduino on: January 10, 2013, 04:51:29 pm
Hi

I am working on a project with fluxamasynth, I have books on c++ and arduino.
some ression i do not have the right librarys for this code.
When I try to compile my code it says, "can not find Wprogram.h" and "byte not declared".

I am trying code like this to fix it.

Code:
#include <Fluxamasynth.h>
#include <NewSoftSerial.h>
#include <PgmChange.h>

#include <fluxamasynth_nss.h>
#include <newsoftserial.h>

#if (ARDUINO >= 100)
#include <Arduino.h>
#else
#include <WProgram.h>
#endif


Fluxamasynth synth;

#define byte uint8_t

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

void setup()
{
  Serial.begin(9600);
  synth.setMasterVolume(100);
}

void loop()
{
  byte i=0,n=0,z=0;

  for (n=0;n<=1;n++)
  {
    for(i=0;i<=127;i++)
    {
      synth.programChange(n*127,0, i);

      Serial.print("Bank: ");
      Serial.print(n,DEC);
      Serial.print(" Sound: ");
      Serial.println(i,DEC);

      z=random(0,12);

      synth.noteOn(0, c3+z, 107);
      delay(100);
      synth.noteOn(0, e3+z, 107);
      delay(100);
      synth.noteOn(0, g3+z, 107);
      delay(100);
      synth.noteOn(0, c4+z, 107);

      delay(200);
      synth.noteOff(0, c3+z);
      synth.noteOff(0, e3+z);
      synth.noteOff(0, g3+z);
      synth.noteOff(0, c4+z);
      delay(200);
    }
  }
}


Do I need Wprogram.h at all?
I used the code
Code:
#if (ARDUINO >= 100)
#include <Arduino.h>
#else
#include <WProgram.h>
#endif
26  Using Arduino / Audio / Re: fluxamasynth on: January 09, 2013, 05:17:53 pm
 smiley thank you!

i got wprogram.h from arduino .0023 i have placed it in C:\arduino\arduino-1.0.3\hardware\arduino\cores\arduino
Code:
#include <Fluxamasynth.h>
#include <NewSoftSerial.h>
#include <PgmChange.h>

#include <fluxamasynth_nss.h>
#include <newsoftserial.h>

#if (ARDUINO >= 100)
#include <Arduino.h>
#else
#include <WProgram.h>
#endif


Fluxamasynth synth;

#define uint8_t byte
]

yep still giving me problems.
27  Using Arduino / Audio / Re: fluxamasynth on: January 09, 2013, 02:30:42 am
it's looking in the fluxamasynth.h libraries and it says byte not declared. smiley-sad
I am using the old libraries and I can't download the new ones
here
https://github.com/moderndevice/Fluxamasynth-Shield

oh the data.h is genrated by a midi file with midi2fluxama.pl
it will run on windows. smiley-cool

why do I have to rename byte to uint8_t? do i have to do this with all byte commands? smiley-mad
and parameters to byte, channel and other ones?

C:\arduino\arduino-1.0.3\libraries\Fluxamasynth/Fluxamasynth.h:21
:22: error: WProgram.h: No such file or directory

just found out that Wprogram.h is renamed to Arduino.h in later relesses

will this additional code work?

Code:
#if (ARDUINO >= 100)
#include <Arduino.h>
#else
#include <WProgram.h>
#endif
28  Using Arduino / Audio / Re: fluxamasynth on: January 09, 2013, 01:50:57 am
Are you saying i need a new shield to do this program? smiley-razz
I tried "mary had a little lamb" and i used uint8_t and it still didn't work. smiley-razz
My fluxamasynth plays a scale with a example in the arduino software.
29  Using Arduino / Audio / Re: fluxamasynth on: January 08, 2013, 11:41:58 pm
I think i know the problem. there are diffrent fluxamasynth librarys i may have downloaded the wrong one.h

oh... I have updataed the librarys and the compiler still says "byte  has not been declared" even with the program "mary had a little lamb"

 smiley-sad smiley-sad smiley-sad

in such a dumb way i forgot to move pin 4 to pin 1.
now it plays a scale. do i have to format the fluxamasynth or just reprogram it.
30  Using Arduino / Audio / Re: fluxamasynth on: January 08, 2013, 06:10:54 pm
https://www.sparkfun.com/products/9595

this is alot like this one.
Pages: 1 [2] 3