Package samer.midi
Class MidiRecorderBase
- java.lang.Object
- 
- samer.tools.AnonymousTask
- 
- samer.tools.NamedTask
- 
- samer.midi.MidiRecorderBase
 
 
 
- 
- All Implemented Interfaces:
- Task
 - Direct Known Subclasses:
- MidiRecorder
 
 
 public abstract class MidiRecorderBase extends NamedTask - See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field and Description VIntegerT
 - 
Constructor SummaryConstructors Constructor and Description MidiRecorderBase()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidexecute(java.lang.String cmd, Environment env)voidgetCommands(Agent.Registry r)voidnoteOff(int ch, int num)voidnoteOn(int ch, int num, int vel)given 120 bpm: (120 bpm) / (60 seconds per minute) = 2 beats per second 2 / 1000 beats per millisecond (2 * resolution) ticks per second (2 * resolution)/1000 ticks per millisecond, or (resolution / 500) ticks per millisecond ticks = milliseconds * resolution / 500voidsaveMidiFile(java.io.File file)voidtick()- 
Methods inherited from class samer.tools.AnonymousTaskstarting, stopping
 
- 
 
- 
- 
- 
Constructor Detail- 
MidiRecorderBasepublic MidiRecorderBase() throws java.lang.Exception- Throws:
- java.lang.Exception
 
 
- 
 - 
Method Detail- 
getCommandspublic void getCommands(Agent.Registry r) 
 - 
executepublic void execute(java.lang.String cmd, Environment env) throws java.lang.Exception- Throws:
- java.lang.Exception
 
 - 
noteOnpublic void noteOn(int ch, int num, int vel)given 120 bpm: (120 bpm) / (60 seconds per minute) = 2 beats per second 2 / 1000 beats per millisecond (2 * resolution) ticks per second (2 * resolution)/1000 ticks per millisecond, or (resolution / 500) ticks per millisecond ticks = milliseconds * resolution / 500
 - 
noteOffpublic void noteOff(int ch, int num)
 - 
tickpublic void tick() 
 - 
saveMidiFilepublic void saveMidiFile(java.io.File file) throws java.lang.Exception- Throws:
- java.lang.Exception
 
 
- 
 
-