Class: SonicPiOSCServer

SonicPiOSCServer(ip, port, spider_ip, spider_port)

A class used to receive messages from the Sonic Pi server.

Constructor

new SonicPiOSCServer(ip, port, spider_ip, spider_port)

Creates an instance of the SonicPiOSCServer Class

Parameters:
Name Type Description
ip string

the IP address of this OSC server

port number

the port to listen on

spider_ip string

the IP address of the Sonic Pi server

spider_port number

the port to send acknowledgements to

Source:

Events

ack

Emitted when the Sonic Pi server acknowledges a message.

Type:
  • object
Properties:
Name Type Description
id object
Source:

error

Runtime/syntax errors

Type:
  • object
Properties:
Name Type Description
type string

Either runtime_error or syntax_error

job_id number
message string
line_number number
line_number_string string

Syntax errors only

line_string string

Syntax errors only

backtrace string

Runtime errors only

Source:

exited

Emitted when the Sonic Pi server exits.

Source:

log

Logging

Type:
  • object
Properties:
Name Type Description
type string

info, error or multi_message

message_info Array.<object>

Varies depending on the type

Source: