Fix yet more crazy tabs.
authorDavid Robillard <d@drobilla.net>
Fri, 23 Oct 2009 02:49:12 +0000 (02:49 +0000)
committerDavid Robillard <d@drobilla.net>
Fri, 23 Oct 2009 02:49:12 +0000 (02:49 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@5881 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/evoral/evoral/MIDIEvent.hpp
libs/evoral/evoral/types.hpp
libs/evoral/src/ControlList.cpp

index fee07a41d7f071ad1be0ec174d0c32504f0473e8..c06a323d73ed8c73380f492c190c19de8bca4509 100644 (file)
@@ -69,8 +69,8 @@ struct MIDIEvent : public Event<Time> {
        inline bool     is_channel_pressure()   const { return (type() == MIDI_CMD_CHANNEL_PRESSURE); }
        inline uint8_t  note()                  const { return (this->_buf[1]); }
        inline uint8_t  velocity()              const { return (this->_buf[2]); }
-        inline void     set_velocity(uint8_t value)   { this->_buf[2] = value; }
-        inline void     scale_velocity(float factor)  {
+       inline void     set_velocity(uint8_t value)   { this->_buf[2] = value; }
+       inline void     scale_velocity(float factor)  {
                if (factor < 0) factor = 0;
                this->_buf[2] = (uint8_t) lrintf (this->_buf[2]*factor);
                if (this->_buf[2] > 127) this->_buf[2] = 127;
index 06f29b341e0c7f55ac99a11b5c03896d1fcccd61..2ba5ba86cbe28ecc7f71f6db2914b6ba032663e9 100644 (file)
@@ -32,7 +32,7 @@ typedef uint32_t FrameTime;
 typedef double MusicalTime;
 
 static inline bool musical_time_equal (MusicalTime a, MusicalTime b) {
-        /* acceptable tolerance is 1 tick. Nice if there was no magic number here */
+       /* acceptable tolerance is 1 tick. Nice if there was no magic number here */
        return fabs (a - b) <= (1.0/1920.0);
 }
 
index bb348625e67aac63d47b08f95d99c9a0e598ee17..fb8f88ecba8ca10cdf3a69cb3ac7eee1cfed2e59 100644 (file)
@@ -375,7 +375,7 @@ ControlList::reset_range (double start, double endt)
        bool reset = false;
 
        {
-        Glib::Mutex::Lock lm (_lock);
+               Glib::Mutex::Lock lm (_lock);
                ControlEvent cp (start, 0.0f);
                iterator s;
                iterator e;
@@ -791,7 +791,7 @@ ControlList::unlocked_eval (double x) const
        case 2:
                if (x >= _events.back()->when) {
                        return _events.back()->value;
-               } else if (x <= _events.front()->when) {
+               } else if (x <= _events.front()->when) {
                        return _events.front()->value;
                }
 
@@ -811,7 +811,7 @@ ControlList::unlocked_eval (double x) const
        default:
                if (x >= _events.back()->when) {
                        return _events.back()->value;
-               } else if (x <= _events.front()->when) {
+               } else if (x <= _events.front()->when) {
                        return _events.front()->value;
                }