您的位置:首页精文荟萃软件资讯 → 手机铃声格式规范,midi格式规范

手机铃声格式规范,midi格式规范

时间:2004/10/7 19:19:00来源:本站整理作者:蓝点我要评论(0)

前一段時間在csdn上问了许多问题,无人解答,高手都不愿意教我,真是郁闷。现在终于
有所收获,现将我个人收藏发布如下,希望各位高手能象我一样 :)
最近在做一个erricsson,nokia铃声的编辑程序,程序中主要麻烦的是发送和试听,试听我是先把文本格式转化成midi,再实现播放。现将其中我收集的铃声格式和midi格式发布如下:
ericsson:
有2种,早期的都是emelody,据我所知,现在只有i68i支持imelody,不过我不知道其余型号
的手机可不可以通过升级软件来支持imelody.
-------------------------------------------------------------------------------------------
eMelody Object
.
eMelody Format
Description: This is a definition of the eMelody object. This object is used when a user-defined
melody is exchanged
Syntax:
ieBEGIN:EMELODYle
ieNAME:lE
ilCOMPOSER:l>
ieVERSION:l>
ivMELODY:lC
ivEND:EMELODYll
File extension: emy
Example filename mymelody.emy
Parameters:
: "1.0"
: Alphanumeric string
: Alphanumeric string
: {|}
: "p"
: {[]}
: "c"|"d"|"e"|"f"|"g"|"a"|"b"
: "(b)d"|"(b)e"|"(b)g"|"(b)a"|"(b)b"
: "#d"|"#e"|'"#g"|"#a"|"#b"
: "C"|"D"|"E"|"F"|"G"|"A"|"B"
: "(b)D"|"(b)E"|"(b)G"|"(b)A"|"(b)B"
: "#D"|"#E"|"#G"|"#A"|"#B"
: |||
||
: "+"
Maximum number of
tones:
40
Maximum numbers of
characters in melody:
120
Example: BEGIN:EMELODY
VERSION:1.0
NAME:Test melody 1
COMPOSER:John Smith
MELODY:
+f+a+fa(b)bdcC+GA+d+#c+dfg+daea+d+#c+e+f+e+fa(b)bdC+EA+
d+#c+dfgba+d+#C
END:EMELODY
-------------------------------------------------------------------------------------------
iMelody V1.2 Approved
1. Overview
The iMelody format is a minimal set of tones that can be used to transfer melodies between devices. The definition can
be extended by defining new formats for MIDI/WAV, DTMF, polyphonic etc. The FORMAT field is mandatory, as it is
used to specify the format of the following data.
In all cases, a letter designating a note, style, volume, etc will precede a number.
Example applications include ring tones, alarm tones and power-on melodies.
2. BNF Definition
::=
"BEGIN:IMELODY"
"VERSION:"
"FORMAT:"
["NAME:"]
["COMPOSER:"]
["BEAT:"]
["STYLE:"