473,379 Members | 1,185 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Renaming Mide files to include element from File Properties

Hope someone can help here. My brother has asked me if I can assist in
renaming about 1500 midi files which are associated with a programm called
Cubase SE. With that software installed he can click on the file
Cm9146.mid and on the Properties tab there is details tab which lists
various properties the one he wants is Sequence Name the actual song name
e.g. 'Penny Lane'.
What he wants me to do (if I can) is rename the .mid file to be
PennyLaneCm9146.mid.

I am familiar (definitely not expert) with Visual Studio and have 'played'
with VB, but I dont have a clue where to start with this.
Would it be possible to do this? How would I access these properties? Any
assistance and code sample would be greatly appreciated.

Many thanks
Jack

Apr 4 '07 #1
1 1480
Jack Maxwell wrote:
I am familiar (definitely not expert) with Visual Studio and have
'played' with VB, but I dont have a clue where to start with this.
Would it be possible to do this? How would I access these
properties? Any assistance and code sample would be greatly
appreciated.
I don't know how you could interact with the properties that Windows
displays, but it should be quite possible to read the title out from the
MIDI file yourself.

It's maybe going to be a bit complex if you're not familiar with binary file
manipulation.

You can find file specifications for .MID files here:

http://www.wotsit.org/list.asp?search=mid&button=GO%21

One of the "meta" events in a MIDI file is event 03, which contains the song
title. In order to extract it you will need to open the file, parse through
the data until you find the track and the locate the title event within the
track. That should give you the information you need to extract the title
from the file.

Good luck!

--

(O)enone
Apr 5 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Vince C. | last post by:
Hi all, I've created XML documents that are described with a schema. I'm using those documents to create web pages. All my web pages contain a fixed header and a variable document part. The...
5
by: Adam Barr | last post by:
I have a tag foo that I want to copy unchanged when it is a subtag of bar, so I have a template (x is the namespace for the document): <xsl:template match="x:bar/x:foo"> <xsl:copy>...
9
by: Charley Kyd | last post by:
I'm a newbie who needs advice about how to use external files of JavaScript code. I spent an hour this afternoon browsing through JavaScript books at the local book store. In about 15 different...
0
by: MikeY | last post by:
Hopefully someone can help, I have a listview box where I display my desired files. I single click on the desired file to be renamed and I rename it with a new name. My problem arises when the...
2
by: Markus Dehmann | last post by:
Is there a library that supports Java-like .properties files? I have several settings for each of my classes. So, I want to have a file like this: MainClass.numOfLoops = 3232 # the number of...
4
by: bibsoconner | last post by:
Hi, I hope someone can please help me. I'm having a lot of trouble with schema files in .NET. I have produced a very simple example that uses "include" to include other schema files. It all...
7
by: Matt Jensen | last post by:
Howdy I want to simulate with .Net what I used to do with classic ASP where you would have a series of include files with utility functions that you would include when you needed them. I read...
3
by: Steve Teeples | last post by:
I have a simple application built with several DLLs that access XML files for information. My local setup works just fine. As defined in my Install folder, the files are copied to the...
221
Atli
by: Atli | last post by:
You may be wondering why you would want to put your files “into” the database, rather than just onto the file-system. Well, most of the time, you wouldn’t. In situations where your PHP application...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.