top of page

AZSTOKE/ALGAZODIK

GameAudio & Art

11

Beginner

AZSTOKe_sample_tableSort

Sort the array in ascending order

RANK
SNS SHARE

function Msg(param)

    reaper.ShowConsoleMsg(tostring(param).."\n")

end


t = {"A","C","D","B"}

table.sort(t)

for i = 1,4 do

Msg(t[i])

end


t = {"p10000","em2500","p11500","p11800"}

table.sort(t)

for i = 1,4 do

Msg(t[i])

end

function Msg(param)

     reaper.ShowConsoleMsg(tostring(param).."\n")

end


  • Set Msg console output function


t = {"A","C","D","B"}


  • Define an array.


table.sort(t)


  • Sort the array.


for i = 1,4 do

Msg(t[i])

end


  • Outputs the value of array index (1 to 4) to the console.


t = {"p10000","em2500","p11500","p11800"}

table.sort(t)


  • Define and sort arrays.


for i = 1,4 do

Msg(t[i])

end


  • Outputs the value of array index (1 to 4) to the console.

To use the API, you need to sign up for a plan.

Download the dedicated API

need to do it.

*SILVER is scheduled to be released in May.

No preparation required

- Script Code -
- Script Image -
- Warm Up -
- Script Detail -
- API -

LUA

​ReaScript File Download 👇

* A dedicated API is required to run this

- Script Image -
bottom of page