summaryrefslogtreecommitdiff
path: root/examples/sandbox.lua
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2024-10-12 06:14:14 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2024-10-12 06:14:14 +0200
commit39bd41ad4d4832d4022a99e3cfcc49409f8b2da6 (patch)
tree051b355fa3ea5cfcceb2b63efba0bbdf13970ee9 /examples/sandbox.lua
parent920bdc358831087c46db736120a718ed9a75fbd4 (diff)
downloadttdaw-39bd41ad4d4832d4022a99e3cfcc49409f8b2da6.tar.gz
Added basic interface and keyboard capture of terminal
Diffstat (limited to 'examples/sandbox.lua')
-rw-r--r--examples/sandbox.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/sandbox.lua b/examples/sandbox.lua
index 43c3ec7..d42eb6e 100644
--- a/examples/sandbox.lua
+++ b/examples/sandbox.lua
@@ -5,16 +5,16 @@
-- note_on(note, sf_preset, effect)
-- note_off(note)
-- delay(millisecons)
--- play_pattern(pattern_name, repeat)
+-- play_block(pattern_name, repeat)
-- Effects:
-- delay
-- reverb
--- This is a pattern definition.
+-- This is a block/pattern definition.
-- Columns go from A..F and rows go from 1..4.
-- This blocks will be visualized in the DAW.
-pattern("A1", function(self)
+block("A1", function(self)
for i = 1, 10 do
note_on(40 + i, 1, nil)
delay(10)
@@ -23,8 +23,8 @@ end)
-- This is the actual song timeline.
timeline(function(self)
- play_pattern("A1", 1)
- play_pattern("F2", 3)
- play_pattern("D4", 2)
+ play_block("A1", 1)
+ play_block("F2", 3)
+ play_block("D4", 2)
end)