Package samer.midi
Class MidiRecorder
- java.lang.Object
-
- samer.tools.AnonymousTask
-
- samer.tools.NamedTask
-
- samer.midi.MidiRecorderBase
-
- samer.midi.MidiRecorder
-
- All Implemented Interfaces:
- Task
public class MidiRecorder extends MidiRecorderBase implements Task
Attempts to do some temporal smoothing on the imput vector. Its a bit like a median filter. A note doesn't switch on until the corresponding vector element has been above threshold forconsecutive steps, and similarly for switching off. - See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class samer.midi.MidiRecorderBase
T
-
-
Constructor Summary
Constructors Constructor and Description MidiRecorder(Vec input)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
dispose()
int
mapVelocity(double x)
void
run()
void
starting()
void
stopping()
-
Methods inherited from class samer.midi.MidiRecorderBase
execute, getCommands, noteOff, noteOn, saveMidiFile, tick
-
-
-
-
Constructor Detail
-
MidiRecorder
public MidiRecorder(Vec input) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-
Method Detail
-
mapVelocity
public int mapVelocity(double x)
-
dispose
public void dispose()
-
starting
public void starting()
- Specified by:
starting
in interfaceTask
- Overrides:
starting
in classAnonymousTask
-
stopping
public void stopping()
- Specified by:
stopping
in interfaceTask
- Overrides:
stopping
in classAnonymousTask
-
-