Home | History | Annotate | Download | only in JetCreator

Lines Matching full:note

45 # force note-offs to end of list

315 if event.note in self.notes:
395 def __init__ (self, ticks, seq, channel, note, velocity):
401 self.note = note
407 note = ReadByte(stream)
412 return NoteOffEvent(ticks, seq, channel, note, velocity)
414 # special case for note-off using zero velocity
416 self.WriteRunningStatus(stream, track, filters, NOTE_ON, self.note, self.velocity)
418 self.WriteRunningStatus(stream, track, filters, NOTE_ON, self.note, self.velocity)
420 self.WriteRunningStatus(stream, track, filters, NOTE_ON, self.note, 0)
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):
434 self.note = note
441 note = ReadByte(stream)
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_length)
455 return '%s: ch=%d n=%d v=%d' % (self.name, self.channel, self.note, self.velocity)
461 def __init__ (self, ticks, seq, channel, note, value):
467 self.note = note
472 note = ReadByte(stream)
477 return PolyKeyPressureEvent(ticks, seq, channel, note, value)
479 self.WriteRunningStatus(stream, track, filters, POLY_KEY_PRESSURE, self.note, self.value)
481 return '%s: ch=%d n=%d v=%d' % (self.name, self.channel, self.note, self.value)
844 midi_file_logger.debug('Fix note lengths')
846 # search for note-on's in event list
852 # check for note-on occuring before end of current note
858 # adjust note length
859 if (event_to_check.msg_type == NOTE_ON) and (event_to_check.note == event.note):
860 midi_file_logger.debug('Adjusting note length @ %d' % event.ticks)
1047 # track note-ons
1055 if (event.channel == note_on.channel) and (event.note == note_on.note):
1056 stream.Warning('Duplicate note-on\'s encountered without intervening note-off')
1060 stream.Warning('Eliminating duplicate note-on')
1067 # process note-offs
1070 if (event.channel == note_on.channel) and (event.note == note_on.note):
1076 # stream.Warning('Note-off encountered without corresponding note-on')
1103 # stream.Warning('Note-ons encountered without corresponding note-offs')
1124 # create note-off events
1130 # if note-on event, create a note-off event
1134 note_off = NoteOffEvent(event.ticks + event.note_length, index, event.channel, event.note, event.note_off_velocity)
1136 # insert note-off in list
1155 # restore original list (without note-off events)
1219 midi_file_logger.debug('Trim: trimming note that extends past end %s' % event.TimeEventStr(self.stream.timebase))
1222 raise 'Error in note length - note should have been deleted'