source: orbit/octave/GenerateAudioCommand/gen38k.m @ 0edc9d8

RawEEGRaw_EEG_PlotServoTab_Interfacepyramid
Last change on this file since 0edc9d8 was 0edc9d8, checked in by AzureViolin <zhanghaotz@…>, 7 years ago

generated working iPad init Code

  • Property mode set to 100644
File size: 311 bytes
Line 
1bps = 16;       % bits per sample
2sps = 44100;     % sample rate [samples/s]
3freq = 19200;       % frequency of the tone [Hz]
4nsecs = 10;      % number of seconds of the audio file
5
6nsamples = sps*nsecs;
7
8time = linspace(0, nsecs, nsamples);
9wave = sin(time*2*pi*freq)';
10
11wavwrite(wave, sps, bps, 'audio.wav')
Note: See TracBrowser for help on using the repository browser.