metronome

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 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
y or Y : Canonical URL