diff options
Diffstat (limited to 'note_compiler/templates')
-rw-r--r-- | note_compiler/templates/set_param.1 | 2 | ||||
-rw-r--r-- | note_compiler/templates/set_param.filter | 7 | ||||
-rw-r--r-- | note_compiler/templates/set_param.filterenv (renamed from note_compiler/templates/set_param.2) | 0 |
3 files changed, 9 insertions, 0 deletions
diff --git a/note_compiler/templates/set_param.1 b/note_compiler/templates/set_param.1 index 3d20dfe..21fc983 100644 --- a/note_compiler/templates/set_param.1 +++ b/note_compiler/templates/set_param.1 @@ -23,3 +23,5 @@ case VIB_LFO: sel_osc->vibrato_lfo=v; break; case WAVEFORM: sel_osc->waveform=v; break; case SYNC: sel_osc->sync=(v!=0); break; + case MODULATION: sel_orig_osc->fm_strength[p.index]=v; apply_pfactor(); break; + case OUTPUT: sel_orig_osc->output=v; apply_pfactor(); break; diff --git a/note_compiler/templates/set_param.filter b/note_compiler/templates/set_param.filter new file mode 100644 index 0000000..797d30b --- /dev/null +++ b/note_compiler/templates/set_param.filter @@ -0,0 +1,7 @@ + + case FILTER_ENABLED: output_note("NOTE: cannot enable filter in playing notes"); break; + case FILTER_ENV_AMOUNT: orig.filter_params.env_amount=float(v)/ONE; apply_pfactor(); break; + case FILTER_OFFSET: orig.filter_params.freqfactor_offset=float(v)/ONE; apply_pfactor(); break; + case FILTER_RESONANCE: orig.filter_params.resonance=float(v)/ONE; apply_pfactor(); break; + case FILTER_TREMOLO: filter_params.trem_strength=v; break; + case FILTER_TREM_LFO: filter_params.trem_lfo=v; break; diff --git a/note_compiler/templates/set_param.2 b/note_compiler/templates/set_param.filterenv index aaa21b4..aaa21b4 100644 --- a/note_compiler/templates/set_param.2 +++ b/note_compiler/templates/set_param.filterenv |