Update of /cvsroot/audacity/lib-src/libscorealign
In directory 
23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv11472/lib-src/libscorealign

Modified Files:
        gen_chroma.cpp libscorealign.vcproj 
Log Message:
Added the 'portmidi' library (used for MIDI playback) to the repository.
Edited AudioIO.cpp to allow for MIDI playback (all changes are wrapped within 
EXPERIMENTAL_MIDI_OUT).
Edited MidiIOprefs.cpp to allow changing MIDI devices via the MIDI preferences 
panel.
Other various MIDI-related bug fixes in portmidi, portsmf, and libscorealign.

Index: gen_chroma.cpp
===================================================================
RCS file: /cvsroot/audacity/lib-src/libscorealign/gen_chroma.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- gen_chroma.cpp      6 Aug 2008 17:57:56 -0000       1.1
+++ gen_chroma.cpp      24 Jun 2009 20:37:24 -0000      1.2
@@ -409,8 +409,9 @@
     //set up the chrom_energy array;
     (*chrom_energy) = ALLOC(float, frame_count * (CHROMA_BIN_COUNT + 1));
     Event_list_ptr list = NULL;
-    seq.iteration_begin();
-    Alg_event_ptr event = seq.iteration_next();
+    Alg_iterator iterator(&seq, false);
+    iterator.begin();
+    Alg_event_ptr event = iterator.next();
     int cv_index;
     for (cv_index = 0; cv_index < frame_count; cv_index++) {
                
@@ -428,7 +429,7 @@
             if (event->is_note()) {
                 list = new Event_list(event, list);
             }
-            event = seq.iteration_next();
+            event = iterator.next();
         }
         /* remove notes that are no longer sounding */
         Event_list_ptr *ptr = &list;
@@ -467,7 +468,7 @@
         list = list->next;
         delete temp;
     }
-    seq.iteration_end();
+    iterator.end();
     if (verbose)
         printf("\nGenerated Chroma. file%d_frames is %i\n", id, file1_frames);
     return frame_count;

Index: libscorealign.vcproj
===================================================================
RCS file: /cvsroot/audacity/lib-src/libscorealign/libscorealign.vcproj,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- libscorealign.vcproj        8 Aug 2008 06:24:45 -0000       1.3
+++ libscorealign.vcproj        24 Jun 2009 20:37:24 -0000      1.4
@@ -1,11 +1,12 @@
 <?xml version="1.0" encoding="Windows-1252"?>
 <VisualStudioProject
        ProjectType="Visual C++"
-       Version="8.00"
+       Version="9.00"
        Name="libscorealign"
        ProjectGUID="{5F04DE5D-0A34-496E-8A34-BE30BA9C70A1}"
        RootNamespace="scorealign"
        Keyword="Win32Proj"
+       TargetFrameworkVersion="131072"
        >
        <Platforms>
                <Platform


------------------------------------------------------------------------------
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to