Revision 5:7fde3cc109dc main.cpp

View differences:

main.cpp
40 40
	return 1;
41 41
    }
42 42

  
43
    QString filename = argv[1];
43
    std::string filename = argv[1];
44 44

  
45 45
    MIDIFileReader fr(filename);
46 46
    if (!fr.isOK()) {
47
	std::cerr << "Error: " << fr.getError().toStdString() << std::endl;
47
	std::cerr << "Error: " << fr.getError().c_str() << std::endl;
48 48
	return 1;
49 49
    }
50 50

  
......
70 70

  
71 71
    for (MIDIComposition::const_iterator i = c.begin(); i != c.end(); ++i) {
72 72
	
73
	cout << "Start of track: " << i.key()+1 << endl;
73
	cout << "Start of track: " << i->first+1 << endl;
74 74

  
75
	for (MIDITrack::const_iterator j = i->begin(); j != i->end(); ++j) {
75
	for (MIDITrack::const_iterator j = i->second.begin(); j != i->second.end(); ++j) {
76 76

  
77 77
	    unsigned int t = j->getTime();
78 78
	    int ch = j->getChannelNumber();

Also available in: Unified diff