Move files to correct dir
This commit is contained in:
1 parent
874c66d6d1
commit
29d2dce3fc
8 files changed
+22
-35
No files matched your search
@@ -116,7 +116,7 @@ namespace Vocaluxe.Lib.Sound.Record.PitchTracker
|
||||
{
|
||||
Buffer.BlockCopy(data, 0, data2, 0, samplesPerBuffer * 2);
|
||||
analyzer.Input(data2);
|
||||
analyzer.GetNote(out _MaxVolume, _Weights[j]);
|
||||
analyzer.GetNote(out _MaxVolume, _Weights[i]);
|
||||
}
|
||||
sw.Stop();
|
||||
_SamplesPerSec[i] = (int)Math.Round(samplesPerBuffer * repeats / (sw.ElapsedMilliseconds / 1000.0));
|
||||
|
||||
@@ -4,6 +4,7 @@ namespace Vocaluxe.Lib.Sound.Record.PitchTracker
|
||||
{
|
||||
/// <summary>
|
||||
/// Pitchtracker (Pt) in C# that uses IIR filters for smoothing and an intelligent detection algorithm to reduce calculations
|
||||
/// DO NOT USE in 32 Bit! Due to floating point errors the filter will raise all values to NAN (TODO: FIX it!)
|
||||
/// </summary>
|
||||
class CPtSharp : CPitchTracker
|
||||
{
|
||||
|
||||
+1
-4
@@ -1,9 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Collections;
|
||||
|
||||
namespace Pitch
|
||||
namespace Vocaluxe.Lib.Sound.Record.PitchTracker.Pitch
|
||||
{
|
||||
public class CircularBuffer<T> : IDisposable
|
||||
{
|
||||
+11
-14
@@ -1,9 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Pitch
|
||||
namespace Vocaluxe.Lib.Sound.Record.PitchTracker.Pitch
|
||||
{
|
||||
public static class Extensions
|
||||
{
|
||||
@@ -12,7 +9,7 @@ namespace Pitch
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
/// <param name="buffer"></param>
|
||||
static public void Clear(this float[] buffer)
|
||||
public static void Clear(this float[] buffer)
|
||||
{
|
||||
Array.Clear(buffer, 0, buffer.Length);
|
||||
}
|
||||
@@ -22,7 +19,7 @@ namespace Pitch
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
/// <param name="buffer"></param>
|
||||
static public void Clear(this double[] buffer)
|
||||
public static void Clear(this double[] buffer)
|
||||
{
|
||||
Array.Clear(buffer, 0, buffer.Length);
|
||||
}
|
||||
@@ -35,15 +32,15 @@ namespace Pitch
|
||||
/// <param name="shiftBy"></param>
|
||||
/// <param name="startIdx"></param>
|
||||
/// <param name="length"></param>
|
||||
static public void Copy(this float[] fromBuffer, float[] toBuffer, int fromStart, int toStart, int length)
|
||||
public static void Copy(this float[] fromBuffer, float[] toBuffer, int fromStart, int toStart, int length)
|
||||
{
|
||||
if (toBuffer == null || fromBuffer.Length == 0 || toBuffer.Length == 0)
|
||||
return;
|
||||
|
||||
var fromBegIdx = fromStart;
|
||||
var fromEndIdx = fromStart + length;
|
||||
var toBegIdx = toStart;
|
||||
var toEndIdx = toStart + length;
|
||||
int fromBegIdx = fromStart;
|
||||
int fromEndIdx = fromStart + length;
|
||||
int toBegIdx = toStart;
|
||||
int toEndIdx = toStart + length;
|
||||
|
||||
if (fromBegIdx < 0)
|
||||
{
|
||||
@@ -88,7 +85,7 @@ namespace Pitch
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
/// <param name="buffer"></param>
|
||||
static public void Clear(this float[] buffer, int startIdx, int endIdx)
|
||||
public static void Clear(this float[] buffer, int startIdx, int endIdx)
|
||||
{
|
||||
Array.Clear(buffer, startIdx, endIdx - startIdx + 1);
|
||||
}
|
||||
@@ -99,10 +96,10 @@ namespace Pitch
|
||||
/// <typeparam name="T"></typeparam>
|
||||
/// <param name="buffer"></param>
|
||||
/// <param name="?"></param>
|
||||
static public void Fill(this double[] buffer, double value)
|
||||
public static void Fill(this double[] buffer, double value)
|
||||
{
|
||||
for (int idx = 0; idx < buffer.Length; idx++)
|
||||
buffer[idx] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-4
@@ -1,9 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Pitch
|
||||
namespace Vocaluxe.Lib.Sound.Record.PitchTracker.Pitch
|
||||
{
|
||||
/// <summary>
|
||||
/// Infinite impulse response filter (old style analog filters)
|
||||
+1
-5
@@ -1,10 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Collections;
|
||||
|
||||
namespace Pitch
|
||||
namespace Vocaluxe.Lib.Sound.Record.PitchTracker.Pitch
|
||||
{
|
||||
/// <summary>
|
||||
/// Pitch related DSP
|
||||
+1
-2
@@ -1,9 +1,8 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections;
|
||||
using Pitch;
|
||||
|
||||
namespace Vocaluxe.Lib.Sound.Record.Pitch
|
||||
namespace Vocaluxe.Lib.Sound.Record.PitchTracker.Pitch
|
||||
{
|
||||
/// <summary>
|
||||
/// Tracks pitch
|
||||
@@ -273,11 +273,11 @@
|
||||
<Compile Include="Lib\Sound\Record\PitchTracker\CPtDyWa.cs" />
|
||||
<Compile Include="Lib\Sound\Record\PitchTracker\CPtSharp.cs" />
|
||||
<Compile Include="Lib\Sound\Record\PitchTracker\IPitchTracker.cs" />
|
||||
<Compile Include="Lib\Sound\Record\Pitch\CircularBuffer.cs" />
|
||||
<Compile Include="Lib\Sound\Record\Pitch\Extensions.cs" />
|
||||
<Compile Include="Lib\Sound\Record\Pitch\IIRFilter.cs" />
|
||||
<Compile Include="Lib\Sound\Record\Pitch\PitchDsp.cs" />
|
||||
<Compile Include="Lib\Sound\Record\Pitch\PitchTracker.cs" />
|
||||
<Compile Include="Lib\Sound\Record\PitchTracker\Pitch\CircularBuffer.cs" />
|
||||
<Compile Include="Lib\Sound\Record\PitchTracker\Pitch\Extensions.cs" />
|
||||
<Compile Include="Lib\Sound\Record\PitchTracker\Pitch\IIRFilter.cs" />
|
||||
<Compile Include="Lib\Sound\Record\PitchTracker\Pitch\PitchDsp.cs" />
|
||||
<Compile Include="Lib\Sound\Record\PitchTracker\Pitch\PitchTracker.cs" />
|
||||
<Compile Include="Lib\Video\Acinerella\CDecoder.cs" />
|
||||
<Compile Include="Lib\Video\Acinerella\CDecoderThread.cs" />
|
||||
<Compile Include="Lib\Video\Acinerella\CFramebuffer.cs" />
|
||||
|
||||
Reference in new issue
Block a user