From b4a6cc0311113d2d372af58de39bb5ca88905e53 Mon Sep 17 00:00:00 2001 From: standarddeviant Date: Thu, 30 Aug 2018 13:27:35 -0400 Subject: [PATCH] Simple syntax fixes to README.md * Removed types from global variables and replaced with function calls * Changed `UdpSocket` to `UDPSocket` --- README.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 2ec7a94..a81a70b 100644 --- a/README.md +++ b/README.md @@ -11,18 +11,18 @@ librtosc(https://github.com/fundamental/rtosc) ##Sample Usage ```julia -i::Int32 = 42; #integer -f::Float32 = 0.25; #float -s::ASCIIString = "string"; #string -b = s; #blob -h::Int64 = -125; #long integer -t::Uint64 = 22412; #timetag -d::Float64 = 0.125; #double -S::ASCIIString = "Symbol"; #symbol -c::Char = 'J'; #character -r::Int32 = 0x12345678; #RGBA -m::Array{Uint8,1} = [0x12,0x23, #midi - 0x34,0x45]; +i = Int32( 42 ); #integer +f = Float32( 0.25; ); #float +s = "string" #string +b = s; #blob +h = Int64( -125; ); #long integer +t = UInt64( 22412; ); #timetag +d = Float64( 0.125; ); #double +S = "Symbol" #symbol +c = Char( 'J' ); #character +r = Int32( 0x12345678 ); #RGBA +m = Array{UInt8,1}( [0x12,0x23, #midi + 0x34,0x45]); #true #false #nil @@ -66,7 +66,7 @@ In the first one run ```julia using OSC -sock2 = UdpSocket() +sock2 = UDPSocket() bind(sock2, ip"127.0.0.1", 7777) msg2 = OscMsg(recv(sock2)) ``` @@ -76,7 +76,7 @@ To send the an OSC message, in the second window type. ```julia using OSC -sock1 = UdpSocket() +sock1 = UDPSocket() msg1 = OSC.message("/hello world", "sSif", "strings", "symbols", 234, float32(2.3)) send(sock1, ip"127.0.0.1", 7777, msg1.data)