Example #1
0
 def fnrms(self):
     if self.rms == 0:
         self.rms = specinfo.create('rms', self.filepath1, self.filepath2)
         self.label_a.setScaledContents(True)
         self.label_a.setPixmap(QPixmap("wave_rms1.png"))
         self.label_b.setScaledContents(True)
         self.label_b.setPixmap(QPixmap("wave_rms2.png"))
     elif self.rms == 1:
         self.label_a.setScaledContents(True)
         self.label_a.setPixmap(QPixmap("wave_rms1.png"))
         self.label_b.setScaledContents(True)
         self.label_b.setPixmap(QPixmap("wave_rms2.png"))
Example #2
0
 def fnmfcc(self):
     if self.mfcc == 0:
         self.mfcc = specinfo.create('mfcc', self.filepath1, self.filepath2)
         self.label_a.setScaledContents(True)
         self.label_a.setPixmap(QPixmap("wave_mfcc1.png"))
         self.label_b.setScaledContents(True)
         self.label_b.setPixmap(QPixmap("wave_mfcc2.png"))
     elif self.mfcc == 1:
         self.label_a.setScaledContents(True)
         self.label_a.setPixmap(QPixmap("wave_mfcc1.png"))
         self.label_b.setScaledContents(True)
         self.label_b.setPixmap(QPixmap("wave_mfcc2.png"))
Example #3
0
	def fnchroma(self):
	  if self.chroma==0:
		self.chroma=specinfo.create('chroma',self.filepath1,self.filepath2)
		self.label_a.setScaledContents(True)
		self.label_a.setPixmap(QPixmap("wave_chroma1.png"))
		self.label_b.setScaledContents(True)
		self.label_b.setPixmap(QPixmap("wave_chroma2.png"))
	  elif self.chroma==1:
		self.label_a.setScaledContents(True)
		self.label_a.setPixmap(QPixmap("wave_chroma1.png"))
		self.label_b.setScaledContents(True)
		self.label_b.setPixmap(QPixmap("wave_chroma2.png"))
Example #4
0
	def fnmfcc(self):
	   if self.mfcc==0:
		self.mfcc=specinfo.create('mfcc',self.filepath1,self.filepath2)
		self.label_a.setScaledContents(True)
		self.label_a.setPixmap(QPixmap("wave_mfcc1.png"))
		self.label_b.setScaledContents(True)
		self.label_b.setPixmap(QPixmap("wave_mfcc2.png"))
	   elif self.mfcc==1:
		self.label_a.setScaledContents(True)
		self.label_a.setPixmap(QPixmap("wave_mfcc1.png"))
		self.label_b.setScaledContents(True)
		self.label_b.setPixmap(QPixmap("wave_mfcc2.png"))
Example #5
0
	def fnrms(self):
		if self.rms==0:
		 self.rms=specinfo.create('rms',self.filepath1,self.filepath2)
		 self.label_a.setScaledContents(True)
		 self.label_a.setPixmap(QPixmap("wave_rms1.png"))
		 self.label_b.setScaledContents(True)
		 self.label_b.setPixmap(QPixmap("wave_rms2.png"))
		elif self.rms==1:
		 self.label_a.setScaledContents(True)
		 self.label_a.setPixmap(QPixmap("wave_rms1.png"))
		 self.label_b.setScaledContents(True)
		 self.label_b.setPixmap(QPixmap("wave_rms2.png"))
Example #6
0
	def fncentroid(self):
	  if self.centroid==0:
		self.centroid=specinfo.create('centroid',self.filepath1,self.filepath2)
		self.label_a.setScaledContents(True)
		self.label_a.setPixmap(QPixmap("wave_centroid1.png"))
		self.label_b.setScaledContents(True)
		self.label_b.setPixmap(QPixmap("wave_centroid2.png"))
	  elif self.centroid==1:
		self.label_a.setScaledContents(True)
		self.label_a.setPixmap(QPixmap("wave_centroid1.png"))
		self.label_b.setScaledContents(True)
		self.label_b.setPixmap(QPixmap("wave_centroid2.png"))
Example #7
0
 def fnchroma(self):
     if self.chroma == 0:
         self.chroma = specinfo.create('chroma', self.filepath1,
                                       self.filepath2)
         self.label_a.setScaledContents(True)
         self.label_a.setPixmap(QPixmap("wave_chroma1.png"))
         self.label_b.setScaledContents(True)
         self.label_b.setPixmap(QPixmap("wave_chroma2.png"))
     elif self.chroma == 1:
         self.label_a.setScaledContents(True)
         self.label_a.setPixmap(QPixmap("wave_chroma1.png"))
         self.label_b.setScaledContents(True)
         self.label_b.setPixmap(QPixmap("wave_chroma2.png"))
Example #8
0
 def fncentroid(self):
     if self.centroid == 0:
         self.centroid = specinfo.create('centroid', self.filepath1,
                                         self.filepath2)
         self.label_a.setScaledContents(True)
         self.label_a.setPixmap(QPixmap("wave_centroid1.png"))
         self.label_b.setScaledContents(True)
         self.label_b.setPixmap(QPixmap("wave_centroid2.png"))
     elif self.centroid == 1:
         self.label_a.setScaledContents(True)
         self.label_a.setPixmap(QPixmap("wave_centroid1.png"))
         self.label_b.setScaledContents(True)
         self.label_b.setPixmap(QPixmap("wave_centroid2.png"))