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

オーディオ波形を表示するために知っておくべきこと

 オーディオ波形を表示するために知っておくべきこと

iOSDC2021発表資料

Yuki Yasoshima

September 18, 2021
Tweet

More Decks by Yuki Yasoshima

Other Decks in Programming

Transcript

  1. :VLJ:BTPTIJNB!ZBTP@TBO
    ΦʔσΟΦ೾ܗΛදࣔ͢ΔͨΊʹ
    ஌͓ͬͯ͘΂͖͜ͱ
    J04%$

    View full-size slide

  2. ࿩͢಺༰
    w ΦʔσΟΦͷσʔλܗࣜ
    w طଘͷΞϓϦͷ೾ܗදࣔ
    w ೾ܗ༻σʔλ΁ͷม׵
    w ύϑΥʔϚϯεͷߟྀ
    w .FUBMΛ࢖ͬͨ೾ܗඳը

    View full-size slide

  3. w ΦʔσΟΦͷ೾ܗ͸ʮϦχΞ1$.ʯͷΦʔσΟΦσʔλΛ΋ͱʹදࣔ͞Εͯ
    ͍Δ
    w .1΍""$ͳͲͷѹॖϑΝΠϧ΋ɺϝϞϦ্Ͱѻ͏࣌ʹ͸ʮϦχΞ1$.ʯͷ
    σʔλʹม׵͞ΕΔ
    ΦʔσΟΦ೾ܗͱݩσʔλ

    View full-size slide

  4. ϦχΞ1$.
    -JOFBS1VMTF$PEF.PEVMBUJPOʢϦχΞύϧεූ߸มௐʣ
    ৴߸ͷৼ෯ΛఆظతͳִؒͰαϯϓϦϯάͨ͠σʔλܗࣜ

    View full-size slide

  5. w αϯϓϦϯάप೾਺
    w ඪຊ஋ͷܕ
    w νϟϯωϧ਺ͱฒͼॱ
    ϦχΞ1$.
    ϑΥʔϚοτ

    View full-size slide

  6. Ξφϩά৴߸
    ࣌ؒ
    ৼ෯
    ʴ
    —

    View full-size slide

  7. Ξφϩά৴߸

    View full-size slide

  8. αϯϓϦϯά
    αϯϓϦϯάप೾਺)[
    ඵʹ͖ͭՕॴͰαϯϓϦϯά

    View full-size slide

  9. σδλϧσʔλ
    ؒͷ৘ใ͸ൈ͚མͪΔ

    View full-size slide

  10. ඪຊ஋
    ඪຊ஋ʢαϯϓϧʣ

    View full-size slide

  11. ඪຊ஋
    ʢ࠷େ஋ʣ
    ʢ࠷খ஋ʣ



    fl
    PBUͷ৔߹

    View full-size slide

  12. ඪຊ஋

    fl
    PBUͷ৔߹
    σδλϧ্Ͱ͸Λ௒͑ͯ΋େৎ෉
    Ξφϩάʹม׵͢Δͱ͖͸ΫϦοϓ͢Δ

    View full-size slide

  13. ඪຊ஋





    *OUͷ৔߹

    View full-size slide

  14. νϟϯωϧ
    DIεςϨΦ
    DIαϥ΢ϯυ
    ʢ࣮ࡍ͸DIʣ
    DIϞϊϥϧ

    View full-size slide

  15. ෳ਺νϟϯωϧͷσʔλͷฒͼ
    DIͷ৔߹
    w /PO*OUFSMFBWFEʢผʑͷόοϑΝʹ෼͔ΕΔʣ
    w *OUFSMFBWFEʢҰͭͷόοϑΝʣ

    View full-size slide

  16. ෳ਺νϟϯωϧͷσʔλͷฒͼ
    - - - - - - - -
    ഑ྻ-
    3 3 3 3 3 3 3 3
    ഑ྻ3
    /PO*OUFSMFBWFEʢผʑͷόοϑΝʣ


    DIͷ৔߹

    View full-size slide

  17. ෳ਺νϟϯωϧͷσʔλͷฒͼ
    - 3 - 3 - 3 - 3
    ഑ྻ
    *OUFSMFBWFEʢͻͱͭͷόοϑΝʣ

    DIͷ৔߹

    View full-size slide

  18. ೾ܗදࣔͷྫ
    %"8ͷ৔߹

    View full-size slide

  19. ఺Ͱදࣔ
    ઢͰදࣔ
    ృΓͭͿ͠
    ˞$VCBTFͷྫ

    View full-size slide

  20. ্Լ͕ࠞࡏ
    Ξ΢τϥΠϯ
    ˞$VCBTFͷྫ

    View full-size slide

  21. ೾ܗදࣔͷྫ
    ϘΠεϝϞͷ৔߹

    View full-size slide

  22. ࠷େݶʹ֦େ
    ࠷େݶʹॖখ
    ॖখ
    ˞ϘΠεϝϞͷྫ

    View full-size slide

  23. ࠷େݶʹ֦େ
    ॖখ
    ը໘ͷ෯ʹରͯ͠
    ॎઢͷ਺͕Ұॹ
    ˞ϘΠεϝϞͷྫ

    View full-size slide

  24. w ೾ܗʹ伱͕ؒ։͍͍ͯΔ
    w σʔλ΍6*͕গͳͯ͘ࡁΉ
    w 3FUJOBͷӨڹΛड͚ͳ͍
    w ৼ෯ͷ্Լͷ෯͕ಉ͡ʢ্ԼͰผʑͷσʔλΛ࣋ͨͳͯ͘ྑ͍ʣ

    View full-size slide

  25. %"8ͷ৔߹
    w ࡉ͔͘ฤूͰ͖ΔͷͰζʔϜͷ෯͕޿͍
    w ζʔϜ཰ʹΑͬͯ೾ܗͷඳըͷ࢓ํΛ෼͚͍ͯΔ
    ϘΠεϝϞͷ৔߹
    w େࡶ೺ͳฤू͔͠Ͱ͖ͳ͍ͷͰζʔϜͷ෯͕ڱ͍
    w ೾ܗͷඳըͷ࢓ํ͸ͭ

    View full-size slide

  26. ೾ܗ༻σʔλ΁ͷม׵

    View full-size slide

  27. ·ͱΊ͍ͨ۠ؒ
    ͜ͷൣғΛϐΫηϧ෯ͰදࣔͰ͖Ε͹ྑ͍ͱ͢Δ

    View full-size slide

  28. ࠷େ஋ͱ࠷খ஋Λऔಘ
    ʢ࠷େ஋ʣ
    ʢ࠷খ஋ʣ

    View full-size slide

  29. ؒҾ͍ͯ͸͍͚ͳ͍
    ৼ෯ͳͷͰ෇ۙ͹͔ΓΛ௫Ή͜ͱ͕͋Δ

    View full-size slide

  30. ઈର஋ͷ࠷େ஋Λऔಘ
    ʢઈର஋ͷ࠷େ஋ʣ
    ʢ࠷খ஋ʣ

    View full-size slide

  31. ύϑΥʔϚϯεΛߟྀ͢Δ

    View full-size slide

  32. "DDFMFSBUF'SBNFXPSLΛ࢖͏
    w
    fl
    PBU΍EPVCMFͷ഑ྻʹର͢ΔॲཧΛ଎͘Ͱ͖Δʢ͔΋ʣ
    w ഑ྻͷத͔Β࠷খ஋ɾ࠷େ஋Λ୳͢὎W%41@NJOWW%41@NBYW

    View full-size slide

  33. όοΫάϥ΢ϯυͰॲཧ͢Δ
    ϝΠϯ
    εϨου
    #(
    εϨου
    6*ʹ൓ө
    ը૾࡞੒
    σʔλಡࠐ
    6*ߋ৽

    View full-size slide

  34. όοΫάϥ΢ϯυͰॲཧ͢Δ
    ϝΠϯ
    εϨου
    #(
    εϨου
    6*ʹ൓ө
    ը૾࡞੒
    σʔλಡࠐ
    6*ߋ৽
    "VEJPऔࠐ
    ζʔϜ
    Ωϟογϡ

    View full-size slide

  35. ࠷খݶͷ6*Λදࣔ͢Δ
    ϘΠεϝϞతͳ৔߹
    ը໘
    ࠶ར༻

    View full-size slide

  36. .FUBMΛ࢖͏

    View full-size slide

  37. .FUBMΛ࢖͏΂͖ͱ͖͸ʁ
    w 6*,JUͰ͸ύϑΥʔϚϯε͕ग़ͳ͍ʢը૾ͷඳըʹ͕͔͔࣌ؒΔʣ
    w ઈ͑ؒͳ͘εϜʔζͳΞχϝʔγϣϯΛ͍ͨ͠
    w සൟʹ೾ܗͷߋ৽Λ͢Δ

    View full-size slide

  38. .FUBMͰ೾ܗΛඳը
    w ը૾Λඳը͢ΔͷͰ͸ͳ͘ɺϙϦΰϯͰඳը͢Δ
    w ృΓͭͿ͠͸ࡾ֯ܗΛ૊Έ߹ΘͤΔ
    w ௖఺࠲ඪͷ഑ྻΛ$16ଆͰ࡞ΓɺృΓͭͿ͠͸(16ʹ೚ͤΔ
    w ࣄલʹը૾Λ࡞Δඞཁ͕ͳ͘ͳΔ

    View full-size slide

  39. σʔλྔ͕গͳ͘͢Ή
    ը૾
    ௖఺഑ྻ
    ॎͷσʔλྔ͕
    গͳ͘ͳΔ

    View full-size slide

  40. ࣍ݩը૾ͷඳը͕ճͰ͢Ή
    ೾ܗը૾࡞੒ ը໘දࣔ
    ೾ܗ༻σʔλ
    ࡞੒
    ը໘දࣔ
    ೾ܗ༻σʔλ
    ࡞੒
    ͍Βͳ͘ͳΔ

    View full-size slide

  41. ֊ஈঢ়ʹృΓͭͿ͠

    View full-size slide

  42. ֊ஈঢ়ʹృΓͭͿ͠
    ௖఺Λฒ΂Δ

    View full-size slide

  43. ֊ஈঢ়ʹృΓͭͿ͠
    ࡾ֯ܗΛ૊Έ߹ΘͤͯృΓͭͿ͢

    View full-size slide

  44. ઢܗิؒతʹృΓͭͿ͠
    ҰݟΞφϩάͷ೾ܗʹۙ͘ݟ͑Δ͕
    σδλϧσʔλͷࢹ֮Խͱͯ͠͸ӕ
    Ͱ΋௖఺͸গͳ͘ࡁΉ

    View full-size slide

  45. ྠֲઢ
    ઢͷଠ͞͸ௐ੔Ͱ͖ͳ͍

    View full-size slide

  46. ྠֲઢ
    ࡾ֯ܗΛ૊Έ߹ΘͤΔ

    View full-size slide

  47. όοΫάϥ΢ϯυͰॲཧ͢Δ
    ϝΠϯ
    εϨου
    ඳը
    ඳը
    ඳը
    ඵ ඵ

    View full-size slide

  48. όοΫάϥ΢ϯυͰॲཧ͢Δ
    ϝΠϯ
    εϨου
    #(
    εϨου
    ඳը
    ௖఺഑ྻ࡞੒
    .5-#V
    ff
    FSʹ
    ൓ө
    σʔλಡࠐ
    ඳը ඳը

    View full-size slide

  49. όοΫάϥ΢ϯυͰॲཧ͢Δ
    ϝΠϯ
    εϨου
    #(
    εϨου
    ඳը
    ௖఺഑ྻ࡞੒
    σʔλಡࠐ
    ඳը
    ˞͜͜΋#(ʹͰ͖Δ͔΋ʁ
    .5-#V
    ff
    FSʹ
    ൓ө
    ඳը
    .5-#V
    ff
    FSʹ
    ൓ө

    View full-size slide

  50. ೾ܗΛදࣔ͢Δͱ͜Ζ
    ଞͷ6*
    ը໘
    ͚ͩ͜͜.FUBM7JFXʹͯ͠
    .FUBMͷෛՙΛܰ͘͢Δ
    .FUBM7JFXΛ࠷௿ݶͷྖҬʹ͢Δ

    View full-size slide

  51. ͦͷଞͷ.FUBMͷར఺
    w ζʔϜͯ͠΋ඳը࣌ͷղ૾౓͸Լ͕Βͳ͍
    w ෳ਺ͷ೾ܗϒϩοΫΛ૊Έ߹Θͤͯ΋ܨ͗໨͕͖Ε͍
    w ϑϨʔϜϨʔτΛམͱ͢͜ͱ͕Ͱ͖Δ

    View full-size slide

  52. ࿩ͨ͠಺༰
    w ΦʔσΟΦͷσʔλܗࣜʹ͍ͭͯʢϦχΞ1$.ʣ
    w طଘͷΞϓϦͷ೾ܗදࣔʢ$VCBTFɾϘΠεϝϞͷྫʣ
    w ೾ܗ༻σʔλ΁ͷม׵ʢ࠷େ஋ɾ࠷খ஋Λ࢖͏ʣ
    w ύϑΥʔϚϯεͷߟྀʢ"DDFMFSBUF'8ɾ#(ʹ೚ͤΔɺ࠷௿ݶͷ6*ʣ
    w .FUBMΛ࢖ͬͨ೾ܗඳըʢ௖఺഑ྻͰܰ͘͢Δʣ

    View full-size slide