Bug : Silence not played in Midi
This commit is contained in:
parent
997f5e87b4
commit
4ed0266d7f
1 changed files with 7 additions and 1 deletions
|
|
@ -264,7 +264,13 @@ class Solfa(val sharedScreenModel: SharedScreenModel, private val fileRepository
|
|||
templateComments.add(matchResult.value)
|
||||
"&"
|
||||
}
|
||||
val templateCharArray = templateStripped.toCharArray()
|
||||
fun insertZToCharArray(input: String): CharArray {
|
||||
val delim = "/:!|"
|
||||
val reDelim = "[$delim](?=[$delim])".toRegex()
|
||||
val insertedZ = input.replace(reDelim) { it.value + "z"}
|
||||
return insertedZ.toCharArray()
|
||||
}
|
||||
val templateCharArray = insertZToCharArray(templateStripped)
|
||||
val noteLine = noteLine.replace(REGEX_TEMPLATE_COMMENT, "")
|
||||
.replace(" ", "")
|
||||
val lineRepeated = REGEX_REPETITION.replace(noteLine.substring(1)) { matchResult ->
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue