F
fown
Unregistered / Unconfirmed
GUEST, unregistred user!
设有一个1.txt内容如下,都是一些MID文件信息:
In,F:/AudioBBCALL/Audio_1205/Project/MENU_TV.MID,:
-->,Instrument(s),:,10,24,33,45,48,65,71,
-->,Drum(s),:,36,38,54,63,64,
In,F:/AudioBBCALL/Audio_1205/Project/OPEN.MID,:
-->,Instrument(s),:,00,10,96,
In,F:/AudioBBCALL/Audio_1205/Project/PAINTER.MID,:
-->,Instrument(s),:,30,33,45,48,71,114,
-->,Drum(s),:,36,38,42,46,49,54,63,64,65,66,
这里面有一堆数字,要把这堆数字整理出来,变为这样的格式:
{MID的文件名(不带后缀),Instrument个数,Drum个数(没有的话为0),{Instrument数组},{Drum数组(没有的话,这里为空)}},
所以上面的1.txt要生成下面这个文件2.txt:
{MENU_TV, 7, 5, {10,24,33,45,48,65,71},{36,38,54,63,64}},
{OPEN, 3, 0, {00,10,96}, {}},
{PAINTER, 6, 10, {30,33,45,48,71,114}, {36,38,42,46,49,54,63,64,65,66}},
大家帮帮忙,谢谢谢。
In,F:/AudioBBCALL/Audio_1205/Project/MENU_TV.MID,:
-->,Instrument(s),:,10,24,33,45,48,65,71,
-->,Drum(s),:,36,38,54,63,64,
In,F:/AudioBBCALL/Audio_1205/Project/OPEN.MID,:
-->,Instrument(s),:,00,10,96,
In,F:/AudioBBCALL/Audio_1205/Project/PAINTER.MID,:
-->,Instrument(s),:,30,33,45,48,71,114,
-->,Drum(s),:,36,38,42,46,49,54,63,64,65,66,
这里面有一堆数字,要把这堆数字整理出来,变为这样的格式:
{MID的文件名(不带后缀),Instrument个数,Drum个数(没有的话为0),{Instrument数组},{Drum数组(没有的话,这里为空)}},
所以上面的1.txt要生成下面这个文件2.txt:
{MENU_TV, 7, 5, {10,24,33,45,48,65,71},{36,38,54,63,64}},
{OPEN, 3, 0, {00,10,96}, {}},
{PAINTER, 6, 10, {30,33,45,48,71,114}, {36,38,42,46,49,54,63,64,65,66}},
大家帮帮忙,谢谢谢。