예제 #1
0
파일: song.cpp 프로젝트: fundamental/ttrk
void SongChannel::copyTo( SongChannel *chan ) const
{
	int i;
	for( i = 0; i < SongLen; ++i ) {
		chan->songdata[ i ] = songdata[ i ];
	}
	for( i = 0; i < SongMaxPat; ++i ) {
		patterns[ i ]->copyTo(chan->patterns[ i ]);
	}
	chan->setName(getName());
	chan->setVolume(getVolume());
	chan->setMidiChannel(getMidiChannel());
	chan->setVelocity(getVelocity());
}
예제 #2
0
const String getMidiMessageAsLogString (const MidiMessage &m, const bool name, const bool channel, const bool number, const bool value, const bool timestamp, const bool rawData, const bool rawInDecimal, const bool rawDataSize)
{
	return ((timestamp ? getTimestamp(m) : "") + (rawDataSize ? getRawDataSize(m) : "") + (name ? getName(m) : "") + (channel ? getMidiChannel(m) : "") + (number ? getMidiNumber(m) : "") + (value ? getMidiValue(m) : "") + (rawData ? getRawData(m,rawInDecimal) : ""));
}