Correct vibrato code generation

This commit is contained in:
Gwilym Inzani 2024-07-10 12:11:10 +01:00
parent c1eaae64e1
commit 431833b216

View file

@ -342,7 +342,7 @@ impl quote::ToTokens for PatternEffect {
} }
PatternEffect::Vibrato(waveform, amount, speed) => { PatternEffect::Vibrato(waveform, amount, speed) => {
let amount = amount.to_raw(); let amount = amount.to_raw();
quote! { Vibrato(#waveform, #amount, #speed) } quote! { Vibrato(#waveform, agb_tracker::__private::Num::from_raw(#amount), #speed) }
} }
}; };