summaryrefslogtreecommitdiff
path: root/synth/note.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'synth/note.cpp')
-rw-r--r--synth/note.cpp23
1 files changed, 22 insertions, 1 deletions
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()