Skip to content

Commit

Permalink
libmusic 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrgregor committed Jun 7, 2018
0 parents commit 7e0c30b
Show file tree
Hide file tree
Showing 18 changed files with 4,477 additions and 0 deletions.
65 changes: 65 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
#SUBDIRS = test
dist_doc_DATA = README.txt

AM_CFLAGS = -I./src -Iinclude -I$(srcdir)/include
lib_LTLIBRARIES = libmusic.la
libmusic_la_SOURCES = src/lm.c
include_HEADERS = include/lm.h
libmusic_la_LDFLAGS = -version-info 1:0:0

bin_PROGRAMS = lmtool
lmtool_SOURCES = src/lmtool.c
lmtool_LDADD = -lmusic

check_PROGRAMS = lmtest1 lmtest2 lmtest3 lmtest4 lmtest5 lmtest6 lmtest7 lmtest8 lmtest9 lmtest10 lmtest11
TESTS = $(check_PROGRAMS)

# MUSIC algorithm tests
LIBS += -llapack -lm

# Test internals

lmtest1_SOURCES = test/lmtest1.c src/lm.c lm.h
lmtest1_CFLAGS = -Iinclude

# Test SVD

lmtest2_SOURCES = test/lmtest2.c src/lm.c lm.h
lmtest2_CFLAGS = -Iinclude

lmtest3_SOURCES = test/lmtest3.c src/lm.c lm.h
lmtest3_CFLAGS = -Iinclude

lmtest4_SOURCES = test/lmtest4.c src/lm.c lm.h
lmtest4_CFLAGS = -Iinclude

# Test correlation

lmtest5_SOURCES = test/lmtest5.c src/lm.c lm.h
lmtest5_CFLAGS = -Iinclude

# Test MUSIC algorithm, lm_detect

lmtest6_SOURCES = test/lmtest6.c src/lm.c lm.h
lmtest6_CFLAGS = -Iinclude

lmtest7_SOURCES = test/lmtest7.c src/lm.c lm.h
lmtest7_CFLAGS = -Iinclude

lmtest8_SOURCES = test/lmtest8.c src/lm.c lm.h
lmtest8_CFLAGS = -Iinclude

# Test DTMF detect with MUSIC algorithm, lm_standard_init and lm_dtmf_init

lmtest9_SOURCES = test/lmtest9.c src/lm.c lm.h
lmtest9_CFLAGS = -Iinclude

# Test DTMF detect with MUSIC algorithm, lm_dtmf_detect, on reference data

lmtest10_SOURCES = test/lmtest10.c src/lm.c lm.h
lmtest10_CFLAGS = -Iinclude

# Test DTMF detect with MUSIC algorithm, lm_dtmf_detect, external file

lmtest11_SOURCES = test/lmtest11.c src/lm.c lm.h
lmtest11_CFLAGS = -Iinclude
70 changes: 70 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
/*
* This file is part of libmusic - frequency detection library.
*
* Copyright (c) 2018 Data And Signal - IT Solutions
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials provided
* with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Piotr Gregor <[email protected]>
* Data And Signal - IT Solutions
*
*/


libmusic

Frequency detection using MUSIC algortihm.


Sources

git clone https://github.com/dataandsignal/libmusic.git


Compilation

cd libmusic
sudo apt-get update
sudo apt-get -y install automake autoconf
sudo apt-get -y install libblas-dev liblapack-dev
autoreconf --install
autoconf
automake --add-missing
./configure
make (for debug: make CFLAGS="-ggdb -O0")
make test
make test check (for autotesting)
sudo make install (will install libmusic to /usr/local/lib)


Contact

Data And Signal - IT Solutions, JUNE 2018
[email protected]
[email protected]

bugs: https://github.com/dataandsignal/libmusic/issues
13 changes: 13 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
AC_INIT([libmusic], [1.0.0], [[email protected], bugs: https://github.com/spinlockirqsave/libmusic/issues], [libmusic], [dataandsignal.com])
AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror foreign])
AC_PROG_CC

AM_PROG_AR
LT_INIT

AC_CANONICAL_HOST

AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([Makefile])

AC_OUTPUT
Binary file added fraction-131-140_16bit_s.raw
Binary file not shown.
Loading

0 comments on commit 7e0c30b

Please sign in to comment.