http://calcg.org/newlogo2.png Not Logged in.
Login | Register

General Discussion Board \ Calculator Discussion \ Calculator Sound

Click here to log in (you must be logged in to post comments).
Page: 1 2

AuthorComment
greenorange
Goliath
Posted: 22 Feb 2005
10:45 GMT
Total Posts: 199

Hey everyone. I've just made a calculator heaphone adapter, and already have started working with sound. I was planning to do an IR link, but that will have to wait. (cost, equipment, time...) But this sound thing is coming out good. Check this out:

http://www.angelfire.com/amiga2/anthonyl/archives/SoundBst.asm

That routine plays a pure tone on the TI-86, given a wavelength and duration. I'm gonna post a picture of an oscilliscope image to show how a TI-calculator sound looks like in its wave form. It's actually quite interesting. Expect the picture in about five or six hours, at least.

Morgan
Ultralisk
Posted: 22 Feb 2005
12:27 GMT
Total Posts: 321
Are you sure this isn't doing anything bad to your calc? It sounds almost too good to be true :-) How about the batteries, any rapid loss?
greenorange
Goliath
Posted: 22 Feb 2005
13:02 GMT
Total Posts: 199
Nope. Plus, I use rechargeables :blink_a:. It depends what you use as headphones. If you use big ones, the battery drops quicker. If you use earphones, there is no change. The oscilliscope is just a probe; doesnt hurt the calc any way.

[EDIT] I guess that oscilliscope image might be a little later. Those things are tricky to use!

[Edited by greenorange on 23-Feb-05 00:41]
Lunchbox
Carrier
avatar
Posted: 22 Feb 2005
17:07 GMT
Total Posts: 2007
you wanna port that to the 8x series :) ?

Actually, if you tell me what the "ConcOP1" ROM call does, i can port the rest. That is, if you don't mind.

[Edited by Lunchbox on 23-Feb-05 02:10]
calcadmin
Probe
Posted: 22 Feb 2005
17:21 GMT
Total Posts: 4
Sound in calulators, isnt this a little out there, nowadays, calculators arnt calgulators, they are gaming systems :(
dwestbrook
Goliath
Posted: 22 Feb 2005
17:30 GMT
Total Posts: 112
Think of it as a mini (really mini) computer, they were built to do calculations, but eventually evolved for games. If it gets me through Algebra class, hey i'm not complaining, though I do agree, sound in the calc is a little out there.
greenorange
Goliath
Posted: 22 Feb 2005
18:03 GMT
Total Posts: 199
Ya, about the ConcOP1. That was there by mistake. It was part of a test of something else. Fixed. Now the link is good. Ill post them pics in a sec...
greenorange
Goliath
Posted: 22 Feb 2005
18:36 GMT
Total Posts: 199
Here's a link to the page with those two pictures of the oscilloscope.

http://www.angelfire.com/amiga2/anthonyl/archives

The pictures are shots of an oscilloscope hooked up to my TI-86 running a program using my sound routine. The first one is a medium frequency, while the second is the highest one attainable on the TI, which is 46.5 kHz. You can see a bit of overlapping on the second one, but the sound is quite pure.

[Edited by greenorange on 23-Feb-05 03:37]

Lunchbox
Carrier
avatar
Posted: 22 Feb 2005
19:18 GMT
Total Posts: 2007
Thay's awesome! Can you post a pic of the headphone adapters?
greenorange
Goliath
Posted: 23 Feb 2005
06:02 GMT
Total Posts: 199
I could post a pic of the adapter, but I don't have my camera with me at the moment. However, I basically did this:

1.) I found a broken personal radio in my house
2.) I opened the radio, and unsoldered the jack
3.) After cutting a small TI cable in half (I have a bunch) I stripped the wire about half an inch. Then, I gathered all the copper wires inside and twisted them together. (There were two wires, and a copper shield around them; it consisted of a ton of small copper wires)
4.) Then I identified where each wire connected to (the jack has a tip, a middle, and a base). I did the same for the headphone jack.
5.) I soldered each corresponding wire to the contact panels on the headphone jack. Then, I wrapped the whole thing in alot of electric tape.

