Init Neon for generating N-API bindings
This commit is contained in:
parent
6d93ed3a70
commit
b4d5019d83
|
@ -13,7 +13,7 @@ readme = "README.md"
|
||||||
exclude = ["index.node"]
|
exclude = ["index.node"]
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
crate-type = ["cdylib"]
|
crate-type = ["rlib", "cdylib"]
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
features = ["bliss-audio-aubio-rs/rustdoc", "library"]
|
features = ["bliss-audio-aubio-rs/rustdoc", "library"]
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
use bliss_audio::Song;
|
use bliss_rs::bliss_lib::Song;
|
||||||
use std::env;
|
use std::env;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
use bliss_audio::Song;
|
use bliss_rs::bliss_lib::Song;
|
||||||
use std::env;
|
use std::env;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -365,7 +365,7 @@ fn chroma_stft(
|
||||||
mod test {
|
mod test {
|
||||||
use super::*;
|
use super::*;
|
||||||
use crate::utils::stft;
|
use crate::utils::stft;
|
||||||
use crate::{Song, SAMPLE_RATE};
|
use crate::bliss_lib::{Song, SAMPLE_RATE};
|
||||||
use ndarray::{arr1, arr2, Array2};
|
use ndarray::{arr1, arr2, Array2};
|
||||||
use ndarray_npy::ReadNpyExt;
|
use ndarray_npy::ReadNpyExt;
|
||||||
use std::fs::File;
|
use std::fs::File;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
mod bliss_lib;
|
pub mod bliss_lib;
|
||||||
mod chroma;
|
mod chroma;
|
||||||
pub mod cue;
|
pub mod cue;
|
||||||
#[cfg(feature = "library")]
|
#[cfg(feature = "library")]
|
||||||
|
|
|
@ -63,7 +63,7 @@ impl Normalize for LoudnessDesc {
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
use crate::Song;
|
use crate::bliss_lib::Song;
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
|
@ -432,7 +432,7 @@ where
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod test {
|
mod test {
|
||||||
use super::*;
|
use super::*;
|
||||||
use crate::Analysis;
|
use crate::bliss_lib::Analysis;
|
||||||
use ndarray::arr1;
|
use ndarray::arr1;
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
|
|
||||||
|
|
|
@ -94,7 +94,7 @@ impl Normalize for BPMDesc {
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
use crate::{Song, SAMPLE_RATE};
|
use crate::bliss_lib::{Song, SAMPLE_RATE};
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
|
@ -258,7 +258,7 @@ impl Normalize for ZeroCrossingRateDesc {
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
use crate::Song;
|
use crate::bliss_lib::Song;
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
|
@ -165,7 +165,7 @@ pub(crate) fn convolve(input: &Array1<f64>, kernel: &Array1<f64>) -> Array1<f64>
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
use crate::Song;
|
use crate::bliss_lib::Song;
|
||||||
use ndarray::Array2;
|
use ndarray::Array2;
|
||||||
use ndarray::{arr1, Array};
|
use ndarray::{arr1, Array};
|
||||||
use ndarray_npy::ReadNpyExt;
|
use ndarray_npy::ReadNpyExt;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user