Author Topic: Can a hobbyist use Sharc DSP's?  (Read 15726 times)

0 Members and 1 Guest are viewing this topic.

Offline BCZTopic starter

  • Contributor
  • Posts: 17
  • Country: ca
Can a hobbyist use Sharc DSP's?
« on: March 06, 2017, 04:15:24 pm »
Hi,

I want to use some FIR capable DSP's for a speaker I'm building. The commercial options like miniDSP do not have the features I want (not talking about FIR). Therefore I'm looking at Analog's Sharc DSP's. Something like a ADSP-SC584

These evaluation boards are very pricey, and I am just entering the world of DSP programming, so I want to make sure that's the right way to go.

Are there other fees besides the expensive evaluation board? My budget is around $1000 on the DSP and my time budget is about 4-5 months to learn how to get the thing working.

Are the common audio algorithms available in CCES available to be used like drag and drop? Can I modify the algorithm to make it better suited for my purposes?

If Sharc DSP's aren't the right choice, what should I look at?

Thanks

EDIT: OK I want to step in and explain what I want in much more detail because even on DIY speaker forums few people understand the complexity of what I want to do. It is clear there are people here who are very knowledgeable in audio.

First, if I only need to do a couple of active filters, I would just stick with a miniDSP and call it a day. Boom, done, simple, small, and not horribly expensive. Of course, I need the common active filters like Linkwitz Riley filters for crossover and shelf filters for adjusting the frequency response for 8 channels, etc. But I also need a lot more.

I want to build the best possible small speaker. There are a lot more that goes into that than just some active filters. I need "dynamic" filters.

Here is what I need that the miniDSP can't do.

- Multi-band compressor. Huge amounts of bass boost will be used. In order to protect the speaker from blowing itself up, a compressor/limiter is needed to dial back the bass when it exceeds the limits of the speaker. A compressor will compress the entire band, but I only want the compressor to compress the bass band, and hence the need of a multi-band compressor. This is easily done if a compressor is already available. Then, all that is needed is to separate the signal into multiple bands like a crossover does, apply a different compressor setting to each band, then sum everything back together.

- Equal loudness contour: At low volumes, we need a lot more bass for the sound to sound "balanced". At high volumes, our hearing sensitivity to bass and treble has increased, and we want progressively less bass and treble as volume is increased. I want to implement this to preserve tonal balance at all volume levels.

- Fake bass synthesizer. There is a psychoacoustic phenomenon where the ear can be tricked to think it is hearing a fundamental note lower than what it actually is with the right harmonic composition. It is used to make small speakers seem like it is playing bass when it is not. I want to have that for my speaker. A twist will be to activate this feature only above certain levels. For example, my speaker is capable of quite low and quite loud. It is capable of playing 40Hz at 95dB. But it can play 100Hz at 110dB. So eventually I want to program it in a way where the fake bass synthesizer is not activated until the incoming signal exceeds the limits of the speaker. For example, if I need to play 40Hz at 90dB, it'll just play 40Hz at 90dB. But if it needs to play 40Hz at 100dB, then the woofer will play 40Hz at its limit of 95dB and get the other the 5dB from the fake bass synthesizer making harmonics at 80Hz, 120Hz, 160Hz, etc where it is capable of playing 110dB.

- Lots of FIR filtering - Not only for linear phase crossovers, but also to correct group delay of woofers and room correction. For low frequencies a lot of power is needed for those long FIR's.

- Thermal compression compensator - Because the speaker is so small, the woofer requires 3-10x more power to achieve the same volume for bass as a normal sized speaker. 99% of the power is converted into heat. The problem is that the hotter the woofer gets, the more power the woofer needs to achieve the same volume because the sensitivity is reduced due to the higher temperature causing higher resistance. This means I need something to apply a boost to the woofer depending on the volume level. This is an advanced feature that needs to be written myself. A simplified implementation can be the same as the equal loudness contour, but after a certain volume it start boosting instead of cutting, but it is a "dumb" variable boost since it is not varying depending on the woofer's temperature based on a temperature model of the woofer.

- Thermal limiter: My speaker can play 105dB without distortion, but it doesn't mean it can play 105dB for long periods of time because it can't handle that level of power for very long. Therefore, the volume needs to be gradually backed down. It can play 100dB for maybe a few minutes, then it'll get too hot and need volume to be further reduced. I need a feature to monitor the average RMS level and gradually adjust the limiter up or down. So if I want to play the speaker for hours on end, it'll automatically limit the volume to say 95dB to prevent the speaker from melting. This is another feature that needs to be written myself.

I hope this gives a better idea of what I need.
« Last Edit: March 07, 2017, 07:55:09 pm by BCZ »
 

Offline Marco

  • Super Contributor
  • ***
  • Posts: 6722
  • Country: nl
Re: Can a hobbyist use Sharc DSP's?
« Reply #1 on: March 06, 2017, 04:30:43 pm »
What possible need do you have for 24 GFLOPs? Do you want to add a 5 minute reverb? I can't imagine any processing for a set of speakers a cortex-M7 or even a M4 couldn't handle.

PS. of course Sharc DSP boards works with SigmaStudio, so instead of programming you can do "programming".

PPS. long FIR filters should really be done with (zero latency) FFT based filtering.
« Last Edit: March 06, 2017, 04:39:24 pm by Marco »
 

Offline BCZTopic starter

  • Contributor
  • Posts: 17
  • Country: ca
Re: Can a hobbyist use Sharc DSP's?
« Reply #2 on: March 06, 2017, 04:38:57 pm »
What possible need do you have for 24 GFLOPs? Do you want to add a 5 minute reverb? I can't imagine any processing for a set of speakers a cortex-M7 or even a M4 couldn't handle.

This is just what someone recommended me.

The miniDSP 2x4 HD uses a SHARC ADSP21489, seems like a single core version, and that only does about 4096 taps for FIR filtering at 96KHz. I prefer to have 2x more taps than that if possible.

If the ARM Cortex has similar processing power, and has algorithms that can be used without writing my own from scratch, I'd like to hear more about it and then research it more on my own.
« Last Edit: March 06, 2017, 04:47:03 pm by BCZ »
 

Offline BCZTopic starter

  • Contributor
  • Posts: 17
  • Country: ca
Re: Can a hobbyist use Sharc DSP's?
« Reply #3 on: March 06, 2017, 04:44:32 pm »
PS. of course Sharc DSP boards works with SigmaStudio, so instead of programming you can do "programming".

PPS. long FIR filters should really be done with (zero latency) FFT based filtering.

Hey, if I have to do "programming", I have absolutely no problem with that! It'll save me a ton of time. I would strongly prefer not to get my hands dirty and program, but if I have to, I will.

Can you explain, or link me to a source about FFT based filtering? This is the first time I've heard long FIR filters should be done with that. The biggest issue with FIR is the delay, so if there is something better, I'm all ears.
« Last Edit: March 06, 2017, 04:46:07 pm by BCZ »
 

Offline Marco

  • Super Contributor
  • ***
  • Posts: 6722
  • Country: nl
Re: Can a hobbyist use Sharc DSP's?
« Reply #4 on: March 06, 2017, 05:11:22 pm »
The miniDSP 2x4 HD uses a SHARC ADSP21489, seems like a single core version, and that only does about 4096 taps for FIR filtering at 96KHz. I prefer to have 2x more power than that.

I don't see any external memory on their board, I assume that's the cause. I refuse to believe that a processor with 2.7 GFLOPs is going to be the limiting factor with FFT based filtering of such a tiny filter at audio rates, no matter how bad the ADI libraries for running FFTs from external memory are (it's been eons, but I'm predisposed towards TI over ADI).

Quote
Can you explain, or link me to a source about FFT based filtering? This is the first time I've heard long FIR filters should be done with that. The biggest issue with FIR is the delay, so if there is something better, I'm all ears.

I haven't used it, when I did DSP programming zero latency FFT based filtering was still patented, but here's some code for it : http://blog.audio-tk.com/2015/07/07/audio-toolkit-zero-latency-efficient-convolution/

I'm sure googling for zero latency fft would turn up more. The idea is to use a small part of the impulse response with a FIR filter, then apply the rest of it with FFTs of increasing size. So the delay of the FFT based filters are irrelevant, because it's ready by the time it's actually necessary.
 

Offline legacy

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: Can a hobbyist use Sharc DSP's?
« Reply #5 on: March 06, 2017, 05:13:15 pm »
I have a blackfin BF537 board for sale, with its debugger.  250 euro + postage.
 

Offline Rasz

  • Super Contributor
  • ***
  • Posts: 2616
  • Country: 00
    • My random blog.