In the end, I have a 2-3 inch stub, with a headphone-in jack on one end, and a calc-out jack on the other.
Lunchbox
Carrier
avatar
Posted: 23 Feb 2005
09:58 GMT
Total Posts: 2007
Huh, i cut my cable in half a while ago. So which wire on the TI cablee goes to which on the headphone jack? I see the copper wires, the red wire, and the white wire on the TI cable btw, but i'm having trouble separating the speaker face from the body so that i can jack the jack
greenorange
Goliath
Posted: 23 Feb 2005
10:10 GMT
Total Posts: 199
Your headphone jack should have no speaker or anything attached to it. It should be a tiny box that can fit a headphone jack in it. Maybe you misunderstood; Ill draw a diagram, and post on my site.
greenorange
Goliath
Posted: 23 Feb 2005
10:51 GMT
Total Posts: 199
Diagram uploaded. Take a look:

http://www.angelfire.com/amiga2/anthonyl/archives

TI Freak
Probe
Posted: 23 Feb 2005
11:21 GMT
Total Posts:

Edit
Why not just get an adapter...?
greenorange
Goliath
Posted: 23 Feb 2005
11:27 GMT
Total Posts: 199
Dunno. Never crossed my mind to go to radio shack. This only took ~15 minutes, so it was quicker.
Lunchbox
Carrier
avatar
Posted: 23 Feb 2005
12:01 GMT
Total Posts: 2007
Erghh, it takes forever to get these dang wwires right, especially without a soddewring iron. I seem to have misplaced mine. I did get the software running on my 83+, however. So at least i got one part done.
greenorange
Goliath
Posted: 23 Feb 2005
12:09 GMT
Total Posts: 199
Currently I'm working on a little prog that should play a C scale using my routine. Dunno how it will sound, but it might come out OK. I hope my diagram helps a bit.

[EDIT] Sound routine just edited. Now, the duration is not affected by frequency.

[Edited by greenorange on 24-Feb-05 01:16]
Lunchbox
Carrier
avatar
Posted: 23 Feb 2005
21:01 GMT
Total Posts: 2007
did you post it yet?
greenorange
Goliath
Posted: 24 Feb 2005
04:32 GMT
Total Posts: 199
Yup. Check the same link with the oscilloscope pictures.
Lunchbox
Carrier
avatar
Posted: 24 Feb 2005
11:16 GMT
Total Posts: 2007
Found and coverted. really need to get that sound system working tho.
greenorange
Goliath
Posted: 24 Feb 2005
13:00 GMT
Total Posts: 199
Do you use VTI? If so, did the program I made work for you?
Lunchbox
Carrier
avatar
Posted: 24 Feb 2005
14:01 GMT
Total Posts: 2007
It works on my regular 83+, or so it seems. I can't hear sound cause I haven't finished that part yet, but the program runs fine and shows no errors. I made it run under Mirage as well and gave it a nifty little image of soundwaves echoing outward from the centerpoint. I also can't use VTI cause i have a silver link cable and i'm too lazy to get a rom dump any other way btw.
greenorange
Goliath
Posted: 24 Feb 2005
14:27 GMT
Total Posts: 199
As suggested by TI Freak, I think you could probably buy one. If you can't then do the following:

If you just have a pair of headphones, and a cut TI link, just connect the wires. Cut the plug off the headphones, and splice it. Then, connect the wires. If the copper wire doesn't exist in the headphones, then tape the one from the TI link out of the way. Then connect the two TI wires to the two headphone wires, and your done! I hope that helps.
Lunchbox
Carrier
avatar
Posted: 24 Feb 2005
16:05 GMT
Total Posts: 2007
That's what i'm doing, except with a pair of old speakers :)
greenorange
Goliath
Posted: 24 Feb 2005
16:11 GMT
Total Posts: 199
That could be your problem; Speakers require a lot of power; Unless their smaller than 1 inch in diameter, you might not hear much.

