: A basic ramp wave is just t . To change the pitch to a specific MIDI note, use (t * pitch_ratio) .
To play a specific MIDI note, you must convert its MIDI number ( ) into a frequency ( midi to bytebeat
To play a melody, the formula must change the note based on the value of : A basic ramp wave is just t
char get_note(int t) return song[t % (44100*30)]; midi to bytebeat