Re: Can a hobbyist use Sharc DSP's?
« Reply #6 on: March 06, 2017, 06:29:18 pm »
quick answer is: NO.
more elaborate: sure, that $1K should be enough for hardware, drop 3-5 more for support contract and you have a chance of using it.

also dps in the speaker? why not up the chain?
Who logs in to gdm? Not I, said the duck.
My fireplace is on fire, but in all the wrong places.
 

Offline JPortici

  • Super Contributor
  • ***
  • Posts: 3461
  • Country: it
Re: Can a hobbyist use Sharc DSP's?
« Reply #7 on: March 06, 2017, 07:43:57 pm »
maybe he wants to correct the speaker responce... inside the speaker? there was talk of "adaptive" headphones a couple of years ago. load the model of the heaphone you want to emulate... i think roland made those
 

Offline BCZTopic starter

  • Contributor
  • Posts: 17
  • Country: ca
Re: Can a hobbyist use Sharc DSP's?
« Reply #8 on: March 06, 2017, 07:49:12 pm »
The DSP is outside the speaker, but the location doesn't matter.

I'm not sure what you guys mean. The DSP can only be used after the source and before the amplification of the speaker. I'm correcting the speaker's response, like a passive crossover, but of course I'll be doing much more than what a passive crossover can do with delays, filtering, bass boost, limiter, equal loudness contour, harmonic synthesis (fake deep bass), etc.
 

Offline alexanderbrevig

  • Frequent Contributor
  • **
  • Posts: 700
  • Country: no
  • Musician, developer and EE hobbyist
    • alexanderbrevig.com
Re: Can a hobbyist use Sharc DSP's?
« Reply #9 on: March 06, 2017, 07:59:41 pm »
I've got a SHARC devkit, and I'd say it depends on what your hobby entails.
For me, I thought I would need it - but I've not outgrown using whatever ARM devboard I have at hand at the time. (I experiment with room correction FFT and now mostly FIR filters)

As such, I'm selling my board! https://www.eevblog.com/forum/buysellwanted/fs-adzs-21489-ezlite/
 

Offline diyaudio

  • Frequent Contributor
  • **
  • !
  • Posts: 683
  • Country: za
Re: Can a hobbyist use Sharc DSP's?
« Reply #10 on: March 06, 2017, 08:25:13 pm »
Short Answer: Yes, "if you determined enough". I built an entire SHARC DSP project from scratch (Hardware and Software), I was hellbent for 6-months and it surprisingly worked.
 
See here. https://www.eevblog.com/forum/microcontrollers/my-first-working-audio-dsp-prototype/

I own the latest SC-589 BOARD as well, however, a STM32F4/F7 will fulfill most hobbyist audio DSP curiosity. (limited to stereo/ mono processing) the STM32 only has I2S channels for up to two channels.With that said the SHARC is built for intensive MULTICHANNEL processing, even an STMF7 will sweat processing a single audio processing chain with i.e Parametric EQ, HPF/LPF/DELAY/ALLPASS using FIR even with a small number DSP taps, Dynamic Volume... now imagine 8-channel audio simultaneously processing.



 
The following users thanked this post: alexanderbrevig

Offline Marco

  • Super Contributor
  • ***
  • Posts: 6722
  • Country: nl
Re: Can a hobbyist use Sharc DSP's?
« Reply #11 on: March 06, 2017, 08:32:13 pm »
a single audio processing chain with i.e Parametric EQ, HPF/LPF/DELAY/ALLPASS using FIR even with a small number DSP taps

Why would you chain what you can simply combine?

Another option for prototyping is Bela DSP, they used the Beaglebone black to make an audio DSP board.
« Last Edit: March 06, 2017, 08:35:10 pm by Marco »
 

Offline diyaudio

  • Frequent Contributor
  • **
  • !
  • Posts: 683
  • Country: za
Re: Can a hobbyist use Sharc DSP's?
« Reply #12 on: March 06, 2017, 08:39:53 pm »
Quote
I want to use some FIR capable DSP's for a speaker I'm building. The commercial options like miniDSP do not have the features I want (not talking about FIR). Therefore I'm looking at Analog's Sharc DSP's. Something like a ADSP-SC584

That's a very complex processor, Analog Devices hasn't really finalized the documentation and software for that platform. You better off working with 4-th generation support and documentation is finalized and lots of domain knowledge exists.   


Quote
These evaluation boards are very pricey, and I am just entering the world of DSP programming, so I want to make sure that's the right way to go.

Yes, the chips aren't priced that bad, but the tools are. note the ICE-100 debugger is no longer supported and only works with CCES 1.0, the ICE-1000 is now the de facto standard going forward.   


Quote
Are there other fees besides the expensive evaluation board? My budget is around $1000 on the DSP and my time budget is about 4-5 months to learn how to get the thing working.
If you buy an 21489 EZ-board you just need to study the talk through sample you half way done. 

Quote
Are the common audio algorithms available in CCES available to be used like drag and drop? Can I modify the algorithm to make it better suited for my purposes?
Sigma Studio has this but its limited, also it defeats the purpose of the platform as its primarily intended for custom DSP development, i.e taking Matlab algorithm code  converting it to C and running it on the processor.     

Quote
If Sharc DSP's aren't the right choice, what should I look at?
:P STMF4/STMF7

 

Offline diyaudio

  • Frequent Contributor
  • **
  • !
  • Posts: 683
  • Country: za
Re: Can a hobbyist use Sharc DSP's?
« Reply #13 on: March 06, 2017, 08:44:58 pm »
a single audio processing chain with i.e Parametric EQ, HPF/LPF/DELAY/ALLPASS using FIR even with a small number DSP taps

Why would you chain what you can simply combine?

Another option for prototyping is Bela DSP, they used the Beaglebone black to make an audio DSP board.
Beaglebone/Raspberry Pi cannot be used for deterministic real-time audio processing for serious real world applications... common man!  :-/O
 

Offline Marco

  • Super Contributor
  • ***
  • Posts: 6722
  • Country: nl
Re: Can a hobbyist use Sharc DSP's?
« Reply #14 on: March 06, 2017, 09:18:49 pm »
Beaglebone/Raspberry Pi cannot be used for deterministic real-time audio processing for serious real world applications... common man!  :-/O

The DSP and audio I/O code doesn't really run under Linux with Bela, they use Xenomai 2 which uses a real time kernel under Linux which prevents interrupts from getting to Linux until it's done with the important stuff. They say it works down to a 2 sample buffer ... that's low latency enough.
« Last Edit: March 06, 2017, 09:22:53 pm by Marco »
 

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 26907
  • Country: nl
    • NCT Developments
Re: Can a hobbyist use Sharc DSP's?
« Reply #15 on: March 06, 2017, 10:00:35 pm »
a single audio processing chain with i.e Parametric EQ, HPF/LPF/DELAY/ALLPASS using FIR even with a small number DSP taps

Why would you chain what you can simply combine?

Another option for prototyping is Bela DSP, they used the Beaglebone black to make an audio DSP board.
Beaglebone/Raspberry Pi cannot be used for deterministic real-time audio processing for serious real world applications... common man!  :-/O
Ofcourse it can. The input and outputs are governed by the fixed ADC/DAC sample clocks. Once sampled a signal has no reference to time. As long as you can read the data quick enough from the ADC, process it and send it to the DAC everything is OK.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline timb

  • Super Contributor
  • ***
  • Posts: 2536
  • Country: us
  • Pretentiously Posting Polysyllabic Prose
    • timb.us
Re: Can a hobbyist use Sharc DSP's?
« Reply #16 on: March 07, 2017, 01:28:35 am »
 Also, the BeagleBone Black has two PRUs onboard (Programmable Realtime Units; basically two microcontrollers that have direct memory access to the main ARM CPU and direct access to I/O). You can do a lot with them, surprisingly!
Any sufficiently advanced technology is indistinguishable from magic; e.g., Cheez Whiz, Hot Dogs and RF.
 

Offline BCZTopic starter

  • Contributor
  • Posts: 17
  • Country: ca
Re: Can a hobbyist use Sharc DSP's?
« Reply #17 on: March 07, 2017, 02:22:30 am »
I've got a SHARC devkit, and I'd say it depends on what your hobby entails.
For me, I thought I would need it - but I've not outgrown using whatever ARM devboard I have at hand at the time. (I experiment with room correction FFT and now mostly FIR filters)

As such, I'm selling my board! https://www.eevblog.com/forum/buysellwanted/fs-adzs-21489-ezlite/

Do you know if the dev board comes with a case for the board or do I have to make one for it? Seems fragile like that. If I'm using this I'm going to be moving a lot with this because it is a small speaker designed for travel.

Short Answer: Yes, "if you determined enough". I built an entire SHARC DSP project from scratch (Hardware and Software), I was hellbent for 6-months and it surprisingly worked.
 
See here. https://www.eevblog.com/forum/microcontrollers/my-first-working-audio-dsp-prototype/

I own the latest SC-589 BOARD as well, however, a STM32F4/F7 will fulfill most hobbyist audio DSP curiosity. (limited to stereo/ mono processing) the STM32 only has I2S channels for up to two channels.With that said the SHARC is built for intensive MULTICHANNEL processing, even an STMF7 will sweat processing a single audio processing chain with i.e Parametric EQ, HPF/LPF/DELAY/ALLPASS using FIR even with a small number DSP taps, Dynamic Volume... now imagine 8-channel audio simultaneously processing.

I did not expect to meet someone on this forum who's done very similar things what I want to do!

I am pretty determined. I would say really determined, but I've put an insane amount of time and effort I put into pushing the speaker design to the limit, and I want to see some "quick" results first. Not just to get some improvements over miniDSP, but also to learn the ropes a bit before doing the complicated work. Then I'll take my time and do everything that I want to. Lots of DSP is the only way to get significantly higher audio performance.

I will need 8 channels of processing. 4 channels (for the woofers) will require a good amount of FIR correction. It is a 3 way speaker, but the 2 woofers each need a channel of DSP to apply different settings.

Quote
Quote
Are there other fees besides the expensive evaluation board? My budget is around $1000 on the DSP and my time budget is about 4-5 months to learn how to get the thing working.
If you buy an 21489 EZ-board you just need to study the talk through sample you half way done. 
What do you mean by that? Does that mean the 21489 EZ-board will be easy to develop for?

Quote
Quote
Are the common audio algorithms available in CCES available to be used like drag and drop? Can I modify the algorithm to make it better suited for my purposes?
Sigma Studio has this but its limited, also it defeats the purpose of the platform as its primarily intended for custom DSP development, i.e taking Matlab algorithm code  converting it to C and running it on the processor.     

That's what I want. There are a few algorithms in there, like the limiter, dynamic volume, dynamic bass, and harmonic synth that I would like to use.
« Last Edit: March 07, 2017, 02:27:27 am by BCZ »
 

Offline BCZTopic starter

  • Contributor
  • Posts: 17
  • Country: ca
Re: Can a hobbyist use Sharc DSP's?
« Reply #18 on: March 07, 2017, 03:31:19 am »
Just noticed. The miniDSP 2x4 HD uses the ADSP-21489, and I use 2 of them to get the 8 channels I need. If I get the ADSP-21489 dev board, wouldn't I have even less processing power since I'm running all 8 channels on one DSP instead of two?
 

Offline Rasz

  • Super Contributor
  • ***
  • Posts: 2616
  • Country: 00
    • My random blog.
Re: Can a hobbyist use Sharc DSP's?
« Reply #19 on: March 07, 2017, 04:27:57 am »
do you even need real time? is this supposed to be a product or a one off thing?
you know, random $200 laptop with i5 processor has ~10Gflops you can manage as simple as point and click VST plugins
Who logs in to gdm? Not I, said the duck.
My fireplace is on fire, but in all the wrong places.
 

Offline BCZTopic starter

  • Contributor
  • Posts: 17
  • Country: ca
Re: Can a hobbyist use Sharc DSP's?
« Reply #20 on: March 07, 2017, 04:45:07 am »
do you even need real time? is this supposed to be a product or a one off thing?
you know, random $200 laptop with i5 processor has ~10Gflops you can manage as simple as point and click VST plugins

Yes I do need real time. (Well, a few ms delay for FIR is OK).

It is a one off thing. I considered using an Intel NUC with Linux, but it still did not have most of the features I wanted. Great for FIR though, as many taps as I want. Even if it did, eventually I want to move on to a DSP platform where I can put it inside the speaker.

I've heard of VST plugins, but I thought they're used for music production and not something real time like this?
 

Offline Rasz

  • Super Contributor
  • ***
  • Posts: 2616
  • Country: 00
    • My random blog.
Re: Can a hobbyist use Sharc DSP's?
« Reply #21 on: March 07, 2017, 05:00:04 am »
why do you need real time? is this supposed to be a foldback? speakerphone? ;)
Who logs in to gdm? Not I, said the duck.
My fireplace is on fire, but in all the wrong places.
 

Offline BCZTopic starter

  • Contributor
  • Posts: 17
  • Country: ca
Re: Can a hobbyist use Sharc DSP's?
« Reply #22 on: March 07, 2017, 05:03:17 am »
why do you need real time? is this supposed to be a foldback? speakerphone? ;)

I don't quite understand. How can a speaker not be real time? If I want to play music through it, I want it to play within like a few ms, not a few minutes later.
 

Offline Rasz

  • Super Contributor
  • ***
  • Posts: 2616
  • Country: 00
    • My random blog.
Re: Can a hobbyist use Sharc DSP's?
« Reply #23 on: March 07, 2017, 05:39:59 am »
why do you need real time? is this supposed to be a foldback? speakerphone? ;)

I don't quite understand. How can a speaker not be real time? If I want to play music through it, I want it to play within like a few ms, not a few minutes later.

Real time, especially hard real time, is required in radio equipment/telecommunications (nano/micro seconds), in broadcast/stage/live performance (single digit ms), in voice communications (tens of ms). Basically anywhere you need to react to the incoming signal. Thats where you use DSP.

Playing music thru your speakers doesnt require real time, there is no feedback, music wont sound worse just because it came out 300ms after you pressed Play.
Who logs in to gdm? Not I, said the duck.
My fireplace is on fire, but in all the wrong places.
 

Offline BCZTopic starter

  • Contributor
  • Posts: 17
  • Country: ca
Re: Can a hobbyist use Sharc DSP's?
« Reply #24 on: March 07, 2017, 06:10:13 am »
why do you need real time? is this supposed to be a foldback? speakerphone? ;)

I don't quite understand. How can a speaker not be real time? If I want to play music through it, I want it to play within like a few ms, not a few minutes later.

Real time, especially hard real time, is required in radio equipment/telecommunications (nano/micro seconds), in broadcast/stage/live performance (single digit ms), in voice communications (tens of ms). Basically anywhere you need to react to the incoming signal. Thats where you use DSP.

Playing music thru your speakers doesnt require real time, there is no feedback, music wont sound worse just because it came out 300ms after you pressed Play.

Oh then in that aspect it doesn't require hard real time. I do want to keep it under 40 ms so it is only one frame off sync when watching video.
 

Offline Rasz

  • Super Contributor
  • ***
  • Posts: 2616
  • Country: 00
    • My random blog.
Re: Can a hobbyist use Sharc DSP's?
« Reply #25 on: March 07, 2017, 06:34:18 am »
you can delay video instead
Who logs in to gdm? Not I, said the duck.
My fireplace is on fire, but in all the wrong places.
 

Offline BrianHG

  • Super Contributor
  • ***
  • Posts: 7738
  • Country: ca
Re: Can a hobbyist use Sharc DSP's?
« Reply #26 on: March 07, 2017, 06:40:59 am »

Oh then in that aspect it doesn't require hard real time. I do want to keep it under 40 ms so it is only one frame off sync when watching video.

What's your video source?

You know that if everything is coming from your PC, an 8 channel sound card + your own created wrapper sound driver which then feeds the hardware core audio driver will allow you to make any filters in software you like, converting any X source audio channels, be it stereo, or your own surround mixer, to any output with any filtering you like + there will be no audio/video delay since your wrapper driver tells the OS that there is an audio delay of X ms and the video playback will automatically lip-sync to the setting.
 

Offline poorchava

  • Super Contributor
  • ***
  • Posts: 1672
  • Country: pl
  • Troll Cave Electronics!
Re: Can a hobbyist use Sharc DSP's?
« Reply #27 on: March 07, 2017, 06:51:06 am »
You can look at TMS320 from TI. Delfino and piccolo families are rather cheap to start with, sub 200€ if memory serves me right.

But beware, documentation is fragmented as hell, they have their own names for everything you might want to search for and the processor behaves in generally very different way than your standard Cortex-M microcontroller. There is also stuff missing where you'd normally expect it (no interrupt priorities, mostly no DMA for communication interfaces)

