Add Zyn formant motion workout
This commit is contained in:
parent
a7e1d75c0a
commit
788e72e177
9 changed files with 248 additions and 15 deletions
|
|
@ -65,6 +65,22 @@ public sealed class PatchScriptTests
|
|||
Assert.Equal(.01f, lane.Modulator.Bias, 5);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ParserSupportsVoiceVowelFrames()
|
||||
{
|
||||
var patch = PatchScript.Parse("v w=saw f=90 fmix=.7 vowel_hz=.8 vowels=600:90:1,1200:160:.7|500:80:1,900:120:.8");
|
||||
|
||||
var voice = Assert.Single(patch.Voices);
|
||||
Assert.Equal(2, voice.FormantFrames.Count);
|
||||
Assert.Equal(2, voice.FormantFrames[0].Formants.Count);
|
||||
Assert.Equal(.8f, voice.FormantFrameRateHz, 5);
|
||||
|
||||
var faust = FaustEmitter.Emit(patch).Source;
|
||||
Assert.Contains("wrap01(age * 0.8)", faust);
|
||||
Assert.Contains("fi.resonbp(600", faust);
|
||||
Assert.Contains("fi.resonbp(500", faust);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ParserPreservesDeclaredPatchParameters()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue