diff --git a/app.py b/app.py
index ac5c970..3f0346b 100644
--- a/app.py
+++ b/app.py
@@ -4,11 +4,11 @@ from pythonosc.udp_client import SimpleUDPClient
# OSC client connection
-ip= "192.168.43.216" #"127.0.0.1"
+ip= "192.168.1.128" # "192.168.43.216" "127.0.0.1"
port= 9000
client = SimpleUDPClient(ip, port) #create client
-
+# client.send_message("/sc", "hello")
@@ -31,13 +31,13 @@ def update_bpm(bpm, tempo):
def play_sheet():
- with open('tracker.csv', newline='') as f:
+ with open('inputscim.csv', newline='') as f:
tracker = csv.DictReader(f)
for row in tracker:
row = row['tum'], row['ts'], row['cha']
- client.send_message("/vvvv", row)
- print(' '.join(row))
+ client.send_message("/sc", row)
+ # print(' '.join(row)) #it gives problems
time.sleep(update_bpm(bpm, tempo))
@@ -45,8 +45,9 @@ def play_sheet():
while True:
play_sheet()
-
-
+
+client.send_message("/sc", " ")
+
# connect to pd osc
diff --git a/inputscim.csv b/inputscim.csv
new file mode 100644
index 0000000..cc59d65
--- /dev/null
+++ b/inputscim.csv
@@ -0,0 +1,17 @@
+tum,ts,cha
+440.00
+,410.00
+,1420.00,610.0
+
+720.00,,240.0
+
+,620.00
+
+880.00,,380.0
+
+,1500.00
+240.00
+440.00
+,360.00,620.0
+
+880.00,440.00
diff --git a/inputscim.sc b/inputscim.sc
new file mode 100644
index 0000000..22b3b7c
--- /dev/null
+++ b/inputscim.sc
@@ -0,0 +1,30 @@
+# This data file was generated by the Spreadsheet Calculator Improvised (sc-im)
+# You almost certainly shouldn't edit it.
+
+newsheet "Sheet1"
+movetosheet "Sheet1"
+offscr_sc_cols 0
+offscr_sc_rows 0
+nb_frozen_rows 0
+nb_frozen_cols 0
+nb_frozen_screenrows 0
+nb_frozen_screencols 0
+format C 10 1 0
+leftstring A0 = "tum"
+leftstring B0 = "ts"
+leftstring C0 = "cha"
+let A1 = 440
+let B2 = 410
+let B3 = 400
+let C3 = 610
+let A5 = 720
+let B7 = 620
+let A9 = 880
+let C9 = 380
+let B11 = 1500
+let A13 = 440
+let C14 = 620
+let A16 = 880
+let B16 = 440
+goto B2
+movetosheet "Sheet1"
diff --git a/receiver.vl b/receiver.vl
index bdb5a86..b54cbb1 100644
--- a/receiver.vl
+++ b/receiver.vl
@@ -42,7 +42,7 @@
-
+
@@ -251,7 +251,7 @@
-
+
diff --git a/sound.sc b/sound.sc
index 501fea1..9840caf 100644
--- a/sound.sc
+++ b/sound.sc
@@ -1,6 +1,14 @@
-n = NetAddr.localAddr;
+NetAddr.localAddr;
+thisProcess.openUDPPort(7771); // attempt to open 1121
+thisProcess.openPorts; // list all open ports
-o = OSCFunc({arg msg, time, addr, recvPort; [msg, time, addr, recvPort].postln;}, '/goodbye', n);
-o.free;
\ No newline at end of file
+n = NetAddr.new("127.0.0.1", 7771); // create the NetAddr
+
+
+OSCFunc.trace(true); // Turn posting on
+OSCFunc.trace(false); // Turn posting off
+
+o = OSCFunc({ arg msg, time, addr, recvPort; [msg].postln; }, '/sc', n);
+o.free; // remove the osc function when you're done
\ No newline at end of file