B4J Programming Press on the image to return to the main documentation page.

jSimpleMidiPlayer

Written by Steve Laming

List of types:

jSimpleMidiPlayer

jSimpleMidiPlayer


Events:

None

Members:


  GetDivisionType As Float

  GetLoopEndPoint As Long

  GetLoopStartPoint As Long

  GetMicrosecondLength As Long

  GetMicrosecondPosition As Long

  GetResolution As Int

  GetTempoInBPM As Float

  Initialize (FilePath As String, FileName As String) As Boolean

  Isinitialized As Boolean [read only]

  IsRunning As Boolean

  LastErrorMessage As String [read only]

  LOOP_CONTINUOUSLY As Int

  PPQ As Float

  SetLoopCount (count As Int)

  SetLoopEndPoint (tick As Long)

  SetLoopStartPoint (tick As Long)

  SetMicrosecondPosition (microseconds As Long)

  SMPTE_24 As Float

  SMPTE_25 As Float

  SMPTE_30 As Float

  SMPTE_30DROP As Float

  Start

  Stop

Members description:

GetDivisionType As Float
Obtains the timing division type for this sequence.
Can be one of:
PPQ The tempo-based timing type, for which the resolution is expressed in pulses (ticks) per quarter note.
SMPTE_24 The SMPTE-based timing type with 24 frames per second (resolution is expressed in ticks per frame).
SMPTE_25 The SMPTE-based timing type with 25 frames per second (resolution is expressed in ticks per frame).
SMPTE_30 The SMPTE-based timing type with 30 frames per second (resolution is expressed in ticks per frame).
SMPTE_30DROP The SMPTE-based timing type with 29.97 frames per second (resolution is expressed in ticks per frame).
GetLoopEndPoint As Long
Obtains the end position of the loop, in MIDI ticks.
GetLoopStartPoint As Long
Obtains the start position of the loop, in MIDI ticks.
GetMicrosecondLength As Long
Obtains the length of the current sequence, expressed in microseconds.
GetMicrosecondPosition As Long
Obtains the current position in the sequence, expressed in microseconds.
GetResolution As Int
Obtains the timing resolution for this sequence.
GetTempoInBPM As Float
Obtains the current tempo, expressed in beats per minute.
Initialize (FilePath As String, FileName As String) As Boolean
Isinitialized As Boolean [read only]
IsRunning As Boolean
Indicates whether the Sequencer is currently running.
LastErrorMessage As String [read only]
Get the message for the last error the player encountered
LOOP_CONTINUOUSLY As Int
PPQ As Float
SetLoopCount (count As Int)
Sets the number of repetitions of the loop for playback.
SetLoopEndPoint (tick As Long)
Sets the last MIDI tick that will be played in the loop.
SetLoopStartPoint (tick As Long)
Sets the first MIDI tick that will be played in the loop.
SetMicrosecondPosition (microseconds As Long)
Sets the current position in the sequence, expressed in microseconds
SMPTE_24 As Float
SMPTE_25 As Float
SMPTE_30 As Float
SMPTE_30DROP As Float
Start
Starts playback of the MIDI data in the currently loaded sequence.
Stop
Stops recording, if active, and playback of the currently loaded sequence, if any.
Top