Re: [music-dsp] Cheap spectral centroid recipe

2016-02-01 Thread alexander lerch
Exactly. See also http://www.audiocontentanalysis.org/code/audio-features/spectral-centroid/ Alexander On 2016-02-01 17:24, robert bristow-johnson wrote: > well, i remember a paper from long ago from James Beauchamp where he > defines spectral centroid as > > > > SUM{ |c_n| n } / SUM{

Re: [music-dsp] Cheap spectral centroid recipe

2016-02-01 Thread robert bristow-johnson
well, i remember a paper from long ago from James Beauchamp where he defines spectral centroid as � � SUM{ |c_n| n } / SUM{ |c_n| } � where c_n is the complex Fourier coefficient for the nth harmonic. �if you wanted to base it on energy � � SUM{ |c_n|^2 n } / SUM{ |c_n|^2 } � it will

Re: [music-dsp] Cheap spectral centroid recipe

2016-02-01 Thread robert bristow-johnson
> > Evan Balster > creator of imitone so Evan, i took a look at your website. �your product looks very cool. �in 2013 i worked on something similar (Zya), but cloud based. � so you clearly have a pitch detector goin' on there. �are you converting vocal pitch into fully

Re: [music-dsp] MIDI Synth Design Advice Please

2016-02-01 Thread Theo Verelst
About caching: modern Linuxes, apart from having access to kernel sources and making your own changes, IIRC allow for certain multiprocessing parameters to be influenced, such a locking memory ranges to threads/cores/processes. Not overly discipline thoughts about such semi pro project (I

Re: [music-dsp] Cheap spectral centroid recipe

2016-02-01 Thread Evan Balster
Robert -- Yeah, a DC offset spells trouble for my algorithm -- but it's nothing a bit of gentle pre-filtering (or a sane ADC) won't solve. I'll discuss the tangental stuff with you off-list where it doesn't go into hundreds of inboxes. :) – Evan Balster creator of imitone

Re: [music-dsp] MIDI Synth Design Advice Please

2016-02-01 Thread Scott Gravenhorst
Thank you all for your thoughtful comments. I've read about the effects of cache on CPUs, but admittedly neglected to consider that - good to be reminded of that. As far as I have read about isolated cores, the kernel doesn't schedule anything to run on them (kernel 4.1.13), so I would

Re: [music-dsp] MIDI Synth Design Advice Please

2016-02-01 Thread Theo Verelst
Scott Gravenhorst wrote: I'm looking for advice regarding the design of a MIDI synthesizer. ... Advice regarding this endeavor would be appreciated. Questions include which of the transfer methods will come closest to my goal of low latency (from time to MIDI message receipt to .. Hi

[music-dsp] Cheap spectral centroid recipe

2016-02-01 Thread Evan Balster
Hey, all -- First posting here. I'm an outsider to the DSP world, but I do quite a lot of DSP research and development. In the course of my work I have turned up a number of simple tricks which I imagine would prove handy to other developers. I have combed through a handful of classic

Re: [music-dsp] MIDI Synth Design Advice Please

2016-02-01 Thread Allen Downey
I don't have any advice, but wanted to say that this sounds like a very cool project. I hope you'll consider writing up an instructable (or something like it) to document the project. Regards, Allen On Mon, Feb 1, 2016 at 10:10 AM, Scott Gravenhorst wrote: > I'm looking

[music-dsp] MIDI Synth Design Advice Please

2016-02-01 Thread Scott Gravenhorst
I'm looking for advice regarding the design of a MIDI synthesizer. In the past, I've worked with FPGAs and with dsPIC microprocessors to create successful MIDI synthesizer designs. These designs all had one thing in common: the processing consisted of code to generate a single frame (2

Re: [music-dsp] MIDI Synth Design Advice Please

2016-02-01 Thread Vladimir Pantelic
apart from making sure your task is not interrupted on that core, you have to take the latencies (aka buffering) on both the MIDI input and ALSA output side into account. https://www.google.com/search?q=alsa+low+latency seems to yield some good pointers to start reading for the MIDI side, I

Re: [music-dsp] MIDI Synth Design Advice Please

2016-02-01 Thread Evan Balster
Hey, Scott -- You may run into unpleasant surprises if you assume a PC processor uses deterministic time under any circumstances. Common knowledge dictates that synchronization primitives, disk access and

Re: [music-dsp] MIDI Synth Design Advice Please

2016-02-01 Thread Bjorn Roche
On Mon, Feb 1, 2016 at 10:10 AM, Scott Gravenhorst wrote: > I've also been experimenting with threads and CPU affinity as well as > isolcpu to isolate cores. My assumption (which could be incorrect) is that > isolated cores will run at near bare metal efficiency because