Login [Register]
Don't have an account? Register now to chat, post, use our tools, and much more.
This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's Your Projects subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. Sonic => Your Projects
United-TI Archives -> Sonic
 
    » Goto page Previous  1, 2, 3  Next
» View previous topic :: View next topic  
Author Message
the_unknown_one


Advanced Newbie


Joined: 18 Jun 2004
Posts: 79

Posted: 11 Feb 2005 07:17:13 am    Post subject:

Nice man, but you really have to try to get the bad noise (or however its called) out of it. Else, nice Wink If you guys need any help, just ask Wink
Back to top
Weregoose
Authentic INTJ


Super Elite (Last Title)


Joined: 25 Nov 2004
Posts: 3976

Posted: 11 Feb 2005 12:39:17 pm    Post subject:

That's the white noise which is so common from downsampling a sound byte.

I'll see what I can do about cleaning it up. :)

[EDIT]

Try this out: genesis_sample_goose.wav

It maintains the same center frequency, and it's about 8,000 bytes smaller.

I don't know much about music coming from the calc, so... we'll see.

[EDITx2]

Just ignore me. Laughing This isn't going to work.


Last edited by Guest on 25 Nov 2005 12:13:56 am; edited 1 time in total
Back to top
DigiTan
Unregistered HyperCam 2


Super Elite (Last Title)


Joined: 10 Nov 2003
Posts: 4468

Posted: 11 Feb 2005 04:09:14 pm    Post subject:

I talked to someone about the noise and they said it was a common form of aliasing that is a side-effect of undersampling. Also, each tone generates a bunch of harmonic tone that extend well in to the upper hearing range. I haven't tested the sound on my actual calc yet because my link cables aren't working with my computer. I'll try to debug them and get a real sound sample.
Back to top
the_unknown_one


Advanced Newbie


Joined: 18 Jun 2004
Posts: 79

Posted: 11 Feb 2005 05:18:20 pm    Post subject:

Hopefully it'll be better on calc Razz Else... I dont know if its good enough to do Razz
Back to top
DigiTan
Unregistered HyperCam 2


Super Elite (Last Title)


Joined: 10 Nov 2003
Posts: 4468

Posted: 12 Feb 2005 08:55:15 pm    Post subject:

This week, I'm working with an audio expert to try and figure out why that loud noise is in the foreground. Today, I isolated some of the foreground noise, and it was mostly in the 3,200Hz region. I was expecting it to be in the 8000Hz or 461KHz regions, so I can't explain why it's so low. It might just be an emulator-only problem.
Back to top
shadowing
Powered by 64


Calc Guru


Joined: 06 Jan 2004
Posts: 1002

Posted: 13 Feb 2005 01:11:08 am    Post subject:

SWEET!!! Smile Although I don't get how sound works...
Back to top
DigiTan
Unregistered HyperCam 2


Super Elite (Last Title)


Joined: 10 Nov 2003
Posts: 4468

Posted: 13 Feb 2005 02:37:41 am    Post subject:

Basically, all it does is send a string directly to the speakers to create sound waves. The problem is, long 1's and 0's are too overpowering and the loudness makes it sound like a trainwreck.

Instead of sending pure 1's and 0's, I sent sort "on-off" bursts to the speaker for each 1, and did nothing for each 0. This solved the volume problem but not the noise.

Here's a crued drawing of the volume-control method. If you view it from very far away, the groups of pulses would look like gray blocks instead of individual pulses. This is ~sort of what's going on with the ear--because an ear can't hear a 2 micro-second pulse unless it's part of a huge group. At least that's how its supposed to work.

Back to top
DigiTan
Unregistered HyperCam 2


Super Elite (Last Title)


Joined: 10 Nov 2003
Posts: 4468

Posted: 24 Feb 2005 02:31:28 am    Post subject:

Okay, here is the playback program (with sound string). It's the intro to the Green Hill Zone. If someone could port it to their calc and test it, that would help me solve this noise problem. Basically, I need to know this:

