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

プログラマのための作曲入門

yugapanda
December 22, 2018

 プログラマのための作曲入門

yugapanda

December 22, 2018
Tweet

Other Decks in Programming

Transcript

  1. ϓϩάϥϚͷͨΊͷ
    ࡞ۂೖ໳
    @yugapanda

    View full-size slide

  2. ࣗݾ঺հ
    • @yugapanda

    • ࣗ෼ͷ୅ΘΓʹࣗಈͰػց͕ԻָΛ࡞ͬͯཉ͍͠ਓ

    • େֶͰ࡞ۂΛษڧͯͨ͠

    • େֶͰ࡞ۂͱ͔Λڭ͑ͯͨ

    View full-size slide

  3. ΰʔϧ
    ۂΛ࡞ΕΔΑ͏ʹͳΔ

    View full-size slide

  4. ΋͘͡
    • ԻఔΛ਺ࣈͰѻ͏

    • εέʔϧΛܾΊΔ

    • ίʔυΛܾΊΔ

    • ϝϩσΟΛܾΊΔ

    View full-size slide

  5. ԻఔΛ਺஋Ͱѻ͏
    • ޒઢේɺϓϩάϥϜͰѻ͍ʹ͍͘

    • ޒઢේΛಡΊΔΑ͏ʹ͢Δͷ͸̑෼Ͱ͸ݫ͍͠

    • Ͱ΋਺ࣈ͸ΈΜͳ஌͍ͬͯΔ

    View full-size slide

  6. ԻఔΛ਺஋Ͱѻ͏
    • ԻָͰҰൠతʹ࢖ΘΕ͍ͯΔԻఔ͸ͨͬͨͷ12छྨ

    • υ,υ#,Ϩ,Ϩ#,ϛ,ϑΝ,ϑΝ#,ι,ι#,ϥ,ϥ#,γ

    • υΛ0ͱͯ͠਺஋Ͱѻ͏ͱ
    ※ඍ෼Ի͸ࠓճ͸ߟྀ͠ͳ͍
    https://drive.google.com/open?id=1M2JKKL_uRFXkYCrO2yNs-3PFRJVXWGNH

    View full-size slide

  7. 0ʙ11·Ͱͷ਺ࣈɻͦΕ͚ͩɻ
    ※ΦΫλʔϒ͸ผ్؅ཧ͢Δඞཁ͕͋Δ
    ※ΦΫλʔϒΛผͷ਺஋ͱͯ͠؅ཧ͢Δํ๏ͱɺ࢖༻͢Δ࠷௿ԻΛ0ͱͯ͠ઈରԻఔͰѻ͏ํ๏ͱ͋Δ
    ※Α͘࢖͏CΛ0ͱͯ͠ϚΠφεͷ஋Ͱѻ͏ํ๏΋͋Δ

    View full-size slide

  8. ࠓޙ΋ޒઢࢴ͕౓ʑొ৔͠·͕͢ɺ
    Իͷߴ͞ͱ͔͕ͪΐͬͱΘ͔Γ΍͍͢
    ͨͩͷάϥϑͱͯ͠͝ཡ͍ͩ͘͞ɻ

    View full-size slide

  9. εέʔϧ
    • Ի͸12छྨ͋ͬͯ΋ɺ1ͭͷۂͰຬวͳ͘͢΂ͯΛ࢖͏Θ͚Ͱ
    ͸ͳ͍

    • ࢖͏ԻఔΛܾΊͯ͋͛ΔͱɺͦΕ͚ͩͰ͋Δఔ౓ۂͬΆ͘ͳΔ

    • બ͹Εͨ2ʙ11ݸͷԻΛεέʔϧͱݺͿ

    • ࠓճ͸ϝδϟʔεέʔϧΛ࢖͏

    • બͿͱݴͬͯ΋ɺεέʔϧͷछྨܾ͑͞·͍ͬͯΕ͹

    ։࢝ԻΛܾΊΔ͚ͩͰࣗಈతʹ࢖͏΂͖Ի͕ܾ·Δ
    ※ଞʹ΋εέʔϧ͸ɺϚΠφʔ΍ڭձટ๏ɺҠௐͷݶΒΕͨટ๏౳༷ʑ͋Δ͕ɺ

    ։࢝ԻΛܾΊΕ͹ࣗಈతʹܾ·Δͷ͸ͲΕ΋ಉ͡

    View full-size slide

  10. ओԻͷબ୒
    • ͖ͬ͞ͷ12छྨͷԻ͔ΒɺओԻʢ։࢝ԻʣΛબͿ

    • ͲΕΛબΜͰ΋ྑ͍

    • ྫ͑͹0ʢυʣΛબͿ

    View full-size slide

  11. 12छྨશ෦
    ։࢝Λ0ʢυʣʹͨ͠৔߹ͷ
    ϝδϟʔεέʔϧ
    https://drive.google.com/open?id=1pb5anMjqGD0Go5Eo--gOLH4YQJDugNU5

    View full-size slide

  12. ↑஫໨ͯ͠ཉ͍͠ͷ͸ɺ1ͭલͷԻͱͷ͕ࠩ
    0, 2, 2, 1, 2, 2, 2, 1
    ʹͳ͍ͬͯΔ఺
    ։࢝ͷԻΛͲ͜ʹͨ͠ͱͯ͠΋ɺ͜ͷࠩʹͳΔΑ͏ʹ
    ԻΛબ୒͍͚ͯ͠͹ɺࣖͰฉ͍ͨ࣌ʹ΄΅ಉ͡Α͏ʹௌ͑͜Δ
    ྫ͑͹…͔̐Β࢝Ίͨ৔߹
    https://drive.google.com/open?id=1lhmsOO63OBPXfR9LXPkqnFdYHNyQCIK0

    View full-size slide

  13. • ࢖ΘΕ͍ͯΔԻ͸ҧ͏ͷʹɺಉ͡ײ͡ʹௌ͑͜Δ

    • ͜Ε͕εέʔϧύϫʔ

    • ओʹ͜ͷԻ͚ͩ࢖͍͚ͬͯ͹

    ҧ࿨ײͷͳ͍ۂ͕࡞ΕΔ

    • ΋ͪΖΜ͜ΕҎ֎ͷԻ΋࢖ͬͯΑ͍͕ɺͦ͜ʹ΋ผͷϧʔ
    ϧ͕͋Δ

    • ࠓճ͸ׂѪʂ
    ※ϝδϟʔεέʔϧͷதͰ͋Ε͹ɺआ༻ͷ֓೦Λಋೖ͢Δ͜ͱͰϧʔϧΛҳ୤͢Δࣄͳ͘

    εέʔϧ֎ͷԻΛ࢖༻͢Δ͜ͱ͕Ͱ͖Δ

    View full-size slide

  14. ※࣮ࡍ͜Μͳײ͡Ͱ࣮૷ͨ͠
    ※͖ͬͱ΋͏ͪΐͬͱ͍͍ײ͡ʹॻ͚Δ

    View full-size slide

  15. εέʔϧ͕Ͱ͖ͨͷͰɺ࣍͸ίʔυ

    View full-size slide

  16. ίʔυ
    • ίʔυ͸࿨Իͷࣄ

    • ࿨Ի͸ੵΈ͕͋ͬͨԻ

    • ద౰ʹੵΈ্͛Δͱ୙Δ͕ɺ௒؆୯ͳϧʔϧʹै͏͚ͩͰ
    ୙Βͳ͘ͳΔ

    • ͦΕ͸

    View full-size slide

  17. εέʔϧ಺ͷԻ̍ͭඈ͹͠
    • ͖ͬ͞ͷεέʔϧ಺Ͱ࢖༻͞ΕΔԻʹఴࣈΛ͚ͭΔ

    • ఴࣈΛ̍ͭඈ͹͠ͰॏͶΔ

    • Ҏ্ɻ
    ※͜ͷํࣜͷ࿨ԻΛτϥΠΞυͱݺͿɻ

    ͞ΒʹҰͭඈ͹͠ͰԻΛ̐ͭʹɺ̑ͭʹɺ̒ͭʹ͢Δํ๏΋͋Δ͕ɺ
    ผͷཧ࿦͕ඞཁʹͳΔɻ
    ※ࠓճͷཧ࿦ͷதͰ΋आ༻ͱυϛφϯτ7Λಋೖ͢Δͱໃ६ͳ͘4࿨Ի

    ΛಋೖͰ͖Δɻ

    ※ίʔυͷཧ࿦͕࢖༻Մೳͳͷ͸جຊతʹϝδϟʔɾεέʔϧͱϚΠφʔɾεέʔϧ
    https://drive.google.com/open?id=1F4CgY5M_yhz4bDkTs7_8b6aPK3u5X6oe

    View full-size slide

  18. ͱΓ͋͑ͣ͜ͷ̓छྨͷ
    ίʔυΛ࢖͓͚ͬͯ͹
    ҧ࿨ײͷগͳ͍ۂ͕࡞ΕΔ
    ͔͠΋ࠓճ͸ͦͷ͏ͪ
    6छྨ͔͠࢖Θͳ͍

    View full-size slide

  19. ίʔυʹ໊લΛ͚ͭΔ
    • ίʔυʹ͸ઈର໊ͱ૬ର໊͕͋Δ

    • ઈର໊͸Α͘ฉ͘Cͱ͔C#mͱ͔

    • ૬ର໊͸Iͱ͔Vͱ͔ͷϩʔϚ਺ࣈͰࣔ͞ΕΔ͜ͱ͕ଟ͍

    • ૬ର໊ʹ͠ͱ͘ͱεέʔϧʢௐʣ͕มΘͬͯ΋࢖͑ΔͷͰศར
    ※I II III IVͷΑ͏ʹɺͦͷίʔυ͕ϚΠφͰ͋Δ͔Ͳ͏͔Λ໌ࣔ͠ͳ͍ํ๏΋͋Δ

    View full-size slide

  20. ίʔυͷભҠ֬཰ςʔϒϧ
    • ίʔυʹ͸ҰԠભҠ͢Δ֬཰΍Βϧʔϧ΍Β͕͋ͬͨΓ

    ͳ͔ͬͨΓ͢Δ

    • ۂʹΑͬͯͦͷભҠ֬཰΍ϧʔϧ͸উखʹܾΊͯΑ͍

    • ͕ɺͳΜͱͳʙ͘͜͏͍͏ؔ܎͕͋ΔΑ͏ʹ

    ݟड͚ΒΕΔ

    View full-size slide

  21. ※ϓϩάϥϚͷͨΊͷɺͰ͋ΔͷͰ…
    ※आ༻͕ೖͬͯ͘Δͱ΋ͬͱෳࡶʹͳΔ
    ※ίʔυਐߦ͸ঢ়ଶػց

    View full-size slide

  22. ͜͜·Ͱ͘Ε͹
    • ద౰ʹ͖ͬ͞ͷ૬ରίʔυ໊ΛҰఆ֬཰Ͱ

    ભҠ͍ͤͯ͘͞ϝιου

    • ૬ରίʔυ໊͔Β૬ରԻఔΛग़͢ϝιου

    • ૬ରԻఔͱ։࢝Ի͔ΒઈରԻఔΛग़͢ϝιου

    • ͚ͩॻ͚͹ɺࣗಈతʹ࿨Ի͕ਐߦ͍ͯ͘͠

    ϓϩάϥϜ͕ॻ͚Δʂ

    • ผʹࣗಈԽ͠ͳͯ͘΋ɺಉ͡खॱΛਓ͕ؒ΍ͬͯ΋ྑ͍

    View full-size slide

  23. ϝοϩσΟ
    • ίʔυਐߦʢ൐૗ʣ͸࡞ΕΔΑ͏ʹͳͬͨͷͰɺ࣍͸ϝο
    ϩσΟΛ࡞Βͳ͍ͱ͍͚ͳ͍

    • ࣗવͳϝοϩσΟΛ࡞Γ͍ͨ৔߹ɺ

    ࠷খݶͷϧʔϧ͸ҎԼͷ௨Γ

    View full-size slide

  24. •ίʔυͰ࢖ΘΕ͍ͯΔԻ͸

    ޷͖ͳλΠϛϯάͰ࢖ͬͯΑ͍
    •ίʔυͰ࢖ΘΕ͍ͯͳ͍

    ԻΛ࢖͏৔߹ɺ

    ࣍ͷԻͰྡΓ߹ͬͨ

    ίʔυ಺ͷԻʹ

    ໭Βͳ͍ͱ͍͚ͳ͍

    View full-size slide

  25. ྫ֎͸͋Δ
    • ྫ֎Ͱ͢ɻ

    • ྫ֎͸͋Γ·͢ɻ

    • ΑΖ͓͘͠ئ͍͠·͢ɻ

    View full-size slide

  26. ͬ͟ͱࢥ͍ͭ͘ྫ֎
    • ղܾͷ஗ԆɻҰ౓ίʔυ֎ͷԻ͔Βίʔυ֎ͷԻΛ

    ܦ༝ͯ͠ίʔυ಺ͷԻʹ໭Δɻ

    (ίʔυ֎ͷԻ͔Βίʔυ಺ͷԻ΁໭Δ͜ͱΛղܾͱݺͿ)

    • ࣍ͷখઅ΁ͷ֬อɺ࣍ͷখઅͰղܾ͢Δίʔυ֎ͷԻ

    • ӅΕςϯγϣϯ

    View full-size slide

  27. ΍ͬͯΈΔ
    https://drive.google.com/open?id=1oviqgPP2ZXuiJjMwa_ghHzRq4JwgA78C

    View full-size slide

  28. ΍Γͷ͜͠
    • ϦζϜʢٳූʣ

    • ϝϩσΟͷ࿨Ի

    • ָۂߏ੒

    • ςϯγϣϯͷ؅ཧ

    • ൐૗๏

    • ָث๏

    • ࿨Իआ༻

    • సௐ
    • ϕʔε

    • ΦϒϦΨʔτʢରટ཯ʣ

    • ટ๏

    • ςϯϙ

    • Իͱͯ͠ग़ྗ

    • μΠφϛΫεʢϕϩγςΟʣ

    • ΤΫεϓϨογϣϯ

    View full-size slide

  29. ࣗಈ࡞ۂΤϯδϯͰ࡞ͬͨۂ
    https://drive.google.com/open?id=11WiQf2BPiItiOrmNAXnf3vaaINrNe5ij
    • ΄ͱΜͲ͜ͷεϥΠυͷ಺༰ͦͷ··࣮૷͍ͯ͠Δ

    • ΍Γ࢒͠͸൒෼͘Β͍࣮૷͍ͯ͠Δ

    • উखʹ࡞ͬͨṖͷ૬ରԻఔͷΦϒδΣΫτΛmidiʹม׵͢ΔϥΠϒϥϦΛ࡞ͬͨΓͨ͠

    • midi͔ΒpianoteqͰwavΛు͖ग़ͯ͠ɺͦͷޙτϥοΫ͝ͱʹ߹੒͍ͯ͠Δ

    • ߹੒·ͰࣗಈԽͨ͠ͷͰɺ͜ͷఔ౓ͷΫΦϦςΟͷۂͳΒແݶੜ੒Մೳʂ

    View full-size slide