Changeset 2429:ec88a52431e4 in roaraudio for libroardsp
- Timestamp:
- 08/19/09 05:24:14 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroardsp/synth.c
r2428 r2429 78 78 float t_step; 79 79 float t_cur; 80 float freq; 80 81 int i; 81 82 … … 86 87 t_cur = t_step * state->pcmoffset; 87 88 89 freq = state->note->freq; 90 88 91 for (i = 0; i < frames; i++, t_cur += t_step) { 89 out[i] = 32767.0*state->func( t_cur, state);92 out[i] = 32767.0*state->func(2.0*M_PI*freq*t_cur, state); 90 93 } 91 94
Note: See TracChangeset
for help on using the changeset viewer.