周波数freq
Hzで
t
秒分のサンプルベクトルを生成
samples = soundsec(t) samples = soundsec(t, freq)
正の実数の1行1列行列, サンプルの時間長.
正の実数の1行1列行列, サンプル/秒の周波数.
デフォルト値は22050 Hz
サンプル・レート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); | ![]() | ![]() |
Version | Description |
6.1.1 | soundsec is declared obsolete.
soundsec(t) is replaced with
0 : 1/22050 : t*(1-%eps) .
soundsec(t, freq) is replaced with
0 : 1/freq : t*(1-%eps) .
soundsec(…) will be removed in the next Scilab version. |