Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions 7_midi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -78,26 +78,38 @@ function draw_labels()
screen.move(5,viewport.height - (line_height * 3))
screen.text('vel')
screen.move(5,viewport.height - (line_height * 4))
screen.text('value')
screen.move(5,viewport.height - (line_height * 5))
screen.text('type')
end

function draw_event(event)
local line_height = 8
screen.level(15)
screen.move(30,viewport.height - (line_height * 1))
if event.note then
screen.move(30,viewport.height - (line_height * 1))
screen.text(msg.note)
else
screen.text('-')
end
if event.ch then
screen.move(30,viewport.height - (line_height * 2))
screen.text(msg.ch)
end
screen.move(30,viewport.height - (line_height * 3))
if event.vel then
screen.move(30,viewport.height - (line_height * 3))
screen.text(msg.vel)
else
screen.text('-')
end
screen.move(30,viewport.height - (line_height * 4))
if event.val then
screen.text(msg.val)
else
screen.text('-')
end
if event.type then
screen.move(30,viewport.height - (line_height * 4))
screen.move(30,viewport.height - (line_height * 5))
screen.text(msg.type)
end
end
Expand Down