Interface

AgsSequencer

Description

interface Ags.Sequencer : GObject.Object

No description available.

Prerequisite

In order to implement Sequencer, your type must inherit fromGObject.

Instance methods

ags_sequencer_get_bpm

Get current playback bpm.

since: 3.0.0

ags_sequencer_get_buffer

Get current playback buffer.

since: 3.0.0

ags_sequencer_get_delay_factor

Get current playback delay factor.

since: 3.0.0

ags_sequencer_get_device

Get device.

since: 3.0.0

ags_sequencer_get_midi_version

Get MIDI version.

since: 7.0.0

ags_sequencer_get_next_buffer

Get future playback buffer.

since: 3.0.0

ags_sequencer_get_note_offset

Get current playback note offset.

since: 3.0.0

ags_sequencer_get_start_note_offset

Get start playback note offset.

since: 3.0.0

ags_sequencer_is_playing

Get playing.

since: 3.0.0

ags_sequencer_is_recording

Get recording.

since: 3.0.0

ags_sequencer_is_starting

Get starting.

since: 3.0.0

ags_sequencer_list_cards

Retrieve card_id and card_name as a list of strings.

since: 3.0.0

ags_sequencer_lock_buffer

Lock buffer.

since: 3.0.0

ags_sequencer_offset_changed

Callback when counter expires minor note offset.

since: 3.0.0

ags_sequencer_play

Plays the current buffer of sequencer.

since: 3.0.0

ags_sequencer_play_init

Initializes the sequencer for playback.

since: 3.0.0

ags_sequencer_record

Records the current buffer of sequencer.

since: 3.0.0

ags_sequencer_record_init

Initializes the sequencer for recording.

since: 3.0.0

ags_sequencer_set_bpm

Set current playback bpm.

since: 3.0.0

ags_sequencer_set_delay_factor

Set current playback delay factor.

since: 3.0.0

ags_sequencer_set_device

Set device.

since: 3.0.0

ags_sequencer_set_note_offset

Set current playback note offset.

since: 3.0.0

ags_sequencer_set_start_note_offset

Set start playback note offset.

since: 3.0.0

ags_sequencer_stop

Stops the sequencer from playing to it.

since: 3.0.0

ags_sequencer_tic

Every call to play may generate a tic.

since: 3.0.0

ags_sequencer_unlock_buffer

Unlock buffer.

since: 3.0.0

Signals

Ags.Sequencer::offset-changed

The ::offset-changed signal notifies about changed position within notation.

since: 3.0.0

Ags.Sequencer::tic

The ::tic signal is emitted every tic of the sequencer. This notifies about a newly played buffer.

since: 3.0.0

Interface structure

struct AgsSequencerInterface {
  GTypeInterface ginterface;
  void (* set_device) (
    AgsSequencer* sequencer,
    gchar* card_id
  );
  gchar* (* get_device) (
    AgsSequencer* sequencer
  );
  void (* list_cards) (
    AgsSequencer* sequencer,
    GList** card_id,
    GList** card_name
  );
  gboolean (* is_starting) (
    AgsSequencer* sequencer
  );
  gboolean (* is_playing) (
    AgsSequencer* sequencer
  );
  gboolean (* is_recording) (
    AgsSequencer* sequencer
  );
  void (* play_init) (
    AgsSequencer* sequencer,
    GError** error
  );
  void (* play) (
    AgsSequencer* sequencer,
    GError** error
  );
  void (* record_init) (
    AgsSequencer* sequencer,
    GError** error
  );
  void (* record) (
    AgsSequencer* sequencer,
    GError** error
  );
  void (* stop) (
    AgsSequencer* sequencer
  );
  void (* tic) (
    AgsSequencer* sequencer
  );
  void (* offset_changed) (
    AgsSequencer* sequencer,
    guint note_offset
  );
  void* (* get_buffer) (
    AgsSequencer* sequencer,
    guint* buffer_length
  );
  void* (* get_next_buffer) (
    AgsSequencer* sequencer,
    guint* buffer_length
  );
  void (* lock_buffer) (
    AgsSequencer* sequencer,
    void* buffer
  );
  void (* unlock_buffer) (
    AgsSequencer* sequencer,
    void* buffer
  );
  void (* set_bpm) (
    AgsSequencer* sequencer,
    gdouble bpm
  );
  gdouble (* get_bpm) (
    AgsSequencer* sequencer
  );
  void (* set_delay_factor) (
    AgsSequencer* sequencer,
    gdouble delay_factor
  );
  gdouble (* get_delay_factor) (
    AgsSequencer* sequencer
  );
  void (* set_start_note_offset) (
    AgsSequencer* sequencer,
    guint start_note_offset
  );
  guint (* get_start_note_offset) (
    AgsSequencer* sequencer
  );
  void (* set_note_offset) (
    AgsSequencer* sequencer,
    guint note_offset
  );
  guint (* get_note_offset) (
    AgsSequencer* sequencer
  );
  AgsSequencerMidiVersion (* get_midi_version) (
    AgsSequencer* sequencer
  );
  void (* set_midi_version) (
    AgsSequencer* sequencer,
    AgsSequencerMidiVersion midi_version
  );
  
}

No description available.

Interface members
ginterface
GTypeInterface
 

No description available.

set_device
void (* set_device) (
    AgsSequencer* sequencer,
    gchar* card_id
  )
 

No description available.

get_device
gchar* (* get_device) (
    AgsSequencer* sequencer
  )
 