On the other hand documentation if free, and there kinda is some help at TI community as long as you have one of the more popular processors. They are also available in packages ranging from reasonably small (they even have SOP-like if memory serves me right) to very big. Bigger members of family have CLA which is actually an independent coprocessor. The biggest Delfino I think is dual core + dual CLA all running at 200MHz. That is plenty for audio stuff.
I love the smell of FR4 in the morning!
 

Offline BCZTopic starter

  • Contributor
  • Posts: 17
  • Country: ca
Re: Can a hobbyist use Sharc DSP's?
« Reply #28 on: March 07, 2017, 07:01:33 am »
What's the advantage if delay wasn't a problem?

I can't do a PC setup, because I eventually want the DSP to be inside the speaker for a pretty solution. I started off with just a speaker, and the number of different boxes and wires was insane, something like 11 boxes and 40+ sets of cables. It was crazy messy. Now the V2 speaker has the amplifiers and power supply inside the speaker, which reduces the number of boxes by 8 and a lot of wiring, but there is still a ton of wires from the DSP's and Wi-Fi streamer. For the V3 speaker I want the DSP to be inside the speaker and completely eliminate wires and extra boxes, just a speaker and a power cord.

 

Offline b_force

  • Super Contributor
  • ***
  • Posts: 1381
  • Country: 00
    • One World Concepts
Re: Can a hobbyist use Sharc DSP's?
« Reply #29 on: March 07, 2017, 07:16:21 am »
The DSP is outside the speaker, but the location doesn't matter.

I'm not sure what you guys mean. The DSP can only be used after the source and before the amplification of the speaker. I'm correcting the speaker's response, like a passive crossover, but of course I'll be doing much more than what a passive crossover can do with delays, filtering, bass boost, limiter, equal loudness contour, harmonic synthesis (fake deep bass), etc.
You can do all these things perfectly with a ADAU1701 or other sigma DSP units.
Much cheaper and less complex.

The Sharc DSPs are highly overated.
Have done quiet some PCB design  for professional audio customers. Almost all of them want a Sharc, but they barely use 10% of what it's capable of.
Unless you need a lot of memory (delays) or something very close to realtime adjustements (feedback) or monitoring, there is no reason to take a Sharc.

Sigma dsps can be easily programmed with sigmastudio with a very cheap 3rd party programming board.

Offline diyaudio

  • Frequent Contributor
  • **
  • !
  • Posts: 683
  • Country: za
Re: Can a hobbyist use Sharc DSP's?
« Reply #30 on: March 07, 2017, 08:32:04 am »
The DSP is outside the speaker, but the location doesn't matter.

I'm not sure what you guys mean. The DSP can only be used after the source and before the amplification of the speaker. I'm correcting the speaker's response, like a passive crossover, but of course I'll be doing much more than what a passive crossover can do with delays, filtering, bass boost, limiter, equal loudness contour, harmonic synthesis (fake deep bass), etc.

The Sharc DSPs are highly overated.


Total Rubbish. It's the only DSP processor that I came across with SPORT channels with up to 8 channels of dedicated I2S lanes with
(Audio Decoders in ROM) It's also much simpler to program, with excellent documentation.

 

Offline b_force

  • Super Contributor
  • ***
  • Posts: 1381
  • Country: 00
    • One World Concepts
Re: Can a hobbyist use Sharc DSP's?
« Reply #31 on: March 07, 2017, 08:40:06 am »
The DSP is outside the speaker, but the location doesn't matter.

I'm not sure what you guys mean. The DSP can only be used after the source and before the amplification of the speaker. I'm correcting the speaker's response, like a passive crossover, but of course I'll be doing much more than what a passive crossover can do with delays, filtering, bass boost, limiter, equal loudness contour, harmonic synthesis (fake deep bass), etc.

The Sharc DSPs are highly overated.


Total Rubbish. It's the only DSP processor that I came across with SPORT channels with up to 8 channels of dedicated I2S lanes with
(Audio Decoders in ROM) It's also much simpler to program, with excellent documentation.
That's not rubbish, you're talking about a specific solution.
Not a general audio filter solution, like the TS was mentioning.
 
Compare apples with apples, not with other fruits.   :palm:
I can name a million other projects where a Sharc DSP is an absolute necessity.
Not for just some active filtering.


Offline diyaudio

  • Frequent Contributor
  • **
  • !
  • Posts: 683
  • Country: za
Re: Can a hobbyist use Sharc DSP's?
« Reply #32 on: March 07, 2017, 09:34:27 am »
The DSP is outside the speaker, but the location doesn't matter.

I'm not sure what you guys mean. The DSP can only be used after the source and before the amplification of the speaker. I'm correcting the speaker's response, like a passive crossover, but of course I'll be doing much more than what a passive crossover can do with delays, filtering, bass boost, limiter, equal loudness contour, harmonic synthesis (fake deep bass), etc.

The Sharc DSPs are highly overated.


Total Rubbish. It's the only DSP processor that I came across with SPORT channels with up to 8 channels of dedicated I2S lanes with
(Audio Decoders in ROM) It's also much simpler to program, with excellent documentation.
That's not rubbish, you're talking about a specific solution.
Not a general audio filter solution, like the TS was mentioning.
 
Compare apples with apples, not with other fruits.   :palm:
I can name a million other projects where a Sharc DSP is an absolute necessity.
Not for just some active filtering.

You keep missing the point!!. (it's obvious you haven't work with the processor) people are looking for multi-channel processing even if it's a simple IIR/FIR filter, who cares! the point is it's a multi-channel processor. i.e you can do things like (x2 3-way,  x1 center, and x1 subwoofer that's 8 channels) at 192KHz sample rate (and it won't choke), explain to me how you going to do that with other processors?

 

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 26907
  • Country: nl
    • NCT Developments
Re: Can a hobbyist use Sharc DSP's?
« Reply #33 on: March 07, 2017, 11:19:34 am »
Easy. Daisy chain several CODECs on an SPI bus and use DMA to transfer the data. Ofcourse the CPU should be able to handle the amount of data and algorithm but that should go without saying.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline diyaudio

  • Frequent Contributor
  • **
  • !
  • Posts: 683
  • Country: za
Re: Can a hobbyist use Sharc DSP's?
« Reply #34 on: March 07, 2017, 11:39:36 am »
Easy. Daisy chain several CODECs on an SPI bus and use DMA to transfer the data. Ofcourse the CPU should be able to handle the amount of data and algorithm but that should go without saying.

such a cost reduction implementation!. you, of course, know I meant out of the box solution.
 

Offline ohdsp

  • Contributor
  • Posts: 32
  • Country: gb
Re: Can a hobbyist use Sharc DSP's?
« Reply #35 on: March 07, 2017, 12:07:22 pm »
The ADAU1452 Sigma DSP is a very very powerful device for the price, plenty of TDM and I2S interface options (48 TDM channels in, 48 TDM channels out), built in ASRC functions and many other useful and powerful features. I have worked with professionals before who claim you can get as much, if not more, processing power from the ADAU1452 than some of the SHARC devices in the right applications as the core is based on a newer better design....

Check out the Open Hardware DSP Platform:
http://www.ohdsp.org
http://github.com/ohdsp
 

Offline Marco

  • Super Contributor
  • ***
  • Posts: 6722
  • Country: nl
Re: Can a hobbyist use Sharc DSP's?
« Reply #36 on: March 07, 2017, 04:01:10 pm »
Unless you need a lot of memory (delays) or something very close to realtime adjustements (feedback) or monitoring, there is no reason to take a Sharc.

The popular hobby at the the moment is room correction, which requires quite long filters. Since the people doing it generally don't want or can't do much real DSP programming, they often do it with a straight FIR filter ... at that point you need a whole lot of power.

BTW, the Bela audio board has plenty of channels too.
« Last Edit: March 07, 2017, 04:03:52 pm by Marco »
 

Offline BCZTopic starter

  • Contributor
  • Posts: 17
  • Country: ca
Re: Can a hobbyist use Sharc DSP's?
« Reply #37 on: March 07, 2017, 04:05:06 pm »

The popular hobby at the the moment is room correction, which requires quite long filters. Since the people doing it generally don't want or can't do much real DSP programming, they often do it with a straight FIR filter ... at that point you need a whole lot of power.

BTW, the Bela audio board has plenty of channels too.

Wait, you're saying there's a much more computationally efficient way to do the FIR filtering for stuff like room correction if people can do real DSP programming? Can you expand on that?
 

Offline Marco

  • Super Contributor
  • ***
  • Posts: 6722
  • Country: nl
Re: Can a hobbyist use Sharc DSP's?
« Reply #38 on: March 07, 2017, 04:08:07 pm »
As I said, FFT based filtering can be used even if you want low latency (zero latency FFT based filtering).
 

