mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-15 08:06:06 +09:00
channel strip visualiser for highpass
This commit is contained in:
@@ -600,6 +600,7 @@ class BasicDebugInfoWindow : UICanvas() {
|
||||
|
||||
private val paramViewHeight = hashMapOf(
|
||||
"Lowpass" to 16,
|
||||
"Highpass" to 16,
|
||||
"Buffer" to 16,
|
||||
"BinoPan" to 32,
|
||||
"Convolv" to 16,
|
||||
@@ -622,6 +623,16 @@ class BasicDebugInfoWindow : UICanvas() {
|
||||
batch.color = FILTER_NAME_ACTIVE
|
||||
App.fontSmallNumbers.draw(batch, "F:${filter.cutoff.toInt()}", x+3f, y+1f)
|
||||
}
|
||||
is Highpass -> {
|
||||
val perc = 1f - linToLogPerc(filter.cutoff, 2.0, 24000.0).toFloat()
|
||||
batch.color = COL_METER_GRAD2
|
||||
Toolkit.fillArea(batch, x.toFloat() + stripW, y.toFloat(), -stripW * perc, 14f)
|
||||
batch.color = COL_METER_GRAD
|
||||
Toolkit.fillArea(batch, x.toFloat() + stripW, y+14f, -stripW * perc, 2f)
|
||||
|
||||
batch.color = FILTER_NAME_ACTIVE
|
||||
App.fontSmallNumbers.draw(batch, "F:${filter.cutoff.toInt()}", x+3f, y+1f)
|
||||
}
|
||||
is BinoPan -> {
|
||||
val w = filter.pan * 0.5f * stripW
|
||||
batch.color = COL_METER_GRAD2
|
||||
|
||||
Reference in New Issue
Block a user