to_pitchbend

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, scaler func(uint8) int16) midiline.Action

Transform converts the given valuer to a pitch bend message if the given matcher matches.

Example:

// To get a transformer that converts MIDI notes on channel2 to pitch bend messages of the double value of the key, use
var m = midiline.And(typ.Channel2,message.NoteKey(64,false))
var t = Transform(m, value.NoteKey, func (in uint8) (out int16){ return int16(in)*2 })

Types

This section is empty.

Jump to

Keyboard shortcuts

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