Python论坛  - 讨论区

标题:[python-chinese] mp3-->midi

2006年07月05日 星期三 16:48

yi feng yi2369 at gmail.com
Wed Jul 5 16:48:07 HKT 2006

我现在需要将mp3文件转换成midi文件。
请问python有什么模块是支持音频的?
另外,这个转换应该注意些什么?

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年07月05日 星期三 20:09

swordsp sparas2006 at gmail.com
Wed Jul 5 20:09:35 HKT 2006

python相关的不太清楚,不过mp3(其它音频也一样)转midi难度很大的,现在即使商业软件效果也不理想,你真的意识到问题的难度了吗?
这可不仅仅是音频转换,倒是与语音识别相关的技术更接近些,基本思路大概就是用FFT之类的算法做频谱分析,和midi波表的乐器频谱做匹配。
工业领域的成熟类库只怕是没有的,不管什么语言,大概只有学术界有些可以利用的成果,去搜搜相关论文吧。

On 7/5/06, yi feng <yi2369 at gmail.com> wrote:
>
> 我现在需要将mp3文件转换成midi文件。
> 请问python有什么模块是支持音频的?
> 另外,这个转换应该注意些什么?
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060705/cebf335b/attachment.html

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年07月06日 星期四 08:29

yi feng yi2369 at gmail.com
Thu Jul 6 08:29:56 HKT 2006

我也是被人抓劳力的,现在看来只能等着被杀头了!

谢谢您的解释。

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年07月06日 星期四 11:23

Xiao Lei Wu xiaoleiw at cn.ibm.com
Thu Jul 6 11:23:58 HKT 2006

ÌáÕâ¸öÐèÇóµÄÈË´óÄÔÓÐÎÊÌâ
ËûÁ¬midiÊÇÔõô»Øʶ¼²»ÖªµÀ
׼ȷµØ˵£¬midi²»ÊÇÒ»¸ö¡°ÒôƵ¡±¸ñʽ

Best Regards,

Zachary Wu (Îâ°~ÀÚ)
Software Engineer, Enterprise Content Management FVT, IBM China Software
Development Lab
Tel: +86 10 82782244-3235. Fax: 82782244-2886 Tie Line: 915-2244-3235
Internet: xiaoleiw at cn.ibm.com
Notes ID: Xiao Lei Wu/China/Contr/IBM at IBMCN
Address: 8/F, Block A, Power Creative Building, No.1, East Road, Shang Di,
Beijing 100085, P.R. China

python-chinese-bounces at lists.python.cn дÓÚ 2006-07-05 16:48:07:

> ÎÒÏÖÔÚÐèÒª½«mp3Îļþת»»³ÉmidiÎļþ¡£
> ÇëÎÊpythonÓÐʲôģ¿éÊÇÖ§³ÖÒôƵµÄ£¿
> ÁíÍ⣬Õâ¸öת»»Ó¦¸Ã×¢ÒâЩʲô£¿
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060706/e7008d09/attachment.html

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年07月06日 星期四 11:31

netkiller openunix at 163.com
Thu Jul 6 11:31:19 HKT 2006

midiÊÇÀÖÆ×£«ÒôÉ«¿â£®ÒôÉ«¿â·ÖÈí£¬Ó²Á½ÖÖ£®´´ÐÂÉù¿¨Ö§³ÖÓ²ÒôÉ«¿â£®
ÒôÉ«¿â¾ÍÊÇ£®¸÷ÖÖÀÖÆ÷µÄ·¢Òô£¬»¹ÓÐ×ÔÈ»½çµÄÉùÒôÈ磺Äñ£¬³æ½Ð£®£®£®

mp3¡¡×ª midi ËðʧºÜ´ó£®ºÜʧÕ森£®ËûÊÇͨ¹ý²É¼¯ºóת»»³ÉÒôÉ«¿âµÄ£®

