Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user Defilus ! (Registered 2024-10-04) You are not logged in - nap
CSDb User Forums


Forums > CSDb Discussions > Longest sample?
2007-11-10 20:36
MagerValp

Registered: Dec 2001
Posts: 1066
Longest sample?

So who has managed to pack the longest sample into the C64? Has anyone implemented realtime playback of packed data? Macbeth/PSW invented a simple delta packer (0/10/11 for no change/down one/up one), but I think he only implemented it on the SuperCPU.

Hmm, since there's an obvious tradeoff between quality and size, I guess you'd have to count the number of samples, and not the number of seconds...
2007-11-10 20:41
Oswald

Registered: Apr 2002
Posts: 5078
pointless to ask, as there's a heavy tradeoff between quality and size. do you prefer long ununderstandable noisefest, or short hifi stuff ? or medium long with medium qual? :P
2007-11-10 20:49
tlr

Registered: Sep 2003
Posts: 1764
Boing-boom-triad is pretty long. No real time compression either.
Looking at the material it could quite a bit longer with simple RLE and maybe some editing of quiet parts.

Sure it's distorted, but it works surprisingly well for 1-bit and fairly low sample rate.
It's all about selecting material that works with the format. :)
2007-11-10 20:54
Steppe

Registered: Jan 2002
Posts: 1510
Does realtime loading of the samples while playing back count, too? Check State of the Art Soundtrack!
2007-11-11 11:20
MagerValp

Registered: Dec 2001
Posts: 1066
I guess what I'm really after is what interesting techniques have been used to play long samples. Streaming from disk is definitely cool!
2007-11-11 16:26
tlr

Registered: Sep 2003
Posts: 1764
I think there is some 87-ish game using disk streaming samples in the intro too. Don't remember the name.

Street Tuff used Amiga style fibonacci delta compression on the 1541 version of 22050 HERTZ. I don't think it's real time though.

Fibonacci delta (and Macbeth's one) falls into the Delta Modulation category.

In this category, I think CVSDM looks promising.
I've seen it used on late 80's Williams/Bally pinball machines.

For it to be useful for $d418, some linearising scheme might be required.

Usual tricks are bit depth only. 2 and 4 are quite common.
2007-11-12 22:29
Krill

Registered: Apr 2002
Posts: 2942
Speaking of streaming samples, if anyone is planning to do a demo with that, i can provide the loader technology (tm). :D 170kB of compressed samples can be quite long, i reckon. And some ADPCM variant similar to Streetuff/Benson's (?) for 4-bit playback should be replayable at a sample every other line easily.
2007-11-13 10:29
MagerValp

Registered: Dec 2001
Posts: 1066
170 kB streamed with Macbeth's 1.5-bit delta would give nearly two miutes at 7.8 kHz.
2007-11-13 11:30
tlr

Registered: Sep 2003
Posts: 1764
Does anyone have a link to $d418 -> output measurements?
I know I have seen voltage measurements somewhere, but couldn't find it now...
I'd like to give CVSDM a go.
2007-11-13 22:01
Street Tuff

Registered: Feb 2002
Posts: 88
@tlr
yup. 4bit fibonacci -> 8bit pcm decoding was done while loading in 22050 hertz. it could be done realtime but not at 22khz anymore.

quite simple routine...

more_data
jsr getbyte
bcs end ;carry is set when loading is done

tay
and #$0f
tax
lda delta,x
clc
adc current_sample
sta current_sample
jsr writebyte

tya
lsr
lsr
lsr
lsr
tax
lda delta,x
clc
adc current_sample
sta current_sample
jsr writebyte

jmp more_data
;--------------------------------------------------
current_sample =$ff
delta !byte 222,235,243,248,251,253,254,255,0,1,2,3,5,8,13,21
;--------------------------------------------------
2007-11-13 22:08
tlr

Registered: Sep 2003
Posts: 1764
22050 Hz is roughly 45 cycles per sample.
Should definately be doable in realtime if desired, even with the routine you show here.
 
... 13 posts hidden. Click here to view all posts....
 
Previous - 1 | 2 | 3 - Next
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
O'Dog
bugjam
Didi/Laxity
t0m3000/HF^BOOM!^IBX
Sentinel/Excess/TREX
Icon/TRIAD
wil
Guests online: 94
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Mojo  (9.6)
6 Uncensored  (9.6)
7 Wonderland XIV  (9.6)
8 Comaland 100%  (9.6)
9 No Bounds  (9.6)
10 Unboxed  (9.5)
Top onefile Demos
1 Libertongo  (9.9)
2 Moving Balls  (9.8)
3 Layers  (9.6)
4 Party Elk 2  (9.6)
5 Cubic Dream  (9.6)
6 Copper Booze  (9.6)
7 Rainbow Connection  (9.5)
8 It's More Fun to Com..  (9.5)
9 Morph  (9.5)
10 Dawnfall V1.1  (9.5)
Top Groups
1 Booze Design  (9.3)
2 Oxyron  (9.3)
3 Performers  (9.3)
4 Nostalgia  (9.3)
5 Censor Design  (9.3)
Top Organizers
1 Burglar  (9.9)
2 Sixx  (9.8)
3 hedning  (9.7)
4 Irata  (9.7)
5 Tim  (9.7)

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