-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* delete unused crow file * initASL added * prematurely bump version * add boilerplate apiary * add boilerpalte nb mixin * remove duplicate condition * unignore dev for now * more boilerplate + get comfy for developing together * nb first steps * change periods to colons * test commit * broken: the nb_mixins need to be combined * update displayed voice when changing NB VOICE * made apiary glyph big and small * -- * -- * -- * refactor * refactor nb directory to only have lib * update doc entry * apiary animation v1 * swap voice and select in menu for visibility * fixed nb voice menu display bug * count nb voices manually during init * added normalize velocity param for apiary * fourth row into structures popup * page indicator line 2px shorter * remove dev scene --------- Co-authored-by: Tyler Etters <[email protected]>
- Loading branch information
1 parent
1c69c3e
commit 2edbdc9
Showing
19 changed files
with
822 additions
and
154 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,3 @@ | |
.DS_Store | ||
.fuse* | ||
lib/config_.lua | ||
lib/dev.lua |
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,246 @@ | ||
local dev = {} | ||
|
||
function rerun(option) | ||
if option == 1 then | ||
print("option 1") | ||
end | ||
norns.script.load(norns.state.script) | ||
end | ||
|
||
function r() | ||
rerun() | ||
end | ||
|
||
function dev:scene(i) | ||
|
||
if i == 1 then | ||
page:select(2) | ||
menu:select_item(4) | ||
keeper:select_cell(8, 4) | ||
keeper.selected_cell:open_port("w") | ||
keeper:select_cell(4, 4) | ||
keeper.selected_cell:change("APIARY") | ||
keeper.selected_cell:open_port("n") | ||
keeper.selected_cell:open_port("e") | ||
keeper.selected_cell:open_port("s") | ||
keeper.selected_cell:open_port("w") | ||
-- keeper:deselect_cell() | ||
-- test commit comment | ||
|
||
elseif i == 2 then | ||
sound:set_random_root() | ||
sound:set_random_scale() | ||
keeper:select_cell(4, 1) | ||
keeper.selected_cell:open_port("s") | ||
keeper:select_cell(4, 4) | ||
keeper.selected_cell:change("AVIARY") | ||
keeper.selected_cell:open_port("n") | ||
-- keeper.selected_cell:open_port("e") | ||
-- keeper.selected_cell:open_port("s") | ||
-- keeper.selected_cell:open_port("w") | ||
-- keeper.selected_cell:set_state_index(1) | ||
page:select(2) | ||
menu:select_item(1) | ||
-- keeper:deselect_cell() | ||
counters:toggle_playback() | ||
|
||
elseif i == 3 then | ||
-- fn.seed_cells() | ||
counters:toggle_playback() | ||
keeper:select_cell(1, 1) | ||
keeper.selected_cell:open_port("e") | ||
keeper.selected_cell:open_port("w") | ||
keeper:deselect_cell() | ||
keeper:select_cell(4, 1) | ||
keeper.selected_cell:set_metabolism(1) | ||
keeper.selected_cell:change("SOLARIUM") | ||
keeper.selected_cell:open_port("e") | ||
keeper.selected_cell:open_port("w") | ||
|
||
page:select(2) | ||
|
||
|
||
|
||
|
||
elseif i == 4 then | ||
-- fn.seed_cells() | ||
-- params:set("seed", 4) | ||
-- fn.seed_cells() | ||
page:select(4) | ||
|
||
elseif i == 10 then | ||
-- ode to joy | ||
sound:set_scale(47) | ||
page:select(2) | ||
keeper:select_cell(1, 4) | ||
keeper.selected_cell:open_port("e") | ||
keeper.selected_cell:set_metabolism(16) | ||
|
||
keeper:select_cell(5, 4) | ||
keeper.selected_cell:open_port("n") | ||
keeper.selected_cell:open_port("w") | ||
keeper.selected_cell:open_port("e") | ||
keeper.selected_cell:change("SHRINE") | ||
keeper.selected_cell:set_note(65) -- yeah these are very wrong | ||
|
||
|
||
keeper:select_cell(6, 4) | ||
keeper.selected_cell:open_port("n") | ||
keeper.selected_cell:open_port("w") | ||
keeper.selected_cell:open_port("e") | ||
keeper.selected_cell:change("SHRINE") | ||
keeper.selected_cell:set_note(65) -- yeah these are very wrong | ||
|
||
keeper:select_cell(7, 4) | ||
keeper.selected_cell:open_port("n") | ||
keeper.selected_cell:open_port("w") | ||
keeper.selected_cell:open_port("e") | ||
keeper.selected_cell:change("SHRINE") | ||
keeper.selected_cell:set_note(66) -- yeah these are very wrong | ||
|
||
keeper:select_cell(8, 4) | ||
keeper.selected_cell:open_port("n") | ||
keeper.selected_cell:open_port("w") | ||
keeper.selected_cell:open_port("e") | ||
keeper.selected_cell:change("SHRINE") | ||
keeper.selected_cell:set_note(68) -- yeah these are very wrong | ||
|
||
keeper:select_cell(9, 4) | ||
keeper.selected_cell:open_port("n") | ||
keeper.selected_cell:open_port("w") | ||
keeper.selected_cell:open_port("e") | ||
keeper.selected_cell:change("SHRINE") | ||
keeper.selected_cell:set_note(68) -- yeah these are very wrong | ||
|
||
keeper:select_cell(10, 4) | ||
keeper.selected_cell:open_port("n") | ||
keeper.selected_cell:open_port("w") | ||
keeper.selected_cell:open_port("e") | ||
keeper.selected_cell:change("SHRINE") | ||
keeper.selected_cell:set_note(66) -- yeah these are very wrong | ||
|
||
keeper:select_cell(11, 4) | ||
keeper.selected_cell:open_port("n") | ||
keeper.selected_cell:open_port("w") | ||
keeper.selected_cell:open_port("e") | ||
keeper.selected_cell:change("SHRINE") | ||
keeper.selected_cell:set_note(65) -- yeah these are very wrong | ||
|
||
keeper:select_cell(12, 4) | ||
keeper.selected_cell:open_port("n") | ||
keeper.selected_cell:open_port("w") | ||
keeper.selected_cell:open_port("s") | ||
keeper.selected_cell:change("SHRINE") | ||
keeper.selected_cell:set_note(63) -- yeah these are very wrong | ||
|
||
keeper:select_cell(12, 5) | ||
keeper.selected_cell:open_port("n") | ||
keeper.selected_cell:open_port("w") | ||
keeper.selected_cell:open_port("s") | ||
keeper.selected_cell:change("SHRINE") | ||
keeper.selected_cell:set_note(61) -- yeah these are very wrong | ||
|
||
keeper:select_cell(11, 5) | ||
keeper.selected_cell:open_port("w") | ||
keeper.selected_cell:open_port("e") | ||
keeper.selected_cell:open_port("s") | ||
keeper.selected_cell:change("SHRINE") | ||
keeper.selected_cell:set_note(61) -- yeah these are very wrong | ||
|
||
keeper:select_cell(10, 5) | ||
keeper.selected_cell:open_port("w") | ||
keeper.selected_cell:open_port("e") | ||
keeper.selected_cell:open_port("s") | ||
keeper.selected_cell:change("SHRINE") | ||
keeper.selected_cell:set_note(63) -- yeah these are very wrong | ||
|
||
keeper:select_cell(9, 5) | ||
keeper.selected_cell:open_port("w") | ||
keeper.selected_cell:open_port("e") | ||
keeper.selected_cell:open_port("s") | ||
keeper.selected_cell:change("SHRINE") | ||
keeper.selected_cell:set_note(65) -- yeah these are very wrong | ||
|
||
keeper:select_cell(8, 5) | ||
keeper.selected_cell:open_port("w") | ||
keeper.selected_cell:open_port("e") | ||
keeper.selected_cell:open_port("s") | ||
keeper.selected_cell:change("SHRINE") | ||
keeper.selected_cell:set_note(65) -- yeah these are very wrong | ||
|
||
keeper:select_cell(7, 5) | ||
keeper.selected_cell:open_port("w") | ||
keeper.selected_cell:open_port("e") | ||
keeper.selected_cell:open_port("s") | ||
keeper.selected_cell:change("SHRINE") | ||
keeper.selected_cell:set_note(63) -- yeah these are very wrong | ||
|
||
keeper:select_cell(6, 5) | ||
keeper.selected_cell:open_port("w") | ||
keeper.selected_cell:open_port("e") | ||
keeper.selected_cell:open_port("s") | ||
keeper.selected_cell:change("SHRINE") | ||
keeper.selected_cell:set_note(63) -- yeah these are very wrong | ||
|
||
keeper:deselect_cell() | ||
|
||
|
||
else | ||
print('else block') | ||
|
||
end | ||
end | ||
|
||
|
||
order = 0 | ||
|
||
-- thank you @dndrks | ||
function screenshot() | ||
--_norns.screen_export_png("/home/we/"..menu.."-"..os.time()..".png") | ||
local which_screen = string.match(string.match(string.match(norns.state.script,"/home/we/dust/code/(.*)"),"/(.*)"),"(.+).lua") | ||
_norns.screen_export_png("/home/we/dust/".. order .. "-" .. which_screen .. "-" .. os.time() .. ".png") | ||
order = order + 1 | ||
end | ||
|
||
function wtfscale() | ||
for i = 1, #sound.scale_notes do | ||
print(sound.scale_notes[i], mu.note_num_to_name(sound.scale_notes[i])) | ||
end | ||
end | ||
|
||
function kc() | ||
return keeper.selected_cell | ||
end | ||
|
||
function arcdebug() | ||
print(" ") | ||
print(" ") | ||
print(" ") | ||
print("start arcologies debug -------------------------------") | ||
print(" ") | ||
print("generated at: " .. os.date("%Y_%m_%d_%H_%M_%S") .. " / " .. os.time()) | ||
print("version: " .. fn.get_arcology_version()) | ||
print("root: " .. sound.root) | ||
print("scale: " .. sound.scale_name) | ||
print("cell count: " .. #keeper.cells) | ||
print("signal count: " .. #keeper.signals) | ||
print(" ") | ||
print("cell census:") | ||
for k,cell in pairs(keeper.cells) do | ||
local coords = "x" .. cell.x .. "y" .. cell.y | ||
print(coords, cell.id, cell.structure_value) | ||
end | ||
print(" ") | ||
print("signal census:") | ||
for k,signal in pairs(keeper.signals) do | ||
local coords = "x" .. signal.x .. "y" .. signal.y | ||
print(coords, signal.id, signal.heading) | ||
end | ||
print(" ") | ||
print("end arcologies debug -------------------------------") | ||
print(" ") | ||
print(" ") | ||
print(" ") | ||
end | ||
|
||
return dev |
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
Oops, something went wrong.