Lines Matching full:segment
68 SEGMENT_SECTION = 'segment'
170 #BTH; Seems to fix chase controller bug when multiple clips within segment
307 # check for segment section
317 # get the segment parameters
428 for segment in self.segments:
429 logging.debug('Writing segment %d' % seg_num)
432 jet_segfile = JetSegmentFile(segment.filename, 'rb')
436 jet_segfile.AddJetEvents(segment.jetevents)
439 …jet_segfile.ExtractEvents(segment.start, segment.end, segment.length, segment.quantize, self.confi…
450 if segment.output is not None:
451 jet_segfile.SaveAs(segment.output)
454 if segment.dump_file is not None:
455 with open(segment.dump_file, 'w') as f:
458 # write the segment header
468 # return to segment header and write actual size
508 for segment in self.segments:
509 if segment.filename not in midiFiles:
510 midiFiles.append(segment.filename)
518 """ Gets the events for a segment """
519 for segment in self.segments:
520 if segment.segname == segName:
521 return segment.jetevents
525 """ Gets a single event from a segment """
526 for segment in self.segments:
527 if segment.segname == segName:
528 for event in segment.jetevents:
535 for segment in self.segments:
536 if segment.segname == segname:
537 …segment.jetevents.append(JetEvent(event_name, event_type, int(event_id), int(track_num), int(chann…
541 for segment in self.segments:
542 if segment.segname == segname:
543 segment.jetevents = newEvents
544 return segment
548 for segment in self.segments:
549 if segment.segname == segname:
550 for jetevent in segment.jetevents:
567 for segment in self.segments:
568 if segment.segname[0:len(prefix)].upper() == prefix.upper():
569 self.segments.remove(segment)
574 for segment in self.segments:
575 if segment.segname == segname:
576 for jetevent in segment.jetevents:
578 segment.jetevents.remove(jetevent)
582 for segment in self.segments:
583 if segment.segname == segname:
589 for jetevent in segment.jetevents:
591 segment.jetevents.remove(jetevent)
596 for segment in self.segments:
597 if segment.segname == segname:
598 for jetevent in segment.jetevents:
609 """ Gets one segment by name """
610 for segment in self.segments:
611 if segment.segname == segName:
612 return segment
616 """ Adds a segment """
624 """ Updates a segment """
629 for segment in self.segments:
630 if segment.segname == orgsegname:
631 segment.segname = segname
632 segment.filename = filename
633 segment.start = start
634 segment.end = end
635 segment.length = length
636 segment.output = output
637 segment.quantize = quantize
638 segment.dlsfile = dlsfile
639 segment.transpose = transpose
640 segment.repeat = repeat
641 segment.mute_flags = mute_flags
644 """ Moves a segment """
645 for segment in self.segments:
646 if segment.segname == segname:
647 segment.start = start
648 segment.end = end
652 """ Deletes a segment """
653 for segment in self.segments:
654 if segment.segname == segname:
655 self.segments.remove(segment)
673 for segment in self.segments:
676 config.set(segment_name, SEGMENT_NAME, segment.segname)
677 config.set(segment_name, SEGMENT_FILENAME, segment.filename)
679 config.set(segment_name, SEGMENT_DLSFILE, segment.dlsfile)
680 if FileExists(segment.dlsfile):
681 if not segment.dlsfile in self.libraries:
682 self.libraries.append(segment.dlsfile)
683 config.set(segment_name, SEGMENT_START, segment.start)
684 if segment.end > JetDefs.MBT_ZEROSTR and len(segment.end) > 0:
685 config.set(segment_name, SEGMENT_END, segment.end)
686 if segment.length > JetDefs.MBT_ZEROSTR and len(segment.length) > 0:
687 config.set(segment_name, SEGMENT_LENGTH, segment.length)
688 config.set(segment_name, SEGMENT_OUTPUT, segment.output)
689 config.set(segment_name, SEGMENT_QUANTIZE, segment.quantize)
690 if segment.dump_file is not None:
691 config.set(segment_name, SEGMENT_DUMP_FILE, segment.dump_file)
692 config.set(segment_name, SEGMENT_TRANSPOSE, segment.transpose)
693 config.set(segment_name, SEGMENT_REPEAT, segment.repeat)
694 config.set(segment_name, SEGMENT_MUTE_FLAGS, segment.mute_flags)
698 for jet_event in segment.jetevents: