Lines Matching refs:JetDefs
27 from JetDefs import *
44 ctrls = getattr(JetDefs, ctrlList)
120 helpText = IniGetValue(JetDefs.JETCREATOR_HLP, ctrlList, Lbl)
141 wx.Dialog.__init__(self, None, -1, JetDefs.DLG_JETOPEN)
145 self.je.ctrls[JetDefs.F_JLIST].AppendItems(fileList)
147 self.je.ctrls[JetDefs.F_JFILE].SetValue(fileList[0])
150 self.SetSize(JetDefs.JETOPEN_SIZE)
155 self.EndModal(JetDefs.ID_JET_IMPORT)
159 … sValue = self.je.ctrls[JetDefs.F_JLIST].GetString(self.je.ctrls[JetDefs.F_JLIST].GetSelection())
160 self.je.ctrls[JetDefs.F_JFILE].SetValue(sValue)
164 … sValue = self.je.ctrls[JetDefs.F_JLIST].GetString(self.je.ctrls[JetDefs.F_JLIST].GetSelection())
165 self.je.ctrls[JetDefs.F_JFILE].SetValue(sValue)
167 self.fileName = self.je.ctrls[JetDefs.F_JFILE].GetValue()
169 self.EndModal(JetDefs.ID_JET_OPEN)
174 self.fileName = self.je.ctrls[JetDefs.F_JFILE].GetValue()
176 self.EndModal(JetDefs.ID_JET_OPEN)
180 self.EndModal(JetDefs.ID_JET_NEW)
184 if len(self.je.ctrls[JetDefs.F_JFILE].GetValue()) == 0:
186 self.je.ctrls[JetDefs.F_JFILE].SetFocus()
188 if not FileExists(self.je.ctrls[JetDefs.F_JFILE].GetValue()):
190 self.je.ctrls[JetDefs.F_JFILE].SetFocus()
197 wx.Dialog.__init__(self, None, -1, JetDefs.DLG_PREFERENCES)
200 self.SetSize(JetDefs.PREFERENCES_SIZE)
216 wx.Dialog.__init__(self, None, -1, JetDefs.DLG_ABOUT)
238 wx.Dialog.__init__(self, None, -1, JetDefs.DLG_PROPERTIES)
241 self.SetSize(JetDefs.JET_PROPERTIES_SIZE)
259 self.SetSize(JetDefs.ERRORDLG_SIZE)
266 self.je.ctrls[JetDefs.F_ERRGRID].AddCol("Error", JetDefs.ERRORCOLW)
267 self.je.ctrls[JetDefs.F_ERRGRID].AddCol("Description", JetDefs.ERRORCOLW)
268 self.je.ctrls[JetDefs.F_ERRGRID].AddRows(errors)
278 self.je.ctrls[JetDefs.F_MIDIFILE].cmb.Bind(wx.EVT_KILL_FOCUS, self.OnMidiChanged)
279 self.je.ctrls[JetDefs.F_MIDIFILE].cmb.Bind(wx.EVT_COMBOBOX, self.OnMidiChanged)
280 self.je.ctrls[JetDefs.F_MIDIFILE].SetEventFire(True)
281 self.je.ctrls[JetDefs.F_MUTEFLAGS].AddCol(JetDefs.GRD_TRACK, JetDefs.MUTEGRD_TRACK)
282 self.je.ctrls[JetDefs.F_MUTEFLAGS].AddCol(JetDefs.GRD_CHANNEL, JetDefs.MUTEGRD_CHANNEL)
283 self.je.ctrls[JetDefs.F_MUTEFLAGS].AddCol(JetDefs.GRD_NAME, JetDefs.MUTEGRD_NAME)
284 self.je.ctrls[JetDefs.F_MUTEFLAGS].BindCheckBox(self.OnEventChecked)
285 self.je.ctrls[JetDefs.F_START].SetChangeCallbackFct(self.UpdateGraph)
286 self.je.ctrls[JetDefs.F_END].SetChangeCallbackFct(self.UpdateGraph)
287 …self.je.ctrls[JetDefs.F_DISPEMPTYTRACKS].SetValue(IniGetValue(self.currentJetConfigFile, JetDefs.F…
288 …self.je.ctrls[JetDefs.F_GRAPHLABELS].SetValue(IniGetValue(self.currentJetConfigFile, JetDefs.F_GRA…
289 …self.je.ctrls[JetDefs.F_GRAPHCLIPS].SetValue(IniGetValue(self.currentJetConfigFile, JetDefs.F_GRAP…
290 …self.je.ctrls[JetDefs.F_GRAPHAPPEVTS].SetValue(IniGetValue(self.currentJetConfigFile, JetDefs.F_GR…
306 self.SetSize(JetDefs.SEGDLG_SIZE)
312 self.je.ctrls[JetDefs.F_START].UnBindKillFocus()
313 self.je.ctrls[JetDefs.F_END].UnBindKillFocus()
332 if self.je.ctrls[JetDefs.F_MIDIFILE].GetValue() == self.lastMidiFile:
334 self.lastMidiFile = self.je.ctrls[JetDefs.F_MIDIFILE].GetValue()
335 self.lastMidiInfo = GetMidiInfo(self.je.ctrls[JetDefs.F_MIDIFILE].GetValue())
336 wx.PostEvent(self, JetStatusEvent(JetDefs.PST_MIDI_INFO, self.lastMidiInfo))
345 if self.je.ctrls[fld] == self.je.ctrls[JetDefs.F_MIDIFILE]:
352 self.je.ctrls[JetDefs.F_START].UnBindKillFocus()
353 self.je.ctrls[JetDefs.F_END].UnBindKillFocus()
358 …if not CompareMbt(self.je.ctrls[JetDefs.F_START].GetValue(), self.je.ctrls[JetDefs.F_END].GetValue…
360 self.je.ctrls[JetDefs.F_START].SetFocus()
362 if len(self.je.ctrls[JetDefs.F_SEGNAME].GetValue()) == 0:
364 self.je.ctrls[JetDefs.F_SEGNAME].SetFocus()
366 if len(self.je.ctrls[JetDefs.F_MIDIFILE].GetValue()) == 0:
368 self.je.ctrls[JetDefs.F_MIDIFILE].SetFocus()
370 if not FileExists(self.je.ctrls[JetDefs.F_MIDIFILE].GetValue()):
372 self.je.ctrls[JetDefs.F_MIDIFILE].SetFocus()
374 if len(self.je.ctrls[JetDefs.F_DLSFILE].GetValue()) > 0:
375 if not FileExists(self.je.ctrls[JetDefs.F_DLSFILE].GetValue()):
377 self.je.ctrls[JetDefs.F_DLSFILE].SetFocus()
379 …self.je.ctrls[JetDefs.F_MUTEFLAGS].SetValue(ComputeMuteFlagsFromList(self.je.ctrls[JetDefs.F_MUTEF…
386 segment = JetSegment(self.GetValue(JetDefs.F_SEGNAME),
387 self.GetValue(JetDefs.F_MIDIFILE),
388 self.GetValue(JetDefs.F_START),
389 self.GetValue(JetDefs.F_END),
390 JetDefs.MBT_ZEROSTR,
391 self.GetValue(JetDefs.F_SEGNAME),
392 self.GetValue(JetDefs.F_QUANTIZE),
394 self.GetValue(JetDefs.F_DLSFILE),
396 self.GetValue(JetDefs.F_TRANSPOSE),
397 self.GetValue(JetDefs.F_REPEAT),
398 self.GetValue(JetDefs.F_MUTEFLAGS))
401 segment = JetSegment(self.GetValue(JetDefs.F_SEGNAME),
402 self.GetValue(JetDefs.F_MIDIFILE),
403 JetDefs.MBT_ZEROSTR,
405 JetDefs.MBT_ZEROSTR,
406 self.GetValue(JetDefs.F_SEGNAME),
407 self.GetValue(JetDefs.F_QUANTIZE),
409 self.GetValue(JetDefs.F_DLSFILE),
419 trackNum = self.je.ctrls[JetDefs.F_MUTEFLAGS].GetTrackNumber(index)
424 if self.je.ctrls[JetDefs.F_PLAY].GetLabel() == JetDefs.BUT_STOP:
434 self.Player = PreviewPlayer(self.je.ctrls[JetDefs.F_PLAY], self.SetSegment(self.playMode))
435 self.Player.SetGraphCtrl(self.je.ctrls[JetDefs.F_GRAPH], self)
440 if self.je.ctrls[JetDefs.F_PLAYMIDI].GetLabel() == JetDefs.BUT_STOP:
450 … self.Player = PreviewPlayer(self.je.ctrls[JetDefs.F_PLAYMIDI], self.SetSegment(self.playMode))
451 self.Player.SetGraphCtrl(self.je.ctrls[JetDefs.F_GRAPH], self)
469 self.je.ctrls[JetDefs.F_GRAPH].DoDrawing()
474 …JetDefs.F_GRAPH].LoadSegment(self.graphSegment, showLabels=IniGetValue(self.currentJetConfigFile, …
480 …JetDefs.F_GRAPH].LoadSegment(self.graphSegment,(self.GetValue(JetDefs.F_SEGNAME), self.GetValue(Je…
484 if evt.mode == JetDefs.PST_UPD_LOCATION:
485 self.je.ctrls[JetDefs.F_GRAPH].UpdateLocation(evt.data)
486 elif evt.mode == JetDefs.PST_PLAY:
488 self.je.ctrls[JetDefs.F_PLAY].SetLabel(JetDefs.BUT_STOP)
489 self.je.ctrls[JetDefs.F_PLAYMIDI].Enabled = False
491 self.je.ctrls[JetDefs.F_RDOGRAPH].Enabled = False
492 self.je.ctrls[JetDefs.F_PLAYMIDI].SetLabel(JetDefs.BUT_STOP)
493 self.je.ctrls[JetDefs.F_PLAY].Enabled = False
495 self.je.ctrls[JetDefs.F_PAUSE].Enabled = True
496 self.je.ctrls[JetDefs.F_PAUSE].SetLabel(JetDefs.BUT_PAUSE)
497 elif evt.mode == JetDefs.PST_DONE:
498 self.je.ctrls[JetDefs.F_RDOGRAPH].Enabled = True
500 self.je.ctrls[JetDefs.F_PLAY].SetLabel(JetDefs.BUT_PLAYSEG)
501 self.je.ctrls[JetDefs.F_PLAYMIDI].Enabled = True
503 self.je.ctrls[JetDefs.F_PLAYMIDI].SetLabel(JetDefs.BUT_PLAYMIDI)
504 self.je.ctrls[JetDefs.F_PLAY].Enabled = True
506 self.je.ctrls[JetDefs.F_PAUSE].Enabled = False
507 self.je.ctrls[JetDefs.F_PAUSE].SetLabel(JetDefs.BUT_PAUSE)
508 elif evt.mode == JetDefs.PST_PAUSE:
509 self.je.ctrls[JetDefs.F_PAUSE].SetLabel(JetDefs.BUT_RESUME)
510 elif evt.mode == JetDefs.PST_RESUME:
511 self.je.ctrls[JetDefs.F_PAUSE].SetLabel(JetDefs.BUT_PAUSE)
512 elif evt.mode == JetDefs.PST_MIDI_INFO:
513 ClearRowSelections(self.je.ctrls[JetDefs.F_MUTEFLAGS])
516 … self.je.ctrls[JetDefs.F_END].SetMaxMbt(self.md.maxMeasures+1,self.md.maxBeats,self.md.maxTicks)
517 if self.je.ctrls[JetDefs.F_END].GetValue() == JetDefs.MBT_ZEROSTR:
518 self.je.ctrls[JetDefs.F_END].SetValue((self.md.maxMeasures,0,0))
519 … self.je.ctrls[JetDefs.F_START].SetMaxMbt(self.md.maxMeasures+1,self.md.maxBeats,self.md.maxTicks)
520 self.je.ctrls[JetDefs.F_MUTEFLAGS].DeleteAllItems()
521 …loadEmpty = IniGetValue(self.currentJetConfigFile, JetDefs.INI_DISPEMPTYTRACKS, JetDefs.INI_DISPEM…
523 self.je.ctrls[JetDefs.F_MUTEFLAGS].AddTrackRow(track, loadEmpty)
524 … self.je.ctrls[JetDefs.F_MUTEFLAGS].CheckTracks(self.je.ctrls[JetDefs.F_MUTEFLAGS].GetValue())
529 …iSetValue(self.currentJetConfigFile, JetDefs.INI_DISPEMPTYTRACKS, JetDefs.INI_DISPEMPTYTRACKS, sel…
530 …loadEmpty = IniGetValue(self.currentJetConfigFile, JetDefs.INI_DISPEMPTYTRACKS, JetDefs.INI_DISPEM…
532 self.je.ctrls[JetDefs.F_MUTEFLAGS].DeleteAllItems()
535 self.je.ctrls[JetDefs.F_MUTEFLAGS].AddTrackRow(track, loadEmpty)
543 …IniSetValue(self.currentJetConfigFile, JetDefs.F_GRAPHLABELS, JetDefs.F_GRAPHLABELS, self.je.ctrls…
544 …IniSetValue(self.currentJetConfigFile, JetDefs.F_GRAPHAPPEVTS, JetDefs.F_GRAPHAPPEVTS, self.je.ctr…
545 …IniSetValue(self.currentJetConfigFile, JetDefs.F_GRAPHCLIPS, JetDefs.F_GRAPHCLIPS, self.je.ctrls[J…
550 dlg.SetValue(JetDefs.F_RPREPLACE, True)
551 dlg.SetName(self.GetValue(JetDefs.F_SEGNAME))
553 dlg.event_max = self.je.ctrls[JetDefs.F_START].GetMaxMbt()
554 …fference(ConvertStrTimeToTuple(self.GetValue(JetDefs.F_START)), ConvertStrTimeToTuple(self.GetValu…
557 self.replicatePrefix = dlg.GetValue(JetDefs.F_RPPREFIX)
559 self.chkReplaceMatching = dlg.GetValue(JetDefs.F_RPREPLACE)
572 self.je.ctrls[JetDefs.F_MUTEFLAGS].AddCol(JetDefs.GRD_TRACK, JetDefs.MUTEGRD_TRACK)
573 self.je.ctrls[JetDefs.F_MUTEFLAGS].AddCol(JetDefs.GRD_CHANNEL, JetDefs.MUTEGRD_CHANNEL)
574 self.je.ctrls[JetDefs.F_MUTEFLAGS].AddCol(JetDefs.GRD_NAME, JetDefs.MUTEGRD_NAME)
575 self.je.ctrls[JetDefs.F_ESTART].SetChangeCallbackFct(self.UpdateGraph)
576 self.je.ctrls[JetDefs.F_EEND].SetChangeCallbackFct(self.UpdateGraph)
577 …self.je.ctrls[JetDefs.F_GRAPHLABELS].SetValue(IniGetValue(self.currentJetConfigFile, JetDefs.F_GRA…
578 …self.je.ctrls[JetDefs.F_GRAPHCLIPS].SetValue(IniGetValue(self.currentJetConfigFile, JetDefs.F_GRAP…
579 …self.je.ctrls[JetDefs.F_GRAPHAPPEVTS].SetValue(IniGetValue(self.currentJetConfigFile, JetDefs.F_GR…
589 self.SetSize(JetDefs.EVTDLG_SIZE)
594 self.je.ctrls[JetDefs.F_GRAPH].DoDrawing()
598 if evt.mode == JetDefs.PST_UPD_LOCATION:
599 self.je.ctrls[JetDefs.F_GRAPH].UpdateLocation(evt.data)
600 elif evt.mode == JetDefs.PST_PLAY:
601 self.je.ctrls[JetDefs.F_PAUSE].SetLabel(JetDefs.BUT_PAUSE)
602 self.je.ctrls[JetDefs.F_PLAY].SetLabel(JetDefs.BUT_STOP)
603 self.je.ctrls[JetDefs.F_PAUSE].Enabled = True
604 self.je.ctrls[JetDefs.F_ETRIGGERBUT].Enabled = True
605 self.je.ctrls[JetDefs.F_EMUTEBUT].Enabled = True
606 elif evt.mode == JetDefs.PST_DONE:
607 self.je.ctrls[JetDefs.F_EMUTEBUT].SetLabel(JetDefs.BUT_UNMUTE)
608 self.je.ctrls[JetDefs.F_PLAY].SetLabel(JetDefs.BUT_PLAY)
609 self.je.ctrls[JetDefs.F_PAUSE].Enabled = False
610 self.je.ctrls[JetDefs.F_PAUSE].SetLabel(JetDefs.BUT_PAUSE)
611 self.je.ctrls[JetDefs.F_ETRIGGERBUT].Enabled = False
612 self.je.ctrls[JetDefs.F_EMUTEBUT].Enabled = False
613 elif evt.mode == JetDefs.PST_PAUSE:
614 self.je.ctrls[JetDefs.F_PAUSE].SetLabel(JetDefs.BUT_RESUME)
615 elif evt.mode == JetDefs.PST_RESUME:
616 self.je.ctrls[JetDefs.F_PAUSE].SetLabel(JetDefs.BUT_PAUSE)
625 self.segment.jetevents.append(JetEvent(self.je.ctrls[JetDefs.F_ENAME].GetValue(),
626 self.je.ctrls[JetDefs.F_ETYPE].GetValue(),
628 self.je.ctrls[JetDefs.F_ETRACK].GetValue(),
629 self.je.ctrls[JetDefs.F_ECHANNEL].GetValue(),
630 self.je.ctrls[JetDefs.F_ESTART].GetValue(),
631 self.je.ctrls[JetDefs.F_EEND].GetValue()))
633 self.segment.jetevents[0].event_name = self.je.ctrls[JetDefs.F_ENAME].GetValue()
634 self.segment.jetevents[0].event_type = self.je.ctrls[JetDefs.F_ETYPE].GetValue()
635 self.segment.jetevents[0].event_start = self.je.ctrls[JetDefs.F_ESTART].GetValue()
636 self.segment.jetevents[0].event_end = self.je.ctrls[JetDefs.F_EEND].GetValue()
637 …JetDefs.F_GRAPH].LoadSegment(self.segment, showLabels=IniGetValue(self.currentJetConfigFile, JetDe…
642 self.je.ctrls[JetDefs.F_ESTART].UnBindKillFocus()
643 self.je.ctrls[JetDefs.F_EEND].UnBindKillFocus()
661 if self.title == JetDefs.MAIN_ADDEVENTTITLE:
664 if evt.event_type == JetDefs.E_CLIP:
667 self.je.ctrls[JetDefs.F_EEVENTID].SetValue(iNextEventId + 1)
671 eType = self.je.ctrls[JetDefs.F_ETYPE].GetValue()
672 if eType == JetDefs.E_EOS:
673 self.je.ctrls[JetDefs.F_ENAME].SetValue(JetDefs.E_EOS)
674 self.je.ctrls[JetDefs.F_ENAME].Enable(False)
675 self.je.ctrls[JetDefs.F_ESTART].Enable(False)
676 self.je.ctrls[JetDefs.F_EEND].Enable(True)
677 self.je.ctrls[JetDefs.F_ETRIGGERBUT].Enable(False)
678 self.je.ctrls[JetDefs.F_EEVENTID].Enable(False)
679 elif eType == JetDefs.E_CLIP:
680 …[JetDefs.F_ENAME].GetValue()) == 0 or self.je.ctrls[JetDefs.F_ENAME].GetValue() == JetDefs.E_EOS o…
681 self.je.ctrls[JetDefs.F_ENAME].SetValue(JetDefs.E_CLIP)
682 self.je.ctrls[JetDefs.F_ENAME].Enable(True)
683 self.je.ctrls[JetDefs.F_ESTART].Enable(True)
684 self.je.ctrls[JetDefs.F_EEND].Enable(True)
685 self.je.ctrls[JetDefs.F_ETRIGGERBUT].Enable(True)
686 self.je.ctrls[JetDefs.F_EEVENTID].Enable(True)
687 self.je.ctrls[JetDefs.F_EEVENTID].SetRange(JetDefs.EVENTID_MIN, JetDefs.EVENTID_MAX)
688 if self.je.ctrls[JetDefs.F_EEVENTID].GetValue() < JetDefs.EVENTID_MIN:
689 self.je.ctrls[JetDefs.F_EEVENTID].SetValue(JetDefs.EVENTID_MIN)
690 if self.je.ctrls[JetDefs.F_EEVENTID].GetValue() > JetDefs.EVENTID_MAX:
691 self.je.ctrls[JetDefs.F_EEVENTID].SetValue(JetDefs.EVENTID_MAX)
693 elif eType == JetDefs.E_APP:
694 …if len(self.je.ctrls[JetDefs.F_ENAME].GetValue()) == 0 or self.je.ctrls[JetDefs.F_ENAME].GetValue(…
695 self.je.ctrls[JetDefs.F_ENAME].SetValue(JetDefs.E_APP)
696 self.je.ctrls[JetDefs.F_ENAME].Enable(True)
697 self.je.ctrls[JetDefs.F_ESTART].Enable(True)
698 self.je.ctrls[JetDefs.F_EEND].Enable(False)
699 self.je.ctrls[JetDefs.F_ETRIGGERBUT].Enable(False)
700 self.je.ctrls[JetDefs.F_EEVENTID].Enable(True)
701 …self.je.ctrls[JetDefs.F_EEVENTID].SetRange(JetDefs.APPCONTROLLERID_MIN, JetDefs.APPCONTROLLERID_MA…
702 if self.je.ctrls[JetDefs.F_EEVENTID].GetValue() < JetDefs.APPCONTROLLERID_MIN:
703 self.je.ctrls[JetDefs.F_EEVENTID].SetValue(JetDefs.APPCONTROLLERID_MIN)
704 if self.je.ctrls[JetDefs.F_EEVENTID].GetValue() > JetDefs.APPCONTROLLERID_MAX:
705 self.je.ctrls[JetDefs.F_EEVENTID].SetValue(JetDefs.APPCONTROLLERID_MAX)
711 self.je.ctrls[JetDefs.F_ESTART].UnBindKillFocus()
712 self.je.ctrls[JetDefs.F_EEND].UnBindKillFocus()
717 if len(self.je.ctrls[JetDefs.F_ENAME].GetValue()) == 0:
719 self.je.ctrls[JetDefs.F_ENAME].SetFocus()
721 if len(self.je.ctrls[JetDefs.F_ETYPE].GetValue()) == 0:
723 self.je.ctrls[JetDefs.F_ETYPE].SetFocus()
725 if self.je.ctrls[JetDefs.F_ETYPE].GetValue() == JetDefs.E_CLIP:
726 …if not CompareMbt(self.je.ctrls[JetDefs.F_ESTART].GetValue(), self.je.ctrls[JetDefs.F_EEND].GetVal…
728 self.je.ctrls[JetDefs.F_ESTART].SetFocus()
730 …if MbtVal(self.je.ctrls[JetDefs.F_ESTART].GetValue()) < MbtVal(self.je.ctrls[JetDefs.F_START].GetV…
732 self.je.ctrls[JetDefs.F_ESTART].SetFocus()
734 …if MbtVal(self.je.ctrls[JetDefs.F_EEND].GetValue()) > MbtVal(self.je.ctrls[JetDefs.F_END].GetValue…
736 self.je.ctrls[JetDefs.F_ESTART].SetFocus()
738 if self.je.ctrls[JetDefs.F_ETYPE].GetValue() == JetDefs.E_APP:
739 self.je.ctrls[JetDefs.F_EEND].SetValue(self.je.ctrls[JetDefs.F_ESTART].GetValue())
740 if self.je.ctrls[JetDefs.F_ETYPE].GetValue() == JetDefs.E_EOS:
741 self.je.ctrls[JetDefs.F_ESTART].SetValue(self.je.ctrls[JetDefs.F_EEND].GetValue())
749 self.SetValue(JetDefs.F_SEGNAME, segment.segname)
750 self.SetValue(JetDefs.F_MUTEFLAGS, segment.mute_flags)
751 self.SetValue(JetDefs.F_MIDIFILE, segment.filename)
752 self.SetValue(JetDefs.F_DLSFILE, segment.dlsfile)
753 self.SetValue(JetDefs.F_START, segment.start)
754 self.SetValue(JetDefs.F_END, segment.end)
755 self.SetValue(JetDefs.F_QUANTIZE, segment.quantize)
756 self.SetValue(JetDefs.F_TRANSPOSE, segment.transpose)
757 self.SetValue(JetDefs.F_REPEAT, segment.repeat)
758 maxMeasures = abs(int(self.je.ctrls[JetDefs.F_END].GetValue('int')[0]))
759 self.je.ctrls[JetDefs.F_EEND].SetMaxMbt(maxMeasures+1,md.maxBeats,md.maxTicks)
760 self.je.ctrls[JetDefs.F_ESTART].SetMaxMbt(maxMeasures+1,md.maxBeats,md.maxTicks)
761 minMeasures = abs(int(self.je.ctrls[JetDefs.F_START].GetValue('int')[0]))
762 self.je.ctrls[JetDefs.F_EEND].SetMinMbt(minMeasures+1,0,0)
763 self.je.ctrls[JetDefs.F_ESTART].SetMinMbt(minMeasures+1,0,0)
764 self.je.ctrls[JetDefs.F_END].GetValue('int')
765 self.je.ctrls[JetDefs.F_ETRACK].SetRange(1, md.maxTracks)
766 self.je.ctrls[JetDefs.F_MUTEFLAGS].DeleteAllItems()
768 self.je.ctrls[JetDefs.F_MUTEFLAGS].AddTrackRow(track)
769 … self.je.ctrls[JetDefs.F_MUTEFLAGS].CheckTracks(self.je.ctrls[JetDefs.F_MUTEFLAGS].GetValue())
770 …self.je.ctrls[JetDefs.F_MUTEFLAGS].SetTextColour(wx.SystemSettings.GetColour(wx.SYS_COLOUR_GRAYTEX…
771 …JetDefs.F_GRAPH].LoadSegment(segment, showLabels=IniGetValue(self.currentJetConfigFile, JetDefs.F_…
775 if self.je.ctrls[JetDefs.F_PLAY].GetLabel() == JetDefs.BUT_STOP:
783 jetevents.append(JetEvent(self.GetValue(JetDefs.F_ENAME), self.GetValue(JetDefs.F_ETYPE),
784 self.event_id, int(self.GetValue(JetDefs.F_ETRACK)),
785 int(self.GetValue(JetDefs.F_ECHANNEL)),
786 self.GetValue(JetDefs.F_ESTART), self.GetValue(JetDefs.F_EEND)))
788 segment = JetSegment(self.GetValue(JetDefs.F_SEGNAME),
789 self.GetValue(JetDefs.F_MIDIFILE),
790 self.GetValue(JetDefs.F_START),
791 self.GetValue(JetDefs.F_END),
792 JetDefs.MBT_ZEROSTR,
793 self.GetValue(JetDefs.F_SEGNAME),
794 self.GetValue(JetDefs.F_QUANTIZE),
796 self.GetValue(JetDefs.F_DLSFILE),
798 self.GetValue(JetDefs.F_TRANSPOSE),
799 self.GetValue(JetDefs.F_REPEAT),
800 self.GetValue(JetDefs.F_MUTEFLAGS))
802 self.Player = PreviewPlayer(self.je.ctrls[JetDefs.F_PLAY], segment)
803 self.Player.SetGraphCtrl(self.je.ctrls[JetDefs.F_GRAPH], self)
804 self.je.ctrls[JetDefs.F_GRAPH].ClickCallbackFct = self.GraphTriggerClip
805 self.Player.trigger_button = self.je.ctrls[JetDefs.F_ETRIGGERBUT]
806 self.Player.mute_button = self.je.ctrls[JetDefs.F_EMUTEBUT]
817 self.Player.MuteTrackViaButton(self.je.ctrls[JetDefs.F_EMUTEBUT],
818 int(self.je.ctrls[JetDefs.F_ETRACK].GetValue()))
827 …IniSetValue(self.currentJetConfigFile, JetDefs.F_GRAPHLABELS, JetDefs.F_GRAPHLABELS, self.je.ctrls…
828 …IniSetValue(self.currentJetConfigFile, JetDefs.F_GRAPHAPPEVTS, JetDefs.F_GRAPHAPPEVTS, self.je.ctr…
829 …IniSetValue(self.currentJetConfigFile, JetDefs.F_GRAPHCLIPS, JetDefs.F_GRAPHCLIPS, self.je.ctrls[J…
834 dlg.SetValue(JetDefs.F_RPREPLACE, True)
835 dlg.SetName(self.GetValue(JetDefs.F_ENAME))
836 dlg.event_type = self.GetValue(JetDefs.F_ETYPE)
838 …fference(ConvertStrTimeToTuple(self.GetValue(JetDefs.F_ESTART)), ConvertStrTimeToTuple(self.GetVal…
841 self.replicatePrefix = dlg.GetValue(JetDefs.F_RPPREFIX)
843 self.chkReplaceMatching = dlg.GetValue(JetDefs.F_RPREPLACE)
855 self.je.ctrls[JetDefs.F_RPINCREMENT].SetMinMbt(0,0,0)
856 self.je.ctrls[JetDefs.F_RPINCREMENT].SetValue((-1,-1,-1))
857 self.je.ctrls[JetDefs.F_RPNUMBER].SetValue(1)
858 for title, width, fld in JetDefs.REPLICATE_GRID:
859 self.je.ctrls[JetDefs.F_RPGRDPREVIEW].AddCol(title, width)
862 self.SetSize(JetDefs.REPLICATE_SIZE)
880 self.SetValue(JetDefs.F_RPPREFIX, name)
883 if self.GetValue(JetDefs.F_RPPREFIX) == '':
891 start = MbtVal(self.GetValue(JetDefs.F_ESTART))
893 … MbtVal((self.je.ctrls[JetDefs.F_RPINCREMENT].GetMeasure(), self.je.ctrls[JetDefs.F_RPINCREMENT].G…
896 iTo = int(self.GetValue(JetDefs.F_RPNUMBER))
898 evt_name = "%s %.2d" % (self.GetValue(JetDefs.F_RPPREFIX), i)
902 if self.event_type == JetDefs.E_CLIP or self.event_type == "SEGMENT":
912 self.je.ctrls[JetDefs.F_RPGRDPREVIEW].DeleteAllItems()
913 self.je.ctrls[JetDefs.F_RPGRDPREVIEW].AddRows(self.lstReplicate)
922 self.je.ctrls[JetDefs.F_RPINCREMENT].SetMinMbt(-999,-4,-480)
923 self.je.ctrls[JetDefs.F_RPINCREMENT].SetValue((-1,-1,-1))
924 for title, width, fld in JetDefs.REPLICATE_GRID:
925 self.je.ctrls[JetDefs.F_RPGRDPREVIEW].AddCol(title, width)
930 self.SetSize(JetDefs.REPLICATE_SIZE)
943 …abs(self.je.ctrls[JetDefs.F_RPINCREMENT].GetMeasure()), abs(self.je.ctrls[JetDefs.F_RPINCREMENT].G…
944 …if self.je.ctrls[JetDefs.F_RPINCREMENT].GetMeasure() < 0 or self.je.ctrls[JetDefs.F_RPINCREMENT].G…
968 self.je.ctrls[JetDefs.F_RPGRDPREVIEW].DeleteAllItems()
969 self.je.ctrls[JetDefs.F_RPGRDPREVIEW].AddRows(self.lstMove)
981 dlg.SetValue(JetDefs.F_RPREPLACE, True)
983 dlg.event_type = JetDefs.E_APP
999 dlg = SegEdit("Segments", JetDefs.UNTITLED_FILE)
1000 dlg.SetValue(JetDefs.F_SEGNAME, "Test Segment Name")
1001 dlg.SetValue(JetDefs.F_MIDIFILE, '/Users/BHruska/JetContent/jenn_Burning Line.mid')
1002 dlg.SetValue(JetDefs.F_MIDIFILE, 'C:/_Data/JetCreator/JetDemo1/jenn_Burning Line.mid')
1003 dlg.SetValue(JetDefs.F_DLSFILE, '')
1004 dlg.SetValue(JetDefs.F_START, '4:0:0')
1005 dlg.SetValue(JetDefs.F_END, '8:0:0')
1006 dlg.SetValue(JetDefs.F_QUANTIZE, 6)
1022 dlg = EventEdit("Event Edit", JetDefs.UNTITLED_FILE)
1023 dlg.SetValue(JetDefs.F_ENAME, "Test Event Name")
1024 dlg.SetValue(JetDefs.F_ETYPE, "TriggerClip")