ÎÒÒ²²»ÊÇÌ«Á˽⣮
  ----- Original Message ----- 
  From: Xiao Lei Wu 
  To: python-chinese at lists.python.cn 
  Sent: Thursday, July 06, 2006 11:23 AM
  Subject: Re: [python-chinese] mp3-->midi


  ÌáÕâ¸öÐèÇóµÄÈË´óÄÔÓÐÎÊÌâ
  ËûÁ¬midiÊÇÔõô»Øʶ¼²»ÖªµÀ
  ׼ȷµØ˵£¬midi²»ÊÇÒ»¸ö¡°ÒôƵ¡±¸ñʽ

  Best Regards,

  Zachary Wu (Îâ°~ÀÚ)
  Software Engineer, Enterprise Content Management FVT, IBM China Software Development Lab
  Tel: +86 10 82782244-3235. Fax: 82782244-2886 Tie Line: 915-2244-3235
  Internet: xiaoleiw at cn.ibm.com 
  Notes ID: Xiao Lei Wu/China/Contr/IBM at IBMCN
  Address: 8/F, Block A, Power Creative Building, No.1, East Road, Shang Di, Beijing 100085, P.R. China

  python-chinese-bounces at lists.python.cn дÓÚ 2006-07-05 16:48:07:

  > ÎÒÏÖÔÚÐèÒª½«mp3Îļþת»»³ÉmidiÎļþ¡£
  > ÇëÎÊpythonÓÐʲôģ¿éÊÇÖ§³ÖÒôƵµÄ£¿
  > ÁíÍ⣬Õâ¸öת»»Ó¦¸Ã×¢ÒâЩʲô£¿
  > _______________________________________________
  > python-chinese
  > Post: send python-chinese at lists.python.cn
  > Subscribe: send subscribe to python-chinese-request at lists.python.cn
  > Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
  > Detail Info: http://python.cn/mailman/listinfo/python-chinese



------------------------------------------------------------------------------


  _______________________________________________
  python-chinese
  Post: send python-chinese at lists.python.cn
  Subscribe: send subscribe to python-chinese-request at lists.python.cn
  Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
  Detail Info: http://python.cn/mailman/listinfo/python-chinese
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060706/64c7fa73/attachment.html

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年07月06日 星期四 11:57

Xiao Lei Wu xiaoleiw at cn.ibm.com
Thu Jul 6 11:57:25 HKT 2006

ÏÖÔÚµÄCreativeÉù¿¨¶¼ÊÇÈí²¨±íÁË£¬²»¹ý´ËÈí²¨±í!=±ËÈí²¨±í
²¨±íÊÇÈíµÄ¡¢·ÅÔÚÄÚ´æÀïµÄ£¬µ«ÊÇ´¦Àí²¨±íÊÇ¿¿Éù¿¨ÉϵĴ¦ÀíÆ÷¶ø²»ÊÇCPU
±ÈÈçLiveϵÁУ¬ÓÐ2¸ö512¸ö¸´ÒôµÄ²¨±í´¦ÀíÆ÷£¬¼ÓÔÚÒ»Æð¾ÍÊÇ1024¸ö£¬ËûÒ»¹²Ö§³Ö
1024¸ö¸´Òôͬʱ·¢Éù£¨Ò²¾ÍÊÇ1024Éù²¿ºÏ³ª£©£¬²¢ÇÒÖ§³Ö1024¸öÀÖÆ÷ͬʱÑÝ×à¡£
YamahaµÄÈí¼þ²¨±í£¬ÔÚʹÓÃ512¸´ÒôµÄʱºò¾ÍÄÜÈÃP4 CPUðÑÌ
CreativeÖ»Ìṩ×î´ó8MµÄÒôÉ«¿â£¬µ«ÊÇÍøÉÏ¿ÉÒÔÏÂÔص½ºÜ¶à¸üºÃµÄ£¨µ±È»ÓÐÃâ·ÑµÄºÍ
ÉÌÒµµÄ£©£¬ºÃµÄÒôÉ«¿â¶¼ÉÏ°ÙM
mp3->midiµÄ¹ý³ÌҲҪʹÓÃÒôÉ«¿â£¬²»¹ýÊÇ·µÏòµÄ£¬ÓÃ8MµÄ¸ú180MµÄÍêÈ«²»ÊÇÒ»»ØÊÂÁË

ÎÒÈÏʶµÄÒ»¸ö×öÒôÀÖµÄÅóÓÑ˵£¬ÒôƵ->midi×îºÃµÄת»»´¦ÀíÆ÷ÊÇ¡°ÈË¡±
Ä¿Ç°¼¸ºõËùÓеÄmidi£¬Ò²¶¼ÊÇÈË×öµÄ

Best Regards,

Zachary Wu (Îâ°~ÀÚ)
Software Engineer, Enterprise Content Management FVT, IBM China Software
Development Lab
Tel: +86 10 82782244-3235. Fax: 82782244-2886 Tie Line: 915-2244-3235
Internet: xiaoleiw at cn.ibm.com
Notes ID: Xiao Lei Wu/China/Contr/IBM at IBMCN
Address: 8/F, Block A, Power Creative Building, No.1, East Road, Shang Di,
Beijing 100085, P.R. China

python-chinese-bounces at lists.python.cn дÓÚ 2006-07-06 11:31:19:

