mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
examples/pcm: Add intervals between notes
This commit is contained in:
parent
b9eba54115
commit
9142a077cf
@ -119,7 +119,7 @@ func playNote(scoreIndex int) rune {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const vol = 1.0 / 16.0
|
const vol = 1.0 / 16.0
|
||||||
size := 30 * sampleRate / ebiten.MaxTPS()
|
size := (ebiten.MaxTPS()/2 - 2) * sampleRate / ebiten.MaxTPS()
|
||||||
l := make([]int16, size)
|
l := make([]int16, size)
|
||||||
r := make([]int16, size)
|
r := make([]int16, size)
|
||||||
square(l, vol, freq, 0.25)
|
square(l, vol, freq, 0.25)
|
||||||
|
Loading…
Reference in New Issue
Block a user