blc - Simple program for rendering QLC+ workspaces properly/without crashing. Developed into BLC2.

git clone https://benconnors.ca/git-repos/blc

About | Log | Files | Refs

util.py (202B) - raw


      1 """Various AudioPlayer utilities."""
      2 
      3 def ttoti(t):
      4     """Convert seconds to milliseconds."""
      5     return int(1000*t + 0.5)
      6 
      7 def titot(ti):
      8     """Convert milliseconds to seconds."""
      9     return ti/1000