Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Looping "woooawoooawoooa"-sound from old intros?
2012-06-17 14:51
Shadow
Account closed

Registered: Apr 2002
Posts: 355
Looping "woooawoooawoooa"-sound from old intros?

Yeah, that cryptic description is the best I could do.
So what I'm looking for is the code (which I'm guessing is just a couple of lda/sta to the correct SID-registers) to get that looping, electronic sound "woaawooawooa" that some old intros used instead of music.
I tried fiddling around with the SID-regs to try and recreate it, but no success.
Or if anyone can just remember a intro that uses it, then I guess it would be trivial to just look at the code.
2012-06-17 14:51
Mason

Registered: Dec 2001
Posts: 461
I cant rememeber a intro using it, but you can find it in ECA Paker
2012-06-17 15:00
Conrad

Registered: Nov 2006
Posts: 849
http://intros.c64.org/inc_download.php?iid=134 ?

There loads of different tones used in different intros, but my bet that this is the one similar?
2012-06-17 16:31
Mr. SID

Registered: Jan 2003
Posts: 424
Try this:

			lda #$1f
			sta $d418
			sta $d405
			sta $d40c
			sta $d413
			
			lda #$ff
			sta $d406
			sta $d40d
			sta $d414
			
			lda #$51
			sta $d404
			lda #$21
			sta $d40b
			lda #$15
			sta $d412
			
			lda #$04
			sta $d401
			sta $d408
			sta $d40f
			
			ldx #$14
			stx $d400
			
			ldx #$19
			stx $d407
			
			ldx #$0f
			stx $d40e

			lda #$00
			sta $d415
			lda #$04
			sta $d416
			lda #$ff
			sta $d417
2012-06-17 16:33
Burglar

Registered: Dec 2004
Posts: 1101
last part of The Final Edge
2012-06-17 16:37
Shadow
Account closed

Registered: Apr 2002
Posts: 355
Thanks all, yeah, I guess there are variations on this (different frequencies, filters etc. I guess?)
The code Mr.SID posted produces more or less exactly the sound I was thinking of - nice job from the vague description! :)
2012-06-17 17:26
Total Chaos

Registered: Mar 2006
Posts: 74
This is the way I do it (as in Nervous Twitch f.ex.)

setsound:
		ldx #$1f
sndloop:
		lda sndtab,x
		sta $d400,x
		dex
		bpl sndloop
		rts
//----------------------------------------------------------
sndtab:
		.byte $30, $04, $00, $00, $21, $0f, $fa, $28
		.byte $04, $00, $00, $21, $0f, $fa, $18, $02
		.byte $00, $00, $21, $0f, $fa, $00, $00, $ff
		.byte $3f, $6d, $00, $00, $00, $00, $00, $02
//----------------------------------------------------------
2012-06-17 18:02
Shadow
Account closed

Registered: Apr 2002
Posts: 355
I just found the following sequence ($d400 and forward) in an intro produces exactly the sound I remembered:

.byte $30,$04,$00,$00,$21,$0f,$fa,$28
.byte $04,$00,$00,$21,$0f,$fa,$18,$02
.byte $00,$00,$21,$0f,$fa,$00,$10,$ff
.byte $3f

Seems like it's pretty much the same as yours Total Chaos, with a few bytes exception.

-edit- scratch that, it is exactly the same except your snippet just had some extra bytes included and ONE single bit set in d416 that differs
2012-06-18 13:53
Cruzer

Registered: Dec 2001
Posts: 1048
Used to do these kinds of sounds in Basic back in the days to have some sound for the demo effects I was trying to code, without using "rastertime". :)

It's one of the only programs I have typed in from a computer mag. They called it something like "a space sound that doesn't use any CPU resources at all", and that sounded a little too interesting.

After switching to machine code I've always had this option in the back of my mind as a last resort if I was completely out of cycles. This hasn't happened yet, but I won't rule it out, especially if I could get a musician to integrate it as a part of a tune.
2012-06-18 15:26
Sander

Registered: Jan 2002
Posts: 496
Quote:
especially if I could get a musician to integrate it as a part of a tune.

This calls for a compo! Least cpu, least memory.
2012-06-18 15:43
Total Chaos

Registered: Mar 2006
Posts: 74
I actually started to code a player based on the routine above.
I never finished it but it should be able to play chords with a few lda/sta :)

Come on Cruzer, make me one ;)
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Guests online: 95
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.6)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top Crackers
1 Mr. Z  (9.9)
2 Antitrack  (9.8)
3 OTD  (9.8)
4 Fungus  (9.8)
5 S!R  (9.8)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.046 sec.