AgsNote

AgsNote — Note class.

Functions

Properties

AgsComplex * attack Read / Write
AgsComplex * decay Read / Write
AgsComplex * ratio Read / Write
AgsComplex * release Read / Write
guint stream-attack Read / Write
gdouble stream-delay Read / Write
AgsComplex * sustain Read / Write
guint x0 Read / Write
guint x1 Read / Write
guint y Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── AgsNote

Implemented Interfaces

AgsNote implements AgsConnectable.

Includes

#include <ags/audio/ags_note.h>

Description

AgsNote represents a tone.

Functions

ags_note_find_prev ()

GList *
ags_note_find_prev (GList *note,
                    guint x0,
                    guint y);

Find prev note.

Parameters

note

a GList containing AgsNote

 

x0

x offset

 

y

y offset

 

Returns

the matching entry as GList.

Since: 0.7.2


ags_note_find_next ()

GList *
ags_note_find_next (GList *note,
                    guint x0,
                    guint y);

Find next note.

Parameters

note

a GList containing AgsNote

 

x0

x offset

 

y

y offset

 

Returns

the matching entry as GList.

Since: 0.7.2


ags_note_to_raw_midi ()

unsigned char *
ags_note_to_raw_midi (AgsNote *note,
                      gdouble bpm,
                      gdouble delay_factor,
                      guint *buffer_length);


ags_note_to_seq_event ()

snd_seq_event_t *
ags_note_to_seq_event (AgsNote *note,
                       gdouble bpm,
                       gdouble delay_factor,
                       guint *n_events);

Convert note to ALSA sequencer events and set the number of events in the array as n_events .

Parameters

note

the AgsNote

 

bpm

the bpm to use

 

delay_factor

the segmentation delay factor

 

n_events

the count of events

 

Returns

The sequencer events as array.

Since: 0.7.1


ags_note_from_raw_midi ()

GList *
ags_note_from_raw_midi (unsigned char *raw_midi,
                        gdouble bpm,
                        gdouble delay_factor,
                        guint length);

Parse raw_midi data and convert to AgsNote.

Parameters

raw_midi

the data array

 

bpm

the bpm to use

 

delay_factor

the segmentation delay factor

 

length

the length of the array

 

Returns

a GList containing the notes

Since: 0.7.1


ags_note_from_seq_event ()

GList *
ags_note_from_seq_event (snd_seq_event_t *event,
                         gdouble bpm,
                         gdouble delay_factor,
                         guint n_events);

Convert ALSA sequencer data event to AgsNote.

Parameters

event

ALSA sequencer events as array

 

bpm

the bpm to use

 

delay_factor

the segmentation delay factor

 

n_events

the arrays length

 

Returns

a GList containing the notes

Since: 0.7.1


ags_note_duplicate ()

AgsNote *
ags_note_duplicate (AgsNote *note);

Duplicate a note.

Parameters

note

an AgsNote

 

Returns

the duplicated AgsNote.

Since: 0.4


ags_note_new ()

AgsNote *
ags_note_new ();

Creates an AgsNote

Returns

a new AgsNote

Since: 0.7.2


ags_note_new_with_offset ()

AgsNote *
ags_note_new_with_offset (guint x0,
                          guint x1,
                          guint y,
                          gdouble stream_delay,
                          guint stream_attack);

Types and Values

enum AgsNoteFlags

Members

AGS_NOTE_GUI

   

AGS_NOTE_RUNTIME

   

AGS_NOTE_HUMAN_READABLE

   

AGS_NOTE_DEFAULT_LENGTH

   

AGS_NOTE_IS_SELECTED

   

Property Details

The “attack” property

  “attack”                   AgsComplex *

The envelope's attack.

Flags: Read / Write

Since: 0.7.2


The “decay” property

  “decay”                    AgsComplex *

The envelope's decay.

Flags: Read / Write

Since: 0.7.2


The “ratio” property

  “ratio”                    AgsComplex *

The envelope's ratio.

Flags: Read / Write

Since: 0.7.42


The “release” property

  “release”                  AgsComplex *

The envelope's release.

Flags: Read / Write

Since: 0.7.2


The “stream-attack” property

  “stream-attack”            guint

The first x offset.

Flags: Read / Write

Allowed values: <= 65535

Default value: 0

Since: 0.7.2


The “stream-delay” property

  “stream-delay”             gdouble

The delay of the stream.

Flags: Read / Write

Allowed values: [0,65535]

Default value: 0

Since: 0.7.2


The “sustain” property

  “sustain”                  AgsComplex *

The envelope's sustain.

Flags: Read / Write

Since: 0.7.2


The “x0” property

  “x0”                       guint

The first x offset.

Flags: Read / Write

Allowed values: <= 65535

Default value: 0

Since: 0.7.2


The “x1” property

  “x1”                       guint

The first x offset.

Flags: Read / Write

Allowed values: <= 65535

Default value: 0

Since: 0.7.2


The “y” property

  “y”                        guint

The first x offset.

Flags: Read / Write

Allowed values: <= 65535

Default value: 0

Since: 0.7.2