Camd midi c++
Anyone got any experience of using the CAMD library?
I've got myself a nice MT-32 and a MIDI stream so it would be nice to put the two together :p I can see the 'official' library on AmiNet and someone also did an open source version. Neither version includes any proto type header files which is annoying, I want plug-and-play dammit! I could generate my own header file but that would be hard and time consuming :guru http://aminet.net/package/mus/edit/camd CAMD also looks very complicated to use, not sure why :confused Here is some sample code that I found (http://wiki.amigaos.net/wiki/Camd_Library) PHP Code:
I just want to pass some MIDI data through my serial port to my MIDI interface, nothing fancy. Maybe CAMD isn't the best solution, anyone got any better ideas? |
|
Yep, just did...thanks :)
Update: I'm now thinking it will be easier for me to just open the serial device and pass my MIDI data to it directly (and skip CAMD) http://www.soundonsound.com/sos/1995...miganotes.html |
You might look on the Developer CD. I think the official release version and headers are there.
|
Thanks, I'll see if I can find the CD on the Net :)
|
Quote:
I added the files from the dev cd to the zone if they can help. |
Thanks and thanks :)
Yep, I'll try with camd Update: I had to create my own header file for gcc in the end, I'll upload my generated header here for the future generations ;) It kind of works with DOOM but doesn't sound quite right, I think it's some kind of timing issue. I can't tell if it's a problem with the data being supplied to the library or if I'm just using it wrong. The other option is to just read a midi file myself but after looking at the code examples it seems ridiculously complicated. Instead of a nice a simple PHP Code:
PHP Code:
|
OK got it working in ODAMEX :xmas
The problems I was having using the game to load and play a MIDI file was to do with priority...just not workable unless it runs in it's own thread. So my solution for ODAMEX was to create a separate thread and read in the MIDI file, this seems to work fine. I'm just uploading a video now... https://www.youtube.com/watch?v=ShVvAVELTQM |
Congrats bro! Very impressive :)
|
Quote:
|
Quote:
|
Quote:
This should mean that ScummVM with MIDI music will run a bit faster than when you try and emulate MIDI. |
Quote:
(Translation: Amazing! Is he crazy?, So Cool-Cool-Cool Thanks master!) |
Yeh! I'm getting excited, might just dig my Amiga back out of the cupboard!!
Great work Nova, is the midi Odamex available for download? I'd love to try it with my SC55 :D |
Cool :)
No not yet, I'll add Prisma support then do a release! |
No worries mate, can't wait!!
|
I'm porting the latest version of ODAMEX (0.7) at the same time so it will probably take me another couple of weeks.
:) The best thing about this CAMD knowledge is that I can now begin adding real MIDI (and Prisma) support to a whole load of my earlier ports like Wolfy, Descent and Duke Nukem. |
Quote:
Does this also open up the possibility of real MIDI in ScummVM? |
Quote:
|
Quote:
Thanks. |
All times are GMT +2. The time now is 01:31. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.