feat(sointu, tracker,...): restructure domain & tracker models

send targets are now by ID and Song has "Score" part, which is the notes for it. also, moved the model part separate of the actual gioui dependend stuff.

sorry to my future self about the code bomb; ended up too far and did not find an easy way to rewrite the history to make the steps smaller, so in the end, just squashed everything.
This commit is contained in:
vsariola
2021-02-23 23:55:42 +02:00
parent fd1d018e82
commit adcf3ebce8
155 changed files with 5520 additions and 4914 deletions

View File

@ -170,7 +170,7 @@
{{- end}}
(global.set $WRK (i32.const 4160))
(global.set $voice (i32.const 4160))
(global.set $voicesRemain (i32.const {{.Song.Patch.TotalVoices | printf "%v"}}))
(global.set $voicesRemain (i32.const {{.Song.Patch.NumVoices | printf "%v"}}))
{{- if .HasOp "delay"}}
(global.set $delayWRK (i32.const 262144)) ;; BAD IDEA: we are limited to something like 30 delay lines
;; after that, the delay lines start to overwrite the outputbuffer. Find a way to layout the memory

View File

@ -95,12 +95,12 @@
loop $stereoLoop
{{- end}}
(local.set $scaledAddress (i32.add (i32.mul (i32.and (local.get $address) (i32.const 0x7FF7)) (i32.const 4))
{{- if .SupportsParamValueOtherThan "send" "voice" 0}}
{{- if .SupportsGlobalSend}}
(select
(i32.const 4096)
{{- end}}
(global.get $voice)
{{- if .SupportsParamValueOtherThan "send" "voice" 0}}
{{- if .SupportsGlobalSend}}
(i32.and (local.get $address)(i32.const 0x8000))
)
{{- end}}