mirror of
https://github.com/vsariola/sointu.git
synced 2025-05-28 03:10:24 -04:00
forever looping
This commit is contained in:
parent
451b638af2
commit
1512396899
@ -825,16 +825,23 @@
|
||||
(global.set $sample (i32.const 0))
|
||||
(global.set $row (i32.add (global.get $row) (i32.const 1)))
|
||||
)
|
||||
)
|
||||
(if (i32.eq (global.get $row) (i32.const {{.PatternLength}}))
|
||||
( then
|
||||
(global.set $row (i32.const 0))
|
||||
(global.set $pattern (i32.add (global.get $pattern) (i32.const 1)))
|
||||
)
|
||||
)
|
||||
(local.set $rendersamplecount (i32.add (local.get $rendersamplecount) (i32.const 1)))
|
||||
(if (i32.eq (global.get $pattern) (i32.const {{.SequenceLength}}))
|
||||
( then
|
||||
(global.set $pattern (i32.const 0))
|
||||
(global.set $globaltick (i32.const 0))
|
||||
(global.set $outputBufPtr (i32.const {{index .Labels "su_outputbuffer"}}))
|
||||
)
|
||||
)
|
||||
(local.set $rendersamplecount (i32.add (local.get $rendersamplecount) (i32.const 1)))
|
||||
(br_if $sample_loop (i32.lt_s (local.get $rendersamplecount) (i32.const 128)))
|
||||
)
|
||||
(if $row_loop (i32.eq (global.get $row) (i32.const {{.PatternLength}}))
|
||||
( then
|
||||
(global.set $row (i32.const 0))
|
||||
(global.set $pattern (i32.add (global.get $pattern) (i32.const 1)))
|
||||
)
|
||||
)
|
||||
)
|
||||
(export "render_128_samples" (func $render_128_samples))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user