本文整理汇总了C++中FileXML::append_newline方法的典型用法代码示例。如果您正苦于以下问题:C++ FileXML::append_newline方法的具体用法?C++ FileXML::append_newline怎么用?C++ FileXML::append_newline使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FileXML
的用法示例。
在下文中一共展示了FileXML::append_newline方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: save_data
void ParametricEQ::save_data(KeyFrame *keyframe)
{
FileXML output;
output.set_shared_output(keyframe->get_data(), MESSAGESIZE);
output.tag.set_title("PARAMETRICEQ");
output.tag.set_property("WETNESS", config.wetness);
output.tag.set_property("WINDOW_SIZE", config.window_size);
output.append_tag();
output.append_newline();
for(int i = 0; i < BANDS; i++)
{
output.tag.set_title("BAND");
output.tag.set_property("NUMBER", i);
output.tag.set_property("FREQ", config.band[i].freq);
output.tag.set_property("QUALITY", config.band[i].quality);
output.tag.set_property("MAGNITUDE", config.band[i].magnitude);
output.tag.set_property("MODE", config.band[i].mode);
output.append_tag();
output.append_newline();
}
output.terminate_string();
}
示例2: save_data
void CompressorEffect::save_data(KeyFrame *keyframe)
{
FileXML output;
output.set_shared_string(keyframe->get_data(), MESSAGESIZE);
output.tag.set_title("COMPRESSOR");
output.tag.set_property("TRIGGER", config.trigger);
output.tag.set_property("REACTION_LEN", config.reaction_len);
output.tag.set_property("DECAY_LEN", config.decay_len);
output.tag.set_property("SMOOTHING_ONLY", config.smoothing_only);
output.tag.set_property("INPUT", config.input);
output.append_tag();
output.append_newline();
for(int i = 0; i < config.levels.total; i++)
{
output.tag.set_title("LEVEL");
output.tag.set_property("X", config.levels.values[i].x);
output.tag.set_property("Y", config.levels.values[i].y);
output.append_tag();
output.append_newline();
}
output.terminate_string();
}
示例3: fopen
int Commercials::
write_ads(const char *filename)
{
char index_filename[BCTEXTLEN], source_filename[BCTEXTLEN];
IndexFile::get_index_filename(source_filename,
mwindow->preferences->index_directory, index_filename,
filename, ".ads");
FILE *fp = fopen(index_filename, "wb");
if( fp != 0 ) {
FileXML xml;
xml.tag.set_title("ADS");
xml.append_tag();
xml.append_newline();
int trks = tracks.size();
for( int trk=0; trk<trks; ++trk )
tracks.get(trk)->save(xml);
xml.tag.set_title("/ADS");
xml.append_tag();
xml.append_newline();
xml.terminate_string();
xml.write_to_file(fp);
fclose(fp);
}
return 0;
}
示例4: save_data
void DelayAudio::save_data(KeyFrame *keyframe)
{
FileXML output;
output.set_shared_string(keyframe->get_data(), MESSAGESIZE);
output.tag.set_title("DELAYAUDIO");
output.tag.set_property("LENGTH", (double)config.length);
output.append_tag();
output.append_newline();
output.terminate_string();
}
示例5: save_data
void OverlayAudio::save_data(KeyFrame *keyframe)
{
FileXML output;
output.set_shared_output(keyframe->get_data(), MESSAGESIZE);
output.tag.set_title("OVERLAY");
output.tag.set_property("OUTPUT", config.output_track);
output.tag.set_property("MODE", config.mode);
output.append_tag();
output.append_newline();
output.terminate_string();
}
示例6: save_data
void PitchEffect::save_data(KeyFrame *keyframe)
{
FileXML output;
output.set_shared_output(keyframe->get_data(), MESSAGESIZE);
output.tag.set_title("PITCH");
output.tag.set_property("SCALE", config.scale);
output.tag.set_property("SIZE", config.size);
output.append_tag();
output.append_newline();
output.terminate_string();
}
示例7: save_data
void SoundLevelEffect::save_data(KeyFrame *keyframe)
{
FileXML output;
output.set_shared_string(keyframe->data, MESSAGESIZE);
output.tag.set_title("SOUNDLEVEL");
output.tag.set_property("DURATION", config.duration);
output.append_tag();
output.tag.set_title("/SOUNDLEVEL");
output.append_tag();
output.append_newline();
output.terminate_string();
}
示例8: save_data
void Despike::save_data(KeyFrame *keyframe)
{
FileXML output;
// cause xml file to store data directly in text
output.set_shared_output(keyframe->get_data(), MESSAGESIZE);
output.tag.set_title("DESPIKE");
output.tag.set_property("LEVEL", config.level);
output.tag.set_property("SLOPE", config.slope);
output.append_tag();
output.append_newline();
output.terminate_string();
}
示例9: save_data
void GraphicEQ::save_data(KeyFrame *keyframe)
{
FileXML output;
output.set_shared_string(keyframe->get_data(), MESSAGESIZE);
output.tag.set_title("GRAPHICEQ");
output.tag.set_property("WINDOW_SIZE", config.window_size);
output.tag.set_property("W", w);
output.tag.set_property("H", h);
output.append_tag();
output.append_newline();
for(int i = 0; i < config.points.total; i++)
{
output.tag.set_title("POINT");
output.tag.set_property("X", config.points.values[i]->freq);
output.tag.set_property("Y", config.points.values[i]->value);
output.append_tag();
}
if(config.points.total) output.append_newline();
output.terminate_string();
}
示例10: save_data
void Vocoder::save_data(KeyFrame *keyframe)
{
FileXML output;
output.set_shared_output(keyframe->get_data(), MESSAGESIZE);
output.tag.set_title("VOCODER");
output.tag.set_property("WETNESS", config.wetness);
output.tag.set_property("LEVEL", config.level);
output.tag.set_property("OUTPUT", config.carrier_track);
output.tag.set_property("BANDS", config.bands);
output.append_tag();
output.append_newline();
output.terminate_string();
}
示例11: save_data
void ShiftInterlaceMain::save_data(KeyFrame *keyframe)
{
FileXML output;
// cause data to be stored directly in text
output.set_shared_string(keyframe->data, MESSAGESIZE);
output.tag.set_title("SHIFTINTERLACE");
output.tag.set_property("ODD_OFFSET", config.odd_offset);
output.tag.set_property("EVEN_OFFSET", config.even_offset);
output.append_tag();
output.tag.set_title("/SHIFTINTERLACE");
output.append_tag();
output.append_newline();
output.terminate_string();
// data is now in *text
}
示例12: save_data
void Piano::save_data(KeyFrame *keyframe)
{
FileXML output;
// cause htal file to store data directly in text
output.set_shared_output(keyframe->get_data(), MESSAGESIZE);
output.tag.set_title("SYNTH");
output.tag.set_property("WETNESS", config.wetness);
output.tag.set_property("BASEFREQ", config.base_freq);
output.tag.set_property("WAVEFUNCTION", config.wavefunction);
output.tag.set_property("OSCILLATORS", config.oscillator_config.total);
output.append_tag();
output.append_newline();
for(int i = 0; i < config.oscillator_config.total; i++)
{
config.oscillator_config.values[i]->save_data(&output);
}
output.terminate_string();
// data is now in *text
}
示例13: save_data
void Synth::save_data(KeyFrame *keyframe)
{
FileXML output;
char string[BCTEXTLEN];
// cause htal file to store data directly in text
output.set_shared_output(keyframe->get_data(), MESSAGESIZE);
output.tag.set_title("SYNTH");
output.tag.set_property("WETNESS", config.wetness);
output.tag.set_property("WINDOW_W", window_w);
output.tag.set_property("WINDOW_H", window_h);
output.tag.set_property("MOMENTARY_NOTES", config.momentary_notes);
for(int i = 0; i < MAX_FREQS; i++)
{
// if(!EQUIV(config.base_freq[i], 0))
{
sprintf(string, "BASEFREQ_%d", i);
output.tag.set_property(string, config.base_freq[i]);
//printf("Synth::save_data %d %s\n", __LINE__, string);
}
}
output.tag.set_property("WAVEFUNCTION", config.wavefunction);
output.tag.set_property("OSCILLATORS", config.oscillator_config.total);
output.append_tag();
output.append_newline();
for(int i = 0; i < config.oscillator_config.total; i++)
{
config.oscillator_config.values[i]->save_data(&output);
}
output.terminate_string();
//printf("Synth::save_data %d %s\n", __LINE__, output.string);
// data is now in *text
}