Plugin : MidiConvert
Author:Rex.Rainbow
- Convert MIDI into Tone.js-friendly JSON, and play it.
Download
Properties
Timescale to playbackRate
- Choose whether the playback rate changes with the time scale.
Actions
0. Load & Convert
Action:Load & Convert midi
- Load & Convert midi to JSON object.
- URL ( string ) : URL of midi file.
Configuration
Action:Set playback rate
- Set playback rate.
- Playback rate ( number ) : Playback rate to set
Control
Action:Start
- Start playing notes at the given time.
- Time ( string ) : When the note should be triggered. Time in Now-Relative("+1"), Expressions("3:0 + 2 - (1m / 7)").
Action:Stop
- Stop playing notes at the given time.
- Time ( string ) : When the note should be triggered. Time in Now-Relative("+1"), Expressions("3:0 + 2 - (1m / 7)").
Action:Pause
- Pause playing notes at the given time.
- Time ( string ) : When the note should be triggered. Time in Now-Relative("+1"), Expressions("3:0 + 2 - (1m / 7)").
Action:Resume
- Resume playing notes at the given time.
- Time ( string ) : When the note should be triggered. Time in Now-Relative("+1"), Expressions("3:0 + 2 - (1m / 7)").
Properties
Action:Set JSON
- Set properties to JSON string.
- Properties ( string ) : Properties in JSON
Property
Action:Set value
- Set property.
- Property ( string ) : Property name in dot notation
- Value ( number or string ) : Value to set
Action:Set JSON
- Set property to JSON string.
- Property ( string ) : Property name in dot notation
- JSON ( string ) : JSON value to set
Action:Set boolean
- Set property to a boolean value.
- Property ( string ) : Property name in dot notation
- Boolean ( Combo ) : Boolean value.
- Options : ["false","true"]
Expressions
Control
Expression:ElapsedTime
- Get elapsed time, in seconds.
Expression:Progress
Expression:State
- Get state in "NONE", "PLAY", "PAUSE", "IDLE".
Event
Expression:Time
- Get time of note event, in seconds.
Expression:Note
- Get note name of note event.
Expression:Duration
- Get duration between noteOn and noteOff, in note event.
Expression:Velocity
- Get velocity of note event.
Expression:Ticks
Expression:Midi
- Get midi number of note event.
Expression:TrackIndex
- Get track index of note event.
Midi
Expression:Midi2JSON
Expression:EndTime
- End time of current midi, in seconds.
Conditions
Convert
Condition:On convert completed
- Triggered when convert completed.
Condition:On convert error
- Triggered when convert error.
Note
Condition:Compare track index
- Compare track index of note event.
- Comparison ( cmp ) : Choose the way to compare the current track.
- Track index ( number ) : The track index, to compare to.
Play
Condition:On event
- Triggered when event fired.
Condition:On ended
- Triggered when playing ended.
Condition:On started
- Triggered when playing started.
Condition:Is playing