lab5.m
Go to the documentation of this file.
1 clear all
2 %1.1
3 %% Piano sound
4 
5 % hfile = '4192__RealRhodesSounds__D4.wav';
6 % [x3, Fs3, nbits3, readinfo3] = wavread(hfile);
7 % %sound(x3, Fs);
8 % y = sinemodel_(x3, hamming(513)', 1024, 100,-35);
9 % wavwrite(y, Fs3,'__RealRhodesSounds_D4.wav');
10 
11 
12 %% 2.1 Compute the magnitude values on the to of the main lobe
13 % loc=0;
14 % mag=0;
15 %
16 % binremainder = round(loc)-loc;
17 % %Blackman-Harris 92dB
18 % lb = [binremainder-4:binremainder+4]'; % main lobe (real value) bins to read
19 % lmag = genbh92lobe(lb,1024)*10.^(mag/20); % lobe magnitudes
20 % figure
21 % plot(lmag);
22 
23 
24 %% 2.2 Compute a spectrum of size N from a series of sinusoidal values
25 
26 % Y = genspecsines([10.3, 20.6, 30.9], [-10, -13, -16], [0, 0, 0], 1024);
27 %
28 % %inverse fft
29 % y=fftshift(real(ifft(Y)));
30 % plot(y);
31 %
32 % %the sinusoids
33 % Y1 = (-10)*exp(1*i);y1=ifft(Y1);
34 % Y2 = (-13)*exp(1*i);y2=fftshift(real(ifft(Y2)));
35 % Y3 = (-16)*exp(1*i);y3=fftshift(real(ifft(Y3)));
36 % %add the sinusoids in the time domain
37 % ytime = y1+y2+y3;
38 % figure
39 % plot(y1);
40 
41 %% Fugue
42 
43 % hfile = '22125__Connum__memento_to_Bachs_fugue_II.wav';
44 % [x3, Fs3, nbits3, readinfo3] = wavread(hfile);
45 % %sound(x3, Fs);
46 % y = sinemodel(x3, hamming(2001)', 1024, -60);
47 % wavwrite(y, Fs3,'fugue1.wav');
48 
49 % %% Soprano
50 %
51 % hfile = '30084__HerbertBoland__FemalePhrase1.wav';
52 % [x3, Fs3, nbits3, readinfo3] = wavread(hfile);
53 % %sound(x3, Fs);
54 % y = sinemodel(x3, hamming(2001), 1024, -50);
55 % wavwrite(y, Fs3,'female1.wav');
56 
57 %% Soprano
58 
59 hfile = '32848__Quilt__Quilty_s_Old_School_Piano.wav';
60 [x3, Fs3, nbits3, readinfo3] = wavread(hfile);
61 %sound(x3, Fs);
62 y = sinemodel_(x3, hamming(2001)', 1024, -50);
63 wavwrite(y, Fs3,'piano1.wav');
main lobe(real value) bins to read%lmag
y1
Definition: lab5.m:33
About Git write you should know how to use GIT properly Luckily Git comes with excellent documentation git help man git shows you the available git< command > help man git< command > shows information about the subcommand< command > The most comprehensive manual is the website Git Reference visit they are quite exhaustive You do not need a special username or password All you need is to provide a ssh public key to the Git server admin What follows now is a basic introduction to Git and some FFmpeg specific guidelines Read it at least if you are granted commit privileges to the FFmpeg project you are expected to be familiar with these rules I if not You can get git from etc no matter how small Every one of them has been saved from looking like a fool by this many times It s very easy for stray debug output or cosmetic modifications to slip in
Definition: git-howto.txt:5
y
Definition: lab5.m:8
the sinusoids Y1
Definition: lab5.m:33
add the sinusoids in the time domain ytime
Definition: lab5.m:37
const char * from
y3
Definition: lab5.m:35
#define N
Definition: vf_pp7.c:200
figure
Definition: genspecsines2.m:3
lobe magnitudes figure plot(lmag)
Y2
Definition: lab5.m:34
wavwrite(y, Fs3,'__RealRhodesSounds_D4.wav')
clear all Piano sound hfile
Definition: lab5.m:5
Y3
Definition: lab5.m:35
phase spectrum(unwrapped) ploc
int size
y2
Definition: lab5.m:34
sound(x3, Fs)
1i.*Xphase exp()
mag
Definition: lab5.m:14
double value
Definition: eval.c:82
synthesis window for stochastic i
fftbuffer, N fft()
FFmpeg Automated Testing Environment ************************************Table of Contents *****************FFmpeg Automated Testing Environment Introduction Using FATE from your FFmpeg source directory Submitting the results to the FFmpeg result aggregation server FATE makefile targets and variables Makefile targets Makefile variables Examples Introduction **************FATE is an extended regression suite on the client side and a means for results aggregation and presentation on the server side The first part of this document explains how you can use FATE from your FFmpeg source directory to test your ffmpeg binary The second part describes how you can run FATE to submit the results to FFmpeg s FATE server In any way you can have a look at the publicly viewable FATE results by visiting this as it can be seen if some test on some platform broke with their recent contribution This usually happens on the platforms the developers could not test on The second part of this document describes how you can run FATE to submit your results to FFmpeg s FATE server If you want to submit your results be sure to check that your combination of OS and compiler is not already listed on the above mentioned website In the third part you can find a comprehensive listing of FATE makefile targets and variables Using FATE from your FFmpeg source directory **********************************************If you want to run FATE on your machine you need to have the samples in place You can get the samples via the build target fate rsync Use this command from the top level source this will cause FATE to fail NOTE To use a custom wrapper to run the pass target exec to configure or set the TARGET_EXEC Make variable Submitting the results to the FFmpeg result aggregation server ****************************************************************To submit your results to the server you should run fate through the shell script tests fate sh from the FFmpeg sources This script needs to be invoked with a configuration file as its first argument tests fate sh path to fate_config A configuration file template with comments describing the individual configuration variables can be found at doc fate_config sh template Create a configuration that suits your based on the configuration template The slot configuration variable can be any string that is not yet but it is suggested that you name it adhering to the following pattern< arch >< os >< compiler >< compiler version > The configuration file itself will be sourced in a shell therefore all shell features may be used This enables you to setup the environment as you need it for your build For your first test runs the fate_recv variable should be empty or commented out This will run everything as normal except that it will omit the submission of the results to the server The following files should be present in $workdir as specified in the configuration it may help to try out the ssh command with one or more v options You should get detailed output concerning your SSH configuration and the authentication process The only thing left is to automate the execution of the fate sh script and the synchronisation of the samples directory FATE makefile targets and variables *************************************Makefile can be set to
Definition: fate.txt:142
Compute a spectrum of size N from a series of sinusoidal values Y
Definition: lab5.m:26
static uint32_t inverse(uint32_t v)
find multiplicative inverse modulo 2 ^ 32
Definition: asfcrypt.c:35
int main(int argc, char **argv)
Definition: main.c:22
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several the filter must be ready for frames arriving randomly on any input any filter with several inputs will most likely require some kind of queuing mechanism It is perfectly acceptable to have a limited queue and to drop frames when the inputs are too unbalanced request_frame This method is called when a frame is wanted on an output For an it should directly call filter_frame on the corresponding output For a if there are queued frames already one of these frames should be pushed If the filter should request a frame on one of its repeatedly until at least one frame has been pushed Return values