From c1a2c43aa8d4c5bcfa345fd3b92215c18c938683 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Thu, 30 Dec 2010 17:25:57 +0100 Subject: Note inherits from NoteSkel -- works --- synth/note.cpp | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'synth/note.cpp') diff --git a/synth/note.cpp b/synth/note.cpp index 6b73fbf..8ab0546 100644 --- a/synth/note.cpp +++ b/synth/note.cpp @@ -16,8 +16,13 @@ inline fixed_t init_custom_osc_phase(int len, fixed_t sr) Note::Note(int n, float v, program_t &prg, jack_nframes_t pf, fixed_t pb, int prg_no) - : NoteSkel(n,v,prg,pf,pb,prg_no) { + + curr_prg=&prg; + + + + n_oscillators=prg.n_osc; @@ -80,6 +85,22 @@ Note::Note(int n, float v, program_t &prg, jack_nframes_t pf, fixed_t pb, int pr sync_factor=prg.sync_factor; sync_phase=0; + + + + + portamento_frames=0; + set_portamento_frames(pf); + + set_note(n); + freq=dest_freq; + set_vel(v); + + pitchbend=pb; + + program=prg_no; + + } Note::~Note() -- cgit v1.2.3