mirror of
https://github.com/vsariola/sointu.git
synced 2026-02-13 11:43:19 -05:00
feat: input midi velocity into a separate track (includes many structural changes)
This commit is contained in:
@ -10,6 +10,9 @@ var iconCache = map[*byte]*widget.Icon{}
|
||||
|
||||
// widgetForIcon returns a widget for IconVG data, but caching the results
|
||||
func widgetForIcon(icon []byte) *widget.Icon {
|
||||
if icon == nil {
|
||||
return nil
|
||||
}
|
||||
if widget, ok := iconCache[&icon[0]]; ok {
|
||||
return widget
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user