# Deprecated API Calls

Deprecation

The following calls still work, but they have been superseded by other methods. If you are writing a new app, avoid these because they might go away sometime in the future.

# parseOnly

tuneObjectArray = ABCJS.parseOnly(tunebookString, params)
1

Parses all the tunes in the tunebookString and returns an array of them parsed structure.

This has turned out to not be that useful since you can do the same effect by passing "*" in as the element and the returned value will have a lot more information.

# Animation

This animation has been replaced by TimingCallbacks, which is much more flexible.

# startAnimation

ABCJS.startAnimation(outputElement, tuneObject, animationParams)
1

Puts an animated cursor on the rendered music. Note: this is deprecated in favor of TimingCallbacks.

# stopAnimation

ABCJS.stopAnimation()
1

Stops the animation that was started with startAnimation.

# pauseAnimation

ABCJS.pauseAnimation(pause)
1

Pauses/resumes the animation that was started with startAnimation. Pass true or false to pause or resume.

# Midi.js

This has been replaced by the new audio interface. Hopefully the new interface will work on more systems, be faster, and require fewer resources.

# deviceSupportsMidi

 ABCJS.midi.deviceSupportsMidi()
1

Returns true if the device and browser is capable of playing MIDI.

# setSoundFont

ABCJS.midi.setSoundFont(url)
1

Sets an alternate location for the soundfont.

# renderMidi

tuneObjectArray = ABCJS.renderMidi(output, tunebookString, params)
1

Completely creates midi for the tunebook. Note: this is deprecated in favor of Synth Documentation.

# startPlaying

ABCJS.midi.startPlaying(targetEl)
1

Starts playing the MIDI for the element passed in. If the element is already playing, this pauses it.

# stopPlaying

ABCJS.midi.stopPlaying()
1

Stops playing whatever is currently playing.

# restartPlaying

ABCJS.midi.restartPlaying()
1

Moves the progress back to the beginning for whatever is currently playing.

# setRandomProgress

ABCJS.midi.setRandomProgress(percent)
1

Moves the progress to whatever percent is passed in for whatever is currently playing.

# setLoop

ABCJS.midi.setLoop(targetEl, state)
1

Sets the "loop" mode for the element passed in. State should be true or false.

Last Updated: 3/1/2020, 10:50:51 PM
Contributors: Paul Rosen