#Summer Research #Sara Smith #This program is written to turn the playing #of the midnote on and off. import pyext class midnoteon(pyext._class): _inlets=1 _outlets=1 notein=0 def float_1(self,n): self.notein = n if (self.notein == 0 ): self._outlet(1,0) elif (1 <= self.notein < 64 ): self._outlet(1,1) else: #this does nothing. It deals with the #occurance of other numbers. self._outlet(1,2)