diff options
author | Florian Jung <flo@thinkpad.(none)> | 2010-12-30 16:23:59 +0100 |
---|---|---|
committer | Florian Jung <flo@thinkpad.(none)> | 2010-12-30 16:23:59 +0100 |
commit | be11f60acfc7a9283ab038b4a1cd25e5e6882cc7 (patch) | |
tree | 27be6437871cc09170225ad94bd4637ac0d6dca6 /synth/note_skel.cpp | |
parent | cc5d2c7475004c67a709ade241d86f9951749174 (diff) |
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
Diffstat (limited to 'synth/note_skel.cpp')
-rw-r--r-- | synth/note_skel.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/synth/note_skel.cpp b/synth/note_skel.cpp index acc580f..9523a1b 100644 --- a/synth/note_skel.cpp +++ b/synth/note_skel.cpp @@ -6,7 +6,7 @@ using namespace std; -Note::Note(int n, float v, program_t &prg, jack_nframes_t pf, fixed_t pb, int prg_no) +NoteSkel::NoteSkel(int n, float v, program_t &prg, jack_nframes_t pf, fixed_t pb, int prg_no) { curr_prg=&prg; @@ -16,13 +16,17 @@ Note::Note(int n, float v, program_t &prg, jack_nframes_t pf, fixed_t pb, int pr set_note(n); freq=dest_freq; set_vel(v); - do_ksl(); pitchbend=pb; program=prg_no; } +NoteSkel::~NoteSkel() +{ + +} + void NoteSkel::set_pitchbend(fixed_t pb) { pitchbend=pb; |