Liking cljdoc? Tell your friends :D

javax.sound.midi.spi.MidiFileWriter

A MidiFileWriter supplies MIDI file-writing services. Classes that implement this interface can write one or more types of MIDI file from a Sequence object.

A MidiFileWriter supplies MIDI file-writing services. Classes that
implement this interface can write one or more types of MIDI file from a
Sequence object.
raw docstring

->midi-file-writerclj

(->midi-file-writer)

Constructor.

Constructor.
raw docstring

file-type-supported?clj

(file-type-supported? this file-type)
(file-type-supported? this file-type sequence)

Indicates whether a MIDI file of the file type specified can be written from the sequence indicated.

file-type - the file type for which write capabilities are queried - int sequence - the sequence for which file writing support is queried - javax.sound.midi.Sequence

returns: true if the file type is supported for this sequence, otherwise false - boolean

Indicates whether a MIDI file of the file type specified can be written
 from the sequence indicated.

file-type - the file type for which write capabilities are queried - `int`
sequence - the sequence for which file writing support is queried - `javax.sound.midi.Sequence`

returns: true if the file type is supported for this sequence,
         otherwise false - `boolean`
raw docstring

get-midi-file-typesclj

(get-midi-file-types this)
(get-midi-file-types this sequence)

Obtains the file types that this file writer can write from the sequence specified.

sequence - the sequence for which MIDI file type support is queried - javax.sound.midi.Sequence

returns: array of file types. If no file types are supported, returns an array of length 0. - int[]

Obtains the file types that this file writer can write from the sequence
 specified.

sequence - the sequence for which MIDI file type support is queried - `javax.sound.midi.Sequence`

returns: array of file types. If no file types are supported, returns an
         array of length 0. - `int[]`
raw docstring

writeclj

(write this in file-type out)

Writes a stream of bytes representing a MIDI file of the file type indicated to the output stream provided.

in - sequence containing MIDI data to be written to the file - javax.sound.midi.Sequence file-type - type of the file to be written to the output stream - int out - stream to which the file data should be written - java.io.OutputStream

returns: the number of bytes written to the output stream - int

throws: java.io.IOException - if an I/O exception occurs

Writes a stream of bytes representing a MIDI file of the file type
 indicated to the output stream provided.

in - sequence containing MIDI data to be written to the file - `javax.sound.midi.Sequence`
file-type - type of the file to be written to the output stream - `int`
out - stream to which the file data should be written - `java.io.OutputStream`

returns: the number of bytes written to the output stream - `int`

throws: java.io.IOException - if an I/O exception occurs
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close