MCPcopy Create free account

hub / github.com/Tonejs/Midi / functions

Functions74 in github.com/Tonejs/Midi

↓ 16 callersMethodaddNote
* Add a note to the notes array. * @param props The note properties to add.
src/Track.ts:158
↓ 8 callersMethodtoJSON
* Convert the MIDI object to JSON.
src/Midi.ts:136
↓ 7 callersMethodaddTrack
* Add a track to the MIDI file.
src/Midi.ts:119
↓ 7 callersMethodupdate
* This must be invoked after any changes are made to the tempo array * or the timeSignature array for the updated values to be reflected.
src/Header.ts:169
↓ 6 callersMethodticksToMeasures
* Convert ticks into measures based off of the time signatures.
src/Header.ts:227
↓ 5 callersMethodticksToSeconds
* Convert ticks into seconds based on the tempo changes.
src/Header.ts:207
↓ 4 callersFunctionsearch
(array: any[], value: any, prop = "ticks")
src/BinarySearch.ts:5
↓ 4 callersMethodsecondsToTicks
* Convert seconds to ticks based on the tempo events.
src/Header.ts:253
↓ 3 callersMethodaddCC
* Add a control change to the track. * @param props
src/Track.ts:182
↓ 3 callersMethodaddPitchBend
* Add a control change to the track.
src/Track.ts:206
↓ 3 callersMethodfromJSON
* Parse a JSON representation of the object. Will overwrite the current * tracks and header.
src/Midi.ts:147
↓ 3 callersFunctioninsert
(array: any[], event: object, prop = "ticks")
src/BinarySearch.ts:44
↓ 2 callersFunctionbeatsToMeasures
(beats: number, timeSignature: number[])
src/Header.ts:326
↓ 2 callersMethodclone
* Clone the entire object MIDI object.
src/Midi.ts:161
↓ 2 callersMethodfromUrl
* Download and parse the MIDI file. Returns a promise * which resolves to the generated MIDI file. * @param url The URL to fetch.
src/Midi.ts:22
↓ 2 callersFunctionmidiToPitchClass
* Convert a MIDI note to a pitch class (just the pitch no octave).
src/Note.ts:14
↓ 2 callersMethodtoArray
* Encode the MIDI as a Uint8Array.
src/Midi.ts:129
↓ 1 callersFunctioncreateControlChanges
()
src/ControlChanges.ts:18
↓ 1 callersFunctionencode
(midi: Midi)
src/Encode.ts:169
↓ 1 callersFunctionencodeControlChange
( cc: ControlChange, channel: number )
src/Encode.ts:49
↓ 1 callersFunctionencodeControlChanges
(track: Track)
src/Encode.ts:63
↓ 1 callersFunctionencodeInstrument
(track: Track)
src/Encode.ts:96
↓ 1 callersFunctionencodeKeySignature
(keySig: KeySignatureEvent)
src/Encode.ts:141
↓ 1 callersFunctionencodeNote
(note: Note, channel: number)
src/Encode.ts:23
↓ 1 callersFunctionencodeNotes
(track: Track)
src/Encode.ts:45
↓ 1 callersFunctionencodePitchBend
( pb: PitchBend, channel: number )
src/Encode.ts:75
↓ 1 callersFunctionencodePitchBends
(track: Track)
src/Encode.ts:88
↓ 1 callersFunctionencodeTempo
(tempo: TempoEvent)
src/Encode.ts:116
↓ 1 callersFunctionencodeText
( textEvent: (MetaEvent & { ticks: number; }) )
src/Encode.ts:154
↓ 1 callersFunctionencodeTimeSignature
(timeSig: TimeSignatureEvent)
src/Encode.ts:126
↓ 1 callersFunctionencodeTrackName
(name: string)
src/Encode.ts:106
↓ 1 callersMethodfromJSON
* Assign the JSON values to this track.
src/Track.ts:264
↓ 1 callersFunctionmidiToPitch
* Convert a MIDI note into a pitch.
src/Note.ts:6
↓ 1 callersFunctionparseGroundTruth
(path)
test/Compare.ts:8
↓ 1 callersFunctionparse_file
(filename)
test/midi/parse_midi.py:9
↓ 1 callersFunctionpitchClassToMidi
* Convert a pitch class to a MIDI note.
src/Note.ts:23
↓ 1 callersMethodsetTempo
* Update the tempo of the midi to a single tempo. Will remove and replace * any other tempos currently set and update all of the event timing. * @
src/Header.ts:315
↓ 1 callersFunctionsplitTracks
* Given a list of MIDI tracks, make sure that each channel corresponds to at * most one channel and at most one instrument. This means splitting up t
src/Midi.ts:185
Methodbars
* The number of measures (and partial measures) to this beat. * Takes into account time signature changes. * @readonly
src/Note.ts:166
Methodconstructor
* @param event * @param header
src/ControlChange.ts:76
Methodconstructor
(midiData?: MidiData)
src/Header.ts:99
Methodconstructor
* @param trackData * @param track
src/Instrument.ts:28
Methodconstructor
* Parse the midi data
src/Midi.ts:45
Methodconstructor
(trackData: MidiEvent[], header: Header)
src/Track.ts:63
Methodconstructor
(noteOn: NoteOnEvent, noteOff: NoteOffEvent, header: Header)
src/Note.ts:86
Methodconstructor
* @param event * @param header
src/PitchBend.ts:25
Methodduration
* The total length of the file in seconds.
src/Midi.ts:101
Methodduration
* The end time of the last event in the track.
src/Track.ts:221
Methodduration
* The duration of the segment in seconds.
src/Note.ts:137
MethoddurationTicks
* The total length of the file in ticks.
src/Midi.ts:110
MethoddurationTicks
* The end time of the last event in the track in ticks.
src/Track.ts:243
Methodfamily
* The instrument family, e.g. "piano".
src/Instrument.ts:65
MethodfromJSON
* Parse a header json object.
src/Header.ts:293
MethodfromJSON
* Convert from JSON form.
src/Instrument.ts:95
Functionget
(target, handler)
src/ControlChanges.ts:21
Methodname
* return the common name of the control number if it exists
src/ControlChange.ts:94
Methodname
* The common name of the instrument.
src/Instrument.ts:47
Methodname
* The name of the midi file, taken from the first track.
src/Midi.ts:90
Methodname
* The note name and octave in scientific pitch notation, e.g. "C4".
src/Note.ts:103
Methodnumber
* The controller number
src/ControlChange.ts:87
Methodoctave
* The notes octave number.
src/Note.ts:114
Methodpercussion
* If the instrument is a percussion instrument.
src/Instrument.ts:76
Methodpitch
* The pitch class name. e.g. "A".
src/Note.ts:126
Methodppq
* The number of ticks per quarter note.
src/Header.ts:246
Functionset
(target, handler, value)
src/ControlChanges.ts:29
Methodtime
* The time of the event in seconds
src/ControlChange.ts:105
Methodtime
* The time of the event in seconds.
src/Note.ts:151
Methodtime
* The time of the event in seconds
src/PitchBend.ts:35
MethodtoJSON
()
src/ControlChange.ts:115
MethodtoJSON
* Convert the header into an object.
src/Header.ts:274
MethodtoJSON
* Convert it to JSON form.
src/Instrument.ts:84
MethodtoJSON
* Convert the track into a JSON format.
src/Track.ts:306
MethodtoJSON
()
src/Note.ts:171
MethodtoJSON
()
src/PitchBend.ts:45