void WriteXml::writeResults(const char* channelType, Loudness::analyser::LoudnessAnalyser& analyser) { xmlFile << "<Program filename=\""; size_t i; for(i = 0; i < srcAudioFilenames.size() - 1; ++i) { xmlFile << srcAudioFilenames.at(i).c_str() << " - "; } xmlFile << srcAudioFilenames.at(i).c_str(); xmlFile << "\" " << printStandard(analyser.getStandard()) << " " << convertValid(analyser.isValidProgram()) << " " << "channelsType=\"" << channelType << "\" " << "date=\"" << getDate() << "\">\n"; xmlFile << "\t<ProgramLoudness " << convertValid(analyser.isIntegratedLoudnessValid()) << ">" << analyser.getIntegratedLoudness() << "</ProgramLoudness>\n"; xmlFile << "\t<LRA " << convertValid(analyser.isIntegratedLoudnessRangeValid()) << ">" << analyser.getIntegratedRange() << "</LRA>\n"; xmlFile << "\t<MaxMomentaryLoudness " << convertValid(analyser.isMomentaryLoudnessValid()) << ">" << analyser.getMomentaryLoudness() << "</MaxMomentaryLoudness>\n"; xmlFile << "\t<MaxShortTermLoudness " << convertValid(analyser.isMaxShortTermLoudnessValid()) << ">" << analyser.getMaxShortTermLoudness() << "</MaxShortTermLoudness>\n"; xmlFile << "\t<MinShortTermLoudness " << convertValid(analyser.isMinShortTermLoudnessValid()) << ">" << analyser.getMinShortTermLoudness() << "</MinShortTermLoudness>\n"; xmlFile << "\t<TruePeak " << convertValid(analyser.isTruePeakValid()) << ">" << analyser.getTruePeakInDbTP() << "</TruePeak>\n"; xmlFile << "\t<MaxShortTermValues>" << writeValues(analyser.getShortTermValues()) << "</MaxShortTermValues>\n"; xmlFile << "\t<TruePeakValues>" << writeValues(analyser.getTruePeakValues()) << "</TruePeakValues>\n"; xmlFile << "</Program>\n"; }
int Scene_Test::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QObject::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: initTestCase(); break; case 1: init(); break; case 2: cleanup(); break; case 3: initial(); break; case 4: values(); break; case 5: fixtureRemoval(); break; case 6: loadSuccess(); break; case 7: loadWrongType(); break; case 8: loadWrongRoot(); break; case 9: save(); break; case 10: copyFrom(); break; case 11: createCopy(); break; case 12: arm(); break; case 13: armMissingFixture(); break; case 14: armTooManyChannels(); break; case 15: flashUnflash(); break; case 16: writeHTPBusZero(); break; case 17: writeHTPBusOne(); break; case 18: writeLTPHTPBusZero(); break; case 19: writeLTPBusOne(); break; case 20: writeLTPReady(); break; case 21: writeValues(); break; default: ; } _id -= 22; } return _id; }
void Options::setValue(OptionId id, Value value) { auto values = readValues(); values[id] = value; if (triggers.count(id)) triggers.at(id)(boost::get<int>(value)); writeValues(values); }
//set an individual pin HIGH or LOW, specifiying the register number void Shiftduino::setPin(int registerNum, int index, int value){ int finalIndex = (registerNum * 8) + index; _registers[finalIndex] = value; //set pins writeValues(); }
void loop() { if(i<14) { if(Serial.available()) { int value = Serial.read(); if(lastval == 24 && value == 0) { foundSync = true; } else if(!foundSync) { lastval = value; return; } else { // Found sync, fill buffer buffer[i] = value; i++; } } } else { i = 0; foundSync = false; lastval = 255; writeValues(); } }
void Scene::flash(QByteArray* universes) { if (isFlashing() == false) { Function::flash(universes); writeValues(universes); } }
//set all pins HIGH or LOW void Shiftduino::setPins(boolean values[]){ for(int i = _numOfRegisterPins - 1; i >= 0; i--){ _registers[i] = values[i]; } //set pins writeValues(); }
//set all register pins to LOW void Shiftduino::clear(){ for(int i = _numOfRegisterPins - 1; i >= 0; i--){ _registers[i] = LOW; } //set pins writeValues(); }
BlcrCoreTest::BlcrCoreTest(QString &filename, QObject *parent) :QObject(parent),m_file(filename), m_count(0) { quint64 pid = QCoreApplication::applicationPid(); qDebug() << "PID: " << pid; m_timer = new QTimer(this); connect(m_timer, SIGNAL(timeout()), this, SLOT(writeValues())); m_timer->start(10); }
//set all pins HIGH or LOW void Shiftduino::setPins(uint64_t values){ for(int i = 0; i < _numOfRegisterPins; i++){ _registers[i] = values & 0x00000001; values >>= 1; } //set pins writeValues(); }
Shiftduino::Shiftduino(uint8_t dataPin, uint8_t clockPin, uint8_t latchPin, uint8_t numOfRegisters){ _dataPin = dataPin; pinMode(_dataPin, OUTPUT); _clockPin = clockPin; pinMode(_clockPin, OUTPUT); _latchPin = latchPin; pinMode(_latchPin, OUTPUT); _numOfRegisterPins = numOfRegisters * 8; //reset all register pins clear(); writeValues(); }
AppPreferencesDialog::AppPreferencesDialog(QWidget *parent) : QDialog(parent), ui(new Ui::AppPreferencesDialog) { ui->setupUi(this); updateLock=false; setWindowIcon(CompanionIcon("apppreferences.png")); initSettings(); connect(ui->downloadVerCB, SIGNAL(currentIndexChanged(int)), this, SLOT(baseFirmwareChanged())); connect(this, SIGNAL(accepted()), this, SLOT(writeValues())); #ifndef JOYSTICKS ui->joystickCB->hide(); ui->joystickCB->setDisabled(true); ui->joystickcalButton->hide(); ui->joystickChkB->hide(); ui->label_11->hide(); #endif shrink(); }
//set an individual pin HIGH or LOW void Shiftduino::setPin(int index, int value){ _registers[index] = value; //set pins writeValues(); }
void RegionBuilder::write(const Streamline& streamline) { writeRecords(streamline); writeTimelines(); writeValues(); }