Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.1 - 日本語

Change language to:
English - Français - Português - Русский

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function

Scilabヘルプ >> Sound file handling > playsnd

playsnd

サウンドプレイヤー機能

呼び出し手順

[]=playsnd(y)
[]=playsnd(y,rate,bits [,command])

引数

y

行列. 各行は1チャネルを記述

fs

実数, サンプリング周波数 (デフォルト値は22050).

bits

実数, ビット長 (通常 8 または 16). 未使用.

command

Unixシステムのみで使用され, サウンド(wav)ファイルを演奏する際に使用されるコマンド名を指定します. デフォルト値はplayです. /dev/audioが指定された場合, 8ビットmu-law rawサウンドが生成され, /dev/audioに送信されます.

説明

Scilab行列で指定されたマルチチャネル信号を演奏します. ただし, サウンドのサンプリングレートはrateです.

// a two channel signal
y=loadwave("SCI/modules/sound/demos/chimes.wav");
playsnd(y)

参照

  • lin2mu — linear信号をmu-lawエンコーディングに変換
  • wavread — .wav サウンドファイルを読み込む
Report an issue
<< mu2lin Sound file handling savewave >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Oct 02 13:58:25 CEST 2014