Although, I hooked a 1ft subwoofer and two 6inch speakers to my calc, and played mario, and it worked fine. I pumped the volume up real high.

But then again, they get power from the AC wall plug...

[Edited by greenorange on 25-Feb-05 01:12]
TI Freak
Probe
Posted: 24 Feb 2005
16:14 GMT
Total Posts:

Edit
lol, SM with sub-woofers! What a way to play!!
greenorange
Goliath
Posted: 24 Feb 2005
17:53 GMT
Total Posts: 199
Yup! gotta admit it myself, having surround sound designed speakers hooked up to your calc is truly a different experience!
dwestbrook
Goliath
Posted: 24 Feb 2005
18:27 GMT
Total Posts: 112
But then again, if you pulled out the speakers and set them on your desk, and plugged them into a wall, any teacher, no matter how stupid would realize something was up.
Lunchbox
Carrier
avatar
Posted: 24 Feb 2005
18:53 GMT
Total Posts: 2007
Ya, mine have AC in. actually, most of my teachers wouldn't care as long as we weren't doing an activity, but it'd be a hassle to carry around.
greenorange
Goliath
Posted: 25 Feb 2005
05:14 GMT
Total Posts: 199
LOL, the speakers I mentioned would not fit in my bag! If I tried pulling THOSE out in class, I would be suspected as a terrorist or something. But I do sincerely recommend if you try to make calculator sound, use headphones, because there is a much greater chance that they will work.
Ray Kremer
Ultralisk
Posted: 25 Feb 2005
08:35 GMT
Total Posts: 310
This was first done years and years ago. Old news.

http://www.technicalc.org/tifaq/?p1.htm#2.4

Lunchbox
Carrier
avatar
Posted: 25 Feb 2005
20:07 GMT
Total Posts: 2007
I got my speakers hooked up finally and the sound works perfectly! right now all it does is beep, but at least it makes sound. I will have the program and source (83/84+/SE version) on my site, HERE

EDIT: Working on making it put out the Mario theme song :) :) . Just takes a lotta time to get the frequencies and durations right tho. I also added a pause routine that has the same d-input as the soundblast one, but puts out no sound. Very useful for little breaks in the sound. One bug I found, however, is if you set a to 255, it plays for about 3 times as long as it normally should, and if it's at 250-254, it plays for hardly any time at all.

[Edited by Lunchbox on 26-Feb-05 06:37]
greenorange
Goliath
Posted: 26 Feb 2005
09:13 GMT
Total Posts: 199
Yup! That bug exists; I used to have that as a comment, but I must have deleted it. For some reason that happens, 254 works, and 255 plays, but then it holds the tune for a while. Another thing about this routine is that it can only hit high frequency's. Low ones require a tweaked routine, but it's not a big deal.

Good job getting it to work; and good luck with the Mario theme song! I can work on my routine so it accepts a series of values rather than one at a time.

[EDIT] Nice source code! However, the comments are out of date a bit. Did you notice that when I changed the code before, I changed the 254 loop counter? The routine's code is the same as mine, but the comments are from the old version. However, nice job! I wish I had an emulator to see how it really sounds. I assume, since the processor is faster than the 86, that the routine outputs higher frequency. Pretty interesting...

[Edited by greenorange on 26-Feb-05 18:56]
xbikerj1985x
Marine
Posted: 28 Mar 2005
03:40 GMT
Total Posts: 15
Lunchbox's port of your prgm works flawlessly on my 83+ :headphones: Id like to here his/her rendition of the mario theme when s/he finishes it.

[Edited by xbikerj1985x on 28-Mar-05 13:42]
Lunchbox
Carrier
avatar
Posted: 28 Mar 2005
09:23 GMT
Total Posts: 2007
His. And I've kinda abandonned that project to my low priority list, so until i finish my shell and my sprite program, or maybe sometime when I have alot of free time, I'll get back to it. Also, Greenorange, I think I will tweak it to use hl for the frequency instead of a. One question though, do I output both h and l at the same time, or do i put a pause in between?
greenorange
Goliath
Posted: 28 Mar 2005
13:29 GMT
Total Posts: 199
My assembly might be bad off the top of my head, but I think you can use either h or l rather than both. If you send it a number (which should be less than 255) it will only go to l. That way, only output l, unless it cannot hold the value. Then I think you should not use any pauses, or the frequency will be invalid.
korkow
Ultralisk
Posted: 28 Mar 2005
17:05 GMT
Total Posts: 465
Im planning on getting speakers that I could "attach" to my calc (Kinda like a gameboy). I just have to go to Radio Shack and get the adapter!

