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


Forums > C64 Coding > 44.1kHz 8-bit samples - HowTo
2014-02-26 12:47
Pex Mahoney Tufvesson

Registered: Sep 2003
Posts: 50
44.1kHz 8-bit samples - HowTo

I've written a summary on how to play 8-bit samples at 44.1kHz on the Commodore 64, as I did in the Musik Run/Stop demo. For some of you, it's a good read:

http://www.livet.se/mahoney/index_timeline.php

I'll be putting some source files for you there as well sooner or later.
---
Have a noise night!
http://mahoney.c64.org
 
... 9 posts hidden. Click here to view all posts....
 
2014-02-26 22:29
The Human Code Machine

Registered: Sep 2005
Posts: 110
@encore What features do you mean for my Protracker replayer? It's feature complete and supports all Protracker commands. Even with SounDemoN's 8 Bit waveform output I'm able to play a full featured Protracker modules @ 7812hz and 4 voices. I'm only limiting the different volumes to 32 and limit the amount of different periods to get more memory for samples and music data. With the new replay method it's even possible to add more voices or higher mixing rates.

The a Cappella part for example uses 3 voices @ 11.718hz with reduced feature set to get better sample quality and some action on the screen.

@lft When using more than one voice we're doing it like you explained.
2014-02-26 22:52
soci

Registered: Sep 2003
Posts: 474
Quoting Pex Mahoney Tufvesson

Now, quantization is a bad thing. So I didn't first quantize the 44.1kHz samples into 8 bits, and then into the available amplitude levels found with this technique. For instance, the 6581 version of the samples uses 107 different values written into $d418 in the demo.


I didn't notice that there were 3 different versions on the disk. I've only run it on 8580 and that version had 93 values.

Would it improve anything if sustain values other than 15 were used? Long ago I did a ~5 bit digi by using the volume+3off combination where the third channel was set differently to have a better linearity.
2014-02-27 15:49
Perplex

Registered: Feb 2009
Posts: 254
Has anyone started experimenting on using this technique with a REU? If you fix the C64 address to $D418 you can play a 64kB sample at a whopping 985kHz for about 0.066 seconds. Hmm, not very useful. How about doing single byte transfers with STA $DF01 : BNE *-3 to get ~140kHz for about 2 minutes on a 16MB REU, would that work? (Not that you would hear much difference compared to 44.1kHz, though.)
2014-02-27 16:33
algorithm

Registered: May 2002
Posts: 702
REU should be forbidden in anything c64 related!

Nice method of staying with the same $d418 method but at increased resolution due to the pre-setup. Would use more cycles than the traditional lda #xx sta $d418 due to translation tables to map the sample data to the converted data to $d418 (Although can pre-convert the data) to save on cycles.
2014-02-27 16:54
Perplex

Registered: Feb 2009
Posts: 254
Quoting algorithm
REU should be forbidden in anything c64 related!

Why? It's not like anyone is forcing you to look at it.
2014-02-27 17:03
algorithm

Registered: May 2002
Posts: 702
True, but everyone is entitled to their opinions and i have given mine :-)
2014-02-27 18:03
encore

Registered: Aug 2010
Posts: 64
lft: Thanks for the explanation and really cool that it can be used for realtime calculated samples.


Quoting The Human Code Machine
@encore What features do you mean for my Protracker replayer? It's feature complete and supports all Protracker commands. Even with SounDemoN's 8 Bit waveform output I'm able to play a full featured Protracker modules @ 7812hz and 4 voices. I'm only limiting the different volumes to 32 and limit the amount of different periods to get more memory for samples and music data. With the new replay method it's even possible to add more voices or higher mixing rates.


THCM: Ah, nice! In the beta I tried in late 2010 the readme-file stated that for time being it wasn't possible to add frequency or volume commands. But I suppose a lot of progress have happened since then. :)
2014-02-27 20:37
WVL

Registered: Mar 2002
Posts: 886
Well.. if it's really only 6.5 bit samples, let's say 6 bits, than there's some compression right there already. Let's just store 6 bits, and get the corresponding 8 bit value from the lookuptable.
2014-03-02 05:34
Urban Space Cowboy

Registered: Nov 2004
Posts: 45
I was interested to read these passages:
Quote:
I went back to my own software SID
emulator (similar to reSID, but my own version of it)

Quote:
Armed with this new knowledge, and with an updated
SID software emulator

Mahoney, please submit your improvements to the VICE project. Poor little ReSID hasn't had any attention since August last year. :(
2014-03-03 15:44
chatGPZ

Registered: Dec 2001
Posts: 11148
i second that, give alankila a hand :)
Previous - 1 | 2 - 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
Scrap/Genesis Project
Mason/Unicess
Flexman
psych
CA$H/TRiAD
Alakran_64
Guests online: 88
Top Demos
1 Next Level  (9.8)
2 13:37  (9.7)
3 Coma Light 13  (9.7)
4 Mojo  (9.7)
5 Aliens in Wonderland  (9.6)
6 Edge of Disgrace  (9.6)
7 No Bounds  (9.6)
8 Comaland 100%  (9.6)
9 Uncensored  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Happy Birthday Dr.J  (9.7)
2 Layers  (9.6)
3 It's More Fun to Com..  (9.6)
4 Cubic Dream  (9.6)
5 Party Elk 2  (9.6)
6 Copper Booze  (9.6)
7 TRSAC, Gabber & Pebe..  (9.5)
8 Rainbow Connection  (9.5)
9 Dawnfall V1.1  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Nostalgia  (9.4)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 SHAPE  (9.3)
Top Original Suppliers
1 Black Beard  (9.7)
2 Derbyshire Ram  (9.5)
3 hedning  (9.2)
4 Baracuda  (9.1)
5 Jazzcat  (8.6)

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