diff Example VamPy plugins/PyZeroCrossing.py @ 1:dc88002ce687

some typos corrected
author fazekasgy
date Tue, 11 Mar 2008 20:24:58 +0000
parents e20e214bdfb5
children e1b508f2f914
line wrap: on
line diff
--- a/Example VamPy plugins/PyZeroCrossing.py	Tue Mar 11 19:47:34 2008 +0000
+++ b/Example VamPy plugins/PyZeroCrossing.py	Tue Mar 11 20:24:58 2008 +0000
@@ -1,4 +1,4 @@
-'''PyZeroCrossing.py - Example plugin designed to demonstrate''' 
+'''PyZeroCrossing.py - Example plugin demonstrates''' 
 '''how to call a python class using the VamPy VAMP plugin'''
 
 #from time import *
@@ -38,7 +38,7 @@
 			
 	def getOutputDescriptors(self):
 		
-		#python dictionary
+		#descriptors are python dictionary
 		output0={
 		'identifier':'vampy-counts',
 		'name':'Number of Zero Crossings',
@@ -119,7 +119,7 @@
 				if crossing == True : 
 					count = count + 1
 					feature1={
-					'hasTimestamp':True,		#bool
+					'hasTimestamp':True,	
 					#for now return sample position and convert to RealTime in C code
 					'timeStamp':x				
 					#'values':[count]			
@@ -135,7 +135,7 @@
 
 		feature0={
 		'hasTimestamp':False,		
-		'values':[count],			#strictly must be a list
+		'values':[count],		#strictly must be a list
 		'label':str(count)				
 		}
 		output0.append(feature0)