comparison jnmr/testApp.cpp @ 44:6c8a048720c3

improving functions in dynamic vector - to copy with changing offset in copyvector and the drawvector routine
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Wed, 01 Feb 2012 16:07:09 +0000
parents 60c1f0fbc8f4
children 90ad1817ca56
comparison
equal deleted inserted replaced
43:732ce4711159 44:6c8a048720c3
115 startPlaying(); 115 startPlaying();
116 printf("starting to PLAY!!!"); 116 printf("starting to PLAY!!!");
117 } 117 }
118 // printf("MIDI NOTE %i \n", newMidiOnPitch); 118 // printf("MIDI NOTE %i \n", newMidiOnPitch);
119 midiEvents.newNoteOnEvent(newMidiOnPitch, velocity, time); 119 midiEvents.newNoteOnEvent(newMidiOnPitch, velocity, time);
120 noteInStream.newNoteCounted(newMidiOnPitch); 120 noteInStream.newNoteCounted(newMidiOnPitch);//counts notes for an overall score
121 } 121 }
122 122
123 } 123 }
124 124
125 if ( m.getAddress() == "/setSpeedPrior" ) 125 if ( m.getAddress() == "/setSpeedPrior" )
711 // return 1; 711 // return 1;
712 // } 712 // }
713 713
714 std::string filename = midiFileName;//argv[1]; 714 std::string filename = midiFileName;//argv[1];
715 printf("Loading'%s'\n", midiFileName.c_str()); 715 printf("Loading'%s'\n", midiFileName.c_str());
716 // fileLoader.chopBeginning = true; 716
717 fileLoader.loadFile(filename, midiEvents); 717 fileLoader.loadFile(filename, midiEvents);
718 718
719 }//new end of load function 719 }//new end of load function
720 720
721 /* 721 /*