Waveform analysis/Doh ray me: Difference between revisions

From Rosetta Code
Content added Content deleted
m (added omits)
m (omissions added)
Line 7: Line 7:


{{omit from|AWK}}
{{omit from|AWK}}
{{omit from|Blast}}
{{omit from|AutoHotkey}}
{{omit from|AutoHotkey}}
{{omit from|Befunge}}
{{omit from|Befunge}}
Line 13: Line 14:
{{omit from|Lotus 123 Macro Scripting}}
{{omit from|Lotus 123 Macro Scripting}}
{{omit from|Openscad}}
{{omit from|Openscad}}
{{omit from|TPP}}
{{omit from|UNIX Shell}}
{{omit from|UNIX Shell}}



Revision as of 00:38, 4 November 2012

Waveform analysis/Doh ray me is a draft programming task. It is not yet considered ready to be promoted as a complete task, for reasons that should be found in its talk page.

Analyse a given section of monophonic audio waveform, for average pitch and output one of the sol-fa trigraphs (like these, except each has three letters) corresponding to average pitch level: Doh, Ray, Mee, Fah, Soh, Lah, Tee, doh.

Optionally, follow the trigraph with a plus or minus symbol, to indicate whether the note falls above or below the solfa. Extend the scale to cover 21 notes: DOH, RAY, MEE, FAH, SOH, LAH, TEE, Doh, Ray, Mee, Fah, Soh, Lah, Tee, doh, ray, mee, fah, soh, lah, tee.

A calibration parameter can be provided to suit different voices. This can be provided as a variable defined within the code.