It is currently Fri Apr 19, 2024 3:38 pm


48KHz from 44.1KHz samples

Using the CODM to create your own organ definitions, exchange CODM organ definitions, ...
  • Author
  • Message
Offline

ggoode_sa

Member

  • Posts: 399
  • Joined: Fri Nov 23, 2007 6:43 am
  • Location: Pringle Bay, Western Cape, South Africa

48KHz from 44.1KHz samples

PostMon May 03, 2010 11:19 am

Hi,

Is there an easy way to create a CODM that produces an ODF for the Audio 16-bit 48Khz setting while using samples that are 44.1Khz? This is probably in the manual but I seem to be not able to find it...

Thanks!

GrahamG
Offline
User avatar

mdyde

Moderator

  • Posts: 15475
  • Joined: Fri Mar 14, 2003 1:19 pm
  • Location: UK

Re: 48KHz from 44.1KHz samples

PostMon May 03, 2010 11:44 am

Hello Graham,

The documentation for the SampleRateCode attribute of the _General table in the CODM user's guide (page 50 in the v3.30 version) covers it:

The sample rate that will be used by Hauptwerk for all audio output from the organ. It is not necessary that the value corresponds to the sample rate of all samples, since sample rate conversion happens automatically when required, but it should be set to the highest sample rate commonly used by any samples used for the organ, so that the best possible audio quality is obtained. The valid codes are as follows:

1. 22050 Hertz.
2. 44100 Hertz.
3. 48000 Hertz.
4. 96000 Hertz.


So even if your samples are at 44.1 kHz you can still set that attribute for 48 kHz and Hauptwerk will re-pitch them in real time to 48 kHz. However, because real-time per-pipe pitch shifting is used, and because the pitch difference between 44.1 kHz and 48 kHz is fairly large, the quality will suffer a bit.

Hence it's preferable to re-pitch the samples using a high-quality (slow) off-line pitch shifting algorithm in an audio editor if possible.

Also no real-time anti-aliasing filter will be applied (which again would be too CPU-intensive for applying on a per-pipe basis), so you must ensure that the samples don't contain any frequencies above the target Nyquist frequency if you're reducing the sample rate (e.g. 22050 Hz if down-sampling to 44.1 kHz from a higher rate).
Best regards, Martin.
Hauptwerk software designer/developer, Milan Digital Audio.
Offline

ggoode_sa

Member

  • Posts: 399
  • Joined: Fri Nov 23, 2007 6:43 am
  • Location: Pringle Bay, Western Cape, South Africa

Re: 48KHz from 44.1KHz samples

PostMon May 03, 2010 12:11 pm

Hi Martin,

Thanks, I have the section now :-) I had an inquiry about the Jeuxdorgues2 Stiehr-Mockers being made available at 48Khz and thought it would be easiest to just modify the CODM. From what you've said, however, it might sound better if I did the sample conversion in Sony SoundForge and then posted a new sample set... I'll have to think about it.

GrahamG

Return to Custom Organ Design Module (CODM)

Who is online

Users browsing this forum: No registered users and 3 guests