After some hour googling session, looks it is no any nyquist pluging for music notes.
I try make a simple plugin, nyquist plugin “convert music not to sine wave, using musical notation, lenght, and volume”. Of course, best if, if it is possible put string “A4 100 100, A#4 200 80, C#5 300 100”. Musical note in standard form, A4 (440 Hz middle A), A4#/A#4 etc etc. Lenght in millisecond. Volume in procent. And, of course, pauses.
But, reason this type plugin is not available, I must make my own. It is enough if I can put one note, and audacity convert it to right frequency sine wave. So, input string is about “A4 100 100”, middle A, lenght in millisecond, volume. A4#, maybe # is rejected, so… A4X maybe. PAUSE is maybe “P 100 0”, but: Pause is note without frequency and volume.
Plugin is too simple, so it is difficult to found samples. Musical notes need any list, so maybe use any “cond” etc… in “dtmf”-plugin I found any “list”, but it looks quite difficult to use. Maybe good start point is internal plugin “generate tone”, so, eg. “sine wave/volume/lenght”, but it code is not available. (Say google…)
This is my start code, but this not work- is it any place, where is exact and simple examples of nyquist codes? I think… any “huge nyquist sample stock”?
;nyquist plug-in
;version 1
;type generate
;name "tone Generator freq and lenght"
;action "tehdaan aanta"
;control keys "Tone string" string "" "440 10"
(defun musicallynotes (musicnote notelenght)
(setf musicnotefreq
(cond
((musicnotefreq #\A4) 440)
( T 0)))
(cond
((musicnotefreq #\Ax4) 466.16)
( T 0)))
osc (musicnotefreq notelenght)