Upgrade to Pro — share decks privately, control downloads, hide ads and more …

perlmml: A Sound Generator written in Perl

perlmml: A Sound Generator written in Perl

「perlmml: Perlで音を出す何か」

コードとサンプルはそのうち公開(できたらいいな)

Yuki Fujisaki

October 05, 2009
Tweet

More Decks by Yuki Fujisaki

Other Decks in Programming

Transcript

  1. QFSMNNM1FSMͰԻΛग़͢Կ͔
    ։ൃ෦ΞϓϦ(ϞόΠϧ։ൃ5
    ౻㟒 ༑थ

    View full-size slide

  2. આ໌
    w 1FSMͰ
    w ԻΛ
    w ग़͠·ͨ͠

    View full-size slide

  3. ͸͡·Γ͸͍ͭ΋ LZPSP
    w ʮ8"7ͷϑΥʔϚοτͬͯͲ͏ͳͬͯΔͷʈʈТʯ

    View full-size slide

  4. 8"7ϑΝΠϧͬͯͷ͸ʜ
    w 3*''ϔομ
    w 8"7&ࣝผࢠ ϑΥʔϜλΠϓ

    w GNUνϟϯΫ
    r ϑΥʔϚοτͱ͔
    w EBUBνϟϯΫ
    r ࣮ࡍͷԻσʔλ

    View full-size slide

  5. આ໌ͯͨ͠Β
    w ʮͳΜ͔8"7ϑΝΠϧੜ੒͍ͨ͠ͳ͊ʯ
    r ͱࢥ͏ͷ͸ࣗવͳཉٻͰ͢ΑͶʔ

    View full-size slide

  6. Ͳ͏΍ͬͯʁ
    w खݩʹ͋Δಓ۩

    View full-size slide

  7. ͳʹΛ
    w ͳΜ͔ϐʔͱ͔ϓʔͱ͔ݴΘͤͯ΋͕ܳͳ͍
    w ͪΌΜͱௌ͚Δ΋ͷΛग़͍ͨ͠
    w Ͱ΋ϝϩσΟଧͪࠐΈͱ͔ΊΜͲ͍͘͞

    View full-size slide

  8. ͋ɺ ..-͕͋Δ͡Όͳ͍͔

    View full-size slide

  9. ..-
    w .VTJD.BDSP-BOHVBHF
    r ςΩετͰԻָ͕ॻ͚Δ
    w l$%&zlυ Ϩ ෼Իූ
    ϛ ෼Իූ
    zͱ͔
    w lzlzΦΫλʔϒ্͛Լ͛
    w l5z#1.
    w FUDʜ
    r ೥୅͔Β͋Γ·͢
    w 1$ͱ͔ '.ͱ͔
    w ৭ʑํݴ͋Γ

    View full-size slide

  10. ݱ୅ͷ 8FCʹ͓͍ͯ΋
    w ͸ͯͳϝϩσΟه๏ w ϐίΧΩί

    View full-size slide

  11. ͲͪΒ΋ 'MBTIͰ࠶ੜ
    w ͲͪΒ΋ 'M..-ͱ͍͏ 'MBTIΒ͍͠

    View full-size slide

  12. ͱ͍͏Θ͚Ͱ࡞Δ΋ͷ
    'M..-จ๏Ͱॻ͔Εͨ ..-
    ˣ
    8"7

    View full-size slide

  13. Ͱ
    ԿΛϑΝΠϧʹॻ͖ࠐΊ͹͍͍ͷʁ

    View full-size slide

  14. Իͷදݱ
    εϐʔΧʔͷৼಈ൘ΛͲΜͳײ͡ʹৼಈͤ͞Δ͔

    View full-size slide

  15. ඪຊԽɾྔࢠԽͱ͔
    ͱʹ͔͘ҰఆִؒͰ࣍ʑͱ഑ྻʹ஋ΛಥͬࠐΉ
    0
    100
    -100
    @wav = ( 0, 10, 26, 60, 71, 71, 60, 21, 4, -9, -30, -22, 10, 60, -4, -22, 0, …);

    View full-size slide

  16. ৄࡉ͸
    άάΕ

    View full-size slide

  17. Ի֊
    ඵؒʹ ճৼಈͤ͞Δͱ ϥ "

    View full-size slide

  18. ඵؒʹ ճͱ͍ͬͯ΋
    w ͲΕ΋ )[
    r TJO೾
    r ϊίΪϦ೾
    r ࡾ֯೾
    r ۣܗ೾

    View full-size slide

  19. ࣮ࡍʹௌ͍ͯΈ·͠ΐ͏

    View full-size slide

  20. ϊΠζͬͯ͆
    Կʹ࢖͏Μͩ͆

    View full-size slide

  21. ϊΠζͷ࢖͍ಓ
    w υϥϜͱ͔
    w ڧऑΛ෇͚ͯͦΕͬΆ͘

    View full-size slide

  22. ͯͳΘ͚Ͱ࣮૷
    w 1BSTFS
    w (FOFSBUPS
    w .JYFS
    ຊ౰͸γʔέϯαͱ͔ཉ͍͚͠Ͳ
    ϦΞϧλΠϜ͸ߟ͑ͳ͍ͷͰࠓճ͸εϧʔ

    View full-size slide

  23. 1BSTFS
    w ..-Λղऍ͢Δ
    w 1FSM͸จࣈྻॲཧ͕ಘҙ͔ͩΒָউʂ
    r ͋Μ·Γͦ͏Ͱ΋ͳ͔ͬͨ
    r ͪ͝Όͪ͝Όͱ໿ ߦ
    r ϚΫϩͱ͔จ๏͕ੌ͍͜ͱʹͳͬͯΔ

    View full-size slide

  24. (FOFSBUPS
    w ೾ܗΛ࡞Γ·͢
    w ίΞ෦෼͸͜Ε͚ͩ ˠ
    r εςοϓຖͷ஋Λฦ͢

    View full-size slide

  25. .JYFS
    w ෳ਺ͷτϥοΫΛࠞͥ·͢
    w ஋ʹԻྔֻ͚͔ͯΒ଍͠߹ΘͤΔ͚ͩ
    w ग़ྗϑΥʔϚοτʹऩ·Δ஋ʹൣғΛमਖ਼
    r ʙ CJU

    r ʙ CJU

    View full-size slide

  26. Ͱ͖ͨʂ
    w ੎͍ͬͯා͍ʼʻ
    r ΄΅೔ͰେମͰ͖ͨ
    r ͋ͱएׯόάऔΓͱ͔ύϥϝʔλௐ੔ͱ͔

    View full-size slide

  27. ௌ͍ͯΈΔͱ
    ͜Μͳײ͡

    View full-size slide

  28. ͨͩ͠
    w ..-ͱ͔ϑΝΠϧ໊ͱ͔௒ϋʔυίʔυ

    View full-size slide

  29. ݁࿦ͱࠓޙ
    w ߦऑͷ 1FSMίʔυͰ͜ΜͳԻ͕ग़ͤΔ
    r ͋Μ·Γ޲͍ͯͳ͍͔ͳ
    w ໐Β͍ͨ͠΋ͷΛ໨ͷલʹஔ͍ͯϞνϕ6Q
    r ੎͍ϕʔεεέδϡʔϦϯά
    w ෦඼Խͱ͔͠Α͏͔ͳ
    r ಴࠳த

    View full-size slide