Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.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.
However, this page did not exist in the previous stable version.

Scilabヘルプ >> Sound file handling > soundsec

soundsec

周波数freq Hzで t秒分のサンプルベクトルを生成 (obsolete)

呼び出し手順

samples = soundsec(t)
samples = soundsec(t, freq)

引数

t

正の実数の1行1列行列, サンプルの時間長.

freq

正の実数の1行1列行列, サンプル/秒の周波数.

デフォルト値は22050 Hz

説明

soundsec(…) is obsolete and will be removed from Scilab 6.2.x. soundsec(t) is replaced with 0 : 1/22050 : t*(1-%eps). soundsec(t, freq) is replaced with 0 : 1/freq : t*(1-%eps).

サンプル・レートfreqで 0から t 秒までの時間ベクトルを生成します.

サンプルは常に [0,t[(上界を除く)に整合するように生成されます.

0 をt または freq に指定すると, 空の行列が返されます.

// まず0.5秒分のサウンドパラメータを作成.
t = soundsec(0.5);

// 次に A4 = 440Hz サインを生成
s = sin(2*%pi*440*t);
analyze(s,200,600,22050);

参照

  • colon — コロン演算子
  • linspace — generates linearly spaced numbers between 2 reached bounds
  • playsnd — command-line sound player facility
  • analyze — サウンド信号の周波数プロット

History

バージョン記述
6.1.1 soundsec(t,…) declared obsolete. 0 : 1/freq : t*(1-%eps) replaces it.
Report an issue
<< sound Sound file handling wavread >>

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:
Mon Jan 03 14:37:53 CET 2022