最好详细些

解决方案 »

  1.   

    NOKIA的手机铃声格式 
    我有
      

  2.   

    那你知道否怎么样让用户输入一串string(如NOKIA的RTTTL格式),能够发声的.
    是否先要把它转换成MIDI格式呢如果是那样的话岂不时很难???
      

  3.   

    这个我也没有做过。我只是做过短信的,关注。如果你找到了。发给我一份好吗?
    [email protected]
      

  4.   

    我找到了一个自己写MIDI格式的源代码.和和
    蔼 
     Creating MIDI Files - Demonstration of polymorphy and inheritance --------------------------------------------------------------------------------
    This article was contributed by Andreas Jäger. The class library I wrote illustrates the structure of MIDI-Files.
    There is a class CMidiFile, which consists of some header information
    and a collection of Tracks, objects of class CMidiTrack. Each track itself 
    is a collection of Events, with some header information, too. Events are
    such as NoteOn, NoteOff or Meta-Events like SetTempo, TrackName or Copyright.
    A collection is polymorph, i.e. I can declare CMidiTrack as a collection
    of CMidiEventCommand's. CMidiEvent is a base class, and for each type of 
    Event there is a special class. The overridden methods are the constructor, 
    the GetLength()-method and the WriteToFile(ostream& )-method, more is not 
    neccasary.
    CMidiTrack has some methods to simplify some operations. The most impor-
    tant member-function is the PlayString function, which takes a string you
    know from the BASIC-PLAY-function. Then these few lines are enough to
    create your own MIDI-file:
      

  5.   


    CMidiFile midifile(96);
    CMidiTrack* miditrack = new CMidiTrack;
    miditrack->Copyright(_T("Copyright (C) 1997 Andreas  Jaeger"));
    miditrack->TimeSignature(0x04, 0x02, 0x18, 0x08);
    miditrack->Tempo(120);
    miditrack->Insert
       (new CMidiEventCommandProgramChange (MIDI_CHANNEL_2, 0, 70));
    miditrack->PlayString(MIDI_CHANNEL_2, "MBT120O3T120l8dl4gl8bd"
    "l4gl8bgl4al8a.l16al4aP8l8bO4l4cl8ccdcO3bal4bl8g.l16gl4gP8l8g"
    "O4c.l16cl8ccl4ecO3l8bbgbO4l4dO3l8bgl4dl8f#aO4l4cO3l8af#l4ggg"
    "P8l8gO4c.l16cl8ccl4ecO3l8bbgbO4l4dO3l8bgl4dl8f#aO4l4cO3l8af#l4gggP8");
    miditrack->EndOfTrack();
    midifile.Insert(miditrack);
    midifile.WriteToFile(_T("Frühtau.mid"));总算有点头绪
      

  6.   

    格式其实好找相互转换的软件也有就是源地貌没有.
    谁有RTTTL,iMELODY与MIDI 相互转换的软件的源代码请一定要告诉我谢谢.