Ignore:
Timestamp:
11/29/12 08:17:10 (7 years ago)
Author:
AzureViolin <zhanghaotz@…>
Branches:
master, RawEEG, Raw_EEG_Plot, Servo, Tab_Interface, pyramid
Children:
0401409, 655a816
Parents:
3322dad
Message:

flyOrbit.m can now generate arbitry control code for play from laptop. update read.me

File:
1 edited

Legend:

Unmodified
Added
Removed
  • octave/GenerateAudioCommand/flyOrbit.m

    r3322dad ra0b523e  
    66bps = 16;       % bits per sample 
    77%sps = 96000;     % sample rate [samples/s] 
    8  
     8if length(AndroidOriOS)==3 %iOS 
    99fullCodeWave=[flyCommand(code,space,'temp1.wav',sps,2,AndroidOriOS,flipOrNot);initCodeGen('temp2.wav');flyCommand(code,space,'temp3.wav',sps,repeatTime,AndroidOriOS,flipOrNot)]; 
    1010 
     11elseif length(AndroidOriOS)==7 %Android 
     12fullCodeWave=[flyCommand(code,space,'temp1,wav',sps,20,AndroidOriOS,flipOrNot);initCodeGenAndroid('temp2.wav');zeros(1,1);flyCommand(code,space,'temp3.wav',sps,repeatTime,AndroidOriOS,flipOrNot)]; 
     13 
     14endif 
     15 
     16sizeCode=size(fullCodeWave,1); 
     17time=linspace(0,sizeCode/sps,sizeCode); 
     18fullCodeWave = [fullCodeWave sin(time*2*pi*440)']; 
     19 
    1120wavwrite(fullCodeWave, sps, bps, audioFileName); 
Note: See TracChangeset for help on using the changeset viewer.