Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Any C programmers wanna help convert code to convert between MIDI + CSV?
#14
(08-26-2022, 04:24 AM)JRace Wrote: Is this why you wanted info about C compilers, IDEs, etc?


Ugh, that's pretty densely packed C, so conversion to a different language might take a minute or three and induce a few headaches.

Unguarded, unblocked multi-statement lines following for() statements?.  Good God why?  That's a invitation for bugs.  Thankfully GCC complains about that.

Anyway, I can't help on a conversion project at this time, but I edited the C sources which allow them to compile without error using QB64PE's bundled MinGW compiler.

I assumed those multi-statement lines were supposed to be blocks and treated them as such, blocking them up nice & neat for compilation.  Hopefully this doesn't break functionality.

They both run well enough to display a list of options when run from the command line, but I have no MIDI files to test them on, so no guarantees that they will be bug-free.  You will have to test it.

Zip file attached which includes original source from your post, compileable source, and MinGW-compiled Windows 32-bit executables.  That compilable source includes a batch file to automate compilation using QB64's bundled MinGW.


(@mnrvovrfc : I heard a lot of good things about Power C.  I started out with James E. Hendrix's Small C, myself.  Good times!)

Well thank you! I shall give this a go. Moving us a little further along. 

PS Some MIDI files for you 
https://freemidi.org/artist-465-frank-zappa
Reply


Messages In This Thread
RE: Any C programmers wanna help convert code to convert between MIDI + CSV? - by madscijr - 08-26-2022, 04:51 AM



Users browsing this thread: 20 Guest(s)