loopModeFromInt function

LoopMode loopModeFromInt(
  1. int i
)

Implementation

LoopMode loopModeFromInt(int i){
    switch(i){
        case 0: return LoopMode.noLoop;
        case 1: return LoopMode.continuous;
        case 3: return LoopMode.loopUntilNoteOff;
    }
    throw "invalid loop mode";
}