to_aftertouch

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Action

func Action(valuer midiline.Valuer) midiline.Action

Action converts a message to a after touch message if the Condition of the valuer is met.

Example:

// To get an action that converts MIDI notes to after touch messages, use
var act = Action(value.NoteKey)

func ActionScale

func ActionScale(valuer midiline.Valuer, scaler func(uint8) uint8) midiline.Action

ActionScale is like Action but allows a scaler function to calculate the after touch value from the valuer value.

Example:

// To get an action that converts MIDI note 64 to an aftertouch 4 message, use
var act = ActionScale(value.NoteKey, func (in uint8) (out uint8){ return in-60 })

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL