Classes
Members
- 
			
dhc :HUM.DHC
 - 
	
Description
The DHC instance
Details
 - 
			
midi :HUM.midi.MidiHub
 - 
	
Description
The MidiHub instance
Details
 - 
			
settings :Object.<string, HUM.midi.MidiOut#InstrumentSettings>
 - 
	
Description
Temporary MIDI-OUT ports settings cache; keys are the output port IDs
(a little DB where to store the user's settings about the port)Details
 - 
			
htmlMotModalContent :HTMLElement
 - 
	
Description
Get the "MIDI-OUT Tuning" HTML element and store to global
Details
 
Methods
- 
			
updatesFromDHC( msg )
 - 
	
Description
Manage and route an incoming message
Parameters
Name Type Description msgHUM.DHCmsg The incoming message
Details
 - 
			
updateMidiOutUI()
 - 
	
Description
Update the MIDI-OUT Tuning UI
Create the UI to manage the MIDI port channels assignmentDetails
 - 
			
chanSelect( event )
 - 
	
Description
What to do if a MIDI channel is selected in the MIDI-OUT PitchBend Method UI
Parameters
Name Type Description eventEvent OnClick event on the MIDI-OUT PitchBend Method channel checkboxes
Name Type Description targetObject The event's target HTML element (could be just a namespace)
Name Type Description valueChanAssignment JSON string containing the informations about the assignment of the channel
Details
 - 
			
allNotesOff( mode )
 - 
	
Description
Try turning off all currently instruments' playing notes across all output used MIDI ports.
Parameters
Name Type Description mode'soft' | 'hard' The way the command must be executed
Details
 - 
			
allNotesOffPort( portID, mode )
 - 
	
Description
Try turning off all currently instruments' playing notes on the given MIDI Channel.
Parameters
Name Type Description portIDstring The MIDI output Port id
mode'soft' | 'hard' The way the command must be executed
Details
 - 
			
allNotesOffChannel( portID, channel, mode )
 - 
	
Description
Try turning off all currently instruments' playing notes on the given MIDI Channel.
Parameters
Name Type Description portIDstring The MIDI output Port id
channelmidichan The Channel on that MIDI Port
mode'soft' | 'hard' The way the command must be executed
Details
 - 
			
sendMIDIoutPBrange( portID, type )
 - 
	
Description
Send the MIDI Pitch Bend Sensitivity (range) message over all the ports of a given Tone Type and MIDI Port
Parameters
Name Type Description portIDstring The MIDI-OUT port on which to send the message
typetonetype If the ports to which the message should be sent are assigned to FTs or HTs
Details
 - 
			
makeMIDIoutNoteMsg( ch, state, note, velocity ) → {Array}
 - 
	
Description
Create a MIDI Note ON/OFF message
Parameters
Name Type Description chmidichan MIDI Channel to which the message should be sent
state0 | 1 Note ON or OFF; 1 is Note-ON, 0 is Note-OFF
notemidinnum MIDI Note number (from 0 to 127)
velocityvelocity MIDI Velocity amount (from 0 to 127)
Returns
Details
 - 
			
makeMIDIoutPitchBendMsg( ch, amount ) → {Array}
 - 
	
Description
Create a MIDI Pitch Bend Change message
Parameters
Name Type Description chmidichan MIDI Channel to which the message should be sent (from 0 to 15)
amountnumber Pitch Bend amount (from 0 to 16383)
Returns
Details
 - 
			
updateMIDInoteON( type )
 - 
	
Description
Update the frequency of every sill pending Note-ON
Parameters
Name Type Description typetonetype If the notes/channels to be updated are the FT or HT ones.
Details
 - 
			
midiOut( ctrlNum, xtNum, velocity, state, type [, tsnap ] )
 - 
	
Description
For each selected MIDI-OUT Port,
prepare and send the MIDI-OUT message according to the selected MIDI-OUT Tuning Method of the portParameters
Name Type Attributes Default Description ctrlNummidinnum MIDI Note number of the original MIDI-IN message from the controller
xtNumxtnum Outgoing FT or HT relative tone number
velocityvelocity MIDI Velocity amount (from 0 to 127) of the original MIDI-IN message from the controller
state0 | 1 Note ON or OFF; 1 is Note-ON, 0 is Note-OFF
typetonetype If the outgoing MIDI message is for FTs or HTs
tsnapboolean <optional> false If the note is managed by Tsnap
Details
 - 
			
sendMIDIoutPB( ctrlNum, xt, xtObj, velocity, state, type, portID [, tsnap ] )
 - 
	
Description
MIDI-OUT Tuning - PITCHBEND METHOD core
The main function to manage the multichannel poly-assignment and send the MIDI messages
This is to implement the "MIDI Channel Mode 4" aka "Guitar Mode" for outgoing messagesParameters
Name Type Attributes Default Description ctrlNummidinnum MIDI Note number of the original MIDI-IN message from the controller
xtxtnum Outgoing FT or HT relative tone number
xtObjHUM.DHC#Xtone FT or HT object of the outgoing tone
velocityvelocity MIDI Velocity amount (from 0 to 127) of the original MIDI-IN message from the controller
state0 | 1 Note ON or OFF; 1 is Note-ON, 0 is Note-OFF
typetonetype If the outgoing MIDI message is for FTs or HTs
portIDstring ID of the MIDI-OUT Port to send the message to
tsnapboolean <optional> false If the note is managed by Tsnap
Details