Go Down

Topic: fluxamasynth (Read 1 time) previous topic - next topic

marco_c

To solve the byte problem you do the same as before.

That midi comms shield will allow you to communicate with a synthesiser or software on the PC willplay a midi stream.  I don't think it will help with the fuxamasynth. On the other hand you will be able to use the new shield to play midi files from the arduino using the library that I wrote (see other posts on this forum). :)
Arduino libraries http://arduinocode.codeplex.com
Parola hardware & library http://parola.codeplex.com

Trazman001

#16
Jan 09, 2013, 07:50 am Last Edit: Jan 09, 2013, 08:01 am by Trazman001 Reason: 1
Are you saying i need a new shield to do this program? :P
I tried "mary had a little lamb" and i used uint8_t and it still didn't work. :P
My fluxamasynth plays a scale with a example in the arduino software.

marco_c

You said you were getting a new shield. I just said that this was different from the fluxamasynth shield and can't see how it helps that to play on the fluxamasynth.

You have a fundamental problem with the shield and the example sketches you are using - you need to feed it data in a certain format that is created by the translation utility. You need to get that sorted out, pus some incompatibility because the examples are written using byte. There is no reason it should not work but you need to understand what the code is doing so you can solve the problems.

Have you looked where the data for Mary had a little lamb is to see if they are using byte there?
Arduino libraries http://arduinocode.codeplex.com
Parola hardware & library http://parola.codeplex.com

Trazman001

#18
Jan 09, 2013, 08:30 am Last Edit: Jan 09, 2013, 02:21 pm by Trazman001 Reason: 1
it's looking in the fluxamasynth.h libraries and it says byte not declared. :(
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. 8)

why do I have to rename byte to uint8_t? do i have to do this with all byte commands? :0
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: [Select]
#if (ARDUINO >= 100)
#include <Arduino.h>
#else
#include <WProgram.h>
#endif

marco_c

That code will work.

Byte is no longer supported by the new arduino libraries and it is now renamed to uint8_t, so you either use #define to rename, as suggested above, or rename all instances. They are the same unit of data storage, just different names.
Arduino libraries http://arduinocode.codeplex.com
Parola hardware & library http://parola.codeplex.com

Go Up