BBC BASIC for Windows
« Images from sound visa versa »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 9:56pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Images from sound visa versa  (Read 171 times)
Torro
New Member
Image


member is offline

Avatar




PM


Posts: 25
xx Images from sound visa versa
« Thread started on: Aug 3rd, 2015, 08:37am »

http://photosounder.com/

Would something like this be possible using the standard basic commands available or with minor extentions to libraries?
User IP Logged

DDRM
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 321
xx Re: Images from sound visa versa
« Reply #1 on: Aug 4th, 2015, 09:11am »

Hi Torro,

Hmmm. This one looks right up Richard's street, but unfortunately I understand that he has resigned from the group, at least temporarily.

I guess the short answer would be "yes" - you can load both sound files and image files into memory and reference them. In the manual, under "playing WAV files", it describes how to load a file into memory. If you know the header structure etc it should be straightforward to access the sound data, and use it to construct images which you could then manipulate.

You might want to put the images into DibSections, so you can access the memory directly - see here:
http://bb4w.wikispaces.com/Direct+screen+memory+access

That lot all takes you a little outside standard BB4W, but not far.

Having said all that, I don't think it's going to be a trivial exercise, and may not run fast enough, because won't you need to use Fourier transforms to convert the wav data into frequencies for display? That's something Richard would be very comfortable with (indeed, FFTW2DLL.DLL is available somewhere on the Yahoo group), and if it's in your skillset then you might be well in!

Hope that's helpful.

Best wishes,

D
User IP Logged

David Williams
Developer

member is offline

Avatar

meh


PM

Gender: Male
Posts: 452
xx Re: Images from sound visa versa
« Reply #2 on: Aug 4th, 2015, 09:45am »

on Aug 4th, 2015, 09:11am, DDRM wrote:
Hmmm. This one looks right up Richard's street, but unfortunately I understand that he has resigned from the group, at least temporarily.


Any idea why?


David.
--
User IP Logged

Torro
New Member
Image


member is offline

Avatar




PM


Posts: 25
xx Re: Images from sound visa versa
« Reply #3 on: Aug 4th, 2015, 09:54am »

You mean like this ? http://rosettacode.org/wiki/Fast_Fourier_transform#BBC_BASIC

This guy of course is the real master http://minotaurproject.co.uk/neon.php
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls