Home | History | Annotate | Download | only in JetCreator

Lines Matching refs:segment

100     """ Queues a segment """

104 """ Object representing a segment """
384 """ Computes a segment output file """
489 for segment in jet_file.GetSegments():
490 if FileExists(segment.filename):
491 if not FileJustName(segment.filename) in zip.namelist():
492 zip.write(segment.filename, FileJustName(segment.filename))
493 if FileExists(segment.output):
494 if not FileJustName(segment.output) in zip.namelist():
495 zip.write(segment.output, FileJustName(segment.output))
504 for segment in jet_file.GetSegments():
505 segment.filename = FileJustName(segment.filename)
506 segment.dlsfile = FileJustName(segment.dlsfile)
507 segment.output = FileJustName(segment.output)
535 for segment in test_jet_file.segments:
536 logging.debug(segment.filename)
537 if segment.filename is not None and len(segment.filename) > 0 and not FileExists(segment.filename):
538 errors.append(("Segment MIDI file not found", segment.filename))
540 if segment.dlsfile is not None and len(segment.dlsfile) > 0 and not FileExists(segment.dlsfile):
541 errors.append(("Segment DLS file not found; removing from config", segment.dlsfile))
542 segment.dlsfile = ""
623 def MidiSegInfo(segment):
636 savedVer = IniGetValue(JetDefs.JETMIDIFILES_INI, segment.filename, "Ver")
637 savedDateTime = IniGetValue(JetDefs.JETMIDIFILES_INI, segment.filename, "DateTime")
638 dateTime = FileDateTime(segment.filename)
640 mi = GetMidiInfo(segment.filename)
642 IniSetValue(JetDefs.JETMIDIFILES_INI, segment.filename, "Ver", ver)
643 IniSetValue(JetDefs.JETMIDIFILES_INI, segment.filename, "DateTime", str(dateTime))
644 IniSetValue(JetDefs.JETMIDIFILES_INI, segment.filename, "PPQN", str(mi.ppqn))
645 IniSetValue(JetDefs.JETMIDIFILES_INI, segment.filename, "BPM", str(mi.beats_per_measure))
646 IniSetValue(JetDefs.JETMIDIFILES_INI, segment.filename, "totalTicks", str(mi.totalTicks))
647 IniSetValue(JetDefs.JETMIDIFILES_INI, segment.filename, "maxTracks", str(mi.maxTracks))
648 iLengthInMs = GetMidiFileLength(segment.filename) * 1000
649 IniSetValue(JetDefs.JETMIDIFILES_INI, segment.filename, "LengthInMs", str(iLengthInMs))
651 IniSetValue(JetDefs.JETMIDIFILES_INI, segment.filename, "MsPerTick", str(iLengthInMs / mi.totalTicks))
656 IniSetValue(JetDefs.JETMIDIFILES_INI, segment.filename, "Tracks", tl)
659 tl = IniGetValue(JetDefs.JETMIDIFILES_INI, segment.filename, "Tracks", 'list', [])
662 iTracks = IniGetValue(JetDefs.JETMIDIFILES_INI, segment.filename, "maxTracks", 'int', 0)
663 iMsPerTick = IniGetValue(JetDefs.JETMIDIFILES_INI, segment.filename, "MsPerTick", 'float', 0)
664 bpm = IniGetValue(JetDefs.JETMIDIFILES_INI, segment.filename, "BPM", 'int', 0)
665 ppqn = IniGetValue(JetDefs.JETMIDIFILES_INI, segment.filename, "PPQN", 'int', 480)
669 total_ticks = tb.ConvertStrTimeToTicks(segment.length)
671 total_ticks = tb.MbtDifference(tb.ConvertStrTimeToTuple(segment.start), tb.ConvertStrTimeToTuple(segment.end))