mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-18 21:14:31 -04:00
feat(sointu, tracker, gioui): add a comment field to the instrument
This commit is contained in:
@ -171,6 +171,14 @@ func (m *Model) SetInstrumentName(name string) {
|
||||
m.song.Patch[m.instrIndex].Name = name
|
||||
}
|
||||
|
||||
func (m *Model) SetInstrumentComment(comment string) {
|
||||
if m.Instrument().Comment == comment {
|
||||
return
|
||||
}
|
||||
m.saveUndo("SetInstrumentComment", 10)
|
||||
m.song.Patch[m.instrIndex].Comment = comment
|
||||
}
|
||||
|
||||
func (m *Model) SetBPM(value int) {
|
||||
if value < 1 {
|
||||
value = 1
|
||||
|
Reference in New Issue
Block a user