appletonaudio.com Appleton Audio | Nick Appleton's audio, electronics and software projects… and blog thing

appletonaudio.com
Title: Appleton Audio | Nick Appleton's audio, electronics and software projects… and blog thing
Keywords:
Description: Appleton Audio | Nick Appleton's audio, electronics and software projects… and blog thing Appleton Audio Search Primary Menu Skip to content About Me Electronics MIDI Console Controller MIDI Console C
appletonaudio.com is ranked 13540900 in the world (amongst the 40 million domains). A low-numbered rank means that this website gets lots of visitors. This site is relatively popular among users in the united states. It gets 50% of its traffic from the united states .This site is estimated to be worth $8,871. This site has a low Pagerank(0/10). It has 1 backlinks. appletonaudio.com has 43% seo score.

appletonaudio.com Information

Website / Domain: appletonaudio.com
Website IP Address: 118.127.28.57
Domain DNS Server: ns1.auhost4u.com,ns2.auhost4u.com

appletonaudio.com Rank

Alexa Rank: 13540900
Google Page Rank: 0/10 (Google Pagerank Has Been Closed)

appletonaudio.com Traffic & Earnings

Purchase/Sale Value: $8,871
Daily Revenue: $24
Monthly Revenue $729
Yearly Revenue: $8,871
Daily Unique Visitors 2,236
Monthly Unique Visitors: 67,080
Yearly Unique Visitors: 816,140

appletonaudio.com WebSite Httpheader

StatusCode 200
Content-Type text/html; charset=UTF-8
Date Fri, 29 Jul 2016 20:56:11 GMT
Server Apache

appletonaudio.com Keywords accounting

Keyword Count Percentage

appletonaudio.com Traffic Sources Chart

appletonaudio.com Similar Website

Domain Site Title
hackmeopen.com HackMe | Audio Electronics
dtsaudioelectronics.com DTS Audio Electronics
bcae1.com Basic Car Audio Electronics
acoustic-labs.com Audio Recording, Audio Editing and Audio Mixing Software
nick-thomas.com Nick Thomas Audio Engineer Home
cutestudio.net Silk: CuteStudio Ltd. Audio, electronics, graphics and embedded software
kenseibert.com KenSeibert.Com Audio Projects
specialprojectsaudio.com Special Projects Audio
dogbreath.de Mick Feuerbacher Audio Projects
rjbaudio.com RJB Audio Projects

appletonaudio.com Alexa Rank History Chart

appletonaudio.com aleax

appletonaudio.com Html To Plain Text

