Skip to content

Move GUI value init  #5

@ThatOneRuffian

Description

@ThatOneRuffian

On start-up this gui.* should be moved as it interferes with the resetting and initial start of the metronome - nil pointer, etc.

func (m *metronome) StartMetronome() {

	gui.TempgoStatData.MetronomeBeatsPerMeasure.Set(fmt.Sprint(MainMetronome.beatsPerMeasure))
	gui.TempgoStatData.MetronomeCurrentBPM.Set(fmt.Sprintf("%d BPM", MainMetronome.CurrentTempo))
	gui.TempgoStatData.MetronomeBeatInterval.Set(fmt.Sprintf(" %.0fms", 60_000.0/float32(MainMetronome.CurrentTempo)))

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions