This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tkinter as tk | |
import tkinter.ttk as ttk | |
import itertools | |
import decimal | |
""" Set a bpm and click the buttons to copy ms and hz values to the clipboard. | |
Set a frequency for A4 and click the buttons to copy hz values to the clipboard. | |
""" | |
_C = decimal.getcontext() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tkinter as tk | |
import tkinter.ttk as ttk | |
""" Set a bpm and click the buttons to copy ms and hz values to the clipboard | |
""" | |
class App(tk.Tk): | |
def trace_bpm_var(self,*traceargs): | |
bpm = self.bpm_var.get() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-4.8331,-4.7498,-4.5831,-4.4165,-4.0832,-3.9165,-3.5832,-3.4165 | |
-3.0832,-2.5832,-2.4166,-1.9166,-1.5833,-1.4166,-1.0833,-0.5833 | |
-0.0833,0.0833,0.5833,0.9166,1.0833,1.5833,1.9166,2.4166 | |
3.0832,3.4165,3.5832,3.9165,4.0832,4.4165,-4.4165,-4.0832 | |
-3.5832,-3.4165,-2.5832,-2.4166,-1.9166,-1.4166,-1.0833,-0.5833 | |
-0.0833,0.0833,0.9166,1.0833,1.4166,1.5833,2.5832,3.5832 | |
3.9165,4.0832,4.4165,4.9165,-4.9165,-4.0832,-3.5832,-3.0832 | |
-2.5832,-2.4166,-1.9166,-1.5833,-1.4166,-0.5833,0.5833,0.9166 | |
1.0833,1.4166,2.5832,3.0832,3.9165,4.0832,4.4165,4.9165 | |
-4.4165,-3.9165,-3.4165,-3.0832,-2.5832,-1.9166,-1.5833,-0.9166 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,1,1,1,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,0,0,0,0,1,0,1 | |
0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,1,0,0 | |
0,0,0,1,0,0,0,1,0,1,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0 | |
0,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1 | |
0,0,0,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,1,0,0 | |
0,0,0,1,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,1 | |
0,1,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1 | |
0,0,0,1,0,1,0,0,0,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0 | |
0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,1,0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,0 | |
0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,1,0,0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,1,1,1,0,1,0,1,0,0,0,1,0,1,0,0 | |
0,1,0,1,0,0,0,1,0,0,0,0,0,1,0,1 | |
0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,1 | |
0,0,0,0,0,1,0,0,0,0,0,1,0,1,0,0 | |
0,0,0,1,0,0,0,1,0,1,0,0,0,0,0,1 | |
0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0 | |
0,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0 | |
0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1 | |
0,0,0,1,0,0,0,0,0,1,0,1,0,0,0,0 | |
0,0,0,0,0,1,0,1,0,0,0,0,0,1,0,0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flpianoroll import * | |
note_ct = score.noteCount | |
def createDialog(): | |
form = ScriptDialog("Select every nth note","") | |
form.AddInputKnobInt("nth",2,2,64) | |
return form | |
def apply(form): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import pathlib | |
import os | |
import sys | |
import shutil | |
from xml.dom import minidom | |
from string import Template | |
# {{{1 boilerplate | |
boilerplate = Template( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if has('win32') | |
if empty(glob(expand('$HOMEDRIVE/$HOMEPATH/vimfiles/autoload/plug.vim'))) | |
exe 'silent !curl -fLo '.expand('$HOMEDRIVE/$HOMEPATH/vimfiles/autoload/plug.vim').' --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' | |
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC | |
endif | |
else | |
if empty(glob('~/.vim/autoload/plug.vim')) | |
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs | |
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
bl_info = { | |
"name": "CollectionProperty Test", | |
"blender": (2,80,0), | |
"category": "Test" | |
} | |
def _(a=None,b=[]): | |
if a: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import obspython as obs | |
import datetime | |
import pathlib | |
import subprocess | |
class Data: | |
OutputDir = None | |
def frontend_event_handler(data): | |
if data == obs.OBS_FRONTEND_EVENT_RECORDING_STOPPED: |
NewerOlder