help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Syntax issue with converting over from wavwrite to audiowrite


From: Andreas Weber
Subject: Re: Syntax issue with converting over from wavwrite to audiowrite
Date: Tue, 3 May 2016 15:55:30 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.7.0

Am 03.05.2016 um 14:25 schrieb RT:

> I'm trying to get it to work with audiowrite using octave 4.0 see below
> but I get a audiowrite: wrong argument name
> 
> audiowrite('/tmp/testfile2.wav',[w1(:) w2(:) w3(:) w4(:)],44100,16)
> and
> audiowrite('/tmp/testfile2.flac',[w1(:) w2(:) w3(:) w4(:)],44100,16)

See "help audiowrite", the options has to be name, value pairs. Use:
audiowrite('/tmp/testfile2.flac',[w1(:) w2(:) w3(:)
w4(:)],44100,"BitsPerSample",16) or just
audiowrite('/tmp/testfile2.flac',[w1(:) w2(:) w3(:) w4(:)],44100)
because 16bits per sample is the default.

> It says audiowrite can have up to 256 channels am I incorrect about this?

I've tried it and I think it should work with up to 256 channels.
Andy



reply via email to

[Prev in Thread] Current Thread [Next in Thread]