Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Português - Русский - 日本語
Aide de Scilab >> Manipulation de fichiers sons > playsnd

playsnd

sound player facility

Syntax

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

Arguments

y

A matrix. Each line describes a channel

rate

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 default 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
Scilab Enterprises
Copyright (c) 2011-2015 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jun 15 08:31:07 CEST 2016