Calibrated frequency and duration properly.

This commit is contained in:
Bobbi Webber-Manners 2022-11-06 23:06:47 -05:00
parent c6352c6aed
commit 6c8749eb51
5 changed files with 79 additions and 78 deletions

Binary file not shown.

View File

@ -213,7 +213,7 @@ BYTE00 BEQ BYTE00A ; OSBYTE 0,0 - generate error
RTS ; %000x1xxx host type, 'A'pple
BYTE00A BRK
DB $F7
HELLO ASC 'Applecorn MOS 2022-11-05'
HELLO ASC 'Applecorn MOS 2022-11-06'
DB $00 ; Unify MOS messages
* TO DO: Move into RAM
GSSPEED DB $00 ; $80 if GS is fast, $00 for slow

View File

@ -6,7 +6,7 @@
# SOUND statements.
#
base=123.47 / 16.0 * 1.573
base=123.47 / 16.0 * 1.573 * 440.0 / 739.99
print("\nFREQHIGH");
for i in range(0,256):

View File

@ -762,8 +762,7 @@ ENSQINIT LDX #3
LDY #10 ; Five oscillators enabled
JSR ENSQWRTDOC
LDY #$00 ; Amplitude for osc #4 (timer)
LDA #00 ; EMPIRICAL - durations approx correct
* LDA #33+1 ; Freq G2+1/8 tone = 99.46Hz
LDA #33+1 ; Freq G2+1/8 tone = 99.46Hz
LDX #$04
JSR ENSQNOTE ; Start oscillator 4
LDX #$A4 ; Control register for osc #4

View File

@ -5,7 +5,45 @@
* Generated by freq_table script
*
FREQHIGH
DB >72
DB >73
DB >74
DB >75
DB >76
DB >78
DB >79
DB >80
DB >81
DB >82
DB >83
DB >85
DB >86
DB >87
DB >88
DB >90
DB >91
DB >92
DB >94
DB >95
DB >96
DB >98
DB >99
DB >101
DB >102
DB >104
DB >105
DB >107
DB >108
DB >110
DB >111
DB >113
DB >115
DB >116
DB >118
DB >120
DB >121
DB >123
DB >125
@ -218,7 +256,7 @@ FREQHIGH
DB >2483
DB >2519
DB >2555
DB >2593
DB >2592
DB >2630
DB >2668
DB >2707
@ -226,44 +264,44 @@ FREQHIGH
DB >2787
DB >2827
DB >2868
DB >2910
DB >2952
DB >2995
DB >3039
DB >3083
DB >3128
DB >3173
DB >3220
DB >3266
DB >3314
DB >3362
DB >3411
DB >3461
DB >3511
DB >3562
DB >3614
DB >3666
DB >3720
DB >3774
DB >3829
DB >3884
DB >3941
DB >3998
DB >4056
DB >4115
DB >4175
DB >4236
DB >4298
DB >4360
DB >4423
DB >4488
DB >4553
DB >4619
DB >4687
DB >4755
DB >4824
FREQLOW
DB <72
DB <73
DB <74
DB <75
DB <76
DB <78
DB <79
DB <80
DB <81
DB <82
DB <83
DB <85
DB <86
DB <87
DB <88
DB <90
DB <91
DB <92
DB <94
DB <95
DB <96
DB <98
DB <99
DB <101
DB <102
DB <104
DB <105
DB <107
DB <108
DB <110
DB <111
DB <113
DB <115
DB <116
DB <118
DB <120
DB <121
DB <123
DB <125
@ -476,7 +514,7 @@ FREQLOW
DB <2483
DB <2519
DB <2555
DB <2593
DB <2592
DB <2630
DB <2668
DB <2707
@ -484,39 +522,3 @@ FREQLOW
DB <2787
DB <2827
DB <2868
DB <2910
DB <2952
DB <2995
DB <3039
DB <3083
DB <3128
DB <3173
DB <3220
DB <3266
DB <3314
DB <3362
DB <3411
DB <3461
DB <3511
DB <3562
DB <3614
DB <3666
DB <3720
DB <3774
DB <3829
DB <3884
DB <3941
DB <3998
DB <4056
DB <4115
DB <4175
DB <4236
DB <4298
DB <4360
DB <4423
DB <4488
DB <4553
DB <4619
DB <4687
DB <4755
DB <4824