Offline b_force

  • Super Contributor
  • ***
  • Posts: 1381
  • Country: 00
    • One World Concepts
Re: Can a hobbyist use Sharc DSP's?
« Reply #39 on: March 07, 2017, 05:19:21 pm »
The DSP is outside the speaker, but the location doesn't matter.

I'm not sure what you guys mean. The DSP can only be used after the source and before the amplification of the speaker. I'm correcting the speaker's response, like a passive crossover, but of course I'll be doing much more than what a passive crossover can do with delays, filtering, bass boost, limiter, equal loudness contour, harmonic synthesis (fake deep bass), etc.

The Sharc DSPs are highly overated.


Total Rubbish. It's the only DSP processor that I came across with SPORT channels with up to 8 channels of dedicated I2S lanes with
(Audio Decoders in ROM) It's also much simpler to program, with excellent documentation.
That's not rubbish, you're talking about a specific solution.
Not a general audio filter solution, like the TS was mentioning.
 
Compare apples with apples, not with other fruits.   :palm:
I can name a million other projects where a Sharc DSP is an absolute necessity.
Not for just some active filtering.

You keep missing the point!!. (it's obvious you haven't work with the processor) people are looking for multi-channel processing even if it's a simple IIR/FIR filter, who cares! the point is it's a multi-channel processor. i.e you can do things like (x2 3-way,  x1 center, and x1 subwoofer that's 8 channels) at 192KHz sample rate (and it won't choke), explain to me how you going to do that with other processors?
I am not missing the point, but you're only pointing out one specific market.
What you're referring to, is only suitable for home/cinema audio type like market.
There are many different areas where people don't even care about multi-channel audio.

The AUDAU1701 etc has 4 channels out, or can even be used with an high quality DAC, CODEC and ADC.
More than good enough for most active mutli-way speaker systems (unless you're looking for something specific)


Yes, I have worked with these processors quiet a bit.
BTW, I am not saying that the Sharc is rubbish, I am just saying that it's heavily overrated in just fairly simple active filter designs.
The topic starter (BCZ) clearly said he just wants to make some active filters with it.

If it's just for hobby, I would recommend building a dedicated media center pc instead.
Much cheaper, much more possibilities, virtually endless delays.
« Last Edit: March 07, 2017, 05:28:10 pm by b_force »
 

Offline b_force

  • Super Contributor
  • ***
  • Posts: 1381
  • Country: 00
    • One World Concepts
Re: Can a hobbyist use Sharc DSP's?
« Reply #40 on: March 07, 2017, 05:26:18 pm »
Unless you need a lot of memory (delays) or something very close to realtime adjustements (feedback) or monitoring, there is no reason to take a Sharc.

The popular hobby at the the moment is room correction, which requires quite long filters. Since the people doing it generally don't want or can't do much real DSP programming, they often do it with a straight FIR filter ... at that point you need a whole lot of power.

BTW, the Bela audio board has plenty of channels too.
Room correction is not just for hobby or 'popular', it's a fundamental principal in room acoustics.
Widely used in professional setups for many years.
What you're referring to is delay correction with a multi-subwoofer system.

For what BCZ is planning to do with it, you don't need a Sharc and you definitely don't need FIR filters.
« Last Edit: March 07, 2017, 05:28:58 pm by b_force »
 

Offline diyaudio

  • Frequent Contributor
  • **
  • !
  • Posts: 683
  • Country: za
Re: Can a hobbyist use Sharc DSP's?
« Reply #41 on: March 07, 2017, 05:42:37 pm »
Unless you need a lot of memory (delays) or something very close to realtime adjustements (feedback) or monitoring, there is no reason to take a Sharc.

The popular hobby at the the moment is room correction, which requires quite long filters. Since the people doing it generally don't want or can't do much real DSP programming, they often do it with a straight FIR filter ... at that point you need a whole lot of power.

BTW, the Bela audio board has plenty of channels too.
Room correction is not just for hobby or 'popular', it's a fundamental principal in room acoustics.

We in audiophoolery territory.  :blah:
 

Offline b_force

  • Super Contributor
  • ***
  • Posts: 1381
  • Country: 00
    • One World Concepts
Re: Can a hobbyist use Sharc DSP's?
« Reply #42 on: March 07, 2017, 06:27:14 pm »
Unless you need a lot of memory (delays) or something very close to realtime adjustements (feedback) or monitoring, there is no reason to take a Sharc.

The popular hobby at the the moment is room correction, which requires quite long filters. Since the people doing it generally don't want or can't do much real DSP programming, they often do it with a straight FIR filter ... at that point you need a whole lot of power.

BTW, the Bela audio board has plenty of channels too.
Room correction is not just for hobby or 'popular', it's a fundamental principal in room acoustics.

We in audiophoolery territory.  :blah:
:-//

Go read some stuff on Floyd Toole, John Eargle and basic acoustics.
Or just call any acoustic consultant company (you know, the ones who develop concert halls, churches, theaters etc)
Nothing audiophile about this stuff. Basic physics.
 
The following users thanked this post: alexanderbrevig

Offline Marco

  • Super Contributor
  • ***
  • Posts: 6722
  • Country: nl
Re: Can a hobbyist use Sharc DSP's?
« Reply #43 on: March 07, 2017, 06:42:07 pm »
The topic starter (BCZ) clearly said he just wants to make some active filters with it.

I'm not familiar with exactly how it's implemented, but I don't see how the ADAU's can do base harmonic synthesis at least. He'll need something properly programmable with some significant amounts of memory for that.

Room correction is not just for hobby or 'popular'

That doesn't mean you can't do it as a hobby. Speaker design was always a common hobby, a hobby which has entered the digital realm for a while already.
 

Offline Rasz

  • Super Contributor
  • ***
  • Posts: 2616
  • Country: 00
    • My random blog.
Re: Can a hobbyist use Sharc DSP's?
« Reply #44 on: March 07, 2017, 06:55:16 pm »
I get it now. OP wants DSP because its modern wooden volume knob/oxygen free gold plated power cable, goes to 11 etc.


How about some acoustic panels on your ceiling/walls?
Who logs in to gdm? Not I, said the duck.
My fireplace is on fire, but in all the wrong places.
 

Offline BCZTopic starter

  • Contributor
  • Posts: 17
  • Country: ca
Re: Can a hobbyist use Sharc DSP's?
« Reply #45 on: March 07, 2017, 07:14:33 pm »
OK I want to step in and explain what I want in much more detail because even on DIY speaker forums few people understand the complexity of what I want to do. It is clear there are people here who are very knowledgeable in audio.

First, if I only need to do a couple of active filters, I would just stick with a miniDSP and call it a day. Boom, done, simple, small, and not horribly expensive. Of course, I need the common active filters like Linkwitz Riley filters for crossover and shelf filters for adjusting the frequency response for 8 channels, etc. But I also need a lot more.

I want to build the best possible small speaker. There are a lot more that goes into that than just some active filters. I need "dynamic" filters.

Here is what I need that the miniDSP can't do.

- Multi-band compressor. Huge amounts of bass boost will be used. In order to protect the speaker from blowing itself up, a compressor/limiter is needed to dial back the bass when it exceeds the limits of the speaker. A compressor will compress the entire band, but I only want the compressor to compress the bass band, and hence the need of a multi-band compressor. This is easily done if a compressor is already available. Then, all that is needed is to separate the signal into multiple bands like a crossover does, apply a different compressor setting to each band, then sum everything back together.

- Equal loudness contour: At low volumes, we need a lot more bass for the sound to sound "balanced". At high volumes, our hearing sensitivity to bass and treble has increased, and we want progressively less bass and treble as volume is increased. I want to implement this to preserve tonal balance at all volume levels.

- Fake bass synthesizer. There is a psychoacoustic phenomenon where the ear can be tricked to think it is hearing a fundamental note lower than what it actually is with the right harmonic composition. It is used to make small speakers seem like it is playing bass when it is not. I want to have that for my speaker. A twist will be to activate this feature only above certain levels. For example, my speaker is capable of quite low and quite loud. It is capable of playing 40Hz at 95dB. But it can play 100Hz at 110dB. So eventually I want to program it in a way where the fake bass synthesizer is not activated until the incoming signal exceeds the limits of the speaker. For example, if I need to play 40Hz at 90dB, it'll just play 40Hz at 90dB. But if it needs to play 40Hz at 100dB, then the woofer will play 40Hz at its limit of 95dB and get the other the 5dB from the fake bass synthesizer making harmonics at 80Hz, 120Hz, 160Hz, etc where it is capable of playing 110dB.

- Lots of FIR filtering - Not only for linear phase crossovers, but also to correct group delay of woofers and room correction. For low frequencies a lot of power is needed for those long FIR's.

- Thermal compression compensator - Because the speaker is so small, the woofer requires 3-10x more power to achieve the same volume for bass as a normal sized speaker. 99% of the power is converted into heat. The problem is that the hotter the woofer gets, the more power the woofer needs to achieve the same volume because the sensitivity is reduced due to the higher temperature causing higher resistance. This means I need something to apply a boost to the woofer depending on the volume level. This is an advanced feature that needs to be written myself. A simplified implementation can be the same as the equal loudness contour, but after a certain volume it start boosting instead of cutting, but it is a "dumb" variable boost since it is not varying depending on the woofer's temperature based on a temperature model of the woofer.

- Thermal limiter: My speaker can play 105dB without distortion, but it doesn't mean it can play 105dB for long periods of time because it can't handle that level of power for very long. Therefore, the volume needs to be gradually backed down. It can play 100dB for maybe a few minutes, then it'll get too hot and need volume to be further reduced. I need a feature to monitor the average RMS level and gradually adjust the limiter up or down. So if I want to play the speaker for hours on end, it'll automatically limit the volume to say 95dB to prevent the speaker from melting. This is another feature that needs to be written myself.

I hope this gives a better idea of what I need.
« Last Edit: March 07, 2017, 07:54:48 pm by BCZ »
 

Offline BCZTopic starter

  • Contributor
  • Posts: 17
  • Country: ca
Re: Can a hobbyist use Sharc DSP's?
« Reply #46 on: March 07, 2017, 07:43:12 pm »
I forgot to say, for the first step into the foray of DSP's, I would be happy if I can just replicate the miniDSP to do the normal active filters, crossovers, time delay, FIR, and compressor for 8 channels. Just that alone would reduce the number of DSPs from 4 miniDSP's to 1 and a huge reduction in wirings. I'm using multiple miniDSP's for the sole purpose of the multi band compressor. The miniDSP has 4 channel outputs, but only a single compressor per output. Therefore I'm making a multi band compressor by summing together the outputs using analog components, which is a very silly and expensive way when all it takes is a simple addition of outputs done within the DSP and then output to one channel. But that's the crap I have to deal with miniDSP that pushed me to go with my own DSP.

All the other fancy dynamic adjustments of bass, treble, fake bass synthesizer, thermal compensation and limiter can come later.

I repeat, I cannot use a PC. I started this project because I travel A LOT (mostly not for vacations unfortunately), and I want a nice sounding small speaker to bring with me to my travels. Of course I went batshit crazy in terms of how far I wanted to push this (the speaker cost me  ~$4000 to build...), but it has been so much fun. Trust me, no audiophool BS, all science. I'm actually in the process of "upgrading" my cables from $1 cables to $10 cables because the ultra cheap cables have been causing me some problems. Hence, the small speaker and the desire to have everything in one box.
« Last Edit: March 07, 2017, 07:52:13 pm by BCZ »
 

Offline kilohercas

  • Regular Contributor
  • *
  • Posts: 60
  • Country: 00
  • Engineer
Re: Can a hobbyist use Sharc DSP's?
« Reply #47 on: March 07, 2017, 08:12:54 pm »
What i did is made programmer out of FT2232D, that simply disconnects boot flash from DSP, loads data from hex file, and that it, debugging is done via uart.

This is my Mandelbrot test, and ti bowed my mind how much performance where is compared to STM32F4, at least 10 times faster :)

 
The following users thanked this post: diyaudio