[Edited by korkow on 29-Mar-05 03:06]
threefingeredguy
Ghost
avatar
Posted: 28 Mar 2005
19:08 GMT
Total Posts: 1189
i made that a year ago when i first got omnicalc (it has sound) just get a 2.5 male to 3.5 female adapter:

2.5 3.5
---[[[[[[[O

plug the 2.5 into ur linkport and headphones into the 3.5.

84+ users will need to shave of quit a bit of the plastic casing to get it to fit into the sunken linkport.

i also used this adapter to hook up a usb->audio cable for my wireless chat progs :-D

---
Someone call for an exterminator?
threefingeredguy
Ghost
avatar
Posted: 28 Mar 2005
21:08 GMT
Total Posts: 1189
i tried to port it but when i run the prog, nuthing happens. could someone port it and post it?

---
Someone call for an exterminator?
Lunchbox
Carrier
avatar
Posted: 28 Mar 2005
22:15 GMT
Total Posts: 2007
Which calc? if you look, I have a link posted for the 83+ version. There might be a slight diffeerence for the 84+ howeever since it has multiple link ports, but i'll look it up once i get the time. Also, nice ascii gfx 3fg :)
alex10819
Wraith
Posted: 29 Mar 2005
08:43 GMT
Total Posts: 507
huh... i dont know how to tell it which port in ASM, but in basic you use a 0 for USB and a 1 for I/O... also, the calculator automatically uses USB as the default unless otherwise selected...
Lunchbox
Carrier
avatar
Posted: 29 Mar 2005
08:45 GMT
Total Posts: 2007
Its not that eeasy in asm. I assume since the standard i/o port is port# 0 on the 83+/se that it would be the same on the 84+/se, but maybe not.
alex10819
Wraith
Posted: 29 Mar 2005
08:49 GMT
Total Posts: 507
no, i think they replaced the I/O with USB for the default port. i dont really know, but is there anyone who would know for sure?
Andy
Administrator
Posted: 29 Mar 2005
10:24 GMT
Total Posts: 939
CPU Port 0 on the 84+ is still the I/O port.
alex10819
Wraith
Posted: 29 Mar 2005
10:57 GMT
Total Posts: 507
ok... either way...
Lunchbox
Carrier
avatar
Posted: 29 Mar 2005
16:50 GMT
Total Posts: 2007
It should work then, and it is a mirage prog btw.
austinbelville
Marine
Posted: 29 Mar 2005
17:21 GMT
Total Posts: 39
why cant you just use a headset designed for a cellphone the only extra thing included is a mic and with that you might be able to store sounds too. (just an idea). then you wouldnt even have to splice wires just plug it in.

Edit by Andy: STOP YELLING! Don't do all caps again or I'll hit the delete button, not the edit button.

[Edited by Andy on 30-Mar-05 03:27]
Andy
Administrator
Posted: 29 Mar 2005
17:28 GMT
Total Posts: 939
And no, you can't "store" sounds with a calculator. That would definitely require an analog-to-digital converter.
Lunchbox
Carrier
avatar
Posted: 29 Mar 2005
17:31 GMT
Total Posts: 2007
ya, and anything more than a 16-bit, low kbps rate would hog meemory like a mother.
Andy
Administrator
Posted: 29 Mar 2005
17:32 GMT
Total Posts: 939
Oh, and at any rate: You *can* use one of those for sound. It does work.


Page: 1 2



Portal | My Account | Register | Lost Password or Username | TOS | Disclaimer | Help | Site Search | File Archives Copyright © 2002-2019 CalcG.org