source: orbit/octave/GenerateAudioCommand/flyOrbit.m @ 3322dad

RawEEGRaw_EEG_PlotServoTab_Interfacepyramid
Last change on this file since 3322dad was 3322dad, checked in by AzureViolin <zhanghaotz@…>, 8 years ago

iOS working code. Run flyOrbit.m

  • Property mode set to 100644
File size: 540 bytes
Line 
1function fullCodeWave=flyOrbit(code,space,audioFileName,sps,repeatTime,AndroidOriOS,flipOrNot)
2
3% code: array of 1s and 0s. 1 means bit "1", 0 means bit "0".
4% audioFileName: like 'audio.wav'.
5% space: space between codes [samples]
6bps = 16;       % bits per sample
7%sps = 96000;     % sample rate [samples/s]
8
9fullCodeWave=[flyCommand(code,space,'temp1.wav',sps,2,AndroidOriOS,flipOrNot);initCodeGen('temp2.wav');flyCommand(code,space,'temp3.wav',sps,repeatTime,AndroidOriOS,flipOrNot)];
10
11wavwrite(fullCodeWave, sps, bps, audioFileName);
Note: See TracBrowser for help on using the repository browser.