Offline Marco

  • Super Contributor
  • ***
  • Posts: 6722
  • Country: nl
Re: Can a hobbyist use Sharc DSP's?
« Reply #48 on: March 07, 2017, 08:52:21 pm »
This is my Mandelbrot test, and ti bowed my mind how much performance where is compared to STM32F4, at least 10 times faster :)

The M7 would be a better comparison. Harvard architecture memory banks with DMA, dual issue arithmetic/memory-ops. It's almost a DSP at this point, except like most processor designers the ARM designers can't get it through their bloody heads that you can cheaply implement something other than either brain dead branch behaviour or too smart for it's own good branch prediction. Still, it will handle branches a lot better than the M4.
« Last Edit: March 07, 2017, 09:06:14 pm by Marco »
 

Offline poorchava

  • Super Contributor
  • ***
  • Posts: 1672
  • Country: pl
  • Troll Cave Electronics!
Re: Can a hobbyist use Sharc DSP's?
« Reply #49 on: March 08, 2017, 06:38:03 am »
I wonder how does CM7s TCM improve performance over CM4s pure load-store model. I remember a project where we found out that when performing relatively simple operation on a large amount of data, memory load/store oeprations were the bottleneck of the whole system. In comparison TMS320 Piccolo was much faster as simlar FCPU.
I love the smell of FR4 in the morning!
 

Offline JPortici

  • Super Contributor
  • ***
  • Posts: 3461
  • Country: it
Re: Can a hobbyist use Sharc DSP's?
« Reply #50 on: March 08, 2017, 08:29:26 am »
Room correction is not just for hobby or 'popular', it's a fundamental principal in room acoustics.

he probably meant that it's becoming the new consumer / prosumer fad
 

Offline diyaudio

  • Frequent Contributor
  • **
  • !
  • Posts: 683
  • Country: za
Re: Can a hobbyist use Sharc DSP's?
« Reply #51 on: March 08, 2017, 09:16:21 am »
What i did is made programmer out of FT2232D, that simply disconnects boot flash from DSP, loads data from hex file, and that it, debugging is done via uart.

This is my Mandelbrot test, and ti bowed my mind how much performance where is compared to STM32F4, at least 10 times faster :)



I saw this a year ago on your channel (good work BTW), it actually motivated me to build my own version, I didn't use an ADSP-21489 like you have, but a smaller ADSP-21262 as I only needed 6 channels and I got them for 3$ a pop!... I might do an ADSP-21489 as my next challenge if time ever permits.

An STM32-F7 costs almost the same as an ADSP-21489 !! :wtf:
 

Offline technix

  • Super Contributor
  • ***
  • Posts: 3507
  • Country: cn
  • From Shanghai With Love
    • My Untitled Blog
Re: Can a hobbyist use Sharc DSP's?
« Reply #52 on: March 08, 2017, 12:02:18 pm »
Maybe it is better to use a Raspberry Pi for hobbyist DSP building. Raspberry Pi + Cirrus Logic Audio Card. There will be some latency though, but not too much.

The VideoCore IV GPU in the BCM2837 can handle the FFT and iFFT for you in its parallel fashion. You have 4x ARMv8-A Cortex-A53 cores (sadly no 64-bit kernel yet, although the cores and the bootloader are 64-bit capable) running your maximum optimized NEON SIMD DSP code at 1.2GHz. The sound card is capable of stereo 192kHz 24-bit sampling input and output at line level or SPDIF. And you can stream audio in and out through network.
« Last Edit: March 08, 2017, 12:03:58 pm by technix »
 

Offline Rasz

  • Super Contributor
  • ***
  • Posts: 2616
  • Country: 00
    • My random blog.
Re: Can a hobbyist use Sharc DSP's?
« Reply #53 on: March 08, 2017, 06:37:27 pm »
Raspberry Pi .... 4x ARMv8-A Cortex-A53 cores (sadly no 64-bit kernel yet, although the cores and the bootloader are 64-bit capable) running your maximum optimized NEON SIMD DSP code at 1.2GHz.

for a couple of seconds before it starts throttling back to half speed while still telling the kernel its running 1.2GHz :)
Pee is terrible when it comes to real performance, great support tho
but the idea is sound, paying $20 for bare DSP chip is insane when you can get whole 4 core dev board for less
Who logs in to gdm? Not I, said the duck.
My fireplace is on fire, but in all the wrong places.
 

Offline Marco

  • Super Contributor
  • ***
  • Posts: 6722
  • Country: nl
Re: Can a hobbyist use Sharc DSP's?
« Reply #54 on: March 08, 2017, 10:49:31 pm »
Unfortunately there is only one SBC with software to develop hard real time audio effects relatively easily (ie. Beaglebone black with the Bela code).

The really cheap SBCs are all based on Amlogic and Allwinner CPUs, for which getting hard real time Xenomai to work would be a bit of a pain. The Xenomai developers seem to have little patience for helping with porting i-pipe to non mainline kernels, ie. the kind of kernels all the cheap SBCs use at the moment.
 

Offline technix

  • Super Contributor
  • ***
  • Posts: 3507
  • Country: cn
  • From Shanghai With Love
    • My Untitled Blog
