compiling midisense software / firmware
Moderators: adafruit_support_bill, adafruit

compiling midisense software / firmware

by THW Mark on Sat Feb 09, 2008 6:54 pm

so, my midisense is ready to get rocking (except i still dont have my frikkin' usb midi interface)

anyway, a friend of me and i were discussing some of the functions/possibilities of midisense and have some ideas that require a bit of control logic. I've downloaded the firmware/software from the cvs repository and it looks clear to me (compliments on the comments!).. but im having some issues compiling.

I tried to compile using microsoft visual studio 2008 compiler. I installed wxwidgets and added the include folder. Now, i get reports that wxmidi.h and wxmididatabase.cpp are "in MAC file format", something with faulty linebreaks. Any idea's how to resolve this?

Or, is there just another (easier?) way to compile source in windows without using the visual studio compiler?
THW Mark
 
Posts: 36
Joined: Wed Aug 29, 2007 5:33 am
Location: Delft, Netherlands

by adafruit on Sat Feb 09, 2008 8:57 pm

whats the thing you want it to do?
User avatar
adafruit
 
Posts: 11671
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

by THW Mark on Sun Feb 10, 2008 4:20 am

i want to attach a ribbon strip to an analog port.
then a digital push button to a dport.

in the software, you can choose whether a ribbon strip keeps sending its last touch or drop it on release. i want to use the switch to change between those options live.

the second thing i want to do, which is less important, is to use one or more digital switches to change the midi signal assignment of the analog ports.
THW Mark
 
Posts: 36
Joined: Wed Aug 29, 2007 5:33 am
Location: Delft, Netherlands

by adafruit on Sun Feb 10, 2008 12:45 pm

can you maybe use MAX/MSP to do some of these hacks? it would be like 23409823428 times easier :)
User avatar
adafruit
 
Posts: 11671
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

by THW Mark on Sun Feb 10, 2008 1:18 pm

i dont have any experience with max/msp, but from what i read, i take it is a package that should run at your pc to interpret the midi data and then do something with that.

the midisense setup should eventually (when configging is done) work without a pc. I want to create an interface that controls (one, or multiple) guitar effects by putting a limited number of knobs/sliders on the guitar, a midisense controller on/in the back and a link to the guitar effects. I don't have all the stuff here to test it, but i will post some more details later.

anyway, because no computer will be connected in the end, i thought i couldnt use max/msp and thought about adding features to the software.

but about building the midisense software, did you build it on a windows pc? or just on your mac and then run it in windows?
THW Mark
 
Posts: 36
Joined: Wed Aug 29, 2007 5:33 am
Location: Delft, Netherlands

by adafruit on Sun Feb 10, 2008 3:52 pm

i dont think you want to hack the software, i think you mean the firmware
the software is only for configuring it
User avatar
adafruit
 
Posts: 11671
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

by THW Mark on Sun Feb 10, 2008 4:37 pm

hmmm, well my idea was to get both working (be able to compile them) so that 'new' firmware features can be enabled/disabled from the user interface.

But.. now i think of it, can i just upload the firmware using midi or do i need to get myself a usb/avr programmer?
THW Mark
 
Posts: 36
Joined: Wed Aug 29, 2007 5:33 am
Location: Delft, Netherlands

by adafruit on Mon Feb 11, 2008 12:47 am

you can do it with midi (the bootloader) but since this may be a rather arduous process i would invest in an avr programmer :)
User avatar
adafruit
 
Posts: 11671
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

by THW Mark on Mon Feb 11, 2008 5:36 am

hmm ye, you got a point there. Especially when developping, it is easy to screw it. Ehm, well, actually it is hard to not screw it the first time ;)

is there any documentation on how you compiled/assembled the firmware? it is the one part in your avr tutorial that is not ready yet ;) Maybe you can tell me what packages you used, i hope i can figure it out then..

Thanks for the quick replies so far!
THW Mark
 
Posts: 36
Joined: Wed Aug 29, 2007 5:33 am
Location: Delft, Netherlands

by THW Mark on Fri Mar 14, 2008 1:41 pm

oke, managed to compile the software in windows. if you just install the necessary tools to compile the arduino sketches, you can run the makefile of the midisense firmware as well.

compiling the windows application is a bit more of a problem. First of all, the "bk-deps" file in the repository uses dos-based linebreaks. They should be converted to unix breaks before compiling under cygwin, or you will get strange errors.

But then the following error comes up:

Code: Select all | TOGGLE FULL SIZE
$ make
./bk-deps g++ -c -o AvrMIDIBootload.o -D__WXMSW__     -I..  `wx-config --cxxflags` -ggdb -O0 -mthreads -Wall -Wundef -Wno-ctor-dtor-privacy ../AvrMIDIBootload.cpp
In file included from ../wxmidi.h:77,
                 from ../datalink.h:3,
                 from ../AvrMIDIBootload.cpp:4:
../portmidi.h:1101: error: expected `)' before '<<' token
../portmidi.h:1101: error: expected `)' before '<<' token
../portmidi.h:1101: error: expected `)' before '<<' token
../portmidi.h:1101: error: expected `,' or `;' before '<<' token
../portmidi.h:1247: error: `PmMessage' does not name a type
In file included from ../datalink.h:3,
                 from ../AvrMIDIBootload.cpp:4:
../wxmidi.h: In constructor `wxMidiShortMessage::wxMidiShortMessage(wxByte, wxByte, wxByte)':
../wxmidi.h:307: error: 'struct PmEvent' has no member named 'message'
../wxmidi.h: In member function `virtual wxByte wxMidiShortMessage::GetStatus()':
../wxmidi.h:331: error: 'struct PmEvent' has no member named 'message'
../wxmidi.h: In member function `wxByte wxMidiShortMessage::GetData1()':
../wxmidi.h:333: error: 'struct PmEvent' has no member named 'message'
../wxmidi.h: In member function `wxByte wxMidiShortMessage::GetData2()':
../wxmidi.h:335: error: 'struct PmEvent' has no member named 'message'
../wxmidi.h: At global scope:
../wxmidi.h:607: error: `PmMessage' has not been declared
../wxmidi.h:607: error: ISO C++ forbids declaration of `message' with no type
make: *** [AvrMIDIBootload.o] Error 1


is the cvs repository up to date / bugfree? Or am i doing something wrong here?
THW Mark
 
Posts: 36
Joined: Wed Aug 29, 2007 5:33 am
Location: Delft, Netherlands

by adafruit on Sat Mar 22, 2008 6:44 pm

the cvs respository needs cleaning :(
User avatar
adafruit
 
Posts: 11671
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: compiling midisense software / firmware

by herr_prof on Mon Feb 09, 2009 10:24 am

I was wondering if this attempt to add logic to the board was successful? What i'd like to do is have one fader, two knobs and five modifier buttons. Each button would change which cc's the fader and knobs send while depressed. I would like avoid having to do this on the pc side, but can in a pinch.
herr_prof
 
Posts: 1
Joined: Mon Feb 09, 2009 10:20 am