import multiprocessing
import threading
from time import sleep
import sys
#import getch
import os
import subprocess
import Leap
import OSC
from scipy import signal
from collections import deque
import numpy as np
import time
from scipy.optimize import least_squares
from copy import deepcopy
import mido
from mido import MidiFile
import leap_input

import argparse