Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.0 - Português

Change language to:
English - Français - 日本語 - Русский

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.

Ajuda do Scilab >> Manipulação de Arquivos de Som > soundsec

soundsec

generates a vector of samples for t seconds at frequency freq Hz.

Calling Sequence

samples=soundsec(t [,freq])

Arguments

t

a 1-by-1 matrix of positive real numbers, the time length to sample.

freq

a 1-by-1 matrix of positive real number, the frequency of samples per second.

default value is 22050 Hz

Description

Generates a vector coding time from 0 to t seconds at sampled rate freq.

Samples are always generated to fit in [0,t[ (excluding upper bound).

Value 0 for either t or freq return an empty matrx

Examples

// At first we create 0.5 seconds of sound parameters.
t=soundsec(0.5);

// Then we generate a pure A4 = 440Hz sine
s=sin(2*%pi*440*t);
analyze(s,200,600,22050);

See Also

  • playsnd — sound player facility
  • analyze — frequency plot of a sound signal
Report an issue
<< sound Manipulação de Arquivos de Som 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:
Fri Apr 11 14:18:14 CEST 2014