Skip to content

Commit

Permalink
Fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Rinke committed Jun 14, 2019
1 parent 8c58027 commit ba974c8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Emulator for the expansion sound of the Konami VRC7.

VRC7-Sound is an open-source emulator for the Konami VRC7's expansion sound, featured in the Famicom game *Lagrange Point*.
The VRC7 enables FM-style music through the use of a modified Yamaha YM2413 (OPLL) architecture, which is itself based on the
YM3812, a chip prominently used in the AdLib and Sound Blaster soundcards. The emulator attempts to accurately recreate this sound
by relying mostly on information gathered from the VRC7's die shot.
YM3812, a chip prominently used in the AdLib and Sound Blaster soundcards. The emulator attempts to recreate this sound as accurately
as possible by relying mostly on information gathered from the VRC7's die shot.

## Usage

Expand Down
4 changes: 2 additions & 2 deletions VRC7-sound/vrc7_sound.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ enum env_stages {
ENV_DAMPING //trigger off
};

//Lookup tables
static uint32_t logsin[LOGSIN_TABLE_LEN];

static uint16_t fast_exp[FAST_EXP_TABLE_LEN];
Expand Down Expand Up @@ -163,7 +164,6 @@ static void make_tables(void) {
}

static inline uint32_t phase_to_logsin(uint32_t phase) {
//phase ^= 1; //TODO check?
if (BIT_TEST(phase, 8))
phase = ~phase;
return logsin[phase & 0xff];
Expand Down Expand Up @@ -340,7 +340,7 @@ static void update_envelope(struct vrc7_sound *vrc7_s, uint32_t ch,uint32_t type
if (rate_high == 15 || rate_high == 14 && env_table)
env_inc |= inc1;

//Update the envelope value in a weird way
//Update envelope value
uint32_t env_value = (slot->env_value + env_inc) & 0x7f;

//Update envelope stage
Expand Down
10 changes: 5 additions & 5 deletions VRC7-sound/vrc7_sound.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ VRC7SOUND_API void vrc7_set_clock_rate(struct vrc7_sound *vrc7_s, double clock_r

/*
Sets the sample rate of the vrc7_sound object. This function only has an effect if you are using vrc7_fetch_sample. This is not to be
confused with the sample rate of the signal member of the vrc7_sound object which is set by vrc7_set_clock_rate.
confused with the sample rate of the signal variable of the vrc7_sound object which is set by vrc7_set_clock_rate.
*/
VRC7SOUND_API void vrc7_set_sample_rate(struct vrc7_sound *vrc7_s, double sample_rate);

Expand All @@ -222,12 +222,12 @@ VRC7SOUND_API void vrc7_set_patch_set(struct vrc7_sound *vrc7_s, int patch_set);

/*
Updates the vrc7. This function has to be called at 1/72th of the clock rate set by vrc7_set_clock_rate. After calling this function,
the signal member of the vrc7_object will contain new data. If you are using vrc7_fetch_sample, you do not need to call this function.
the signal variable of the vrc7_sound object will contain new data. If you are using vrc7_fetch_sample, you should not call this function.
*/
VRC7SOUND_API void vrc7_tick(struct vrc7_sound *vrc7_s);

/*
Fetches a single sample and updates the vrc7. This function internally calls vrc7_tick, so you should not call it manually when using
Fetches a single sample and updates the vrc7_sound object. This function internally calls vrc7_tick, so you should not call it manually when using
vrc7_fetch_sample. This function has to be called at the sample rate set by vrc7_set_sample_rate.
*/
VRC7SOUND_API void vrc7_fetch_sample(struct vrc7_sound *vrc7_s, int16_t *sample);
Expand Down Expand Up @@ -270,12 +270,12 @@ VRC7SOUND_API void vrc7_get_default_patch(int set, uint32_t index, struct vrc7_p
*/

/*
Filter function that leaves the raw output from the vrc7 in the signal member. In other words, this function does nothing.
Filter function that leaves the raw output from the vrc7 in the signal variable. In other words, this function does nothing.
*/
VRC7SOUND_API void vrc7_filter_raw(struct vrc7_sound *vrc7_s);

/*
Filter function converts the pulse output of the vrc7 into a more usable signal, but does not apply any filters to it.
Filter function that converts the pulse output of the vrc7 into a more usable signal, but does not apply any filters to it.
The output signal is filled with the sum of each of the channels outputs.
*/
VRC7SOUND_API void vrc7_filter_no_filter(struct vrc7_sound *vrc7_s);
Expand Down

0 comments on commit ba974c8

Please sign in to comment.