Skip to content

Commit

Permalink
Merge pull request #22 from mahal/SFZ-improvements
Browse files Browse the repository at this point in the history
Reading of SFZ improved: loop_mode=no_loop, fixes #21
  • Loading branch information
NickCulbertson authored Jan 16, 2024
2 parents 2eda496 + 01b9d9c commit 453580d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/DunneAudioKit/Sampler+SFZ.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ extension SamplerData {
var lowVelocity: MIDIVelocity = 0
var highVelocity: MIDIVelocity = 127
var sample = ""
var loopMode = ""
var loopMode = "no_loop"
var loopStartPoint: Float32 = 0
var loopEndPoint: Float32 = 0

Expand Down Expand Up @@ -90,7 +90,7 @@ extension SamplerData {
maximumNoteNumber: Int32(highNoteNumber),
minimumVelocity: Int32(lowVelocity),
maximumVelocity: Int32(highVelocity),
isLooping: loopMode != "",
isLooping: loopMode != "no_loop",
loopStartPoint: loopStartPoint,
loopEndPoint: loopEndPoint,
startPoint: 0.0,
Expand Down

0 comments on commit 453580d

Please # to comment.