Mercurial > hg > svcore
annotate data/osc/OSCMessage.cpp @ 1573:f04038819c26 spectrogramparam
Introduce & make use of faster MovingMedian class (now with resize capability)
| author | Chris Cannam | 
|---|---|
| date | Thu, 08 Nov 2018 15:02:30 +0000 | 
| parents | cc27f35aa75c | 
| children | 
| rev | line source | 
|---|---|
| Chris@320 | 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ | 
| Chris@320 | 2 | 
| Chris@320 | 3 /* | 
| Chris@320 | 4 Sonic Visualiser | 
| Chris@320 | 5 An audio file viewer and annotation editor. | 
| Chris@320 | 6 Centre for Digital Music, Queen Mary, University of London. | 
| Chris@320 | 7 | 
| Chris@320 | 8 This program is free software; you can redistribute it and/or | 
| Chris@320 | 9 modify it under the terms of the GNU General Public License as | 
| Chris@320 | 10 published by the Free Software Foundation; either version 2 of the | 
| Chris@320 | 11 License, or (at your option) any later version. See the file | 
| Chris@320 | 12 COPYING included with this distribution for more information. | 
| Chris@320 | 13 */ | 
| Chris@320 | 14 | 
| Chris@320 | 15 /* | 
| Chris@320 | 16 This is a modified version of a source file from the | 
| Chris@320 | 17 Rosegarden MIDI and audio sequencer and notation editor. | 
| Chris@320 | 18 This file copyright 2000-2006 Chris Cannam. | 
| Chris@320 | 19 */ | 
| Chris@320 | 20 | 
| Chris@320 | 21 #include "OSCMessage.h" | 
| Chris@320 | 22 | 
| Chris@320 | 23 | 
| Chris@320 | 24 OSCMessage::~OSCMessage() | 
| Chris@320 | 25 { | 
| Chris@320 | 26 clearArgs(); | 
| Chris@320 | 27 } | 
| Chris@320 | 28 | 
| Chris@320 | 29 void | 
| Chris@320 | 30 OSCMessage::clearArgs() | 
| Chris@320 | 31 { | 
| Chris@320 | 32 m_args.clear(); | 
| Chris@320 | 33 } | 
| Chris@320 | 34 | 
| Chris@320 | 35 void | 
| Chris@320 | 36 OSCMessage::addArg(QVariant arg) | 
| Chris@320 | 37 { | 
| Chris@320 | 38 m_args.push_back(arg); | 
| Chris@320 | 39 } | 
| Chris@320 | 40 | 
| Chris@929 | 41 int | 
| Chris@320 | 42 OSCMessage::getArgCount() const | 
| Chris@320 | 43 { | 
| Chris@1038 | 44 return int(m_args.size()); | 
| Chris@320 | 45 } | 
| Chris@320 | 46 | 
| Chris@320 | 47 const QVariant & | 
| Chris@929 | 48 OSCMessage::getArg(int i) const | 
| Chris@320 | 49 { | 
| Chris@320 | 50 return m_args[i]; | 
| Chris@320 | 51 } | 
| Chris@320 | 52 | 
