Class: Instrument

.instrument. Instrument

new Instrument(instrumentName)

Represents an instrument. instrumentNames are found in the ext/soundfonts directory

See music21.miditools and esp. loadSoundfont for a way of loading soundfonts into
instruments.

Parameters:
Name Type Description
instrumentName string
Properties:
Name Type Default Description
partId string | undefined
partName string | undefined
partAbbreviation string | undefined
instrumentId string | undefined
instrumentName string | undefined
instrumentAbbreviation string | undefined
midiProgram int | undefined
midiChannel int | undefined
lowestNote int | undefined
highestNote int | undefined
transposition music21.interval.Interval | undefined
inGMPercMap Boolean false
soundfontFn string | undefined
oggSoundfont string | undefined

url of oggSoundfont for this instrument

mp3Soundfont string | undefined

url of mp3Soundfont for this instrument

Source:

Extends

Music21j, Copyright © 2013-2021 Michael Scott Asato Cuthbert.
Documentation generated by JSDoc 3.6.3 on Wed Jul 31st 2019 using the DocStrap template.