/* This file is part of the Simba project.  */
int note_init(struct note_t *self_p, int note, int32_t *waveform_p, size_t length, float frequency, float vibrato, long attack, long decay, long release, int sample_rate)
/* This file is part of the Simba project.  */
int note_init(struct note_t *self_p, int note, int32_t *waveform_p, size_t length, float frequency, float vibrato, long attack, long decay, long release, int sample_rate)
{
    self_p->note = note;
    oscillator_init(&self_p->oscillator,
                    waveform_p,
                    length,
                    frequency,
                    vibrato,
                    sample_rate);
    return (envelope_init(&self_p->envelope,
                          attack,
                          decay,
                          release));
}