* Contest Winner!

Congrats to jonsta on winning the Human Instruments contest, his second in a row! Listen to his winning entry here.

:notbad:

Author Topic: MIDI Files in Text Editor  (Read 1887 times)

0 Members and 1 Guest are viewing this topic.

Offline outstretchedarm

  • Note to Self: Half Diminished Scale over 7(b9)
  • Forum Slayer
  • *****
  • Posts: 5,289
  • Helpfulness: 6
MIDI Files in Text Editor
« on: September 13, 2006, 08:16:07 AM »
I was feeling saucy just now, and thought I'd explore the source code of a midi file.  So I open the midi file with notepad, and copied and pasted that code into my text editor.

I see the following:
Code: [Select]
MThd      xMTrk   B ÿX ÿY   ÿQ
â ÿ%Ein' feste Berg       seq by R Jordan ÿ/ MTrk  ƒ ÿ!  À  ° °
7x@d HdxH  @  @d HdpH  @  Hd @dp@  H  Cd <dp<  C  <d EdxE  <  @d HdpH  @  >d GdxG  >  >d EdpE  >  ;d CdpC  ; x<d HdxH  <  @d GdpG  @  <d EdpE  <  <d CdpC  <  <d EdxE  <  <d Adx<  ;dx;  A  <d @dx@  >dx<  ;dx;  >  <dp< x@d HdxH  @  @d HdpH  @  Hd @dp@  H  Cd <dp<  C  <d EdxE  <  @d HdpH  @  >d GdxG  >  >d EdpE  >  ;d CdpC  ; x<d HdxH  <  @d GdpG  @  <d EdpE  <  <d CdpC  <  <d EdxE  <  <d Adx<  ;dx;  A  <d @dx@  >dx<  ;dx;  >  <dp< x7d <dx<  7  <d @d4@  Ad;A CdxC  <  @d EdpE  @  >d CdpC  >  Bd >dx>  B  >d CdpC  >  <dp<  >d CdpC  >  <d EdpE  <  >d GdpG  >  Hd @dp@  H  >d GdpG  >  Hd @dp@  H  >d GdpG  >  >d EdpE  >  >d CdpC  > xAd EdxE  A  Ed AdpA  E  Cd @dx@  C  Ad EdpE  A  >d CdxC  >  @d <dp<  @ x@d HdxH  @  @d GdpG  @  Ed <dp<  E  <d CdpC  <  <d EdxE  <  Ad <dx<  ;dx;  A  <d @dx@  >dx<  ;dx;  >  <dp< n<d 9dp9  <  7d <dp<  7  ÿ/ MTrk  Q ÿ!  Á  ± ±
Px‘0d 7dx7  0  0d 7dp7  0  0d 7dp7  0  4d 7dp7  4  5dx5  0d 7dp0  +dx+  7  2d 7dx7  6dx6  2  7d +dp+  7 x-d 4dx4  -  7d 4dp4  7  5dp5  0d 4dp4  0  -d 4dx4  -  2d 5dp5  2  7d 0dx0  +dp+  7  0d 4dp4  0 x0d 7dx7  0  0d 7dp7  0  0d 7dp7  0  4d 7dp7  4  5dx5  0d 7dp0  +dx+  7  2d 7dx7  6dx6  2  7d +dp+  7 x-d 4dx4  -  7d 4dp4  7  5dp5  0d 4dp4  0  -d 4dx4  -  2d 5dp5  2  0d 7dx0  +dp+  7  0d 4dp4  0 x4d 0dx0  4  7d 0d40  2d;2 4dx4  7  -d <dp<  -  2d ;dp;  2  2d 9dx9  2  +d ;dp;  +  0d 4dp4  0  /d 7dp7  /  -d 4dp4  -  +d 7dp7  +  0d 7dp7  0  +d 7dp7  +  0d 7dp7  0  7dp7  2d 6dp6  2  +d ;dp;  + x2d >dx>  2  5d <dp<  5  0d <dx<  0  )d <dp<  )  +d ;dx;  +  0d 7dp7  0 x-d 9dx9  -  4d 7dp7  4  5dp5  0d 4dp4  0  5d )dx)  5  +d 2dp2  4dx4  7dp7  +  0d 4dp4  0 n)d 5dp5  )  0d 4dp4  0  ÿ/

what do all the little boxes mean?  does that mean I am missing the font to view the file properly?

I have seen midi data before and i didn't look like this.  it wasmore like like couplets of data like HH and 01 and PP etc.

PS i have been using Ulipad to do my text-editing. It is pretty fun and easy yet powerful.  http://wiki.woodpecker.org.cn/moin/UliPad

Offline lonepdccrusader

  • Sr. Member
  • **
  • Posts: 562
  • Helpfulness: 0
  • Gender: Male
    • My Wikipedia user page
Re: MIDI Files in Text Editor
« Reply #1 on: September 13, 2006, 08:38:19 AM »
That's what happens when you open a binary file in a text editor. Those are numbers, not letters. Get a hex viewer to see the numbers (in hexadecimal). Personally, I use the free Biew (search for it).

Offline outstretchedarm

  • Note to Self: Half Diminished Scale over 7(b9)
  • Forum Slayer
  • *****
  • Posts: 5,289
  • Helpfulness: 6
Re: MIDI Files in Text Editor
« Reply #2 on: September 13, 2006, 08:44:37 AM »
good lookin out!