From 431833b2166d470e438577dfce3de4ac6f8edf02 Mon Sep 17 00:00:00 2001 From: Gwilym Inzani Date: Wed, 10 Jul 2024 12:11:10 +0100 Subject: [PATCH] Correct vibrato code generation --- tracker/agb-tracker-interop/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracker/agb-tracker-interop/src/lib.rs b/tracker/agb-tracker-interop/src/lib.rs index 0edf0bc2..17429fef 100644 --- a/tracker/agb-tracker-interop/src/lib.rs +++ b/tracker/agb-tracker-interop/src/lib.rs @@ -342,7 +342,7 @@ impl quote::ToTokens for PatternEffect { } PatternEffect::Vibrato(waveform, amount, speed) => { let amount = amount.to_raw(); - quote! { Vibrato(#waveform, #amount, #speed) } + quote! { Vibrato(#waveform, agb_tracker::__private::Num::from_raw(#amount), #speed) } } };