Results 1 to 4 of 4

Thread: Code Music PHP cool

  1. #1
    Join Date
    Feb 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Code Music PHP cool

    Hello every one !
    I need some music code, Can you help me ?
    Thanks a lot.

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Of course. Have a LAME function.
    Code:
    void analyze_stereo ( const stereo* p, size_t len, korr_t* k )
    {
        long double  _x = 0, _x2 = 0, _y = 0, _y2 = 0, _xy = 0;
        double       t1;
        double       t2;
        
        k -> n  += len;
        
        for ( ; len--; p++ ) {
            _x  += (t1 = (*p)[0]); _x2 += t1 * t1;
            _y  += (t2 = (*p)[1]); _y2 += t2 * t2;
                                   _xy += t1 * t2;
        }
        
        k -> x  += _x ;
        k -> x2 += _x2;
        k -> y  += _y ;
        k -> y2 += _y2;
        k -> xy += _xy;
    }
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Feb 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yeah, Thank Twey very much.
    But i need full music code, i want create a website on my own by PHP. It is used to listen music and watch movies online. IT's like this :
    http://thpt-nguyentrai.net/kth8x/bupbego.org/
    Can you help me?

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Yeah, Thank Twey very much.
    Yeah, sorry. Every so often I get an urge to strike back at people who ask vague questions. Guess that's why I'm not a PR man.
    Anyway... John wrote a script to deal with music in an efficient and compatible way. It's here on the forums somewhere, but I can't seem to find it. Have a look yourself, and maybe John will direct us to it if you fail too.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •