1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-10 16:43:33 +02:00

Fixed MIDI playback on Linux. Still need configure files for libscorealign and portmidi. (I tweaked makefiles by hand to build and test with EXPERIMENTAL_MIDI_OUT and EXPERIMENTAL_SCOREALIGN.) Also, I updated portmidi files, including some bug fixes from the portmidi project.

This commit is contained in:
rbdannenberg
2010-10-01 17:59:18 +00:00
parent 576dfe6653
commit 6fa857c3ae
39 changed files with 375 additions and 5373 deletions

View File

@@ -2,8 +2,10 @@
*
* 17-Jun-08 RBD created based on audiofilereader.cpp
*/
#include "assert.h"
#include "stdlib.h"
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "audioreader.h"
#include "allegro.h"
#include "scorealign.h"
@@ -75,5 +77,5 @@ void Audio_mixer_reader::print_info()
{
printf(" Audacity mixer at @ %p\n", mixer);
printf(" sample rate %g\n", get_sample_rate());
printf(" total frames %d\n", get_frames());
printf(" total frames %ld\n", get_frames());
}

View File

@@ -3,9 +3,11 @@
* 14-Jul-08 RBD
*/
#include "assert.h"
#include "stdio.h"
#include "math.h"
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "sautils.h"
#include "string.h"
#include <fstream>

View File

@@ -1,4 +1,9 @@
/* comp_chroma.cpp -- compute chroma distance
*
* 2008 RBD
*/
#include <string.h>
#include <math.h>
#include <fstream>
#include <algorithm>

View File

@@ -3,11 +3,12 @@
* scorealign
*
* Created by Roger Dannenberg on 10/20/07.
* Copyright 2007 __MyCompanyName__. All rights reserved.
*
*/
#include "assert.h"
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "comp_chroma.h"
#include "sautils.h"

View File

@@ -360,7 +360,7 @@ int NumWindowFuncs3()
return 4;
}
char *WindowFuncName3(int whichFunction)
const char *WindowFuncName3(int whichFunction)
{
switch (whichFunction) {
default:

View File

@@ -94,7 +94,7 @@ void WindowFunc3(int whichFunction, int NumSamples, float *data);
* Returns the name of the windowing function (for UI display)
*/
char *WindowFuncName3(int whichFunction);
const char *WindowFuncName3(int whichFunction);
/*
* Returns the number of windowing functions supported

View File

@@ -0,0 +1,40 @@
/*
* Scorealign: Chromagram and dynamic programming based audio alignment
*
* license.txt -- a copy of the Scorealign copyright notice and
* license information
*
* Latest version available at: http://sourceforge.net/projects/portmedia
*
* Copyright (c) 2008-2010 Roger B. Dannenberg
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files
* (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge,
* publish, distribute, sublicense, and/or sell copies of the Software,
* and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
/*
* The text above constitutes the entire Scorealign license; however,
* the PortMusic community also makes the following non-binding requests:
*
* Any person wishing to distribute modifications to the Software is
* requested to send the modifications to the original developer so that
* they can be incorporated into the canonical version. It is also
* requested that these non-binding requests be included along with the
* license above.
*/

View File

@@ -3,6 +3,8 @@
* 21-Jul-08 RBD
*/
#include <stdlib.h>
#include <string.h>
#include "allegro.h"
#include "audioreader.h"
#include "scorealign.h"