Hi,
I'm just writing some MIDI file ( SMF 0/1) loading routines and
while the file structure is quite simple I came across some MIDI files
(mainly .KAR (=midi + embedded lyric events)) where there are some
byte sequences that do not make sense to me.
(attaching a short hexdump at the end of mail).
Basically I read the MTrk shown below and after the
ff 01 TEXT meta event which contains the text 'Reset Volume'
there are sequences of 00 07 7f till the next ff 01 text event
'Reset Pan'.
But the midi file spec says that after each event (the Reset Volume text)
you need to read the deltatime (0 in this case) and then read the status byte
in that case 7 means running status active thus another
text event should follow.
so you interpret ff 7 as META_CUE event of length 127.
But this does not make sense since there are no 127 bytes following.
That way the midi reader gets lost and aborts.
If you look at the data after 'Reset Pan' same problem: sequences
of 00 0a 40 till the next event.
So I ask if some MIDI expert could shed some light if I missed something.
timidity seems to cope fine with these events.
(reads the file correctly and plays the lyrics too).
many thanks for your hints.
Benno.
00026e0: 004d 5472 6b00 0001 b400 ff21 0100 00ff .MTrk......!....
00026f0: 0304 4261 7373 00c1 2700 b107 6400 b10a ..Bass..'...d...
0002700: 402e c123 8142 b10a 4000 5b40 0007 0085 @..#.B..@.[@....
0002710: f810 ff01 0c52 6573 6574 2056 6f6c 756d .....Reset Volum
0002720: 6500 077f 0007 7f00 077f 0007 7f00 077f e...............
0002730: 0007 7f00 077f 0007 7f00 077f 0007 7f00 ................
0002740: 077f 0007 7f00 077f 0007 7f00 077f 0007 ................
0002750: 7f00 ff01 0952 6573 6574 2050 616e 000a .....Reset Pan..
0002760: 4000 0a40 000a 4000 0a40 000a 4000 0a40 @..@..@..@..@..@
0002770: 000a 4000 0a40 000a 4000 0a40 000a 4000 ..@..@..@..@..@.
0002780: 0a40 000a 4000 0a40 000a 4000 0a40 8140 .@..@..@..@..@.@
0002790: ff01 1052 6573 6574 2045 7870 7265 7373 ...Reset Express
00027a0: 696f 6e00 0b7f 000b 7f00 0b7f 000b 7f00 ion.............
00027b0: 0b7f 000b 7f00 0b7f 000b 7f00 0b7f 000b ................
00027c0: 7f00 0b7f 000b 7f00 0b7f 000b 7f00 0b7f ................
00027d0: 000b 7f00 ff01 1152 6573 6574 2050 6974 .......Reset Pit
00027e0: 6368 2057 6865 656c 00e1 0040 0000 4000 ch Wheel...@..@.
00027f0: 0040 0000 4000 0040 0000 4000 0040 0000 .@..@..@..@..@..
0002800: 4000 0040 0000 4000 0040 0000 4000 0040 @..@..@..@..@..@
0002810: 0000 4000 0040 0000 4000 ff01 1652 6573 ..@..@..@....Res
0
-------------------------------------------------
This mail sent through http://www.gardena.net
Hi all!
There is now a new soft synth available at
http://hem.passagen.se/ja_linux/
The page should explain approximately what it is all about
(
)
c[] // Jens M Andreasen
URGENT ASSISTANCE NEEDED
You may be surprise to receive this Email from me since you do not know me
personally.
However, I would like to introduce myself. I am Emmie Kings the
son of Doctor. Ebba kings. Who was murdered few months ago in Zimbabwe,
as a result of land dispute? Before the death of my father (Dr. kings), he
had taken me to Amsterdam and deposit the sum of Fifteen Million United
States dollars (US$15,000,000) in a security company, as he foresaw the
looming danger in Zimbabwe. The money in question was deposited in a box as
Gemstones to avoid much demurrage from the security company. The proposed
amount was meant for the purchase of new machines and chemicals for the
farms and establishment of new farms on Swaziland. As you may be aware this
land problem came into force when Zimbabwe president Mr. Robert Mugabe
Introduced the Land Reformed Act of which my father rich farmers and some
black farmers where affected. This resulted to the killing and Mob action by
Zimbabwe war veterans and some lunatics in the society, a lot of people were
killed because of this Land reformed act of which my dad was one of the
victims. It is against this background that my family and Iaugustim who are
currently staying in Amsterdam decided to transfer my father's money to a
foreign account. Since the Dutch law prohibit a refugee (asylum seeker) to
open any account or be involved in any financial transaction. As
The eldest son of my father, I am saddled with the responsibility of seeking
a genuine foreign account where the money could be transferred. I am faced
with the dilemma of investing this amount of money in Holland for the fear
of going through the same experience in future since both countries have
similar history. Moreover, The Netherlands foreign exchange policy does not
allow such investment from asylum seekers. I humbly solicit for your
assistance in the following:
1) Pay a short working day visit to Amsterdam the Netherlands so that we see
face to face, Have a table talk that would create confidence in me that the
funds will be safe in your hands and have an agreement from an advocate,
which will be duly and legally sign in his chambers before taken any step in
this transaction.
2) Get the entire necessary document regarding this transaction and claim
the boxes from the security company, open an account in your name with a
local bank here and deposit the money for onward transfer to your designated
account in overseas.
3) Make a good arrangement for investment and do invest the money for me, I
am willing to give you some percentage for your assistance on this, and I
offer you 15%. 5% for any expenses, including your telephone calls and any
other expenses that may arise during this process. 80% would be invested and
you get your wages monthly for managing the funds. Contact me on the above
Email, provide me with your telephone and fax number so we can discuss
further and a chance for you to ask me any question you may have in mind,
while you maintain the absolute secrecy required in the transaction.
Please kindly get back to me with your detail contacts.
Sincere Regards,
Emmie Kings.
El Sábado, 9 de Agosto de 2003 18:00, Benno Senoner escribió:
> Basically I read the MTrk shown below and after the
> ff 01 TEXT meta event which contains the text 'Reset Volume'
> there are sequences of 00 07 7f till the next ff 01 text event
> 'Reset Pan'.
> But the midi file spec says that after each event (the Reset Volume text)
> you need to read the deltatime (0 in this case) and then read the status
> byte in that case 7 means running status active thus another
> text event should follow.
> so you interpret ff 7 as META_CUE event of length 127.
> But this does not make sense since there are no 127 bytes following.
> That way the midi reader gets lost and aborts.
IIRC, sysex events and meta-events cancel any running status which was in
effect. Running status does not apply to and may not be used for these
messages.
If the above rule was applied, you can't assume 0xff as a running status byte
and use it for the next messages after the text meta-event, but in this case
there is not a status byte for them. If the rule was half-applied, then may
be a running status of 0xb1 from the message preceding the meta-event, which
makes sense because the text says 'Reset Volume' and 07 is the volume
controller number.
Regards,
Pedro
--
ALSA Library Bindings for Pascal
http://alsapas.alturl.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Folks,
I wish I was qualified for this one. I'm not quite so I thought I'd pass it on
to those who might be.
Bearcat M. Sandor
Linux Codec Software Engineer
COMPANY: Top Notch Audio
SKILLS REQUIRED: Software Developer Linux Codecs Application Embedded
LOCATION: Any in US, AK
RATE: Open
AREA: 000
LENGTH: Contract Immediate
TERM: CON_IND CON_HIRE_IND CON_CORP CON_HIRE_CORP
SUMMARY: Linux Developer - Codecs
I have an immediate start for contractor to work with our team. Telecommute to
start. Initial contractor relationship with very possible contract to hire.
Tasks:
Test, Rework and Optimize Codecs. Troubleshoot Linu
http://seeker.dice.com/seeker.epl?rel_code=35&op=5&type=14&dockey=xml/2/7/2…
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/MpHvya+RPo9ly58RAmlrAKCrvAYrEcLIndHEUIa9YE24Yr8hmQCdE2dr
zaeJcG/0Nb/EbAIcM/r3aAM=
=olSH
-----END PGP SIGNATURE-----
Hi!
First ... thanks to Guy Daniel Clotilde for their efforts in this project.
I'm pleased to announce the new gmorgan webpage:
http://perso.wanadoo.fr/guy.clotilde/GMORGAN/index.html
Also i want to announce the version 0.10, the last alpha release, i complete
the initial idea, even adding some features not included in the initial
project.
News in 0.10
-------------------
Skin engine with some examples.
New Patterns. (First time i spend some time to do it .. and are not to bad).
Changes in initial look, help window, settings ...
Minor bugs solved.
In this momment this version is only availabel in :
http://personal.telefonica.terra.es/web/soudfontcombi/http://www.telefonica.net/web/soudfontcombi/
Now for me is time to think if i expand the capabilities of gmorgan, if i
spend my time in other project or if i go to the beach for the first time
this year ... and is 50m in front my house :-)
Anyway if i release new patterns or skins i will announce in the hlsu mailing
list.
Thanks to all, and sorry ...
Josep