Forums > MaxMSP

using audio for data transmission

July 8, 2010 | 3:52 pm

hi

could you give me a hint whats the best and easiest way to transmit ascii signs / data via audio signals ?
i try ed fiddle~ and analyze~ but had to many errors with 128 signs

thanks in advance


July 8, 2010 | 4:27 pm

This might not help you out, but fiddle~, pitch~ and analyse~ track high frequencies much better than low. You could try multiplying your ascii input by 10 or so before you send it as audio, and then multiply the results of your frequency tracking by 0.1 to get back to ascii values.


July 9, 2010 | 8:19 am

Can’t you transmit your audio signal over digital protocols like ADAT or S/PDIF? Then it may be possible to transmit binary informations without the need of "audio analyse".

p


July 9, 2010 | 1:31 pm

tim and patrick thanks for your replies
i want to transmit ascii data acoustically via telephone
so it needs to be a kind of modem dataset style encoding decoding


July 9, 2010 | 3:48 pm

hello zerox_,

-- --- ·-· ··· · -·-· --- -·· ·

http://en.wikipedia.org/wiki/Morse_code


July 12, 2010 | 6:23 am

Wonder if you could use good old AM for this, maybe like so:

1) each character lasts for 1 second
2) there are 32 distinct pitches,just plain cycle~ objects, in a good range for fiddle~
3) if there’s no change in amplitude through the pitch, it’s bank 1; if there’s one "dip", it’s bank 2; etc. up to 4 banks. Or 16 pitches with 8 banks. Should be able to decipher the dips at the other end with some patching, counting the changes in amplitude over the second timespan. Maybe you can get a lot faster too.

So, just using a simple cycle~ and *~ to modulate the outgoing pitches the right number of times per second should (in theory) work… might sound cool too.

If you get a more robust fft~ kind of analysis going, you can add different cycle~ objects together to make different ascii values: if there’s only a fundamental pitch, it’s bank 1; if there’s a first harmonic, it’s bank 2; etc.

edit: you could make the different banks based upon overall pitch loudness, would be a lot easier, doh :



Viewing 7 posts - 1 through 7 (of 7 total)