* Is that high-pitched ringing still there?
* How loud is the noise?
* Is the quality better or worse than the ones I posted 2 weeks ago?
* Was the volume loud or quiet?

...Just real basic stuff. Here is the ASM file without the sound string (based on Andrea Ess's version). If you have any ideas for it, let me know.


Code:
#include "crash82.inc"
.db "Playback",0      ; Tile (as seen by shell)

; PORTING: Porting to 83+ should be very easy; you just have to change the
;       above header and maybe the port numbers.

; NOTES: I did not test the keyport-reading instructions on line 29.
;       They are necessary for the program to be able to escape after the
;       wavefile was ended.  It won't end automatically.

; OTHER NOTES: Instruction timing is commented.  The first number shows
;       the number of Tstates.  The second number shows execution time
;       in micro-seconds.  Instructions like DJNZ and JR,NZ take longer
;       if they are jumping.

start_wave:
 di                    ; Disable interrupts for sound consistancy
 ld hl,Sound+2        ;   10; 1.667us      ; Skip the filesize word
 ld c,8                ;    4; 0.667us      ; C = Bit Counter
 ld e,%00000001        ;    4; 0.667us      ; E = Rotating bit mask


do_wave:
wave_rate:
 ld b,52              ;    4; 0.667us      ; B = Playback rate
rate:
 djnz rate            ; 13/8; 2.167us / 1.333us

 ld a,$FF
 out (1),a            ; Clear all key states
 ld a,%10111111        ; Don't mask out 2ND,MODE,or DEL group
 out (1),a            ; Mask
 in a,(1)              ; Read keys
 bit 7,a              ; ALPHA exits
 ret z                ; Escape to shell

 dec c                ;    4; 0.667us      ; Decrement bit counter
 jr nz,next_bit        ; 12/7; 2.000us / 1.167us    ; Next bit?
next_byte:
 ld c,8                ;    4; 0.667us      ; Reset bit counter
 inc hl                ;    6; 1.000us      ; Next byte

next_bit:
 rrc e                ;    8; 1.333us      ; Rotate bit mask
 ld a,(hl)            ;    7; 1.167us      ; Load current byte
 and e                ;    4; 0.667us      ; Mask now
 jr z,lo_port          ; 12/7; 2.000us / 1.167us

hi_port:              ; SEND IMPULSE TO LINKPORT
 ld a,%11111100        ;    4; 0.667us
 out (0),a            ;   11; 1.834us
 ld a,%11000000        ;    4; 0.667us
 out (0),a            ;   11; 1.834us
 jr do_wave            ;   12; 2.000us

lo_port:              ; DOES NOTHING
 jr do_wave            ;   12; 2.000us


Sound:
; Insert sound string here

.end


Last edited by Guest on 24 Feb 2005 02:32:36 am; edited 1 time in total
Back to top
Adm.Wiggin
aka Tianon


Know-It-All


Joined: 02 Jun 2003
Posts: 1874

Posted: 27 Feb 2005 12:35:35 am    Post subject:

for more info on the R register, and why it sometimes adds 2, read here. Scroll down a little, to letter 'd'.

May not be helpful at all, but I saw it, and thought I'd share.
Back to top
DigiTan
Unregistered HyperCam 2


Super Elite (Last Title)


Joined: 10 Nov 2003
Posts: 4468

Posted: 27 Feb 2005 01:10:19 am    Post subject:

Man, I love that website! Yeah, I decided to give up on the R register thing alltogether because it kept changing the sound.
Back to top
MeltedIce


Newbie


Joined: 17 Mar 2005
Posts: 8

Posted: 18 Mar 2005 12:56:04 am    Post subject:

Well I converted the sound that Supergoose posted. I converted it to 11hz-8bit-Mono. The same format that PlayWave uses. I just cant make the .8xp file. Im looking on how to do it. I will post it as soon as i get it.
Back to top
MeltedIce


Newbie


Joined: 17 Mar 2005
Posts: 8

Posted: 18 Mar 2005 01:17:14 am    Post subject:

I couldn't find an edit button, so I had to double post. Well I got the .8xp file finished. Its really small and short. I cant get PlayWav to work on my calc, so I need somone to test it for me. Here is the link test.zip. Please tell me how it goes. Very Happy
Back to top
Weregoose
Authentic INTJ


Super Elite (Last Title)


Joined: 25 Nov 2004
Posts: 3976

Posted: 18 Mar 2005 02:03:54 am    Post subject:

Edit Button: Look across the page from your name above your post.

The whole idea of playing sound from the calc still perplexes me. I have the proper adapter and I know how it should work, but every program I've downloaded hasn't yet worked for me (archived, unarchived, compiled, not compiled, whatever). It makes no sense to me. Sad
Back to top
DigiTan
Unregistered HyperCam 2


Super Elite (Last Title)


Joined: 10 Nov 2003
Posts: 4468

Posted: 18 Mar 2005 04:35:19 pm    Post subject:

Sometimes it's the adapter. I had to file some of the plastic off my Radio Shack adapter to get it to fit all the way. Until then, it just froze my calculator.
Back to top
SonicBoom95


Member


Joined: 31 Jan 2008
Posts: 237

Posted: 04 Feb 2008 01:24:05 pm    Post subject:

DigiTan wrote:
Also, I'm in the process of converting some Sonic 1 MIDIs to sheet music.  Starting with the Green Hill Zone.  Any other requests?
[post="46718"]<{POST_SNAPBACK}>[/post]

Hidden Palace Zone (Sonic 2 Long) and the Sonic 2 ending. Thanks in advance!


Last edited by Guest on 04 Feb 2008 01:25:59 pm; edited 1 time in total
Back to top
kermmartian
Site Admin Kemetech


Calc Guru


Joined: 20 Mar 2004
Posts: 1220

Posted: 04 Feb 2008 02:29:13 pm    Post subject:

SonicBoom95 wrote:
DigiTan wrote:
Also, I'm in the process of converting some Sonic 1 MIDIs to sheet music.  Starting with the Green Hill Zone.  Any other requests?
[post="46718"]<{POST_SNAPBACK}>[/post]

Hidden Palace Zone (Sonic 2 Long) and the Sonic 2 ending. Thanks in advance!
[post="119912"]<{POST_SNAPBACK}>[/post]

Three year necropost! You win the prize.
Back to top
Art_of_camelot


Member


Joined: 05 Jan 2008
Posts: 152

Posted: 04 Feb 2008 11:32:23 pm    Post subject:

Congrats!

XD
Back to top
SonicBoom95


Member


Joined: 31 Jan 2008
Posts: 237

Posted: 08 Feb 2008 02:58:43 pm    Post subject:

OH CRAP! NOT AGAIN! I'VE DONE THIS IN EVERY SINGLE FORUM I'VE SIGNED ONTO! *begins smashing head into wall* LOOK *smash* AT *smash* THE *smash* DATE *smash* STAMP! *smashsmashsmash*

I'm sorry for the liberal use of caps in the above, and am really sorry for failing to look at the date stamp AGAIN.
Back to top
Demon


Advanced Member


Joined: 17 Jun 2006
Posts: 369

Posted: 08 Feb 2008 03:59:55 pm    Post subject:

Ha-ha...
I didn't even know this thread existed until now. Razz
Back to top
shadowing
Powered by 64


Calc Guru


Joined: 06 Jan 2004
Posts: 1002

Posted: 08 Feb 2008 09:18:03 pm    Post subject:

It's all right. Most of the threads here are old. It's better to revive them then to start a new one when they're in the front page.
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    » Goto page Previous  1, 2, 3  Next
» View previous topic :: View next topic  
Page 2 of 3 » All times are GMT - 5 Hours

 

Advertisement