UPDATE formantsemitones_fm SET 
	F12dist = 
		12*sqrt((ln(f1_fm.time2) -  ln((314.733 + 361.845)/2))^2 +
        	(ln(f2_fm.time2) -  ln(1699.022))^2)/ln(2.0)
FROM 
	phonemesphoneme, f1_fm, f2_fm
WHERE 
	phonemesphoneme.id = f2_fm.id AND
	phonemesphoneme.id = f1_fm.id AND
	phonemesphoneme.id = formantsemitones_fm.id AND
	f1_fm.id = f2_fm.id AND
	formantsemitones_fm.id = f2_fm.id AND
	formantsemitones_fm.id = f1_fm.id AND
	phonemesphoneme.speaker = 'F20N';

UPDATE formantsemitones_fm SET 
	F12dist = 
		12*sqrt((ln(f1_fm.time2) -  ln((278.470 + 350.068)/2.0))^2 +
        	(ln(f2_fm.time2) -  ln(1581.914))^2)/ln(2.0)
FROM 
	phonemesphoneme, f1_fm, f2_fm
WHERE 
	phonemesphoneme.id = f2_fm.id AND
	phonemesphoneme.id = f1_fm.id AND
	phonemesphoneme.id = formantsemitones_fm.id AND
	f1_fm.id = f2_fm.id AND
	formantsemitones_fm.id = f2_fm.id AND
	formantsemitones_fm.id = f1_fm.id AND
	phonemesphoneme.speaker = 'F28G';


UPDATE formantsemitones_fm SET 
	F12dist = 
		12*sqrt((ln(f1_fm.time2) -  ln((286.716 + 352.373)/2.0))^2 +
        	(ln(f2_fm.time2) -  ln(1604.358))^2)/ln(2.0)
FROM 
	phonemesphoneme, f1_fm, f2_fm
WHERE 
	phonemesphoneme.id = f2_fm.id AND
	phonemesphoneme.id = f1_fm.id AND
	phonemesphoneme.id = formantsemitones_fm.id AND
	f1_fm.id = f2_fm.id AND
	formantsemitones_fm.id = f2_fm.id AND
	formantsemitones_fm.id = f1_fm.id AND
	phonemesphoneme.speaker = 'F40L';


UPDATE formantsemitones_fm SET 
	F12dist = 
		12*sqrt((ln(f1_fm.time2) -  ln((289.353 + 335.133)/2.0))^2 +
        	(ln(f2_fm.time2) -  ln(1411.974))^2)/ln(2.0)
FROM 
	phonemesphoneme, f1_fm, f2_fm
WHERE 
	phonemesphoneme.id = f2_fm.id AND
	phonemesphoneme.id = f1_fm.id AND
	phonemesphoneme.id = formantsemitones_fm.id AND
	f1_fm.id = f2_fm.id AND
	formantsemitones_fm.id = f2_fm.id AND
	formantsemitones_fm.id = f1_fm.id AND
	phonemesphoneme.speaker = 'F60E';


UPDATE formantsemitones_fm SET 
	F12dist = 
		12*sqrt((ln(f1_fm.time2) -  ln((264.297 + 351.458)/2.0))^2 +
        	(ln(f2_fm.time2) -  ln(1344.185))^2)/ln(2.0)
FROM 
	phonemesphoneme, f1_fm, f2_fm
WHERE 
	phonemesphoneme.id = f2_fm.id AND
	phonemesphoneme.id = f1_fm.id AND
	phonemesphoneme.id = formantsemitones_fm.id AND
	f1_fm.id = f2_fm.id AND
	formantsemitones_fm.id = f2_fm.id AND
	formantsemitones_fm.id = f1_fm.id AND
	phonemesphoneme.speaker = 'M15R';


UPDATE formantsemitones_fm SET 
	F12dist = 
		12*sqrt((ln(f1_fm.time2) -  ln((277.764 + 319.908)/2.0))^2 +
        	(ln(f2_fm.time2) -  ln(1419.090))^2)/ln(2.0)
FROM 
	phonemesphoneme, f1_fm, f2_fm
WHERE 
	phonemesphoneme.id = f2_fm.id AND
	phonemesphoneme.id = f1_fm.id AND
	phonemesphoneme.id = formantsemitones_fm.id AND
	f1_fm.id = f2_fm.id AND
	formantsemitones_fm.id = f2_fm.id AND
	formantsemitones_fm.id = f1_fm.id AND
	phonemesphoneme.speaker = 'M40K';


UPDATE formantsemitones_fm SET 
	F12dist = 
		12*sqrt((ln(f1_fm.time2) -  ln((271.729 + 380.205)/2.0))^2 +
        	(ln(f2_fm.time2) -  ln(1265.004))^2)/ln(2.0)
FROM 
	phonemesphoneme, f1_fm, f2_fm
WHERE 
	phonemesphoneme.id = f2_fm.id AND
	phonemesphoneme.id = f1_fm.id AND
	phonemesphoneme.id = formantsemitones_fm.id AND
	f1_fm.id = f2_fm.id AND
	formantsemitones_fm.id = f2_fm.id AND
	formantsemitones_fm.id = f1_fm.id AND
	phonemesphoneme.speaker = 'M56H';


UPDATE formantsemitones_fm SET 
	F12dist = 
		12*sqrt((ln(f1_fm.time2) -  ln((246.916 + 338.373)/2.0))^2 +
        	(ln(f2_fm.time2) -  ln(1312.738))^2)/ln(2.0)
FROM 
	phonemesphoneme, f1_fm, f2_fm
WHERE 
	phonemesphoneme.id = f2_fm.id AND
	phonemesphoneme.id = f1_fm.id AND
	phonemesphoneme.id = formantsemitones_fm.id AND
	f1_fm.id = f2_fm.id AND
	formantsemitones_fm.id = f2_fm.id AND
	formantsemitones_fm.id = f1_fm.id AND
	phonemesphoneme.speaker = 'M66O';


