<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shokai</author_name>
  <author_url>https://blog.hatena.ne.jp/shokai/</author_url>
  <blog_title>橋本詳解</blog_title>
  <blog_url>https://shokai.hatenadiary.org/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>wav</anon>
  </categories>
  <description>dataチャンクから配列として波形を取り出せるか試してみた。Rubyはunpackで取り出してpackでバイナリに戻せる(しかもけっこう高速に)のでこれを使っていこうかな。 nameがdataのchunkのデータ部分が波形データなので、wav formatを見て16bitか8bitか確かめて、それぞれunpackすると1hz分ごとの数値の入った配列が得られる。ステレオだとLRLRLRLRと入っているので左右チャンネルが入れ替わってしまうがまあ、とりあえず気にしなくていいか。reverseWav.rb #!/usr/bin/env ruby # -*- coding: utf-8 -*- # w…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshokai.hatenadiary.org%2Fentry%2F20091102%2F1257189122&quot; title=&quot;逆再生するwavを作る - 橋本詳解&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-11-02 04:12:02</published>
  <title>逆再生するwavを作る</title>
  <type>rich</type>
  <url>https://shokai.hatenadiary.org/entry/20091102/1257189122</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
