[Audacity-nyquist] re Range of MIDI numbers
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
From: David R. S. <dav...@sh...> - 2005-11-28 04:26:01
|
Thanks Edgar, I wanted the range for a user-defined range of MIDI numbers, maximum range 20Hz to 20kHz... it'll be easy to calculate now that you reminded me of hz-to-step function. Yes, I've used fractional step numbers. thanks David > Message: 2 > Date: Sun, 27 Nov 2005 10:23:33 +0100 > From: edg...@we... > To: aud...@li... > Subject: Re: [Audacity-nyquist] Range of MIDI numbers? > Organization: http://freemail.web.de/ > Reply-To: aud...@li... > > > Hi David, > > according to the MIDI specification the lowest is MIDI Number 0 that > equals to C0 and the highest is MIDI number 127 that equals to G10 > > But I haven't tested this in Audacity right now. > > - edgar > Message: 3 > Date: Sun, 27 Nov 2005 13:45:16 +0100 > From: edg...@we... > To: aud...@li... > Subject: Re: [Audacity-nyquist] Range of MIDI numbers? > Organization: http://freemail.web.de/ > Reply-To: aud...@li... > > > Hi David, > > answer part two: > > just tested with Audacity 1.2.3 and the Nyquist prompt: > > (osc 0) gives a sine wave with a frequency od 8.175 Hz (very low) > (osc 127) gives a sine wave with a frequency of 12543 Hz (very high) > > but with nyquist you can go further: > > (osc 135) gives an (aliased) frequency of 19912 Hz (approx. 20 kHz) > (osc -10) gives a frequency of 4.588 Hz. It's so low that I can only see > the speakers moving but I cannot hear anything. > > You can calculate the frequency with (step-to-hz midi-number) > or the midi number out of a frequency with (hz-to-step frequency) > > I think the MIDI functions in Nyquist are only limited by the XLisp range > of FIXNUMS or FLONUMS. I think in Nyquist you even can have fractional > MIDI numbers. > > More experiments have to follow. > > - edgar |