wavetables

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revisionBoth sides next revision
wavetables [2020/10/23 08:04] espiegel123wavetables [2020/10/23 08:20] – [Figuring out the frequency] rs2000
Line 24: Line 24:
  
 Most wavetables use single cycle waveforms that are multiples of 512, 1024 or 2048 samples. At commonly used sample rates (such as 44.1 kHz), there isn't a note (such as A 440Hz or Middle C) whose frequency results in a single cycle waveform of this length. So, if you want to generate waveforms for constructing wavetables, you need to use tools that let you specify a very precise frequency (such as 43.06640625 Hz) or you need to find a way to time stretch waveforms to be of a precise length in samples. Most wavetables use single cycle waveforms that are multiples of 512, 1024 or 2048 samples. At commonly used sample rates (such as 44.1 kHz), there isn't a note (such as A 440Hz or Middle C) whose frequency results in a single cycle waveform of this length. So, if you want to generate waveforms for constructing wavetables, you need to use tools that let you specify a very precise frequency (such as 43.06640625 Hz) or you need to find a way to time stretch waveforms to be of a precise length in samples.
 +
 +Another possibility is to use a wave editor to play a looped section, adjust the loop length until the loop sounds smooth (ideally close to but not necessarily exactly 2048 samples long) and re-sample it to a new sampling frequency that will achieve exactly 2048 samples length.
  
 The AuGEN X iOS app allow you to enter a frequency precise enough to generate samples of the correct length. The frequency depends on the sample rate of your iOS device. The formula is: (Sample Rate)/(Samples Per Cycle). If you are running at 44.1 kHz and need waveform cycles that are 1024 samples long, the frequency would be: 441000 samples per second / 1024 samples per cycle which yields 43.06640625 cycles/sec.  The AuGEN X iOS app allow you to enter a frequency precise enough to generate samples of the correct length. The frequency depends on the sample rate of your iOS device. The formula is: (Sample Rate)/(Samples Per Cycle). If you are running at 44.1 kHz and need waveform cycles that are 1024 samples long, the frequency would be: 441000 samples per second / 1024 samples per cycle which yields 43.06640625 cycles/sec. 
  • wavetables.txt
  • Last modified: 2020/10/23 08:25
  • by rs2000