Any C programmers wanna help convert code to convert between MIDI + CSV?
#44
Quote:One of the challenges I am having, is knowing whether the code we're working with actually works. 
Converting a MIDI file to text, and back again doesn't seem to work, and I'm not sure if that's because the flavor of C the code is in, doesn't translate exactly to what the QB64's compiler expects, or what.
Maybe comparing it to other projects that do the same thing will help. 
I found a bunch in C and also VB6, Python, and other languages. 
I don't know if this will help anyone verify what the code should be doing, but it might help me!
Enjoy... 


If I understand correctly, you want to convert a midi file to text, and then pass it to the C compiler in QB64. Wouldn't it be easier to add something to QB64 that could, for example, call up the media player?

I looked at your list of links again and saw something with VB6 and videos. I only have VB 5, VB 6 cannot be installed, but it also works with VB 5. I have now created a program like this.

I don't know if it helps. The source code:

Code: (Select All)
Option Explicit

Private Sub cmdAbspielen_Click()
  WindowsMediaPlayer1.URL = Text1.Text
End Sub

Private Sub cmdAnhalten_Click()
  WindowsMediaPlayer1.Close
End Sub

Private Sub cmdEnde_Click()
  End
End Sub

Private Sub cmdVideoeffenen_Click()

  Me.CommonDialog1.Filter = "WAV-Dateien (*.wav)|*.wav|" & "MP3-Dateien (*.mp3)|*.mp3|" & "MP4-Dateien (*.mp4)|*.mp4|" &   "Videodateien (*.avi)|*.avi|" & "MPEG-Dateien (*.mpg)|*.mpg|"
  CommonDialog1.ShowOpen
  Text1.Text = CommonDialog1.filename
End Sub

[Image: Video-mit-VB5-2022-09-01.jpg]
Reply


Messages In This Thread
RE: Any C programmers wanna help convert code to convert between MIDI + CSV? - by Kernelpanic - 09-01-2022, 06:04 PM



Users browsing this thread: 1 Guest(s)