Appleton Audio | Nick Appleton's audio, electronics and software projects… and blog thing Appleton Audio Search Primary Menu Skip to content About Me Electronics MIDI Console Controller MIDI Console Controller II My Headphone Amplifier Links Sample Sets St. Augustine's, Neutral Bay St. Stephen's, Penrith Open Sample Projects First Church of Christ Scientist, Darlinghusrt Software Projects Autoloop Download Digest GrandOrgue OS X Development Builds Noise Reduce Download Usage Guide Common Parameters GNI GNP NR Search for: Discrete, Mathematics, Signal Processing A Decimation in Frequency Real FFT 26th June 2016 nick Leave a comment Problem Background Most resources I've found for computing the FFT of a real sequence use the two-for-one trick (such as this good one: FFT of Pure Real Sequences). The "trick" resembles a real FFT using a decimation in time formation. Here is a rough summary of how it works: The input sequence of length is split into two length sequences: one of the even indexed elements, one of odd indexed elements. Treat the even element sequence and odd element sequence as the real and imaginary components of a length sequence. Find the length DFT of this sequence. Using the symmetry properties of the DFT, extract the spectrum of the real sequence and imaginary sequence. Perform a decimation in time twiddle to get the results. This is fine if the output needs to be in a particular order, but certain applications such as fast convolution could not care less about the ordering of the output bins (as has been done before by Dan Bernstein here - I'll elaborate more on this after the example) and this may enable a faster implementation. Something Interesting If you've never written a recursive DIF/DIT FFT before, you should do it before reading on as some interesting things pop out of the implementation (which I will get to after the example - it's also a valuable learning exercise). Below is the code for a radix-2 Decimation in Frequency FFT: void fft_cplx(float *inout, float *scratch, unsigned len) { unsigned i; if (len == 1) return; for (i = 0; i < len / 2; i++) { float re0 = inout[2*i+0]; float im0 = inout[2*i+1]; float re1 = inout[2*i+len+0]; float im1 = inout[2*i+len+1]; float twr = cosf(i * -2.0f * M_PI / len); float twi = sinf(i * -2.0f * M_PI / len); float sr = re0 - re1; float si = im0 - im1; scratch[2*i+0] = re0 + re1; scratch[2*i+1] = im0 + im1; scratch[2*i+len+0] = sr * twr - si * twi; scratch[2*i+len+1] = sr * twi + si * twr; } fft_cplx(scratch, inout, len/2); fft_cplx(scratch+len, inout, len/2); for (i = 0; i < len / 2; i++) { inout[4*i+0] = scratch[2*i+0]; inout[4*i+1] = scratch[2*i+1]; inout[4*i+2] = scratch[2*i+len+0]; inout[4*i+3] = scratch[2*i+len+1]; } } The interesting things to note about the above code are: The first loop can operate in-place (but doesn't). The re-ordering operation could just be a copy if we do not care about the order of the output bins. If we change the re-order operation into a copy, modify the first loop to operate in place, we could call the sub-FFTs in-place and would not need a scratch buffer at all. i.e. we could compute the FFT in-place but our outputs would be completely out-of-order. It is also straight forward to write a function that "undoes" this FFT by performing the steps in reverse. It turns out that this inverse function ends up being exactly the implementation of a decimation in time structure. i.e. a decimation in frequency FFT is pretty much a decimation in time FFT done with the steps in reverse. If we remove all the post data-reordering in our DIF FFT and remove all the pre data-reordering in our DIT IFFT, we can perform a transform that gives bins in a strange order ("bit-reversed" only applies to radix-2 transforms and this algorithm can run mixed radix!) and transform these strange order bins to produce the original sequence. This is interesting for FFT based convolution because we can multiply the results of two forward transforms where the outputs are in a completely crazy order and run the inverse transform to get back the convolved sequence - and this can all be done in-place! This is usually a serious performance win on modern processors. Another big take-away point here is that: if we can write a recursive transform where the code after the recursion only re-orders or conjugates output values, we can remove that entire step if the algorithm is to be used for applications where the ordering of the bins does not matter. This is why the usual real, two-for-one, DIT-style FFT algorithm is not particularly good: the twiddles occur after the recursion and each output bin depends on two bins (as we are relying on DFT symmetry properties to extract the spectrum of two real sequences where one is rammed into the real component and the other into the imaginary component - read the article I linked to at the start of this blog for more comprehensive information). All of the above comments were related to the complex input implementation... so what about a real transform? Creating a Real Input FFT We know that a DIF FFT algorithm always ends up with the reorder occurring after the recursion, so let's see if we can formulate a DIF-style FFT that will operate on real-data which we can solve recursively: And: Nothing special there, we've just arrived at the text-book DIF transform. What can we see here? First, the terms can be found by recursing into the real FFT that we are building as the terms are real. The question is what can we do about the odd output terms - we don't have a transform that does this... or do we? Let's define a new real transform as: This is an FFT with a half-bin shift which gives a conjugate symmetric response for a real input - but unlike a normal real FFT which has conjugate symmetry about DC, this has conjugate symmetry about . i.e. The above tells us that if we compute the terms (or terms, or the first half or the second half of the output terms - it doesn't actually matter), we actually have the entire spectrum for a real input. Here is an example for to illustrate: Define a function for computing the Y_{2k} values: We need to bring this back into a DFT form by making the summation over half the elements: This sequence transforms N real elements into an N/2 complex component spectrum and can be used to find the terms we needed for the real DFT. It can be seen from the above that this algorithm only performs a data combination step, a complex multiply and then a normal DFT. If we make this DFT a DIF style implementation, we satisfy the requirement that the only operations after the recursion are moves and conjugates. Here is a link to a boring implementation: real_fft_example.c. Something I find particularly cool about the algorithm is that it naturally packs the DC and Nyquist bins into the real and imaginary components of the first output as part of the recursion (regardless of if we re-order the output or not - meaning that for convolution we still know which outputs are DC and Nyquist!). This is what most other libraries do but it ends up looking like a "hack" (at least in the two-for-one implementation). Why you probably shouldn't bother ... because there are loads of great libraries out there that do fast convolution of real sequences (FFTW) and this is probably not a particularly good design. The implementation ends up recursing into two different functions: itself and a complex FFT - which isn't the worst thing in the world, but it's also not really that good either if you are trying to build a general-purpose FFT library or want to execute the FFT pass-at-a-time. If you have a fast FFT pass, it's not going to be that useful for this algorithm which would need it's own optimised implementation. This was just a bit of fun. difditfftreal fft Signal Processing Real-time re-sampling and linear interpolation? 1st November 2015 nick Leave a comment Disclaimer: I've intentionally tried to keep this post "non-mathy" - I want it to provide a high level overview of what linear interpolation does spectrally and provide some evidence as to why it's probably not suited in audio processing... unless distortion is desirable. In the context of constant pitch shifting (the input and output signals have a fixed sampling rate), linear interpolation treats the discrete input signal as continuous by drawing straight lines between the discrete samples. The output signal is constructed by picking values at regular times. In the above, the green arrows are the input samples and the red arrows are where we want to pick the values off. It's an intuitive answer to "find the missing values", but what does it actually do to an audio signal? To find this out, it helps to look at the problem in a different way; we can change the intuitive definition described previously to: the linear interpolator interpolates (meaning: inserts a fixed number of zeroes between each input sample) the input signal by some factor, convolves the response with a triangular shaped filter kernel then decimates by some other factor. This is not quite as trivial as the previous definition, but is identical and we can draw the behaviour and system as: If you are not familiar with signal processing, and the block diagram in the above picture scares you what you need to know is: Audio data is real valued and real valued signals have a symmetric magnitude spectrum about DC (in an audio editor, you will only ever see one side, so you'll just need to imagine that it has a symmetric reflection going from 0 to -pi (pi can be thought of as the Nyquist frequency of the audio i.e. 24 kHz for a 48 kHz input). Interpolators insert U-1 zeroes between each sample. This is analogous to shrinking the spectrum of the input by a factor U and concatenating U-1 copies of it. The copies of the spectrum are called "images". i.e. Decimators drop D-1 samples for every input sample. This is analogous to expanding the spectrum by a factor D and wrapping the result on top of itself (there is also an attenuation by D, but I will not draw that). The parts of the spectrum which have been wrapped back onto itself are called "aliases". i.e. In audio, aliasing represents a distortion component which usually sounds dreadful. The only way to avoid the aliasing distortions is to ensure that the input signal is band-limited prior to decimation. The H(z) block is a filter, this is a convolution applied to the samples that it sees with some other signal. It is analogous to multiplying the spectrum by some other shape. So, the interpolation operation introduces images which H(z) needs to remove, and the decimation operation will introduce aliases if we try to decimate too much. Typically, in our real-time re-sampler use, we like to fix the interpolation factor U and permit D to vary (this allows us to use an efficient implementation structure). For H(z) to block the images, we know that it must preserve as much as possible the first 1/U component of the spectrum and must attenuate heavily everything from that point up. Here is the response of H(z) for a linear interpolator based re-sampler with an up sampling factor of 4: Linear interpolator response for up-sample factor of 4. This is not good - remember, we wanted the spectrum to preserve as much signal as possible for the first quarter of the spectrum and attenuate everything everywhere else. We can see that the worst case level of an imaging component will be about 6 dB below the signal level. It's worth mentioning here that the problem does not get any better for higher values of U. There is nothing stopping us from using a proper low-pass filter for H(z) instead of the triangular shape. Here are a few other options for use as a comparison: The linear interpolator with two additional FIR filters. The blue and green responses correspond to 8*U and 12*U length FIR filters respectively. These are both reasonably longer than the linear interpolator which has a filter of length 2*U. The way these filters were designed is outside the scope of this article. The red linear interpolator response costs two multiplies per sample to run, the blue costs eight, the green costs twelve - so these filters show a tradeoff between filter quality and implementation complexity. Note that both the blue and green filters achieve at least 50 dB of aliasing rejection - but we pay for this in the passband performance. If the input were an audio signal sampled at 48 kHz, the frequencies between 0 and 24 kHz would map to the frequency range on the graph between 0 and 0.25 (as we are interpolating by a factor of 4). At 18 kHz, we are attenuating the signal by about 11 dB; at 21 kHz, we are attenuating by about 31 dB. There is an interesting question here as to whether this matters as the frequency is so high. We can get around this to a certain extent by pre-equalising our samples to give a subtle high-frequency boost - but that is an extra complexity in the sampling software. Really the only way to make the cutoff sharper is to use longer filters - and that's not really an option if performance is important. Here are some examples comparing the output of the above 8-tap per output sample filter to the linear interpolation filter: A white noise input being resampled using 8-tap polyphase filters (left) and linear interpolation (right). The input signal to the above output was white noise. Given that the input signal only had content from 0-24 kHz, we would expect that the output signal would only contain information from 0-12 kHz after halving the playback rate. We can see the linear interpolator has "created" a large amount of data in the high frequency region (all from badly attenuated images and aliasing). The "designed" filter attenuates the aliasing heavily but also attenuates some of the high frequency components of the input noise signal. A complex tonal input being resampled using 8-tap polyphase filters (left) and linear interpolation (right). The input signal to the above output was a set of tones separated by octaves in frequency. The aliasing components of the spectrum have introduced inharmonic audible distortions in the linear interpolation case. The "designed" filter almost eliminates the distortion. Magic. I suppose this all comes down to complexity: two multiplies per output sample for linear interpolation vs. more-than-two for a different filter. I chose 8 and 12 for the taps per polyphase component in the examples on this page as I was able to get implementations of the re-sampler where the two sets of filter states (for stereo samples) were able to be stored completely in SSE registers on x64 - this greatly improves the performance of the FIR delay line operations. Linear Interpolation Uncategorized Windows Phone, ownCloud and CardDAV and CalDAV 16th January 2015 nick Leave a comment This is a combination of information from the following two locations: Setting up CardDAV and CalDAV on Windows Phone 8.1 Windows Phone 8: Solution how to Sync Calendar and Contacts What is this? This page gives an outline of how to get your Windows Phone to sync calendars and contacts with an ownCloud instance running on a server using a self-signed certificate. This whole process is a hack and I'm incredibly disappointed that Windows Phone does not support this natively - especially since they have a CalDAV and CardDAV implementation already available (used by iCloud and Google accounts). If this process stops working at some point, that should be expected. I successfully got this working on a Lumia 735. Process I'm assuming that you've got ownCloud installed on a server using SSL. When the certificate was set up, the FQDN must really be the FDQN. i.e. if your ownCloud instance is hosted at "a.b.com", the certificate must be for "a.b.com" - not "b.com". I had this wrong on my home server and was getting the "80072F0D" error on the phone. If you have not yet set up ownCloud or have not set up SSL for your server yet, there are sites already documenting this process How to Create and Install an Apache Self Signed Certificate. You then need to get the certificate installed on your phone. If you do not do this, you will get errors when the phone tries to start syncing. You can do this by opening the certificate in Internet Explorer on the phone (you can do this easily by copying the certificate to your ownCloud files, logging into your cloud in IE on the phone and opening the file. You should then be able to follow the instructions here: Setting up CardDAV and CalDAV on Windows Phone 8.1. Which roughly reads: Create a fake iCloud account. Put garbage information in the fields and create it. The phone won't check anything. Modify the account, edit the advanced settings then change the servers for CalDAV and CardDAV (respectively) as: [domain]/remote.php/caldav/principals/[username] [domain]/remote.php/carddav/principals/[username] Discrete, Mathematics, Modelling, Virtual Pipe Organs Release Alignment in Sampled Pipe Organs - Part 1 1st June 2014 nick Leave a comment At the most basic level, a sample from a digital pipe organ contains: an attack transient leading into a looped sustain block and a release which will be cross-faded into when the note is released. The release cross-fade must be fast (otherwise it will not sound natural or transient details may be lost) and it must also be phase-aligned to the point where the cross-fade begins. The necessity for phase alignment Without phase aligning the release, disturbing artefacts will likely be introduced. The effects are different with short and long cross-fades but are always unpleasant. The following image shows an ideal cross-fade into a release sample. The crossfade begins at 0.1 seconds and lasts for 0.05 seconds. The release is aligned properly and the signal looks continuous. A good crossfade into a release. The following image shows a bad release where the cross-fade is lagging an ideal release offset by half-a-period. Some cancellation occurs during the cross-fade and the result will either sound something like a "pluck" for long cross-fades or a "click" for short cross-fades. A worst-case crossfade into a release. (The cross-fade used in generating the above data sets was a raised cosine - linear cross-fades can be used but will result in worse distortions). The problem of aligning release cross-fades in virtual pipe organs is an interesting one. As an example: at the time of writing this article, release alignment in the GrandOrgue project is not particularly good; it uses a lookup-table taking the value and first-order estimated derivative (both quantised heavily) of the last sample of the last played block as keys. This is not optimal as a single sample says nothing about phase and the first-order derivative estimate could be completely incorrect in the presence of noise. Another approach for handling release alignment If the pitch a pipe was to be completely stable, known ( ) and we knew one point where the release was perfectly aligned ( ), we know that we could cross-fade into the start of the release at: Hence, for any sample offset we could compute an offset into the release to cross-fade into. In reality, pipe pitch wobbles around a bit and so the above would not strictly hold all the time - that being said, it is true for much of the time. If we could take a pipe sample and find all of the points where the release is aligned we could always find the best way to align the release. It turns out that a simple way to do this is to find the cross-correlation of the attack and sustain segment with a short portion of the release. Taking the whole release would be problematic because as it decays it becomes less similar to the sustaining segment (which leads to an unhelpful correlation signal). The first 25000 samples of the signal used for the cross-correlation. The above image shows the attack and some sustain of bottom-C of the St. Augustine's Closed Horn. This shows visually why single sample amplitude and derivative matching is a poor way to align releases. During one period of the closed horn, there are 14 zero crossings and 16 obvious zero crossings in the derivative. One sample gives hardly enough information. A 1024 sample cut from the start of the release. The above image shows a 1024 sample segment taken from the release marker of the same Closed Horn sample. It contains just over a single period of the horn. The next image shows the cross-correlation of this release segment with the sample itself. My analysis program does correlation of the left and right channels and sums them to provide an overall correlation. Positive maximums correspond to points where the release will phase-align well. Minimums correspond to points where the signal has the least correlation to the release. Normalised cross correlation of the signal with the release segment. Using the correlation and a pitch guesstimate, we could construct a function which given any sample offset in the attack/sustain could produce an offset into the release which we should cross-fade into. This is for next time. Cross CorrelationRelease Alignment Posts navigation 1 2 … 5 Next → Nick Appleton's audio, electronics and software projects… and blog thing Search for: Archives June 2016 November 2015 January 2015 June 2014 December 2013 November 2013 September 2013 August 2013 June 2013 May 2013 April 2013 February 2013 July 2012 June 2012 Categories Analogue Bad C C++ Discrete Electronics gcc Hardware Mathematics Modelling Modem Personal Review Router Signal Processing Software Speakers Uncategorized UPS Virtual Pipe Organs Blogroll Embedded in Academia The Signal Twitter: nickappleton RT @weitzelb: Would you take my course on JavaScript? https://t.co/RuNXKNLqQr about 17 hours ago from Twitter for Windows ReplyRetweetFavorite Bahahahahahaha: https://t.co/KIl8oZBtAd Proof that tabs vs. spaces really does matter. 06:28:28 PM July 26, 2016 from Twitter for Windows ReplyRetweetFavorite Infections are crap. 06:05:50 PM July 26, 2016 from Twitter for Windows ReplyRetweetFavorite terse code is best code 09:23:53 AM July 26, 2016 from Twitter Web Client ReplyRetweetFavorite RT @internetofshit: yeah... don't worry about the robot apocalypse https://t.co/Fvlk5JpTbv 09:34:22 AM July 24, 2016 from Twitter for Windows ReplyRetweetFavorite @nickappleton Proudly powered by WordPress

appletonaudio.com Whois

Whois Server Version 2.0
Domain names in the .com and .net domains can now be registered
with many different competing registrars. Go to http://www.internic.net
for detailed information.
  Domain Name: APPLETONAUDIO.COM
  Registrar: ENOM, INC.
  Sponsoring Registrar IANA ID: 48
  Whois Server: whois.enom.com
  Referral URL: http://www.enom.com
  Name Server: NS1.AUHOST4U.COM
  Name Server: NS2.AUHOST4U.COM
  Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited
  Updated Date: 16-dec-2015
  Creation Date: 29-jun-2010
  Expiration Date: 29-jun-2017
>>> Last update of whois database: Fri, 13 May 2016 00:08:14 GMT <<<
For more information on Whois status codes, please visit https://icann.org/epp
NOTICE: The expiration date displayed in this record is the date the
registrar's sponsorship of the domain name registration in the registry is
currently set to expire. This date does not necessarily reflect the expiration
date of the domain name registrant's agreement with the sponsoring
registrar. Users may consult the sponsoring registrar's Whois database to
view the registrar's reported date of expiration for this registration.
TERMS OF USE: You are not authorized to access or query our Whois
database through the use of electronic processes that are high-volume and
automated except as reasonably necessary to register domain names or
modify existing registrations; the Data in VeriSign Global Registry
Services' ("VeriSign") Whois database is provided by VeriSign for
information purposes only, and to assist persons in obtaining information
about or related to a domain name registration record. VeriSign does not
guarantee its accuracy. By submitting a Whois query, you agree to abide
by the following terms of use: You agree that you may use this Data only
for lawful purposes and that under no circumstances will you use this Data
to: (1) allow, enable, or otherwise support the transmission of mass
unsolicited, commercial advertising or solicitations via e-mail, telephone,
or facsimile; or (2) enable high volume, automated, electronic processes
that apply to VeriSign (or its computer systems). The compilation,
repackaging, dissemination or other use of this Data is expressly
prohibited without the prior written consent of VeriSign. You agree not to
use electronic processes that are automated and high-volume to access or
query the Whois database except as reasonably necessary to register
domain names or modify existing registrations. VeriSign reserves the right
to restrict your access to the Whois database in its sole discretion to ensure
operational stability. VeriSign may restrict or terminate your access to the
Whois database for failure to abide by these terms of use. VeriSign
reserves the right to modify these terms at any time.
The Registry database contains ONLY .COM, .NET, .EDU domains and
Registrars