class PM::TriggerWindow
Public Class Methods
new(rows, cols, row, col)
click to toggle source
Calls superclass method
PM::PmWindow::new
# File lib/patchmaster/curses/trigger_window.rb, line 8 def initialize(rows, cols, row, col) super(rows, cols, row, col, nil) @title = 'Triggers ' end
Public Instance Methods
draw()
click to toggle source
Calls superclass method
PM::PmWindow#draw
# File lib/patchmaster/curses/trigger_window.rb, line 13 def draw super pm = PM::PatchMaster.instance i = 0 pm.inputs.each do |instrument| instrument.triggers.each do |trigger| if i < visible_height @win.setpos(i+1, 1) @win.addstr(make_fit(":#{instrument.sym} #{trigger.to_s}")) end i += 1 end end end