Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Any C programmers wanna help convert code to convert between MIDI + CSV?
#13
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 back in the day, and Mix Software is still out there selling Power C for DOS!  I started out with James E. Hendrix's Small C, myself.  Good times!)


Attached Files
.zip   MADSCIJR_MIDI_TO_CSV.zip (Size: 45.89 KB / Downloads: 42)
Reply


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



Users browsing this thread: 50 Guest(s)