{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Juliaで信号処理の練習\n", "## オーディオデータを取り扱う\n", "\n", "オーディオファイルのIO,再生,編集,録音とか" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "次のパッケージを使用する \n", "[SampledSignals.jl](https://github.com/JuliaAudio/SampledSignals.jl) ファイルから読み込んだ/録音したオーディオデータを保持する構造体が定義されている \n", "[LibSndFile.jl](https://github.com/JuliaAudio/SampledSignals.jl) オーディオファイルIO.wav,mp3,FLAC等いろいろ読める. \n", "[PortAudio.jl](https://github.com/JuliaAudio/PortAudio.jl) マイク入力を録音したり,処理したり. " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 1. Julia上で生成した波形データの音を聞く" ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/html": [ "\n" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "using SampledSignals" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/html": [ "
To enable for the whole notebook select \"Trust Notebook\" from the\n", " \"File\" menu. You can also trust this cell by re-running it. You may\n", " also need to re-run `using SampledSignals` if the module is not yet\n", " loaded in the Julia kernel, or `SampledSignals.embed_javascript()`\n", " if the Julia module is loaded but the javascript isn't initialized.
\n", "To enable for the whole notebook select \"Trust Notebook\" from the\n", " \"File\" menu. You can also trust this cell by re-running it. You may\n", " also need to re-run `using SampledSignals` if the module is not yet\n", " loaded in the Julia kernel, or `SampledSignals.embed_javascript()`\n", " if the Julia module is loaded but the javascript isn't initialized.
\n", "To enable for the whole notebook select \"Trust Notebook\" from the\n", " \"File\" menu. You can also trust this cell by re-running it. You may\n", " also need to re-run `using SampledSignals` if the module is not yet\n", " loaded in the Julia kernel, or `SampledSignals.embed_javascript()`\n", " if the Julia module is loaded but the javascript isn't initialized.
\n", "To enable for the whole notebook select \"Trust Notebook\" from the\n", " \"File\" menu. You can also trust this cell by re-running it. You may\n", " also need to re-run `using SampledSignals` if the module is not yet\n", " loaded in the Julia kernel, or `SampledSignals.embed_javascript()`\n", " if the Julia module is loaded but the javascript isn't initialized.
\n", "To enable for the whole notebook select \"Trust Notebook\" from the\n", " \"File\" menu. You can also trust this cell by re-running it. You may\n", " also need to re-run `using SampledSignals` if the module is not yet\n", " loaded in the Julia kernel, or `SampledSignals.embed_javascript()`\n", " if the Julia module is loaded but the javascript isn't initialized.
\n", "