Last active
February 2, 2019 22:48
-
-
Save tehn/c630b95a452b4899377a13d3513271ab to your computer and use it in GitHub Desktop.
loom diff, old vs. 2.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
we@norns:~/dust/mark_eats $ diff ~/dust-old/scripts/mark_eats/loom.lua loom.lua | |
28,29c28,29 | |
< local MusicUtil = require "mark_eats/musicutil" | |
< local UI = require "mark_eats/ui" | |
--- | |
> local MusicUtil = require "musicutil" | |
> local UI = require "ui" | |
31c31 | |
< local MollyThePoly = require "mark_eats/mollythepoly" | |
--- | |
> local MollyThePoly = require "mollythepoly" | |
220c220 | |
< midi_out_device.note_on(note_num, note_midi_vel, midi_out_channel) | |
--- | |
> midi_out_device:note_on(note_num, note_midi_vel, midi_out_channel) | |
236c236 | |
< midi_out_device.note_off(note_num, nil, midi_out_channel) | |
--- | |
> midi_out_device:note_off(note_num, nil, midi_out_channel) | |
249c249 | |
< midi_out_device.note_off(a, 96, midi_out_channel) | |
--- | |
> midi_out_device:note_off(a, 96, midi_out_channel) | |
415,416c415,416 | |
< grid_w = grid_device.cols() | |
< grid_h = grid_device.rows() | |
--- | |
> grid_w = grid_device.cols | |
> grid_h = grid_device.rows | |
856c856 | |
< grid_device.event = grid_event | |
--- | |
> grid_device.key = grid_event | |
882,883c882,883 | |
< local screen_refresh_metro = metro.alloc() | |
< screen_refresh_metro.callback = function() | |
--- | |
> local screen_refresh_metro = metro.init() | |
> screen_refresh_metro.event = function() | |
891,892c891,892 | |
< local grid_redraw_metro = metro.alloc() | |
< grid_redraw_metro.callback = function() | |
--- | |
> local grid_redraw_metro = metro.init() | |
> grid_redraw_metro.event = function() | |
894c894 | |
< if grid_dirty and grid_device.attached() then | |
--- | |
> if grid_dirty then | |
905,907c905,907 | |
< grid_device.all(0) | |
< grid_device.refresh() | |
< grid_device:reconnect(value) | |
--- | |
> grid_device = grid.connect(value) | |
> grid_device:all(0) | |
> grid_device:refresh() | |
914c914 | |
< midi_out_device:reconnect(value) | |
--- | |
> midi_out_device = midi.connect(value) | |
930c930 | |
< midi_in_device:reconnect(value) | |
--- | |
> midi_in_device = midi.connect(value) | |
1066c1066 | |
< grid_device.led(x, y, grid_leds[x][y]) | |
--- | |
> grid_device:led(x, y, grid_leds[x][y]) | |
1069c1069 | |
< grid_device.refresh() | |
--- | |
> grid_device:refresh() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment