Skip to content

Commit b2da172

Browse files
authored
Version 2.6.2 (#757)
Adds new readable and writable property to the AutomaticVocalPitchCorrect class called clamp.
1 parent a55c5f4 commit b2da172

File tree

56 files changed

+40
-28
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+40
-28
lines changed

Examples_Android/SuperpoweredCrossExample/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
/local.properties
44
/.idea/workspace.xml
55
/.idea/libraries
6+
.cxx/
67
.DS_Store
78
/build
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
*.iml
2-
.gradle
2+
.gradle
33
.idea
44
/local.properties
55
/.idea/workspace.xml
@@ -8,3 +8,4 @@
88
/build
99
/captures
1010
.externalNativeBuild
11+
.cxx

Examples_Android/SuperpoweredPlayer/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
*.iml
22
.gradle
3-
.idea
3+
.idea
4+
.cxx/
45
/local.properties
56
/.idea/workspace.xml
67
/.idea/libraries

Examples_Android/SuperpoweredPlayer/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ buildscript {
77
jcenter()
88
}
99
dependencies {
10-
classpath 'com.android.tools.build:gradle:7.2.2'
10+
classpath 'com.android.tools.build:gradle:7.4.0'
1111

1212

1313
// NOTE: Do not place your application dependencies here; they belong

Examples_Android/SuperpoweredPlayer/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip

Examples_Android/SuperpoweredRecorder/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@
77
/build
88
/captures
99
.externalNativeBuild
10+
.idea
11+
.cxx

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,4 +236,4 @@ Superpowered FFT benefits from ideas in Construction of a High-Performance FFT b
236236

237237
The Superpowered MP3 and AAC decoder benefits from optimizations by Ken Cooke.
238238

239-
Superpowered version 2.6.0
239+
Superpowered version 2.6.2

Superpowered/SuperpoweredAutomaticVocalPitchCorrection.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,19 @@ class AutomaticVocalPitchCorrection {
4343
MEDIUM, ///< medium pitch correction
4444
EXTREME ///< classic pitch correction effect
4545
} TunerSpeed;
46+
47+
typedef enum TunerClamp {
48+
OFF, ///< Always switch to the nearest key in the selected scale as output note
49+
LOOSE, ///< Switch if the detected key is 0.7 semitones above or below the current output note.
50+
///< In other words, establish a stable area 1.4 semitones wide centered around the current note.
51+
TIGHT ///< Switch if the detected key is 1.2 semitones above or below the current output note, stable area centered around current note is 2.4 semitones
52+
} TuneClamp;
4653

4754
TunerScale scale; ///< Music scale. Default: CHROMATIC (all twelve keys of the octave are allowed)
4855
TunerRange range; ///< Vocal range for pitch detection. Default: WIDE (40 to 3000 Hz)
4956
TunerSpeed speed; ///< Speed for tune correction. Default: EXTREME
57+
TunerClamp clamp; ///< The clamp setting controls the incoming pitch variance threshold for switching to a new note for the output. Default: LOOSE
58+
5059
float frequencyOfA; ///< Frequency for middle A, between 410-470 Hz. Default: 440
5160
unsigned int samplerate; ///< Input/output sample rate in Hz. Default: 48000
5261

-18.7 KB
Binary file not shown.
-63.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)