change time to match music

This commit is contained in:
Philipp Kramer 2022-05-12 15:46:43 +02:00
parent 01b02f735c
commit 2d6ec40ba8

View file

@ -3,10 +3,10 @@ import random
from sqlite3 import TimeFromTicks
import time
from pythonosc import udp_client
from pythonosc import udp_client #pip install python-osc
import csv
import numpy as np
import numpy as np #pip install numpy
'''
0: t=0s bis t=20s keine ausgabe per osc
@ -17,11 +17,11 @@ import numpy as np
3: t=150s bis t=5*60s daten laufen pro zeile als 1/8 bei tempo 50 =0,6s/beat. schnelles durchalufen wie gehabt. mit zufälligen pausen
'''
midiChannel=3 #<- Change This Manually
midiChannel=3 #<- Change This Manually. TODO: Monday
scenetimes=[0,20,60,70,120,150,300] #definition of times
scenetimes=[0,2,4,5,6,10,300] #definition of times FASTER FOR TESTING
scenetimes=[0,20,60,70,120,150,4*60+52] #definition of times
#scenetimes=[0,2,4,5,6,10,300] #definition of times FASTER FOR TESTING
scenes =[0,1, 0, 2, 0, 3, 0] #definition of scenes
@ -76,7 +76,7 @@ def init():
parser = argparse.ArgumentParser()
parser.add_argument("--ip", default="127.0.0.1", help="The ip of the OSC server")
parser.add_argument("--port", type=int, default=7000, help="The port the OSC server is listening on")
parser.add_argument("--port", type=int, default=7005, help="The port the OSC server is listening on")
args = parser.parse_args()
global client