Exemplo n.º 1
0
        public static bool HasBeat(this Tempo tempo, FVec output)
        {
            if (tempo == null)
            {
                throw new ArgumentNullException(nameof(tempo));
            }

            if (output == null)
            {
                throw new ArgumentNullException(nameof(output));
            }

            return(!output[0].AlmostEquals(0.0f));
        }
Exemplo n.º 2
0
 private static extern TempoTatum aubio_tempo_was_tatum(
     [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(TempoMarshaler))] Tempo instance);
Exemplo n.º 3
0
 private static extern void del_aubio_tempo(
     [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(TempoMarshaler))] Tempo instance);
Exemplo n.º 4
0
 private static extern bool aubio_tempo_set_threshold(
     [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(TempoMarshaler))] Tempo instance,
     float threshold);
Exemplo n.º 5
0
 private static extern bool aubio_tempo_set_tatum_signature(
     [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(TempoMarshaler))] Tempo instance,
     uint signature);
Exemplo n.º 6
0
 private static extern bool aubio_tempo_set_delay(
     [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(TempoMarshaler))] Tempo instance,
     int delay);
Exemplo n.º 7
0
 private static extern float aubio_tempo_get_silence(
     [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(TempoMarshaler))] Tempo instance);
Exemplo n.º 8
0
 private static extern void aubio_tempo_do(
     [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(TempoMarshaler))] Tempo instance,
     [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(FVecMarshaler))] FVec input,
     [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(FVecMarshaler))] FVec output);