[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
playing simple wave files
From: |
John Gagnon |
Subject: |
playing simple wave files |
Date: |
Tue, 10 May 2016 11:45:30 -0700 (PDT) |
I am attempting to use my cell phone and Octave to play a few .wav files to a
"remote" bluetooth speaker
I am new to Octave with some experience with MatLab I downloaded OCTAVE to
my laptop and wrote the following short code and it worked fine on my
laptop:
% sound play back
% For use on cell phone
%
fil = input( 'Choose wave file 1=sweep01 2= chord01 3=pulse03-50-1k
4=mls01');
x = input ('Enter number of playbacks');
if fil== 1
[y, fs]=wavread('sweep01.wav');
elseif fil== 2
[y, fs]=wavread('chord01.wav');
elseif fil== 3
[y, fs]=wavread('pulse03-50-1k.wav');
elseif fil== 4
[y, fs]=wavread('mls01.wav');
end
for i = 1:x
%do
% while (x
sound(y, fs);
end
I don't understand if it works on the laptop it should work on the phone...
Thanks in advance for the help.
John
--
View this message in context:
http://octave.1599824.n4.nabble.com/playing-simple-wave-files-tp4676878.html
Sent from the Octave - General mailing list archive at Nabble.com.
- playing simple wave files,
John Gagnon <=
- Re: playing simple wave files, Mike Miller, 2016/05/10
- Re: playing simple wave files, John Gagnon, 2016/05/10
- Re: playing simple wave files, Mike Miller, 2016/05/10
- Re: playing simple wave files, John Gagnon, 2016/05/11
- Re: playing simple wave files, John Gagnon, 2016/05/11
- Re: playing simple wave files, Mike Miller, 2016/05/11
- Re: playing simple wave files, Mike Miller, 2016/05/11
- Re: playing simple wave files, Tatsuro MATSUOKA, 2016/05/12