File:Virtual Microphone Animation.gif

From testwiki
Jump to navigation Jump to search
    Original file (512 × 512 pixels, file size: 3.22 MB, MIME type: image/gif, looped, 241 frames, 9.6 s)
    Note: Due to technical limitations, thumbnails of high resolution GIF images such as this one will not be animated.

    This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

    Summary

    Description
    English: A transition between different horizontal virtual microphones derived from a B-format input.
    Other information

    Gnuplot source (created by Jörn Nettingsmeier, CC-BY-SA 3.0 + GFDL)

    set terminal pngcairo font "/usr/share/fonts/truetype/LiberationMono.ttf,8" size 512,512
    set size square
    set polar
    set style line 11 lc rgb 'gray80' lt 1 lw 1
    set style line 1 lc rgb 'red' lw 3 lt 1
    set style line 2 lc rgb 'blue' lw 3 lt 1
    set grid polar ls 11
    unset border
    unset raxis
    unset xtics
    unset ytics
    unset key
    set rrange[0:1.1]
    set rtics ("" 1, "" 1/sqrt(2), "" .5, "" .5/sqrt(2), "" .25, "" .25/sqrt(2), "" .125)
    set label 42 '0°' center at first 0, first 1.06
    set label 43 '180°' center at first 0, first -1.06
    set label 44 '90°' right at first -1.06, 0
    set label 45 '270°' left at first 1.06, 0
    set for [i=0:6] label (46+i) right at first 0.08, first (1/sqrt(2)**i) sprintf("%2d dB", i*-3.0) 
    W(t)=1/sqrt(2)    
    X(t)=sin(t)  # hack to turn 0° axis upwards
    Y(t)=-cos(t) # dto.
    #free-field normalised parametric microphone:
    #gain functions for WXY:
    GW(p)      = p * sqrt(2)
    GX(T,p)    = (1.0-p)*cos(T)
    GY(T,p)    = (1.0-p)*sin(T)
    card(t,T,p)= GW(p)*W(t) + GX(T,p)*X(t) + GY(T,p)*Y(t)
    #workaround to map negative r to positive but with blue color:
    pcard(t,T,p) = card(t,T,p)>0 ? card(t,T,p) : 0
    ncard(t,T,p) = card(t,T,p)>0 ? 0 : abs(card(t,T,p))
    
    T=0 # point north!
    p=1.0
    frame=0
    do for[a=0.0:47.0] {
      set output sprintf("polar-%03d.png",frame)
      frame=frame+1
      set label 1 left at first .62, first 1.08 sprintf("Theta: %3.1f°", (T*180.0/pi))
      set label 2 right at first 1.05, first 1.01 sprintf("Pattern: %1.6f", p)
      set label 3 right at first 1.05, first .91 sprintf("W: %1.6f", GW(p))
      set label 4 right at first 1.05, first .84 sprintf("X: %1.6f", GX(T,p))
      set label 5 right at first 1.05, first .77 sprintf("Y: %1.6f", GY(T,p))
      plot pcard(t,T,p) ls 1, ncard(t,T,p) ls 2
      p=p-1/72.0
    }
    do for[a=0.0:47.0] {
      set output sprintf("polar-%03d.png",frame)
      frame=frame+1
      set label 1 left at first .62, first 1.08 sprintf("Theta: %3.1f°", (T*180.0/pi))
      set label 2 right at first 1.05, first 1.01 sprintf("Pattern: %1.6f", p)
      set label 3 right at first 1.05, first .91 sprintf("W: %1.6f", GW(p))
      set label 4 right at first 1.05, first .84 sprintf("X: %1.6f", GX(T,p))
      set label 5 right at first 1.05, first .77 sprintf("Y: %1.6f", GY(T,p))
      plot pcard(t,T,p) ls 1, ncard(t,T,p) ls 2
      T=T-(pi/96.0)
    }
    do for[a=0.0:47.0] {
      set output sprintf("polar-%03d.png",frame) 
      frame=frame+1
      set label 1 left at first .62, first 1.08 sprintf("Theta: %3.1f°", (T*180.0/pi))
      set label 2 right at first 1.05, first 1.01 sprintf("Pattern: %1.6f", p)
      set label 3 right at first 1.05, first .91 sprintf("W: %1.6f", GW(p))
      set label 4 right at first 1.05, first .84 sprintf("X: %1.6f", GX(T,p))
      set label 5 right at first 1.05, first .77 sprintf("Y: %1.6f", GY(T,p))
      plot pcard(t,T,p) ls 1, ncard(t,T,p) ls 2
      p=p-1.0/144.0
    }
    do for[a=0.0:96.0] {
      set output sprintf("polar-%03d.png",frame) 
      frame=frame+1
      set label 1 left at first .62, first 1.08 sprintf("Theta: %3.1f°", (T*180.0/pi))
      set label 2 right at first 1.05, first 1.01 sprintf("Pattern: %1.6f", p)
      set label 3 right at first 1.05, first .91 sprintf("W: %1.6f", GW(p))
      set label 4 right at first 1.05, first .84 sprintf("X: %1.6f", GX(T,p))
      set label 5 right at first 1.05, first .77 sprintf("Y: %1.6f", GY(T,p))
      plot pcard(t,T,p) ls 1, ncard(t,T,p) ls 2
      p=p+1.0/96.0
      T=T-(1.5*pi/96.0)
    }
    set output
    
    Date
    Source A series of gnuplot images rendered into a GIF animation
    Author Nettings

    Licensing

    Nettings at English Wikipedia, the copyright holder of this work, hereby publishes it under the following licenses:
    GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.
    w:en:Creative Commons
    attribution share alike
    This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
    Attribution:
    You are free:
    • to share – to copy, distribute and transmit the work
    • to remix – to adapt the work
    Under the following conditions:
    • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
    • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
    You may select the license of your choice.

    Original upload log

    The original description page was here. All following user names refer to en.wikipedia.
    Date/Time Dimensions User Comment
    2013-12-28 16:05 512×512× (3373507 bytes) Nettings set loopcount to infinite. not obnoxious since the thumb is a still.
    2013-12-28 15:10 512×512× (3373507 bytes) Nettings remove spurious last frame
    2013-12-28 15:00 512×512× (3392296 bytes) Nettings Uploading a self-made file using [[Wikipedia:File_Upload_Wizard|File Upload Wizard]]

    Captions

    Add a one-line explanation of what this file represents

    Items portrayed in this file

    depicts

    28 December 2013

    3,373,507 byte

    512 pixel

    512 pixel

    image/gif

    628eacee4d85c1a99a40f0658678b6dd2529d6e0

    File history

    Click on a date/time to view the file as it appeared at that time.

    Date/TimeThumbnailDimensionsUserComment
    current02:03, 22 May 2015Thumbnail for version as of 02:03, 22 May 2015512 × 512 (3.22 MB)wikimediacommons>ClusternoteTransferred from en.wikipedia

    There are no pages that use this file.