KeenFX

From KeenWiki
Jump to navigation Jump to search

KeenFX
KeenFX.png
Developer(s)
Initial release
Latest update2005-09-12
Development statusFinished
PlatformDOS
Tool TypeSound Editor
Engine(s)Keen:Vorticons
Discussion(s)Keen: Modding
DownloadKeenFX v.1.1 (source code included) newest
Mirror
KeenFX interface

KeenFX is a Keen 1-3 PC Speaker sound editor written by Commander Spleen in 2005.

The utility is designed to work with an external sound file. This means it is only directly usable with Keen 1. However, it is possible to extract the sound effects data from the Keen 2 and 3 executable files, save them in an external file, edit them with KeenFX, and then use CKPatch's %patchfile feature to load the sounds into a mod.

Setup

Make sure you throw a copy of SOUNDS.CK1 in with keenfx.exe; there's no error trapping at the moment, so if the sounds file isn't present the program will simply crash.

Instructions for Use

Once you're in the program, you'll be presented with two Power menu windows; one reading 'SoundBox' and the other 'Visualisation'. SoundBox lists the various sound effects, and Visualisation displays a visual representation of the selected sound.

From here, the rest is up to you. The following controls are at your disposal:

General Controls

Key Action
Tab Switch windows
Enter Play selected sound effect
Space Play selected note, indicated by the highlighted asterisk in the Visualisation window
S Compile (Save) SOUNDS.CK1

Soundbox (If active)

Key Action
Up/Down Cruise up and down the sounds list

Visualisation (if active)

Key Action
Left/Right Prev/Next note, respectively. Note that the window scrolls to cater for long sounds.
Up/Down Increase/Decrease pitch of highlighted note by 16.
PgUp/PgDn Increase/Decrease pitch of highlighted note by 256.
Ins Manually input desired pitch for highlighted note.
Zero (0) Set highlighted note to zero.
F Reverse (flip) sound effect.
I Invert selected note.
Z/X Zoom in/out. Viewing range is 1200 (maximum) by default.
C/V Copy/Paste highlighted note.
+/- Increase/Decrease length of selected sound effect. Minimum length of 8.

Musical Notes

PC speaker sounds are composed of frequencies, which the modder can arrange in a musical manner or a cacophonous texture - both approaches are used in the original games for varying purposes. The PC speaker is controlled with frequency numbers which correspond to frequencies. These numbers range from 0 and 65,535 and these correspond to frequencies between 8.21 Hz (frequency number = 65,535) and 1,193,180 Hz (frequency number = 1). However, in the KeenFX utility, it is the inverse of the frequency number that is inputted, i.e. 65,535 minus the raw frequency number. Some examples of these are illustrated below for reference, where "KeenFx value" should be entered into KeenFX to deliver the frequency required. The below are most of the main notes in a conventional range for melody, and are in a standard western A=440Hz musical space.

A modder who wishes to work with higher or lower notes will note that each note has a Frequency # which is double that of the note an octave above. Using this info, for C2 (65.41Hz) the Frequency # will be 18,242, and thus by subtracting this from 65,535, the value of 47293 is obtained which will produce C2 when entered into KeenFX.

Note Frequency (Hz) Frequency # KeenFx value
C3 130.81 9121 56414
C#3 138.59 8609 56926
D3 146.83 8126 57409
D#3 155.56 7670 57865
E3 164.81 7239 58296
F3 174.61 6833 58702
F#3 185 6449 59086
G3 196 6087 59448
G#3 207.65 5746 59789
A3 220 5423 60112
A#3 233.08 5119 60416
B3 246 4831 60704
C4 261.63 4560 60975
C#4 277.18 4304 61231
D4 293.66 4063 61472
D#4 311.13 3834 61701
E4 329.63 3619 61916
F4 349.23 3416 62119
F#4 369.99 3224 62311
G4 391 3043 62492
G#4 415.30 2873 62662
A4 440 2711 62824
A#4 466.16 2559 62976
B4 493.88 2415 63120
C5 523.25 2280 63255
C#5 554.37 2152 63383
D5 587.33 2031 63504
D#5 622.25 1917 63618
E5 659.26 1809 63726
F5 698.46 1715 63820
F#5 739.99 1612 63923
G5 783.99 1521 64014
G#5 830.61 1436 64099
A5 880 1355 64180
A#5 923.33 1292 64243
B5 987.77 1207 64328
C6 1046.5 1140 64395

External Links