Audio input / sampler

aToyRobot
Posts: 22
Joined: Sun Jun 28, 2020 10:28 pm

Audio input / sampler

Unread post by aToyRobot »

Is it at all possible to use the audio input for the Amiga, or is there some other way to connect a sampler? It would be great fun to have a way to sample into Protracker et al.
Lisko
Posts: 88
Joined: Sun May 24, 2020 10:45 pm
Has thanked: 17 times
Been thanked: 3 times

Re: Audio input / sampler

Unread post by Lisko »

The audio in on the io board isn't suitable for audio purposes and the amiga didn't had native line-in so the core should be also modified to simulate line-in over user port.. So the answer is: currently not and maybe never will
User avatar
bazza_12
Top Contributor
Posts: 419
Joined: Sun May 24, 2020 7:49 pm
Location: Yorkshire, UK
Has thanked: 251 times
Been thanked: 116 times
Contact:

Re: Audio input / sampler

Unread post by bazza_12 »

or is it possible create the sample on pc/mac as a *.wav file and convert it to *.iff
The music is reversible but time is not. Turn back. Turn back
alg07
Posts: 1
Joined: Thu Jul 02, 2020 5:54 pm

Re: Audio input / sampler

Unread post by alg07 »

Of course it should be possible. Amiga samples are usually in file format iff/8svx.

You could use the Linux/Unix tool `sox` to convert or just google for "wav to 8svx" to find an alternative tool.
djhardrich
Posts: 19
Joined: Mon May 25, 2020 8:21 am
Been thanked: 5 times

Re: Audio input / sampler

Unread post by djhardrich »

Here's a pretty dirty hack that works, I've tested the output files in Protracker 2.3 on Amiga and Octalyzer for the STe (if using ST, you need to run an ftpd on your ST core and ftp them in or make disk images in Hatari; looking into some sort of shared folder solution for ST) and haven't had any issues:

Connect a cheap ($5) USB sound card (generally mono in, stereo out) to MiSTer, boot.
Download the cross-compiled sox + scripts, copy sox to /usr/bin on your MiSTer and copy the scripts to your Scripts folder (use ssh/sftp to avoid removing your sd card). You may have to "chmod +x sox" from your MiSTer's Linux console before running "cp sox /usr/bin/" to make it executable/copy sox
For Amiga, make a /media/fat/games/Amiga/hdd/samples/ directory, set up Amiga file sharing in MiSTer.
Launch the scripts either from the scripts menu or the root console, follow the prompts.

Load your sample!

I'll also attach a schematic for one of the Amiga audio carts in the event that someone can implement it, it connects to a parallel port on the Amiga core (I also have a schematic for one of the ST audio sampler carts, same idea).

If you need batch sample conversion to get your libraries converted, check out AmigaPAL ( https://github.com/echolevel/AmigaPal ) as well!
Attachments
Amiga-AP420-Schematic.pdf.zip
(999.81 KiB) Downloaded 230 times
MiSTer-AlsaSampler.zip
(264.9 KiB) Downloaded 210 times
kolla
Posts: 188
Joined: Sat Jun 13, 2020 7:56 am
Has thanked: 17 times
Been thanked: 33 times

Re: Audio input / sampler

Unread post by kolla »

Sheesh, and all I do is record samples with my phone, save them to my cloud store, from where the MiSTer Linux side picks them up and converts them to various usable formats such as iff/8svx using sox, saving them back to the storage that is shared with the Minimig core :)
aToyRobot
Posts: 22
Joined: Sun Jun 28, 2020 10:28 pm

Re: Audio input / sampler

Unread post by aToyRobot »

Thanks for everybody's replies/suggestions.

Converting samples and using the shared directory is certainly a workable solution. I guess what I was hoping for was a more authentic experience, along with a more accurate sound. E.g. I would expect a converted file to sound different, albeit subtly, than one sampled at the low sample rate and using real amiga hardware and an external sampler.

It's no big deal though, if and when I want to make some music on Amiga I will either use the shared directory or my Amiga 500 with Techno Sound Turbo.
kolla
Posts: 188
Joined: Sat Jun 13, 2020 7:56 am
Has thanked: 17 times
Been thanked: 33 times

Re: Audio input / sampler

Unread post by kolla »

You are right, I played a little with my old DSS8+ on real Amiga, and direct sampling does make a more... authentic sound :)
I even jacked it to my phone to re-record samples there, and those too sound better. Dang... shouldn't have tried it... ;)
Post Reply