| |
DeMOSic
Registered: Aug 2021 Posts: 126 |
Release id #871 : Digi-Organizer V.1
How do i load samples into this? I know dirmaster must be involved but ive tried importing .raw files and .wav files (which ive compressed to 8-bit mono) and it dosent work |
|
| |
Jammer
Registered: Nov 2002 Posts: 1336 |
Samples must be raw data, preconverted to 4bit IIRC. |
| |
DeMOSic
Registered: Aug 2021 Posts: 126 |
Quote: Samples must be raw data, preconverted to 4bit IIRC.
Thanks! I will do that |
| |
Krill
Registered: Apr 2002 Posts: 2982 |
4-bit samples, indeed, with two samples per byte, and the first sample in the upper nibble. |
| |
DeMOSic
Registered: Aug 2021 Posts: 126 |
Quote: 4-bit samples, indeed, with two samples per byte, and the first sample in the upper nibble.
Well how do i convert into 4-bit? I know how to convert to .raw (export in mpt) but not 4bit? |
| |
Krill
Registered: Apr 2002 Posts: 2982 |
There doesn't seem to be any audio tool outputting fewer than 8 bits of raw mono PCM audio.
So you'll have to make do with those 8-bit .raw files and truncate the samples yourself with a small tool written in the language of your choice.
Take two bytes, then merge them with something like "((A & 15) * 16) + (B & 15)".
Note that this doesn't properly round the samples nor otherwise reduce the error. |
| |
DeMOSic
Registered: Aug 2021 Posts: 126 |
Quote: There doesn't seem to be any audio tool outputting fewer than 8 bits of raw mono PCM audio.
So you'll have to make do with those 8-bit .raw files and truncate the samples yourself with a small tool written in the language of your choice.
Take two bytes, then merge them with something like "((A & 15) * 16) + (B & 15)".
Note that this doesn't properly round the samples nor otherwise reduce the error.
Thanks! I will try to do that and ill tell you the results! |
| |
chatGPZ
Registered: Dec 2001 Posts: 11391 |
try Konv1 and View64 |
| |
DeMOSic
Registered: Aug 2021 Posts: 126 |
Quote: try Konv1 and View64
Thanks! Will tell you the results when i get em! |
| |
zzarko
Registered: Feb 2003 Posts: 77 |
I had a similar problem, Durandal helped me to solve it:
Sample audio on C64, how to do a better conversion?
Here is the code:
https://bitbucket.org/zzarko/c64movie/src/master/8to4bit.py |
| |
DeMOSic
Registered: Aug 2021 Posts: 126 |
Quote: I had a similar problem, Durandal helped me to solve it:
Sample audio on C64, how to do a better conversion?
Here is the code:
https://bitbucket.org/zzarko/c64movie/src/master/8to4bit.py
Oh nice. Thanks! Well the konv1 techniue worked too
btw. Dont need to use Digi Org anymore. I Found out how to do it using THCMs THCMod tool |