Groovy Documentation

groovy.aprint.midi
[Groovy] Class MidiTransformHelper

java.lang.Object
  groovy.aprint.midi.MidiTransformHelper

class MidiTransformHelper
extends java.lang.Object

Helper class for transforming the midi files, by track associations

Authors:
pfreydiere


Constructor Summary
MidiTransformHelper(org.barrelorgandiscovery.scale.Scale s, org.barrelorgandiscovery.virtualbook.transformation.importer.MidiEventGroup eg)

Constructor with scale and midi event group

MidiTransformHelper(ScaleHelper sh, org.barrelorgandiscovery.virtualbook.transformation.importer.MidiEventGroup eg)

Constructor with the midi helper and event group

 
Method Summary
org.barrelorgandiscovery.virtualbook.transformation.importer.MidiConversionResult doConvert()

Launch the midi transform ...

MidiTransformHelper map(Note[] notes, Track[] tracks)

Define association between notes from the midi file, into tracks associated to the scale

MidiTransformHelper map(Note n, Track t)

Map a midi not with the track passed in parameter, if one parameter is null an exception is raised.

MidiTransformHelper map(Drum d, Track t)

Map a drum on a track, the drum must be on canal 10 (9) the mapped drum associate the discharge effect on the book

MidiTransformHelper map(java.util.Map assoc)

@return

Parameters:
assoc, - a hash containing a "notes" key associated with an array of notes, and a "tracks" keys associated to an array of track

MidiTransformHelper mapDrum(Note n, Track t)

Map a midi note not in channel 9, but handled for percussions, if one parameter is null an exception is raised.

MidiTransformHelper mergeWith(MidiTransformHelper t)

Merge the transformation with the transform passed in parameter

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Constructor Detail

MidiTransformHelper

MidiTransformHelper(org.barrelorgandiscovery.scale.Scale s, org.barrelorgandiscovery.virtualbook.transformation.importer.MidiEventGroup eg)
Constructor with scale and midi event group
Parameters:
s
eg


MidiTransformHelper

MidiTransformHelper(ScaleHelper sh, org.barrelorgandiscovery.virtualbook.transformation.importer.MidiEventGroup eg)
Constructor with the midi helper and event group
Parameters:
sh
eg


 
Method Detail

doConvert

org.barrelorgandiscovery.virtualbook.transformation.importer.MidiConversionResult doConvert()
Launch the midi transform ...
Returns:
the conversion result, with errors


map

MidiTransformHelper map(Note[] notes, Track[] tracks)
Define association between notes from the midi file, into tracks associated to the scale
Returns:
Parameters:
notes
tracks


map

MidiTransformHelper map(Note n, Track t)
Map a midi not with the track passed in parameter, if one parameter is null an exception is raised.
Returns:
the current element for cascading operations
Parameters:
n - the note
t - the track to associate to


map

MidiTransformHelper map(Drum d, Track t)
Map a drum on a track, the drum must be on canal 10 (9) the mapped drum associate the discharge effect on the book
Returns:
Parameters:
d - the drum definition
t


map

MidiTransformHelper map(java.util.Map assoc)
Returns:
Parameters:
assoc, - a hash containing a "notes" key associated with an array of notes, and a "tracks" keys associated to an array of track


mapDrum

MidiTransformHelper mapDrum(Note n, Track t)
Map a midi note not in channel 9, but handled for percussions, if one parameter is null an exception is raised.
Returns:
the current element for cascading operations
Parameters:
n - the note
t - the track to associate to


mergeWith

MidiTransformHelper mergeWith(MidiTransformHelper t)
Merge the transformation with the transform passed in parameter
Returns:
the current transformation
Parameters:
t


 

Groovy Documentation