Re: Can a hobbyist use Sharc DSP's?
« Reply #55 on: March 08, 2017, 11:43:43 pm »
Raspberry Pi .... 4x ARMv8-A Cortex-A53 cores (sadly no 64-bit kernel yet, although the cores and the bootloader are 64-bit capable) running your maximum optimized NEON SIMD DSP code at 1.2GHz.

for a couple of seconds before it starts throttling back to half speed while still telling the kernel its running 1.2GHz :)
Pee is terrible when it comes to real performance, great support tho
but the idea is sound, paying $20 for bare DSP chip is insane when you can get whole 4 core dev board for less

Just put a heat sink on the BCM2837 and point a fan at it.
 

Offline b_force

  • Super Contributor
  • ***
  • Posts: 1381
  • Country: 00
    • One World Concepts
Re: Can a hobbyist use Sharc DSP's?
« Reply #56 on: March 09, 2017, 08:37:08 am »
OK I want to step in and explain what I want in much more detail because even on DIY speaker forums few people understand the complexity of what I want to do. It is clear there are people here who are very knowledgeable in audio.

First, if I only need to do a couple of active filters, I would just stick with a miniDSP and call it a day. Boom, done, simple, small, and not horribly expensive. Of course, I need the common active filters like Linkwitz Riley filters for crossover and shelf filters for adjusting the frequency response for 8 channels, etc. But I also need a lot more.

I want to build the best possible small speaker. There are a lot more that goes into that than just some active filters. I need "dynamic" filters.

Here is what I need that the miniDSP can't do.

- Multi-band compressor. Huge amounts of bass boost will be used. In order to protect the speaker from blowing itself up, a compressor/limiter is needed to dial back the bass when it exceeds the limits of the speaker. A compressor will compress the entire band, but I only want the compressor to compress the bass band, and hence the need of a multi-band compressor. This is easily done if a compressor is already available. Then, all that is needed is to separate the signal into multiple bands like a crossover does, apply a different compressor setting to each band, then sum everything back together.

- Equal loudness contour: At low volumes, we need a lot more bass for the sound to sound "balanced". At high volumes, our hearing sensitivity to bass and treble has increased, and we want progressively less bass and treble as volume is increased. I want to implement this to preserve tonal balance at all volume levels.

- Fake bass synthesizer. There is a psychoacoustic phenomenon where the ear can be tricked to think it is hearing a fundamental note lower than what it actually is with the right harmonic composition. It is used to make small speakers seem like it is playing bass when it is not. I want to have that for my speaker. A twist will be to activate this feature only above certain levels. For example, my speaker is capable of quite low and quite loud. It is capable of playing 40Hz at 95dB. But it can play 100Hz at 110dB. So eventually I want to program it in a way where the fake bass synthesizer is not activated until the incoming signal exceeds the limits of the speaker. For example, if I need to play 40Hz at 90dB, it'll just play 40Hz at 90dB. But if it needs to play 40Hz at 100dB, then the woofer will play 40Hz at its limit of 95dB and get the other the 5dB from the fake bass synthesizer making harmonics at 80Hz, 120Hz, 160Hz, etc where it is capable of playing 110dB.

- Lots of FIR filtering - Not only for linear phase crossovers, but also to correct group delay of woofers and room correction. For low frequencies a lot of power is needed for those long FIR's.

- Thermal compression compensator - Because the speaker is so small, the woofer requires 3-10x more power to achieve the same volume for bass as a normal sized speaker. 99% of the power is converted into heat. The problem is that the hotter the woofer gets, the more power the woofer needs to achieve the same volume because the sensitivity is reduced due to the higher temperature causing higher resistance. This means I need something to apply a boost to the woofer depending on the volume level. This is an advanced feature that needs to be written myself. A simplified implementation can be the same as the equal loudness contour, but after a certain volume it start boosting instead of cutting, but it is a "dumb" variable boost since it is not varying depending on the woofer's temperature based on a temperature model of the woofer.

- Thermal limiter: My speaker can play 105dB without distortion, but it doesn't mean it can play 105dB for long periods of time because it can't handle that level of power for very long. Therefore, the volume needs to be gradually backed down. It can play 100dB for maybe a few minutes, then it'll get too hot and need volume to be further reduced. I need a feature to monitor the average RMS level and gradually adjust the limiter up or down. So if I want to play the speaker for hours on end, it'll automatically limit the volume to say 95dB to prevent the speaker from melting. This is another feature that needs to be written myself.

I hope this gives a better idea of what I need.
Why do you need those things for an hobby project?

I have been in the professional field for quiet some years, and only in the PA/Sound reinforcement business those tings are serious problems.
Still, as a last resort solution. You should simply never develop on the edges of what is capable.
You can't beat physics with electronics so to say.

Unless you're playing constantly on ear deafening volumes, home hifi never really gets into problems..

BTW, like I said before, Sigma DSPs are perfectly capable of doing all these limiters, loudness compansation etc, just have a look at SigmaStudio.
« Last Edit: March 09, 2017, 08:42:49 am by b_force »
 

Offline technix

  • Super Contributor
  • ***
  • Posts: 3507
  • Country: cn
  • From Shanghai With Love
    • My Untitled Blog
Re: Can a hobbyist use Sharc DSP's?
« Reply #57 on: March 09, 2017, 10:10:08 am »
Unfortunately there is only one SBC with software to develop hard real time audio effects relatively easily (ie. Beaglebone black with the Bela code).

The really cheap SBCs are all based on Amlogic and Allwinner CPUs, for which getting hard real time Xenomai to work would be a bit of a pain. The Xenomai developers seem to have little patience for helping with porting i-pipe to non mainline kernels, ie. the kind of kernels all the cheap SBCs use at the moment.

Actually older Allwinner chips also have mainline kernel support. Too bad those are slow...

Raspberry Pi have the bonus of having high quality I2S audio I/O and the Cirrus Logic Sound Card I was talking about is an I2S based one, so it won't suffer from the buggy USB core introducing jitter.
 

Offline BCZTopic starter

  • Contributor
  • Posts: 17
  • Country: ca
Re: Can a hobbyist use Sharc DSP's?
« Reply #58 on: March 10, 2017, 05:34:02 am »
OK I want to step in and explain what I want in much more detail because even on DIY speaker forums few people understand the complexity of what I want to do. It is clear there are people here who are very knowledgeable in audio.

First, if I only need to do a couple of active filters, I would just stick with a miniDSP and call it a day. Boom, done, simple, small, and not horribly expensive. Of course, I need the common active filters like Linkwitz Riley filters for crossover and shelf filters for adjusting the frequency response for 8 channels, etc. But I also need a lot more.

I want to build the best possible small speaker. There are a lot more that goes into that than just some active filters. I need "dynamic" filters.

Here is what I need that the miniDSP can't do.

- Multi-band compressor. Huge amounts of bass boost will be used. In order to protect the speaker from blowing itself up, a compressor/limiter is needed to dial back the bass when it exceeds the limits of the speaker. A compressor will compress the entire band, but I only want the compressor to compress the bass band, and hence the need of a multi-band compressor. This is easily done if a compressor is already available. Then, all that is needed is to separate the signal into multiple bands like a crossover does, apply a different compressor setting to each band, then sum everything back together.

- Equal loudness contour: At low volumes, we need a lot more bass for the sound to sound "balanced". At high volumes, our hearing sensitivity to bass and treble has increased, and we want progressively less bass and treble as volume is increased. I want to implement this to preserve tonal balance at all volume levels.

- Fake bass synthesizer. There is a psychoacoustic phenomenon where the ear can be tricked to think it is hearing a fundamental note lower than what it actually is with the right harmonic composition. It is used to make small speakers seem like it is playing bass when it is not. I want to have that for my speaker. A twist will be to activate this feature only above certain levels. For example, my speaker is capable of quite low and quite loud. It is capable of playing 40Hz at 95dB. But it can play 100Hz at 110dB. So eventually I want to program it in a way where the fake bass synthesizer is not activated until the incoming signal exceeds the limits of the speaker. For example, if I need to play 40Hz at 90dB, it'll just play 40Hz at 90dB. But if it needs to play 40Hz at 100dB, then the woofer will play 40Hz at its limit of 95dB and get the other the 5dB from the fake bass synthesizer making harmonics at 80Hz, 120Hz, 160Hz, etc where it is capable of playing 110dB.

- Lots of FIR filtering - Not only for linear phase crossovers, but also to correct group delay of woofers and room correction. For low frequencies a lot of power is needed for those long FIR's.