> midiÊÇÀÖÆ×£«ÒôÉ«¿â£®ÒôÉ«¿â·ÖÈí£¬Ó²Á½ÖÖ£®´´ÐÂÉù¿¨Ö§³ÖÓ²ÒôÉ«¿â£®
> ÒôÉ«¿â¾ÍÊÇ£®¸÷ÖÖÀÖÆ÷µÄ·¢Òô£¬»¹ÓÐ×ÔÈ»½çµÄÉùÒôÈ磺Äñ£¬³æ½Ð£®£®£®
>
> mp3¡¡×ª midi ËðʧºÜ´ó£®ºÜʧÕ森£®ËûÊÇͨ¹ý²É¼¯ºóת»»³ÉÒôÉ«¿âµÄ£®
>
> ÎÒÒ²²»ÊÇÌ«Á˽⣮
> ----- Original Message -----
> From: Xiao Lei Wu
> To: python-chinese at lists.python.cn
> Sent: Thursday, July 06, 2006 11:23 AM
> Subject: Re: [python-chinese] mp3-->midi
>
> ÌáÕâ¸öÐèÇóµÄÈË´óÄÔÓÐÎÊÌâ
> ËûÁ¬midiÊÇÔõô»Øʶ¼²»ÖªµÀ
> ׼ȷµØ˵£¬midi²»ÊÇÒ»¸ö¡°ÒôƵ¡±¸ñʽ
>
> Best Regards,
>
> Zachary Wu (Îâ°~ÀÚ)
> Software Engineer, Enterprise Content Management FVT, IBM China
> Software Development Lab
> Tel: +86 10 82782244-3235. Fax: 82782244-2886 Tie Line: 915-2244-3235
> Internet: xiaoleiw at cn.ibm.com
> Notes ID: Xiao Lei Wu/China/Contr/IBM at IBMCN
> Address: 8/F, Block A, Power Creative Building, No.1, East Road,
> Shang Di, Beijing 100085, P.R. China
>
> python-chinese-bounces at lists.python.cn дÓÚ 2006-07-05 16:48:07:
>
> > ÎÒÏÖÔÚÐèÒª½«mp3Îļþת»»³ÉmidiÎļþ¡£
> > ÇëÎÊpythonÓÐʲôģ¿éÊÇÖ§³ÖÒôƵµÄ£¿
> > ÁíÍ⣬Õâ¸öת»»Ó¦¸Ã×¢ÒâЩʲô£¿
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese at lists.python.cn
> > Subscribe: send subscribe to python-chinese-request at lists.python.cn
> > Unsubscribe: send unsubscribe to
python-chinese-request at lists.python.cn
> > Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060706/9c5ec56f/attachment.html

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年07月06日 星期四 12:07

swordsp sparas2006 at gmail.com
Thu Jul 6 12:07:30 HKT 2006

On 7/6/06, netkiller <openunix at 163.com> wrote:
>
>  midi是乐谱+音色库.音色库分软,硬两种.创新声卡支持硬音色库.
> 音色库就是.各种乐器的发音,还有自然界的声音如:鸟,虫叫...
>
> mp3 转 midi 损失很大.很失真..他是通过采集后转换成音色库的.
>

如你所说,midi本身只是乐谱,所以真正高质量的midi都是人手写的,就好像是给乐曲重新编曲一样。
音色库一般称为波表,自动化的音频转midi其实就是选定一套波表为模板,从原始音频中识别出各乐器成分。
基本上这不是"损失"或者"失真"的问题,而是识别的准确率(包括乐器的识别和各乐器旋律的识别),还有波表的音色与真实乐器音色的差异问题。

intelliScore Polyphonic大概是现在最成熟的商业软件,号称它的识别算法研究了六年。
如果只是要用的话,买一套来可能比自己写要省事划算多了。
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060706/a2859c5e/attachment.html

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年07月06日 星期四 12:11

swordsp sparas2006 at gmail.com
Thu Jul 6 12:11:22 HKT 2006

On 7/6/06, Xiao Lei Wu <xiaoleiw at cn.ibm.com> wrote:
>
> 现在的Creative声卡都是软波表了,不过此软波表!=彼软波表
> 波表是软的、放在内存里的,但是处理波表是靠声卡上的处理器而不是CPU
>
> 比如Live系列,有2个512个复音的波表处理器,加在一起就是1024个,他一共支持1024个复音同时发声(也就是1024声部合唱),并且支持1024个乐器同时演奏。
> Yamaha的软件波表,在使用512复音的时候就能让P4 CPU冒烟
> Creative只提供最大8M的音色库,但是网上可以下载到很多更好的(当然有免费的和商业的),好的音色库都上百M
> mp3->midi的过程也要使用音色库,不过是返向的,用8M的跟180M的完全不是一回事了
>
> 我认识的一个做音乐的朋友说,音频->midi最好的转换处理器是"人"
> 目前几乎所有的midi,也都是人做的
>
的确如此,不过现在很多人也用软件来辅助了,先得到一个初步结果,然后再手工调整,这样效率更高些。
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060706/d7f34e86/attachment.htm

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号