- API -
dofile(reaper.AZ_GetLuaInitPath())
require("reaper_AZSTOKE_SILVER")
cancelType,inputList = reaper.AZ_GetUserInputList("SaveData",1,"Path:","D://script//")
if cancelType then
loudnessTable = {
{
Name = "ACTION",
Loudness = -22
},
{
Name = "CHARGE",
Loudness = -30
},
{
Name = "HIT",
Loudness = -20
},
{
Name = "JUMP",
Loudness = -25
},
}
jsonStr = reaper.AZ_Json_Serialize(loudnessTable);
reaper.AZ_WriteFile(inputList[1],"savedata.txt",jsonStr,0)
end
- API Detail-
Prepare the path information for the save data storage location
- SCRIPT -
dofile(reaper.AZ_GetLuaInitPath())
require("reaper_AZSTOKE_SILVER")
・Make Silver available
cancelType,inputList = reaper.AZ_GetUserInputList("SaveData",1,"Path:","D://script//")
- Display a text input screen to input the save destination
if cancelType then
- Check that the entry screen has not been cancelled.
loudnessTable = {
{
Name = "ACTION",
Loudness = -22
},
{
Name = "CHARGE",
Loudness = -30
},
{
Name = "HIT",
Loudness = -20
},
{
Name = "JUMP",
Loudness = -25
},
}
・Create an array suitable for LOUDMATCHIFY as two sets of Name/Loudness
If you want to make any changes, add them here.
jsonStr = reaper.AZ_Json_Serialize(loudnessTable);
・Convert sequence information into one text
reaper.AZ_WriteFile(inputList[1],"savedata.txt",jsonStr,0)
・Create text information in the specified folder as savedata.txt
end