Inscription : 20 Août 2007, 18:21 Message(s) : 5002
Citer :
Update (2010-06-02): And here’s version 4 (which Karl actually put together a while back but somehow it got buried in my inbox – oops, sorry!), with a new Windows GUI… Download WAV2AY v4 (1.5Mb)
Inscription : 12 Juin 2008, 20:29 Message(s) : 1711
hERMOL a écrit :
Citer :
Update (2010-06-02): And here’s version 4 (which Karl actually put together a while back but somehow it got buried in my inbox – oops, sorry!), with a new Windows GUI… Download WAV2AY v4 (1.5Mb)
Je ne pense pas, mais logiquement, rien ne s'oppose à ce qu'avec quelques modifications, cela fonctionne aussi sur CPC... Il faudra juste adapter le player de wav, après, les données restent des données .
Inscription : 20 Août 2007, 18:21 Message(s) : 5002
le source zx spectrum n'est pas bien long ... le pb c'est qu'il faut connaitre les ports ZX pour une conversion CPC
Citer :
;; Line 3 is automatically added to change the ORGIN setting during compile
org 32768
; sample player ; need 317 tstates per sample
ld hl,33000 ; start address of sample data ld bc,20007 ; length of sample data, in bytes push bc
ld a,7 ; set bits 0-5 of AY register 7 so that all channels are fixed at 'high' ld bc,0xfffd ; output - this way the AY is not generating waveforms of its own, and out (c),a ; varying the volume (channels 8/9/10) creates our own wave output instead ld a,63 ld b,0xbf out (c),a
pop bc di ; disable interrupts, so that they don't mess with our carefully planned timings
samplelp push bc ; 11
; get low 4 bits to use as the first volume level ld a,(hl) ; 7 and 0x0f ; 7
; delay 117ish tstates ld b,8 ; 7 zzz2 djnz zzz2
; output that volume level to channels 8/9/10 ld bc,0xfffd ; 10 ld d,8 ; 7 out (c),d ; 12 ld b,0xbf ; 7 out (c),a ; 12 inc d ; 4 ld b,0xff ; 7 out (c),d ; 12 ld b,0xbf ; 7 out (c),a ; 12 inc d ; 4 ld b,0xff ; 7 out (c),d ; 12 ld b,0xbf ; 7 out (c),a ; 12
; get the next volume level from the high 4 bits ld a,(hl) ; 7 ; start tstate count here srl a ; 8 srl a ; 8 srl a ; 8 srl a ; 8
Inscription : 15 Août 2008, 13:00 Message(s) : 968 Localisation : Troyes, France
Ce qui va poser problème c'est que niveau temps d'accès au AY , c'est pas la même chose sur CPC et Spectrum.Il faudrait vraisemblablement revoir la synchro. Par contre , il faut voir à combien sont les samples car sur CPC on a déjà convWav de Démoniak qui fait des samples et qui les joue à 11KHZ.
_________________ "NOP" tel est le programme parfait ! court, rapide, lisible et sans bugs (connus)
Utilisateur(s) parcourant ce forum : Aucun utilisateur inscrit et 7 invité(s)
Vous ne pouvez pas publier de nouveaux sujets dans ce forum Vous ne pouvez pas répondre aux sujets dans ce forum Vous ne pouvez pas éditer vos messages dans ce forum Vous ne pouvez pas supprimer vos messages dans ce forum Vous ne pouvez pas insérer de pièces jointes dans ce forum