<?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>前：wavファイルのフォーマットを読み込む - 橋本詳解 wavのDSPをやる準備が整った。 wavヘッダをメモリに読み込んでrubyの変数として扱って、バイナリに書き戻せるようになった。dataチャンクの中の波形をいじれば音を変えれる。 まずは波形ではなくwavヘッダの周波数とbpsの値をいじって、倍速再生のwavファイルを作る例。 かなりバイナリをすんなり扱えるラッパーができた。 （後述のWavFile.rbを使う） test.rb #!/usr/bin/env ruby require 'WavFile' if ARGV.size &lt; 2 puts 'ruby test.rb input…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshokai.hatenadiary.org%2Fentry%2F20091101%2F1257089375&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-01 00:29:35</published>
  <title>wavファイルのフォーマットを書き換えて倍速再生にする</title>
  <type>rich</type>
  <url>https://shokai.hatenadiary.org/entry/20091101/1257089375</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
