metronome

package
Version: v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2021 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetTempo

func SetTempo(srcFile, destFile string, opts ...Option) error

SetTempo reads the given srcFile and takes the note on messages inside the nth track (with the numer metronomeTrackNo, counting by 0) as beats of a metronome, calculates tempo changes based on the beats of the metronome and removes all old tempo changes, and writes the new tempo changes into the metronome track. The resulting smf file is written to destFile.

Types

type Option

type Option func(*file)

func Filter

func Filter(md filter.Filter) Option

Filter sets the filter for the metronome messages

func Track added in v0.0.4

func Track(trackNo int16) Option

Track sets the track no, where the metronome resides, starting by 0

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL