05 April 2015, 03:12 | #1 |
Registered User
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
|
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 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 http://aminet.net/package/mus/edit/camd CAMD also looks very complicated to use, not sure why 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? |
05 April 2015, 03:34 | #2 |
Ruler of the Universe
Join Date: Mar 2010
Location: Lanzarote/Spain
Posts: 6,185
|
|
05 April 2015, 03:52 | #3 |
Registered User
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
|
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 Last edited by NovaCoder; 06 April 2015 at 02:44. |
06 April 2015, 16:10 | #4 |
Total Chaos forever!
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,186
|
You might look on the Developer CD. I think the official release version and headers are there.
|
07 April 2015, 02:24 | #5 |
Registered User
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
|
Thanks, I'll see if I can find the CD on the Net
|
07 April 2015, 13:27 | #6 | |
Longplayer
|
Quote:
I added the files from the dev cd to the zone if they can help. Last edited by Mad-Matt; 07 April 2015 at 13:36. |
|
08 April 2015, 01:08 | #7 |
Registered User
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
|
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:
Last edited by NovaCoder; 15 April 2015 at 02:16. |
17 April 2015, 15:22 | #8 |
Registered User
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
|
OK got it working in ODAMEX
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... [ Show youtube player ] Last edited by NovaCoder; 27 April 2015 at 03:56. |
17 April 2015, 19:20 | #9 |
Ruler of the Universe
Join Date: Mar 2010
Location: Lanzarote/Spain
Posts: 6,185
|
Congrats bro! Very impressive
|
18 April 2015, 00:39 | #10 |
Registered User
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
|
|
18 April 2015, 00:52 | #11 |
Ruler of the Universe
Join Date: Mar 2010
Location: Lanzarote/Spain
Posts: 6,185
|
|
18 April 2015, 02:29 | #12 | |
Registered User
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
|
Quote:
This should mean that ScummVM with MIDI music will run a bit faster than when you try and emulate MIDI. |
|
18 April 2015, 02:34 | #13 | |
Ruler of the Universe
Join Date: Mar 2010
Location: Lanzarote/Spain
Posts: 6,185
|
Quote:
(Translation: Amazing! Is he crazy?, So Cool-Cool-Cool Thanks master!) Last edited by Retrofan; 18 April 2015 at 15:21. |
|
18 April 2015, 17:52 | #14 |
Registered User
Join Date: Dec 2013
Location: Hartlepool / England
Posts: 389
|
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 |
19 April 2015, 05:37 | #15 |
Registered User
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
|
Cool
No not yet, I'll add Prisma support then do a release! |
23 April 2015, 18:22 | #16 |
Registered User
Join Date: Dec 2013
Location: Hartlepool / England
Posts: 389
|
No worries mate, can't wait!!
|
24 April 2015, 04:01 | #17 |
Registered User
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
|
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. |
25 April 2015, 04:58 | #18 | |
Registered User
Join Date: Dec 2013
Location: Hartlepool / England
Posts: 389
|
Quote:
Does this also open up the possibility of real MIDI in ScummVM? |
|
25 April 2015, 12:22 | #19 |
Registered User
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
|
|
23 October 2016, 00:19 | #20 | |
Ruler of the Universe
Join Date: Mar 2010
Location: Lanzarote/Spain
Posts: 6,185
|
Quote:
Thanks. |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
wanted: midi interface for A500 (midi out) | lost_lemming | MarketPlace | 1 | 19 February 2010 14:24 |
looking for a midi interface... | pbareges | MarketPlace | 2 | 04 April 2007 14:48 |
A500 and MIDI | pakipaki | support.Hardware | 4 | 29 June 2006 00:43 |
Midi | DeAdLy_cOoKiE | support.WinUAE | 2 | 07 August 2005 12:23 |
Looking for a MIDI | Rastanking | Nostalgia & memories | 0 | 11 July 2005 20:05 |
|
|