Rev 2302 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2302 | Rev 2308 | ||
---|---|---|---|
Line 12... | Line 12... | ||
12 | #include "play.h"
|
12 | #include "play.h"
|
13 | #include "noiser.h"
|
13 | #include "noiser.h"
|
14 | 14 | ||
15 | struct multi_curve; |
15 | struct multi_curve; |
16 | 16 | ||
- | 17 | struct separation_t { |
|
- | 18 | float hz; |
|
- | 19 | float val; |
|
17 | extern int is_din_binaural (); |
20 | separation_t () { hz = val = 0;} |
- | 21 | }; |
|
18 | 22 | ||
19 | struct triggered_note { |
23 | struct triggered_note { |
20 | 24 | ||
21 | note tn; // note info |
25 | note tn; // note info |
22 | float start_hz; // initial frequency of note |
26 | float start_hz; // initial frequency of note |
Line 32... | Line 36... | ||
32 | // mono
|
36 | // mono
|
33 | //
|
37 | //
|
34 | solver sol;
|
38 | solver sol;
|
35 | play player;
|
39 | play player;
|
36 | 40 | ||
37 | // binaural
|
41 | // binaurality
|
38 | int idb; // is din binaural? |
42 | int binaural; // binaural? |
39 | int just; // justification |
43 | int just; // justification |
40 | float sep; // separation |
44 | separation_t sep; // separation |
- | 45 | ||
41 | solver sol2;
|
46 | solver sol2;
|
42 | play player2;
|
47 | play player2;
|
43 | 48 | ||
44 | noiser nsr;
|
49 | noiser nsr;
|
45 | 50 | ||
Line 77... | Line 82... | ||
77 | int bend; |
82 | int bend; |
78 | 83 | ||
79 | // input (used by keyboard-keyboard only)
|
84 | // input (used by keyboard-keyboard only)
|
80 | int key; // key on computer keyboard that triggers note |
85 | int key; // key on computer keyboard that triggers note |
81 | 86 | ||
82 | triggered_note (const note& n, float vmax, float xx = 0, float yy = 0, int _what = NOTE, int k = 0, int mox = 0); |
87 | triggered_note (const note& n, float vmax, float xx, float yy, int _what, int _bin, int _just, float _sep, int k = 0, int mox = 0); |
83 | void setup (multi_curve* wav, multi_curve* atk, multi_curve* dk); |
88 | void setup (multi_curve* wav, multi_curve* atk, multi_curve* dk); |
84 | void set_freq (float f); |
89 | void set_freq (float f); |
85 | void eval (float* left, float* right, float* wav, float* vol, int n, float attack_time, float decay_time, gotog& g); |
90 | void eval (float* left, float* right, float* wav, float* vol, int n, float attack_time, float decay_time, gotog& g); |
86 | void eval (float attack_time); |
91 | void eval (float attack_time); |
87 | void start_decay (); |
92 | void start_decay (); |
Line 91... | Line 96... | ||
91 | 96 | ||
92 | typedef std::list<triggered_note>::iterator note_iterator; |
97 | typedef std::list<triggered_note>::iterator note_iterator; |
93 | void update_triggered_notes (std::list<triggered_note>& tl); |
98 | void update_triggered_notes (std::list<triggered_note>& tl); |
94 | void update_triggered_noises (std::list<triggered_note>& tl); |
99 | void update_triggered_noises (std::list<triggered_note>& tl); |
95 | 100 | ||
- | 101 | ||
- | 102 | ||
96 | #endif
|
103 | #endif
|