12 tplarson 1.1
13
14 follow these steps:
15
16 1) download data
17
18 the data are available at http://sun.stanford.edu/~tplarson/audio/,
19 where you will find separate directories for MDI and HMI. within each,
20 you will find a series of directories that are day numbers suffixed with
21 'd'. the day number corresponds to the first day of the 72 day
22 timeseries. day number 1216 was 1 may 1996. a full table converting
23 day numbers to dates can be found at the above url as well.
24
25 clicking on a directory will show two ascii tables containing the mode
|
26 tplarson 1.2 paramaters; the file <instrument>.<daynumber>.modes must be downloaded.
27 the second and larger file, with ".msplit" appended to the name, is only
28 needed to use different frequency intervals for each m. this is not
29 needed by default, but its use is discussed in the full instructions.
30
31 next, click on the "wavfiles" subdirectory, where you will find a
32 selection of modes labelled by l and m. except for m=0, each mode has
33 both a real and an imaginary part, labelled by "datar" and "datai"
34 respectively. pick an assortment of modes and download them to your
35 data directory.
36
37 alternatively, averaged mode parameters can be found directly in each of
38 the "MDI" and "HMI" directories. you may elect to use these averaged
39 parameters for all day numbers. this option is the default for most
40 patches.
|
41 tplarson 1.1
42
43 2) using the patch
44
45 open the patch modefilter_standalone.pd . if you are not using the data
46 directory which was unpacked with the zip archive, you will need to set
47 the path to the directory where you put the data. do this by clicking
48 the light blue bang at lower left. a dialog box will open; just select
49 any file in your data directory and the object [set-directory] will
50 strip the file name and output the path. you should now see your path
51 show up in the message box at right. if you now save the patch file,
52 this will be saved as your default data directory and you won't need to
53 set it any more.
54
55 next, click on the message box with "pd dsp 1", which will turn on
56 digital signal processing (DSP). finally, the inputs you must provide
57 are the day number corresponding to the 72 day timeseries, the spherical
58 harmonic degree l, the radial order n, and the azimuthal order m. note
59 that even if you want to leave one of these at its default value of
60 zero, you must still click on the number box and enter 0. now, to
61 search for this mode, click the green bang at the upper left. if found,
62 tplarson 1.1 the input arrays will be loaded, the fft will run, the gain will be
63 generated, the gain and the fft will be multiplied and shifted before
64 being inverse transformed, and the filtered audio will play. to hear
65 it, enter a number for the output level. you will likely want to adjust
66 the playback sample rate and downshift factor. you can turn off playback
67 by clicking the toggle. you may also elect to save the output as a wav
68 file file by clicking the light blue bang at lower right.
69
70 EXAMPLE: if using the demo data files, simply turn on DSP and then enter
71 the following 4 integers at the top of the patch: 1 for degree l, 21 for
72 radial order n, 1 for azimuthal order m, and 1216 for day number. do
73 press enter each time. once done, click the circle beneath "search for
74 modes". at lower right, enter a number for the output level. once the
75 fft completes, the sound will play. it will be quite high. to hear the
|