SAL
A C++ library for spatial audio.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions | Variables
analyse_doppler.m File Reference

Functions

 subplot (3, 1, 1)
 
 plot (t', sine_original)
 
 plot (t', sine_doppler)
 
 plot (t(1:end-1), diff(sine_doppler))
 
 subplot (3, 1, 2)
 
 plot (f, 20 *log10(abs(H_original)))
 
 plot (f, 20 *log10(abs(H_doppler)))
 
 subplot (3, 1, 3)
 
 plot (diff(current_latency(1:end-1)))
 
pause sound (sine_doppler, FS)
 

Variables

load sine_original txt
 
 sine_doppler = sine_doppler
 
 FS = 44100
 
 t = linspace(0,length(sine_original)/FS, length(sine_original))
 
hold on
 
hold off
 
 sine_freq = 1000
 
 v = 343
 
sound speed vs = 171.5
 
source speed doppler_shift
 

Function Documentation

plot ( t ,
sine_original   
)
plot ( t ,
sine_doppler   
)
plot ( t(1:end-1)  ,
diff(sine_doppler  
)
plot ( ,
20 *  log10abs(H_original) 
)
plot ( ,
20 *  log10abs(H_doppler) 
)
plot ( diff(current_latency(1:end-1))  )
pause sound ( sine_doppler  ,
FS   
)
subplot ( ,
,
 
)
subplot ( ,
,
 
)
subplot ( ,
,
 
)

Variable Documentation

source speed doppler_shift
Initial value:
sound(sine_original, FS)
FS = 44100
hold off
hold on
sine_doppler = sine_doppler
sine_freq = 1000
t = linspace(0,length(sine_original)/FS, length(sine_original))
load current_latency txt
v = 343
sound speed vs = 171.5