Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 03-24-2004, 09:12 PM   #1 (permalink)
 
Monster Techie

Join Date: Jul 2003

Posts: 1,179

Emily is on a distinguished road

Send a message via AIM to Emily
Default Midi

Does anyone know how to write MIDI files in VB?

Any help would be appreciated.
__________________
<a href=\"http://www.upstark.com\">www.upstark.com</a>
Emily is offline  
Old 03-29-2004, 10:50 AM   #2 (permalink)
 
Super Techie

Join Date: Dec 2003

Posts: 333

Harold III

Send a message via AIM to Harold III
Default

are you talking about writing a file with the notes that you input into the computer?

If so, I have a question first: are you able to write binary files with VB?
__________________
I do this for Aiur. NOT YOU.
Harold III is offline  
Old 03-29-2004, 06:29 PM   #3 (permalink)
 
Monster Techie

Join Date: Jul 2003

Posts: 1,179

Emily is on a distinguished road

Send a message via AIM to Emily
Default

No... I mean generating a MIDI file from scratch.

I found a few ways to do it with the API but it was long and tedious, and I was wondering if there was a shorter way.
__________________
<a href=\"http://www.upstark.com\">www.upstark.com</a>
Emily is offline  
Old 03-29-2004, 07:59 PM   #4 (permalink)
 
Super Techie

Join Date: Dec 2003

Posts: 333

Harold III

Send a message via AIM to Harold III
Default

if you can figure out a way to write binary files in VB, you can just write it with a few codes - just formating the file. midi files are binary, and they have a standard format (I know you knew it).

I don't know if VB can do what c does: in c, you can define a structure, and specify the bytes in every chunk (midi files are divided into chuncks).

I don't know if I'm clear or not.

.......wait a minute, take out your vb book and turn it to page 245, read the part called Processing Binary Files. I think you can also write your bytes into an array (ARRAY!!!!!!!!!!!!!OMFG I hate array) and save it into a binary file. I got homework to do tonight so I can't study it right now.
__________________
I do this for Aiur. NOT YOU.
Harold III is offline  
Old 03-29-2004, 11:05 PM   #5 (permalink)
 
Monster Techie

Join Date: Jul 2003

Posts: 1,179

Emily is on a distinguished road

Send a message via AIM to Emily
Default

Yes, you can write binary files in VB, but the problem is figuring out the standard format of a midi file.
__________________
<a href=\"http://www.upstark.com\">www.upstark.com</a>
Emily is offline  
Old 03-29-2004, 11:09 PM   #6 (permalink)
 
Super Techie

Join Date: Dec 2003

Posts: 333

Harold III

Send a message via AIM to Harold III
Default

oh emily don't worry about that I just studied the file format on Sunday and I can help you with it at any time
__________________
I do this for Aiur. NOT YOU.
Harold III is offline  
Old 03-29-2004, 11:17 PM   #7 (permalink)
 
Monster Techie

Join Date: Jul 2003

Posts: 1,179

Emily is on a distinguished road

Send a message via AIM to Emily
Default

Ok... so could you help me with it?
__________________
<a href=\"http://www.upstark.com\">www.upstark.com</a>
Emily is offline  
Old 03-30-2004, 09:41 AM   #8 (permalink)
 
Super Techie

Join Date: Dec 2003

Posts: 333

Harold III

Send a message via AIM to Harold III
Default

Quote:
Originally posted by Emily
Ok... so could you help me with it?
I don't know how much you know about binary and hex. Do you know how to convert them into decimal?

You need to find a "binary file viewer", in order to open a midi file and analyze it. I'll be online tonight sometime.
__________________
I do this for Aiur. NOT YOU.
Harold III is offline  
Old 03-30-2004, 09:58 AM   #9 (permalink)
 
Banned

Join Date: May 2003

Posts: 105

imported_Jack

Default

MIDI File format: http://crystal.apana.org.au/ghansper...le_format.html

Look a lot like a tcp packet....
imported_Jack is offline  
Old 03-30-2004, 07:28 PM   #10 (permalink)
 
Super Techie

Join Date: Dec 2003

Posts: 333

Harold III

Send a message via AIM to Harold III
Default

Quote:
Originally posted by Jack
MIDI File format: http://crystal.apana.org.au/ghansper...le_format.html

Look a lot like a tcp packet....
This page is good. Open a midi file in binary and compare its content with the format.
__________________
I do this for Aiur. NOT YOU.
Harold III is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On