- Thermal compression compensator - Because the speaker is so small, the woofer requires 3-10x more power to achieve the same volume for bass as a normal sized speaker. 99% of the power is converted into heat. The problem is that the hotter the woofer gets, the more power the woofer needs to achieve the same volume because the sensitivity is reduced due to the higher temperature causing higher resistance. This means I need something to apply a boost to the woofer depending on the volume level. This is an advanced feature that needs to be written myself. A simplified implementation can be the same as the equal loudness contour, but after a certain volume it start boosting instead of cutting, but it is a "dumb" variable boost since it is not varying depending on the woofer's temperature based on a temperature model of the woofer.

- Thermal limiter: My speaker can play 105dB without distortion, but it doesn't mean it can play 105dB for long periods of time because it can't handle that level of power for very long. Therefore, the volume needs to be gradually backed down. It can play 100dB for maybe a few minutes, then it'll get too hot and need volume to be further reduced. I need a feature to monitor the average RMS level and gradually adjust the limiter up or down. So if I want to play the speaker for hours on end, it'll automatically limit the volume to say 95dB to prevent the speaker from melting. This is another feature that needs to be written myself.

I hope this gives a better idea of what I need.
Why do you need those things for an hobby project?

I have been in the professional field for quiet some years, and only in the PA/Sound reinforcement business those tings are serious problems.
Still, as a last resort solution. You should simply never develop on the edges of what is capable.
You can't beat physics with electronics so to say.

Unless you're playing constantly on ear deafening volumes, home hifi never really gets into problems..

BTW, like I said before, Sigma DSPs are perfectly capable of doing all these limiters, loudness compansation etc, just have a look at SigmaStudio.

I want them because my reason for doing this project is to push the limits of performance, not just to build something. My time is valuable and limited, I don't want to make something that I could buy with money. That's not worth my time. 

Some of the features related to thermal and limiting are needed because the speaker is so crazy small yet I want incredible bass from them. This means LOTS of power. I don't need to play anywhere near ear deafening levels to push the speaker into thermal problems. 100dB of bass will do it, and 100dB of bass is loud, but not really that loud at all since the non bass sections of music is likely only 80dB.

The other features like equal loudness contour are just to make the speaker even closer to the ideal sounding subjective speaker.

I still can't find this, but can Sigma DSPs FIR filtering? If it can, how much can it do? I know SHARC definitely can, but I was looking at Sigma Studio, and a number of DSP algorithms like the harmonic synth available to chips like the ADAU1701 is not available for the SHARC DSPs.
« Last Edit: March 10, 2017, 05:38:50 am by BCZ »
 

Offline b_force

  • Super Contributor
  • ***
  • Posts: 1381
  • Country: 00
    • One World Concepts
Re: Can a hobbyist use Sharc DSP's?
« Reply #59 on: March 10, 2017, 06:58:17 am »
I still can't find this, but can Sigma DSPs FIR filtering? If it can, how much can it do? I know SHARC definitely can, but I was looking at Sigma Studio, and a number of DSP algorithms like the harmonic synth available to chips like the ADAU1701 is not available for the SHARC DSPs.
Google is your friend, especially Analog Devices forum is full of it.

One side note, people were mentioning audiophile type 'myth' solutions before, using FIR just for groupdelay and phase correction is definitely in the same league. One of the very last things to be worried about (if even worried about at all).
FIR is great for pushing noise away (out of band), or correcting loudspeaker non-linearities.

Offline BCZTopic starter

  • Contributor
  • Posts: 17
  • Country: ca
Re: Can a hobbyist use Sharc DSP's?
« Reply #60 on: March 10, 2017, 02:49:31 pm »
I still can't find this, but can Sigma DSPs FIR filtering? If it can, how much can it do? I know SHARC definitely can, but I was looking at Sigma Studio, and a number of DSP algorithms like the harmonic synth available to chips like the ADAU1701 is not available for the SHARC DSPs.
Google is your friend, especially Analog Devices forum is full of it.

One side note, people were mentioning audiophile type 'myth' solutions before, using FIR just for groupdelay and phase correction is definitely in the same league. One of the very last things to be worried about (if even worried about at all).
FIR is great for pushing noise away (out of band), or correcting loudspeaker non-linearities.

I wouldn't go so far to call these as audiophile myths. Yes, they're definitely on the lower side of priority because in a normal speaker the audibility of phase and group delay is likely to be inaudible. However, severe phase shift and group delay is definitely audible. There are time domain issues when using large bass boosts in a small vented enclosure like mine, and it easily exceeds the 1 cycle audibility threshold. This is not like expensive speaker cables and power cords that actually makes no difference, subjectively (double blind) or objectively. Even if it is under the audibility threshold, it makes the speaker objectively more accurate in the time domain.

I feel at this point I want to just get a DSP that will allow me to do the basic functions of an active DSP crossover first without too much work just to get things started and reduce the learning curve, and then move on from there. There's a lot of hardware stuff that I don't know that I'm still trying to wrap my head around. I'm sure someone has made a DSP for active speaker crossover, and I think I would like to start there first. Any recommendations?

By the way, Google sucks (or I don't know how to use it properly). I've been looking for audio DSP's for a long time, yet this thread is the first time I've heard of the "Open Hardware DSP platform". I bet there are others just like this that may help me a LOT to first get started.
« Last Edit: March 10, 2017, 02:54:56 pm by BCZ »
 

Offline diyaudio

  • Frequent Contributor
  • **
  • !
  • Posts: 683
  • Country: za
Re: Can a hobbyist use Sharc DSP's?
« Reply #61 on: March 10, 2017, 04:44:47 pm »


Quote
I feel at this point I want to just get a DSP that will allow me to do the basic functions of an active DSP crossover first without too much work just to get things started and reduce the learning curve, and then move on from there. There's a lot of hardware stuff that I don't know that I'm still trying to wrap my head around. I'm sure someone has made a DSP for active speaker crossover, and I think I would like to start there first. Any recommendations?


http://www.digikey.com/products/en/development-boards-kits-programmers/evaluation-and-demonstration-boards-and-kits/787?k=ADAU1452

 :popcorn:
 

Offline Marco

  • Super Contributor
  • ***
  • Posts: 6722
  • Country: nl
Re: Can a hobbyist use Sharc DSP's?
« Reply #62 on: March 10, 2017, 04:56:41 pm »
An expert could use the ADAU to save time when applicable, if you want to actually learn something about DSP programming avoid it ... all it can teach you is self deception about the limitations not being relevant.

It's not a spring board, it's a kiddy pool.
 

Offline alexanderbrevig

  • Frequent Contributor
  • **
  • Posts: 700
  • Country: no
  • Musician, developer and EE hobbyist
    • alexanderbrevig.com
Re: Can a hobbyist use Sharc DSP's?
« Reply #63 on: March 13, 2017, 09:40:13 am »
It's not a spring board, it's a kiddy pool.

It's a good place to quickly prototype.
The few things I tried to implement was easily done with the sigma studio.
If there were a way to easily add custom blocks it would be awesome!

Some times, all you need is a small pool. (sentence got weird with the work kiddy there...)
 

Offline BrianHG

  • Super Contributor
  • ***
  • Posts: 7738
  • Country: ca
Re: Can a hobbyist use Sharc DSP's?
« Reply #64 on: March 13, 2017, 10:35:37 am »
I just ran into this:


 

Offline b_force

  • Super Contributor
  • ***
  • Posts: 1381
  • Country: 00
    • One World Concepts
Re: Can a hobbyist use Sharc DSP's?
« Reply #65 on: March 13, 2017, 10:45:52 pm »
An expert could use the ADAU to save time when applicable, if you want to actually learn something about DSP programming avoid it ... all it can teach you is self deception about the limitations not being relevant.

It's not a spring board, it's a kiddy pool.
I guess, for me it's all about what result you get.
I don't care if that's with kids building blocks, or die hard programming.
In fact, the last one takes sometimes way to much time (for me)

Offline BCZTopic starter

  • Contributor
  • Posts: 17
  • Country: ca
Re: Can a hobbyist use Sharc DSP's?
« Reply #66 on: March 13, 2017, 11:55:17 pm »
An expert could use the ADAU to save time when applicable, if you want to actually learn something about DSP programming avoid it ... all it can teach you is self deception about the limitations not being relevant.

It's not a spring board, it's a kiddy pool.
I guess, for me it's all about what result you get.
I don't care if that's with kids building blocks, or die hard programming.
In fact, the last one takes sometimes way to much time (for me)

Completely agree. I'll get my hands dirty if I have to, but if there is a kiddy toy way of making it happen, I'm 110% for that. I'm not going to reinvent the wheel.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf