Lines Matching refs:JetDefs
33 from JetDefs import *
47 if self.objType == JetDefs.MAIN_SEGLIST:
62 elif self.objType == JetDefs.MAIN_EVENTLIST:
163 return JetDefs.MBT_DEFAULT
287 config.read(JetDefs.JETCREATOR_INI)
288 if config.has_section(JetDefs.RECENT_SECTION):
291 if config.has_option(JetDefs.RECENT_SECTION, sFile):
292 sFileName = config.get(JetDefs.RECENT_SECTION, sFile)
294 if sFileName != JetDefs.UNTITLED_FILE:
296 fileList.append(config.get(JetDefs.RECENT_SECTION, sFile))
304 config.read(JetDefs.JETCREATOR_INI)
305 if config.has_section(JetDefs.RECENT_SECTION):
306 config.remove_section(JetDefs.RECENT_SECTION)
307 config.add_section(JetDefs.RECENT_SECTION)
308 config.set(JetDefs.RECENT_SECTION, "File0", jetFile)
314 config.set(JetDefs.RECENT_SECTION, sFile, file)
317 FileKillClean(JetDefs.JETCREATOR_INI)
318 cfgfile = open(JetDefs.JETCREATOR_INI,'w')
474 return IniGetValue(JetDefs.JETCREATOR_HLP, dlgName, fld)
514 tmpConfigFile = JetDefs.TEMP_JET_CONFIG_FILE
636 savedVer = IniGetValue(JetDefs.JETMIDIFILES_INI, segment.filename, "Ver")
637 savedDateTime = IniGetValue(JetDefs.JETMIDIFILES_INI, segment.filename, "DateTime")
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))
649 IniSetValue(JetDefs.JETMIDIFILES_INI, segment.filename, "LengthInMs", str(iLengthInMs))
651 …IniSetValue(JetDefs.JETMIDIFILES_INI, segment.filename, "MsPerTick", str(iLengthInMs / mi.totalTic…
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)
752 dirname = JetDefs.TEMP_JET_DIR