Skip to content

Commit e048035

Browse files
cleaning up debug messages
1 parent 2260907 commit e048035

File tree

3 files changed

+4
-23
lines changed

3 files changed

+4
-23
lines changed

plugins/MidiExport/MidiExport.cpp

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,8 @@ bool MidiExport::tryExport( const TrackContainer::TrackList &tracks, int tempo,
137137
{
138138
QDomElement note = nn.toElement();
139139
if (note.attribute("len", "0") == "0" || note.attribute("vol", "0") == "0") continue;
140-
#if 0
141-
qDebug() << ">>>> key " << note.attribute( "key", "0" )
142-
<< " " << note.attribute("len", "0") << " @"
143-
<< note.attribute("pos", "0");
144-
#endif
145-
mtrack.addNote(
140+
141+
mtrack.addNote(
146142
note.attribute("key", "0").toInt()+base_pitch
147143
, 100 * base_volume * (note.attribute("vol", "100").toDouble()/100)
148144
, (base_time+note.attribute("pos", "0").toDouble())/48
@@ -159,16 +155,6 @@ bool MidiExport::tryExport( const TrackContainer::TrackList &tracks, int tempo,
159155

160156
}
161157

162-
163-
164-
165-
void MidiExport::error()
166-
{
167-
//qDebug() << "MidiExport error: " << m_error ;
168-
}
169-
170-
171-
172158
extern "C"
173159
{
174160

plugins/MidiExport/MidiExport.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,6 @@ class MidiExport: public ExportFilter
4646

4747
virtual bool tryExport( const TrackContainer::TrackList &tracks, int tempo, const QString &filename );
4848

49-
private:
50-
51-
52-
void error( void );
53-
5449

5550
} ;
5651

plugins/MidiExport/MidiFile.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ struct Event
156156
writeBigEndian4(int(60000000.0 / tempo), fourbytes);
157157

158158
//printf("tempo of %x translates to ", tempo);
159-
for (int i=0; i<3; i++) printf("%02x ", fourbytes[i+1]);
160-
printf("\n");
159+
// for (int i=0; i<3; i++) printf("%02x ", fourbytes[i+1]);
160+
// printf("\n");
161161
buffer[size++] = fourbytes[1];
162162
buffer[size++] = fourbytes[2];
163163
buffer[size++] = fourbytes[3];

0 commit comments

Comments
 (0)