Skip to content

Commit

Permalink
add free
Browse files Browse the repository at this point in the history
  • Loading branch information
benkuper committed Jan 16, 2025
1 parent b1b47f7 commit afb0d6b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Source/Node/nodes/looper/AudioLooperTrack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,12 @@ void AudioLooperTrack::loadSampleFile(File dir)
playQuantization = Transport::BEAT;
numBeats = numQuantiz;
break;

case LooperNode::FREE:
playQuantization = Transport::FREE;
numBeats = 0;
break;

}


Expand Down
2 changes: 1 addition & 1 deletion Source/Node/nodes/looper/LooperNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ LooperNode::LooperNode(StringRef name, var params, LooperType looperType) :
sampleDirectory->directoryMode = true;

quantizationOnLoad = saveLoadCC.addEnumParameter("Quantization On Load", "This is the quantization to use when loading a sample.");
quantizationOnLoad->addOption("From File", FROM_FILE)->addOption("From Looper", FROM_LOOPER)->addOption("Free", FREE)->addOption("Bar", BAR)->addOption("Beat", BEAT);
quantizationOnLoad->addOption("From File", FROM_FILE)->addOption("From Looper", FROM_LOOPER)->addOption("Free", FREE)->addOption("Bar", BAR)->addOption("Beat", BEAT)->addOption("Free", FREE);
loadQuantizationValue = saveLoadCC.addIntParameter("Load Quantization Value", "This is the value to use when loading a sample with a quantization of bar or beat", 1, 1);

saveSamplesTrigger = saveLoadCC.addTrigger("Save samples", "Save samples in the directory");
Expand Down

0 comments on commit afb0d6b

Please sign in to comment.