Skip to content

Commit

Permalink
Adjust init osc
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwellmattryan committed Oct 17, 2024
1 parent a778c78 commit 8bb1eb5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions patches/init/oscillator/oscillator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ void AudioCallback(AudioHandle::InterleavingInputBuffer in,
hardware.ProcessAllControls();

float coarse_knob = hardware.GetAdcValue(CV_1);
float coarse = cortex::map(coarse_knob, 36.f, 96.f);
float coarse = cortex::map(coarse_knob, 24.0f, 96.0f);

float voct_cv = hardware.GetAdcValue(CV_5);
float voct = cortex::map(voct_cv, 0.f, 60.f);
float voct = cortex::map(voct_cv, 0.0f, 60.0f);

float midi_nn = cortex::clamp(coarse + voct, 0.f, 127.f);
float midi_nn = cortex::clamp(coarse + voct, 0.0f, 127.0f);
float freq = cortex::midi_to_frequency(midi_nn);

oscillator.SetFrequency(freq);
Expand Down
2 changes: 1 addition & 1 deletion scripts/flash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if [ $? -ne 0 ]; then
exit 1
fi

printf "Flashing patch \"$PATCH\""
printf "Flashing \"$PATCH\" to Daisy $PLATFORM...\n"
make clean -s
make -s
make -s program-dfu
Expand Down

0 comments on commit 8bb1eb5

Please sign in to comment.