Lines Matching refs:velocity
395 def __init__ (self, ticks, seq, channel, note, velocity): argument
402 self.velocity = velocity
408 velocity = ReadByte(stream)
412 return NoteOffEvent(ticks, seq, channel, note, velocity)
415 if self.velocity > 0:
416 self.WriteRunningStatus(stream, track, filters, NOTE_ON, self.note, self.velocity)
418 self.WriteRunningStatus(stream, track, filters, NOTE_ON, self.note, self.velocity)
422 return '%s: ch=%d n=%d v=%d' % (self.name, self.channel, self.note, self.velocity)
428 def __init__ (self, ticks, seq, channel, note, velocity, note_length, note_off_velocity): argument
435 self.velocity = velocity
442 velocity = ReadByte(stream)
446 if velocity == 0:
447 return NoteOffEvent(ticks, seq, channel, note, velocity)
448 return NoteOnEvent(ticks, seq, channel, note, velocity, None, None)
450 self.WriteRunningStatus(stream, track, filters, NOTE_ON, self.note, self.velocity)
453 …return '%s: ch=%d n=%d v=%d l=%d' % (self.name, self.channel, self.note, self.velocity, self.note_…
455 return '%s: ch=%d n=%d v=%d' % (self.name, self.channel, self.note, self.velocity)
1072 note_on.note_off_velocity = event.velocity