Real Time Audio Spectrum Analycer by John L. Murphy www.trueaudio.com ! " # $% $' $) * $+ $" -, $, $" / $0 $1 $"2 & ( ( , . & ' $ $3 $ $3 $ $" $6 $9 ! 5 " 4 / 7 "8 " / # & ( ( $ $3 $ $0 $0 $0 $0 $+ $ > $ > $ > $, $ > ! ! ! 7 < = " :; : # # . ( ! ? > @ > # # ( ! " #$ %$& !" ' !" (& !" )$ * , ! & ! 0 + . ( /& / / - 1$ ! " # $ % "& * ( 0 ! , 4 5 2 & ,3 !. . 6 - ( + 7$' ! %( 0 & 4 ! !" !" & 9 : 4 + 8 + ! !" 3 $ ;$ <$ ) * ' " +# " # ) =$ ) >$ * 3 # % -. 4) ) ! ,./0 ' !, 1 2 5- +# ) , 2 5 0 3 " @ ? " & @ B0 * $ : + A3 + ! @ " 3 + 9 * , C. " %%D 5 , C. 0 " " 8 " ! 9 ;;D5 $+ & 11D 5 ! 9 2 0 4 F : 3 " $ ? " %DD + @ ( G E ! 0 + ! / "" %DD 5 3 : , : . / "" %DD 5 0 : & ! A 9 5 & ! + H , . $ % 0 3 + (& + C + H ! 3 " + ! ! + 3 (& H + " ! ! 0 ! ! (& 8 3 ! + H ' % ( 08 " + 1= 65 " 3 + " &* 8 $ 3 :! : 11# 65 9 " ! ! : ! ! %1 65 " I5 C " C " + 3 3 " ! + + 3 C 8 " = ##D%7 #; %%D7 %1 )% 11# 1= + >; >; I5 " 3 ! 1= I5 11# 1= +>; I5 " + ( " 11# I5 2 1= I5 3 ! 1= I5 " 3 3 >;I5 C 0 8 (& ! + + ( ! " H + ! / * +*/ + % C 0 " + 6 & " J " ( " )7 + (& " ' % + 9 #/ =.$ )7 '7 8! 0 @ " 8 " ) 8 +' #$ K * - + K , ! ? / & /0 K 0 3 & + 3 @ $ 8 8 A * %$ * ( K 0 K 0 K : J 0 $ - ! 4 " :H , 4 & . 3 9 + 4 ! ,3 ) , H % & 89 / 8 2 5 )$' ( & ( K . - L ! " # K ! - & - . !. 6 ! + ! C + C 0 & 0 4 ! # : ? 1 + B#D A + %D5 +%DI5 0 " $ 2 " " 0 M;D A " 3 3 8 A #DDD9 0 2 + + & 3 " + , + 2 . : " H 4 M#D A * H H " 9 ! $+ " 2 : " : + 3 ? " *3 + @ * " " " + + ; @ 4 @ + < ? 2 A " # #D #DD " ? (& ? , 3 + ! N ! . #DDDDD + @ I:J F A + G& ! 0 A B/ K DD7 A . ")=>' ) " C * ? 8) 6 >) ; " 2 = & 9 & B $= ! + ; 9 & B $ + '! 9 & B:$ $ 4 + '! 3 9 & B($ $ 3 ! " 9 & B($ ! " 0 F G C " " 0 + " ( F ( ! " ! 3G 0 + 20 " /( " ! ' ' ( ' % " )& 08 % ! )& 3 & 8 " + A 8 & " , E A. " ! 2 A + & 3 @ :(C? 0+" )& 9 & : BN$ ' ! & " *) C ) @= " > * 20 9 & ! BO$ " 8 + & 9 & B P$ " 8 + 0 8 & +9 & " 8 + 0 8 B &$ 9 & " ( B -$ 8 + Q 8 ( ( 0 * ( " 9 ! 3$ + ! " C * ) ) " 2A : " " C " +A A ! A ' : A A " 6 ! A 5 " ' 2 ) ! A 0 " " ! &(Q + 20 ! $ ' ' ' A A A C A 2 + 0 &(Q A $ 2 A * ; 2 A * 4 ( ' ' 0 +# A 2 A # ) A 4 * + " ! " "# $ & % $ % " '& ' ( ' '& $ )*+ ( + --* ( $ " . $ $ $ " $ ' $. ( ? % '& $ ( 9 " + A : , ! H B ( " " C '! 0 " + " ! + $ 0 3 ' Q B# B% BD # #D Q B: " B# % #D %D ( 3 7 7 + /# 1* * $ )*+ / & $ )*+ " 0 / & $ & $ & " 2 45 * '& " D $ ( * $ $ $ $ )*+ % 3 45 & $ $ $ $ / & ! * # $ / $ $ ( ! 6$ & $ $ ' 0 /6 " " + " /; " + * & B# & B% & BD # #D Q & B: " B# % #D %D ( 3 ' 7 & + @ 7 Q 0 3 2+ @ ' " A 5 " + A D & BL " : * & B B# & B B% & B BD # #D Q & B B: " B# % #D %D ( 3 & + D ' + 6 0 " C 7 7 @ " " ! ; " * $)=) ; );= ' " 24 ; /;( () ' 0 / ! ; 2 ' 2 H " H + Q C : + : 4 & 9 H A$ 8 & A DD A " <<7 9 D A$ B= 2 A 4 0 ! ! " ! & / "" A 4 + 0 " = @ A 2 " 4 Q + & ! A 0 " ) 0 C B' A / "" 4 A/ EE A H ! 9 $ " & + A H + + ( C " " A 2 ! H #D " %D I5 3 0 %D 1D 5 H / 0 " 2 , . + Q " ! " " 0 4 ! H Q ! H + 3 + & ! " : & " ! A #D5 +1<I5 C 8 " A DD7 A : +" ! A & & : (& & %D5 : 3 " 2 ! : 3 !" !" 8, @ " " " F " 7 " C * > ; /; " ' 0 2 " ? / ! 0 + + ' * B0 * @ + ' 0 " ! 0 + ' @ B0 + * + ' ' 0 % 2 @ ? B* F CB G ? K* F CK G " 0 @ ! 9 C+ $ ' 0 ? < + ? 2 " ! H " = I5 ( >;I5 C " " C + " " 11#I5 ! 3 3 " H 1= I5 " " 3 " 3 3 C ! + ; 0 ' 2 ? < H " " 9 1= I5 $ 3 11#I5 >' 0 (& C + ? " ' " 11# 1= + >; I5 3 " ! 2 ( 2 0 ! : 3 " % > H H + 2 H : H + + + + ( 3 - &(Q 0 # 7 & - + &(Q : 8 : @ - " &(Q &(Q - Q ( 3 ( & # ? - ? ? ? % 0 7DD '5 " #= 45 " Q 1 ) + " ! ( 8 2 " " 8 0 0 ( 8 % * H 9 9 9 & A ! : A @ + +% 3 & " $0 ! C -$ C 3 ? 8 (& 2 C 3 ! ' * & ! C 0 + ! $ * /& & " + "( 8 !9 ($ )*+ $ 0 ! 4 F & R #DDS R 7DS R 7DS - G 0 8 C 0 ) ' F 4 ! !G R 7DS F R #DDS 0 G R 7DS "( 4 8 0 : ; % * 2 9 & ! ( C H 8 4 C H " A ! & : C 2 ! @ 8! ' : H * & ' 8 0 " ! ! C ! ! % ' 8 & * ! :(C 9 3 ( ! : $ 3 : :(C " :(C :(C : ' 0 8 %! " (& ! '+ ! 8% % 2 & ! : : ! " A : " (& : (& ! 8 " + : @ & 3 ! ! : " * ! " & + ! & 3 : + ! : 2 0 ! ! + : (& : 2 ! + * & A : (& ! H : 6 A 3 : + A " " #D5 8 + : 1<I5 9 >;I5 E $ 0 " :+ 0 3 * @ ! 2 & ! ( (& + + @ ! A > ' Q @" ' '+ " Q > ! + & 0 ; " " %( :+ !" % ! ! (& " ' : : ! " ! ! ? ! ! % !" " ! 2 & " ! + !" 2 C ! # + =DD !" 0 !" 8 + 2 8 " %D 7D K)%7 K#<7 #DD KD)) #DDD DD #DDDD %DDDD C " A K## K%>7 " " + * # 0 " ! !" @ ! 2 :(C? 0 ! & ! !" D A 8 0 2 ! !" + ( 8! " 5 !" ! 3 : + 2 ! @ A !" ! F G " ! > & ! " " %( 0 " & : : ! > ' !" % ! % ! 2 !" 0 ! @ 2 ! !" ! !" !" " " * ;' 8;' ; 4 : ! ! ! ; 0 ! H " @ Q C ; 0 " 2 " " @ " ; ! ! Q ! % 2 @ ! 2 Q 3 ! % ! @ "3 3 . ' " 0 ; ! " ! C " ! + : ' " + " @ 0 2 $ * = 8 D 0 ; " " ! " ) )' ) $ ; 0 C " 0 + 3 ! - % " " H 2 " 0 " ! B6 @ " & " .; 5 ! .; ! " " 5 +#D %D 5 %D I5 ./0 ; 5 #/ ) %DI5 ! ./E ; 5 ! ./0 ; ! " 5 +)D " ./E ; %D 5 ! " 5 + ;D " %D 5 #/ ; %D %D 5 #/ #% %D %D 5 #/ %1 %D I5 ./.F ; 5 ! ./.F ; ! " 5 +#%D " I5 ./FG ; 5 ! ./FG ; ! " 5 +%1D " I5 & ' 0 " C " ( ( 2 $ 1D 5 9 $+=D 5 9 ! =D 5 ! ! %D 5 ! 8 ! %D 5 3 " Q C %D5 9 $ EE + ! " @ ! 0 1D 5 9 $+=D 5 9 3 ! (& C %D 1D + =D 5 1= 65 @ 8 3 " ! A $ " 0 3" 2 " ! A " " Q " " ! " H & 0 0 " " " ! A ! " & , @ " ! " ' . ! 2 & ' " + ! ! " " + Q " ! , 0C. " ' ! ' 8" " ' 8 0 " ! C B%D A A :(C ! " A @ :(C& ! A AQ D F & 2 + A :(C K#;D B#=D A :(C C ! :(CG ( 6 Q ? < 8 Q +8 2 ! ? < > Q 89 " 0 +8 2 ! A8 ! 89 A8 ! 0 @ : ( 3 " 0 89 2 ! @ A ! 8 Q ( 89 2 ! 0 A 0 ! @ ( " ! @ " 2 2 ! # $& 9 H $ 3 9 + & " ! % ) ( H #DDDDD 0 + 2 H 2 - @ $ ( " " $ " * ") ; 0 + 2 @" C ! " @ ! 8 ! : " =! 8 ! ( 8 ! A =! A : A @ ? / ? / : " ? ? A ? : " A A ? 0 ; " 0 ;( ( " ! ! ! " " + ! @ ! *> ! ! " 8 )' C " " ! + ! EE C + + " 2 ! ! C ! %D ! 7 @ #D A 8 ! " ( + A " 8 ': ! + H EE 0 ' 0 " + ' ! !# ! " ! + ! 08 ! 7 #D A ! ! ( 2 " ! D))) ' ( Q # ! 3 0 2 + ' 0 ' : H + " : " ! + H EE 5 : A + :(C " ( ( 0 + " Q 3 " @ + ! ! + H EE A :(C A " C C " * H> " 2 6 + + 4 Q 2 + > ? ? &! Q ' + " 2 ! + ! + 9 $ $)=) ; ) ')I 8)' % ( " H H C H H (& C H (& + 0 H ! 7D5 + " 1= I5 0 A 3 @ + C @ #D 5 1= I5 0 H ! " + @ " 0 ! @ C H " + 0 8 8 " 17 I5 ! " + " 0 + : DD7 A #7 A 0 ! H #D 5 A " 4 2 @ ! C @ 2- J F - G 0 ! E / "" * 3 +E G F E + / "" " 0 " " %D75 3 " " C +2 2 / 3 " H " #/ #% ' " ' 5 * F : " H & @ + 3 # E " G D A 3 H D<<7 - A C + : # A #D A : :5? E & ! D# A C 3 0 0A " A F N " 9 - H 3 ! 2 @ # " $ " , " I :J G = 8 D ; )= )" ; ) 8 % 0 0 H " H 3 & " " + ! 3 " + &(Q F &(Q : 9 3 A : $+ " & " (& 2? / G9 C ! - $ ! F : ""G C 5 0 A ( + " C ! ! * ! : + : 9 3 " $ " + * + ! Q 9 $ " + A ! 5 C " @ & ! + A C + " 2 0 C 2- J F - G 0 + ! 0 " "3 B%D A +M#7D A B#D A M#;D A 9 :(C$ C / 3 #D A C 7 #D %D A H " B#=D D A :(C A + A3 A ! " #D 5 %D I5 7D I5 7D 5 C @ " C " @ ! " 3 8 0 "3 " / 3 / 3 / " ""G+ F 0 2 ! " C %D 5 9 $ " ! 8 2 3 8 # #/ ) #/ ; #/ #% +#/ %1 F $ 1D 5 9 ""G $ =D 5 9 H EE + C + F ' 8 " ! G 2 0 # 2 ( " + ! # ( $ $ " ' ( 7 L J 9 + $ " (& C H H & ! 4 3 + ! 0 2 2 ? 0 4 ! ! L J F $ & G9 ! # C + + & " 4 ! L J H #$ & - L K J L , 9 ( & ! ? / 0 / %$& J . - ' / & 4 - + $ ! 2 $ - & - ( ! $ ,3 - ( . , 4 !. 6 $ & 4 + ! ! H ' ) 0 4 %( 4 & ! " ! ' !" H @ !" !" " !" 9 $ " " " " 9 : !" @ 3 $( !" 2 !" + (& " C 89 ( & 8 C 4 ( (& 0 " 3 !" ' C ! L J + 2 C 8 3 (& " !" ! !" C @ + ! @ " @ , C . C " 0 2 @ 9 Q " (& %D A #D I C 0 #I $ . ; : 9 ! ' ' H + J H L $ , . & 4 ! . & , : H L J . + J + ' ( &* & 4 &* &* ' &* L J + " ! ! * @ &* * + H 3' 5 5 3 >6 5' ' + ! 4 0 ! 0 L , : J + & ! : ' ( !" + 0 + % " & , ; , < + ( 9 # /$ $ ) 08 • ' • • 0 • • • • 4 ( : * " ! 2 ! + " ! + 3 H + H 2 + ! & % ! " H <D + =D H C ! 1 65 0 ( H " 3 " T 0 C0* A " & KA = 65 +#; 65 H ! H " !" " " C " ;%75 #%75 %7D5 7DD5 #65 %65 : " " H " " 2 C0* " & " H " 2 #D A H ! + 2 " ! & ( " K * #/ ) ( #D )D " 5+ H 3 " *:( 4 :H Q H @ *:( #/ %1 %1D " T 8 # Q (& ( EE " ) 1 E 0 " @ E H H " : " ! ! H " + " 3 3 ' E H 3 " + ( 3 A C C 9 " ( $ " " ! H " " E H C " ! + " H ! C 3 #/ %1 0 H ! 9 !" $ EE 0 " 2 H EE ( 3 #I EE #D%1 1I EE 1DDD 1I =I #;I )%I ! ;1I C H EE ;1I " +" EE + 0 + ! ! EE ! )%DDD ! + * " + ! ! EE " M )%DDD #D 65 ! 8 %D 65 " 0 3 " EE " " " 4 ! + " "3 " " 3 EE 0 2 EE ! H 3 + " ( H " " ! EE EE EE " ! 3 ! ! 3 ! " ) A : EE + ' 0 EE @ ( " " , . A (& @ 2 " ! 3 " ! #/ %1 " ! ( )8 ;' 8;' ; ; % 0 3 " 3 0 H " C 8 & & & : 8 84 8J 0 DD7 + 9 $ + + 3 ! C / * ! C 7%DD ! / * DDDD# ! 0 C 2+ ! C C " + " " 7 2- J F - GC 3 3 + A & 0 ! 0 " 2 ! 0 ! / 3 DDD# - 7- ! ! / / *? - +DD7 %DD 0 ! / *? - " H ! C B C 2 " ! 3 " + " ( " 2 ! 3 ") @= $ 8 % " =! ) 0 H 0 : + @ ? 0 =! =! A 9 D<<17>< - " !# LU ;DD $ & ! A 3 " A H Q " H Q & 3 2 ! ? / " H & H 8 " ! + 3 ? + 0 ! % H " 20 =$ ! F 0 G > $ ( " 0" H ? H + ! ? H H 0 " ? ? 9 ( H / A$ 9 ! $ " " #- : #171%#19 " A %$ " ! )D# A @ #1#1 * - 0 @ : #- @ Q 3 # !D A #- & 0 3 3 ( %!;D% A " C " " " @ 0" " 0 " ) ! #D A 0 " 2 2 0 ! ! H " 2 + @ + H * " H 2' ! ! F ' " 0 -@ C G+ ! C C @ + 3 " @ ' 2' F ' G ") ' ) > ; " ( & " " H ! ! 3 " ! • & • & • : 8 (& 0 + 3 • 0 • E3 " K#D A 2 9 #DDD $ A +K1D A • (& 3 D A 3 ? + 2 " • * • : • 4 + ! + " " ( A ! ! A " ! ( ! • & • & • • E3 E3 %D65 3 : (& (& K#D A " %D # • E3 B#D A • A 3 +K)D A ( ! A " F N I:J G + * " • 4 + • F : A G + ! + C 2 • 4 + " " ( ! ( @ " Q !" + !" !" (& (& 0 8 @ " " " + " ! ( !" (& ( !" !" " !" 9 0 ! 0 + 2 " !" $ ! (& & 8 " . ' % 0 " %( !" + ( )D + ;D " 3 @ " 3 " Q " );D ) !# : ! @ ! + " 3 3 ! C ! " " ! Q ! " ! " ! ! 2 " 3 + !" 2 3 0 " @ ! " ( Q " + " 3 8 + " 5 + 3 " " " " 3 " " @ " "3 3 " !" 0 + 0 !" " 3 A3 !" + 8 0 " + ! + 3 " " ! & @ @ @ 0 " + + !" C " ! " 3 " & 3 Q @ & 3 3 ( !" " " ! " Q " 3 !" + V 3 C " 3 + + !" ! ! 3 " + 0 !" ! C ! 3 " C # A ( 8 @ " 2 @ " 3 ! + " 8 !# K 89 #=. #7. #%. #D. =. ;7. 7%7. 17. ). . A = 1;D5 7=D5 <DD5 >DD5 ##DD5 #)DD5 #;DD5 #=DD5 %=DD5 " #= I5 %)I5 %<I5 )1I5 1%I5 7%I5 ;1I5 <%I5 ##DI5 < ( 9 $ H 8! (& E3 " "3 " + A A : 3 ! ( 0 & " (& + # @ Q + + + 0 ! 0 " C ! ;D 5 + ! $: " ;D 5 9 #%D #=D %1D 5 + ! 7D 5 ! 7D 5 + 0 0 " " + " : 3 ! H " + 3 (& 0 3 " + (& + + " 9 9 1D A$ : " F * A 5 1D A$ + (& Q G 0 " 8 8 " 3 " )$>= $)=) ' ? ) >)= )' 8)' LC M # " H - 2N <D H ! C " " ( ! KA & " C " 5 %7D5 7DD5 " " " 2 & " ;%7 5 #65 %65 165 = 65 +#;65 : H ! H 0 H C0* H " " 3 " T 2 #%7 " " H 0 C0* & ( KA " #D A H ! + " " 2 #/ ) ( ! )D * #D " 5+ H 3 " *:( 4 :H Q H @ *:( #/ %1 %1D " C H L% 08 (& ( ! + 3 # + N 2 • ' • • 0 " ! 2 ! • • • • 4 ( : * + " ! + 3 H 2 + H + ! H 2 9 H $ , L< M N • Q • - 3 + 3 ! + 8 #/ =. @ C + (& 3 8 : @" 2 @ • Q • Q • Q • & !" ! 9 ! " $ !" " 3 " L + # N 3 8 A 08 + !" W ( X5 + L < : 0 '5 8 9 ( N LC M ! , N 'Y ? ' " ( ? ? ?+;1'A ' (& 7DD L 7 & 4 C N & ';A ) " ! + H H I+. F ( 4 N ' ! L J ! , 4 & G H : + @?;=;' LC M " %( % % < + ( & + N !" " + " !" " 0 !" ! + " " !" ! + ' !" ! 0 A 0&'=DDD !" 2 8 1DZ 0 " 9 B#7 " " B1= -*&$ " !" A !" ' !" A QA=D% QA=D% 1= -*& V !" 0&'=DDD 2 !" 0&'=DDD ;>Z ;>Z ' !" 0 " !" A 'P;D% 'P;D% 1= -*& V 2 ( QA=D% !" " !" 2 9 & " 0 " %D %D65 B/ K# A !" 0 " " A 2 ( 0'&=DDD " + " " ' $ K" ! A :5 *:(##D ;>Z " + V " 8 0 *:( 6 *:(##D @ ? ( " 3 !" V ' " + " !" + =>Z 0 " ; " 7D " + " " 3 ! > -*& 0 !" 0'&=DDD #7 1= -*& ' " !" " + + C = : ' ? ! / / JJJ ' ' / / JJJ = E / / JJJ " ! L % Q 6 %( " 4 @" & : : % 77>=< 00QQ 7D<K171K==11 ! I U N !" ! 6 4 L #1DD5 L ' + A Q 2 !" A + =7Z ( " + '(#) ); -*& 0&'=DDD Q 2 ( 0 8 %( & + 9 ,L N : M # ( %( ( !" ( !" !" + 0 + : 0&'=DDD !" !" " 9 " + " ! " !" +" ';A ) O) > ' ) ';= ; : " " " +- + F2+ N ,L C A $ ! " + @ ! H 0 @ * " " " : H C " + / / JJJ 2 / J / @ ! +K " " + 6 < , + 1) + : & >'A1) ! , /; 1' / , / , ! 1L N 2 8 + , . H , * : + . + ) + , # < 1" ! ! : 9 + /; >'A : , : 1 : 8! Q:A E J 0 ';A ) 8 A L ; < ! # 9 N ! 3 3 A : ;%7 , + A 7DD 5 ! . 3 : + & "3 * K#D A 3 H K#D A 3 < ,L % N Q " B/ K DD7 A ( ! H ! M ! 2 ! ! !" C & ;P % ,L < M N : C " 2 ? / + 0 + , 2 *" ! ! & . F ! G0 ; ' >)' ;=)' Q = L6 + ( , ? ' ( ! ( ( . : " ( ! : MN 0 ! " # + 6 < # # + < 1' 1 LC M < < % # 0 N 8 + " !" 0 3 ! + " 3 + ! !" L A - R ( % 2N 5+ " 3 " 8 * ! " 3 ( 8 2 ! @ " ! + 3 V " ! C +2 3 C 8 " 3 " 3 C ! ! + " ! " 9 $+ " ! ) + < ! , 1L % ! #N ( " " ! ( + ! ! ( 3 %D A 3 + ! #D S ! ! A( 3 S * K7 A K#D A K#7 A K%D A ! 7;%S )#;S #<= S #DDS . K%7 A K)D A K)7 A K1D A K17 A K7D A K77 A K;D A K;7 A K<D A K<7 A K=D A K=7 A K>D A K>7 A K#DD A K#D7 A K##D A K##7 A K#%D A ) 7;%S )#;S #<= S #DDS 7;%S )#;S #<= S #DDS D7;S D)%S D#= S D#S DD7;S DD)%S DD#= S DD#S DDD7;S DDD)%S DDD#= S DDD#S + ( + %( 1L & % 9 ,L N' : ' ! M % N : : ! ' ? !" - " H 9 $ ! K)D A LC M ! N % # ! 1 #/ %1 #/ ) ! ( L ( 08 ( ! ! + A N H + 0 A A @ 0 " #65 5+ %65 & D # 65 & C EE " " ( 0 @ A ( @" " + @ 3 @ ) A " 0 " 0 " #DD 5 # # 9 + 0 # 65 ! $ ) A EE ( , H 0 ! . 3 + " H , " . 0 ';A ) @ H / ;A8)" ' = %( : %( 1 L' < N < M 0 ! 1= H 2 ! L J ! @ & 8 + ! 2 ( + ( !. ( ,3 ,3 !. 5 ' !" ! 6 C !" ( ? + Q ! + ! ! ! L < M %( ! ( # N6 7 " %( < + * % 1 0 (& + !" 8 3 " [& \ ( < N ( L + + * % 1L " ! J ! ! H ! * " 9 ! $0 L ! J + : 2 + 2