[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Very basic sound programming question





On Wed, 1 Apr 2009, Jim wrote:

<gids.rs@sasktel.net> wrote:

Here is an assimilation volume control I came across in ML

300: A0 90       LDY #90
302: A9 60       LDY #60
304: 38            SEC
305: ED 14 03  SBC 0314
308: 8D 0C 03  STA 030C
30B: A2 01       LDX #01
30D: CA           DEX
30E: DO FD     BNE 030D
310: AD 30 C0  LDA C030
313: A2 60        LDX #60
315: CA            DEX
316: D0 FD       BNE 0315
318: AD 30 C0  LDA C030
31B: 88            DEY
31C: D0 ED      BNE 30B
31E: 60            RTS

DURATION $301 (769), PITCH $303 (771), VOLUME $314 (788)

For Volume, the maximum is half the number for the pitch.
1=softest   pitch/2=loudest

Test with this
320:A9 01 8D 14 03 EE 14 03 AD 14 03 C9 60 D0 F3 60

Thank you very much for that. Sadly I have no way of entering it, as I
don't have an assembler. My hunt for a Super Serial card so I can use
ADTPro continues :-)

The actual machine-code is there, you can use the monitor to enter it (call -151)

-uso.