mirror of
https://github.com/vsariola/sointu.git
synced 2025-05-28 03:10:24 -04:00
feat(sointu-track): accept filename as command line parameter
Closes #122.
This commit is contained in:
parent
ca4a98eb50
commit
aec756f921
@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
### Added
|
### Added
|
||||||
|
- Passing a file name on command line immediately tries loading that file (#122)
|
||||||
- Massive rewrite of the GUI, in particular allowing better copying, pasting and
|
- Massive rewrite of the GUI, in particular allowing better copying, pasting and
|
||||||
scrolling of table-based data (order list and note data).
|
scrolling of table-based data (order list and note data).
|
||||||
- Dbgain unit, which allows defining the gain in decibels (-40 dB to +40dB)
|
- Dbgain unit, which allows defining the gain in decibels (-40 dB to +40dB)
|
||||||
|
@ -55,6 +55,13 @@ func main() {
|
|||||||
recoveryFile = filepath.Join(configDir, "Sointu", "sointu-track-recovery")
|
recoveryFile = filepath.Join(configDir, "Sointu", "sointu-track-recovery")
|
||||||
}
|
}
|
||||||
model, player := tracker.NewModelPlayer(cmd.MainSynther, recoveryFile)
|
model, player := tracker.NewModelPlayer(cmd.MainSynther, recoveryFile)
|
||||||
|
if a := flag.Args(); len(a) > 0 {
|
||||||
|
f, err := os.Open(a[0])
|
||||||
|
if err == nil {
|
||||||
|
model.ReadSong(f)
|
||||||
|
}
|
||||||
|
f.Close()
|
||||||
|
}
|
||||||
tracker := gioui.NewTracker(model)
|
tracker := gioui.NewTracker(model)
|
||||||
output := audioContext.Output()
|
output := audioContext.Output()
|
||||||
defer output.Close()
|
defer output.Close()
|
||||||
|
Loading…
Reference in New Issue
Block a user