class Renoise::Core

Public Class Methods

new(host, port) click to toggle source
# File lib/renoise/core.rb, line 8
def initialize(host, port)
  @renoise = OSC::Client.new(host, port)
  self.bpm = 120
  seq_init
end

Public Instance Methods

bpm=(bpm) click to toggle source
# File lib/renoise/core.rb, line 14
def bpm=(bpm)
  send_msg "/renoise/song/bpm", bpm
  @bpm = bpm
end
note_off(instr, track, note) click to toggle source
# File lib/renoise/core.rb, line 27
def note_off(instr, track, note)
  send_msg "/renoise/trigger/note_off", instr, track, note
end
note_on(instr, track, note, val) click to toggle source
# File lib/renoise/core.rb, line 23
def note_on(instr, track, note, val)
  send_msg "/renoise/trigger/note_on", instr, track, note, val
end
panic() click to toggle source
# File lib/renoise/core.rb, line 19
def panic
  send_msg "/renoise/transport/panic"
end

Private Instance Methods

send_msg(*args) click to toggle source
# File lib/renoise/core.rb, line 33
def send_msg(*args)
  @renoise.send(OSC::Message.new(*args))
end