• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Midi file to Hex ASCII conversion

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, all
Can any body tell how a midi file can be converted
to Hex ASCII (or anu other format like rttl).what is the exact format of midi file & how it can be
read in proper manner (upto what extent java can
solve this problem).
Or there are any other sites which can help me out
in solving this problem.
Any kind of help would be highly appreciable.
Thanks,
ur friend in trouble,
Manoj Tyagi
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Manoj - I don't know much about MIDI files; I suggest googling "midi file format". As for hex output, Java doesn't seem to have a nice built-in display mechanism for this (other than Integer.toHexString(), which has lousy formatting for your purposes). But it's fairly easy to do yourself, and I happen to have some code lying around which is similar to what you probably want. It converts an array of bytes into hex with spaces and newlines inserted at regular intervals for readability. Hopefully it will be of some use to you...
 
Manoj Tyagi
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jim
Thanks for ur reply. Actually my purpose is little bit different. Actually i want to convert midi file format to RTTTL format (spec. by nokia) & then convert that RTTTL to Hex string which can be sent to mobile handsets so that user listens the song / tone.
I have tried googling (few midi sites & nokia site) but i am not able to find the enough details of RTTTL format (its structure & meaning).
If you can help me in any way, please right.
Thanks again.
Manoj Tyagi
 
reply
    Bookmark Topic Watch Topic
  • New Topic