Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.2 - 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.
See the recommended documentation of this function

Ajuda Scilab >> Manipulação de Arquivos de Som > playsnd

playsnd

sound player facility

Calling Sequence

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

Arguments

y

A matrix. Each line descibe a channel

fs

real number, sampling frequency (default value is 22050).

bits

real number, number of bits (usually 8 or 16). Unused yet.

command

Only used on Unix systems it gives the name of the command to use for playing sound (wav) files. The defaut value is play. If set /dev/audio then a 8 bits mu-law raw sound file is created and send to /dev/audio

Description

Plays a multi channel signal given by a Scilab matrix were sound is sampled at rate given by rate.

Examples

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

See Also

  • lin2mu — linear signal to mu-law encoding
  • wavread — load .wav sound file
<< mu2lin Manipulação de Arquivos de Som 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 May 12 11:45:27 CEST 2011