Thread: Camd midi c++
View Single Post
Old 08 April 2015, 01:08   #7
NovaCoder
Registered User
 
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,406
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:
camd->parseMidi(FILE *filename); 
or even a
PHP Code:
camd->parseMidi(byte *data); 
It seems to need to run in a separate thread and constantly adjust the timing of the file (tempo).....painful!

Last edited by NovaCoder; 15 April 2015 at 02:16.
NovaCoder is offline  
 
Page generated in 0.06308 seconds with 11 queries