No description available.

list_cards
void (* list_cards) (
    AgsSequencer* sequencer,
    GList** card_id,
    GList** card_name
  )
 

No description available.

is_starting
gboolean (* is_starting) (
    AgsSequencer* sequencer
  )
 

No description available.

is_playing
gboolean (* is_playing) (
    AgsSequencer* sequencer
  )
 

No description available.

is_recording
gboolean (* is_recording) (
    AgsSequencer* sequencer
  )
 

No description available.

play_init
void (* play_init) (
    AgsSequencer* sequencer,
    GError** error
  )
 

No description available.

play
void (* play) (
    AgsSequencer* sequencer,
    GError** error
  )
 

No description available.

record_init
void (* record_init) (
    AgsSequencer* sequencer,
    GError** error
  )
 

No description available.

record
void (* record) (
    AgsSequencer* sequencer,
    GError** error
  )
 

No description available.

stop
void (* stop) (
    AgsSequencer* sequencer
  )
 

No description available.

tic
void (* tic) (
    AgsSequencer* sequencer
  )
 

No description available.

offset_changed
void (* offset_changed) (
    AgsSequencer* sequencer,
    guint note_offset
  )
 

No description available.

get_buffer
void* (* get_buffer) (
    AgsSequencer* sequencer,
    guint* buffer_length
  )
 

No description available.

get_next_buffer
void* (* get_next_buffer) (
    AgsSequencer* sequencer,
    guint* buffer_length
  )
 

No description available.

lock_buffer
void (* lock_buffer) (
    AgsSequencer* sequencer,
    void* buffer
  )
 

No description available.

unlock_buffer
void (* unlock_buffer) (
    AgsSequencer* sequencer,
    void* buffer
  )
 

No description available.

set_bpm
void (* set_bpm) (
    AgsSequencer* sequencer,
    gdouble bpm
  )
 

No description available.

get_bpm
gdouble (* get_bpm) (
    AgsSequencer* sequencer
  )
 

No description available.

set_delay_factor
void (* set_delay_factor) (
    AgsSequencer* sequencer,
    gdouble delay_factor
  )
 

No description available.

get_delay_factor
gdouble (* get_delay_factor) (
    AgsSequencer* sequencer
  )
 

No description available.

set_start_note_offset
void (* set_start_note_offset) (
    AgsSequencer* sequencer,
    guint start_note_offset
  )
 

No description available.

get_start_note_offset
guint (* get_start_note_offset) (
    AgsSequencer* sequencer
  )
 

No description available.

set_note_offset
void (* set_note_offset) (
    AgsSequencer* sequencer,
    guint note_offset
  )
 

No description available.

get_note_offset
guint (* get_note_offset) (
    AgsSequencer* sequencer
  )
 

No description available.

get_midi_version
AgsSequencerMidiVersion (* get_midi_version) (
    AgsSequencer* sequencer
  )
 

No description available.

set_midi_version
void (* set_midi_version) (
    AgsSequencer* sequencer,
    AgsSequencerMidiVersion midi_version
  )
 

No description available.

Virtual methods

Ags.Sequencer.get_bpm

Get current playback bpm.

since: 3.0.0

Ags.Sequencer.get_buffer

Get current playback buffer.

since: 3.0.0

Ags.Sequencer.get_delay_factor

Get current playback delay factor.

since: 3.0.0

Ags.Sequencer.get_device

Get device.

since: 3.0.0

Ags.Sequencer.get_midi_version

Get MIDI version.

since: 7.0.0

Ags.Sequencer.get_next_buffer

Get future playback buffer.

since: 3.0.0

Ags.Sequencer.get_note_offset

Get current playback note offset.

since: 3.0.0

Ags.Sequencer.get_start_note_offset

Get start playback note offset.

since: 3.0.0

Ags.Sequencer.is_playing

Get playing.

since: 3.0.0

Ags.Sequencer.is_recording

Get recording.

since: 3.0.0

Ags.Sequencer.is_starting

Get starting.

since: 3.0.0

Ags.Sequencer.list_cards

Retrieve card_id and card_name as a list of strings.

since: 3.0.0

Ags.Sequencer.lock_buffer

Lock buffer.

since: 3.0.0

Ags.Sequencer.offset_changed

Callback when counter expires minor note offset.

since: 3.0.0

Ags.Sequencer.play

Plays the current buffer of sequencer.

since: 3.0.0

Ags.Sequencer.play_init

Initializes the sequencer for playback.

since: 3.0.0

Ags.Sequencer.record

Records the current buffer of sequencer.

since: 3.0.0

Ags.Sequencer.record_init

Initializes the sequencer for recording.

since: 3.0.0

Ags.Sequencer.set_bpm

Set current playback bpm.

since: 3.0.0

Ags.Sequencer.set_delay_factor

Set current playback delay factor.

since: 3.0.0

Ags.Sequencer.set_device

Set device.

since: 3.0.0

Ags.Sequencer.set_midi_version
No description available.

Ags.Sequencer.set_note_offset

Set current playback note offset.

since: 3.0.0

Ags.Sequencer.set_start_note_offset

Set start playback note offset.

since: 3.0.0

Ags.Sequencer.stop

Stops the sequencer from playing to it.

since: 3.0.0

Ags.Sequencer.tic

Every call to play may generate a tic.

since: 3.0.0

Ags.Sequencer.unlock_buffer

Unlock buffer.

since: 3.0.0