diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/sandbox.lua | 12 |
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 @@ | |||
| 5 | -- note_on(note, sf_preset, effect) | 5 | -- note_on(note, sf_preset, effect) |
| 6 | -- note_off(note) | 6 | -- note_off(note) |
| 7 | -- delay(millisecons) | 7 | -- delay(millisecons) |
| 8 | -- play_pattern(pattern_name, repeat) | 8 | -- play_block(pattern_name, repeat) |
| 9 | 9 | ||
| 10 | -- Effects: | 10 | -- Effects: |
| 11 | -- delay | 11 | -- delay |
| 12 | -- reverb | 12 | -- reverb |
| 13 | 13 | ||
| 14 | -- This is a pattern definition. | 14 | -- This is a block/pattern definition. |
| 15 | -- Columns go from A..F and rows go from 1..4. | 15 | -- Columns go from A..F and rows go from 1..4. |
| 16 | -- This blocks will be visualized in the DAW. | 16 | -- This blocks will be visualized in the DAW. |
| 17 | pattern("A1", function(self) | 17 | block("A1", function(self) |
| 18 | for i = 1, 10 do | 18 | for i = 1, 10 do |
| 19 | note_on(40 + i, 1, nil) | 19 | note_on(40 + i, 1, nil) |
| 20 | delay(10) | 20 | delay(10) |
| @@ -23,8 +23,8 @@ end) | |||
| 23 | 23 | ||
| 24 | -- This is the actual song timeline. | 24 | -- This is the actual song timeline. |
| 25 | timeline(function(self) | 25 | timeline(function(self) |
| 26 | play_pattern("A1", 1) | 26 | play_block("A1", 1) |
| 27 | play_pattern("F2", 3) | 27 | play_block("F2", 3) |
| 28 | play_pattern("D4", 2) | 28 | play_block("D4", 2) |
| 29 | end) | 29 | end) |
| 30 | 30 | ||
