diff options
author | David Robillard <d@drobilla.net> | 2011-04-16 19:02:36 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-04-16 19:02:36 +0000 |
commit | 9e5a7cf49ad84a5a3fa0aa61be11129fc4df1cc2 (patch) | |
tree | 089c1366a567dfbf88c0473288236b276ef24bf6 /src/engine/internals | |
parent | 987710474b824cb92d83ff6fa7a090f50e10756f (diff) | |
download | ingen-9e5a7cf49ad84a5a3fa0aa61be11129fc4df1cc2.tar.gz ingen-9e5a7cf49ad84a5a3fa0aa61be11129fc4df1cc2.tar.bz2 ingen-9e5a7cf49ad84a5a3fa0aa61be11129fc4df1cc2.zip |
Squeeze blank lines and delete trailing whitespace.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3152 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/internals')
-rw-r--r-- | src/engine/internals/Controller.cpp | 3 | ||||
-rw-r--r-- | src/engine/internals/Controller.hpp | 2 | ||||
-rw-r--r-- | src/engine/internals/Delay.cpp | 6 | ||||
-rw-r--r-- | src/engine/internals/Delay.hpp | 2 | ||||
-rw-r--r-- | src/engine/internals/Note.cpp | 12 | ||||
-rw-r--r-- | src/engine/internals/Note.hpp | 2 | ||||
-rw-r--r-- | src/engine/internals/Trigger.cpp | 4 | ||||
-rw-r--r-- | src/engine/internals/Trigger.hpp | 2 |
8 files changed, 0 insertions, 33 deletions
diff --git a/src/engine/internals/Controller.cpp b/src/engine/internals/Controller.cpp index e9d282e2..13c01460 100644 --- a/src/engine/internals/Controller.cpp +++ b/src/engine/internals/Controller.cpp @@ -81,7 +81,6 @@ ControllerNode::ControllerNode(InternalPlugin* plugin, _ports->at(5) = _audio_port; } - void ControllerNode::process(ProcessContext& context) { @@ -108,7 +107,6 @@ ControllerNode::process(ProcessContext& context) NodeImpl::post_process(context); } - void ControllerNode::control(ProcessContext& context, uint8_t control_num, uint8_t val, FrameTime time) { @@ -144,7 +142,6 @@ ControllerNode::control(ProcessContext& context, uint8_t control_num, uint8_t va ((AudioBuffer*)_audio_port->buffer(0).get())->set_value(scaled_value, context.start(), time); } - } // namespace Internals } // namespace Ingen diff --git a/src/engine/internals/Controller.hpp b/src/engine/internals/Controller.hpp index 16e4df30..d89e3b8b 100644 --- a/src/engine/internals/Controller.hpp +++ b/src/engine/internals/Controller.hpp @@ -29,7 +29,6 @@ class InternalPlugin; namespace Internals { - /** MIDI control input node. * * Creating one of these nodes is how a user makes "MIDI Bindings". Note that @@ -67,7 +66,6 @@ private: OutputPort* _audio_port; }; - } // namespace Ingen } // namespace Internals diff --git a/src/engine/internals/Delay.cpp b/src/engine/internals/Delay.cpp index 87aa952e..3b1960fd 100644 --- a/src/engine/internals/Delay.cpp +++ b/src/engine/internals/Delay.cpp @@ -92,14 +92,12 @@ DelayNode::DelayNode( } - DelayNode::~DelayNode() { //_buffer.reset(); free(_buffer); } - void DelayNode::activate(BufferFactory& bufs) { @@ -118,7 +116,6 @@ DelayNode::activate(BufferFactory& bufs) _write_phase = 0; } - static inline float f_clamp(float x, float a, float b) { const float x1 = fabs(x - a); @@ -131,7 +128,6 @@ static inline float f_clamp(float x, float a, float b) return x; } - static inline float cube_interp(const float fr, const float inm1, const float in, const float inp1, const float inp2) { @@ -140,7 +136,6 @@ static inline float cube_interp(const float fr, const float inm1, const float fr * (3.0f * (in - inp1) - inm1 + inp2))); } - void DelayNode::process(ProcessContext& context) { @@ -208,7 +203,6 @@ DelayNode::process(ProcessContext& context) NodeImpl::post_process(context); } - } // namespace Internals } // namespace Ingen diff --git a/src/engine/internals/Delay.hpp b/src/engine/internals/Delay.hpp index c3657402..f43a32ae 100644 --- a/src/engine/internals/Delay.hpp +++ b/src/engine/internals/Delay.hpp @@ -32,7 +32,6 @@ class BufferFactory; namespace Internals { - class DelayNode : public NodeImpl { public: @@ -71,7 +70,6 @@ private: float _delay_samples; }; - } // namespace Ingen } // namespace Internals diff --git a/src/engine/internals/Note.cpp b/src/engine/internals/Note.cpp index a92e3069..ab2c6508 100644 --- a/src/engine/internals/Note.cpp +++ b/src/engine/internals/Note.cpp @@ -87,13 +87,11 @@ NoteNode::NoteNode( _ports->at(4) = _trig_port; } - NoteNode::~NoteNode() { delete _voices; } - bool NoteNode::prepare_poly(BufferFactory& bufs, uint32_t poly) { @@ -110,7 +108,6 @@ NoteNode::prepare_poly(BufferFactory& bufs, uint32_t poly) return true; } - bool NoteNode::apply_poly(Raul::Maid& maid, uint32_t poly) { @@ -128,7 +125,6 @@ NoteNode::apply_poly(Raul::Maid& maid, uint32_t poly) return true; } - void NoteNode::process(ProcessContext& context) { @@ -204,7 +200,6 @@ NoteNode::process(ProcessContext& context) NodeImpl::post_process(context); } - void NoteNode::note_on(ProcessContext& context, uint8_t note_num, uint8_t velocity, FrameTime time) { @@ -294,7 +289,6 @@ NoteNode::note_on(ProcessContext& context, uint8_t note_num, uint8_t velocity, F assert((*_voices)[key->voice].note == note_num); } - void NoteNode::note_off(ProcessContext& context, uint8_t note_num, FrameTime time) { @@ -333,7 +327,6 @@ NoteNode::note_off(ProcessContext& context, uint8_t note_num, FrameTime time) key->state = Key::OFF; } - void NoteNode::free_voice(ProcessContext& context, uint32_t voice, FrameTime time) { @@ -374,7 +367,6 @@ NoteNode::free_voice(ProcessContext& context, uint32_t voice, FrameTime time) } } - void NoteNode::all_notes_off(ProcessContext& context, FrameTime time) { @@ -392,7 +384,6 @@ NoteNode::all_notes_off(ProcessContext& context, FrameTime time) } } - float NoteNode::note_to_freq(int num) { @@ -402,14 +393,12 @@ NoteNode::note_to_freq(int num) return 1.0f; // Frequency of zero causes numerical problems... } - void NoteNode::sustain_on(ProcessContext& context, FrameTime time) { _sustain = true; } - void NoteNode::sustain_off(ProcessContext& context, FrameTime time) { @@ -422,7 +411,6 @@ NoteNode::sustain_off(ProcessContext& context, FrameTime time) free_voice(context, i, time); } - } // namespace Internals } // namespace Ingen diff --git a/src/engine/internals/Note.hpp b/src/engine/internals/Note.hpp index 3c9e6f66..d38adfd8 100644 --- a/src/engine/internals/Note.hpp +++ b/src/engine/internals/Note.hpp @@ -30,7 +30,6 @@ class InternalPlugin; namespace Internals { - /** MIDI note input node. * * For pitched instruments like keyboard, etc. @@ -94,7 +93,6 @@ private: OutputPort* _trig_port; }; - } // namespace Ingen } // namespace Internals diff --git a/src/engine/internals/Trigger.cpp b/src/engine/internals/Trigger.cpp index 7461ec3a..2d8e43f9 100644 --- a/src/engine/internals/Trigger.cpp +++ b/src/engine/internals/Trigger.cpp @@ -84,7 +84,6 @@ TriggerNode::TriggerNode( _ports->at(4) = _vel_port; } - void TriggerNode::process(ProcessContext& context) { @@ -129,7 +128,6 @@ TriggerNode::process(ProcessContext& context) NodeImpl::post_process(context); } - void TriggerNode::note_on(ProcessContext& context, uint8_t note_num, uint8_t velocity, FrameTime time) { @@ -157,7 +155,6 @@ TriggerNode::note_on(ProcessContext& context, uint8_t note_num, uint8_t velocity } } - void TriggerNode::note_off(ProcessContext& context, uint8_t note_num, FrameTime time) { @@ -167,6 +164,5 @@ TriggerNode::note_off(ProcessContext& context, uint8_t note_num, FrameTime time) ((AudioBuffer*)_gate_port->buffer(0).get())->set_value(0.0f, context.start(), time); } - } // namespace Internals } // namespace Ingen diff --git a/src/engine/internals/Trigger.hpp b/src/engine/internals/Trigger.hpp index 5d1eab9f..fc5c0be2 100644 --- a/src/engine/internals/Trigger.hpp +++ b/src/engine/internals/Trigger.hpp @@ -29,7 +29,6 @@ class InternalPlugin; namespace Internals { - /** MIDI trigger input node. * * Just has a gate, for drums etc. A control port is used to select @@ -70,7 +69,6 @@ private: OutputPort* _vel_port; }; - } // namespace Ingen } // namespace Internals |