Documentation and use with Python/C

Moderator: flatmax

Post Reply
pegodk
Posts: 6
Joined: Thu Jun 29, 2017 5:14 pm

Documentation and use with Python/C

Post by pegodk » Thu Jun 29, 2017 5:38 pm

I have received the Octo board a couple of days ago and I'm really looking forward to use it in various projects.

The installation went quite smooth. I did have some problems with 'Channels count non available', but it was easily fixed by following the suggestions in other threads.

Since I am a beginner of the Octo card and Raspberry Pi in general, I am looking for documentation which can be helpful. Is there any general documentation for the Octo card or is the information found in the various threads on the forum? Especially some more information on how to set up the drivers and channels would be a big help. Sample projects for various configurations with the Octo card would be a great help as well.

My application of the Octo card is to build a portable microphone array for beamforming applications. Therefore, I need to get data from the 6 input channels and process continuously. I have looked at the thread Getting started with Python 3.0 for inspiration, but I haven't been able to make it work.

On the PyAudio homepage, they provide some examples for various uses of PyAudio such as playing/recording. How can I integrate these for the Octo board?

I realize that was a lot of questions, but I will be grateful for anything that can point my in the right direction!

Thank you.
Peter

flatmax
Posts: 609
Joined: Sat Jul 23, 2016 11:39 pm

Re: Documentation and use with Python/C

Post by flatmax » Thu Jul 06, 2017 6:03 pm

Hi there,

Are you wanting to program your own algorithm ?

I like to use C++ and either Jackd or ALSA.
For jackd, you can use sample code similar to this jack client :
http://gtkiostream.flatmax.org/JackClie ... ample.html

For ALSA, I have a full duplex client which will give you much less overhead :
http://gtkiostream.flatmax.org/ALSAFull ... ample.html

I am finding that the ALSA Full Duplex example is tighter and more light weight then the jackd example.

Oh and you can write your own ALSA plugin if you like :
http://gtkiostream.flatmax.org/ALSAExte ... ample.html

Matt
Check out our audiophile quality crossovers : https://bit.ly/2kb1nzZ
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector

pegodk
Posts: 6
Joined: Thu Jun 29, 2017 5:14 pm

Re: Documentation and use with Python/C

Post by pegodk » Thu Jul 13, 2017 10:57 am

Dear Matt,

Thanks a lot for your comment. C++ is fine for me as well. Let me try the code and report back on my findings.

Thanks again.

Peter

flatmax
Posts: 609
Joined: Sat Jul 23, 2016 11:39 pm

Re: Documentation and use with Python/C

Post by flatmax » Sat Jul 22, 2017 9:12 pm

If you are interested, I have started a series of tutorials here on the topic if audio programming with gtkIOStream.

Here is the first setup tutorial :
http://forum.audioinjector.net/viewtopi ... =10&t=2977

Matt
Check out our audiophile quality crossovers : https://bit.ly/2kb1nzZ
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests