Simple syntax fixes to README.md

* Removed types from global variables and replaced with function calls
* Changed `UdpSocket` to `UDPSocket`
master
standarddeviant 2018-08-30 13:27:35 -04:00 committed by Mark McCurry
parent 12da81bfc6
commit b4a6cc0311
1 changed files with 14 additions and 14 deletions

View File

@ -11,18 +11,18 @@ librtosc(https://github.com/fundamental/rtosc)
##Sample Usage ##Sample Usage
```julia ```julia
i::Int32 = 42; #integer i = Int32( 42 ); #integer
f::Float32 = 0.25; #float f = Float32( 0.25; ); #float
s::ASCIIString = "string"; #string s = "string" #string
b = s; #blob b = s; #blob
h::Int64 = -125; #long integer h = Int64( -125; ); #long integer
t::Uint64 = 22412; #timetag t = UInt64( 22412; ); #timetag
d::Float64 = 0.125; #double d = Float64( 0.125; ); #double
S::ASCIIString = "Symbol"; #symbol S = "Symbol" #symbol
c::Char = 'J'; #character c = Char( 'J' ); #character
r::Int32 = 0x12345678; #RGBA r = Int32( 0x12345678 ); #RGBA
m::Array{Uint8,1} = [0x12,0x23, #midi m = Array{UInt8,1}( [0x12,0x23, #midi
0x34,0x45]; 0x34,0x45]);
#true #true
#false #false
#nil #nil
@ -66,7 +66,7 @@ In the first one run
```julia ```julia
using OSC using OSC
sock2 = UdpSocket() sock2 = UDPSocket()
bind(sock2, ip"127.0.0.1", 7777) bind(sock2, ip"127.0.0.1", 7777)
msg2 = OscMsg(recv(sock2)) msg2 = OscMsg(recv(sock2))
``` ```
@ -76,7 +76,7 @@ To send the an OSC message, in the second window type.
```julia ```julia
using OSC using OSC
sock1 = UdpSocket() sock1 = UDPSocket()
msg1 = OSC.message("/hello world", "sSif", "strings", "symbols", 234, msg1 = OSC.message("/hello world", "sSif", "strings", "symbols", 234,
float32(2.3)) float32(2.3))
send(sock1, ip"127.0.0.1", 7777, msg1.data) send(sock1, ip"127.0.0.1", 7777, msg1.data)