GPS04SmfTimeSignatureEvent

GPS04SmfTimeSignatureEvent — Time signature event in a MIDI file

Synopsis


#include <gps04-smf-time-signature-event.h>


            GPS04SmfTimeSignatureEvent;
GPS04MidiEvent* gps04_smf_time_signature_event_new
                                            (guint numerator,
                                             guint denominator,
                                             guint ticks_per_click,
                                             guint thirtyseconds_per_quarter);

Object Hierarchy


  GObject
   +----GPS04MidiEvent
         +----GPS04SmfTimeSignatureEvent

Implemented Interfaces

GPS04SmfTimeSignatureEvent implements PS04Streamable.

Description

The GPS04SmfTimeSignatureEvent class represents a Time Signature event in a Standard MIDI File.

Details

GPS04SmfTimeSignatureEvent

typedef struct _GPS04SmfTimeSignatureEvent GPS04SmfTimeSignatureEvent;


gps04_smf_time_signature_event_new ()

GPS04MidiEvent* gps04_smf_time_signature_event_new
                                            (guint numerator,
                                             guint denominator,
                                             guint ticks_per_click,
                                             guint thirtyseconds_per_quarter);

Creates a new time signature event.

Argument examples: 4/4 gives numerator = 4, denominator = 2. 6/8 gives num = 6, denom = 3.

numerator : The numerator of the signature, as notated on sheet music.
denominator : The denominator as a negative power of 2: 2 = quarter note, 3 = eight note, etc.
ticks_per_click : The number of MIDI clock ticks per metronome click.
thirtyseconds_per_quarter : The number of notated 32nd notes per MIDI quarter note.
Returns : a new GPS04SmfTimeSignatureEvent.

See Also

GPS04StandardMidiFile, GPS04MidiEvent