From be11f60acfc7a9283ab038b4a1cd25e5e6882cc7 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Thu, 30 Dec 2010 16:23:59 +0100 Subject: Note inherits from NoteSkel -- DOES NOT WORK! The program compiles well, but as soon as a note is created, it exits, because a pure virtual method is called in NoteSkel's ctor (which is called before Note's ctor) which tries to call a function which is implemented in Note, but not in NoteSkel --- synth/note.h | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'synth/note.h') diff --git a/synth/note.h b/synth/note.h index 5035bd2..9e3bc52 100644 --- a/synth/note.h +++ b/synth/note.h @@ -7,27 +7,20 @@ #include "envelope.h" #include "fixed.h" #include "filter.h" +#include "note_skel.h" -class Note +class Note : public NoteSkel { public: Note(int n, float v,program_t &prg, jack_nframes_t pf, fixed_t pb, int prg_no); ~Note(); fixed_t get_sample(); - int get_note(); - void set_note(int n); - void set_note(int n, bool do_port); - void set_freq(float f); - void set_freq(float f, bool do_port); - void set_pitchbend(fixed_t pb); - void set_vel(float v); - void set_portamento_frames(jack_nframes_t f); + void release_quickly(jack_nframes_t maxt); void release(); void reattack(); bool still_active(); void set_param(const parameter_t &p, fixed_t v); - int get_program(){return program;} private: void do_ksl(); -- cgit v1.2.3