d71e860Replace instrument.json with exported instrument bundlesJeremy Magland 1function y = render_note(note)
2% The muted variant: identical mapping to the standup export, with the
3% damping character fixed rather than exposed (slow release, short tail).
4P = bass_defaults();
5P.sample_rate = note.sample_rate;
6P.note_count = 1;
7P.seed = 1;
8P.pre_delay_ms = 0;
9P.normalize = 0;
10if note.preview ~= 0
11 P.oversample = 1;
12end
13P.root_midi = max(28, min(55, round(note.pitch)));
14P.pluck_force_n = 3 + (30 - 3) * note.velocity;
15P.pluck_pos = note.params.pluck_pos;
16P.finger_release_ms = 6;
17P.tail_s = 0.8;
18y = bass_render(P);
19end