Example #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));
        }
Example #2
0
 private static extern TempoTatum aubio_tempo_was_tatum(
     [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(TempoMarshaler))] Tempo instance);
Example #3
0
 private static extern void del_aubio_tempo(
     [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(TempoMarshaler))] Tempo instance);
Example #4
0
 private static extern bool aubio_tempo_set_threshold(
     [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(TempoMarshaler))] Tempo instance,
     float threshold);
Example #5
0
 private static extern bool aubio_tempo_set_tatum_signature(
     [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(TempoMarshaler))] Tempo instance,
     uint signature);
Example #6
0
 private static extern bool aubio_tempo_set_delay(
     [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(TempoMarshaler))] Tempo instance,
     int delay);
Example #7
0
 private static extern float aubio_tempo_get_silence(
     [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(TempoMarshaler))] Tempo instance);
Example #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);