Skip to content

Commit

Permalink
removing less good f32 conversion comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bwhitman committed Oct 15, 2024
1 parent 35b5d72 commit e02bb63
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/amy.c
Original file line number Diff line number Diff line change
Expand Up @@ -841,9 +841,7 @@ void audio_in_note_on(uint16_t osc, uint8_t channel) {
SAMPLE render_audio_in(SAMPLE * buf, uint16_t osc, uint8_t channel) {
uint16_t c = 0;
for(uint16_t i=channel;i<AMY_BLOCK_SIZE*AMY_NCHANS;i=i+AMY_NCHANS) {
buf[c] = SMULR6(L2S(amy_in_block[i]), F2S(msynth[osc].amp));
//buf[c] = F2S(((float)amy_in_block[i]/32767.0) * msynth[osc].amp);
c++;
buf[c++] = SMULR6(L2S(amy_in_block[i]), F2S(msynth[osc].amp));
}
// We have to return something for max_value or else the zero-amp reaper will come along.
return F2S(1.0); //max_value;
Expand Down

0 comments on commit e02bb63

Please sign in to comment.